:root {
  --ink: #eeeae1;
  --muted: #a4aaa4;
  --line: rgba(205, 204, 188, .16);
  --panel: #1a2730;
  --panel-bright: #23333c;
  --navy: #131f29;
  --navy-deep: #0e171e;
  --cyan: #9bc2b1;
  --yellow: #d3b47a;
  --coral: #c98779;
  --green: #9fc2a8;
  --signal-faint: rgba(155,194,177,.035);
  --signal-soft: rgba(155,194,177,.08);
  --signal-border: rgba(155,194,177,.15);
  --signal-strong: rgba(155,194,177,.45);
  --signal-glow: rgba(155,194,177,.025);
  --signal-preview: rgba(155,194,177,.62);
  --signal-hover: rgba(155,194,177,.1);
  --signal-connected-fill: rgba(155,194,177,.14);
  --signal-connected-border: rgba(155,194,177,.3);
  --sun-border: rgba(211,180,122,.58);
  --sun-soft: rgba(211,180,122,.08);
  --sun-glow: rgba(211,180,122,.12);
  --moon-border: rgba(201,135,121,.44);
  --moon-soft: rgba(201,135,121,.08);
  --moon-glow: rgba(201,135,121,.12);
  --eclipse-border: rgba(169,155,194,.55);
  --eclipse-soft: rgba(169,155,194,.08);
  --eclipse-glow: rgba(169,155,194,.1);
  color-scheme: dark;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy-deep);
}

