/* Two typefaces: TocaPixel for menus and titles, TocaText for submenus and body text. */
@font-face {
  font-family: TocaPixel;
  src: url("/assets/fonts/Tiny5-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: TocaText;
  src: url("/assets/fonts/PixelifySans-500.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: TocaText, monospace;
  background: #111d2b;
  color: #e8dfc5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  font: inherit;
}
a {
  color: #e1d0a2;
  text-decoration: none;
}
button {
  border: 1px solid #889590;
  background: #293c4b;
  color: #ebdfbf;
  padding: 9px 14px;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e5bd85;
  outline-offset: 3px;
}
.rune-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #172737;
  border-bottom: 2px solid #667e86;
  min-height: 62px;
}
.rune-nav strong {
  font-size: 22px;
}
.rune-nav strong span {
  color: #e2676c;
}
.rune-wordmark {
  display: block;
  width: 224px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}
.rune-nav nav {
  display: flex;
  gap: 8px;
}
.rune-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
  max-width: 1800px;
  margin: auto;
  padding: 18px;
}
.rune-frame {
  position: relative;
  max-height: calc(100dvh - 100px);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: calc((100dvh - 100px) * 16 / 9);
  justify-self: center;
  background: #182637;
  box-shadow:
    0 0 0 2px #71858b,
    0 0 0 6px #172331;
  overflow: hidden;
}
.rune-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
  outline-offset: -4px;
}
.rune-actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rune-hit-target {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  min-height: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: transparent;
  overflow: hidden;
  font-size: 0;
}
.rune-hit-target:focus,
.rune-hit-target:focus-visible {
  outline: none;
  background: transparent;
}
.rune-frame canvas,
.rune-frame canvas:focus,
.rune-frame canvas:focus-visible {
  outline: none;
}
.rune-hit-target:disabled {
  cursor: default;
}
.rune-volume {
  position: absolute;
  left: 30%;
  top: 37%;
  width: 40%;
  color: #ede0bd;
  font-size: 18px;
  text-align: center;
}
/* Inside the pause card: centred and narrower than the card. */
.rune-volume.rune-volume-pause {
  left: 50%;
  top: 22%;
  width: min(360px, 62%);
  transform: translateX(-50%);
  font-size: 16px;
}
.rune-volume[hidden] {
  display: none;
}
.rune-volume input {
  display: block;
  width: 100%;
  accent-color: #dd897c;
  min-height: 38px;
}
.rune-volume .rune-soft-option input {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin-right: 8px;
  vertical-align: middle;
}
.rune-volume output {
  margin-left: 12px;
}
.rune-guide {
  font-family: TocaText, monospace;
  font-size: 20px;
  line-height: 1.35;
  color: #b9c6bf;
}
.rune-guide h1,
.rune-guide h2 {
  color: #e5c78f;
  font-size: 19px;
  margin: 0 0 12px;
}
.rune-guide h2 {
  margin-top: 24px;
}
.rune-guide dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0;
}
.rune-guide dt {
  color: #e2d5ad;
}
.rune-guide dd {
  margin: 0 0 8px;
}
.rune-guide p {
  margin: 16px 0;
}
.rune-guide #rune-status {
  color: #e8c697;
}
@media (max-width: 1000px) {
  .rune-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rune-guide {
    max-width: 750px;
    margin: auto;
  }
  .rune-guide dl {
    grid-template-columns: 1fr 2fr;
  }
  .rune-nav strong {
    display: none;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .rune-nav {
    padding: 8px;
    gap: 6px;
    font-size: 13px;
  }
  .rune-nav button {
    padding: 9px 7px;
  }
  .rune-layout {
    padding: 10px;
    gap: 20px;
  }
  .rune-frame {
    aspect-ratio: 3 / 4;
    max-height: none;
    max-width: 600px;
  }
  .rune-volume {
    font-size: 16px;
  }
  .rune-guide {
    padding: 6px;
    font-size: 15px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-nav {
    min-height: 44px;
    padding: 5px 12px;
  }
  .rune-nav button {
    padding: 6px 10px;
  }
  .rune-layout {
    padding: 8px;
    grid-template-columns: 1fr;
  }
  .rune-frame {
    max-height: calc(100dvh - 64px);
    max-width: calc((100dvh - 64px) * 16 / 9);
  }
  .rune-page:not(.rune-testing) .rune-guide {
    display: none;
  }
}

.rune-nav button {
  min-height: 44px;
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-volume {
    top: 26%;
  }
}

.rune-dev-controls {
  position: static;
  display: grid;
  gap: 14px;
  font:
    20px TocaText,
    monospace;
  color: #e7d7b4;
}
.rune-dev-controls[hidden] {
  display: none;
}
.rune-dev-controls label {
  display: block;
}
.rune-dev-controls select,
.rune-dev-controls input {
  display: block;
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: inherit;
  background: #253746;
  border: 1px solid #95a49e;
}
.rune-dev-controls output {
  float: right;
}
.rune-dev-actions {
  display: grid;
  gap: 8px;
}
.rune-dev-actions button {
  min-height: 44px;
  font:
    13px TocaPixel,
    monospace;
}
.rune-dev-actions button[aria-pressed="true"] {
  background: #566b48;
}
.rune-guide .feedback-game-panel {
  position: static;
  width: 100%;
  max-height: none;
  padding: 14px 0;
  border: 0;
}
.rune-guide .feedback-game-panel input,
.rune-guide .feedback-game-panel textarea {
  max-width: 100%;
}
.rune-dev-controls p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.rune-dev-mark {
  color: #e0a27e;
  font-size: 14px;
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-dev-controls {
    font-size: 14px;
  }
  .rune-dev-controls p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px), (max-height: 540px) {
  .rune-dev-mark {
    display: none;
  }
}
.rune-volume {
  top: 28%;
  left: 20%;
  width: 60%;
  display: grid;
  gap: 8px;
}
.rune-volume label {
  display: block;
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-volume {
    top: 25%;
    left: 15%;
    width: 70%;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    font-size: 14px;
  }
}

.rune-guide details {
  border-top: 1px solid #465461;
  padding: 12px 0;
}
.rune-guide summary {
  cursor: pointer;
  min-height: 36px;
  line-height: 1.4;
  color: #dfc68b;
}
.rune-guide summary:focus-visible {
  outline: 2px solid #e5bd85;
  outline-offset: 3px;
}
.rune-changelog ul {
  padding-left: 18px;
  line-height: 1.5;
}
.rune-changelog li + li {
  margin-top: 6px;
}

/* Letterbox the game itself in fullscreen; keep browser-only panels outside it. */
:fullscreen .rune-nav,
:fullscreen .rune-guide {
  display: none;
}
:fullscreen .rune-layout {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100%;
  height: 100dvh;
  padding: 0;
  max-width: none;
}
:fullscreen .rune-frame {
  max-height: 100dvh;
  max-width: min(100vw, calc(100dvh * 16 / 9));
  box-shadow: none;
}
@media (orientation: portrait) and (max-width: 760px) {
  :fullscreen .rune-frame {
    max-width: min(100vw, calc(100dvh * 3 / 4));
  }
}

/* The page is a modern shell; the canvas retains its own pixel art. */
.rune-page {
  --ui-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel-font: var(--ui-font);
  background: radial-gradient(
    ellipse at 50% 0,
    #18191e 0,
    #08090c 55%,
    #050607 100%
  );
  color: #e7e8eb;
  font: 16px / 1.6 var(--ui-font);
}
.rune-page .rune-nav {
  gap: 16px;
  min-height: 80px;
  padding: 12px clamp(16px, 4vw, 64px);
  background: linear-gradient(180deg, #18191e, #090a0d);
  border-bottom: 1px solid #292b33;
}
.rune-page a {
  color: #d8dbe3;
}
.rune-page button:not(.rune-hit-target) {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #454750;
  border-radius: 10px;
  background: linear-gradient(180deg, #292b32, #111217);
  color: #f1f2f6;
  font: 600 15px / 1.4 var(--ui-font);
}
.rune-page button:not(.rune-hit-target):hover {
  border-color: #999da8;
  background: linear-gradient(180deg, #343741, #181a20);
}
.rune-page button:not(.rune-hit-target):disabled {
  opacity: 0.5;
  cursor: default;
}
.rune-page .rune-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1480px;
  padding: 24px clamp(12px, 3vw, 32px) 56px;
}
.rune-page .rune-frame {
  flex: none;
  max-height: calc(100dvh - 128px);
  max-width: calc((100dvh - 128px) * 16 / 9);
  border: 1px solid #363841;
  border-radius: 12px;
  box-shadow: 0 24px 70px #0008;
  background: #030406;
}
.rune-page .rune-community,
.rune-page .rune-guide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.rune-page .rune-guide,
.rune-page:not(.rune-testing) .rune-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  color: #b9bdc8;
}
.rune-guide > section,
.rune-page .rune-community .feedback-game-panel {
  padding: 28px;
  border: 1px solid #292c34;
  border-radius: 16px;
  background: linear-gradient(150deg, #17191f, #090a0e 80%);
}
.rune-page .rune-guide h1,
.rune-page .rune-guide h2,
.rune-page .feedback-game-panel h2 {
  margin: 0 0 18px;
  color: #f2f3f5;
  font: 650 23px / 1.3 var(--ui-font);
  letter-spacing: -0.5px;
}
.rune-page .rune-guide dt {
  color: #f0f0f4;
  font-weight: 600;
}
.rune-page .rune-guide dl {
  grid-template-columns: 1fr 1.6fr;
  gap: 10px 20px;
}
.rune-page .rune-guide dd {
  margin: 0;
}
.rune-page .rune-guide details {
  border-color: #30333d;
}
.rune-page .rune-guide summary {
  color: #dfe1e8;
  min-height: 44px;
  padding: 8px 0;
}
.rune-page .rune-dev-controls {
  grid-column: 1 / -1;
}
.rune-page .rune-dev-actions {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.rune-page .rune-guide #rune-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #a8aebd;
}
.rune-page .rune-community .feedback-game-panel {
  position: static;
  width: 100%;
  max-height: none;
  overflow: visible;
  margin: 0;
  color: #dce0e9;
}
.rune-page .rune-community .feedback-game-panel[hidden] {
  display: none;
}
.rune-page .feedback-form {
  gap: 18px;
  margin: 24px 0;
}
.rune-page .feedback-form label {
  gap: 8px;
  font-size: 15px;
}
.rune-page .feedback-form input,
.rune-page .feedback-form textarea,
.rune-page .rune-dev-controls select {
  min-height: 50px;
  padding: 14px;
  border: 1px solid #414550;
  border-radius: 10px;
  background: #090b10;
  color: #f0f1f5;
  font: 16px / 1.5 var(--ui-font);
}
.rune-page .feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}
.rune-page .feedback-form button {
  justify-self: start;
  min-width: 200px;
}
.rune-page .feedback-comment {
  border-color: #2c3039;
}
.rune-page .feedback-reply {
  border-color: #626978;
  background: #11141b;
  border-radius: 8px;
}
.rune-page .feedback-game-panel a {
  color: #d1c4f4;
}
.rune-page .rune-dev-mark {
  color: #b7a1dc;
  font: 12px / 1.5 var(--ui-font);
}
@media (max-width: 760px) {
  .rune-page .rune-nav {
    flex-wrap: wrap;
    padding: 12px;
  }
  .rune-page .rune-nav nav {
    gap: 8px;
  }
  .rune-page .rune-nav button {
    padding: 12px;
  }
  .rune-page .rune-guide,
  .rune-page:not(.rune-testing) .rune-guide {
    grid-template-columns: 1fr;
  }
  .rune-page .rune-guide > section,
  .rune-page .rune-community .feedback-game-panel {
    padding: 20px;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .rune-page .rune-frame {
    max-height: none;
    max-width: 600px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-page .rune-nav {
    min-height: 64px;
  }
  .rune-page .rune-frame {
    max-height: calc(100dvh - 112px);
    max-width: calc((100dvh - 112px) * 16 / 9);
  }
}
:fullscreen .rune-page .rune-nav,
:fullscreen .rune-page .rune-guide,
:fullscreen .rune-page .rune-community {
  display: none;
}
:fullscreen .rune-page .rune-layout {
  display: grid;
  height: 100dvh;
  padding: 0;
  max-width: none;
  gap: 0;
}
:fullscreen .rune-page .rune-frame {
  max-height: 100dvh;
  max-width: min(100vw, calc(100dvh * 16 / 9));
  border: 0;
  border-radius: 0;
}
@media (orientation: portrait) and (max-width: 760px) {
  :fullscreen .rune-page .rune-frame {
    max-width: min(100vw, calc(100dvh * 3 / 4));
  }
}

/* RedRat accent stays in the page shell, outside the game canvas. */
.rune-page {
  background: radial-gradient(
    ellipse at 50% 0,
    #291015 0,
    #100a0d 35%,
    #050607 75%
  );
}
.rune-page .rune-nav {
  background: linear-gradient(180deg, #211014, #09090c);
  border-bottom-color: #6e2535;
}
.rune-page .rune-frame {
  border-color: #6e2a39;
  box-shadow:
    0 24px 70px #0009,
    0 0 36px #b9203e0b;
}
.rune-page .rune-guide > section,
.rune-page .rune-community .feedback-game-panel {
  background: linear-gradient(145deg, #211216 0, #121014 35%, #08090c 90%);
  border-color: #42242e;
}
.rune-page .feedback-game-panel a,
.rune-page .rune-guide summary:hover {
  color: #f08a9e;
}
.rune-page .rune-guide h1,
.rune-page .rune-guide h2,
.rune-page .feedback-game-panel h2 {
  border-left: 3px solid #dc3657;
  padding-left: 12px;
}
.rune-page button:not(.rune-hit-target):focus-visible,
.rune-page a:focus-visible,
.rune-page .feedback-form input:focus-visible,
.rune-page .feedback-form textarea:focus-visible {
  outline: 2px solid #f06a85;
  outline-offset: 3px;
}
.rune-page .feedback-form input:focus,
.rune-page .feedback-form textarea:focus {
  border-color: #c74863;
}
.rune-page .rune-guide summary::marker {
  color: #e2607b;
}

.rune-page {
  background-image:
    linear-gradient(#b6728e07 1px, transparent 1px),
    linear-gradient(90deg, #b6728e07 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0, #291015 0, #100a0d 35%, #050607 75%);
  background-size:
    40px 40px,
    40px 40px,
    auto;
}
.rune-page .build-select {
  color: #c3b6bc;
}
.rune-page .build-select select {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #703342;
  border-radius: 10px;
  background: #171116;
  color: #f4edf0;
}

.rune-page .rune-frame .rune-dev-controls {
  position: absolute;
  inset: 19% 8% 18%;
  z-index: 4;
  overflow: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d5d8df;
  font: 14px / 1.5 var(--ui-font);
  overscroll-behavior: contain;
}
.rune-page .rune-frame .rune-dev-controls[hidden] {
  display: none;
}
.rune-frame .rune-dev-controls h2 {
  display: none;
}
.rune-page .rune-frame .rune-dev-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}
.rune-page .rune-frame .rune-dev-controls button {
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
}
.rune-page .rune-frame .rune-dev-controls select {
  min-height: 44px;
  padding: 8px;
  margin-bottom: 8px;
}
.rune-frame .rune-dev-controls p {
  margin-top: 8px;
}

.rune-page .rune-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.rune-page .rune-nav strong {
  display: block;
  grid-column: 2;
}
.rune-page .rune-page-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin-top: -12px;
}
.rune-page .rune-page-controls > button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 12px;
}
.rune-page-controls svg {
  display: block;
  pointer-events: none;
}
.rune-page .rune-page-controls .build-select {
  margin: 0;
  gap: 10px;
}
.rune-page .rune-page-controls .build-select select {
  max-width: 360px;
}
@media (max-width: 760px) {
  .rune-page .rune-nav {
    grid-template-columns: 1fr auto;
  }
  .rune-page .rune-nav .rune-wordmark {
    width: 160px;
    height: 40px;
  }
  .rune-page .rune-page-controls {
    gap: 8px;
  }
  .rune-page .rune-page-controls .build-select {
    flex: 1;
    min-width: 0;
    font-size: 0;
    gap: 0;
  }
  .rune-page .rune-page-controls .build-select select {
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }
}
:fullscreen .rune-page .rune-page-controls {
  display: none;
}

.rune-page button:not(.rune-hit-target),
.rune-page .build-select select {
  border-color: #45404a;
  background: linear-gradient(180deg, #242127, #0b0b0e);
  color: #f1eef3;
}
.rune-page button:not(.rune-hit-target):hover,
.rune-page button:not(.rune-hit-target):active,
.rune-page button:not(.rune-hit-target)[aria-expanded="true"],
.rune-page button:not(.rune-hit-target)[aria-pressed="true"],
.rune-page .build-select select:hover,
.rune-page .build-select select:focus {
  border-color: #df5872;
  background: linear-gradient(180deg, #b12c47, #691529);
  color: #fff;
}
.rune-community:has(.feedback-game-panel[hidden]) {
  display: none;
}
.rune-frame,
.rune-hit-target,
.rune-page button,
.rune-page img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
html:not([data-village-skin="classic"])[data-village-skin] .rune-frame {
  border-color: var(--skin-accent);
  box-shadow: 0 0 25px var(--skin-shadow);
}
.village-coin-status {
  font: 12px system-ui;
  color: #f6d885;
  padding: 6px 10px;
  white-space: nowrap;
  user-select: none;
}

/* Menus, headings and buttons use the title face. */
h1,
h2,
h3,
button,
summary,
.rune-guide dt {
  font-family: TocaPixel, monospace;
}

/* Pause card: the three volume sliders sit side by side so they never cover the buttons. */
.rune-volume.rune-volume-pause {
  top: 21%;
  left: 50%;
  width: min(520px, 78%);
  transform: translateX(-50%);
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 14px;
}
.rune-volume.rune-volume-pause input {
  min-height: 26px;
}
.rune-volume.rune-volume-pause output {
  margin-left: 6px;
}
.rune-volume.rune-volume-pause {
  width: 36%;
}
@media (orientation: portrait) {
  .rune-volume.rune-volume-pause {
    width: 86%;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-volume.rune-volume-pause {
    width: 70%;
  }
}

/* Pixel sliders, a little higher on the screen */
.rune-volume {
  top: 21% !important;
  gap: 6px;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow:
    2px 0 #000,
    -2px 0 #000,
    0 2px #000,
    0 -2px #000;
}
.rune-volume.rune-volume-pause {
  top: 20% !important;
}
@media (max-height: 540px) and (orientation: landscape) {
  .rune-volume {
    top: 18% !important;
  }
}
.rune-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  min-height: 28px;
  background: transparent;
  image-rendering: pixelated;
}
.rune-volume input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border: 3px solid #05070d;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #1a2438 0 6px, #25365a 6px 12px);
  box-shadow:
    inset 0 3px 0 #0b1220,
    0 0 0 2px #7a5a3a;
}
.rune-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 26px;
  margin-top: -10px;
  border: 3px solid #05070d;
  border-radius: 0;
  background: #efcc62;
  box-shadow:
    inset -3px -3px 0 #b8902a,
    inset 3px 3px 0 #fff0b0;
}
.rune-volume input[type="range"]::-moz-range-track {
  height: 12px;
  border: 3px solid #05070d;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #1a2438 0 6px, #25365a 6px 12px);
  box-shadow:
    inset 0 3px 0 #0b1220,
    0 0 0 2px #7a5a3a;
}
.rune-volume input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 20px;
  border: 3px solid #05070d;
  border-radius: 0;
  background: #efcc62;
  box-shadow:
    inset -3px -3px 0 #b8902a,
    inset 3px 3px 0 #fff0b0;
}
.rune-volume input[type="range"]:focus-visible {
  outline: 3px solid #f4dc9e;
  outline-offset: 2px;
}
.rune-old-versions {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #1a2a44 0%, #0b1220 70%);
  color: #e8dfc5;
  font-family: TocaText, monospace;
}
.rune-old-versions header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 2px solid #efcc62;
  background: linear-gradient(180deg, #2a3850, #0a111f);
  font-family: TocaPixel, monospace;
  letter-spacing: 0.04em;
  color: #efcc62;
}
.rune-old-versions button {
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid #efcc62;
  border-radius: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(239, 204, 98, 0.18)),
    linear-gradient(180deg, #2a3850, #141f35 55%, #0a111f);
  box-shadow:
    inset 0 0 0 2px #0a111f,
    0 2px 0 #05080f;
  color: #fff1d4;
  font-family: TocaPixel, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.rune-old-versions button:hover,
.rune-old-versions button:focus-visible {
  filter: brightness(1.25);
  outline: 0;
}
.rune-old-note {
  margin: 0;
  padding: 6px 14px;
  background: #0a111f;
  color: #c6cebd;
  font-size: 13px;
}
.rune-old-versions > iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #171820;
}

/* Options: the three sliders sit in one row above the buttons, with the soft-effects switch under them */
.rune-volume.rune-volume-pause .rune-soft-option {
  grid-column: 1 / -1;
  justify-self: center;
}

/* the soft-effects switch is the only place for that option now: a larger box */
.rune-volume .rune-soft-option {
  font-size: 1.1em;
}
.rune-volume .rune-soft-option input {
  width: 24px;
  height: 24px;
}
