/* Game-only layout. Informational pages retain their existing styles. */
body.streamlined { --shell-header: 68px; height: 100dvh; min-height: 0; overflow: hidden; background: var(--bg-0); }
.streamlined [hidden] { display: none !important; }
.streamlined button, .streamlined input, .streamlined a { -webkit-tap-highlight-color: transparent; }
.streamlined button:focus-visible, .streamlined a:focus-visible, .streamlined input:focus-visible, .streamlined [data-map-option]:focus-visible { outline: 3px solid #7ee5da; outline-offset: 3px; }
.streamlined button { min-height: 44px; font: inherit; font-size: 14px; border-radius: 12px; box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
.streamlined button:disabled { opacity: .45; cursor: default; transform: none; }
.streamlined button:hover { transform: none; }
.app-header { height: var(--shell-header); display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--panel-border); background: var(--bg-1); position: relative; z-index: 1300; }
.brand { display: flex; align-items: center; gap: 4px; color: #60d0c2; font: 700 24px var(--font-display); text-decoration: none; flex-shrink: 0; }
.streamlined .context-city { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 440px; padding: 4px 16px; border: 0; border-left: 1px solid var(--panel-border); border-radius: 0; color: var(--text); background: transparent; text-align: left; }
#context-city { font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#context-category { font-size: 12px; color: var(--text-muted); }
.app-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.streamlined .quiet-button { width: auto; min-width: 44px; padding: 8px 12px; background: transparent; border: 1px solid transparent; color: var(--text); margin: 0; }
.streamlined .quiet-button:hover { background: var(--panel-soft); border-color: var(--panel-border); }
.streamlined #game-container { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100dvh - var(--shell-header)); width: 100%; position: relative; }
.streamlined #sidebar { width: auto; height: 100%; position: relative; inset: auto; transform: none; overflow-y: auto; overflow-x: hidden; padding: 28px 24px 24px; border: 0; border-right: 1px solid var(--panel-border); background: var(--bg-1); box-shadow: none; z-index: 1100; }
.streamlined #sidebar-close, .streamlined #sidebar-collapse-btn, .streamlined .mobile-controls, .streamlined #mobile-game-info-collapsed, .streamlined #game-info, .streamlined #feedback, .streamlined #load-city-btn { display: none !important; }
.entry-heading { margin: 0 0 28px; }
.eyebrow { font-size: 10px; font-weight: 700; color: #7ee5da; letter-spacing: 1.6px; margin-bottom: 10px; }
.streamlined .entry-heading h1 { font: 700 32px/1.15 var(--font-display); text-align: left; color: var(--text); margin: 0 0 10px; text-shadow: none; }
.entry-heading > p:last-child { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.streamlined #setup-panel > .section, .streamlined .category-section { display: block !important; margin: 0 0 24px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.streamlined #setup-panel h2 { font-size: 13px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.streamlined #city-input { width: 100%; min-height: 50px; margin: 0; padding: 13px 14px; font-size: 16px; background: var(--bg-0); color: var(--text); border: 1px solid #52627b; border-radius: 12px; }
.streamlined .autocomplete-dropdown { z-index: 1500; max-height: 270px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg); }
.streamlined .autocomplete-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; margin: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--panel-border); border-radius: 0; background: transparent; color: var(--text); text-align: left; }
.streamlined .autocomplete-item:hover { background: rgba(20,184,166,.12); }
.streamlined .autocomplete-item-name { font-size: 14px; font-weight: 600; }
.streamlined .autocomplete-item-details { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.streamlined .recent-city { width: 100%; margin: 10px 0 0; padding: 8px 0; border: 0; background: transparent; color: #7ee5da; text-align: left; font-size: 13px; }
.streamlined .content-switch { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.streamlined .content-switch .switch-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 38px; width: auto; padding: 9px 12px; border: 1px solid var(--panel-border); border-radius: 10px; background: transparent; box-shadow: none; color: var(--text-muted); font: 500 13px var(--font-body); text-decoration: none; }
.streamlined .content-switch .switch-btn.active, .streamlined .content-switch .switch-btn[aria-current] { background: rgba(20,184,166,.16); color: #a0f0e6; border-color: #398c87; box-shadow: none; }
.streamlined .content-switch .switch-btn:hover { color: var(--text); background: var(--panel-soft); transform: none; }
.streamlined .mode-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.streamlined .mode-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 65px; padding: 11px 12px; margin: 0; border: 1px solid var(--panel-border); background: transparent; color: var(--text-muted); }
.streamlined .mode-btn.active { background: rgba(20,184,166,.12); color: var(--text); border-color: #398c87; }
.streamlined .mode-title { font-size: 14px; font-weight: 600; }
.streamlined .mode-date { font-size: 11px; line-height: 1.5; margin-top: 3px; color: var(--text-muted); }
.streamlined #setup-panel #game-settings { margin-bottom: 16px; }
.streamlined .poi-setting-card { padding: 0; margin: 0; background: transparent; border: 0; }
.streamlined .challenge-info, .streamlined .daily-attempt-status { font-size: 12px; line-height: 1.6; color: var(--text-muted); padding: 0; margin: 0; text-align: left; }
.streamlined #street-count-setting label, .streamlined #poi-count-setting label { font-size: 13px; line-height: 1.5; margin-bottom: 8px; display: block; }
.streamlined #num-streets, .streamlined #num-pois { width: 100%; padding: 11px 12px; min-height: 46px; background: var(--bg-0); color: var(--text); border: 1px solid var(--panel-border); border-radius: 10px; }
.streamlined #setup-panel #game-controls { position: static; width: 100%; padding: 0; margin: 0 0 10px; background: transparent; border: 0; box-shadow: none; transform: none; display: block !important; }
.streamlined #start-game-btn { display: block !important; width: 100%; min-height: 52px; padding: 14px; margin: 0; color: #082c2b; background: #60d0c2; border: 0; font-weight: 700; box-shadow: none; }
.entry-status { font-size: 12px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.entry-status.is-error { color: #ffb7b7; }
.streamlined[data-content-type="poi"] #game-mode { display: none !important; }
.streamlined #map-container { position: relative; min-width: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.streamlined #map { height: 100%; width: 100%; position: absolute; inset: 0; }
.map-placeholder { display: none; }
.streamlined[data-view="choose"] .map-placeholder { display: grid; position: absolute; inset: 0; place-content: center; background: rgba(11,18,36,.35); pointer-events: none; z-index: 600; }
.map-placeholder span { background: var(--bg-1); color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-md); }
.streamlined[data-view="playing"] #game-container { display: block; }
.streamlined[data-view="playing"] #sidebar { display: none !important; }
.streamlined:not([data-view="playing"]) #round-actions { display: none; }
.streamlined .map-goal-overlay { position: absolute; top: 16px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(620px, calc(100% - 40px)); max-width: none; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--panel-border); box-shadow: var(--shadow-md); text-align: center; z-index: 1000; }
.round-meta { display: flex; justify-content: center; gap: 14px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.streamlined .map-goal-label { font-size: 10px; letter-spacing: 1.2px; color: #7ee5da; margin-top: 4px; }
.streamlined .map-goal-text { margin: 0; color: var(--text); font: 600 24px/1.25 var(--font-body); white-space: normal; overflow-wrap: anywhere; }
.round-actions { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100% - 40px)); padding: 14px; background: var(--bg-1); border: 1px solid var(--panel-border); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 1100; }
.selection-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 23px; }
#selection-instruction { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.streamlined .text-button { width: auto; padding: 4px 8px; margin: 0; color: #8de1d6; background: transparent; border: 0; min-height: 36px; }
.answer-buttons { display: flex; gap: 8px; }
.streamlined .answer-buttons button { flex: 1; width: auto; margin: 0; min-height: 48px; padding: 12px; font-weight: 600; border: 0; }
#confirm-guess-btn, .streamlined #next-btn, .streamlined #final-score-btn { background: #60d0c2; color: #082c2b; }
.streamlined #dont-know-btn { background: var(--panel-soft); color: var(--text); border: 1px solid var(--panel-border); }
.streamlined #prev-btn { display: none !important; }
.round-actions[data-state="guess"] #next-btn, .round-actions[data-state="guess"] #final-score-btn, .round-actions[data-state="selected"] #next-btn, .round-actions[data-state="selected"] #final-score-btn { display: none !important; }
.round-actions[data-state="answered"] #confirm-guess-btn, .round-actions[data-state="final"] #confirm-guess-btn, .round-actions[data-state="answered"] #dont-know-btn, .round-actions[data-state="final"] #dont-know-btn, .round-actions[data-state="answered"] .selection-row, .round-actions[data-state="final"] .selection-row { display: none !important; }
.streamlined #map-feedback-overlay { position: static; transform: none; width: 100%; max-width: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; box-shadow: none; font-size: 14px; text-align: left; }
.streamlined #map-feedback-overlay p { font-size: 14px; line-height: 1.5; }
.streamlined[data-view="playing"] .leaflet-bottom { bottom: 170px; }
.streamlined #loading { position: absolute; inset: 0; width: auto; height: auto; padding: 0; transform: none; border-radius: 0; background: rgba(11,18,36,.83); z-index: 1200; }
.streamlined #loading .spinner { margin: max(80px, 28vh) auto 18px; }
.streamlined #loading-text { text-align: center; font-size: 14px; padding: 0 24px; }
.streamlined #notification-banner { top: calc(var(--shell-header) + 12px); bottom: auto; max-width: calc(100% - 32px); font-size: 13px; }
.streamlined[data-view="results"] #setup-panel { display: none; }
.streamlined #game-over { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.streamlined #game-over h2 { font: 600 26px/1.3 var(--font-display); margin-bottom: 16px; }
.streamlined .final-score-display { text-align: left; font-size: 18px; padding: 0; margin: 0 0 12px; }
.streamlined .final-score-display #final-score { font-size: 38px; color: #7ee5da; }
.streamlined .game-over-hint, .streamlined .game-over-secondary { text-align: left; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.streamlined #score-history-info { margin: 20px 0; padding: 16px; border-radius: 12px; background: var(--bg-0); }
.streamlined .score-stats { gap: 12px; }
.streamlined .game-over-buttons { display: grid; gap: 9px; margin: 20px 0 0; }
.streamlined .game-over-buttons button { margin: 0; padding: 12px; min-height: 48px; }
.streamlined #share-score-btn { background: #60d0c2; color: #082c2b; }
.streamlined .secondary-button, .streamlined #play-again-btn { background: var(--panel-soft); border: 1px solid var(--panel-border); color: var(--text); }
.streamlined .game-menu { position: fixed; inset: 0; width: min(380px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px; background: var(--bg-1); border: 1px solid var(--panel-border); border-radius: 20px; color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.game-menu::backdrop { background: rgba(0, 5, 15, .7); }
.menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.menu-heading h2 { margin: 0; font-size: 21px; }
#menu-context { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.streamlined .game-menu > button { display: block; width: 100%; margin: 8px 0; padding: 12px; }
#resume-round-btn { background: #60d0c2; color: #082c2b; border: 0; font-weight: 600; }
.streamlined #menu-end-btn { margin-top: 14px; color: #ffb7b7; }
.menu-links { display: flex; flex-wrap: wrap; gap: 12px 16px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--panel-border); }
.menu-links a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.streamlined .modal { z-index: 2000; }
.streamlined .modal-content { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: 24px auto; padding: 28px; overflow: auto; border-radius: 18px; font-size: 14px; line-height: 1.7; }
.streamlined .modal-content p { margin-top: 18px; }
.streamlined .modal-content h2 { margin: 0 40px 18px 0; font-size: 24px; }
.quick-instructions { padding-left: 22px; }
.quick-instructions li { margin: 12px 0; }
.streamlined .close-modal, .streamlined .close-statistics { position: absolute; right: 14px; top: 12px; width: 44px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--text); font-size: 26px; }
@media (max-width: 768px) {
    body.streamlined { --shell-header: 62px; height: auto; min-height: 100dvh; overflow: auto; }
    .app-header { position: sticky; top: 0; gap: 10px; padding: 0 16px; }
    .brand { font-size: 21px; }
    .streamlined .context-city { padding: 4px 0 4px 12px; flex: 1; font-size: 12px; }
    #context-category { font-size: 11px; }
    .app-tools { gap: 0; }
    .app-tools #instructions-btn, .app-tools #statistics-btn { display: none; }
    .app-tools .quiet-button { padding: 8px; font-size: 13px; }
    .streamlined #game-container { height: auto; min-height: calc(100dvh - var(--shell-header)); display: flex; flex-direction: column; }
    .streamlined #sidebar { width: 100%; height: auto; min-height: 0; max-height: none; flex: none; padding: 22px 22px 24px; border: 0; overflow: visible; }
    .entry-heading { margin-bottom: 22px; }
    .streamlined .entry-heading h1 { font-size: 28px; }
    .entry-heading > p:last-child { font-size: 13px; }
    .streamlined #setup-panel > .section, .streamlined .category-section { margin-bottom: 20px; }
    .streamlined #map-container { height: 260px; flex: none; }
    .streamlined[data-view="choose"] #map-container { display: none; }
    body.streamlined[data-view="playing"] { height: 100dvh; overflow: hidden; }
    .streamlined[data-view="playing"] #game-container { height: calc(100dvh - var(--shell-header)); min-height: 0; }
    .streamlined[data-view="playing"] #map-container { height: 100%; }
    .streamlined .map-goal-overlay { top: 12px; width: calc(100% - 28px); padding: 12px 16px; gap: 4px; border-radius: 14px; }
    .streamlined .map-goal-text { font-size: 20px; }
    .round-meta { font-size: 11px; gap: 12px; }
    .round-actions { width: calc(100% - 28px); bottom: max(14px, env(safe-area-inset-bottom)); padding: 12px; border-radius: 14px; }
    .streamlined .answer-buttons button { min-height: 48px; }
    .streamlined[data-view="playing"] .leaflet-top { top: 120px; }
    .streamlined[data-view="playing"] .leaflet-bottom { bottom: 162px; }
    .streamlined[data-view="results"] #sidebar { padding-top: 26px; }
    .streamlined .modal-content { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .streamlined *, .streamlined *::before, .streamlined *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.streamlined #sidebar .entry-heading h1 { display: block; text-align: left; justify-content: initial; color: var(--text); font-size: 32px; }
.streamlined .mode-btn.active { box-shadow: none; }
.streamlined #notification-banner { top: -150px; }
.streamlined #notification-banner.show { top: calc(var(--shell-header) + 12px); }
@media (max-width: 768px) { .streamlined #sidebar .entry-heading h1 { font-size: 28px; } }
.streamlined .score-stats { padding: 0; border: 0; background: transparent; box-shadow: none; }

#leave-round-dialog { width: min(380px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--panel-border); border-radius: 18px; color: var(--text); background: var(--bg-1); }
#leave-round-dialog::backdrop { background: rgba(0,0,0,.6); }
#leave-round-dialog h2 { margin: 0 0 12px; font-size: 22px; }
#leave-round-dialog p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.leave-actions { display: flex; gap: 10px; margin-top: 20px; }
.leave-actions button { flex: 1; margin: 0; }