* { box-sizing: border-box; }
::selection { color: #17241f; background: var(--cyan); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 12% 0%, rgba(108, 124, 98, .1), transparent 30rem),
    var(--navy-deep);
}
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.app-shell { position: relative; z-index: 1; width: min(100% - 36px, 680px); margin: 0 auto; padding: 27px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.topbar, .brand-lockup, .top-actions, .score-strip, .control-row, .status-panel, .footer-note { display: flex; align-items: center; }
.topbar { justify-content: space-between; }
.brand-lockup { gap: 11px; }
.brand-mark { position: relative; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 6px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--signal-strong); }
.brand-mark::before { top: 5px; left: 7px; width: 1px; height: 17px; }
.brand-mark::after { top: 21px; left: 7px; width: 17px; height: 1px; }
.brand-mark span { position: absolute; z-index: 1; display: block; width: 6px; height: 6px; border: 1px solid var(--yellow); border-radius: 50%; background: var(--navy); }
.brand-mark span:nth-child(1) { top: 3px; left: 4px; }
.brand-mark span:nth-child(2) { right: 2px; bottom: 2px; border-color: var(--coral); }
.brand-mark span:nth-child(3) { bottom: 5px; left: 4px; border-color: var(--ink); background: var(--cyan); }
.brand-lockup h1 { margin: 0; letter-spacing: .17em; font-size: 15px; line-height: 1; }
.top-actions { gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: 11px; }
.icon-button:hover, .icon-button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible { border-color: var(--signal-strong); color: var(--ink); background: var(--signal-soft); }
.icon-button, .secondary-button, .share-button { transition: border-color .16s, color .16s, background-color .16s, transform .12s; }
.icon-button:active, .secondary-button:not(:disabled):active, .submit-button:not(:disabled):active, .share-button:active { transform: scale(.97); }
.intro { position: relative; padding: 64px 0 30px; }
.eyebrow, .stat-label, .board-labels, .board-end-label { font: 600 10px "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.footer-note { font: 10px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--cyan); display: flex; align-items: center; gap: 9px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.board-number { color: var(--muted); letter-spacing: .07em; }
.intro h2 { position: relative; z-index: 1; max-width: 560px; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(42px, 9vw, 68px); line-height: .9; letter-spacing: -.035em; margin: 16px 0 16px; font-weight: 400; }
.intro p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 14px; }
.intro b { color: #e0d9ca; font-weight: 500; }
.sky-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.sky-name { color: #e4ceaa; font: italic 18px "DM Serif Display", Georgia, serif; }
.sky-condition, .sky-divider { display: none; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.16); transition: border-color .25s, box-shadow .25s; }
.game-card.score-locked { border-color: rgba(159,194,168,.48); }
.game-card.score-failed { border-color: var(--moon-border); }
.game-card.score-locked + .status-panel strong { color: var(--green); }
.game-card.score-failed + .status-panel strong { color: var(--coral); }
.board-wrap { padding: 21px 22px 20px; background: radial-gradient(circle at 52% 44%, var(--signal-glow), transparent 62%), #15232c; }
.board-labels { width: min(100%, 560px); margin: 0 auto 18px; display: flex; justify-content: flex-start; color: var(--muted); font-size: 9px; }
.board-labels span:first-child { color: var(--yellow); }
.board-end-label { width: min(100%, 560px); margin: 4px auto 0; color: var(--coral); font-size: 9px; text-align: right; }
.board-stage { position: relative; width: min(100%, 560px); margin: 0 auto; }
.board-axis { position: absolute; z-index: 2; display: grid; color: var(--muted); font: 10px "DM Mono", monospace; line-height: 1; opacity: .82; pointer-events: none; }
.board-axis span { display: grid; place-items: center; }
.board-axis-top { top: -9px; right: 0; left: 0; grid-template-columns: repeat(6, 1fr); text-align: center; }
.board-axis-left { top: 0; bottom: 0; left: -13px; grid-template-rows: repeat(6, 1fr); width: 9px; text-align: right; }
.board-axis-top span:first-child, .board-axis-left span:first-child { color: var(--yellow); }
.board-axis-top span:last-child, .board-axis-left span:last-child { color: var(--coral); }
.board { position: relative; width: 100%; aspect-ratio: 1; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; user-select: none; }
.tile { position: relative; z-index: 1; display: grid; place-items: center; padding: 0; overflow: hidden; border: 1px solid rgba(205,204,188,.15); border-radius: 3px; background: rgba(8,14,19,.72); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.tile:not(:disabled):active { transform: scale(.96); }
.tile:disabled, .tile:disabled:hover { cursor: default; }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tile.connected { background: var(--signal-connected-fill); border-color: var(--signal-connected-border); }
.tile.gold-star.connected { border-color: var(--sun-border); }
.tile.void-star.connected { border-color: var(--moon-border); }
.tile.end.connected { border-color: var(--coral); }
.tile.fogged { background: rgba(9,15,21,.9); border-style: dashed; border-color: rgba(205,204,188,.25); }
.tile.start { border-color: var(--sun-border); }
.tile.end { border-color: var(--moon-border); }
.tile.pair-source { border-color: var(--yellow); animation: pair-pulse .55s ease-out; }
.tile.pair-target { border-color: var(--coral); animation: pair-pulse .55s ease-out; }
.tile.pair-preview-source { border-color: var(--signal-preview); }
.tile.pair-preview-target { border-color: var(--eclipse-border); }
.tile.pair-source::after, .tile.pair-target::after { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font: 11px "DM Mono", monospace; line-height: 1; }
.tile.pair-source::after { content: "↻"; color: #211a0d; background: var(--yellow); }
.tile.pair-target::after { content: "↺"; color: #241a18; background: var(--coral); }
.tile.pair-preview-source::after, .tile.pair-preview-target::after { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font: 11px "DM Mono", monospace; line-height: 1; opacity: .78; }
.tile.pair-preview-source::after { content: "↻"; color: #17241f; background: var(--cyan); }
.tile.pair-preview-target::after { content: "↺"; color: #211d27; background: var(--eclipse, #a99bc2); }
.tile.pair-source svg { transform-origin: center; animation: tile-turn-cw .55s ease-out; }
.tile.pair-target svg { transform-origin: center; animation: tile-turn-ccw .55s ease-out; }
@keyframes pair-pulse { 0% { transform: scale(.96); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes tile-turn-cw { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }
@keyframes tile-turn-ccw { from { transform: rotate(90deg); } to { transform: rotate(0deg); } }
.tile svg { width: 100%; height: 100%; }
.star-ray { stroke: #9aa39d; stroke-width: 2.4; stroke-linecap: round; opacity: .65; transition: stroke .18s, stroke-width .18s, opacity .18s; }
.tile.connected .star-ray { stroke: var(--cyan); stroke-width: 3.2; opacity: 1; }
.tile.start .star-ray { stroke: var(--yellow); }
.tile.end .star-ray { stroke: var(--coral); }
.endpoint-sun { fill: var(--yellow); stroke: var(--navy); stroke-width: 1.5; }
.endpoint-moon { fill: var(--coral); stroke: var(--navy); stroke-width: 1.5; }
.star-core { fill: #9aa39d; transition: fill .18s; }
.tile.connected .star-core { fill: var(--cyan); }
.tile.start .star-core { fill: var(--yellow); }
.tile.end .star-core { fill: var(--coral); }
.tile.gold-star .star-core { fill: var(--yellow); }
.tile.void-star .star-core { fill: var(--coral); }
.eclipse-core { fill: none; stroke: var(--eclipse, #a99bc2); stroke-width: 3; opacity: .8; }
.board-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 12px; margin-top: 9px; color: var(--muted); font: 500 10px "Space Grotesk", sans-serif; }
.board-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.legend-swatch.gold { background: var(--yellow); }
.legend-swatch.void { background: var(--coral); }
.legend-swatch.eclipse { border: 1px solid var(--eclipse); background: transparent; }
.game-controls { border-top: 1px solid var(--line); padding: 18px 22px 20px; }
.score-strip { justify-content: space-around; text-align: center; }
.score-strip > div { min-width: 0; flex: 1; }
.score-strip > div + div { border-left: 1px solid var(--line); }
.stat-label { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.score-strip > div:first-child .stat-label { color: var(--cyan); }
.score-strip strong { display: block; margin-top: 4px; color: var(--ink); font-size: 18px; font-weight: 500; }
.score-strip > div:first-child strong { color: var(--cyan); font-size: 22px; }
.score-strip strong.near-limit { color: var(--coral); }
.score-note { display: none; flex-wrap: wrap; justify-content: center; margin: 10px auto 0; color: var(--muted); text-align: center; font: 9px "DM Mono", monospace; letter-spacing: .02em; }
.game-card.score-locked .score-note, .game-card.score-failed .score-note { display: flex; }
.score-note span { padding: 0 8px; }
.score-note span + span { border-left: 1px solid var(--line); }
.score-note b { color: var(--ink); font-weight: 500; }
.route-log { margin-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font: 500 10px "Space Grotesk", sans-serif; }
.route-log summary { padding: 8px 2px 2px; cursor: pointer; list-style-position: inside; }
.route-log summary::marker { color: var(--cyan); }
.trace-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font: 8px "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.move-trace { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-height: 16px; margin-top: 6px; padding: 6px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--signal-border) transparent; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 4px; background: rgba(8,15,35,.24); }
.move-trace:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.trace-step { position: relative; display: grid; place-items: center; width: 17px; height: 17px; color: var(--navy); border: 1px solid rgba(255,255,255,.18); border-radius: 3px; font: 8px "DM Mono", monospace; line-height: 1; }
.trace-step::after { content: attr(data-turn); }
.trace-step.up { background: var(--green); }
.trace-step.steady { background: var(--yellow); }
.trace-step.down { background: var(--coral); }
.control-row { gap: 8px; justify-content: center; margin-top: 17px; }
.secondary-button { min-height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 6px; padding: 8px 13px; color: var(--muted); cursor: pointer; font-size: 12px; }
.secondary-button:disabled { cursor: default; opacity: .35; }
.submit-button { display: block; width: 100%; min-height: 44px; margin-top: 14px; border: 1px solid transparent; border-radius: 6px; padding: 11px 14px; color: var(--navy); background: var(--cyan); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .16s, box-shadow .16s, filter .16s, transform .16s; }
.submit-button.ready { border-color: var(--signal-strong); }
.submit-button:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.submit-button:disabled { cursor: default; color: var(--muted); border-color: var(--signal-border); background: var(--signal-faint); opacity: 1; }
.status-panel { min-height: 0; gap: 10px; margin-top: 9px; padding: 8px 0; border: 0; background: transparent; }
.status-panel > div:nth-child(2) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; flex: 1; }
.status-icon { display: none; }
.status-panel strong { font-size: 12px; font-weight: 600; }
.status-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.status-panel.moon-reached strong { color: var(--yellow); }
.status-panel.attempt-restored strong { color: var(--eclipse); }
.status-panel.pair-preview strong { color: var(--cyan); }
.share-button { min-height: 44px; margin-left: auto; white-space: nowrap; border: 0; border-radius: 6px; padding: 8px 11px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 600; cursor: pointer; }
.share-button span { padding-left: 4px; }
.share-button:hover { filter: brightness(1.08); }
.footer-note { justify-content: center; gap: 7px; color: var(--muted); padding-top: 20px; letter-spacing: .06em; }
.countdown { color: var(--ink); }
.modal-open { overflow: hidden; }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); background: rgba(4,9,12,.82); }
.modal-backdrop:not(.hidden) { animation: backdrop-in .16s ease-out both; }
.modal { position: relative; width: min(100%, 430px); max-height: min(88vh, 680px); overflow: auto; padding: 30px 27px 27px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-bright); box-shadow: 0 16px 50px rgba(0,0,0,.32); }
@supports (height: 100dvh) { .modal { max-height: min(680px, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px)); } }
.modal-backdrop:not(.hidden) .modal { animation: modal-in .2s cubic-bezier(.2,.8,.2,1) both; }
.modal-close { position: absolute; top: 4px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal h2 { margin: 9px 0 22px; font-family: "DM Serif Display", Georgia, serif; font-size: 32px; font-weight: 400; letter-spacing: -.025em; }
.how-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.how-row p { margin: 0; color: #d3d0c7; font-size: 13px; line-height: 1.4; }
.how-row b { color: var(--ink); font-weight: 500; }
.how-badge { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border: 1px solid var(--line); border-radius: 4px; font-size: 17px; }
.how-badge.sun { color: var(--yellow); background: var(--sun-soft); }
.how-badge.turn { color: var(--cyan); background: var(--signal-soft); }
.how-extras { margin-top: 4px; border-top: 1px solid var(--line); }
.how-extras summary { padding: 12px 2px; color: var(--muted); cursor: pointer; font-size: 12px; list-style: none; }
.how-extras summary::-webkit-details-marker { display: none; }
.how-extras summary::after { content: "+"; float: right; color: var(--cyan); font-family: "DM Mono", monospace; }
.how-extras[open] summary::after { content: "−"; }
.how-extras p { margin: -2px 0 12px; color: #d3d0c7; font-size: 12px; line-height: 1.45; }
.shortcut-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .03em; text-align: center; }
.shortcut-note kbd { min-width: 20px; padding: 3px 5px; border: 1px solid var(--line); border-bottom-color: rgba(205,204,188,.35); border-radius: 4px; color: var(--ink); background: rgba(8,14,19,.4); text-align: center; font: 9px "DM Mono", monospace; }
.how-tip { margin-top: 18px; padding: 12px 13px; border-left: 2px solid var(--sun-border); color: #d3d0c7; background: rgba(8,14,19,.24); font-size: 12px; line-height: 1.45; }
.how-tip b { color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid > div { padding: 14px 4px; text-align: center; }
.stats-grid > div + div { border-left: 1px solid var(--line); }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { font-size: 23px; font-weight: 500; }
.stats-grid span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.distribution-label { margin-top: 23px; color: var(--ink); font-size: 14px; font-weight: 500; }
.distribution { margin-top: 10px; color: var(--muted); font: 12px "Space Grotesk", sans-serif; }
.empty-log { padding: 10px 0; text-align: left; line-height: 1.55; }
.empty-log span { color: var(--muted); }
.dist-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.dist-row > span:first-child { width: 35px; }
.dist-bar { height: 18px; min-width: 12px; padding: 2px 7px; border-radius: 4px; color: var(--navy); background: var(--cyan); text-align: right; font-size: 10px; line-height: 14px; }
.dist-bar.empty { min-width: 0; padding-right: 0; padding-left: 0; color: transparent; background: var(--line); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(25px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); padding: 10px 14px; border-radius: 9px; color: var(--navy); background: var(--cyan); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(238,234,225,.42); --muted: #d3d0c7; }
  .tile { border-color: rgba(238,234,225,.36); }
  .tile.fogged { border-color: rgba(238,234,225,.62); }
  .board-legend, .score-note, .status-panel p { color: #dedbd2; }
}
@media (min-width: 760px) {
  .app-shell { width: min(100% - 48px, 960px); }
}
@media (min-width: 980px) {
  .game-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: stretch; }
  .board-wrap { padding: 25px 28px 23px; }
  .board-stage { width: min(100%, 600px); }
  .game-controls { display: flex; flex-direction: column; justify-content: flex-start; border-top: 0; border-left: 1px solid var(--line); padding: 25px 20px 24px; }
  .score-strip { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .score-strip > div:first-child { grid-column: 1; }
  .score-strip > div:first-child strong { font-size: 28px; }
  .score-strip > div { padding: 2px 0; }
  .score-strip > div:nth-child(odd) { border-left: 0; }
  .score-note { margin-top: 15px; }
}
@media (min-width: 980px) and (min-height: 900px) {
  .game-controls { justify-content: center; }
}
@media (hover: none) {
  .submit-button:not(:disabled):hover { filter: none; transform: none; }
  .icon-button:hover, .secondary-button:hover { border-color: var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
  .share-button:hover { filter: none; }
  .modal-close:hover { color: var(--muted); }
}
@media (hover: hover) {
  .tile:not(:disabled):hover { border-color: var(--signal-strong); background: var(--signal-hover); transform: translateY(-1px); }
}
@media (max-width: 430px) {
  .app-shell { width: min(100% - 22px, 640px); padding-top: 18px; }
  .intro { padding-top: 30px; padding-bottom: 20px; }
  .intro h2 { margin: 12px 0; }
  .intro p { font-size: 13px; }
  .board { gap: 2px; }
  .board-wrap { padding-left: 14px; padding-right: 8px; }
  .game-controls { padding-left: 13px; padding-right: 13px; }
  .board-labels { font-size: 9px; }
  .board-axis { font-size: 10px; }
  .board-legend { gap: 5px 9px; font-size: 10px; }
  .status-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .status-panel > div:nth-child(2) { grid-column: 1; }
  .share-button { grid-column: 1; justify-self: start; align-self: start; margin-left: 0; }
  .score-strip strong { font-size: 15px; }
  .stat-label { font-size: 10px; }
  .score-strip { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 9px; }
  .score-strip > div { padding: 2px 0; }
  .score-strip > div:nth-child(odd) { border-left: 0; }
  .score-note { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; row-gap: 0; margin-top: 12px; }
  .game-card.score-locked .score-note, .game-card.score-failed .score-note { display: grid; }
  .score-note span { padding: 4px 3px; }
  .score-note span + span { border-left: 0; }
  .score-note span:nth-child(even) { border-left: 1px solid var(--line); }
  .score-note span:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trace-meta { font-size: 9px; }
  .modal { padding: 27px 20px 21px; }
  .modal h2 { margin-bottom: 17px; font-size: 29px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { padding: 10px 4px; }
  .stats-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .how-row { align-items: flex-start; gap: 10px; padding: 11px 0; }
  .how-badge { flex-basis: 30px; height: 30px; font-size: 15px; }
  .how-row p { padding-top: 2px; font-size: 12px; line-height: 1.45; }
  .how-tip { margin-top: 14px; padding: 10px 11px; font-size: 11px; }
  .stats-grid strong { font-size: 21px; }
  .icon-button { min-width: 44px; padding: 0 8px; }
}
