.game-page { max-width: 46rem; padding-top: 0; }
.game-picker { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.game-picker a { border: 1px solid var(--rule); border-radius: 100px; padding: .7rem 1.1rem; text-decoration: none; font-size: .9rem; }
.game-picker a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.game-picker a:hover { border-color: var(--ink); }
.game-page .page-content h1 { max-width: 28rem; margin: 0 auto 1.2rem; font-size: clamp(1.35rem, 4.5vw, 1.7rem); line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; }
.love-game { width: 100%; max-width: 23rem; margin: 0 auto; text-align: center; }
.love-game [hidden] { display: none !important; }
.game-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.game-score { display: flex; justify-content: space-between; gap: .5rem; padding: .75rem .2rem; font-size: .875rem; }
.game-score > span:first-child > span:first-child { color: var(--red); }
.game-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; padding: .65rem; border: 1px solid var(--rule); border-radius: 1.2rem; background: #fff7f8; box-shadow: 0 .4rem 1.8rem #61162b0a; }
.game-cell { aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8d7df55; border-radius: .65rem; color: var(--red); font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1; }
.game-cell.wall { background: repeating-linear-gradient(45deg, #edc0cc, #edc0cc 5px, #f1cbd5 5px, #f1cbd5 10px); }
.game-cell.player { background: var(--ink); color: #fff7f8; }
.game-cell.destination { border: 1px dashed #ad183f80; background: #ffe8ee; }
.game-cell.together { background: var(--red); color: #fff7f8; border: 0; }
.game-cell small { font: 600 .7rem Arial, sans-serif; margin-top: .3rem; }
.game-status { min-height: 3em; margin: 1rem 0 .6rem; font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; line-height: 1.5; text-wrap: balance; }
.game-controls { display: grid; grid-template-columns: repeat(3, 3.25rem); grid-template-rows: repeat(2, 3.25rem); gap: .35rem; justify-content: center; }
.game-controls button { border: 1px solid var(--rule); border-radius: .8rem; background: #fff7f8; color: var(--ink); font: 1.65rem Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.game-controls button[data-direction="up"] { grid-area: 1 / 2; }
.game-controls button[data-direction="left"] { grid-area: 2 / 1; }
.game-controls button[data-direction="down"] { grid-area: 2 / 2; }
.game-controls button[data-direction="right"] { grid-area: 2 / 3; }
.game-controls button:hover:not(:disabled), .game-controls button:active:not(:disabled) { background: var(--ink); color: #fff7f8; }
.game-controls button:disabled { opacity: .4; cursor: default; }
.game-controls button:focus-visible, .game-reset:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.game-help { font-size: .8rem; line-height: 1.5; margin: .9rem 0 1rem; }
.game-reset { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 100px; padding: .65rem 1.25rem; cursor: pointer; touch-action: manipulation; }
.game-reset:hover { background: var(--ink); color: #fff7f8; }
.game-ending { border: 1px solid var(--rule); background: #fff7f8; border-radius: 1rem; padding: 1.5rem; margin: 0 0 1.2rem; }
.game-ending-heart { display: block; font-size: 2.5rem; color: var(--red); }
.game-ending h2 { font: italic 1.8rem/1.2 Georgia, serif; letter-spacing: -.04em; margin: .6rem 0; }
.game-ending p { font-family: Georgia, serif; line-height: 1.6; }
.game-ending a { display: inline-block; padding: .6rem 0; }
