body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.play-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.play-button { text-align: left; border: 1px solid #cad5e5; border-radius: 14px; background: #fff; color: #304868; padding: 15px 18px; cursor: pointer; }
.play-button strong, .play-button small { display: block; }
.play-button strong { font-size: 1rem; }
.play-button small { margin-top: 5px; line-height: 1.5; }
.play-button span { margin-left: 6px; font-size: .6rem; color: #137052; }
.play-button.active { border-color: #2d65b6; background: #eaf2ff; box-shadow: inset 0 0 0 1px #2d65b6; }
.play-button:disabled { cursor: default; opacity: .7; }
.play-button:focus-visible { outline: 3px solid #3282cf; outline-offset: 3px; }
.play-description { color: #596981; font-size: .85rem; line-height: 1.6; margin: 0 0 18px; }
.streak-goal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; border: 1px solid #bfe2d4; border-radius: 14px; padding: 14px 18px; background: #f1fbf6; color: #176044; }
.streak-goal strong { font-size: .9rem; }
.streak-goal p { margin: 5px 0 0; font-size: .78rem; line-height: 1.6; }
.streak-stats { display: flex; gap: 18px; font-size: .78rem; }
.streak-stats b { margin-left: 5px; font-size: 1.25rem; }
.daily-limit button { margin: 6px; }
@media(max-width:420px) { .play-switcher { gap: 8px; } .play-button { padding: 13px 11px; } .play-button small { font-size: .7rem; } }
button, textarea { font-family: inherit; }
.how-to-button { border: 1px solid #cad5e5; border-radius: 999px; background: #ffffffa8; color: #304868; padding: 7px 11px; font-size: .73rem; font-weight: 800; cursor: pointer; }
.how-to-button:hover { border-color: #7790b7; background: #fff; }
.explorer-card { display: grid; grid-template-columns: minmax(180px, 1.1fr) 1.35fr minmax(190px, .9fr); align-items: center; gap: 24px; margin: -4px 0 18px; padding: 14px 18px; border: 1px solid #d9e3ef; border-radius: 15px; background: linear-gradient(105deg, #f9fcff, #edf5ff); color: #1d3659; }
.explorer-heading { display: flex; align-items: center; gap: 10px; }
.explorer-compass { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #183e77; color: #bfeaff; box-shadow: 0 4px 12px #1b4b8b32; }
.explorer-heading p { margin: 0 0 3px; color: #7388a6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.explorer-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.035em; }
.explorer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.explorer-stats div { min-width: 0; border-left: 1px solid #cbd9e8; padding-left: 12px; }
.explorer-stats strong, .explorer-stats span { display: block; }
.explorer-stats strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .93rem; }
.explorer-stats span { margin-top: 2px; color: #697d9a; font-size: .66rem; white-space: nowrap; }
.explorer-next { margin: 0; color: #536f96; font-size: .72rem; line-height: 1.5; }
.streetview-wrap { display: grid; align-items: center; background: #102344; min-height: 450px; }
.streetview-wrap picture { display: block; width: 100%; }
.streetview-image { object-fit: contain; max-height: 580px; height: auto; width: 100%; }
.street-placeholder { padding: 82px 25px 35px; }
.photo-recovery { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.photo-recovery[hidden], .game-error[hidden], .status-toast[hidden] { display: none; }
.photo-recovery .primary-button { font-size: .875rem; padding: 12px 15px; }
.view-photo-button { border: 0; padding: 0; background: transparent; color: #e3efff; cursor: pointer; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.view-photo-button:disabled { opacity: .55; cursor: default; }
.clue-toast { right: 20px; left: 20px; max-width: none; font-size: .875rem; }
.game-error { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; margin-bottom: 14px; background: #fff1df; border: 1px solid #e5bf80; border-radius: 12px; font-size: .9rem; }
.game-error .outline-button { flex-shrink: 0; }
.mode-button:disabled { cursor: default; }
.mode-switcher { flex-wrap: wrap; }
.mode-button:disabled:not(.active) { opacity: .55; }
.hud-label { font-size: .75rem; }
.map-caption { color: #596981; font-size: .875rem; }
.map-controls button { width: 40px; height: 40px; }
.map-country-labels .city-map-label { color: #344d69; font-size: 12px; font-weight: 600; }
.photo-credit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .8rem; line-height: 1.6; }
.photo-credit span { flex: 1 1 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.photo-credit a { font-size: .8rem; }
.result-card[data-outcome="correct"] .result-label { background: #168f68; }
.result-card[data-outcome="wrong"] .result-label { background: #b64949; }
.result-card h2 { overflow-wrap: anywhere; }
.status-toast { position: fixed; z-index: 2000; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: #132750; color: #fff; border-radius: 12px; padding: 13px 18px; font-size: .875rem; box-shadow: 0 6px 24px #10204444; }
.photo-dialog { width: 96vw; max-width: 1400px; height: 94dvh; padding: 50px 12px 12px; border: 0; border-radius: 14px; background: #101a2c; }
.photo-dialog img { display: block; object-fit: contain; width: 100%; height: 100%; }
dialog::backdrop { background: #081328cf; }
.dialog-close { position: absolute; top: 10px; right: 12px; min-height: 36px; border: 0; border-radius: 8px; padding: 6px 16px; background: #fff; color: #132750; cursor: pointer; }
.share-dialog { border: 0; border-radius: 18px; padding: 25px; width: min(460px, calc(100vw - 28px)); color: #132750; }
.share-dialog h2 { margin-top: 0; }
.share-dialog p { line-height: 1.6; font-size: .9rem; }
.share-dialog textarea { display: block; resize: vertical; width: 100%; min-height: 145px; margin: 16px 0; border: 1px solid #b8c6d9; border-radius: 8px; padding: 12px; color: #132750; font-size: 1rem; line-height: 1.6; }
.how-to-dialog { width: min(530px, calc(100vw - 28px)); border: 0; border-radius: 22px; padding: 31px; color: #14294b; box-shadow: 0 22px 70px #07152e75; }
.how-to-dialog .eyebrow { color: #5877ad; }
.how-to-dialog h2 { max-width: 390px; margin: 5px 0 22px; font-size: clamp(1.55rem, 4vw, 2.15rem); letter-spacing: -.06em; line-height: 1.16; }
.how-to-steps { display: grid; gap: 14px; margin: 0 0 25px; padding: 0; list-style: none; }
.how-to-steps li { display: flex; align-items: flex-start; gap: 12px; }
.how-to-steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e5efff; color: #2c5cab; font: 800 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.how-to-steps b, .how-to-steps small { display: block; }
.how-to-steps b { color: #203a62; font-size: .88rem; }
.how-to-steps small { margin-top: 3px; color: #637696; font-size: .77rem; line-height: 1.55; }
.how-to-dialog .primary-button { width: 100%; }
.mobile-jumps { display: none; }
.street-panel, .map-panel { scroll-margin-top: 18px; }
@media(max-width:800px) {
  .intro-row { margin: 15px 4px 12px; gap: 0; }
  .intro-row h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .intro-row .eyebrow, .economy-note { display: none; }
  .intro-row > div > p:last-child { margin-top: 7px; font-size: .875rem; }
  .explorer-card { grid-template-columns: 1fr; gap: 12px; margin: -1px 0 14px; padding: 14px; }
  .explorer-stats { gap: 8px; }
  .explorer-next { padding-top: 2px; }
  .game-board { min-height: 0; }
  .streetview-wrap { min-height: 240px; }
  .streetview-image { max-height: 56dvh; height: auto; }
  .street-header { top: 12px; left: 12px; right: 12px; }
  .difficulty-badge { padding: 6px 10px; font-size: .75rem; }
  .hint-button { padding: 10px; font-size: .875rem; }
  .hint-button small { font-size: .7rem; }
  .mobile-jumps { display: flex; gap: 8px; margin: 0 0 12px; }
  .mobile-jumps button { flex: 1; min-height: 40px; border: 1px solid #c9d6e7; background: #fff; color: #233957; border-radius: 9px; font-size: .875rem; cursor: pointer; }
  .result-card { grid-template-columns: 1fr 1fr; gap: 15px; }
  .result-card > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .result-label { justify-self: start; }
  .result-score { text-align: right; }
  .share-button, .next-button { min-height: 44px; }
  .map-panel { padding: 22px 18px; }
  .map-controls button { width: 44px; height: 44px; }
  .street-footer { padding: 11px 13px; font-size: .75rem; }
  .clue-toast { font-size: .8rem; bottom: 52px; }
}
@media(max-width:420px) {
  .how-to-button { padding: 6px 9px; }
  .explorer-stats div { padding-left: 8px; }
  .explorer-stats span { font-size: .61rem; }
  .how-to-dialog { padding: 28px 22px 22px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
