@font-face {
  font-family: Pixelify;
  src: url('/assets/pixelify-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

body.arcade-page {
  --night: #071326;
  --paper: #eff8ff;
  --muted: #bacfe5;
  --soft: #9ab3ca;
  --border: #335374;
  --card: #111e35;
  --accent: #83dcf2;
  --accent-dark: #0e2640;
  --arcade-font: Pixelify, ui-monospace, monospace;
  --head-height: 53px;
}
.arcade-page .site-head {
  position: relative;
  z-index: 6;
  background: #0a192c;
  border-color: #305675;
}
.arcade-page .head-wrap {
  position: relative;
  max-width: 1440px;
  min-height: var(--head-height);
  padding-inline: clamp(13px,2.1vw,30px);
  gap: clamp(14px,2vw,27px);
}
.arcade-page .brand { color: #e5faff; font: 600 19px/1 var(--arcade-font); text-transform: uppercase; }
.arcade-page .brand img { flex: none; display: block; image-rendering: pixelated; }
.arcade-page .main-nav {
  flex: 1;
  justify-content: space-between;
  min-width: 0;
  gap: 14px;
  overflow: visible;
  white-space: normal;
}
.play-nav, .browse-nav { display: flex; align-items: center; gap: 3px; }
.browse-nav { flex: none; }
.arcade-page .play-nav > a, .arcade-page .browse-nav > a, .nav-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px clamp(4px,.6vw,9px);
  color: #b9d1e5;
  font: 600 14px/1.13 var(--arcade-font);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
}
.nav-menu { border: 0; padding: 0; }
.nav-menu summary { list-style: none; gap: 4px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  flex: none;
}
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.arcade-page .play-nav > a:hover, .arcade-page .browse-nav > a:hover, .nav-menu > summary:hover,
.arcade-page .main-nav [aria-current], .nav-menu[open] > summary, .nav-menu > summary[data-current] {
  background: #122d46;
  color: #adf0ff;
}
.arcade-page .main-nav [aria-current], .nav-menu > summary[data-current] {
  box-shadow: inset 0 -2px #75d4ec;
}
.nav-flyout {
  position: absolute;
  top: 100%;
  right: clamp(13px,2.1vw,30px);
  z-index: 2;
  display: grid;
  padding: 12px;
  gap: 9px;
  max-height: 62svh;
  overflow-y: auto;
  border: 1px solid #416889;
  background: #0e223a;
  box-shadow: 0 12px 30px #020813b3;
}
.game-flyout {
  width: min(658px,calc(100% - 26px));
  grid-template-columns: 1fr 1fr 1fr;
}
.archive-flyout { width: min(220px,calc(100% - 26px)); gap: 2px; }
.nav-group { display: grid; align-content: start; min-width: 0; }
.nav-group p {
  border-bottom: 1px solid #3b6380;
  color: #93d9ee;
  font: 600 14px/1.2 var(--arcade-font);
  padding: 6px 8px 9px;
  text-transform: uppercase;
}
.arcade-page .nav-flyout a {
  min-height: 38px;
  padding: 6px 8px;
  font: 600 15px/1.15 var(--body);
  color: #d9f0fd;
}
.arcade-page .nav-flyout a:hover { background: #1a3c57; color: #adf0ff; }
@media (max-width: 1110px) {
  body.arcade-page { --head-height: 121px; }
  .arcade-page .head-wrap { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding-block: 3px 0; }
  .arcade-page .head-wrap > .brand { min-height: 30px; width: fit-content; }
  .arcade-page .main-nav { display: grid; gap: 0; margin-right: 0; padding: 0; }
  .play-nav { gap: clamp(0px,1.5vw,14px); }
  .browse-nav { border-top: 1px solid #24415c; }
}
@media (max-width: 610px) {
  .play-nav { display: grid; grid-template-columns: 1fr 1.16fr .94fr 1.12fr .85fr .44fr; gap: 0; }
  .browse-nav { justify-content: space-between; }
  .arcade-page .play-nav > a, .arcade-page .browse-nav > a, .nav-menu > summary { font-size: 12px; padding-inline: 3px; }
  .play-nav .nav-menu > summary { max-width: 100%; }
  .game-flyout { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto 1fr; }
  .game-flyout .nav-group:first-child { grid-row: 1 / span 2; }
  .arcade-page .nav-flyout a { min-height: 44px; }
}
.arcade {
  --scene-height: calc(100svh - var(--head-height));
  position: relative;
  isolation: isolate;
  min-height: var(--scene-height);
  background: #071326;
  border-bottom: 1px solid #244763;
}
.arcade-world {
  position: absolute;
  inset: 0 0 auto;
  overflow: hidden;
  height: var(--scene-height);
  min-height: 490px;
  pointer-events: none;
  background: linear-gradient(#92c6df, #c4e8f3 54%, #23578a 55%, #071326 80%);
  z-index: -1;
}
.arcade-surface, .arcade-world canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arcade-world canvas { image-rendering: pixelated; }
.arcade-world [data-fish] { z-index: 1; }
.arcade-boat, .arcade-companion {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  image-rendering: pixelated;
}
.arcade-boat { width: clamp(174px,14vw,226px); height: auto; }
.arcade-boat:not([style]), .arcade-companion:not([style]) { visibility: hidden; }
.arcade-surface {
  background: linear-gradient(180deg,#cceef330,transparent 66%), url('/assets/lighthouse-bay.webp') center / cover no-repeat;
  filter: saturate(1.18) brightness(1.06);
  image-rendering: pixelated;
  transform: translate(var(--shore-shake,0px),var(--shore-shift,0px));
}
.arcade-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 62%, #07132618 70%, #07132653 83%,#071326d6 100%),
    repeating-linear-gradient(0deg, #081c2b18 0 1px, transparent 1px 4px);
}
.arcade-screen {
  position: relative;
  min-height: var(--scene-height);
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: minmax(230px,1fr) auto clamp(30px,14svh,145px);
  padding: 0 clamp(16px,4vw,56px);
}
.arcade .hero-title {
  min-width: 0;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  text-align: center;
  margin-top: clamp(-100px,-9vh,-28px);
  padding: 0;
}
.arcade .hero-title h1 {
  max-width: 20ch;
  font: 700 clamp(54px,7.8vw,112px)/.89 var(--arcade-font);
  letter-spacing: -.034em;
  text-wrap: balance;
  text-transform: uppercase;
  color: #b22242;
  text-shadow: 2px 2px #ffeabc, 5px 6px #5ca7c8;
}
.arcade .arcade-intro {
  max-width: min(56ch, 92%);
  margin: 12px auto 0;
  color: #183952;
  font: 600 16px/1.35 var(--body);
  text-wrap: pretty;
}
[data-read-background=dark] .arcade .arcade-intro { color: #f6e7e9; }
[data-read-background=light] .arcade .arcade-intro { color: #193451; }
.arcade-mode {
  margin-top: 21px;
  color: #19415e;
  font: 700 clamp(18px,2.25vw,28px)/1.05 var(--arcade-font);
  text-transform: uppercase;
  letter-spacing: .17em;
}
.arcade-rules {
  margin-top: 14px;
  color: #1d4567;
  font: 500 16px/1.25 var(--arcade-font);
}
.arcade-controls {
  grid-row: 2;
  justify-self: center;
  width: min(100%, 568px);
  padding-bottom: 10px;
}
.arcade .game {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 16px;
}
.arcade .game::after { display: none; }
.arcade .game-chrome {
  background: #0e2843;
  border: 1px solid #466d89;
  padding: 0 10px;
  min-height: 35px;
  color: #e3f4ff;
  gap: 9px;
  font: 500 15px/1 var(--arcade-font);
  text-transform: uppercase;
  letter-spacing: .095em;
}
.arcade .ticket-date { color: #c6deed; font-size: 13px; }
.arcade .sound {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 11px;
  min-width: 40px;
  height: 40px;
  color: #bddeef;
  border: 1px solid #335779;
  background: #102139;
  border-radius: 0;
}
.arcade .sound[aria-pressed=true] { color: #86e5ff; border-color: #70c5de; }
.arcade .game-body { padding: 0; min-height: 0; }
.arcade .game-body > .primary {
  width: 100%;
  min-height: 65px;
  margin-top: 10px;
  justify-content: center;
  gap: 13px;
  border: 2px solid #82d9ed;
  background: #122d49;
  color: #e5faff;
  border-radius: 1px;
  box-shadow: inset 0 0 0 3px #0d2037, 0 5px 0 #020d1b, 0 0 24px #439cc52e;
  font: 700 clamp(16px,2.2vw,22px)/1.12 var(--arcade-font);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.arcade .game-body > .primary:hover { background: #174669; color: white; }
.arcade .game-body > .primary svg { color: #97eafa; }
.arcade-setup {
  margin: 9px 0 5px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d3e6fa;
  font: 500 15px/1 var(--arcade-font);
}
.arcade-setup select { width: 0; flex: 1; min-height: 38px; padding-block: 4px; }
.arcade-setup .toggle { margin: 0 0 0 auto; font-size: 15px; white-space: nowrap; }
.arcade-shortcuts {
  display: flex;
  justify-content: flex-start;
  padding-top: 15px;
  flex-wrap: wrap;
  gap: 5px 8px;
}
.arcade-shortcuts a {
  padding: 0 10px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #c4deef;
  border: 1px solid #315572;
  background: #0d2136;
  text-decoration: none;
  font: 500 14px/1 var(--arcade-font);
}
.arcade-shortcuts a:hover { border-color: #81daee; color: #fff; }
.arcade-depth {
  position: absolute;
  right: clamp(16px,4.9vw,71px);
  top: 62%;
  display: grid;
  gap: 3px;
  min-width: 75px;
  color: #a0ccea;
  padding: 8px 12px 8px 16px;
  border-left: 1px solid #567e9d;
  font: 500 13px/1.2 var(--arcade-font);
}
.arcade-depth strong { color: #c2f0fa; font-size: 17px; }
.arcade[data-state=ready] .arcade-depth { background: #0b1a2abf; }
.arcade .game-body h2, .arcade .room-panel h2, .arcade .room-panel h3 {
  font-family: var(--arcade-font);
  font-weight: 600;
  font-size: clamp(27px,4vw,41px);
  line-height: 1;
}
.arcade .game-body .recap h2 strong { font-family: var(--arcade-font); }
.arcade .game-body .rule { color: #bad4e8; font-size: 16px; margin-bottom: 12px; }
.arcade .time-dial {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(currentColor var(--remaining),#2c4764 0);
}
.arcade .time-dial::after { content: ""; width: 24px; height: 24px; background: #101e35; border-radius: 50%; }
.arcade .film-status { color: #a5e6f6; font: 500 15px/1 var(--arcade-font); }
.arcade .film-leader i { height: 6px; border-radius: 0; background: #345274; }
.arcade .film-leader i.current { background: #578fae; }
.arcade .film-leader i.passed { background: #94e4f6; }
.arcade .primary, .arcade .secondary, .arcade input:not([type=checkbox]), .arcade select { border-radius: 1px; }
.arcade .primary:not(.game-body > .primary) { background: #8fdef1; color: #101d34; }
.arcade .secondary { border-color: #3b6688; background: #152e4a; }
.arcade .status, .arcade .hint { color: #a4d8f0; }
.arcade input:not([type=checkbox]), .arcade select {
  background: #08172d;
  border-color: #46708b;
  color: #e4f6fc;
}
.arcade .clock.urgent { color: #ffbec2; }
.arcade .score-chart { border-color: #305577; }
.arcade .room-panel { padding: 16px; border-radius: 1px; background: #0f213ae8; }
.arcade[data-match] .arcade-screen { grid-template-rows: minmax(174px, 1fr) auto clamp(0px,6svh,65px); }
.arcade[data-match] .hero-title { margin-top: -22px; }
.arcade[data-match] .hero-title h1 { font-size: clamp(38px,6.5vw,82px); }
.arcade .room-score-track { height: 3px; background: #344751; }
.arcade .room-score-track i { display: block; width: var(--score); height: 100%; background: var(--accent); }
.arcade-page .reading { padding-top: 2px; }
@media (min-width: 900px) and (max-height: 760px) {
  .arcade-screen { grid-template-rows: minmax(190px,1fr) auto clamp(24px,10svh,100px); }
}
@media (max-width: 720px) {
  .arcade-world { min-height: 445px; }
  .arcade-boat { width: 112px; }
  .arcade-companion { width: 32px; height: 32px; }
  .arcade-surface { background-position: 21% center;  }
  .arcade-screen { grid-template-rows: minmax(161px,1fr) auto clamp(17px,5svh,50px); padding-inline: 18px; }
  .arcade .hero-title { margin-top: clamp(-70px,-7vh,-22px); }
  .arcade .hero-title h1 { font-size: clamp(42px,12vw,70px); text-shadow: 2px 2px #ffeabc, 4px 4px #5ca7c8; }
  .arcade-mode { margin-top: 13px; font-size: 17px; }
  .arcade-rules { margin-top: 7px; font-size: 14px; }
  .arcade .arcade-intro { margin-top: 8px; font-size: 14px; }
  .arcade-depth { display: none; }
  .arcade-controls { padding-bottom: 4px; }
  .arcade .sound { inset: -45px 0 auto auto; margin: 0; height: 44px; min-width: 44px; }
  .arcade .game-body > .primary { min-height: 57px; margin-top: 8px; }
  .arcade-shortcuts { padding-top: 11px; gap: 5px; }
  .arcade-shortcuts a { min-height: 37px; padding: 0 8px; font-size: 13px; }
  .arcade .room-lobby { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .arcade .room-lobby form + form { border: 0; padding: 0; }
  .arcade .room-lobby h2 { font-size: clamp(19px,5.4vw,24px); }
  .arcade .room-lobby .primary, .arcade .room-lobby .secondary { width: 100%; padding-inline: 6px; font-size: 15px; }
  .arcade[data-match] .arcade-screen { grid-template-rows: minmax(142px,1fr) auto 15px; }
  .arcade .answer-form { gap: 6px; }
  .arcade .answer-form .primary { padding-inline: 8px; }
  .arcade .answer-form .answer { flex-basis: 127px; }
}
@media (max-width: 350px) {
  .play-nav .nav-menu > summary { position: relative; display: grid; align-content: center; padding-inline: 1px; overflow-wrap: normal; }
  .play-nav .nav-menu > summary::after { position: absolute; right: 1px; bottom: 5px; width: 4px; height: 4px; }
  .arcade-screen { grid-template-rows: minmax(161px,1fr) auto 8px; }
  .arcade .hero-title h1 { font-size: clamp(30px,11vw,42px); }
  .arcade-setup { gap: 5px; }
  .arcade-setup .toggle { gap: 4px; }
}

@media (max-height: 480px) and (max-width: 900px) {
  .arcade[data-state=ready]:not([data-match]) .arcade-screen { grid-template-rows: minmax(134px,1fr) auto 12px; }
  .arcade[data-state=ready] .hero-title h1 { font-size: clamp(30px,7.5vw,54px); }
  .arcade[data-state=ready] .arcade-boat { width: 95px; }
}

/* The play field is separate from the landing layout. */
.arcade { --coral: #f79786; --sand: #f4d095; --play-top: clamp(144px,23svh,255px); --play-ground: clamp(36px,8svh,94px); }
.arcade[data-state=ready] :is(.play-hud,.play-menu) { display: none; }
.arcade-page:has(.arcade:not([data-state=ready])) .site-head { display: none; }
.arcade:not([data-state=ready]) { --head-height: 0px; overflow: clip; }
.arcade:not([data-state=ready]) .arcade-world { background: #102d4c; }
.arcade:not([data-state=ready]) .arcade-world::after {
  background: linear-gradient(to bottom,transparent 60%,#06122521 79%,#071326c4 100%),
    repeating-linear-gradient(0deg,#091d341d 0 1px,transparent 1px 4px);
}
.arcade:not([data-state=ready]) .arcade-screen {
  display: flex;
  align-items: start;
  justify-content: center;
  min-height: 100svh;
  padding: var(--play-top) 16px var(--play-ground);
}
.arcade:not([data-state=ready]) :is(.hero-title,.game-chrome,.arcade-shortcuts,.arcade-depth) { display: none; }
.arcade:not([data-state=ready]) .arcade-controls { width: min(100%,674px); padding: 0; }
.arcade:not([data-state=ready]) .game { position: static; }
.arcade:not([data-state=ready]) .game .sound {
  inset: 22px clamp(17px,4.2vw,68px) auto auto;
  margin: 0;
  z-index: 2;
}
.play-hud {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: min(100% - 162px, 870px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0,146px) 1fr minmax(0,146px);
  gap: clamp(8px,6.3vw,92px);
  align-items: start;
  color: #d1ecf4;
  font-family: var(--arcade-font);
  text-transform: uppercase;
}
.hud-meter {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 8px 13px 10px;
  border: 1px solid #517591;
  border-top: 3px solid #6ab5d6;
  background: #0f2842;
  box-shadow: 3px 4px #0a182b80;
}
.hud-meter span { color: #a2bed5; font-size: 13px; letter-spacing: .13em; font-weight: 500; }
.hud-meter strong { color: #a8eeff; font: 700 clamp(24px,2.7vw,37px)/1 var(--arcade-font); white-space: nowrap; }
.hud-score { justify-items: end; border-top-color: #cd9a58; }
.hud-score strong { color: var(--sand); }
.hud-progress {
  justify-self: center;
  align-self: start;
  padding: 8px 12px;
  background: #102945;
  border-bottom: 1px solid #577f9b;
  text-align: center;
  min-width: 124px;
}
.hud-progress span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.arcade .hud-progress .film-leader { margin: 0; justify-content: center; gap: 5px; }
.arcade .hud-progress .film-leader i {
  flex: 0 1 13px;
  width: 13px;
  height: 9px;
  background: #243e59;
  border: 1px solid #6887a0;
}
.arcade .hud-progress .film-leader i.current { border-color: #eec68b; background: #c39760; }
.arcade .hud-progress .film-leader i.passed { border-color: #7edde5; background: #6ebfd5; }
.play-menu {
  position: absolute;
  z-index: 5;
  top: 22px;
  left: clamp(17px,4.2vw,68px);
  color: #d4eef9;
  font: 600 14px/1 var(--arcade-font);
  border: 0;
  padding: 0;
}
.play-menu summary {
  min-height: 44px;
  padding: 12px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #102139;
  border: 1px solid #476f8e;
  list-style: none;
}
.play-menu summary::-webkit-details-marker { display:none; }
.play-menu summary::before {
  content: "";
  flex: 0 0 13px;
  height: 10px;
  background: repeating-linear-gradient(#91c6db 0 2px,transparent 2px 4px);
}
.play-menu nav {
  position: absolute;
  min-width: 159px;
  margin-top: 5px;
  display: grid;
  padding: 4px 10px;
  background: #102139;
  border: 1px solid #476f8e;
}
.play-menu nav a { display: flex; align-items: center; min-height: 40px; }

.arcade .game:is([data-phase=playing],[data-phase=reveal]) .game-body,
.arcade [data-room-body] .match-field {
  display: grid;
  grid-template-rows: auto minmax(38px,1fr) auto;
  min-height: calc(100svh - var(--play-top) - var(--play-ground));
}
.prompt-plate {
  --corner: 10px;
  width: min(100%,536px);
  justify-self: start;
  margin: 0 0 0 clamp(0px,3vw,30px);
  position: relative;
  padding: clamp(18px,3vw,32px);
  background: #10253ff7;
  border: 1px solid #5f91b1;
  box-shadow: 3px 6px #091527b0;
  clip-path: polygon(var(--corner) 0,100% 0,100% calc(100% - var(--corner)),calc(100% - var(--corner)) 100%,0 100%,0 var(--corner));
}
.prompt-plate::before,.prompt-plate::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #7acde7;
}
.prompt-plate::before { left: 7px; bottom: 7px; }
.prompt-plate::after { top: 7px; right: 7px; }
.arcade .prompt-plate h2,.arcade .prompt-plate h3 { color:#eff8ff; margin:0 0 12px; font-size:clamp(25px,3.1vw,44px); text-wrap:pretty; }
.arcade .prompt-plate .rule { margin:0; }
.arcade .prompt-plate .outcome { margin:0; padding:0; animation:none; }
.arcade .prompt-plate .outcome-up { margin-bottom:10px; font-family:var(--arcade-font); }
.arcade .prompt-plate .outcome.timeout .outcome-up { color:var(--coral); }
.arcade .prompt-plate .outcome.spotlight .outcome-up { color:var(--sand); }
.arcade .prompt-plate .outcome p { color:#c5daeb; }
.arcade[data-effect=score] .reply-plate { animation: log-feedback .28s ease-out both; }
.arcade[data-effect=rare] .reply-plate { animation: rare-signal .72s ease-out both; }
.arcade[data-effect=timeout] .reply-plate { animation: log-feedback .36s .09s ease-out both; }
.answer-console {
  grid-row: 3;
  min-width: 0;
  align-self: end;
  --clock-left: 100%;
}
.console-line { display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; gap:10px; }
.console-line [data-entry], .console-line [data-room-entry] { min-width:0; }
.arcade .console-line .clock { margin:0; }
.arcade .console-line .time-dial {
  width:50px;
  height:50px;
  flex:0 0 50px;
  position: relative;
  color:#a3eaff;
  outline:1px solid #426f90;
  outline-offset:2px;
  background:conic-gradient(currentColor var(--remaining),#264560 0);
}
.arcade .console-line .urgent .time-dial { color:var(--coral); }
.arcade .console-line .time-dial::after { position:absolute; width:43px;height:43px;background:#0e253e; }
.time-dial [data-seconds] { grid-area:1/1;position:relative;z-index:1;font:700 23px/1 var(--arcade-font); }
.console-line .answer-form { display:grid; grid-template-columns:minmax(0,1fr) auto;gap:7px; }
.arcade .console-line .answer { background:#081b30; border:1px solid #77b8d2; min-height:52px; font:500 18px/1.25 var(--arcade-font); }
.arcade .console-line .primary { font:700 17px/1.15 var(--arcade-font); background:var(--sand);color:#1c2940;letter-spacing:.035em; }
.arcade .console-line .primary:disabled { opacity:1; background:#837d78; color:#142236; }
.console-line form::after {
  content:"";
  grid-column:1;
  height:3px;
  margin-top:-3px;
  margin-left:1px;
  margin-right:1px;
  background:linear-gradient(90deg,#77d2e9 0 var(--clock-left),#173a58 var(--clock-left));
}
.console-tools { min-width:0; margin-left:60px; }
.console-tools .game-actions { margin-top:5px;gap:12px; }
.console-tools .quiet { min-height:38px; color:#bcd5e9; }
.console-tools .quiet:hover { color:#fff; }
.arcade .console-tools .feedback[data-rejected] { color:#ffb2a1; }
.console-tools :is(.feedback,.status,.hint):not(:empty) { padding:6px 9px; background:#0b1b30; border-left:2px solid #6799b5; }
.console-tools .feedback[data-rejected] { border-left-color:#fa9d86; }
.answer-console[data-sending] .answer { opacity:.73; }
.answer-console [data-preview] {
  margin:0;
  color:#e1f4fb;
  background:#102741;
  border:1px solid #436d89;
  font:500 17px/1.25 var(--arcade-font);
  padding:14px 12px;
}
.arcade .next-console .primary { min-width:min(100%,250px); min-height:48px; font:700 19px/1.15 var(--arcade-font); }
.arcade[data-effect=timeout] .arcade-world { animation: pressure-jolt .65s ease-out; }
@keyframes pressure-jolt {
  0%,66%,100% { transform:none; }
  10%,28% { transform:translate(-5px,4px) scale(1.018); }
  20%,41% { transform:translate(5px,-3px) scale(1.018); }
  52% { transform:translate(2px,2px) scale(1.008); }
}
@keyframes rare-signal { from { background:#324253; } to { background:#10253fef; } }
@keyframes log-feedback { from { opacity:.64; transform:translateY(5px); } to { opacity:1; transform:none; } }
.arcade[data-state=complete] { --play-top:clamp(123px,16svh,164px); }
.arcade[data-state=complete] .game-body { background:#10233dee; border:1px solid #497795; padding:clamp(17px,4vw,34px); }
.arcade .recap .recap-depth { color:#a1dff5; margin:2px 0; font:700 24px/1.15 var(--arcade-font); }

.arcade[data-match]:not([data-state=ready]) .room-panel { background:transparent; border:0; padding:0; box-shadow:none; }
.arcade[data-match]:not([data-state=ready]) .room-top { padding:6px 12px;background:#10233deb;border:1px solid #497795; }
.arcade[data-match]:not([data-state=ready]) .room-top h2 { font-size:22px;margin-bottom:3px; }
.arcade[data-match] .player-list > div,.arcade[data-match] .room-reveal article { background:#10233ded; }
.arcade[data-match] .match-field { min-height:calc(100svh - var(--play-top) - var(--play-ground) - 170px); }
.arcade[data-match] .match-field .prompt-plate h3 { margin-top:0; }
.arcade[data-match] .match-field .answer-console { margin-top:7px; }
.arcade[data-match] .match-field .console-line p { margin:0;background:#112a46;padding:11px; }
.arcade[data-match][data-state=complete] [data-room-body] { background:#10233def; padding:16px; }

@media(max-width:720px) {
  .arcade { --play-top:124px; --play-ground:clamp(12px,4svh,28px); }
  .arcade:not([data-state=ready]) .arcade-screen { padding-inline:14px; }
  .play-hud { width:calc(100% - 24px); top:9px; gap:6px; grid-template-columns:minmax(64px,1fr) minmax(106px,1.3fr) minmax(58px,1fr); }
  .hud-meter { padding:4px 7px 6px; gap:1px; }
  .hud-meter span { font-size:10px; }
  .hud-meter strong { font-size:clamp(17px,5vw,25px); }
  .hud-progress { min-width:0;padding:7px 6px; }
  .hud-progress span { font-size:10px; }
  .arcade .hud-progress .film-leader { gap:3px; }
  .arcade .hud-progress .film-leader i { width:8px;flex-basis:8px;height:7px; }
  .play-menu { top:66px;left:14px; }
  .play-menu summary { font-size:12px;min-height:41px;padding:9px; }
  .arcade:not([data-state=ready]) .game .sound { inset:66px 14px auto auto; min-width:42px;height:41px; }
  .prompt-plate { margin-left:0;width:100%;padding:16px; }
  .arcade .prompt-plate h2,.arcade .prompt-plate h3 { font-size:clamp(24px,7vw,32px); }
  .arcade .prompt-plate .rule { font-size:15px; }
  .arcade .game[data-phase=playing] .game-body,
  .arcade[data-state=playing] [data-room-body] .match-field:has(.answer) {
    grid-template-rows: auto auto 1fr;
    row-gap: 32px;
  }
  .arcade .game[data-phase=playing] .answer-console,
  .arcade[data-state=playing] .match-field:has(.answer) .answer-console {
    grid-row: 2;
    align-self: start;
  }
  .console-line { grid-template-columns:40px minmax(0,1fr); gap:8px; }
  .arcade .console-line .time-dial { width:40px;height:40px;flex-basis:40px; }
  .arcade .console-line .time-dial::after { width:34px;height:34px; }
  .time-dial [data-seconds] { font-size:20px; }
  .arcade .console-line .answer { font-size:16px;min-height:47px;padding-inline:8px; }
  .arcade .console-line .primary { font-size:15px; }
  .console-tools { margin-left:48px; }
  .console-tools .quiet { min-height:44px; }
  .console-tools .game-actions { gap:7px; }
  .arcade[data-match] .match-field { min-height:calc(100svh - var(--play-top) - var(--play-ground) - 146px); }
  .arcade[data-match] .player-list { margin-top:7px; }
}
@media(max-height:590px) and (min-width:721px) {
  .arcade { --play-top:102px; --play-ground:14px; }
}
@media(min-width:721px) and (max-width:1150px) {
  .arcade:not([data-state=ready]) { --play-top: max(153px,22svh); }
  .arcade:not([data-state=ready]) .game .sound,.play-menu { top:112px; }
}
@media(prefers-reduced-motion:reduce) {
  .arcade[data-effect=timeout] .arcade-world,.arcade[data-effect] .reply-plate { animation:none; }
}

/* Game library, archives, and support pages share the same control surfaces. */
body.arcade-page {
  --display: var(--arcade-font);
  --library-width: 1168px;
  --library-gutter: clamp(16px,4.5vw,58px);
}
.arcade-page a:hover { color: #ecfaff; }
.arcade-page .primary:hover { background: #b4f1ff; color: var(--accent-dark); }
.arcade-page :is(.primary,.secondary,.quiet,.filter) { border-radius: 1px; }
.arcade-page :is(.secondary,.filter) { background: #10253d; border-color: #3b6888; }
.arcade-page :is(.secondary,.filter):hover { border-color: #9fe8fa; }
.arcade-page .filter[aria-pressed=true] { background: var(--accent); border-color: var(--accent); }
.arcade-page .site-footer { background: #0a192c; }
.arcade-page .site-footer nav a { color: #bdd4e9; }
.arcade-page .site-footer nav a:hover { color: #a5edff; text-decoration: underline; }

.library-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #46718f;
  background: #123456;
}
.library-banner::before, .library-banner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}
.library-banner::before {
  background: linear-gradient(90deg,#102b46 3%,#143755 44%,#193951b3 65%,#24465f38),
    linear-gradient(0deg,#102338a8,transparent 66%),
    url('/assets/lighthouse-bay.webp') right 45% / min(66vw,1080px) auto no-repeat;
}
.library-banner::after {
  background: repeating-linear-gradient(transparent 0 3px,#05122730 3px 4px);
}
.library-inner, .arcade-page .document {
  width: min(100%, var(--library-width));
  margin-inline: auto;
  padding-inline: var(--library-gutter);
}
.library-inner { padding-block: 24px 40px; }
.library-banner .breadcrumbs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 17px;
  color: #dcf1ff;
  font-size: 14px;
  text-shadow: 0 1px 3px #071528;
}
.library-banner .breadcrumbs a { color: #c0e7fc; }
.library-banner .hero-title { padding: 0; }
.library-banner h1 {
  color: #f1f9ff;
  font-size: clamp(34px,4.65vw,65px);
  font-weight: 600;
  max-width: 22ch;
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 3px #071b31, 2px 0 #79cde94d;
  margin: 0;
}
.library-banner .hero-title > p {
  color: #daeaf9;
  font-size: clamp(16px,1.5vw,19px);
  line-height: 1.43;
  max-width: 57ch;
  margin-top: 14px;
  text-shadow: 0 1px 4px #051326;
}
.arcade-page .document { padding-block: 34px 64px; }
.arcade-page .document.simple { min-height: 27vh; }
.arcade-page .document h2, .arcade-page .control-panel h2 {
  font-size: clamp(25px,3.2vw,37px);
  font-weight: 600;
  margin-bottom: 13px;
}
.arcade-page .document h3 { font-size: clamp(19px,2.5vw,26px); font-weight: 600; }
.library > :first-child, .after-arcade > :first-child { margin-top: 0; }
.library > :last-child { margin-bottom: 0; }
.library > .primary + .reading, .library > .control-panel + .reading,
.library > .related + .reading, .library > .warmup + .reading { margin-top: 33px; }
.arcade-page .reading {
  gap: 21px clamp(20px,4vw,55px);
  padding-top: 0;
}
.arcade-page .reading section {
  min-width: 0;
  padding: 17px 0 13px;
  border-top: 1px solid #2f4d69;
}
.arcade-page .reading section:first-child { grid-column: auto; }
.arcade-page .reading section h2 { font-size: clamp(23px,2.4vw,29px); text-wrap: pretty; }
.arcade-page .reading p { max-width: 69ch; }
.arcade-page .reading section:only-child { grid-column: 1 / -1; }
.arcade-page .article-reading {
  grid-template-columns: minmax(0, 1fr);
  max-width: 74ch;
  gap: 4px;
}
.article-reading + .editor-list { margin-top: 22px; }
.arcade-page .document .control-panel {
  max-width: 780px;
  border-radius: 1px;
  border-color: #496c8a;
  background: linear-gradient(#12273f,#0d1b31);
  box-shadow: 0 10px 32px #02081487;
  padding: clamp(15px,2.4vw,26px);
}
.arcade-page .document .control-panel :is(input,textarea,select) {
  color: var(--paper);
  border-color: #517590;
  background: #08172b;
  border-radius: 1px;
}
.arcade-page .document .control-panel :is(input,textarea,select):focus { border-color: var(--accent); }
.arcade-page .document .control-panel :is(.status,[data-editions],[data-answer-edition]):not(:empty) { margin-top: 12px; }
.arcade-page .document .edition summary { padding-block: 11px; }
.arcade-page .document .edition[open] summary { color: var(--accent); }
.arcade-page .document .edition-body { padding-inline: 12px 0; }
.arcade-page .document .edition summary span { margin-left: 7px; }
.arcade-page .section-toolbar {
  display: flex;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.arcade-page .section-toolbar h2 { margin: 0; }
.arcade-page .editor-list { margin-bottom: 32px; }
.arcade-page .case-list { margin: 14px 0 0; }
.arcade-page .case-list li { gap: 10px clamp(16px,3vw,46px); padding: 16px 10px; }
.arcade-page .case-list li:nth-child(odd) { background: #10223a; }
.arcade-page .case-list .source-link { margin-top: 3px; }
.arcade-page .case-list h3, .arcade-page .case-list p { overflow-wrap: anywhere; }
.arcade-page .case-list .case-label { margin-top: 4px; }
.arcade-page .related { margin-top: 36px; }
.arcade-page .library > .related:first-child { margin-top: 0; }
.arcade-page .related-grid {
  gap: 10px;
  border: 0;
}
.arcade-page .route-card {
  min-height: 100%;
  gap: 6px;
  padding: 14px 16px 13px;
  border: 1px solid #3b5f7c;
  background: linear-gradient(130deg,#142f4b,#10223b 75%);
  box-shadow: inset 0 2px #78b6d359;
  overflow-wrap: anywhere;
}
.arcade-page .route-card h3 {
  color: #e6f6ff;
  font: 600 clamp(21px,2.25vw,28px)/1.07 var(--arcade-font);
  justify-content: space-between;
  gap: 10px;
}
.arcade-page .route-card h3 svg { width: 20px; height: 20px; }
.arcade-page .related-compact .route-card h3 { font-size: clamp(20px, 2.1vw, 24px); }
.arcade-page .route-card:hover, .arcade-page .route-card:focus-visible {
  background: linear-gradient(130deg,#1b405b,#173550 75%);
  border-color: #83dcf2;
}
.arcade-page .shelf-caption { color: #96d5ec; font-weight: 600; }
.library-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.arcade-page .warmup, .arcade-page .tier-list {
  margin: 22px 0 24px;
  padding: 10px 17px;
  border: 1px solid #365a79;
  background: #10213a;
}
.arcade-page .warmup > p, .arcade-page .warmup > a { margin-bottom: 10px; }
.arcade-page .warmup > a { display: inline-block; }
.arcade-page .tier-list { padding-block: 17px 9px; }
.arcade-page .tier-list dl { margin: 10px 0; }
.arcade-page .tier-list dl div { padding: 8px 0 1px; }
.arcade-page .tier-list dd { font: 600 28px/1.2 var(--arcade-font); }
@media (max-width: 720px) {
  .library-inner { padding-block: 17px 24px; }
  .library-banner::before {
    background: linear-gradient(90deg,#102b46 7%,#143755e8 51%,#203d58a8),
      url('/assets/lighthouse-bay.webp') right 46% / cover no-repeat;
  }
  .library-banner .breadcrumbs { margin-bottom: 13px; gap: 3px 8px; }
  .library-banner h1 { max-width: 16ch; }
  .library-banner .hero-title > p { margin-top: 11px; }
  .arcade-page .document { padding-block: 23px 43px; }
  .arcade-page .route-card { padding: 12px; }
  .arcade-page .case-list li { padding: 13px 9px; }
  .arcade-page .reading { gap: 13px 20px; }
}
.arcade-page .route-card:has(.shelf-symbol) {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  column-gap: 13px;
}
.shelf-symbol {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  color: #9ddff7;
  place-items: center;
  border: 1px solid #467794;
  background: repeating-linear-gradient(#183452 0 3px,#152d47 3px 4px);
  margin-top: 4px;
}
.route-card:nth-child(2) .shelf-symbol { color: #c2adf4; }
.route-card:nth-child(3) .shelf-symbol { color: #f2bc82; }
.route-card:nth-child(4) .shelf-symbol { color: #9bdfd0; }
.shelf-copy p { color: #c2d7e9; font-size: 16px; line-height: 1.35; margin-top: 6px; }
.shelf-copy .shelf-caption { display: block; margin-bottom: 3px; }
@media (max-width: 420px) {
  .arcade-page .route-card:has(.shelf-symbol) { column-gap: 9px; }
  .shelf-symbol { min-width: 35px; min-height: 35px; }
  .shelf-symbol svg { width: 21px; height: 21px; }
}

.arcade-page .reading.faq-list {
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  max-width: 820px;
}
.arcade-page .faq-list section { padding: 0; border-top: 0; }
.arcade-page .faq-list details { padding-inline: 10px; }
.arcade-page .faq-list summary { padding-block: 13px; color: var(--accent); }
.arcade-page .faq-list summary h2 { display: inline; margin: 0; }
.arcade-page .faq-list details p { padding: 0 18px 7px; }
.arcade-page .faq-list .source-link { margin: 0 18px; }

/* Mode cards, player panels and site preferences */
.settings-link { background: transparent; border: 0; color: #a9c8dd; cursor: pointer; padding: 8px; font: 600 14px var(--arcade-font); }
.settings-link:hover { color: #fff; text-decoration: underline; }
.feature-page { display: grid; gap: 24px; }
.feature-page .control-panel h2, .settings-dialog h2 { font-family: var(--arcade-font); color: #e7f5ff; }
.feature-links, .feature-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mode-grid, .pass-grid, .feature-account { display: grid; gap: 16px; }
.mode-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); }
.pass-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); }
.mode-tile {
  --tile-color:#8de5ef;
  display: grid;
  gap: 13px;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  min-height: 207px;
  padding: 24px;
  background: linear-gradient(135deg,color-mix(in srgb,var(--tile-color) 13%,#0b1930), #0b1930 70%);
  border: 1px solid #355071;
  border-top: 3px solid var(--tile-color);
  color: #e7f5ff;
  text-decoration: none;
}
.mode-tile[data-tint=pink] { --tile-color: #ff819c; }
.mode-tile[data-tint=gold] { --tile-color: #ffcc77; }
.mode-tile[data-tint=mint] { --tile-color: #9de3a9; }
.mode-tile:hover, .mode-tile:focus-visible { border-color: var(--tile-color); background-color: #183650; }
.mode-symbol { color: var(--tile-color); font: 700 24px/1 var(--arcade-font); }
.mode-tile h2,.profile-metrics strong { font: 700 clamp(22px,3vw,31px)/1.12 var(--arcade-font); }
.mode-tile p { color: #bcd4e7; margin: 0; }
.mode-cta { color: var(--tile-color); font: 600 15px var(--arcade-font); }
.feature-map { columns: 3 235px; column-gap: 30px; }
.feature-map li { break-inside: avoid; margin-block: 7px; }
.feature-map a, .feature-meta a { color: #9de8f8; }
.pass-highlight { border-top: 3px solid #ffc477; }
.pass-highlight h2 small { color: #bcd4e7; font: 600 16px var(--body); }
.pass-highlight [data-pass] { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pass-highlight [data-pass] .status { flex-basis: 100%; }
.pass-payment-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  width: 100%;
  gap: 10px;
}
.pass-payment-buttons button { min-height: 44px; white-space: normal; }

.profile-head { display: flex; align-items: center; gap: 17px; }
.profile-head img, .skin-grid img, .locker-window img { image-rendering: pixelated; }
.profile-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-block: 16px; }
.profile-metrics div { display: grid; gap: 9px; background: #0b2035; border: 1px solid #2d4e69; padding: 12px; }
.profile-metrics small,.history-list span,.skin-choice small { color: #b7cde1; }
.history-list { list-style: none; padding: 0; max-height: 50vh; overflow: auto; }
.history-list li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2d4e69; }
.history-list span { display: block; }
.remove-account { margin-top: 18px; }
.remove-account form input { display: block; }
.skin-form { min-width: 0; display: grid; gap: 22px; }
.locker-preview, .skin-card { --skin-color: #ff876f; }
.skin-form [data-skin=tide] { --skin-color: #8defe6; }
.skin-form [data-skin=ember] { --skin-color: #ffa44c; }
.skin-form [data-skin=projector] { --skin-color: #ffdc81; }
.skin-form [data-skin=noir] { --skin-color: #adc1ff; }
.skin-form [data-skin=festival] { --skin-color: #f597cf; }
.locker-preview { display: grid; grid-template-columns: minmax(230px,1fr) minmax(0,1.2fr); align-items: center; gap: 26px;
  border: 1px solid #4a6682; border-inline-start: 4px solid var(--skin-color); background: #101f34; padding: 18px; }
.locker-window, .skin-art { display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 63%,color-mix(in srgb,var(--skin-color) 23%,#102840),#0a172b 78%); }
.locker-window { min-height: 182px; border: 1px solid #4a6682; }
.locker-window img { max-width: 100%; height: auto; }
.locker-copy h2, .skin-grid legend { color: #f0f7ff; font: 700 26px/1.18 var(--arcade-font); }
.locker-copy p { color: #c8ddf0; font-size: 16px; margin: 8px 0; }
.locker-copy .locker-requirement { color: var(--skin-color); font-weight: 600; }
.skin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; min-width: 0; padding: 0; margin: 0; border: 0; }
.skin-grid legend { padding: 0 0 12px; }
.skin-card { min-width: 0; border: 1px solid #466380; background: #112640; padding: 8px; }
.skin-card:has([aria-pressed=true]) { border-color: var(--skin-color); box-shadow: inset 0 -3px var(--skin-color); }
.skin-preview-button { display: grid; gap: 4px; width: 100%; text-align: start; padding: 0 0 6px;
  color: #f0f7ff; background: none; border: 0; cursor: pointer; font: 600 17px/1.24 var(--body-font, Barlow, sans-serif); }
.skin-preview-button:hover .skin-art { outline: 1px solid var(--skin-color); }
.skin-art { min-height: 90px; margin-bottom: 5px; }
.skin-art img { max-width: 100%; height: auto; }
.skin-state, .skin-radio { color: #d3e5f5; font: 500 15px/1.3 Barlow, sans-serif; overflow-wrap: anywhere; }
.skin-state { color: var(--skin-color); }
.skin-radio { display: flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
.skin-radio input { accent-color: #87dce7; inline-size: 17px; block-size: 17px; margin: 0; }
.skin-radio-locked { cursor: default; }
.locker-actions .feature-links { margin-top: 10px; }
.locker-actions input[type=text], .locker-actions input[name=nickname] { display: block; max-width: 320px; width: 100%; margin-top: 6px; }
@media (max-width: 580px) {
  .locker-preview { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 11px; }
  .locker-window { min-height: 108px; }
  .locker-window img { width: 160px; }
  .locker-copy h2, .skin-grid legend { font-size: 22px; }
  .skin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
.settings-dialog { min-width: min(390px,calc(100vw - 34px)); max-width: min(600px,calc(100vw - 34px)); max-height: 85svh; margin: auto; padding: 18px; color: #e7f5ff; background: #10233d; border: 1px solid #4c7896; }
.settings-dialog::backdrop { background: #040c19b7; }
.settings-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.settings-dialog fieldset { display: grid; gap: 11px; border: 1px solid #375b78; padding: 12px; margin-block: 14px; }
.settings-dialog label { display: flex; gap: 9px; align-items: center; }
.settings-dialog input[type=checkbox] { accent-color: #87dce7; }
[data-easy=yes] .arcade :is(h1,.arcade-mode,.arcade-rules),[data-easy=yes] .library-banner h1,[data-easy=yes] .game-chrome { font-family: var(--body); letter-spacing: 0; }
[data-read-size=large] :is(.reading,.control-panel,.game-body) { font-size: 1.12rem; }
[data-read-size=extra] :is(.reading,.control-panel,.game-body) { font-size: 1.28rem; }
[data-read-background=dark] .arcade-world,[data-read-background=light] .arcade-world { visibility: hidden; }
[data-read-background=dark] .arcade { background: #091829; }
[data-read-background=dark] .arcade :is(.hero-title h1,.arcade-mode,.arcade-rules) { color: #f6e7e9; text-shadow: none; }
[data-read-background=light] .arcade { background: #e1f3f7; }
[data-read-background=light] .arcade :is(.hero-title h1,.arcade-mode,.arcade-rules) { color: #193451; text-shadow: none; }
[data-motion=still] .arcade *, [data-motion=still] .mode-tile { animation-duration: .001ms !important; transition-duration: .001ms !important; }
.native-slot { padding: 8px 0; margin-block: 25px; border-block: 1px solid #294763; }
.native-slot small { color: #9fb9cf; }
.native-slot iframe { width: 100%; display: block; border: 0; height: 180px; }
@media (max-width: 610px) {
  .arcade-page .play-nav { grid-template-columns: 1.12fr .85fr .9fr .65fr .48fr .58fr; }
  .settings-link { font-size: 12px; }
  .profile-metrics div { padding: 6px; }
  .profile-metrics strong { font-size: 19px; }
}
.relay-dock { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr)); gap: 18px; }
.relay-dock section,.relay-dock form { padding: 17px; border: 1px solid #314f69; background: #102139; margin-bottom: 12px; }
.relay-dock h2,.relay-top h2 { font-size: 24px; margin-bottom: 12px; }
.relay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.relay-dock form button { margin-top: 10px; }
.relay-dock form button + button { margin-left: 6px; }
.relay-top,.relay-rooms li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.relay-rooms,.relay-players,.league-list { list-style: none; padding: 0; margin-block: 14px; }
.relay-rooms li { padding-block: 7px; border-bottom: 1px solid #304a66; }
.relay-players { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,156px),1fr)); gap: 8px; }
.relay-players li,.league-list li { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #37516f; background: #102644; }
.relay-players li[data-turn=true] { border-color: #fed283; background: #2c2b40; }
.relay-players strong,.relay-players small,.league-list small { display: block; overflow-wrap: anywhere; }
.relay-players img,.league-list img { image-rendering: pixelated; flex: none; }
.relay-clue { border: 1px solid #3c737d; padding: clamp(12px,3vw,22px); background: #0c203a; }
.relay-turn { display: flex; align-items: center; justify-content: space-between; color: #ffda94; gap: 10px; margin-bottom: 10px; }
.relay-count,.league-position { font: 700 19px var(--arcade-font); }
.relay-clue h3 { font: 700 clamp(23px,4vw,34px)/1.15 var(--arcade-font); }
.relay-clue input { margin-bottom: 8px; }
.relay-last { padding: 10px 0; color: #97e3e5; }
.relay-report { margin-block: 14px 6px; }
.league-list { display: grid; gap: 6px; }
.league-position { color: #9de8f8; min-width: 20px; }
.league-list li { flex-wrap: wrap; }
.league-list li div { flex: 1; }
.league-list li small { color: #aac4d8; }
.pack-rounds { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-rounds a { min-width: 84px; }
.archive-controls { display: grid; grid-template-columns: minmax(0,2fr) minmax(150px,1fr); gap: 12px; }
@media (max-width: 560px) { .archive-controls { grid-template-columns: 1fr; } }
.feature-page > .mode-grid:has(.mode-tile) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); max-width: 380px; gap: 4px; margin-block: 18px; }
.calendar-grid p { grid-column: 1 / -1; font: 700 17px var(--arcade-font); }
.calendar-grid :is(small,span,button) { text-align: center; padding: 4px; color: #aac4d8; }
.calendar-grid button { color: #effaff; border: 1px solid #487b93; background: #1d4260; min-height: 33px; cursor: pointer; }
.calendar-grid button:hover { background: #285d76; }
@media (max-width: 900px) { .feature-page > .mode-grid:has(.mode-tile) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 610px) {
  .arcade-page .play-nav { grid-template-columns: 1.13fr .87fr 1fr .68fr .62fr .65fr; }
  .arcade-page .play-nav > a { min-width: 40px; }
  .mode-tile { padding: 16px; }
  .mode-tile h2 { font-size: 22px; }
}
@media (max-width: 350px) {
  .arcade-page .play-nav { grid-template-columns: 1.1fr .9fr 1fr .7fr .7fr .65fr; }
  .arcade-page .play-nav > a { font-size: 11px; min-width: 0; }
  .feature-page > .mode-grid:has(.mode-tile) { grid-template-columns: 1fr; }
}
.trend-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.trend-list li { display: grid; grid-template-columns: minmax(130px,2fr) 1fr minmax(58px,auto); align-items: center; gap: 10px; }
.trend-list meter { width: 100%; min-width: 0; }
.native-slot iframe { height: 220px; }
.feature-page > .mode-subjects,.feature-page > [data-relay] { max-width: none; }
.feature-page > .pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pack-panel h2 { font-size: clamp(21px,2.7vw,32px); line-height: 1.2; overflow-wrap: anywhere; }
.pack-rounds { margin-top: 12px; }
.pack-rounds a { min-width: 70px; padding-inline: 9px; }
.relay-turn-owner { display: inline-flex; align-items: center; gap: 10px; }
.relay-clapper { flex: none; display: inline-block; transform-origin: bottom center; }
.relay-clapper[data-cue=answer] { animation: relay-pass .39s cubic-bezier(.22,.7,.36,1); }
.relay-clapper[data-cue=timeout],.relay-clapper[data-cue=pass] { animation: relay-miss .4s ease; }
.relay-final { background: #102844; padding: 18px; border: 1px solid #476e88; }
.relay-final[data-win=true] { border-color: #ffc477; box-shadow: inset 0 0 30px #e7a64923; }
@keyframes relay-pass { from { transform: translateX(-12px) rotate(-14deg); opacity:.62; } to { transform: none; opacity:1; } }
@keyframes relay-miss { 0%, 100% { transform: none; } 35% { transform: translateX(-4px) rotate(-10deg); } 65% { transform: translateX(4px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .relay-clapper { animation: none !important; } }
[data-motion=still] .relay-clapper { animation: none !important; }
@media (max-width: 620px) { .feature-page > .pack-grid { grid-template-columns: 1fr; } }

.language-select { flex: 0 0 auto; position: relative; }
.language-menu > summary { cursor: pointer; list-style: none; padding: 8px; min-height: 34px; color: #d9f4ff; border: 1px solid #4a7893; font: 600 13px var(--arcade-font); display: grid; place-items: center; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu nav { position: absolute; right: 0; top: calc(100% + 6px); width: min(190px, 90vw); max-height: min(475px, 75dvh); overflow: auto; z-index: 30; padding: 5px; background: #0a192c; border: 1px solid #4a7893; }
.language-menu nav a { display: block; padding: 8px 10px; color: #e8f7ff; }
.language-menu nav a:is(:hover,:focus-visible,[aria-current]) { background: #1f4660; }
@media (max-width: 900px) {
  .language-select { position: absolute; right: 10px; top: 5px; }
  .language-menu > summary { min-height: 30px; }
}
@media (max-width: 1110px) {
  .language-select { position: absolute; right: 10px; top: 5px; }
}
@media (max-width: 610px) {
  .arcade-page .play-nav > a, .arcade-page .browse-nav > a, .arcade-page .nav-menu > summary,
  .arcade-page .settings-link { font-family: var(--body); font-size: 13px; font-weight: 700; }
  html:not([lang=en]) body.arcade-page { --head-height: 160px; }
  html:not([lang=en]) .arcade-page .play-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html:not([lang=en]) .arcade-page .play-nav > a {
    min-width: 0; text-align:center; line-height:1.1; min-height: 39px;
  }
  html:not([lang=en]) .arcade-page .browse-nav { gap: 4px; }
  html:not([lang=en]) .browse-nav a { min-width: 0; overflow-wrap: break-word; }
}

/* The CTA row stays available above the destinations, even in translated layouts. */
body.arcade-page { --head-height: 103px; }
.arcade-page .site-head .head-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 0 20px;
}
.head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  min-height: 53px;
}
.head-tools a, .head-tools .settings-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 10px;
  color: #d9edff;
  text-decoration: none;
  font: 600 15px/1.15 var(--body);
  white-space: normal;
}
.head-tools a:hover, .head-tools a[aria-current] { background: #193750; }
.head-tools .head-pass { color: #ffdd9e; border: 1px solid #897043; }
.head-tools .head-account { border: 1px solid #3f607d; }
.arcade-page .site-head .main-nav {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  border-top: 1px solid #24415c;
}
.arcade-page .site-head .browse-nav { border-top: 0; }
.site-head .nav-menu, .site-head .language-select { position: relative; inset: auto; }
.site-head .nav-flyout, .site-head .language-menu nav {
  position: absolute;
  top: calc(100% + 4px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 2px;
  padding: 5px;
  border: 1px solid #547b9a;
  box-shadow: 0 12px 25px #020814aa;
  white-space: normal;
  z-index: 12;
}
.site-head .archive-flyout { left: 0; right: auto; width: 188px; }
.site-head .language-menu nav { right: 0; width: min(190px, 90vw); }
.site-head .language-menu nav a { margin: 0; min-height: 37px; }
.site-head .nav-flyout a { text-decoration: none; }
.arcade-page .site-head [aria-current=page] { text-decoration: none; }

.native-slot { position: relative; margin-block: 16px 27px; }
.ad-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ad-bar .quiet { font-size: 14px; min-height: 38px; }
.ad-house {
  display: grid; gap: 3px; padding: 11px 14px;
  border: 1px solid #456384; background: #102742; color: #e4f5ff;
  text-decoration: none;
}
.ad-house strong { font: 600 21px/1.15 var(--body); color: #ffdb9a; }
.ad-house span { font-size: 14px; }
.native-slot .pending-ad-frame:not([data-filled=yes]) { position: absolute; visibility: hidden; left: 0; top: 0; }
.native-slot iframe[data-format=banner] { width: 320px; max-width: 100%; height: 50px; margin-inline: auto; }
.arcade:not([data-state=ready],[data-state=complete]) + .document > [data-native-ad] { display: none; }
.ad-pass-dialog > p { margin-block: 14px; }
.ad-pass-dialog form { margin: 0; }
@media (min-width: 1280px) {
  .arcade-page main:has(> .arcade[data-state=ready]) { position: relative; }
  .arcade[data-state=ready] + .document > [data-native-ad=primary] { position: absolute; z-index: 2;
    top: min(57vh, 514px); left: clamp(35px, 7vw, 130px); width: min(208px, 14vw); margin: 0; padding-inline: 10px;
    background: #0b213aee; border: 1px solid #456384; }
  .arcade[data-state=ready] + .document > .native-slot iframe:not([data-format=banner]) { height: min(220px, 27vh) !important; }
}
@media (max-width: 900px) {
  body.arcade-page { --head-height: 143px; }
  .arcade-page .site-head .main-nav { display: grid; gap: 0; }
  .arcade-page .site-head :is(.play-nav,.browse-nav) {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none;
    column-gap: 4px;
  }
  .arcade-page .site-head .browse-nav { border-top: 1px solid #24415c; }
  .site-head .nav-menu > summary { width: 100%; }
}
@media (max-width: 610px) {
  html:not([lang=en]) body.arcade-page { --head-height: 143px; }
  .arcade-page .site-head .head-wrap { gap: 0 6px; padding-inline: 10px; }
  .arcade-page .site-head .brand { font-size: clamp(10px, 3.05vw, 16px); gap: 3px; }
  .site-head .brand img { width: 21px; height: 21px; }
  .head-tools { gap: 4px; }
  .head-tools a, .head-tools .settings-link { white-space: normal; padding: 3px 5px; text-align: center; font-size: 12px; }
  .head-tools .language-menu > summary { padding-inline: 4px; }
  .arcade-page .site-head .play-nav > a { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
}

.account-signin { max-width: 510px; margin-block: 20px; }
.account-signin h2 { margin-bottom: 12px; }
.account-signin details { margin-block: 3px; border-color: #37526d; }
.email-auth { display: grid; max-width: 450px; gap: 9px; padding-block: 8px; }
.email-auth label { margin: 0; }
.email-auth button { justify-self: start; margin-top: 4px; }
.google-login { margin-bottom: 8px; }
.locker-preview, .skin-card { --skin-color: #8fdaee; }
.skin-form [data-skin=ember-lobster], .skin-form [data-skin=galley-lobster] { --skin-color: #ffbd91; }
.skin-form [data-skin=projectionist-lobster] { --skin-color: #e0b3ff; }
.skin-form [data-skin=chartmaker-lobster], .skin-form [data-skin=pearl-seadragon] { --skin-color: #a7ebcd; }
.skin-form [data-skin=rescue-lobster] { --skin-color: #ffda8f; }
.skin-form [data-skin=lantern-octopus] { --skin-color: #d1cdff; }
.locker-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #507c9c;
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0,1.45fr) minmax(220px,1fr);
  background: radial-gradient(ellipse at 24% 35%, #317e9f 0%, #163953 57%, #0d2138 90%);
  box-shadow: 0 17px 35px #03091788;
}
.locker-copy { padding: clamp(16px,3vw,35px); }
.locker-copy h2 { font-size: clamp(25px,4.25vw,50px); }
.locker-window { position: relative; isolation: isolate; border: 0; min-height: clamp(205px, 31vw, 355px); background: none; }
.locker-window canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.locker-window::before { content: ""; position: absolute; inset: 0 0 10%; z-index: -1;
  background: repeating-linear-gradient(118deg, transparent 0 36px, #a0e4fb22 40px, transparent 82px);
  mask-image: linear-gradient(#000,transparent); animation: aquarium-current 14s ease-in-out infinite alternate; }
.locker-window img { position: relative; object-fit: contain; width: min(78%, 300px); height: clamp(180px,26vw,300px);
  filter: drop-shadow(0 20px 14px #09132992); animation: companion-float 7s ease-in-out infinite; }
@keyframes aquarium-current { from { transform: translateX(-7%) skewX(-5deg); } to { transform: translateX(7%) skewX(3deg); } }
@keyframes companion-float { 50% { transform: translateY(-8px) rotate(1.4deg); } }
.sculpted-companion, .locker-window .sculpted-companion, .sculpted-skin .skin-art img { image-rendering: auto; }
.skin-card.sculpted-skin .skin-art { min-height: 132px; }
.sculpted-skin .skin-art img { height: 121px; object-fit: contain; }
.skin-card:has([aria-pressed=true]) { box-shadow: inset 0 0 0 1px var(--skin-color); }
.skin-grid:has([data-skin="ember-lobster"]) { grid-template-columns: repeat(auto-fit,minmax(min(138px,100%),1fr)); }
.recap-companion { float: right; display: grid; margin: 0 0 9px 12px; text-align: center; width: clamp(77px,19vw,128px); }
.recap-companion img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.recap-companion figcaption { color: #a4d2e6; font-size: 13px; }
.recap > .game-actions { clear: both; }
@media (max-width: 610px) {
  .locker-preview { grid-template-columns: minmax(0,1fr); }
  .locker-copy { padding-top: 0; }
  .skin-grid:has([data-skin="ember-lobster"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .skin-card.sculpted-skin .skin-art { min-height: 109px; }
  .sculpted-skin .skin-art img { height: 99px; }
}
@media (prefers-reduced-motion: reduce) { .locker-window :is(img), .locker-window::before { animation: none; } }
[data-motion=still] .locker-window img, [data-motion=still] .locker-window::before { animation: none; }
.arcade-page .document .editorial-notes { margin-top: 26px; }
@media (max-width: 610px) {
  html[lang=en] .arcade-page .site-head .play-nav {
    grid-template-columns: 1.08fr .96fr 1.24fr .76fr .53fr .67fr;
    column-gap: 2px;
  }
  html[lang=en] .arcade-page .site-head .play-nav > a { overflow-wrap: normal; }
}
@media (max-width: 370px) {
  html[lang=en] .arcade-page .site-head .play-nav > a { font-size: 11px; padding-inline: 1px; }
}
.relay-players img[src$=".png"], .league-list img[src$=".png"] { image-rendering: auto; }
