.cc-page .scene-image { --active-scene: url('../images/worlds/sagittarius-origin-1600.webp'); }
.cc-main { width: min(1080px, calc(100% - 32px)); }.cc-intro { margin-bottom: 20px; }.cc-intro h1 { font-size: clamp(32px, 4.6vw, 55px); }.cc-intro h1 em { color: var(--gold); }
.cc-classic-link { display: none; color: #f7d99d; text-decoration: none; font-size: 11px; margin-left: auto; }
.cc-match-bar { position: sticky; top: 8px; z-index: 8; display: grid; grid-template-columns: 1fr minmax(240px, .8fr); align-items: center; gap: 28px; padding: 13px 20px; border: 1px solid rgba(247,199,107,.3); border-radius: 22px; background: rgba(7,24,39,.96); box-shadow: 0 14px 35px rgba(0,0,0,.25); backdrop-filter: blur(20px); }
.cc-match-bar .hunt-side { padding: 9px; text-align: center; }.cc-match-bar .hunt-side strong { font-size: 28px; }.cc-clock .hunt-timer { margin: 0 auto; width: 100%; max-width: 310px; }.cc-clock .hunt-time-track { width: 100%; max-width: 310px; margin: 7px auto 0; }.cc-clock p { margin: 7px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.cc-status { margin: 13px 0; color: #c4e9da; text-align: center; font-size: 11px; }
.cc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.cc-board-panel, .cc-console, .cc-last-word { min-width: 0; padding: 24px; border: 1px solid rgba(184,212,239,.2); border-radius: 25px; background: linear-gradient(145deg, rgba(13,39,66,.94), rgba(5,19,35,.92)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(20px); }
.cc-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.cc-board-heading small { color: var(--gold); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }.cc-board-heading h2 { margin: 7px 0 0; color: #fff9ec; font: 500 22px/1.2 Georgia, serif; }.cc-board-heading > span { flex: 0 0 auto; padding: 8px; color: #c9e8fa; font-size: 11px; border: 1px solid rgba(184,212,239,.2); border-radius: 10px; }
.cc-grid-wrap { margin: 16px auto 8px; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }.cc-grid { display: grid; grid-template-columns: repeat(var(--cols), var(--cell-size, 38px)); grid-template-rows: repeat(var(--rows), var(--cell-size, 38px)); gap: 5px; width: max-content; margin: auto; }
.cc-cell { position: relative; aspect-ratio: 1; min-width: 0; border: 1px solid rgba(172,203,235,.3); border-radius: 9px; display: grid; place-items: center; color: #e6fff6; background: rgba(2,15,31,.67); font-size: clamp(13px, 2.1vw, 23px); font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.cc-cell small { position: absolute; top: 2px; left: 4px; color: rgba(233,242,251,.6); font-size: 7px; font-weight: 500; }.cc-cell span { padding-top: 3px; }
.cc-cell { font-size: var(--cell-font, 20px); }
.cc-cell.is-you { border-color: #77dcba; color: #062a24; background: linear-gradient(145deg, #effff8, #75d8b9); }.cc-cell.is-computer { border-color: #dea3bf; color: #351527; background: linear-gradient(145deg, #fff1f7, #d692b0); }.cc-cell.is-shared { border-color: #e0c783; color: #302515; background: linear-gradient(135deg, #c4f2db, #e5b1c3); }.cc-cell[class*="is-"] small { color: rgba(7,25,32,.65); }
.cc-grid-help { margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }.cc-slots { display: flex; flex-wrap: wrap; gap: 6px; }.cc-slot { padding: 6px 8px; border: 1px solid rgba(172,203,235,.18); border-radius: 8px; color: var(--muted); background: rgba(0,0,0,.12); font-size: 9px; }.cc-slot.is-you { color: #a6f3ce; border-color: rgba(114,239,193,.34); }.cc-slot.is-computer { color: #f5bdcc; border-color: rgba(255,156,175,.34); }
.cc-console { text-align: center; }.cc-console .letter-wheel { width: min(300px, 76vw); height: min(300px, 76vw); margin: 14px auto; }.cc-console .letter-node { width: var(--node-size, 50px); height: var(--node-size, 50px); margin: calc(var(--node-size, 50px) / -2); font-size: clamp(16px, calc(var(--node-size, 50px) * .46), 23px); }.cc-console .letter-node:disabled { cursor: default; }.cc-wheel-help { margin: 5px 0; color: var(--muted); font-size: 10px; }
.cc-game-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 11px; }.cc-game-actions .hunt-submit { width: 100%; margin: 0; }.cc-shuffle { min-height: 42px; border: 1px solid rgba(247,199,107,.3); border-radius: 15px; color: #f6d99e; background: rgba(83,57,22,.2); cursor: pointer; font-size: 11px; font-weight: 800; }.cc-shuffle span { margin-right: 5px; font-size: 19px; vertical-align: -1px; }.cc-shuffle:disabled { opacity: .45; cursor: default; }
.cc-grid-details { margin-top: 12px; padding: 12px 16px; border: 1px solid rgba(184,212,239,.18); border-radius: 16px; background: rgba(5,19,35,.85); }.cc-grid-details > summary { display: flex; justify-content: space-between; color: #c9e8fa; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }.cc-grid-details > summary::-webkit-details-marker { display: none; }.cc-grid-details[open] > summary span { transform: rotate(180deg); }.cc-grid-details .cc-grid-help { text-align: left; }
.cc-console .letter-trace polyline { stroke-width: 4; }
.cc-bonus-rule { margin-top: 14px; padding: 12px; border: 1px solid rgba(247,199,107,.2); border-radius: 13px; display: flex; gap: 9px; text-align: left; background: rgba(91,68,29,.1); }.cc-bonus-rule > span { color: var(--gold); }.cc-bonus-rule p { margin: 0; color: #e4d7bb; font-size: 10px; line-height: 1.6; }
.cc-history { margin-top: 18px; }.cc-history .hunt-history-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }.cc-history .hunt-history-side { padding: 14px; }.cc-history .hunt-history-side h3 { font-size: 12px; }.cc-history .history-word { min-height: 49px; padding: 9px; }.cc-history .history-word strong { font-size: 12px; }.cc-history .is-bonus { border-color: rgba(247,199,107,.28); background: rgba(122,89,29,.07); }.cc-history .is-bonus h3, .cc-history .is-bonus li b { color: var(--gold); }
.cc-last-word { margin-top: 18px; }.cc-last-word > small { color: #98eaca; font-size: 9px; font-weight: 800; letter-spacing: .13em; }.cc-last-word h2 { margin: 10px 0 5px; font: 500 30px Georgia, serif; }.cc-last-word em { color: var(--gold); font-size: 9px; font-style: normal; text-transform: uppercase; }.cc-last-word p { margin: 15px 0 8px; font: 17px/1.5 Georgia, serif; }.cc-last-word blockquote { margin: 0; color: var(--muted); font: italic 12px/1.6 Georgia, serif; }.cc-last-word[data-owner="computer"] { border-color: rgba(255,156,175,.4); }.cc-last-word[data-owner="bonus"] { border-color: rgba(247,199,107,.4); }.cc-last-word[data-owner="bonus"] > small { color: var(--gold); }
.cc-rules p + p { margin-top: 10px; }.cc-page #matchResult { margin: 0 0 18px; text-align: center; }.cc-page #matchResult h2 { margin: 0; font: 600 30px Georgia, serif; color: #a0f0ce; }.cc-page #matchResult[data-outcome="computer"] h2 { color: #f7b9cc; }.cc-page #matchResult[data-outcome="draw"] h2 { color: var(--gold); }
@media (max-width:820px) { .cc-layout { grid-template-columns: 1fr; }.cc-board-panel, .cc-console { padding: 20px; }.cc-cell { font-size: clamp(13px, 4vw, 23px); }.cc-classic-link { display: block; }.cc-match-bar { gap: 14px; padding: 10px 12px; }.cc-history .hunt-history-side { padding: 10px; } }
/* Match the Classic Adventure's compact, viewport-sized board and wheel. */
@media (max-width:620px), (max-width:900px) and (max-height:620px) and (orientation:landscape) {
    .cc-page .hunt-topbar { width: calc(100% - 20px); padding: max(7px, env(safe-area-inset-top)) 0 7px; gap: 9px; }
    .cc-page .hunt-brand { gap: 8px; }.cc-page .hunt-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px 5px; }.cc-page .hunt-brand .brand-mark i { font-size: 15px; }
    .cc-page .hunt-brand > span:last-child { display: grid; }.cc-page .hunt-brand strong { font-size: 13px; }.cc-page .hunt-brand small { font-size: 7px; letter-spacing: .08em; }
    .cc-page .hunt-nav, .cc-intro { display: none; }.cc-classic-link { display: block; font-size: 10px; padding: 8px 0 8px 8px; }
    .cc-main { width: calc(100% - 12px); margin: 0 auto; padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
    .cc-page #matchResult { scroll-margin-top: max(8px, env(safe-area-inset-top)); }
    .cc-match-bar { position: static; grid-template-columns: minmax(0, 1fr) 98px; gap: 9px; padding: 6px 8px; border-radius: 14px; }
    .cc-match-bar .hunt-scoreboard { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 3px; }
    .cc-match-bar .hunt-versus { font-size: 11px; }.cc-match-bar .hunt-side { min-width: 0; display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; border-radius: 10px; gap: 4px; }
    .cc-match-bar .hunt-side span { font-size: 9px; }.cc-match-bar .hunt-side strong { font-size: 22px; }.cc-match-bar .hunt-side small { display: none; }
    .cc-clock .hunt-timer { display: grid; justify-content: center; gap: 1px; padding: 3px 5px; border: 0; border-radius: 0; background: transparent; }
    .cc-clock .hunt-timer > span { font-size: 6px; letter-spacing: .07em; }.cc-clock .hunt-timer strong { font-size: 17px; }.cc-clock p { display: none; }.cc-clock .hunt-time-track { width: 100%; margin: 1px 0 0; }
    .cc-status { overflow: hidden; margin: 4px 3px; min-height: 14px; color: #c4e9da; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
    .cc-layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }.cc-board-panel, .cc-console { padding: 7px 9px; border-radius: 17px; }
    .cc-board-heading { gap: 6px; }.cc-board-heading > div { min-width: 0; }.cc-board-heading small { display: none; }.cc-board-heading h2 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.cc-board-heading > span { padding: 4px 6px; border-radius: 7px; font-size: 9px; }
    .cc-grid-wrap { margin: 5px auto 0; }.cc-grid { gap: 3px; }.cc-cell { border-radius: 6px; font-size: var(--cell-font, 16px); }.cc-cell small { top: 1px; left: 2px; font-size: 6px; }.cc-cell > span { padding-top: 2px; }
    .cc-console .answer-console { grid-template-columns: minmax(0, 1fr) 36px; gap: 5px; }.cc-console .answer-console input { height: 34px; padding: 0 10px; border-radius: 11px; font-size: 18px; }.cc-console .answer-console button { border-radius: 10px; font-size: 21px; }
    .cc-console #answerRule { margin: 3px 0 0; font-size: 8px; line-height: 1.25; }
    .cc-console .letter-wheel { width: min(clamp(164px, 29dvh, 224px), var(--wheel-fit, 224px)); height: min(clamp(164px, 29dvh, 224px), var(--wheel-fit, 224px)); margin: 5px auto; }.cc-console .letter-wheel::after { inset: 13px; }
    .cc-console .wheel-core { width: 48px; height: 48px; margin: -24px; }.cc-console .wheel-core span { font-size: 14px; }.cc-console .wheel-core small { font-size: 7px; }
    .cc-wheel-help { margin: 2px 0 4px; font-size: 8px; line-height: 1.25; }.cc-game-actions { gap: 6px; margin-top: 4px; }.cc-game-actions .hunt-submit, .cc-shuffle { min-height: 36px; border-radius: 10px; font-size: 9px; }.cc-shuffle span { font-size: 16px; }
    .cc-console .hunt-feedback { min-height: 24px; margin: 5px 0 0; font-size: 9px; line-height: 1.3; }.cc-console > .hunt-history-link { display: none; }
    .cc-grid-details { margin-top: 8px; padding: 11px 12px; }.cc-grid-details > summary { font-size: 10px; }
    .cc-history { margin-top: 10px; padding: 18px 12px; scroll-margin-top: 12px; }.cc-history .hunt-history-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cc-history .is-bonus { grid-column: 1 / -1; }.cc-history .hunt-history-side { padding: 10px; }
}
@media (max-width:900px) and (max-height:620px) and (orientation:landscape) {
    .cc-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); align-items: center; }
    .cc-match-bar { grid-template-columns: minmax(0, 1fr) 180px; }.cc-match-bar .hunt-side { justify-content: center; gap: 15px; }
    .cc-page .hunt-topbar { padding-block: 5px; }.cc-status { display: none; }.cc-layout { margin-top: 6px; }
    .cc-match-bar { padding-block: 4px; }.cc-match-bar .hunt-side { padding-block: 4px; }
    .cc-console { padding-block: 5px; }.cc-console .letter-wheel { width: clamp(120px, 34dvh, 160px); height: clamp(120px, 34dvh, 160px); margin: 3px auto; }
    .cc-console .answer-console input { height: 30px; }.cc-console .hunt-feedback { min-height: 12px; }.cc-wheel-help { display: none; }.cc-console #answerRule { display: none; }.cc-game-actions .hunt-submit, .cc-shuffle { min-height: 32px; }
}
@media (max-width:620px) and (max-height:700px) and (orientation:portrait) {
    .cc-page .hunt-topbar { padding-block: 5px; }.cc-page .hunt-brand .brand-mark { width: 26px; height: 26px; }
    .cc-match-bar { padding-block: 4px; }.cc-match-bar .hunt-side { padding-block: 4px; }.cc-match-bar .hunt-side strong { font-size: 20px; }
    .cc-status { display: none; }.cc-layout { margin-top: 6px; }
    .cc-console { padding-block: 6px; }.cc-wheel-help { display: none; }.cc-console .hunt-feedback { min-height: 14px; }
}
