@font-face {
  font-family:Literata;
  src:url('/fonts/literata-cyrillic-wght-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family:Literata;
  src:url('/fonts/literata-latin-wght-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212;
}
@font-face {
  font-family:Onest;
  src:url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family:Onest;
  src:url('/fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212;
}
:root {
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#13335f;
  background:#f7fbff;
  font-size:14px;
  line-height:1.55;
  --blue:#0874f8;
  --ink:#0c2b59;
  --muted:#657b97;
  --line:#deebf7;
  --pale:#eef7ff;
  --shadow:0 8px 35px #173e7210
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.55
}
a {
  color:var(--blue);
  text-underline-offset:3px
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #80b9ff;
  outline-offset:3px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(32px,4vw,51px);
  line-height:1.13;
  letter-spacing:-1.4px;
  color:var(--ink)
}
h1 em {
  font-style:normal;
  color:var(--blue)
}
h2 {
  font-size:21px;
  line-height:1.4
}
h3 {
  font-size:15px
}
p {
  margin:12px 0;
  color:var(--muted)
}
small,.small {
  font-size:12px
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#588ab6
}
.container {
  max-width:1240px;
  padding:0 28px 42px;
  margin:auto;
  min-height:65vh
}
.header {
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner {
  max-width:1240px;
  margin:auto;
  padding:17px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px
}
.brand {
  font-weight:800;
  font-size:17px;
  letter-spacing:-.3px;
  color:#10376d;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}
.brand span {
  font-size:9px;
  letter-spacing:.3px;
  color:#0874e2;
  background:#d9efff;
  padding:3px 6px;
  border-radius:3px
}
.header nav {
  display:flex;
  gap:24px;
  align-items:center
}
.header nav a {
  font-size:12px;
  color:#294e78;
  text-decoration:none;
  position:relative;
  padding:8px 0
}
.header nav a.active {
  color:var(--blue)
}
.header nav a.active:after {
  content:'';
  position:absolute;
  bottom:-15px;
  left:-5px;
  right:-5px;
  height:2px;
  background:var(--blue)
}
.header-actions {
  display:flex;
  gap:9px;
  align-items:center
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--blue);
  background:var(--blue);
  color:white;
  padding:11px 19px;
  border-radius:8px;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  line-height:1.45;
  transition:background .15s
}
.button:hover {
  background:#0063db
}
.button.secondary {
  background:white;
  color:#076ae0;
  border-color:#bdd9f5
}
.button.secondary:hover {
  background:var(--pale)
}
.button.full {
  width:100%
}
.actions {
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap
}
.actions a {
  font-size:12px
}
.test-banner {
  font-size:11px;
  padding:8px 0;
  color:#8092a7;
  border-bottom:1px dashed var(--line)
}
.hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:center;
  gap:35px;
  min-height:405px;
  padding:36px 0;
  background:radial-gradient(ellipse at 80% 45%,#e4f5ff,transparent 65%)
}
.hero h1 {
  margin:15px 0 20px;
  font-size:clamp(39px,4.3vw,59px)
}
.hero-lead {
  font-size:18px;
  line-height:1.5;
  margin-bottom:25px
}
.hero .button {
  padding:14px 25px;
  font-size:14px
}
.hero-tree {
  position:relative;
  display:grid;
  place-items:center;
  min-width:0
}
.hero-tree .quiz-tree {
  max-width:345px;
  width:100%;
  filter:drop-shadow(0 15px 12px #0089e41b)
}
.hero-caption {
  font-size:11px;
  letter-spacing:.5px;
  color:#5d8bb6;
  position:absolute;
  bottom:5px
}
.snow {
  position:absolute;
  color:#7ebce7;
  font-size:36px
}
.s1 {
  top:50px;
  left:8px
}
.s2 {
  right:20px;
  bottom:110px;
  font-size:50px
}
.info-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:10px 0 25px
}
.info-card {
  display:flex;
  gap:18px;
  padding:22px 18px;
  background:#f4faff;
  border:1px solid #d6e8f6;
  border-radius:10px
}
.info-card p {
  font-size:12px;
  margin:8px 0 0;
  line-height:1.7
}
.info-icon {
  flex-shrink:0;
  width:49px;
  height:49px;
  background:#e2f1ff;
  border-radius:11px;
  color:#1680dc;
  font-size:29px;
  display:grid;
  place-items:center
}
.info-card:nth-child(odd) .info-icon {
  background:#e2f6e9;
  color:#35705a
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  padding:25px;
  box-shadow:var(--shadow);
  min-width:0;
  margin-bottom:20px
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:17px
}
.panel-heading a {
  font-size:12px;
  white-space:nowrap
}
.landing-bottom {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:20px
}
.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  margin-top:25px
}
.steps>div {
  position:relative
}
.steps>div:not(:last-child):after {
  content:'→';
  position:absolute;
  right:-20px;
  top:8px;
  color:#69a6dd;
  font-size:22px
}
.steps span {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e4f3ff;
  color:var(--blue);
  font-weight:700;
  margin-bottom:12px
}
.steps h3 {
  font-size:12px
}
.steps p {
  font-size:11px
}
.footer {
  max-width:1240px;
  margin:0 auto;
  padding:28px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:start;
  color:#7e93ac;
  font-size:10px
}
.footer .brand {
  font-size:13px;
  flex-wrap:wrap;
  gap:5px
}
.footer .brand span {
  font-size:8px
}
.footer-links {
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  max-width:480px
}
.footer a {
  color:#6985a3;
  font-size:10px
}
.page-heading {
  margin:35px 0 25px
}
.page-heading h1 {
  font-size:36px;
  margin-top:8px
}
.page-heading p {
  max-width:800px
}
.account-nav {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0 26px
}
.account-nav button {
  background:none;
  border:1px solid var(--line);
  padding:8px 13px;
  border-radius:7px;
  font-size:11px;
  color:var(--muted)
}
.account-nav button.active {
  background:var(--blue);
  color:white;
  border-color:var(--blue)
}
.game-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  margin-bottom:25px
}
.game-heading h1 {
  font-size:38px;
  margin-top:10px
}
.game-heading p {
  font-size:12px;
  margin-bottom:0
}
.timeline {
  display:flex;
  gap:6px;
  overflow-x:auto;
  max-width:650px;
  padding:8px 3px 12px
}
.day {
  border:0;
  background:none;
  min-width:43px;
  padding:0;
  color:#7892ac
}
.day>span {
  width:35px;
  height:35px;
  border-radius:50%;
  background:#eaf0f7;
  border:1px solid #d6e0eb;
  display:grid;
  place-items:center;
  font-size:13px;
  margin:auto auto 6px
}
.day small {
  font-size:9px;
  white-space:nowrap
}
.day.current>span {
  box-shadow:0 0 0 3px #1983ff25;
  border-color:var(--blue)
}
.day.accepted>span {
  background:var(--blue);
  color:white;
  border-color:var(--blue)
}
.day.available>span {
  background:#e2f2ff;
  color:var(--blue);
  border-color:#99caff
}
.day.partial>span {
  background:#fff0d1;
  color:#ab6f13;
  border-color:#e5c681
}
.day.rejected>span {
  background:#f5e8e8;
  color:#bd6666
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:22px 0
}
.metrics article {
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:17px 21px
}
.metrics span {
  display:block;
  font-size:11px;
  color:var(--muted)
}
.metrics strong {
  font-size:30px;
  font-weight:600;
  line-height:1.4
}
.metrics small {
  font-size:13px;
  font-weight:400;
  color:#86a2ba
}
.game-layout {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);
  gap:27px;
  align-items:start
}
.question-panel {
  padding:29px
}
.question-heading {
  display:flex;
  gap:17px;
  align-items:center;
  margin-bottom:21px
}
.question-heading h2 {
  font-size:20px
}
.question-heading .eyebrow {
  margin:0 0 4px
}
.question-text {
  font-size:17px;
  line-height:1.6;
  white-space:pre-line;
  color:#294f7b;
  margin-bottom:24px
}
.demo-note {
  font-size:10px;
  color:#8a9bae;
  margin-top:-12px;
  margin-bottom:18px
}
.tree-panel {
  background:linear-gradient(135deg,#eff8ff,#f8fcff);
  border:1px solid var(--line);
  border-radius:13px;
  padding:23px 15px;
  text-align:center;
  min-width:0
}
.tree-panel .panel-heading {
  padding:0 12px;
  margin-bottom:0;
  font-size:12px;
  color:var(--muted)
}
.tree-panel .quiz-tree {
  width:100%;
  max-width:315px;
  display:block;
  margin:auto
}
.tree-panel p {
  font-size:11px;
  margin:3px 0 12px
}
.tree-legend {
  display:flex;
  justify-content:center;
  gap:13px;
  font-size:10px;
  color:#6793af
}
.tree-star {
  fill:#f9fcff;
  stroke:#69b9ef;
  stroke-width:3
}
.tree-star.lit {
  fill:#2c96fc;
  stroke:#9ae5ff
}
.ball circle {
  fill:#eafaf7;
  stroke:#70bcae;
  stroke-width:1
}
.ball path {
  stroke:#398f82;
  fill:none;
  stroke-width:1
}
.ball text {
  text-anchor:middle;
  font-size:8px;
  fill:#378579
}
.ball.accepted circle {
  fill:#007bf0;
  stroke:#8dd5ff
}
.ball.accepted text {
  fill:white;
  font-size:12px
}
.ball.partial circle {
  fill:#ffe1a0;
  stroke:#d9a644
}
.ball.partial text {
  fill:#8f6722;
  font-size:12px
}
.ball.rejected circle {
  fill:#c8dcd7
}
.ball.rejected text {
  fill:#7d9993
}
.tree-doc rect {
  fill:#faffff;
  stroke:#8acfe7;
  stroke-width:2
}
.tree-doc text {
  font-size:8px;
  text-anchor:middle;
  fill:#5da5d5
}
.tree-doc path {
  stroke:#b2d4e8;
  stroke-width:2
}
.contacts {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:23px;
  padding-top:17px;
  border-top:1px solid var(--line);
  font-size:11px
}
.question-actions {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:20px
}
.result {
  display:flex;
  justify-content:space-between;
  padding:15px;
  border-radius:8px;
  background:#eaf4ff;
  margin:15px 0
}
.result.accepted {
  background:#e5f7ec;
  color:#337452
}
.result.partial {
  background:#fff5df;
  color:#9b7018
}
.result.rejected {
  background:#fff0ec;
  color:#b3654b
}
.answer-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  padding:16px;
  background:#f5f9fd;
  border-radius:8px;
  margin:18px 0
}
.badge {
  display:inline-block;
  padding:4px 8px;
  border-radius:6px;
  background:#e8f3ff;
  color:#4381b5;
  font-size:10px;
  white-space:nowrap
}
.badge.accepted,.badge.verified {
  background:#e7f6ee;
  color:#38785a
}
.badge.partial,.badge.unverified,.badge.pending {
  background:#fff4db;
  color:#9b782e
}
.badge.rejected,.badge.excluded {
  background:#faece8;
  color:#a35947
}
.notice {
  background:#edf6ff;
  color:#54779b;
  border:1px solid #dcebf8;
  border-radius:8px;
  padding:14px 17px;
  margin:18px 0;
  font-size:12px;
  overflow-wrap:anywhere
}
.notice .button {
  margin-top:10px
}
.two-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:21px
}
.copy-line {
  display:flex;
  gap:10px;
  margin:20px 0
}
.copy-line input {
  flex:1;
  min-width:0;
  background:#f6faff;
  border:1px solid var(--line);
  border-radius:7px;
  padding:12px;
  font-size:12px
}
.table-wrap {
  overflow-x:auto;
  width:100%
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:12px
}
th {
  color:#7d94ac;
  font-weight:500;
  font-size:10px;
  white-space:nowrap;
  padding:11px;
  border-bottom:1px solid var(--line)
}
td {
  padding:14px 11px;
  border-bottom:1px solid #ecf2f8;
  vertical-align:middle
}
tr:last-child td {
  border-bottom:0
}
th:first-child,td:first-child {
  padding-left:0
}
th:last-child,td:last-child {
  padding-right:0
}
.own {
  background:#eff8ff
}
.rank {
  display:inline-grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#edf2f8;
  font-size:11px
}
.rank-1 {
  background:#ffe390;
  color:#89620b
}
.rank-2 {
  background:#e2e8ef;
  color:#708098
}
.rank-3 {
  background:#f5dfd0;
  color:#a5795a
}
.neutral-avatar {
  display:inline-grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:50%;
  background:#e9f4ff;
  margin-right:9px;
  color:#7aa3c5;
  font-size:13px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:16px;
  font-size:12px;
  min-width:0
}
.field span {
  font-weight:600
}
.field input,.field select,.field textarea,.filters input,.filters select {
  width:100%;
  border:1px solid #cbdfef;
  border-radius:7px;
  background:#fff;
  padding:11px 12px;
  color:#294e77;
  min-width:0
}
.field textarea {
  min-height:125px;
  resize:vertical
}
.field input::placeholder,.filters input::placeholder {
  color:#98aabb
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px
}
.checkbox {
  display:flex;
  gap:9px;
  align-items:start;
  font-size:11px;
  color:#69809a;
  margin:15px 0
}
.checkbox input {
  margin-top:3px;
  accent-color:var(--blue);
  width:15px;
  height:15px;
  flex-shrink:0
}
.choice {
  display:flex;
  gap:14px;
  align-items:center;
  border:1px solid #dce9f6;
  border-radius:8px;
  margin:12px 0;
  padding:16px;
  color:#3e6086;
  font-size:13px
}
.choice:has(input:checked) {
  background:#eff7ff;
  border-color:#68aaff
}
.choice input {
  accent-color:var(--blue);
  width:17px;
  height:17px;
  flex-shrink:0
}
.choice.removed {
  color:#9aafc3;
  text-decoration:line-through;
  background:#f5f8fb
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
legend {
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px
}
.form-error {
  color:#af473a;
  font-size:12px;
  padding:10px 0;
  white-space:pre-line
}
.form-error:empty {
  display:none
}
.document-links {
  font-size:10px;
  margin-top:20px;
  line-height:1.9
}
.narrow {
  max-width:620px
}
.login-code {
  font-variant-numeric:tabular-nums;
  color:var(--blue);
  white-space:nowrap
}
.admin-layout {
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:28px;
  margin-top:25px
}
.admin-nav {
  border-right:1px solid var(--line);
  padding:15px 18px 15px 0
}
.admin-nav .eyebrow {
  font-size:9px;
  margin:10px 0 20px
}
.admin-nav button {
  display:flex;
  gap:13px;
  align-items:center;
  width:100%;
  border:0;
  background:none;
  padding:12px 13px;
  border-radius:7px;
  text-align:left;
  color:#6882a0;
  font-size:12px;
  margin-bottom:5px
}
.admin-nav button span {
  font-size:18px;
  width:20px;
  text-align:center
}
.admin-nav button.active {
  color:white;
  background:var(--blue)
}
.admin-nav>p:last-child {
  padding:15px 10px;
  font-size:10px;
  line-height:1.8
}
.admin-main {
  min-width:0
}
.admin-main .page-heading {
  margin:10px 0 25px
}
.admin-main .page-heading h1 {
  font-size:33px
}
.admin-main .metrics strong {
  font-size:26px
}
.admin-main .metrics article {
  padding:15px
}
.filters {
  display:flex;
  gap:12px;
  margin-bottom:18px
}
.filters input {
  flex:1
}
.filters select {
  width:175px
}
.document-cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
.document-cards .panel {
  padding:20px
}
.document-cards .actions {
  gap:9px
}
.document-cards .actions a {
  font-size:10px
}
.document-cards .button {
  font-size:11px;
  padding:8px 12px
}
.option-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:9px
}
.option-row input[type=checkbox] {
  accent-color:var(--blue);
  width:17px;
  height:17px;
  flex-shrink:0
}
.option-row input[name=option] {
  flex:1;
  min-width:0;
  padding:11px;
  border:1px solid #cbdfef;
  border-radius:7px
}
.option-row button {
  border:0;
  background:#eff5fa;
  color:#8297af;
  font-size:22px;
  border-radius:5px;
  width:30px;
  height:33px
}
.option-row input[type=checkbox]:checked+input {
  border-color:#61b38d;
  background:#f3fbf6
}
.empty {
  text-align:center;
  padding:35px 15px;
  color:#91a4b9;
  font-size:12px
}
.empty>span {
  display:block;
  font-size:28px;
  margin-bottom:8px
}
.legal-content {
  line-height:1.9;
  font-size:13px
}
.document-paragraph {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:var(--ink);
  margin:0 0 15px
}
.document-heading {
  margin: 26px 0 14px;
  color: var(--ink);
  font-size: 19px;
}
.document-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.legal-table {
  min-width:760px
}
.legal-table td {
  border:1px solid var(--line);
  white-space:pre-wrap;
  padding:12px;
  vertical-align:top;
  font-size:11px
}
.legal-content>.small {
  overflow-wrap:anywhere
}
.loading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:80vh;
  color:var(--muted)
}
dialog {
  border:1px solid var(--line);
  border-radius:14px;
  padding:27px;
  width:590px;
  max-width:calc(100vw - 28px);
  max-height:92vh;
  color:var(--ink);
  background:#fff;
  box-shadow:0 20px 120px #12375740
}
dialog::backdrop {
  background:#17375866;
  backdrop-filter:blur(3px)
}
.modal-header {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px
}
.modal-header h2 {
  font-size:22px
}
.close {
  border:0;
  background:none;
  color:#8295aa;
  font-size:24px;
  line-height:1;
  padding:2px 5px
}
.auth-tabs {
  display:flex;
  gap:20px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line)
}
.auth-tabs button {
  border:0;
  background:none;
  color:#8096ac;
  padding:8px 0;
  font-size:12px
}
.auth-tabs button.active {
  color:var(--blue);
  border-bottom:2px solid var(--blue)
}
#toast {
  display:none;
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:100;
  background:#174b83;
  color:white;
  border-radius:9px;
  padding:13px 22px;
  font-size:12px;
  box-shadow:0 7px 30px #17375835;
  max-width:calc(100vw - 30px)
}
#toast.visible {
  display:block
}
#toast.error {
  background:#a65042
}
@media(min-width:1600px) {
  .container,.header-inner,.footer {
    max-width:1360px
  }
  .hero {
    min-height:440px
  }
  .hero-tree .quiz-tree {
    max-width:375px
  }
}
@media(max-width:1100px) {
  .brand {
    font-size:14px
  }
  .brand span {
    font-size:8px
  }
  .header nav {
    gap:15px
  }
  .header-actions .button {
    padding:9px 12px;
    font-size:11px
  }
  .game-heading {
    align-items:start;
    flex-direction:column;
    gap:15px
  }
  .timeline {
    max-width:100%;
    width:100%;
    justify-content:space-between
  }
  .game-heading h1 {
    font-size:36px
  }
  .admin-layout {
    grid-template-columns:165px minmax(0,1fr);
    gap:20px
  }
  .admin-main .metrics {
    grid-template-columns:repeat(2,1fr)
  }
  .hero h1 {
    font-size:47px
  }
  .hero .eyebrow {
    font-size:9px
  }
  .footer {
    flex-wrap:wrap
  }
}
@media(max-width:800px) {
  .header-inner {
    flex-wrap:wrap;
    gap:12px 20px
  }
  .header nav {
    order:3;
    width:100%;
    gap:25px;
    border-top:1px solid #f0f5fa;
    padding-top:9px
  }
  .header nav a.active:after {
    bottom:-8px
  }
  .header-actions {
    margin-left:auto
  }
  .brand {
    font-size:15px
  }
  .hero {
    gap:10px;
    min-height:330px
  }
  .hero h1 {
    font-size:39px
  }
  .hero-lead {
    font-size:15px
  }
  .hero .button {
    font-size:12px;
    padding:12px 18px
  }
  .hero-tree .quiz-tree {
    max-width:280px
  }
  .info-grid {
    gap:10px
  }
  .info-card {
    display:block;
    padding:16px
  }
  .info-icon {
    margin-bottom:10px;
    width:40px;
    height:40px;
    font-size:24px
  }
  .info-card h3 {
    font-size:13px
  }
  .info-card p {
    font-size:11px
  }
  .landing-bottom {
    grid-template-columns:1fr
  }
  .game-layout {
    grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr);
    gap:17px
  }
  .question-panel {
    padding:22px
  }
  .question-heading {
    gap:12px
  }
  .question-heading .info-icon {
    margin:0
  }
  .question-heading h2 {
    font-size:17px
  }
  .question-text {
    font-size:15px
  }
  .metrics article {
    padding:14px
  }
  .metrics strong {
    font-size:27px
  }
  .two-columns {
    grid-template-columns:1fr
  }
  .admin-layout {
    grid-template-columns:1fr;
    gap:12px
  }
  .admin-nav {
    display:flex;
    gap:5px;
    border:0;
    padding:0;
    overflow-x:auto
  }
  .admin-nav>p {
    display:none
  }
  .admin-nav button {
    width:auto;
    white-space:nowrap;
    padding:9px 12px;
    font-size:11px
  }
  .admin-nav button span {
    display:none
  }
  .admin-main .metrics {
    grid-template-columns:repeat(4,1fr)
  }
  .document-cards {
    gap:12px
  }
  .footer {
    padding-top:24px
  }
}
@media(max-width:570px) {
  .container {
    padding:0 16px 30px
  }
  .header-inner {
    padding:15px 16px;
    gap:12px 8px
  }
  .brand {
    font-size:12px;
    gap:5px;
    white-space:normal
  }
  .brand span {
    font-size:7px;
    padding:3px 4px
  }
  .header-actions {
    gap:5px
  }
  .header-actions .button {
    padding:7px 9px;
    font-size:10px;
    max-width:110px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .header nav {
    gap:23px
  }
  .header nav a {
    font-size:11px
  }
  .hero {
    grid-template-columns:1fr;
    padding:28px 0 16px;
    gap:12px
  }
  .hero h1 {
    font-size:41px;
    margin:12px 0 18px
  }
  .hero-lead {
    font-size:16px
  }
  .hero .eyebrow {
    font-size:9px;
    max-width:300px;
    line-height:1.8
  }
  .hero-tree {
    max-width:290px;
    justify-self:center;
    width:100%
  }
  .hero-tree .quiz-tree {
    max-width:230px
  }
  .hero-caption {
    font-size:9px;
    bottom:0
  }
  .snow {
    font-size:24px
  }
  .s1 {
    top:20px
  }
  .s2 {
    bottom:65px;
    right:3px;
    font-size:32px
  }
  .info-grid {
    grid-template-columns:1fr;
    margin-top:15px
  }
  .info-card {
    display:flex;
    gap:15px;
    padding:17px
  }
  .info-card .info-icon {
    margin:0
  }
  .info-card h3 {
    font-size:14px
  }
  .info-card p {
    font-size:12px
  }
  .panel {
    padding:20px;
    margin-bottom:16px
  }
  .panel h2 {
    font-size:19px
  }
  .steps {
    gap:20px
  }
  .steps h3 {
    font-size:11px
  }
  .steps p {
    font-size:10px
  }
  .steps>div:not(:last-child):after {
    right:-17px
  }
  .test-banner {
    font-size:9px;
    line-height:1.6
  }
  .account-nav {
    gap:5px;
    margin-bottom:22px
  }
  .account-nav button {
    font-size:10px;
    padding:7px 10px
  }
  .game-heading h1 {
    font-size:34px
  }
  .timeline {
    justify-content:start;
    gap:7px
  }
  .day {
    min-width:41px
  }
  .day>span {
    height:32px;
    width:32px
  }
  .metrics {
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin:18px 0
  }
  .metrics strong {
    font-size:27px
  }
  .metrics span {
    font-size:10px
  }
  .metrics article {
    padding:13px 15px
  }
  .game-layout {
    grid-template-columns:1fr
  }
  .question-panel {
    padding:20px
  }
  .question-heading h2 {
    font-size:19px
  }
  .question-text {
    font-size:15px;
    margin:17px 0 22px
  }
  .choice {
    font-size:12px;
    padding:15px 12px;
    gap:11px
  }
  .question-actions {
    gap:9px
  }
  .question-actions .button {
    padding:10px 12px;
    font-size:11px
  }
  .tree-panel {
    padding:20px
  }
  .tree-panel .quiz-tree {
    max-width:260px
  }
  .copy-line {
    flex-direction:column
  }
  .copy-line input {
    width:100%
  }
  .page-heading h1 {
    font-size:30px
  }
  .admin-main .metrics {
    grid-template-columns:1fr 1fr
  }
  .form-grid,.document-cards {
    grid-template-columns:1fr
  }
  .admin-nav {
    padding-bottom:5px
  }
  .admin-nav button {
    padding:9px 11px
  }
  .filters {
    flex-direction:column;
    gap:8px
  }
  .filters select {
    width:100%
  }
  .document-cards .actions {
    gap:12px
  }
  .footer {
    padding:22px 16px;
    gap:15px
  }
  .footer .brand {
    font-size:12px
  }
  .footer-links {
    gap:9px 13px
  }
  .footer>span {
    width:100%
  }
  .contacts {
    gap:10px 15px;
    font-size:10px
  }
  .table-wrap table {
    font-size:11px
  }
  .table-wrap td,.table-wrap th {
    padding:11px 8px
  }
  .neutral-avatar {
    display:none
  }
  .result {
    font-size:12px
  }
  .notice {
    font-size:11px
  }
  .modal-header h2 {
    font-size:20px
  }
  dialog {
    padding:22px
  }
  .field {
    font-size:11px
  }
  .document-links {
    font-size:9px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

:root {
  font-family:Onest,system-ui,"Segoe UI",sans-serif;
  color:#fff6e5;
  background:#0c1d1b;
  font-size:16px;
  color-scheme:dark;
  --display:Literata,Georgia,serif;
  --blue:#f1cf91;
  --ink:#fff6e5;
  --muted:#c2d0c6;
  --line:#3e554a;
  --pale:#243c33;
  --shadow:0 10px 36px #020a0730;
  --surface:#162923;
  --dark:#0c1d1b;
  --frame:1280px;
  --gutter:clamp(18px,5.6vw,84px);
  --nav-height:72px;
}
body { background:var(--dark); }
#app { position:relative; isolation:isolate; padding-bottom:24px; }
.header { position:relative; z-index:2; background:#0b1918; }
.header .header-inner,.container:not(.holiday-home),.footer {
  width:min(var(--frame), calc(100% - 2 * var(--gutter)));
  max-width:none;
  padding-inline:0;
}
.header .header-inner {
  min-height:calc(var(--nav-height) - 1px);
  padding-block:8px;
  display:flex;
  flex-wrap:nowrap;
  gap:clamp(12px,2.3vw,27px);
}
.header .brand,.footer .brand { font-size:.89rem; letter-spacing:.035em; flex-wrap:nowrap; }
.brand,.brand span,.header nav a,.footer,.account-nav button { color:var(--ink); }
.brand span { padding:0 0 0 10px; border-left:1px solid var(--line); color:var(--blue); background:none; border-radius:0; font-size:.64rem; }
.header .header-nav { display:flex; flex-wrap:nowrap; gap:clamp(14px,2.3vw,32px); }
.header .header-nav a { display:inline-flex; align-items:center; min-height:44px; }
.header .header-nav a[aria-current="page"] { color:var(--blue); }
.header .header-nav a:hover { text-decoration:underline; text-decoration-color:var(--blue); }
.header .header-actions { flex:none; margin:0; }
.header .header-actions .button { min-height:44px; max-width:11.5rem; }
.header .nav__toggle,.header .mobile-account-action { display:none; }
.header .nav__toggle {
  width:44px;
  min-height:44px;
  place-items:center;
  color:var(--ink);
  background:transparent;
  border:1px solid var(--line);
  border-radius:7px;
}
.header .nav__toggle > span {
  width:17px;
  height:10px;
  border-block:1px solid currentColor;
}
.header .nav__toggle[aria-expanded="true"] { color:var(--blue); border-color:var(--blue); }
.skip-link {
  position:fixed;
  z-index:10;
  left:var(--gutter);
  top:8px;
  padding:10px 14px;
  background:var(--blue);
  color:var(--dark);
  transform:translateY(-160%);
}
.skip-link:focus { transform:none; }
.day>span,.admin-nav button,.auth-tabs button.active { background:#20362e; }
.header nav a,.button,.actions a,.panel-heading a,.checkbox,.choice,.field,legend,.notice,.contacts,.steps h3,.steps p,.metrics span { font-size:.875rem; }
.eyebrow { color:var(--blue); font-size:.8rem; }
.button { border-color:var(--blue); background:var(--blue); color:var(--dark); min-height:44px; border-radius:7px; transition:background .18s,transform .18s; }
.button:hover { background:#ffdfab; color:var(--dark); transform:translateY(-2px); }
.button:active { transform:translateY(0); }
.button.secondary { background:transparent; color:var(--ink); border-color:#688075; }
.button.secondary:hover { background:var(--pale); color:var(--ink); }
.page-heading h1,.results-heading h1,.draw-heading h1 { font-family:var(--display); font-weight:500; letter-spacing:-.04em; }
.hero.festive-hero {
  min-height:410px;
  border-radius:22px;
  margin:26px 0 20px;
  padding:clamp(23px,4vw,55px);
  background:radial-gradient(ellipse at 76% 55%,#286652 0%,transparent 49%),linear-gradient(140deg,#311d26 0%,#122e26 60%,#0d231c 100%);
  border:1px solid #977447;
  box-shadow:var(--shadow);
}
.festive-hero h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.1rem,5.2vw,4.15rem); letter-spacing:-.025em; }
.festive-hero h1 em { font-family:"Segoe UI",sans-serif; font-size:.52em; letter-spacing:0; }
.festive-hero .hero-lead { font-size:1.05rem; color:var(--muted); }
.panel,.metrics article,dialog,.tree-panel { background:var(--surface); color:var(--ink); }
.panel,dialog { border-color:var(--line); border-radius:12px; box-shadow:none; }
.tree-panel { background:radial-gradient(ellipse at 50% 45%,#2c5840,#102b22); margin-bottom:20px; }
.footer { color:var(--muted); }
.footer p,.footer-links a,.test-banner,.contacts a { color:var(--muted); }
.header .test-banner {
  width:min(var(--frame), calc(100% - 2 * var(--gutter)));
  min-height:35px;
  margin-inline:auto;
  padding-block:6px;
  font-size:.78rem;
  border:0;
  border-top:1px solid var(--line);
}
.story-copy { white-space:pre-line; overflow-wrap:anywhere; }
.story-episode { border-left:3px solid #d3aa60; padding:12px 16px; background:#253e30; border-radius:0 10px 10px 0; margin:15px 0; color:#e2ebdf; }
.steps { grid-template-columns:repeat(4,minmax(0,1fr)); }
.steps>div:not(:last-child):after { display:none; }
.steps span,.rank,.neutral-avatar { color:#402f13; background:#efd393; }
.prize-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:12px; }
.prize-card { margin-bottom:14px; }
.prize-card h3 { overflow-wrap:anywhere; }
.prize-card .eyebrow { margin-top:0; }
.results-video iframe { display:block; width:100%; max-width:800px; aspect-ratio:16/9; border:0; }
.settings-panel h2:not(:first-of-type) { border-top:1px solid var(--line); padding-top:20px; margin-top:22px; }
.notice,.answer-text,.empty { background:#223e31; color:#f4ecd3; border-color:#607652; }
.completion,.fourth-notice { border-color:#d4aa64; }
.day { color:#c3d6c9; }
.day small { font-size:.68rem; }
.day>span,.choice,.field input,.field select,.field textarea,.filters input,.filters select,.copy-line input,.option-row input:not([type=checkbox]) { color:var(--ink); background:var(--dark); border-color:var(--line); min-width:0; }
.field>span,.field label,.checkbox,.question-text,.admin-nav button,.legal-table td { color:var(--ink); }
.choice:has(input:checked),.day.available>span,.day.current>span { background:#3d442b; color:#ffeab4; border-color:#e7c365; }
.choice.removed { background:#172c25; color:#9eb6a8; }
.day.accepted>span { color:#2c220d; }
.day.rejected>span { background:#642d3b; color:#ffdce2; }
.admin-nav button.active,.account-nav button.active { background:#405239; color:var(--blue); }
.table-wrap th,.table-wrap tr.own td { background:#243e32; color:#ffe8a7; }
.table-wrap td,.table-wrap td strong { color:var(--ink); }
.metrics small,.tree-panel .panel-heading,.tree-panel p,.auth-tabs button,.close { color:var(--muted); }
.form-error { color:#ffc0bc; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline-color:#ffe08c; }
.ball.locked circle { fill:#1d5140; stroke:#97b99c; opacity:.45; }
.ball.accepted circle { stroke:#ffe1aa; }
.ball.accepted.ornament-0 circle { fill:#b73049; }
.ball.accepted.ornament-1 circle { fill:#da9e36; }
.ball.accepted.ornament-2 circle { fill:#f3ead8; }
.ball.accepted.ornament-3 circle { fill:#208764; }
.ball.accepted.ornament-2 text,.ball.accepted.ornament-1 text { fill:#3a2b14; }
.tree-star { fill:#244138; stroke:#c6a664; }
.tree-star.lit { fill:#ffe587; stroke:#fff6cc; filter:drop-shadow(0 0 8px #ffc942); }
.glint { animation:glint 1.3s ease-out; }
@keyframes glint {
  0%,100% { filter:drop-shadow(0 0 4px #ffdf83); }
  38% { filter:drop-shadow(0 0 18px #fff3be) brightness(1.85); }
}
.snowbank { height:calc(var(--drift,0)*1px); position:absolute; bottom:0; width:100%; opacity:.55; pointer-events:none;
  background:radial-gradient(ellipse at 14% 110%,#fff 46%,transparent 48%),radial-gradient(ellipse at 59% 130%,#e2f2e9 56%,transparent 58%),radial-gradient(ellipse at 91% 115%,#edf5e8 40%,transparent 42%); }
.weather-1,.weather-2,.weather-3 { --drift:4; }
.weather-4,.weather-5,.weather-6 { --drift:8; }
.weather-7,.weather-8,.weather-9 { --drift:12; }
.weather-10,.weather-11,.weather-12 { --drift:16; }
@media(max-width:850px) { .prize-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
  .steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
  .header nav { gap:13px; flex-wrap:wrap; }
  .header nav a { font-size:.82rem; }
  .hero.festive-hero { min-height:0; }
  .prize-card { padding:15px; }
}
@media(max-width:930px) {
  :root { --nav-height:64px; }
  .header .nav__toggle { display:grid; }
  .header .header-nav {
    position:absolute;
    inset:100% 0 auto;
    display:none;
    align-items:stretch;
    flex-direction:column;
    padding:12px var(--gutter) 20px;
    gap:0;
    background:#0b1918;
    border-block:1px solid var(--line);
    box-shadow:var(--shadow);
  }
  .header:has(.nav__toggle[aria-expanded="true"]) .header-nav { display:flex; }
  .header .header-nav a:not(:last-child) { border-bottom:1px solid var(--line); }
  .header .header-actions :is([data-action="logout"],[data-tab="register"]) { display:none; }
  .header .mobile-account-action { display:inline-flex; align-self:flex-start; margin-top:10px; }
  .header .header-actions .button { padding-inline:12px; max-width:10rem; overflow-wrap:anywhere; }
}
@media(max-width:600px) {
  .header .header-inner { gap:6px; }
  .header .brand,.footer .brand { display:grid; justify-items:start; gap:2px; line-height:1.2; white-space:normal; font-size:.76rem; }
  .brand span { border:0; padding:0; }
  .header .header-actions { gap:6px; }
  .header .header-actions .button { max-width:clamp(75px,27vw,145px); }
}
@media(prefers-reduced-motion:reduce) {
  .glint { animation:none; }
  .button,.button:hover { transform:none; transition:none; }
}


/* Landing: the winter scene is a layer of the hero, with the calm side behind the copy. */
.container.holiday-home {
  max-width:none;
  width:100%;
  padding:0;
  --test-row:0px;
  --account-row:0px;
}
#app:has(.header .test-banner) .holiday-home { --test-row:35px; }
.holiday-home:has(>.account-nav) { --account-row:68px; }
#app:has(.holiday-home):not(:has(.holiday-home > .account-nav)) > .header { position:absolute; inset:0 0 auto; }
.holiday-shell,.holiday-home > .account-nav {
  width:min(var(--frame), calc(100% - 2 * var(--gutter)));
  margin-inline:auto;
}
.hero.holiday-hero {
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  min-height:max(610px, calc(100svh - var(--nav-height) - var(--test-row) - var(--account-row)));
  margin:0;
  padding:0;
  overflow:clip;
  background:#081617;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.holiday-home:not(:has(>.account-nav)) .holiday-hero {
  --hero-top:calc(var(--nav-height) + var(--test-row));
  min-height:100svh;
  padding-top:var(--hero-top);
}
.holiday-art {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:right center;
  z-index:-2;
}
.holiday-home:not(:has(>.account-nav)) .holiday-art {
  top:var(--hero-top);
  height:calc(100% - var(--hero-top));
}
.holiday-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#081617 0%,#0816178c 24%,transparent 58%);
  pointer-events:none;
}
.holiday-hero-inner { padding-block:clamp(44px,7svh,92px); }
.holiday-copy { width:min(52%,610px); }
.holiday-kicker {
  margin:0 0 22px;
  color:var(--blue);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.holiday-hero h1 {
  max-width:9.6ch;
  font-family:var(--display);
  font-size:clamp(3.6rem,7.15vw,7.5rem);
  line-height:1.02;
  letter-spacing:-.055em;
  font-weight:500;
  text-wrap:balance;
  color:var(--ink);
}
.holiday-subtitle {
  margin:12px 0 0;
  font:400 clamp(1.45rem,2.95vw,2.7rem)/1.15 var(--display);
  color:var(--blue);
}
.holiday-story {
  max-width:41ch;
  margin:25px 0 0;
  color:#e1e5dc;
  font-size:clamp(1rem,1.5vw,1.16rem);
  line-height:1.6;
}
.holiday-actions { margin:28px 0 0; gap:16px 23px; }
.holiday-hero .button { min-height:52px; padding:11px 21px; font-size:1rem; }
.holiday-hero .button::after { content:'→'; margin-left:6px; font-size:1.18em; }
.holiday-actions .holiday-rule-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  color:var(--ink);
  font-size:.96rem;
  text-decoration-color:#f1cf9180;
}
.holiday-rule-link span { color:var(--blue); transition:transform .2s; }
.holiday-rule-link:hover span { transform:translateY(3px); }
.holiday-date {
  margin:19px 0 0;
  color:#eee1c5;
  font-size:.84rem;
  font-variant-numeric:tabular-nums;
}
.holiday-date span { color:#c3ccc3; }
.holiday-steps,.holiday-bottom {
  min-height:100svh;
  padding-block:clamp(54px,11svh,108px);
}
.holiday-steps {
  --step-ink:#17342a;
  --step-muted:#46584e;
  --step-line:#c5cbbd;
  background:#f2eddf;
  color:var(--step-ink);
  scroll-margin-top:12px;
}
.holiday-home section h2 {
  margin:0;
  font:500 clamp(2.4rem,5vw,4.6rem)/1.1 var(--display);
  letter-spacing:-.05em;
}
.holiday-rules-grid,.holiday-prize-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;
  margin-top:clamp(26px,6vw,85px);
}
.holiday-rule-stat {
  border-top:1px solid var(--step-line);
  border-bottom:1px solid var(--step-line);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding-block:24px 30px;
}
.holiday-rule-stat > [data-count] {
  font:500 clamp(8rem,19vw,17rem)/1 var(--display);
  letter-spacing:-.065em;
  color:#244738;
}
.holiday-stat-label {
  margin:0;
  color:var(--step-muted);
  font-size:clamp(1.1rem,2.5vw,1.7rem);
}
.holiday-step-list { margin:0; padding:0; list-style:none; border-top:1px solid var(--step-line); }
.holiday-step-list li {
  display:grid;
  grid-template-columns:2.6rem minmax(0,1fr);
  align-items:baseline;
  border-bottom:1px solid var(--step-line);
  gap:12px;
  padding:20px 0;
}
.holiday-step-list li > span { color:#526858; font-variant-numeric:tabular-nums; }
.holiday-step-list h3 { font-size:clamp(1.05rem,1.65vw,1.35rem); font-weight:600; }
.holiday-step-list p { margin:5px 0 0; color:var(--step-muted); line-height:1.5; }
.holiday-text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.holiday-steps .holiday-text-link { color:#174d37; margin-top:12px; font-weight:600; }
.holiday-steps :focus-visible { outline-color:#285c45; }

.holiday-bottom { background:#101f1c; }
.holiday-prize-list { margin:0 0 16px; padding:0; list-style:none; border-top:1px solid var(--line); }
.holiday-prize-list li {
  display:grid;
  grid-template-columns:minmax(5.5rem,auto) minmax(0,1fr);
  gap:12px;
  align-items:baseline;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.holiday-prize-list strong { color:var(--blue); font-size:.95rem; font-weight:600; }
.holiday-prize-list p { margin:0; color:var(--ink); font:400 clamp(1.13rem,2.1vw,1.55rem)/1.4 var(--display); text-wrap:balance; }
.holiday-prize-note { margin:9px 0 0; font-size:.91rem; }
.holiday-prize-grid .button { margin-top:14px; }
.holiday-panel-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:0 12px; }
.holiday-panel-heading h3 { font:500 clamp(1.35rem,2.1vw,1.8rem)/1.3 var(--display); }
.holiday-leaders .table-wrap { margin-top:10px; }
.holiday-leaders .empty {
  padding:22px 0;
  border-radius:0;
  background:transparent;
  border-block:1px solid var(--line);
  text-align:left;
}
.holiday-leaders .empty > span { display:none; }
.holiday-result-date { margin:32px 0 0; }
.holiday-result-date time {
  display:block;
  margin-top:7px;
  color:var(--blue);
  font:400 clamp(1.85rem,3.6vw,3.7rem)/1.14 var(--display);
  letter-spacing:-.04em;
}

@media(min-aspect-ratio:17/10) and (min-width:841px) {
  .holiday-art {
    left:auto;
    width:auto;
    max-width:100%;
    object-fit:contain;
    mask-image:linear-gradient(to right, transparent, #000 24%);
  }
}
@media(max-width:840px) {
  .hero.holiday-hero {
    --art-height:clamp(285px, min(102vw, 50svh), 600px);
    align-items:start;
    min-height:max(0px, calc(100svh - var(--nav-height) - var(--test-row) - var(--account-row)));
  }
  .holiday-art,.holiday-home:not(:has(>.account-nav)) .holiday-art { top:auto; height:var(--art-height); object-fit:cover; }
  .holiday-hero::after {
    inset:auto 0 0;
    height:var(--art-height);
    background:linear-gradient(#081617 0%, #08161763 12%, transparent 30%);
  }
  .holiday-hero-inner { padding-block:clamp(26px,4svh,52px) calc(var(--art-height) - 24px); }
  .holiday-copy { width:min(100%,565px); }
  .holiday-hero h1 { max-width:100%; font-size:clamp(2.38rem,10.6vw,5.4rem); letter-spacing:-.055em; text-wrap:wrap; }
  .holiday-kicker { margin-bottom:12px; }
  .holiday-subtitle { margin-top:7px; }
  .holiday-story { margin-top:15px; }
  .holiday-actions { margin-top:17px; }
  .holiday-date { margin-top:14px; }
}
@media(min-width:601px) and (max-width:840px) {
  .holiday-steps .holiday-step-list li { padding-block:29px; }
  .holiday-prize-list li { grid-template-columns:1fr; gap:7px; padding-block:27px; }
}
@media(max-width:600px) {
  .holiday-copy { width:100%; }
  .holiday-kicker { font-size:.72rem; letter-spacing:.045em; }
  .holiday-hero .button { min-height:46px; padding:9px 13px; font-size:.92rem; }
  .holiday-actions { gap:4px 13px; }
  .holiday-actions .holiday-rule-link { font-size:.88rem; min-height:44px; }
  .holiday-story { max-width:36ch; font-size:.98rem; }
  .holiday-steps,.holiday-bottom { padding-block:55px; }
  .holiday-rules-grid,.holiday-prize-grid { grid-template-columns:minmax(0,1fr); gap:26px; margin-top:27px; }
  .holiday-rule-stat { flex-direction:row; align-items:baseline; justify-content:flex-start; gap:12px; padding-block:9px 17px; }
  .holiday-rule-stat > [data-count] { font-size:clamp(6rem,25vw,9rem); }
  .holiday-step-list li { grid-template-columns:2rem minmax(0,1fr); gap:8px; padding:17px 0; }
  .holiday-prize-list li { grid-template-columns:5.1rem minmax(0,1fr); padding-block:17px; }
}
@media(prefers-reduced-motion:reduce) {
  .holiday-rule-link span { transition:none; }
}

.account-nav {
  gap:2px 18px;
  margin:12px 0 26px;
  padding:0;
  border-bottom:1px solid var(--line);
  background:transparent;
}
.account-nav button {
  min-height:44px;
  padding:5px 0;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:.86rem;
  overflow-wrap:anywhere;
}
.account-nav button:hover { color:var(--ink); }
.account-nav button.active {
  border-color:var(--blue);
  background:transparent;
  color:var(--blue);
}
.account-game {
  --game-gold:var(--blue);
  --game-line:var(--line);
  --game-serif:var(--display);
}
.account-game .game-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);
  gap:clamp(16px,3vw,36px);
  margin:0;
  padding:12px 0 clamp(20px,2.7vw,35px);
  border-bottom:1px solid var(--game-line);
}
.account-game h1,.container:has(>.account-nav) > .page-heading h1 {
  color:var(--ink);
  font-family:var(--display);
  font-weight:500;
}
.account-game .game-heading h1 {
  margin:0;
  font-size:clamp(2.2rem,4.15vw,3.55rem);
  line-height:1.02;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
.account-game .game-heading p {
  margin:8px 0 0;
  color:var(--muted);
  font-size:1rem;
}
.game-calendar h2 {
  margin-bottom:9px;
  color:var(--game-gold);
  font-size:.98rem;
}
.account-game .timeline {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  max-width:none;
  gap:6px;
  padding:2px 0 0;
  overflow:visible;
}
.account-game .day {
  min-width:0;
  min-height:53px;
  color:#d8e2d4;
}
.account-game .day>span {
  width:35px;
  height:35px;
  margin-bottom:4px;
  border-color:#58705a;
  background:#081d17;
  font-weight:700;
}
.account-game .day small { font-size:.72rem; }
.account-game .day.available>span { border-color:#b59556; color:#ffdc85; }
.account-game .day.rejected>span { border-color:#b96e66; background:#662725; color:#ffdfd0; }
.account-game .day.partial>span { border-color:#ddac66; background:#614329; color:#ffdda3; }
.account-game .day.accepted>span { border-color:#ffdd83; background:#d6a74b; color:#261908; }
.account-game .day.current>span { border-color:#f0ca76; box-shadow:0 0 0 3px #f6c97548; }
.account-game .day:hover>span { border-color:#ffdf9a; }
.account-game .metrics { gap:0; margin:0 0 22px; border-bottom:1px solid var(--line); }
.account-game .metrics article {
  padding:15px clamp(10px,2vw,23px);
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.account-game .metrics article + article { border-left:1px solid var(--line); }
.account-game .metrics article:first-child { padding-left:0; }
.account-game .metrics article:last-child {
  background:#182b22;
}
.account-game .metrics strong { color:var(--game-gold); font-family:var(--game-serif); }
.account-game .metrics span { color:var(--muted); font-size:.86rem; }
.account-game .game-layout { gap:clamp(18px,3vw,40px); }
.account-game .question-panel {
  padding:clamp(18px,2.5vw,33px);
  border-color:var(--game-line);
  border-radius:12px;
  background:var(--surface);
}
.game-intro {
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.game-intro > summary {
  padding:12px 0;
  color:var(--game-gold);
  font-weight:600;
  cursor:pointer;
}
.game-intro > summary:focus-visible {
  outline:2px solid var(--game-gold);
  outline-offset:2px;
}
.game-intro-copy {
  padding:0 0 14px;
}
.game-intro-copy p {
  margin:0 0 10px;
  color:#f8ead1;
  line-height:1.55;
}
.game-intro-copy p:last-child { margin-bottom:0; }
.game-story-modal .game-intro-copy { padding:12px 0; }
.game-story-modal .button { margin-top:10px; }
.account-game .question-heading {
  display:block;
  margin:0 0 20px;
  padding:0;
}
.question-status {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 12px;
}
.account-game .question-status .eyebrow { margin:0; color:#f6d291; font-size:.82rem; }
.account-game .question-status .badge { background:#354539; color:#f4eccf; }
.account-game .question-status .badge.accepted { background:#284b37; color:#ddffe7; }
.account-game .question-status .badge.rejected { background:#752d2a; color:#ffe5db; }
.account-game .result.accepted { background:#1e4532; color:#d9f8dd; }
.account-game .result.partial { background:#4b391e; color:#ffdf9f; }
.account-game .result.rejected { background:#552525; color:#ffe0d4; }
#app:has(.account-nav) ~ #toast {
  border:1px solid #a5854a;
  background:#132f23;
  color:#ffe4a9;
}
#app:has(.account-nav) ~ #toast.error { background:#622b25; color:#ffebde; }
.account-game .question-heading h2 {
  margin-top:6px;
  color:#fff2d5;
  font-family:var(--game-serif);
  font-size:clamp(1.38rem,2.5vw,2rem);
  line-height:1.2;
}
.account-game .contacts:empty { display:none; }
.account-game .tree-panel {
  margin:0;
  padding:0;
  overflow:hidden;
  border-color:var(--game-line);
  border-radius:12px;
  background:#092118;
}
.account-game .tree-panel .panel-heading {
  gap:8px;
  padding:11px 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.tree-panel .panel-heading h2 {
  color:var(--game-gold);
  font-family:var(--game-serif);
  font-size:clamp(1.2rem,2.1vw,1.65rem);
}
.account-game .tree-panel .panel-heading span {
  flex:none;
  padding:4px 11px;
  border:1px solid #987e4e;
  border-radius:100px;
  color:#ffe1a6;
  font-size:.9rem;
}
.tree-stage { position:relative; aspect-ratio:4/5; }
.tree-stage img,.account-game .tree-stage .quiz-tree {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
  object-fit:cover;
}
.account-game .tree-star:not(.lit) { fill:#2d2917; stroke:#d3ad62; stroke-width:1.8px; }
.account-game .ball path { stroke:#d7ad61; }
.account-game .ball.locked circle { fill:#10271d; stroke:#bd9d60; opacity:.77; }
.account-game .ball.accepted circle { filter:drop-shadow(0 0 3px #ffb35779); }
@media(max-width:1100px) {
  .account-game .game-heading { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:820px) {
  .account-game .timeline { grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
  .account-game .game-layout { grid-template-columns:1fr; }
  .account-game .tree-panel { width:min(100%,440px); justify-self:center; }
}
@media(max-width:600px) {
  .account-nav { margin-bottom:14px; }
  .account-nav button { padding:7px 0; font-size:.83rem; }
  .account-game .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
  .account-game .metrics article { padding:9px 12px; }
  .account-game .metrics article:nth-child(3) { border-left:0; padding-left:0; }
  .account-game .metrics article:nth-child(n+3) { border-top:1px solid var(--line); }
  .account-game .day>span { width:32px; height:32px; }
}

.results-page,.draw-room { padding-top:22px; }
.results-heading,.draw-heading {
  margin-bottom:18px;
  padding:clamp(18px,3vw,32px);
  border:1px solid #8d7246;
  border-radius:18px;
  background:radial-gradient(ellipse at 8% 0%,#2b563b,transparent 75%),#112a21;
}
.results-heading h1,.draw-heading h1 {
  color:#f9d887;
  font:700 clamp(2rem,5vw,3.8rem)/1.05 Georgia,"Times New Roman",serif;
}
.results-page .panel,.draw-room .panel { margin-top:13px; }
.personal-results strong { color:#ffe3a9; }
.draw-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px 20px;
}
.draw-reveal {
  display:grid;
  place-items:center;
  min-height:230px;
  padding:18px;
  overflow:hidden;
  border:1px solid #a9864a;
  border-radius:18px;
  background:radial-gradient(ellipse at 50% 35%,#4e4d27,#09211a 64%);
  text-align:center;
}
.draw-reveal p { margin:0; color:#ffedc4; font-size:1.05rem; }
.draw-magic {
  display:grid;
  place-items:center;
  width:70px;
  height:70px;
  border:1px solid #ddbb64;
  border-radius:50%;
  color:#ffe49e;
  font-size:2.45rem;
  line-height:1;
  box-shadow:0 0 28px #ffd87270;
}
.draw-login {
  display:block;
  margin-top:4px;
  color:#fff1bd;
  font-size:clamp(1.75rem,7vw,4rem);
  letter-spacing:.03em;
  overflow-wrap:anywhere;
}
.is-drawing .draw-magic { animation:draw-magic .75s ease-in-out infinite alternate; }
@keyframes draw-magic {
  from { transform:rotate(-28deg) scale(.88); box-shadow:0 0 10px #fff0a460; }
  to { transform:rotate(45deg) scale(1.45); box-shadow:0 0 46px #ffe298da; }
}
.draw-actions { display:flex; justify-content:center; align-items:center; gap:8px 17px; flex-wrap:wrap; margin:16px 0; }
.draw-actions p { margin:0; }
.draw-group + .draw-group { margin-top:15px; }
.draw-group h3 { margin:9px 0; color:#ffe1a2; }
.draw-contenders {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.draw-contenders li { padding:8px; border:1px solid #556a47; border-radius:7px; overflow-wrap:anywhere; }
.draw-contenders .draw-picked { border-color:#c29c55; color:#ffe8ae; }
.draw-contenders span,.draw-protocol time { display:block; font-size:.86rem; color:var(--muted); }
.draw-protocol li { margin:6px 0; }
#app:fullscreen { overflow:auto; background:#091a16; }
#app:fullscreen:has(.draw-room) > :is(.header,.footer),
#app:fullscreen:has(.draw-room) .test-banner { display:none; }
@media(prefers-reduced-motion:reduce) {
  .is-drawing .draw-magic { animation:none; }
}
.cookie-consent {
  position:fixed;
  z-index:5;
  inset:auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 25px;
  width:min(920px, calc(100% - 28px));
  margin-inline:auto;
  padding:17px 21px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.cookie-consent[hidden] { display:none; }
.cookie-consent h2 { font-size:1rem; }
.cookie-consent p { max-width:54ch; margin:4px 0 0; font-size:.875rem; }
.cookie-actions { display:flex; flex-wrap:wrap; gap:8px; }
.footer [data-cookie-settings] {
  padding:0;
  border:0;
  background:none;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:560px) {
  .cookie-consent { gap:10px; padding:13px 15px; }
  .cookie-actions { width:100%; }
  .cookie-actions button { flex:1 1 125px; padding-inline:8px; }
}
