.ranked-page{padding-top:36px;padding-bottom:70px;max-width:1100px}.ranked-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:14px 0 26px}.ranked-heading h1{font-size:clamp(36px,5vw,60px);line-height:1.08;margin:0}.ranked-heading p,.r-section-head p{color:var(--text-muted,#9c8792);margin:10px 0 0}.r-season{border:1px solid #5d484e;border-radius:16px;padding:14px 20px;background:#32252d;min-width:155px;text-align:center;color:#f7ecee}.r-season span{display:block;font-weight:800}.r-season small{display:block;color:#c4afb5;margin-top:5px}.r-online{border:1px solid #514a50;background:linear-gradient(110deg,rgba(54,48,55,.87),rgba(42,39,44,.88));border-radius:20px;padding:25px;box-shadow:inset 0 0 0 1px #ffffff06;filter:saturate(.3);color:#e4dbe0}.r-online-header,.r-section-head,.r-play-head,.r-progress{display:flex;align-items:center;justify-content:space-between;gap:18px}.r-online h2,.r-section-head h2,.r-play-head h2{margin:0;font-size:23px}.r-online p{color:#c0b7bd;max-width:650px;margin:10px 0 18px}.r-future,.r-pill{border:1px solid #6b6068;border-radius:30px;font-size:11px;padding:6px 10px;letter-spacing:.05em;font-weight:800;white-space:nowrap}.r-online-games{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.r-online-games span{border:1px solid #665d63;padding:7px 11px;border-radius:7px;font-size:13px}.r-button{display:inline-block;text-align:center;border:0;border-radius:10px;padding:13px 20px;background:#f1c4ad;color:#25181f;font-size:14px;font-weight:800;cursor:pointer}.r-button:hover:not(:disabled){filter:brightness(1.08)}.r-button:disabled,.r-disabled{background:#666169;color:#ded9dd;cursor:not-allowed;opacity:.7}.r-dim{display:block;margin-top:8px;color:#ac9fa6}.r-board-section,.r-leader-section{margin-top:34px}.r-section-head{margin-bottom:18px}.r-section-head h2{font-size:26px}.r-section-head p{font-size:14px}.r-pill{color:#e3c5b8;border-color:#80635e}.r-status{min-height:20px;font-size:13px;color:#dfb5a7;margin-bottom:12px}.r-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.r-game{background:#302229;border:1px solid #58414c;border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:11px}.r-game:hover{border-color:#986c75}.r-game-head{display:flex;gap:10px;align-items:center;justify-content:space-between}.r-game-head strong{font-size:17px}.r-icon{font-size:22px}.r-game .r-rating{font-size:23px;font-weight:800;color:#f1dbca}.r-game .r-rank{font-size:13px;color:#d9b7cd}.r-game .r-small{font-size:12px;color:#ab98a1}.r-game .r-button{width:100%;margin-top:auto}.r-game .r-button:disabled{opacity:.5}.r-play,.r-leader-section{border:1px solid #5f4650;border-radius:18px;background:#2b1e26;padding:24px}.r-play{margin-top:30px;scroll-margin-top:50px}.r-play[hidden],#r-result[hidden]{display:none}.r-play-head h2{font-size:22px}.r-ghost{border:1px solid #806673;background:transparent;color:#f0d5dd;border-radius:9px;padding:9px 12px;cursor:pointer}.r-progress{margin-top:20px;font-size:14px;color:#d9bdc7}.r-progress strong{font-variant-numeric:tabular-nums;font-size:21px;color:#f3c8aa}.r-timer-urgent{color:#fb7d89!important}.r-progress-track{height:7px;border-radius:10px;background:#53414c;overflow:hidden;margin:12px 0 25px}.r-progress-track span{display:block;background:#e4af90;height:100%;width:0;transition:width .3s}.r-prompt{font-size:22px;line-height:1.35;color:#f8ebef;margin-bottom:20px}.r-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r-choice{border:1px solid #795965;background:#422f38;border-radius:11px;padding:15px;color:#fbebf0;text-align:left;cursor:pointer;font-size:15px;min-height:55px}.r-choice:hover,.r-choice:focus-visible{border-color:#e8b99e;background:#4d3641}.r-choice:disabled{opacity:.5;cursor:wait}.r-clues{padding-left:24px;color:#e6d4dc}.r-clues li{margin:11px 0}.r-ranking{display:grid;gap:7px;margin-bottom:16px}.r-rank-item{display:grid;grid-template-columns:30px 1fr 42px 42px;gap:6px;align-items:center;padding:7px 10px;background:#46323d;border-radius:8px;min-height:49px}.r-rank-item button{min-height:33px;background:#6a515e;border:0;border-radius:6px;color:white;cursor:pointer}.r-rank-item button:disabled{opacity:.35;cursor:not-allowed}.r-grid{display:grid;grid-template-columns:repeat(4,51px);gap:4px;margin-bottom:15px}.r-grid input{width:51px;height:51px;text-align:center;background:#493641;border:1px solid #846a77;color:white;border-radius:6px;font-weight:800;font-size:20px}.r-grid input[readonly]{background:#6c4d5d}.r-submit{margin-top:9px}.r-review{display:grid;gap:9px;margin-top:16px}.r-review-row{background:#43303b;padding:13px;border-radius:8px;font-size:13px}.r-leader-tabs-wrap{overflow-x:auto;padding-bottom:8px;margin-bottom:16px;scrollbar-width:thin;scrollbar-color:#8b5f4a #3e292f}.r-leader-tabs{display:flex;gap:10px;min-width:max-content;padding-bottom:2px}.r-leader-tab{flex:0 0 auto;border:1px solid #7c5d69;background:#3c2933;color:#fff;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}.r-leader-tab:hover,.r-leader-tab:focus-visible{border-color:#e8b99e;background:#4a333d;outline:none}.r-leader-tab.is-active{background:#f1c4ad;border-color:#f1c4ad;color:#25181f}.r-leader-tabs-wrap::-webkit-scrollbar{height:8px}.r-leader-tabs-wrap::-webkit-scrollbar-track{background:#3d2a31;border-radius:999px}.r-leader-tabs-wrap::-webkit-scrollbar-thumb{background:#7f5b4f;border-radius:999px}.r-leader-row{display:flex;justify-content:space-between;border-bottom:1px solid #614751;padding:10px 4px;color:#eee}.r-leader-row a{color:#f7d6bd;text-decoration:none}.r-disclaimer{font-size:12px;color:#b59faa;line-height:1.6;margin-top:27px}#r-play-error{color:#ffb2b2;font-size:13px;min-height:20px;margin-top:12px}@media(max-width:830px){.r-games{grid-template-columns:repeat(2,minmax(0,1fr))}.ranked-heading{align-items:start;flex-direction:column}.r-season{text-align:left}}@media(max-width:520px){.r-games{grid-template-columns:1fr}.r-online,.r-play,.r-leader-section{padding:18px}.r-choices{grid-template-columns:1fr}.r-online-header,.r-section-head{align-items:start;flex-direction:column}.ranked-page{padding-bottom:110px}}

/* Dark ranked surfaces retain contrast under light and dark site themes. */
.r-game,.r-play,.r-leader-section{color:#f8edf3}.r-online{color:#e4dbe0}.r-game strong,.r-play strong,.r-leader-section strong{color:#fff}.r-prompt{font-weight:800}.r-online h2{color:#f0e8ef}.r-board-section .r-section-head,.ranked-heading,.r-disclaimer{color:var(--ink,#282333)}

/* v37.1: Ranked inherits Womble's actual Halloween appearance, instead of
   displaying the unthemed light header and an unrelated purple page.
   Only visual styles are changed; ranked sessions, scores, and APIs stay intact. */
html[data-season="halloween"] .ranked-page,
html[data-season="halloween"] .ranked-page .ranked-heading,
html[data-season="halloween"] .ranked-page .r-board-section .r-section-head {
  color:#fff1df;
}
html[data-season="halloween"] .ranked-page .mini-label,
html[data-season="halloween"] .ranked-page .brand-dot,
html[data-season="halloween"] .ranked-page .r-game .r-rank {
  color:#ff9c54;
}
html[data-season="halloween"] .ranked-heading h1,
html[data-season="halloween"] .r-section-head h2 { color:#fff1df; }
html[data-season="halloween"] .ranked-heading p,
html[data-season="halloween"] .r-section-head p,
html[data-season="halloween"] .r-disclaimer { color:#ddb89e; }
html[data-season="halloween"] .r-season {
  background:#382527;
  border-color:#8e4c32;
  color:#fff1df;
}
html[data-season="halloween"] .r-season small { color:#e4bda2; }
html[data-season="halloween"] .r-pill {
  background:#3d2726;
  border-color:#875038;
  color:#ffd1ac;
}
html[data-season="halloween"] .r-status { color:#f2b68b; }
html[data-season="halloween"] .r-game,
html[data-season="halloween"] .r-play,
html[data-season="halloween"] .r-leader-section {
  background:#302124;
  border-color:#60403a;
  color:#fff1e6;
  box-shadow:0 10px 25px rgba(0,0,0,.1);
}
html[data-season="halloween"] .r-game:hover { border-color:#ef7f32; }
html[data-season="halloween"] .r-game .r-rating,
html[data-season="halloween"] .r-progress strong {color:#ffca98;}
html[data-season="halloween"] .r-game .r-small,
html[data-season="halloween"] .r-progress {color:#ddbaa8;}
html[data-season="halloween"] .r-button:not(:disabled) {
  background:#ef7f32;
  border:1px solid #ffa65c;
  color:#291a16;
  box-shadow:0 4px 0 rgba(110,47,13,.25);
}
html[data-season="halloween"] .r-button:not(:disabled):hover {background:#ffa05a;filter:none;}
/* Intentionally keep the future online queue disabled and grey. */
html[data-season="halloween"] .r-online {
  background:linear-gradient(125deg,#393538,#302d30);
  border-color:#5b5559;
  color:#eee6e7;
  filter:none;
  opacity:.92;
}
html[data-season="halloween"] .r-online h2 {color:#eee6e7;}
html[data-season="halloween"] .r-online p,
html[data-season="halloween"] .r-dim {color:#cbbfc2;}
html[data-season="halloween"] .r-online .r-future,
html[data-season="halloween"] .r-online-games span {border-color:#70666b;color:#e3dade;}
html[data-season="halloween"] .r-online .r-button:disabled {
  background:#666168;color:#e4dfe1;border-color:#777176;
  opacity:.8;box-shadow:none;
}
html[data-season="halloween"] .r-ghost {
  border-color:#936247;color:#ffe0c4;background:#442d2b;
}
html[data-season="halloween"] .r-ghost:hover {background:#57352e;}
html[data-season="halloween"] .r-progress-track {background:#573832;}
html[data-season="halloween"] .r-progress-track span {background:#ef7f32;}
html[data-season="halloween"] .r-choice,
html[data-season="halloween"] .r-rank-item,
html[data-season="halloween"] .r-review-row {
  background:#462d2e;border-color:#815349;color:#fff0df;
}
html[data-season="halloween"] .r-choice:hover,
html[data-season="halloween"] .r-choice:focus-visible {background:#593630;border-color:#ef7f32;}
html[data-season="halloween"] .r-rank-item button,
html[data-season="halloween"] .r-grid input {background:#69453c;border-color:#9b705d;color:#fff1df;}
html[data-season="halloween"] .r-grid input[readonly] {background:#523934;}
html[data-season="halloween"] .r-select-label {color:#f5d7c0;}
html[data-season="halloween"] .r-select-label select {
  background:#432d2d;border-color:#91634d;color:#fff4e6;
}
html[data-season="halloween"] .r-leader-row {border-bottom-color:#68443b;color:#fbe6d4;}
html[data-season="halloween"] .r-leader-row a {color:#ffb77a;}
/* Header/navigation belong to the same Halloween skin as the home page. */
html[data-season="halloween"] .site-header .desktop-nav a[aria-current="page"] {
  background:#4a2d2a;
  color:#ffae72;
  box-shadow:inset 0 0 0 1px #865039;
}
html[data-season="halloween"] .site-header .desktop-nav a:hover {color:#ffb57f;}
html[data-season="halloween"] .site-header .btn-light {
  background:#3d2726!important;
  color:#fff1df!important;
  border-color:#7b4a3e!important;
}
html[data-season="halloween"] .site-header .btn-light:hover {background:#57352d!important;}
html[data-season="halloween"] .mobile-dock a[aria-current="page"] {
  color:#ffac65!important;
  background:#3c2929;
}

/* v37.3 — make the reviewed statement visible above the answer and explanation. */
.r-review-prompt{font-weight:600;margin-top:6px;margin-bottom:4px;color:inherit;line-height:1.5;}

/* v37.4 — horizontal leaderboard game tabs replace the dropdown. */
html[data-season="halloween"] .r-leader-tab{background:#432d2d;border-color:#91634d;color:#fff4e6;}
html[data-season="halloween"] .r-leader-tab:hover,html[data-season="halloween"] .r-leader-tab:focus-visible{background:#593630;border-color:#ef7f32;}
html[data-season="halloween"] .r-leader-tab.is-active{background:#ef7f32;border-color:#ffa65c;color:#291a16;box-shadow:0 4px 0 rgba(110,47,13,.25);}
html[data-season="halloween"] .r-leader-tabs-wrap::-webkit-scrollbar-track{background:#402828;}
html[data-season="halloween"] .r-leader-tabs-wrap::-webkit-scrollbar-thumb{background:#8f5f45;}
