/* A quiet application shell. Game state and mobile pagination stay in existing renderers. */
.guide-disclosure > summary { cursor: pointer; color: var(--t-mid); font-size: 13px; padding: 10px 0; }
.guide-disclosure > summary:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; border-radius: 6px; }
.page-heading .eyebrow { display: none; }
@media (min-width: 769px) and (min-height: 451px) {
    html:not(.mobile-ready) { --workspace-rail: 184px; background: var(--surface-muted); }
    html:not(.mobile-ready) body { padding-left: var(--workspace-rail); background: var(--surface-muted); isolation: isolate; }
    html:not(.mobile-ready) body::before { content: ''; position: fixed; inset: 12px 12px 12px var(--workspace-rail); border: 1px solid var(--ln-soft); border-radius: 22px; background: var(--surface); z-index: -1; pointer-events: none; }
    html:not(.mobile-ready) .top-header-bar { position: fixed; inset: 0 auto 0 0; width: var(--workspace-rail); background: transparent; border: 0; }
    html:not(.mobile-ready) .header-inner { height: 100dvh; min-height: 0; padding: 28px 14px 110px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 36px; }
    html:not(.mobile-ready) .header-left { gap: 9px; padding: 0 7px; }
    html:not(.mobile-ready) .header-title { font-size: 18px; white-space: nowrap; }
    html:not(.mobile-ready) .brand-caption { display: none; }
    html:not(.mobile-ready) .brand-icon { width: 30px; height: 30px; border-radius: 10px; }
    html:not(.mobile-ready) .header-right { flex: 1; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; }
    html:not(.mobile-ready) .top-header-bar, html:not(.mobile-ready) .header-inner, html:not(.mobile-ready) .header-right { pointer-events: none; }
    html:not(.mobile-ready) .header-left, html:not(.mobile-ready) .site-nav, html:not(.mobile-ready) .preferences { pointer-events: auto; }
    html:not(.mobile-ready) .site-nav { flex-direction: column; align-items: stretch; gap: 6px; }
    html:not(.mobile-ready) .nav-btn-capsule { border-radius: 10px; min-height: 44px; padding: 10px 13px; gap: 10px; background: transparent; }
    html:not(.mobile-ready) .nav-btn-capsule.is-current { background: var(--surface); color: var(--t-strong); box-shadow: 0 1px 3px rgba(25,35,50,.04); }
    html:not(.mobile-ready) .nav-btn-capsule:hover { background: var(--surface-hover); }
    html:not(.mobile-ready) .preferences { margin-top: auto; }
    html:not(.mobile-ready) .preferences-trigger { width: 100%; justify-content: flex-start; padding: 10px 12px; background: transparent; border: 0; border-radius: 10px; }
    html:not(.mobile-ready) .preferences-panel { position: fixed; left: calc(var(--workspace-rail) + 16px); right: auto; top: auto; bottom: 108px; width: 340px; max-height: calc(100dvh - 140px); overflow-y: auto; }
    html:not(.mobile-ready) .app-main { width: min(100%, 1080px); padding: 50px 44px 24px; margin: 0 auto; }
    html:not(.mobile-ready) .page-heading { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; margin-bottom: 24px; padding: 0; min-height: 0; background: none; border-radius: 0; }
    html:not(.mobile-ready) .page-heading h1 { font-size: 32px; letter-spacing: -.6px; font-weight: 650; text-wrap: balance; }
    html:not(.mobile-ready) .eyebrow { font-size: 11px; letter-spacing: 1px; margin-bottom: 8px; }
    html:not(.mobile-ready) .page-subtitle { margin-top: 9px; font-size: 14px; }
    html:not(.mobile-ready) .mode-tabs { background: var(--surface-soft); padding: 4px; border-radius: 12px; }
    html:not(.mobile-ready) .mode-tabs a { min-height: 38px; border-radius: 8px; padding: 8px 20px; }
    html:not(.mobile-ready) .game-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    html:not(.mobile-ready) .game-panel { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
    html:not(.mobile-ready) .panel-heading { display: none; }
    html:not(.mobile-ready) .stats-strip { display: flex; justify-content: center; border: 0; padding: 10px 0 16px; background: transparent; }
    html:not(.mobile-ready) .stat-item { flex: 0 1 160px; padding: 0 20px; gap: 9px; }
    html:not(.mobile-ready) .stat-icon { width: 29px; height: 29px; background: var(--surface-soft); border-radius: 9px; }
    html:not(.mobile-ready) .stat-label { font-size: 11px; }
    html:not(.mobile-ready) .stat-value { font-size: 20px; margin-top: 3px; }
    html:not(.mobile-ready) .board-area { padding: 0 0 22px; }
    html:not(.mobile-ready) .board-toolbar { border: 0; padding: 14px 0; }
    html:not(.mobile-ready) .board-toolbar h2 { font-size: 12px; color: var(--t-muted); }
    html:not(.mobile-ready) .game-empty { min-height: 200px; display: flex; flex-direction: column; justify-content: center; padding: 35px 20px; }
    html:not(.mobile-ready) .clue-illustration { display: none; }
    html:not(.mobile-ready) .game-empty h3 { font-size: 24px; font-weight: 550; letter-spacing: -.5px; }
    html:not(.mobile-ready) .game-empty > p { font-size: 14px; margin-top: 12px; }
    html:not(.mobile-ready) .guess-composer, html:not(.mobile-ready) .bottom-search-area { width: min(100%, 760px); margin: 0 auto; padding: 18px 20px 13px; border: 1px solid var(--ln-strong); border-radius: 20px; background: var(--surface); box-shadow: 0 4px 24px rgba(30,45,65,.055), 0 1px 3px rgba(30,45,65,.03); }
    html:not(.mobile-ready) .guess-composer:focus-within, html:not(.mobile-ready) .bottom-search-area:focus-within { border-color: var(--a-accent); box-shadow: 0 5px 24px rgba(30,45,65,.05); }
    html:not(.mobile-ready) .guess-composer:has(input:focus-visible), html:not(.mobile-ready) .bottom-search-area:has(input:focus-visible) { outline: 2px solid var(--a-accent-ink); outline-offset: 0; }
    html:not(.mobile-ready) :is(#player-input,#search-input):focus-visible { outline: none; }
    html:not(.mobile-ready) .nav-btn-capsule.is-current .ui-icon { color: var(--a-accent-ink); }
    html:not(.mobile-ready) .guess-composer > label, html:not(.mobile-ready) .field-label { margin-bottom: 9px; font-size: 12px; color: var(--t-muted); font-weight: 500; }
    html:not(.mobile-ready) #player-input, html:not(.mobile-ready) #search-input { border: 0; border-radius: 10px; background: var(--surface); box-shadow: none; font-size: 16px; height: 52px; padding-left: 34px; }
    html:not(.mobile-ready) .input-icon { left: 7px; }
    html:not(.mobile-ready) #submit-btn, html:not(.mobile-ready) #search-btn { min-height: 48px; align-self: center; border-radius: 12px; padding: 10px 20px; font-size: 14px; }
    html:not(.mobile-ready) .composer-meta { font-size: 11px; margin-top: 9px; }
    html:not(.mobile-ready) .game-status { font-size: 12px; }
    html:not(.mobile-ready) .game-sidebar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start; width: min(100%,760px); margin: 0 auto; }
    html:not(.mobile-ready) .session-actions { display: flex; flex-direction: row; gap: 8px; border: 0; margin: 0; padding: 0; order: 0; }
    html:not(.mobile-ready) .session-actions button { width: auto; min-height: 38px; font-size: 12px; border-radius: 9px; padding: 7px 12px; background: transparent; }
    html:not(.mobile-ready) .session-actions > p { display: none; }
    html:not(.mobile-ready) .guide-section { padding: 12px 0 0; border: 0; background: transparent; box-shadow: none; }
    html:not(.mobile-ready) .guide-section .section-heading { display: none; }
    html:not(.mobile-ready) .guide-steps { gap: 16px; }
    html:not(.mobile-ready) .app-footer { width: min(100%,1080px); padding: 18px 44px; margin: 0 auto; border: 0; font-size: 11px; }
    html:not(.mobile-ready) .search-panel { display: flex; flex-direction: column; min-height: 0; background: transparent; border: 0; box-shadow: none; }
    html:not(.mobile-ready) .search-page .page-heading { margin-bottom: 32px; }
    html:not(.mobile-ready) .placeholder-box { order: -1; min-height: 0; padding: 20px 20px 28px; border: 0; background: transparent; }
    html:not(.mobile-ready) .placeholder-icon { display: none; }
    html:not(.mobile-ready) .placeholder-box h2 { font-size: 20px; font-weight: 500; }
    html:not(.mobile-ready) .placeholder-box p { font-size: 14px; }
    html:not(.mobile-ready) .search-status { font-size: 12px; }
    html:not(.mobile-ready) #search-result-container { padding: 28px 0 0; }
    html:not(.mobile-ready) .data-page .app-main { width: min(100%,1200px); }
    html:not(.mobile-ready) .data-page .page-heading { text-align: left; align-items: flex-start; }
    html:not(.mobile-ready) .data-page .page-heading h1 { font-size: 28px; }
    html:not(.mobile-ready) .data-panel { box-shadow: none; border-radius: 16px; }
    html[data-style="immersive"]:not(.mobile-ready) body { background: #080808; }
    html[data-style="immersive"]:not(.mobile-ready) .nav-btn-capsule.is-current { background: #242424; }
    html[data-style="immersive"]:not(.mobile-ready) .guess-composer, html[data-style="immersive"]:not(.mobile-ready) .bottom-search-area { background: #1b1b1b; border-color: #363636; box-shadow: 0 5px 28px rgba(0,0,0,.12); }
    html[data-style="immersive"]:not(.mobile-ready) #player-input, html[data-style="immersive"]:not(.mobile-ready) #search-input { background: transparent; }
}
@media (min-width: 769px) and (max-width: 1099px) and (min-height: 451px) {
    html:not(.mobile-ready) { --workspace-rail: 76px; }
    html:not(.mobile-ready) .header-inner { padding-left: 10px; padding-right: 10px; }
    html:not(.mobile-ready) .header-left { padding: 0; justify-content: center; }
    html:not(.mobile-ready) .header-title { display: none; }
    html:not(.mobile-ready) .nav-btn-capsule { justify-content: center; padding: 12px; }
    html:not(.mobile-ready) .nav-btn-capsule span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    html:not(.mobile-ready) .preferences-trigger { font-size: 0; justify-content: center; padding: 12px; }
    html:not(.mobile-ready) .preferences-trigger .ui-icon { width: 19px; height: 19px; }
    html:not(.mobile-ready) .app-main { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 769px) and (min-height: 451px) and (max-height: 850px) {
    html:not(.mobile-ready) .app-main { padding-top: 28px; }
    html:not(.mobile-ready) .game-page .page-heading { gap: 14px; margin-bottom: 16px; }
    html:not(.mobile-ready) .game-page .page-heading h1 { font-size: 30px; }
    html:not(.mobile-ready) .stats-strip { padding: 8px 0 10px; }
    html:not(.mobile-ready) .game-empty { min-height: 145px; padding: 20px; }
    html:not(.mobile-ready) .board-toolbar { padding: 10px 0; }
}
@media (max-width: 768px), (max-width: 1024px) and (max-height: 450px) and (orientation: landscape) {
    .guide-disclosure { display: none; }
    html.mobile-ready .guess-composer { border-top-color: var(--ln-strong); background: var(--surface-soft); }
    html.mobile-ready #player-input:focus, html.mobile-ready #search-input:focus { border-color: var(--a-accent); }
}
