/* Razminka: locally served Cyrillic typography and shared interaction rules. */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/golos-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/golos-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{--ui-font:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;--display-font:Nunito,"Golos Text",sans-serif;--ui-focus:#347E52}
html{font-family:var(--ui-font);-webkit-text-size-adjust:100%}
body,button,input,select,textarea{font-family:var(--ui-font)}
body{font-synthesis:none;font-size:16px;line-height:1.6}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{transition:background-color .18s,border-color .18s,color .18s,transform .18s,box-shadow .18s}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid var(--ui-focus);outline-offset:4px}
body.hub-page,body.football-page,body.admin-page{--font:var(--ui-font);--ink:var(--raz-ink);--muted:#626d55;--paper:var(--raz-cream);--line:#d5ddc9;--acid:var(--raz-lime);--green:#315e34;background:var(--raz-cream);color:var(--raz-ink)}
body.sea-page{--sans:var(--ui-font)}
body.quiz-page{--font:var(--ui-font)}
/* v3 — Razminka identity: clear ink type, vivid green point, playful game colours. */
:root{
  --raz-ink:#141914;
  --raz-lime:#C6F44E;
  --raz-dot:#8BCF15;
  --raz-cream:#FAFBF5;
  --raz-sea:#0D3948;
  --raz-blue:#2059D6;
  --raz-yellow:#FFDD77;
  --ui-bg:var(--raz-cream);
  --ui-text:var(--raz-ink);
  --ui-line:#DAE5D7;
  --ui-focus:#347E52;
}
:is(.hub-page,.football-page,.admin-page){background:var(--raz-cream);color:var(--raz-ink)}
/* The logo is the wordmark itself; no monogram, badge or symbol. */
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand,
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand-wordmark{
  display:inline-flex;align-items:center;gap:0;white-space:nowrap;
  color:var(--raz-ink);font-size:clamp(22px,2vw,26px);
  font-weight:800;letter-spacing:-1.1px;line-height:1.1;text-decoration:none;
}
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand-wordmark :is(.brand-dot,.brand-period,.dot){
  color:var(--raz-dot);font-weight:900;
}
:is(.hub-page,.football-page) .site-header,
.admin-page .header{background:var(--raz-cream);border-color:#DEE8D9}
:is(.hub-page,.football-page) .site-navigation a{color:#3B483E;font-weight:600}
:is(.hub-page,.football-page) .site-navigation a:hover{background:#E8F6C8;color:#142014}
:is(.hub-page,.football-page) .site-navigation a[aria-current="page"]{
  background:var(--raz-lime);color:#182118;font-weight:750;
}
:is(.hub-page,.football-page) .intro h1{
  color:#111A13;font-size:clamp(34px,4vw,50px);
  font-weight:780;letter-spacing:-1.3px;
}
:is(.hub-page,.football-page) .card,.hub-page .game-hub{
  background:#FFF;border:1px solid #D5E1D2;border-radius:13px;
  box-shadow:0 2px 0 #DBE7D622;
}
:is(.hub-page,.football-page) .card h2,.hub-page .game-hub h2{
  color:#141C14;font-weight:750;
}
.hub-page .game-hub-kicker{color:#315B33;font-weight:700;letter-spacing:.1px}
/* Three game choices get their own identity, not three identical gray tiles. */
.hub-page .game-choice.football-choice,
.hub-page .game-choice.sea-choice,
.hub-page .game-choice.quiz-choice{
  color:#121C16;border-width:1px;min-height:92px;
  border-radius:10px;padding:17px 18px;box-shadow:none;
}
.hub-page .game-choice.football-choice{background:#D7F592;border-color:#B6DB63}
.hub-page .game-choice.sea-choice{background:#B5E9E9;border-color:#7DC9D1}
.hub-page .game-choice.quiz-choice{background:#CAD9FF;border-color:#A5BCF9}
.hub-page .game-choice.football-choice:hover{background:#C9ED6C;border-color:#8BBE37}
.hub-page .game-choice.sea-choice:hover{background:#9DDDE4;border-color:#55AEB8}
.hub-page .game-choice.quiz-choice:hover{background:#B7CCFF;border-color:#6B91EA}
.hub-page .game-choice .choice-glyph,
.hub-page .game-choice.sea-choice .choice-glyph,
.hub-page .game-choice.quiz-choice .choice-glyph{
  background:#FFFFFFA8;border:1px solid #15231735;color:#18231B;
  width:46px;height:46px;border-radius:7px;font-size:15px;
  font-weight:750;font-variant-numeric:tabular-nums;
}
.hub-page .game-choice strong{font-size:19px;font-weight:760;color:#141B14}
.hub-page .game-choice>span:last-child{color:#18291D;font-size:23px;font-weight:700}
:is(.hub-page,.football-page) .counter{
  color:#466344;background:#F1F9E8;border:1px solid #D7EACB;
}
:is(.hub-page,.football-page) .counter b{color:#1C2B1C}
:is(.hub-page,.football-page) .mode-tab.active{
  color:#1C291B;background:var(--raz-lime);border-color:#AADB39;
}
:is(.hub-page,.football-page) .text-action,
:is(.hub-page,.football-page) .subtle-link{color:#245F39}
:is(.hub-page,.football-page) .small-dark-btn,
:is(.hub-page,.football-page) .primary-btn{
  color:#FFF;background:#151E18;border-color:#151E18;
}
.football-page .start-btn{
  background:var(--raz-lime)!important;color:#192318!important;
  border-color:#A5D72E!important;font-weight:750;
}
.football-page .start-btn:hover{background:#D4FD7C!important}
.football-page .football-demo-btn{background:#F4FBE7;border-color:#CCE4AE;color:#30562D}
.football-page .config-summary{background:#F1F9E8;border-color:#DAEEC5}
.football-page .game-screen{background:#11281D}
.football-page .game-toolbar{background:#142E22;border-color:#406348}
.football-page .field-board{background:#184832}
.football-page .game-brand,.football-page .round-eyebrow{color:#D5F2A2}
/* Black wordmark in the same bright neutral header on dark games. */
.sea-page .topbar,.quiz-page .topbar{
  color:#18221A;background:var(--raz-cream);border-bottom:1px solid #DCE6D9;
}
.sea-page .header-divider,.quiz-page .header-divider{background:#CBD6CB}
.sea-page .mode-name,.quiz-page .mode-name{color:#3A4B40;font-weight:650}
.sea-page .tool-button,.quiz-page .bar-btn{
  color:#213025;background:transparent;border:1px solid #C7D5C9;
  border-radius:7px;
}
.sea-page .tool-button:hover,.quiz-page .bar-btn:hover{
  color:#172819;background:#E7F6D4;
}
/* Battleship — expressive deep sea / lively lime action / clear hits. */
body.sea-page{
  --bg:#0D3342;--surface:#114251;--surface-deep:#0D3442;
  --line:#356A77;--acid:var(--raz-lime);
  color:#F2FAF8;background:#0B3342;
}
.sea-page .sea-setup-header h1{color:#FFF;font-weight:770}
.sea-page .sea-setup-card{background:#144553;border-color:#35717F}
.sea-page .sea-setup-card h2{color:#FFF;font-weight:750}
.sea-page .sea-setup-card>input{background:#0D3542;border-color:#54818B;color:#FFF}
.sea-page .sea-check{background:#103845;border-color:#497F87}
.sea-page .sea-check input{accent-color:var(--raz-lime)}
.sea-page .sea-question-count strong{color:var(--raz-lime)}
.sea-page .sea-start,.sea-page .next-button{
  color:#1B2918;background:var(--raz-lime);font-weight:750;
}
.sea-page .sea-start:hover,.sea-page .next-button:hover{background:#D6FC86}
.sea-page .score-card,.sea-page .fleet-panel{background:#134554;border-color:#36727F}
.sea-page .question-panel{background:#164A59;border-color:#3C7782}
.sea-page .question-text{color:#FFF;font-weight:650}
.sea-page .hit-score b,.sea-page .match-mid strong{color:#F0F8EC}
.sea-page .battleship-grid .cell{background:#1E5869;border-color:#578C98}
.sea-page .battleship-grid .cell.miss{background:#1C4653;color:#C7DEE4}
.sea-page .battleship-grid .cell.hit{background:#A74C42;color:#FFF}
.sea-page .battleship-grid .cell.sunk{background:#986038;color:#FFF0D7}
.sea-page .fleet-panel.target{border-color:#BDEB5D;box-shadow:0 0 0 2px #BDEB5D}
/* Svoya Igra — saturated cobalt, bright scoring and real broadcast contrast. */
body.quiz-page{
  --navy:#0D307D;--deep:#123D94;--blue:#1F57CE;
  --tile:#1F5CD7;--tile2:#1549AF;--gold:#FFDD77;
  --ivory:#FFF;--muted:#CADCF8;--line:#4875D0;
  background:#0D3285;color:#F7FBFF;
}
.quiz-page .surface,.quiz-page .stage-board{background:#143F96;border-color:#487BCF}
.quiz-page .card-head h2,.quiz-page .board-top h2{color:#FFF}
.quiz-page .eyebrow,.quiz-page .setup-label span{color:#D3E0FA}
.quiz-page .task-count{background:#10347E;border-color:#4876BD}
.quiz-page .task-count strong{color:var(--raz-yellow)}
.quiz-page .setup-label{background:#1A4CA2;border-color:#5788D5}
.quiz-page .setup-value,.quiz-page .value-tile{
  color:var(--raz-yellow);background:#205DD4;border-color:#598AF0;font-weight:760;
}
.quiz-page .topic-tile{color:#FFF;background:#123F9E;border-color:#4879DB}
.quiz-page .value-tile.used{background:#15316F;color:#7A9ADC}
.quiz-page .setup-value:not(.filled),.quiz-page .value-tile.empty{
  background:#153E8A;color:#B6CDEC;border-color:#3E6EBC;
}
.quiz-page .value-tile:hover:not(:disabled),
.quiz-page .setup-value:hover{background:#346DE0;transform:none}
.quiz-page .round-tab,.quiz-page .round-step{
  color:#E8F0FF;background:#174296;border-color:#4A7AD3;
}
.quiz-page .round-tab.selected,.quiz-page .round-step.current{
  color:#152B56;background:var(--raz-yellow);border-color:var(--raz-yellow);
}
.quiz-page .round-step.current b{color:#152B56}
.quiz-page .primary-btn{
  color:#17294B;background:var(--raz-yellow);border-color:var(--raz-yellow);
  font-weight:750;
}
.quiz-page .primary-btn:hover{background:#FFF0A7}
.quiz-page .score-card,.quiz-page .award-team{background:#194393;border-color:#4B7CCD}
.quiz-page .score-value{color:var(--raz-yellow);font-weight:760}
.quiz-page .stage-header h1 span{color:var(--raz-yellow)}
.quiz-page .question-dialog,.quiz-page .edit-dialog{
  background:#154092;border-color:#638CE1;
}
.quiz-page .question-dialog-head h2,.quiz-page .modal-top h2{color:var(--raz-yellow)}
.quiz-page .answer-reveal{background:#10377F;border-color:#5483D8}
.quiz-page .media-editor{background:#1A499A;border-color:#7195DE}
/* Admin retains neutral surfaces, with unmistakable Razminka accent. */
body.admin-page{--accent:var(--raz-lime);--accent-ink:#152117;--dark:#1A2A1C}
.admin-page .panel{background:#FFF;border-color:#D5E2D2}
.admin-page .button.primary{background:#172119;color:#FFF;border-color:#172119}
.admin-page .stat.active{background:#E9F7C5;border-color:#C2DE7D;color:#1F3B1D}
@media(max-width:690px){
  :is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand{
    font-size:22px;letter-spacing:-.8px;
  }
  .hub-page .game-choice.football-choice,
  .hub-page .game-choice.sea-choice,
  .hub-page .game-choice.quiz-choice{min-height:78px}
}

/* v4 — Illustrated game mode selection and precise submission form. */
/* Keep the selector card only as tall as its content; no dead space alongside
   a taller question editor. */
.hub-page .builder-grid{align-items:start}
.hub-page .game-hub{align-self:start}

.hub-page .game-hub{gap:13px}
.hub-page .game-choice{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;flex-wrap:nowrap;gap:18px;
  width:100%;min-height:114px;padding:20px 23px;
  text-align:left;cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,
    box-shadow .2s ease,transform .2s ease;
}
.hub-page .game-choice::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  opacity:.85;
  background-repeat:no-repeat;
  background-size:auto 125%;
  background-position:right 20px center;
  transition:opacity .25s ease,transform .25s ease;
}
.hub-page .game-choice.football-choice::before{background-image:url("/pattern-football.svg")}
.hub-page .game-choice.sea-choice::before{background-image:url("/pattern-sea.svg")}
.hub-page .game-choice.quiz-choice::before{background-image:url("/pattern-quiz.svg")}
.hub-page .game-choice .choice-copy{
  display:flex;align-items:center;flex:1 1 auto;min-width:0;
  position:relative;z-index:1;
}
.hub-page .game-choice .choice-copy strong{
  position:relative;display:inline-block;
  font-size:clamp(18px,2vw,23px);line-height:1.24;
  color:#142015;font-weight:750;letter-spacing:-.48px;
  text-shadow:0 1px 0 #ffffff42;
}
.hub-page .game-choice .choice-arrow{
  position:relative;z-index:1;
  display:grid;place-items:center;flex:0 0 42px;
  width:42px;height:42px;line-height:1;
  border-radius:10px;border:1px solid #263A2340;
  background:#ffffff7d;color:#153016;
  font-size:24px;font-weight:700;
  transition:transform .2s ease,background-color .2s ease,color .2s ease;
}
@media(hover:hover) and (pointer:fine){
  .hub-page .game-choice:hover{
    transform:translateY(-3px);
    box-shadow:0 11px 24px #19301a20;
  }
  .hub-page .game-choice:hover::before{opacity:1;transform:translateX(-7px) scale(1.03)}
  .hub-page .game-choice:hover .choice-arrow{
    transform:translate(3px,-3px);
    background:#18251b;color:#fff;border-color:#18251b;
  }
}
.hub-page .game-choice:active{transform:scale(.987);filter:saturate(1.14)}
.hub-page .game-choice:focus-visible{
  outline:3px solid #1d4d35;outline-offset:4px;
}
.hub-page .game-choice.sea-choice .choice-arrow{color:#114c55}
.hub-page .game-choice.quiz-choice .choice-arrow{color:#173b84}
@media(hover:hover) and (pointer:fine){
  .hub-page .game-choice.sea-choice:hover .choice-arrow,
  .hub-page .game-choice.quiz-choice:hover .choice-arrow{color:white}
}
@media(max-width:1050px){
  .hub-page .game-hub{display:flex;flex-direction:column}
  .hub-page .game-choice{min-height:103px;padding:17px 19px}
  .hub-page .game-choice::before{background-size:auto 136%;background-position:right -12px center}
}
@media(max-width:650px){
  .hub-page .game-choice{min-height:88px;padding:15px 16px;gap:10px}
  .hub-page .game-choice::before{background-size:auto 125%;background-position:right -68px center;opacity:.65}
  .hub-page .game-choice .choice-copy strong{font-size:18px;letter-spacing:-.32px}
  .hub-page .game-choice .choice-arrow{
    width:36px;height:36px;flex-basis:36px;font-size:20px;
  }
}
@media(prefers-reduced-motion:reduce){
 .hub-page .game-choice,.hub-page .game-choice::before,
 .hub-page .game-choice .choice-arrow{transition:none}
}
/* Form fields must share the same grid width — the site's legacy select rule
   imposes max-width:138px, which previously left the dropdowns misaligned. */
.hub-page .library-submit{
  width:100%;min-width:0;box-sizing:border-box;
  padding:clamp(18px,2.5vw,27px);
  border-radius:13px;background:#f6faec;
  border:1px solid #d9e6c9;
}
.hub-page .library-submit-header{
  display:flex;align-items:center;gap:15px;
  min-height:51px;padding-bottom:19px;
  border-bottom:1px solid #dce6ce;
}
.hub-page .library-submit-icon{
  flex:0 0 44px;width:44px;height:44px;border-radius:10px;
  background:var(--raz-lime);font-size:21px;
}
.hub-page .library-submit-header h3{
  margin:0;font-size:clamp(19px,2vw,23px);
  line-height:1.24;letter-spacing:-.35px;font-weight:750;
  color:#1b291e;
}
.hub-page .library-submit .publish-meta{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:19px 16px;align-items:start;margin:22px 0 0;
}
.hub-page .library-submit .publish-title-field{grid-column:1/-1}
.hub-page .library-submit .publish-meta-field{
  display:flex;flex-direction:column;gap:9px;
  min-width:0;width:100%;align-items:stretch;
}
.hub-page .library-submit .publish-meta-field .input-label{
  display:block;margin:0;line-height:1.35;font-size:13px;
  color:#344739;font-weight:650;
}
.hub-page .library-submit .publish-meta-field input,
.hub-page .library-submit .publish-meta-field select{
  display:block;width:100%;max-width:100%;min-width:0;
  height:48px;box-sizing:border-box;
  margin:0;padding:11px 13px;border:1px solid #cbdacb;
  background:#fff;border-radius:9px;
  font-size:14px;font-weight:500;line-height:1.35;
  color:#213629;
}
.hub-page .library-submit .publish-meta-field input:focus-visible,
.hub-page .library-submit .publish-meta-field select:focus-visible{
  border-color:#2d7653;outline:2px solid #2d765355;outline-offset:1px;
}
.hub-page .library-submit .publish-btn{
  width:100%;min-height:50px;max-width:100%;margin:24px 0 0;
  padding:12px 18px;line-height:1.35;
  border-radius:9px;background:#1d412e;color:#fff;
  font-size:14px;font-weight:700;white-space:normal;
}
.hub-page .library-submit .publish-btn:hover:not(:disabled){background:#29613f}
@media(max-width:440px){
  .hub-page .library-submit .publish-meta{grid-template-columns:minmax(0,1fr);gap:15px}
  .hub-page .library-submit .publish-title-field{grid-column:auto}
  .hub-page .library-submit{padding:18px}
  .hub-page .library-submit-header h3{font-size:19px}
}

/* v5 — Play-screen controls must not inherit the light header's dark text.
   Also keep attached media proportional so judging actions remain reachable. */
.quiz-page #game-screen .stage-actions .bar-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:44px;padding:10px 16px;
  color:#F9FCFF;
  background:#194892;
  border:1px solid #8DAFED;
  border-radius:8px;
  font-size:13px;font-weight:700;
  box-shadow:0 1px 0 #0B24584D;
  opacity:1;
}
.quiz-page #game-screen .stage-actions .bar-btn:hover{
  background:#3164BB;
  border-color:#C4DAFF;
  color:#FFF;
}
.quiz-page #game-screen .stage-actions .bar-btn:active{
  background:#0F3579;
  color:#FFF;
}
.quiz-page #game-screen .stage-actions .bar-btn:focus-visible{
  outline:3px solid #FFDD77;outline-offset:3px;
}
.quiz-page #question-overlay .question-dialog{
  max-height:calc(100dvh - 24px);
  overflow-y:auto;overscroll-behavior:contain;
}
.quiz-page #question-overlay .question-body{
  min-height:0;
  padding:clamp(12px,2vw,25px) 8px;
}
.quiz-page #question-overlay .question-media{
  max-width:760px;
  min-height:0;
  margin:0 auto 17px;
}
.quiz-page #question-overlay .question-media img,
.quiz-page #question-overlay .question-media video{
  display:block;
  width:auto;max-width:100%;height:auto;
  max-height:min(30dvh,260px);
  object-fit:contain;
}
.quiz-page #question-overlay .question-media audio{
  display:block;width:min(100%,640px);
}
@media(max-width:700px){
  .quiz-page #game-screen .stage-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .quiz-page #game-screen .stage-actions .bar-btn{
    padding:9px 11px;min-height:42px;font-size:12px;
  }
  .quiz-page #question-overlay .question-media img,
  .quiz-page #question-overlay .question-media video{
    max-height:min(24dvh,180px);
  }
}


/* Expressive type and space, with distinct identities for the three stages. */
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) :is(h1,h2,h3){font-family:var(--display-font);font-weight:700;letter-spacing:-.025em;line-height:1.4;text-wrap:balance}
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand,
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand-wordmark{font-family:var(--ui-font);font-size:24px;font-weight:600;letter-spacing:-.6px;flex-shrink:0;max-width:100%}
:is(.hub-page,.football-page,.sea-page,.quiz-page,.admin-page) .brand-wordmark :is(.brand-dot,.brand-period,.dot){font-weight:600}
:is(.hub-page,.football-page) .wrap{width:min(1280px,calc(100% - 80px))}
:is(.hub-page,.football-page) .site-header{height:auto;min-height:86px;padding-block:16px;border-color:#c4c9bb;gap:24px}
:is(.hub-page,.football-page) .site-navigation{gap:6px;max-width:100%}
:is(.hub-page,.football-page) .site-navigation a{font-size:14px;font-weight:500;letter-spacing:0;padding:10px 16px;min-height:44px;border-radius:50px;color:#394238}
:is(.hub-page,.football-page) .site-navigation a:hover{background:#e9ecdf;color:#141914}
:is(.hub-page,.football-page) .site-navigation a[aria-current="page"]{background:#141914;color:white;font-weight:550}
:is(.hub-page,.football-page) .intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:36px 0 32px}
:is(.hub-page,.football-page) .intro h1{font-size:clamp(36px,4.5vw,62px);font-weight:700;letter-spacing:-.055em;line-height:1.25;margin:0}
.hub-page .intro h1 span{display:inline-block;background:var(--raz-lime);padding:0 .14em .07em;margin-left:-.14em;transform:rotate(-2deg)}
.intro-art{width:170px;height:170px;flex:none;transform:rotate(7deg)}
:is(.hub-page,.football-page) .card{background:#fff;border:1px solid #cdd1c3;border-radius:22px;padding:28px;box-shadow:none}
.hub-page .builder-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:32px;align-items:center}
.hub-page .intro{position:relative;padding:20px 0 24px;min-height:144px}
.hub-page .intro h1{font-size:clamp(32px,3.4vw,46px)}
.hub-page .intro h1 br{display:none}
.hub-page .intro h1 span{margin-left:.12em}
.hub-page .intro-art{position:absolute;right:16px;top:50%;margin-top:-85px;width:170px;height:170px;animation:razminka-spin 28s linear infinite;transform-origin:center;pointer-events:none}
@keyframes razminka-spin{from{transform:rotate(7deg)}to{transform:rotate(367deg)}}
:is(.hub-page,.football-page) .card-head{margin-bottom:22px;gap:12px}
:is(.hub-page,.football-page) .card h2,.hub-page .game-hub h2{font-size:23px;font-weight:600;line-height:1.4;letter-spacing:-.045em;margin:0}
:is(.hub-page,.football-page) .counter{border:0;border-radius:50px;padding:6px 12px;background:#ecf1df;color:#4b583c;font-size:12px}
:is(.hub-page,.football-page) .counter b{font-family:var(--display-font);font-size:17px;font-weight:600;color:#141914}
:is(.hub-page,.football-page) .entry-mode-bar{background:#eff0e9;border:0;border-radius:12px;padding:5px;gap:4px;margin-bottom:22px}
:is(.hub-page,.football-page) .mode-tab{border:0;border-radius:8px;font-size:13px;font-weight:500;line-height:1.5;min-height:42px}
:is(.hub-page,.football-page) .mode-tab.active{background:#fff;color:#141914;box-shadow:0 2px 5px #14191410}
:is(.hub-page,.football-page) :is(.input-label,.setting-row label,.fake-label){font-size:14px;font-weight:500;line-height:1.6;color:#394238}
:is(.hub-page,.football-page) :is(textarea,input:not([type="checkbox"]):not([type="radio"]),select){background:#fff;color:#141914;border-color:#b9c0af;border-radius:10px;font-weight:400}
:is(.hub-page,.football-page) #tasks-input{height:230px;font-family:var(--ui-font);font-size:16px;line-height:1.9;letter-spacing:0;padding:16px 18px;border:1px solid #aeb8a2;background:#fdfdf9;border-radius:12px}
:is(.hub-page,.football-page) #tasks-input::placeholder{color:#747d6e}
:is(.hub-page,.football-page) #tasks-input:focus{border-color:#3f7849;box-shadow:0 0 0 3px #bce35744}
:is(.hub-page,.football-page) .input-hint{font-size:12px;line-height:1.65;color:#626b5d}
:is(.hub-page,.football-page) .input-hint code{font-size:11px;color:#45513c;background:#edf0e6}
:is(.hub-page,.football-page) :is(.text-action,.subtle-link){font-size:13px;font-weight:500;color:#315e34}
:is(.hub-page,.football-page) .examples-row{gap:18px;flex-wrap:wrap;margin-top:14px}
:is(.hub-page,.football-page) .selection-panel{background:#f0f3e8;border:0;border-radius:12px;margin-top:20px;padding:16px}
:is(.hub-page,.football-page) .selection-top strong{font-size:14px;font-weight:550}
:is(.hub-page,.football-page) .selection-top span{font-size:12px;margin-top:4px}
:is(.hub-page,.football-page) .picker-toggle{font-size:13px;color:#315e34}
:is(.hub-page,.football-page) .cards-editor-list textarea{font-size:16px;line-height:1.7}
:is(.hub-page,.football-page) .add-card-btn{border-color:#9cae87;color:#315e34;font-size:14px;padding:14px;border-radius:10px}
.hub-page .game-hub{display:flex;flex-direction:column;gap:16px;align-self:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.hub-page .game-hub-top{margin-bottom:7px}
.hub-page .game-hub-kicker{display:none}
.hub-page .game-choice{gap:18px;min-height:136px;padding:24px;border:1px solid #14191428;border-radius:18px;box-shadow:0 4px 0 #141914}
.hub-page .game-choice.football-choice,.hub-page .game-choice.sea-choice,.hub-page .game-choice.quiz-choice{min-height:136px;padding:24px;border-radius:18px}
.hub-page .game-choice .choice-copy strong{font-family:var(--display-font);font-size:clamp(18px,1.65vw,23px);font-weight:700;letter-spacing:-.025em;line-height:1.5;max-width:80%;text-shadow:none}
.hub-page .game-choice::before{background-size:auto 130%;background-position:right -30px center;opacity:.8}
.hub-page .game-choice .choice-arrow{width:46px;height:46px;flex:0 0 46px;background:#ffffffb3;color:#141914;border:1px solid #14191445;border-radius:50%;font-size:27px}
@media(hover:hover) and (pointer:fine){.hub-page .game-choice:hover{transform:translateY(-4px);box-shadow:0 8px 0 #141914}.hub-page .game-choice:hover .choice-arrow{transform:rotate(45deg)}}
.hub-page .game-choice:active{transform:translateY(3px);box-shadow:0 1px 0 #141914}
:is(.hub-page,.football-page) .small-dark-btn{background:#141914;color:white;border:0;border-radius:50px;padding:10px 17px;min-height:42px;font-size:13px;font-weight:500}
:is(.hub-page,.football-page) .main-layout>.shared-library{margin-top:36px;border:0;border-top:1px solid #bac4aa;padding:28px 0 0;border-radius:0;background:transparent}
:is(.hub-page,.football-page) .library-head{margin-bottom:22px;gap:15px}
:is(.hub-page,.football-page) .library-workspace{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px}
:is(.hub-page,.football-page) .library-catalog{background:transparent;border:0;padding:0;border-radius:0}
:is(.hub-page,.football-page) .library-section-heading{color:#626d55;font-size:10px;letter-spacing:1.7px;font-weight:600}
:is(.hub-page,.football-page) .library-filter label{font-size:13px;font-weight:500}
:is(.hub-page,.football-page) .library-filter select{height:46px;font-size:14px;font-weight:400}
:is(.hub-page,.football-page) .main-layout>.shared-library .library-deck{padding:18px 0;border:0;border-bottom:1px solid #d3dac9;border-radius:0;background:transparent;gap:14px}
:is(.hub-page,.football-page) .library-info strong{font-size:16px;font-weight:550;line-height:1.65}
:is(.hub-page,.football-page) .library-info small{font-size:12px;line-height:1.7;color:#626d55}
:is(.hub-page,.football-page) .library-use{border:1px solid #9eaf8e;background:#fff;color:#233a1a;border-radius:50px;min-height:42px;padding:9px 16px;font-size:13px;font-weight:500;flex:0 0 auto;white-space:nowrap}
:is(.hub-page,.football-page) .library-use:hover{background:var(--raz-lime);border-color:#141914}
.hub-page .library-submit{background:#eaf0da;border:1px solid #c6d1b4;border-radius:20px;padding:25px}
.hub-page .library-submit-header{align-items:center;gap:14px;padding-bottom:20px;border-color:#c6d1b4}
.hub-page .library-submit-header h3{font-family:var(--ui-font);font-size:23px;font-weight:600;line-height:1.4;letter-spacing:-.6px;margin:0}
.hub-page .library-submit-icon{width:44px;height:44px;flex-basis:44px;border-radius:50%;background:var(--raz-lime);color:#141914;font-size:25px}
.hub-page .library-submit .publish-meta-field .input-label{font-size:13px;line-height:1.6;font-weight:500}
.hub-page .library-submit .publish-meta-field input,.hub-page .library-submit .publish-meta-field select{font-size:14px;font-weight:400;border-color:#acb99b}
.hub-page .library-submit .publish-btn{border-radius:50px;background:#141914;color:#fff;font-size:14px;font-weight:500;line-height:1.6}
:is(.hub-page,.football-page) .main-layout>.file-tools-panel{border:0;border-top:1px solid #bac4aa;background:transparent;border-radius:0;padding:26px 0;margin-top:28px}
:is(.hub-page,.football-page) .file-tools-copy h2{font-size:19px;line-height:1.5;letter-spacing:-.04em}
:is(.hub-page,.football-page) :is(.template-upload,.template-download){border-radius:50px;min-height:44px;font-size:13px;font-weight:500}
:is(.hub-page,.football-page) .builder-footer{font-size:11px;letter-spacing:0;border-top:1px solid #d5dbc9;padding-top:18px;color:#626d55}
/* Football preparation: two columns, one clear launch action. */
.football-page .intro{width:min(100%,960px);margin:auto;padding:30px 0 25px}
.football-page .intro h1{font-size:clamp(27px,3.4vw,44px);line-height:1.4}
.football-page .editor-return-link{font-size:14px;color:#315e34;white-space:nowrap}
.football-page .builder-right{width:min(100%,960px)}
.football-page .config-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:0 32px;padding:28px}
.football-page .config-panel>.card-head{grid-column:1/-1;padding-bottom:20px;border-bottom:1px solid #d6ddca}
.football-page .config-panel>.config-block{grid-column:1;grid-row:2 / span 2;margin:0}
.football-page .config-panel>.settings-rows{grid-column:2;grid-row:2 / span 2;margin:0}
.football-page .config-panel>.football-only-label{display:none}
.football-page .teams-edit{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.football-page .team-edit{background:#f9faf5;padding:14px;border:1px solid #c4cdb8;border-radius:12px}
.football-page .team-edit input{font-size:17px;font-weight:500}
.football-page .vs-label{align-self:center;font-family:var(--display-font);font-size:11px;color:#728265}
.football-page .reset-team-names{font-size:12px;color:#626d55;line-height:1.7;text-align:left}
.football-page .setting-row{padding:12px 0;border-color:#e0e5d8}
.football-page .setting-row:first-child{border-top:0;padding-top:0}
.football-page .setting-row select{max-width:145px;font-size:13px;min-height:42px}
.football-page .stepper{gap:9px;border-color:#b8c7a3;border-radius:50px;padding:4px}
.football-page .stepper button{border-radius:50%;background:#ecf3dd;width:32px;height:32px}
.football-page .stepper output{font-family:var(--display-font);font-size:13px;font-weight:500}
.football-page .checkbox-row input:checked+.toggle-switch{background:#628c27}
.football-page .football-advanced>summary{font-size:13px;color:#526447}
.football-page .game-launchers{grid-column:1/-1;padding-top:20px;border-top:1px solid #d6ddca;margin-top:18px;gap:12px}
.football-page .game-launch-label{display:none}
.football-page .football-demo-btn{border:0;background:transparent;color:#315e34;font-size:13px;min-height:36px}
.football-page .start-btn{border-radius:12px;font-family:var(--display-font);font-size:15px;letter-spacing:0;font-weight:550;box-shadow:0 4px 0 #141914}
.football-page .start-btn:hover{transform:translateY(-2px);box-shadow:0 6px 0 #141914}
.football-page .start-note{grid-column:1/-1;margin:16px 0 0;font-size:12px;color:#626d55}
.football-page .main-layout{padding-bottom:16px}
.football-page .builder-footer{margin-top:20px}
/* Football stage: projection-sized scores, calmer secondary controls. */
.football-page .game-screen{background:#102b20;color:#f5faed}
.football-page .game-toolbar{background:#0b2018;border-color:#426449}
.football-page .game-brand{font-family:var(--ui-font);font-size:21px;color:#f3f6e9}
.football-page .game-brand b{font-weight:600;letter-spacing:-.6px}
.football-page .game-brand .brand-dot{color:var(--raz-dot)}
.football-page .game-mode{font-size:11px;color:#c2d2b8;letter-spacing:.5px;font-weight:500}
.football-page .toolbar-btn{color:#eaf1e1;background:#1c3e2d;border-color:#52725a;border-radius:50px;font-size:12px;min-height:38px;font-weight:500}
.football-page .score-team{font-family:var(--display-font);font-size:clamp(14px,1.6vw,22px);font-weight:550;letter-spacing:-.04em}
.football-page .score-team .score-dot{box-shadow:none;border-radius:50%}
.football-page .score-center{font-family:var(--display-font);font-weight:650;letter-spacing:-.07em;font-size:clamp(42px,6.8vh,68px)}
.football-page .score-colon{color:#a7c39c;font-weight:400}
.football-page .field-board{background:#184d32;border:1px solid #62875b;border-radius:16px}
.football-page .pitch{background:repeating-linear-gradient(90deg,#235c3b 0,#235c3b 11.111%,#296844 11.111%,#296844 22.222%);border-color:#b9dca488}
.football-page .pitch-team-label{font-size:10px;letter-spacing:1.2px;font-weight:500;color:#e1f2cc}
.football-page .pitch-event{font-size:11px;font-weight:500;letter-spacing:0}
.football-page .round-heading h2{font-size:18px;font-weight:550}
.football-page .question-card{background:#fbfcf5;color:#173624;border:0;border-radius:16px}
.football-page .question-math{font-family:var(--ui-font);font-weight:500;letter-spacing:0;line-height:1.5}
.football-page .question-number{font-family:var(--display-font);color:#59714a;font-size:11px;font-weight:500}
.football-page .award-btn{border-radius:12px;min-height:54px;font-size:15px;font-weight:500;color:#12251d;box-shadow:inset 0 -3px 0 #0002}
.football-page .award-btn strong{font-weight:650}
.football-page :is(.minor-game-button,.game-secondary){font-size:12px;border-radius:50px;color:#dcebd3;border-color:#52725a}
.football-page .question-view-toggle{border-color:#52725a;border-radius:50px;padding:3px}
.football-page .question-view-toggle button{border-radius:50px;min-height:32px;font-size:12px;font-weight:500}
.football-page .question-view-toggle button.active{background:var(--raz-lime);color:#17290d}
.football-page .remaining-pill{font-size:12px;font-weight:500}
.football-page .secondary-control{color:#d5f0ae;font-size:13px;font-weight:550}
.football-page :is(.rename-dialog,.round-picker-dialog,.done-dialog){border-radius:22px;background:#f7f6f0;color:#141914;border:1px solid #a8b88e;box-shadow:0 24px 80px #0005}
.football-page :is(.rename-dialog,.round-picker-dialog,.done-dialog) h2{font-size:24px;line-height:1.4}
.football-page .rename-dialog input{min-height:48px;font-size:16px;border-color:#9eaf8e;background:white}
.football-page .rename-dialog label{font-size:14px;font-weight:500;line-height:1.7}
.football-page :is(.rename-primary,.round-picker-apply){background:var(--raz-lime);color:#141914;border:1px solid #9bb848;border-radius:10px;font-size:14px}
.football-page .round-picker-foot{flex-wrap:wrap;gap:12px}
.football-page .round-picker-item{background:#fff;border-color:#bcc9ab;color:#253b20;border-radius:10px;font-size:15px;line-height:1.65}
.football-page .goal-flash strong{font-family:var(--display-font);font-weight:700;letter-spacing:-.06em}
/* Bright shared header for the sea and quiz. */
.sea-page .topbar-inner,.quiz-page .topbar{min-height:68px;padding-block:10px;gap:14px}
:is(.sea-page,.quiz-page) .mode-name{font-size:13px;font-weight:500;letter-spacing:0}
.sea-page .tool-button,.quiz-page .topbar .bar-btn{border-radius:50px;font-size:12px;font-weight:500;min-height:38px;padding:9px 13px}
/* Sea: chart geometry and a contrasting, light question panel. */
body.sea-page{--sans:var(--ui-font);--bg:#092f38;--surface:#123f47;--surface-deep:#0c343d;--line:#46747c;--ink:#f2faf7;--muted:#bad2d2;--acid:var(--raz-lime);background:#092f38;color:#f2faf7}
.sea-page .sea-setup{padding-top:28px;max-width:760px}
.sea-page .sea-setup-header{width:min(100%,620px);margin-bottom:22px}
.sea-page .sea-setup-kicker{display:block;color:#b5d3cf;font-size:11px;font-weight:500;letter-spacing:2px;margin-bottom:9px}
.sea-page .sea-setup-header h1{font-size:clamp(29px,3.6vw,46px);line-height:1.4;letter-spacing:-.05em;color:#f4faf1;margin:0}
.sea-page .sea-setup-layout{width:min(100%,620px)}
.sea-page .sea-setup-card{background:#123f47;border:1px solid #5a8584;border-radius:22px;box-shadow:0 6px 0 #041d24;padding:28px}
.sea-page .sea-card-eyebrow:empty{display:none}
.sea-page .sea-setup-card h2{font-size:23px;font-weight:550;margin:0 0 22px}
.sea-page .sea-setup-card>label:not(.sea-check){font-size:14px;font-weight:450;color:#e0eeeb;margin:16px 0 8px}
.sea-page .sea-setup-card>input{background:#092e38;color:#fff;border:1px solid #7aa29d;border-radius:10px;min-height:48px;font-size:17px;font-weight:450}
.sea-page .sea-check{background:#0b333d;border:0;border-radius:12px;padding:16px;font-size:14px;color:#e1efea}
.sea-page .sea-check b{font-weight:500;line-height:1.7}
.sea-page .sea-question-count{font-size:11px;letter-spacing:1px;color:#bad6cf}
.sea-page .sea-question-count strong{font-family:var(--display-font);font-size:24px;color:var(--raz-lime);font-weight:550}
.sea-page :is(.sea-start,.next-button){background:var(--raz-lime);color:#17290d;border:0;border-radius:12px;font-size:14px;font-weight:600;min-height:48px;padding:13px 18px}
.sea-page .sea-start{font-family:var(--display-font);font-weight:550;letter-spacing:-.035em;box-shadow:0 4px 0 #041d24}
.sea-page :is(.sea-start,.next-button):hover{background:#dcff8f;transform:translateY(-1px)}
.sea-page .sea-edit-link{font-size:13px;color:#c2d9d2;line-height:1.6}
.sea-page .score-card{background:#123f47;border-color:#5a8584;border-radius:14px}
.sea-page .team-name{font-family:var(--display-font);font-size:clamp(14px,1.4vw,19px);font-weight:550;line-height:1.4}
.sea-page .team-detail{color:#c0d5cf;font-size:12px}
.sea-page .team-mark{box-shadow:none}
.sea-page .hit-score b{font-family:var(--display-font);font-size:29px;font-weight:550;color:var(--raz-lime);line-height:1.3}
.sea-page .match-mid strong{font-family:var(--display-font);font-size:20px;color:#c6f44e;font-weight:550}
.sea-page .question-panel{background:#e7f1df;color:#19382c;border:0;border-radius:16px;box-shadow:none}
.sea-page .question-panel :is(.eyebrow,.context){color:#45654e;font-size:12px;letter-spacing:.4px;font-weight:500}
.sea-page .question-text{font-family:var(--ui-font);font-size:clamp(25px,2.5vw,36px);font-weight:500;line-height:1.6;letter-spacing:0;color:#19382c;margin:5px 0 12px;min-height:0}
.sea-page .outline-button{font-size:13px;font-weight:500;border-radius:50px;min-height:42px}
.sea-page .question-panel .outline-button{background:transparent;border:1px solid #839d77;color:#294a30}
.sea-page .question-panel .text-button{color:#385c3a;font-size:13px;font-weight:500}
.sea-page .action-row{border-color:#c3d2b7}
.sea-page .status-line{color:#3d6140;font-size:13px;line-height:1.6}
.sea-page .status-line.alert{color:#285628;font-weight:650}
.sea-page .answer-box{background:#fff;border:1px solid #b0c69b;color:#294a30;border-radius:10px}
.sea-page .answer-box span{color:#526e43}
.sea-page .answer-slot{min-height:52px;display:grid;align-items:center;margin:6px 0}
.sea-page .answer-slot .answer-box{margin:0;max-height:52px;overflow:auto}
.sea-page .award{font-size:14px;font-weight:500;border-radius:10px;min-height:44px}
.sea-page .fleet-panel{background:#103b43;border-color:#5a8584;border-radius:16px;box-shadow:none}
.sea-page .fleet-title-row h2{font-family:var(--ui-font);font-size:20px;font-weight:550;letter-spacing:0;line-height:1.4}
.sea-page .fleet-kicker{color:#b8d2ca;font-size:10px;letter-spacing:1.5px;font-weight:500}
.sea-page .fleet-meta b{font-family:var(--display-font);font-size:22px;color:#d5edbf;font-weight:550}
.sea-page .battleship-grid .cell{position:relative;padding:0;line-height:1;background:#1b4a52;border:1px solid #668c8d;border-radius:4px;box-shadow:none;text-shadow:none}
.sea-page .miss-mark{position:absolute;left:50%;top:50%;width:6px;height:6px;border-radius:50%;background:currentColor;transform:translate(-50%,-50%);pointer-events:none}
.sea-page .battleship-grid .cell.is-target:not(.miss):not(.hit):hover{background:#487c64;border-color:var(--raz-lime);color:var(--raz-lime)}
.sea-page .battleship-grid .cell.miss{background:#163940;color:#c4dad7;border-color:#4e7278}
.sea-page .battleship-grid .cell.hit{background:#b14c3e;color:#fff;border-color:#ffa391}
.sea-page .battleship-grid .cell.sunk{background:#a16c22;color:#fff4bd;border-color:#ffdd77}
.sea-page .fleet-panel.target{border-color:#c6f44e;box-shadow:0 0 0 2px #c6f44e}
.sea-page .grid-axis{color:#b3cec7;font-size:11px;font-weight:500}
.sea-page .finish-button{color:#cfdfd5;border-color:#668c8d;border-radius:50px;font-size:12px;min-height:40px}
.sea-page .legend{color:#adc7c2;font-size:12px}
.sea-page .end-card{background:#133f43;border:1px solid #c6f44e;border-radius:24px;box-shadow:0 30px 90px #0006}
.sea-page .end-card h2{font-size:clamp(27px,4vw,40px);line-height:1.4}
/* Both fleets share the available height after score, question and controls.
   Container height keeps the grids square even when the answer is revealed. */
@media(min-width:901px){
  .sea-page .topbar-inner{min-height:67px}
  .sea-page .shell{height:calc(100dvh - 68px);padding:12px 20px 16px;display:flex;flex-direction:column;gap:10px}
  .sea-page .match-header{flex-shrink:0;margin:0}
  .sea-page .question-panel{flex-shrink:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.32fr);grid-template-rows:auto 62px 44px 60px;column-gap:18px}
  .sea-page .question-top{grid-column:1/-1;grid-row:1}
  .sea-page .question-text{grid-column:1;grid-row:2;align-self:center;margin:0;max-height:62px;overflow-y:auto}
  .sea-page .answer-slot{grid-column:2;grid-row:2;min-height:0;height:62px;margin:0}
  .sea-page .answer-slot .answer-box{width:100%;max-height:62px;margin:0}
  .sea-page .question-controls{grid-column:1/-1;grid-row:3}
  .sea-page .action-row{grid-column:1/-1;grid-row:4;min-height:0;height:52px;margin:8px 0 0;padding:4px 0 0;align-items:center}
  .sea-page .status-line{min-width:0;max-width:50%;max-height:42px;overflow:auto}
  .sea-page .nav-actions{min-height:42px;align-items:center}
  .sea-page .next-button{min-height:40px;padding:9px 14px}
  .sea-page .boards{flex:1;min-height:0;align-items:stretch}
  .sea-page .fleet-panel{min-height:0;display:flex;flex-direction:column;padding:12px}
  .sea-page .fleet-title-row{flex-shrink:0;margin-bottom:8px}
  .sea-page .grid-holder{flex:1;min-height:0;container-type:size;align-items:center}
  .sea-page .battleship-grid{width:min(100%,370px,100cqh);flex-shrink:0}
  .sea-page .bottom-bar{flex-shrink:0;min-height:40px;padding-top:0}
  .sea-page .sea-setup{min-height:calc(100dvh - 68px);display:flex;flex-direction:column;justify-content:center;padding-block:24px}
  .sea-page .sea-setup-header,.sea-page .sea-setup-layout{flex-shrink:0}
}
@media(min-width:901px) and (max-height:850px){
  .hub-page .site-header{min-height:70px;padding-block:12px}
  .hub-page .intro{padding:14px 0;min-height:98px}
  .hub-page .intro-art{width:140px;height:140px;margin-top:-70px}
  .hub-page .intro h1{font-size:36px}
  .hub-page .task-panel{padding:20px}
  .hub-page .task-panel .card-head{margin-bottom:16px}
  .hub-page .entry-mode-bar{margin-bottom:16px}
  .hub-page #tasks-input{height:clamp(120px,22dvh,180px)}
  .hub-page .selection-panel{margin-top:14px;padding:12px}
  .hub-page .examples-row{margin-top:10px}
  .hub-page .game-hub{gap:12px}
  .hub-page .game-choice.football-choice,.hub-page .game-choice.sea-choice,.hub-page .game-choice.quiz-choice{min-height:clamp(100px,16dvh,126px)}
  .sea-page .sea-setup{padding-block:16px}
  .sea-page .sea-setup-card{padding:18px}
  .sea-page .sea-setup-header{margin-bottom:12px}
  .sea-page .sea-setup-header h1{font-size:32px}
  .sea-page .sea-setup-card>input{min-height:44px;padding:9px 12px;font-size:16px}
  .sea-page .sea-edit-link{margin-top:12px}
  .sea-page .sea-setup-card h2{margin-bottom:16px}
  .sea-page .sea-setup-card>label:not(.sea-check){margin-top:12px}
  .sea-page .sea-check{margin-top:16px;padding:12px}
  .sea-page .sea-question-count{padding-block:12px}
  .sea-page .score-card{min-height:58px;padding:6px 12px}
  .sea-page .team-name{font-size:16px;line-height:1.4}
  .sea-page .hit-score b{font-size:24px;line-height:1.2}
  .sea-page .question-text{font-size:28px;line-height:1.5;max-height:54px;margin:0}
  .sea-page .question-panel{padding:10px 14px;grid-template-rows:auto 54px 44px 60px}
  .sea-page .answer-slot{height:54px}
  .sea-page .answer-slot .answer-box{max-height:54px}
  .sea-page .fleet-panel{padding:10px}
  .sea-page .fleet-title-row{margin-bottom:6px}
  .sea-page .fleet-title-row h2{font-size:18px}
  .sea-page .next-button{min-height:40px;padding:9px 14px}
}
/* Quiz: wide scores, open text leading, high contrast judging controls. */
.quiz-page .round-tab,.quiz-page .round-step{font-weight:500;border-radius:10px;font-size:12px;letter-spacing:0}
.quiz-page .stage-header h1{font-size:clamp(25px,3vw,38px);font-weight:650;letter-spacing:-.04em}
.quiz-page #game-screen .stage-actions .bar-btn{border-radius:50px;font-weight:500}
.quiz-page .score-name{font-size:16px;font-weight:500}
.quiz-page .score-value{font-family:var(--display-font);font-size:clamp(24px,2.5vw,32px);font-weight:550;line-height:1.35;color:#ffdd77;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.quiz-page .board-top h2{font-size:21px;font-weight:550}
.quiz-page .topic-tile{font-size:15px;font-weight:500;line-height:1.5;border-radius:10px}
.quiz-page .value-tile{font-family:var(--display-font);font-size:clamp(20px,2.3vw,33px);font-weight:600;letter-spacing:-.03em;border-radius:10px;text-shadow:none;font-variant-numeric:tabular-nums;min-height:clamp(54px,8dvh,84px)}
.quiz-page :is(.primary-btn,.secondary-btn,.judge){font-weight:550;line-height:1.6;border-radius:10px}
.quiz-page .primary-btn{font-size:14px;min-height:46px}
.quiz-page .secondary-btn{background:#1f4da1;color:#fff;border:1px solid #91b1ed;font-size:13px}
.quiz-page .quiet-btn{font-size:13px;color:#d0dfff;font-weight:450;line-height:1.65}
.quiz-page :is(.question-dialog,.edit-dialog){border-radius:22px;box-shadow:0 24px 80px #020e3a99}
.quiz-page :is(.question-dialog-head,.modal-top) h2{font-size:clamp(20px,2.4vw,30px);font-weight:550;color:#ffdd77;line-height:1.45}
.quiz-page #question-overlay .question-body{font-family:var(--ui-font);font-size:clamp(27px,3.8vw,50px);font-weight:500;line-height:1.5;letter-spacing:0;padding:clamp(16px,2.5vw,30px) 8px;min-height:0}
.quiz-page .answer-reveal{border-radius:12px;padding:16px}
.quiz-page .answer-reveal strong{font-weight:500;font-size:21px;line-height:1.65}
.quiz-page .form-field{font-size:14px;line-height:1.65;font-weight:450;color:#dde9ff;gap:8px}
.quiz-page .form-field :is(input,textarea),.quiz-page .quiz-round-field select{background:#0b2b75;border:1px solid #7196df;border-radius:10px;color:#fff;font-size:16px;font-weight:400;line-height:1.7;padding:11px 13px}
.quiz-page .form-field :is(input,textarea)::placeholder{color:#a6bfed}
.quiz-page .close-btn{background:#17428c;color:#fff;border-color:#7196df;border-radius:50%}
.quiz-page .judge{font-size:13px;min-height:44px}
.quiz-page .judge.correct{background:#b5ed9b;color:#193923;border-color:#b5ed9b}
.quiz-page .judge.wrong{background:#ff9e8d;color:#472319;border-color:#ff9e8d}
.quiz-page .judge:not(.selected){filter:none}
.quiz-page .judge.selected{box-shadow:0 0 0 2px #fff}
.quiz-page .media-editor{background:#0c2d78;border-color:#7196df;border-radius:12px;padding:14px}
.quiz-page .media-upload-btn{background:#2055b8;color:#fff;border-color:#9ab7ef;font-size:13px;font-weight:500;border-radius:50px;min-height:42px}
.quiz-page .media-local-note{color:#bad0f9;font-size:12px;line-height:1.65}
.quiz-page .question-status{color:#d1e0ff;font-size:12px;line-height:1.65}
.quiz-page .wager-field{font-size:13px;line-height:1.65}
.quiz-page .final-stage h3{font-size:30px;line-height:1.5}
.quiz-page .play-page{padding-top:18px}
.quiz-page .stage-board{padding:18px}
.quiz-page .board-top{margin-bottom:14px}
/* Moderation: generous reading space, compact metadata and decisive actions. */
body.admin-page{--font:var(--ui-font);--paper:var(--raz-cream);--card:#fff;--line:#cdd4c1;--accent:var(--raz-lime);--accent-ink:#141914;--dark:#141914}
.admin-page .header-inner{min-height:86px;max-width:1360px;padding-inline:40px}
.admin-page .header-label{font-size:14px;font-weight:450;color:#59664d}
.admin-page main{max-width:1360px;padding:30px 40px 60px}
.admin-page .panel{background:#fff;border:1px solid #cdd4c1;border-radius:20px;box-shadow:none}
.admin-page .centered{max-width:540px;padding:36px;margin:5vh auto}
.admin-page .centered h1{font-size:clamp(25px,3vw,33px);line-height:1.45}
.admin-page .eyebrow{font-size:10px;font-weight:550;letter-spacing:1.7px;color:#64794d}
.admin-page .muted{color:#626d55;line-height:1.7}
.admin-page h1{font-size:clamp(29px,3vw,40px);line-height:1.4}
.admin-page h2{font-size:19px;font-weight:550}
.admin-page h3{font-size:16px;font-weight:550}
.admin-page :is(.auth-form label,.metadata-form label,.search-field){font-size:14px;font-weight:450;line-height:1.6}
.admin-page :is(input,select){border-color:#acb99b;border-radius:10px;min-height:48px;font-size:16px;line-height:1.6}
.admin-page .button{border-radius:50px;min-height:44px;padding:11px 18px;font-size:14px;font-weight:500;line-height:1.6}
.admin-page .button.primary{background:#141914;color:#fff;border-color:#141914}
.admin-page .button.secondary{background:transparent;color:#315e34;border-color:#9eaf8e}
.admin-page .button.danger{background:#fff3ee;color:#9d3a2b;border-color:#d9aca0}
.admin-page .stat{background:transparent;border:1px solid #b9c5aa;border-radius:16px;padding:22px;color:#4a5940}
.admin-page .stat.active{background:var(--raz-lime);color:#141914;border-color:#8fb43c}
.admin-page .stat span{font-size:15px;font-weight:500}
.admin-page .stat strong{font-family:var(--display-font);font-size:32px;font-weight:550;color:#141914}
.admin-page .deck-item{background:#f8faf2;border-color:#d5ddc9;border-radius:12px;padding:16px;gap:8px}
.admin-page .deck-item.active{background:#edf5d6;border-color:#8fb43c}
.admin-page .deck-item-title{font-size:16px;line-height:1.6;font-weight:550}
.admin-page .deck-item-meta{font-size:12px;line-height:1.7;color:#626d55}
.admin-page .question{background:#f4f6ed;border:0;border-radius:10px;padding:16px}
.admin-page .question-body{font-size:16px;line-height:1.8}
.admin-page .question-answer{font-size:14px;line-height:1.7;color:#315e34}
.admin-page .badge{font-size:12px;font-weight:550;border-radius:50px;padding:7px 12px}
@media(max-width:1050px){
:is(.hub-page,.football-page) .wrap{width:calc(100% - 48px)}
.hub-page .builder-grid{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:22px}
.hub-page .game-choice.football-choice,.hub-page .game-choice.sea-choice,.hub-page .game-choice.quiz-choice{padding:20px}
.hub-page .game-choice .choice-copy strong{font-size:19px;max-width:100%}
.hub-page .game-choice::before{opacity:.4;background-position:right -65px center}
.hub-page .game-choice .choice-arrow{width:40px;height:40px;flex-basis:40px}
:is(.hub-page,.football-page) .card{padding:22px}
.intro-art{width:130px;height:130px}
}
@media(max-width:800px){
.hub-page .builder-grid{grid-template-columns:minmax(0,1fr)}
.hub-page .game-hub{display:flex;flex-direction:column;gap:16px;padding-top:10px}
:is(.hub-page,.football-page) .library-workspace{grid-template-columns:minmax(0,1fr)}
.football-page .config-panel{grid-template-columns:minmax(0,1fr);gap:0}
.football-page .config-panel>.card-head{grid-column:1;grid-row:auto}
.football-page .config-panel>.config-block,.football-page .config-panel>.settings-rows{grid-column:1;grid-row:auto}
.football-page .config-panel>.settings-rows{margin-top:18px}
.football-page .intro{flex-direction:column;align-items:flex-start;gap:12px}
.football-page .intro h1{font-size:clamp(28px,5vw,42px)}
}
@media(max-width:690px){
:is(.hub-page,.football-page) .wrap{width:calc(100% - 28px)}
:is(.hub-page,.football-page) .site-header{align-items:flex-start;min-height:0;gap:16px;padding:18px 0;flex-direction:column}
:is(.hub-page,.football-page) .site-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;margin:0}
:is(.hub-page,.football-page) .site-navigation a{padding:8px 11px;font-size:13px;min-height:40px;text-align:center}
:is(.hub-page,.football-page) .intro{padding:24px 0}
.hub-page .intro h1{font-size:clamp(30px,7.7vw,46px);line-height:1.3}
.hub-page .intro h1 br{display:block}
.hub-page .intro h1 span{margin-left:-.14em}
.intro-art{display:none}
:is(.hub-page,.football-page) .card{padding:20px;border-radius:18px}
:is(.hub-page,.football-page) .card h2,.hub-page .game-hub h2{font-size:20px}
:is(.hub-page,.football-page) .mode-tab{font-size:12px;min-height:44px;padding:9px 5px}
:is(.hub-page,.football-page) #tasks-input{height:220px}
:is(.hub-page,.football-page) .input-hint code{font-size:10px}
:is(.hub-page,.football-page) .selection-top{flex-wrap:wrap;gap:10px}
.hub-page .game-choice.football-choice,.hub-page .game-choice.sea-choice,.hub-page .game-choice.quiz-choice{min-height:122px;padding:20px}
.hub-page .game-choice .choice-copy strong{font-size:19px;max-width:75%}
.hub-page .game-choice::before{background-position:right -35px center;opacity:.65}
.hub-page .library-submit{padding:20px}
.hub-page .library-submit-header h3{font-size:22px}
:is(.hub-page,.football-page) .library-head{align-items:flex-start;flex-wrap:wrap}
.hub-page .library-submit .publish-meta{grid-template-columns:minmax(0,1fr);gap:16px}
.hub-page .library-submit .publish-title-field{grid-column:auto}
:is(.hub-page,.football-page) .main-layout>.shared-library .library-info{min-width:0;flex-basis:100%}
:is(.hub-page,.football-page) .file-tools-main{grid-template-columns:minmax(0,1fr);gap:18px}
.football-page .config-panel{padding:20px}
.football-page .config-panel .card-head h2{font-size:19px}
.football-page .start-btn{font-size:13px}
.football-page .game-toolbar{height:auto;min-height:58px;padding:10px 12px;flex-wrap:wrap;gap:8px}
.football-page .game-toolbar-left{gap:8px}
.football-page .game-toolbar-right{gap:6px}
.football-page .game-content{width:calc(100% - 24px);padding-top:12px}
.football-page .score-team{font-family:var(--ui-font);font-size:15px;font-weight:550;letter-spacing:0}
.football-page .score-center{font-size:38px;gap:8px}
.football-page .scoreboard{gap:8px;margin:0 0 16px}
.football-page .award-btn{font-size:13px;min-height:60px}
.football-page .game-secondary{font-size:12px}
.football-page :is(.rename-dialog,.round-picker-dialog,.done-dialog){padding:22px 18px}
.football-page :is(.rename-dialog,.round-picker-dialog,.done-dialog) h2{font-size:21px}
.football-page .rename-buttons{flex-wrap:wrap}
.sea-page .topbar-inner{gap:8px;padding-inline:12px;flex-wrap:wrap}
.quiz-page .topbar{gap:8px;padding-inline:12px;flex-wrap:wrap}
:is(.sea-page,.quiz-page) .brand,:is(.sea-page,.quiz-page) .brand-wordmark{font-size:24px}
.sea-page .tool-button,.quiz-page .topbar .bar-btn{padding:8px 10px;min-height:38px}
.sea-page .sea-setup{padding:24px 12px}
.sea-page .sea-setup-card{padding:22px}
.sea-page .sea-setup-header h1{font-size:clamp(26px,6.7vw,37px)}
.sea-page .sea-start{font-size:12px;line-height:1.65}
.sea-page .question-panel{padding:16px}
.sea-page .question-text{font-size:26px;line-height:1.6}
.sea-page .award{font-size:13px;min-width:0}
.sea-page .team-name{font-family:var(--ui-font);font-size:16px}
.sea-page .fleet-title-row h2{font-size:19px}
.sea-page .hit-score b{font-size:24px}
.quiz-page .stage-header{align-items:flex-start;flex-wrap:wrap;gap:12px}
.quiz-page .stage-header h1{font-size:25px}
.quiz-page #game-screen .stage-actions{gap:8px;flex-wrap:wrap;justify-content:flex-start}
.quiz-page .board-top h2{font-size:17px}
.quiz-page .topic-tile{font-size:11px;line-height:1.5;padding:8px}
.quiz-page .value-tile{font-size:17px;min-height:54px;border-radius:7px}
.quiz-page #question-overlay .question-body{font-size:27px;line-height:1.55}
.quiz-page .answer-reveal strong{font-size:18px}
.quiz-page .award-team{display:block;padding:12px}
.quiz-page .award-team h3{font-family:var(--ui-font);font-size:16px;font-weight:500;margin-bottom:10px}
.quiz-page .award-choices{width:100%;min-width:0}
.quiz-page .edit-actions{gap:10px}
.quiz-page .edit-actions .quiet-btn{width:100%;text-align:left}
.quiz-page .edit-dialog{padding:20px 16px;max-height:calc(100dvh - 18px)}
.admin-page .header-inner{padding:16px;min-height:74px;gap:10px;flex-wrap:wrap}
.admin-page main{padding:24px 14px 40px}
.admin-page .centered{padding:24px 20px;margin:3vh auto}
.admin-page .centered h1{font-size:25px}
.admin-page .dashboard-head{flex-wrap:wrap;gap:14px}
.admin-page .stat{padding:14px 10px;gap:8px}
.admin-page .stat span{font-size:12px}
.admin-page .stat strong{font-size:24px}
.admin-page .details-panel{padding:18px}
.admin-page .panel-top{flex-wrap:wrap}
.admin-page .meta-grid{grid-template-columns:1fr}
.admin-page .header-label{font-size:12px}
}
@media(max-width:370px){
.hub-page .game-choice .choice-copy strong{font-size:17px;max-width:100%}
:is(.hub-page,.football-page) .card{padding:16px}
:is(.hub-page,.football-page) .card h2{font-size:18px}
.sea-page .mode-name,.quiz-page .mode-name{display:none}
.quiz-page .question-bottom-actions{width:100%}
.quiz-page .question-bottom-actions .primary-btn{width:100%;font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.hub-page .intro-art{animation:none}}

