.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.game-surface { scroll-padding-top: 100px; }
.game-surface .sheet-inner { max-width: 820px; }
.game-surface .sheet-header { padding: 10px 0; margin-bottom: 20px; }
.game-surface .sheet-title { font-size: 1.35rem; }
.game-surface h2, .game-surface h3 { color: var(--ink); }
.game-surface :is(button, summary, input, select, textarea):focus-visible { outline: 3px solid #2d665a; outline-offset: 3px; }
.game-surface :is(button, input, select, textarea) { font: inherit; }
.game-surface button { cursor: pointer; min-height: 44px; }
.game-surface button:disabled { cursor: default; opacity: .62; }
.game-surface p { line-height: 1.5; }
.game-surface summary { min-height: 44px; padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--accent); }
.game-surface input, .game-surface select, .game-surface textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #8e8b82; border-radius: 8px; background: #fffefa; color: var(--ink); min-height: 46px; }
.game-lobby { max-width: 680px; padding: 8px 12px 40px; }
.game-lobby .game-headline { font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.14; letter-spacing: -.035em; margin: 12px 0 24px; }
.game-lobby .record-kicker { color: var(--accent); font-size: .78rem; letter-spacing: .06em; }
.game-pair { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 18px; }
.game-pair-person { background: #efede7; border: 1px solid var(--line); padding: 18px 14px; border-radius: 12px; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.game-pair-person img { height: 68px; width: 68px; object-fit: cover; border-radius: 50%; grid-row: span 2; }
.game-pair-person span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; }
.game-pair-person strong { font-size: 1.08rem; overflow-wrap: anywhere; align-self: start; }
.game-pair-arrow { font-size: 1.5rem; color: var(--accent); text-align: center; }
.game-one-rule { font-size: .94rem; }
.game-primary { border: 1px solid #245348; border-radius: 8px; background: #2d665a; color: #fffefa; padding: 13px 22px; font-weight: 750 !important; }
.game-primary:hover { background: #214e44; }
.game-lobby > .game-primary { width: 100%; }
.game-fineprint { font-size: .82rem; color: #59574f !important; }
.game-free-play, .game-rules, .game-saved, .game-discover { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.game-rules p, .game-rules li { line-height: 1.55; font-size: .92rem; }
.game-rules ul { padding-left: 22px; }
.game-rules li + li { margin-top: 8px; }
.game-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 16px; }
.game-selects label, .game-filter-label { display: block; font-size: .9rem; font-weight: 650; }
.game-selects select { margin-top: 8px; }
.game-notice, .game-resume { padding: 12px 16px; background: #e9eee7; border: 1px solid #bac9b6; border-radius: 8px; }
.game-resume { margin: 18px 0; }
.game-resume p { margin: 0 0 8px; }
.game-surface .game-hud { display: block; position: static; top: auto; padding: 14px 18px 8px; margin: 0 0 24px; background: #253e36; border: 0; border-radius: 12px; max-width: none; }
.game-hud .game-hud-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.game-hud .game-hud-top > span { color: #fffefa; font-size: .95rem; }
.game-hud .game-hud-top > strong { color: #fffefa; font-size: 1.1rem; }
.game-hud .game-hud-top strong span { font-size: .8rem; color: #e0e9e1; }
.game-hud .game-live-trail summary { color: #e0e9e1; font-size: .85rem; padding: 8px 0; min-height: 40px; }
.game-hud .game-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.game-tools button { color: #fffefa; background: transparent; border: 0; border-radius: 4px; padding: 8px 0; font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; }
.game-tools button:last-child { margin-left: auto; }
.game-hud :is(button, summary):focus-visible { outline-color: #fffefa; }
.game-hud .game-hint { background: #344f44; color: #fffefa; border-radius: 6px; padding: 12px; margin: 8px 0; font-size: .9rem; }
.game-live-trail .game-trail-label { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; }
.game-trail-label svg { width: 18px; height: 18px; }
.game-trail-label small { color: inherit; font-size: .72rem; }
.game-trail-label strong { font-size: .87rem; }
.game-trail-live li { min-height: 0; }
.game-turn { max-width: 720px; margin: 0 auto; }
.game-entity { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.game-entity img { width: 58px; height: 74px; object-fit: cover; border-radius: 6px; }
.game-entity .record-kicker { margin: 0 0 5px; }
.game-turn-heading { font-size: 1.6rem; margin: 0; }
.game-filter-label { margin: 0 0 8px; }
.game-choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-choice { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fffefa; color: var(--ink); text-align: left; width: 100%; }
.game-choice:hover:not(:disabled) { background: #edf2eb; border-color: var(--accent); }
.game-choice img { width: 44px; height: 58px; grid-row: span 2; object-fit: cover; border-radius: 4px; }
.game-choice > span { min-width: 0; }
.game-choice strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.game-choice small { display: block; margin-top: 3px; color: #59574f; font-size: .82rem; }
.game-choice .game-choice-tag { color: #2d665a; font-size: .74rem; font-weight: 750; }
.game-choice.is-target { border: 2px solid #2d665a; background: #e9eee7; }
.game-load-more { width: 100%; margin-top: 14px; }
.game-result { max-width: 680px; padding: 8px 12px 32px; }
.game-result-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; margin: 12px 0; }
.game-result .connection-game-trail-step { min-height: 52px; background: #fffefa; }
.game-result .connection-game-trail-step:hover { background: #e9eee7; }
.game-result .connection-game-trail-step small { font-size: .7rem; }
.game-result .button-row { margin: 20px 0 12px; }
.route-tiles { --tile-paper: #F8F4EE; --tile-blue: #315F79; --tile-green: #4F765D; --tile-gold: #C99832; --tile-empty: #E7DFD5; --tile-ink: #25221F; --tile-light: #FFFDF8; display: grid; grid-template-columns: minmax(92px, auto) minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 16px 0; max-width: 100%; }
.route-tiles-label { color: var(--tile-ink); font-size: .82rem; font-weight: 750; }
.route-tiles-grid { display: grid; grid-template-columns: repeat(6, 44px); gap: 8px; max-width: 100%; }
.route-tile { position: relative; display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 8px; background: var(--tile-empty); color: var(--tile-ink); font-size: 1rem; font-weight: 850; line-height: 1; }
.route-tile--completed, .route-tile--unique { background: var(--tile-blue); color: var(--tile-light); }
.route-tile--exact { background: var(--tile-green); color: var(--tile-light); }
.route-tile--partial { background: var(--tile-gold); color: var(--tile-ink); }
.route-tile--empty { background: var(--tile-empty); color: transparent; }
.route-tile-hint { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--tile-paper); border-radius: 50%; background: var(--tile-paper); color: var(--tile-ink); font-size: .65rem; font-weight: 900; line-height: 1; }
.game-comparison { margin: 20px 0; padding-top: 4px; border-top: 1px solid var(--line); }
.game-discover-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; }
.game-discover-row strong { min-width: 0; }
.game-discover-row button { flex-shrink: 0; }
.game-saved-row { display: block; width: 100%; text-align: left; padding: 14px; margin: 8px 0; background: #fffefa; border: 1px solid var(--line); border-radius: 8px; }
.game-saved-row small { display: block; color: var(--muted); margin-top: 4px; }
.game-challenge-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: var(--accent); text-underline-offset: 4px; }
.game-surface a:focus-visible { outline: 3px solid #2d665a; outline-offset: 3px; }
#gameShareFallback textarea { margin: 8px 0; }
.game-surface :is(button, input, select, summary, h2) { scroll-margin-block: 100px 20px; }
@media (max-width: 600px) {
  .game-lobby, .game-result { padding: 0 0 32px; }
  .game-surface .sheet-header { margin-bottom: 18px; }
  .game-lobby .game-headline { font-size: 1.8rem; margin-bottom: 18px; }
  .game-pair { gap: 7px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); }
  .game-pair-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; }
  .game-pair-person img { width: 52px; height: 52px; }
  .game-pair-person strong { align-self: center; font-size: .98rem; }
  .game-one-rule { font-size: .86rem; }
  .game-choice-list { grid-template-columns: 1fr; }
  .game-selects { grid-template-columns: 1fr; }
  .game-surface .game-hud { padding: 12px 12px 4px; margin-bottom: 18px; }
  .game-turn-heading { font-size: 1.35rem; }
  .game-entity { margin-bottom: 16px; }
  .game-result .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .route-tiles { grid-template-columns: 1fr; gap: 6px; }
  .route-tiles-grid { grid-template-columns: repeat(6, 36px); gap: 6px; }
  .route-tile { width: 36px; font-size: .9rem; }
  .route-tile-hint { width: 18px; height: 18px; top: -7px; right: -7px; }
  .game-discover-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .game-surface *, .game-surface *::before, .game-surface *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
