/* Oyun Arası oyun sayfası şablonu.
   Masaüstünde üç sütun (başlık · nasıl oynanır · kısayollar | oyun paneli | hedef · başka oyunlar),
   tablette tahta üstte, telefonda tek sütun ve tahta ilk ekranda.
   game-shell.css'ten sonra, oyunun kendi styles.css dosyasından önce yüklenir.
   Oyuna özel vurgu ve başlık renkleri <body data-game> üzerinden gelir; ortak oyun paneli lacivert kalır. */
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.game-page { --frame: #10264b; --title: var(--accent); --title-shadow: var(--accent-deep); --sky: #e3edfc; --butter: #fdefc2; }

.play-page { width: min(100% - 48px, 1560px); margin: 0 auto; }
.play-page .topbar { height: 76px; border-bottom: 1px solid var(--line); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 4px 12px; color: var(--ink); font-size: 16px; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { display: block; width: 22px; height: 22px; fill: var(--ink); }
.crumbs > span[aria-hidden] { color: var(--muted); }

/* layout */
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 36px; }
.play-layout > *, .play-panel, .board-frame { min-width: 0; max-width: 100%; }
@media (min-width: 1320px) {
  .play-layout {
    grid-template-columns: minmax(300px, 1fr) minmax(620px, 820px) minmax(300px, 1fr);
    grid-template-areas:
      'intro panel goal'
      'how   panel more'
      'how   panel more';
    grid-template-rows: auto 1fr auto;
    column-gap: 26px;
    row-gap: 18px;
    align-items: start;
  }
  .play-intro { grid-area: intro; }
  .how-card { grid-area: how; }
  .shortcuts { grid-area: keys; }
  .play-panel { grid-area: panel; }
  .goal-card { grid-area: goal; }
  .more-card { grid-area: more; }
}

/* title */
.play-intro { padding: 20px 22px 22px; border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 20px; background: var(--surface); box-shadow: 0 5px 18px rgb(40 30 10 / .045); }
.game-category { display: inline-flex; flex: none; align-items: center; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.intro-heading-row { display: flex; max-width: 100%; align-items: center; justify-content: center; gap: 12px; margin: 0 auto; }
.intro-heading-row .title-art { flex: 0 1 auto; margin: 0; }
.title-art { position: relative; z-index: 0; width: fit-content; max-width: 100%; margin: 0 auto; color: var(--title); font: 700 clamp(58px, 5.4vw, 96px) / .95 'Fredoka', sans-serif; letter-spacing: -.02em; text-align: center; transform: rotate(-5deg); text-shadow: 0 3px 0 var(--title-shadow); }
.title-art.is-short { font-size: clamp(76px, 5.6vw, 100px); letter-spacing: -.03em; transform: rotate(-6deg); }
.title-art.is-long { font-size: clamp(36px, 3.1vw, 50px); letter-spacing: -.04em; transform: none; white-space: normal; }
.title-brush { position: absolute; left: 8%; bottom: -16px; width: 92%; height: 26px; fill: #fecf40; z-index: -1; }
.tagline { margin-top: 24px; color: var(--ink); font-size: 20px; font-weight: 700; text-align: center; }

/* how to play */
.how-card { border: 1px solid color-mix(in srgb, #f1d88e 50%, transparent); border-radius: 20px; background: var(--butter); }
.how-card summary { display: flex; align-items: center; gap: 12px; padding: 20px 22px 8px; list-style: none; cursor: default; }
.how-card summary::-webkit-details-marker { display: none; }
.how-card summary strong { display: block; color: var(--ink); font: 700 26px / 1.1 'Fredoka', sans-serif; letter-spacing: -.01em; }
.how-card summary small, .how-book, .how-chevron { display: none; }
.how-steps { display: grid; gap: 14px; margin: 0; padding: 8px 22px 22px; list-style: none; counter-reset: step; }
.how-steps li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 17px; line-height: 1.35; counter-increment: step; }
.how-steps li::before { content: counter(step); display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 17px 'Fredoka', sans-serif; }

/* keyboard shortcuts */
.shortcuts { margin-top: 18px; padding: 18px 22px 20px; border-top: 1px solid color-mix(in srgb, var(--orange) 20%, transparent); }
.shortcuts h2 { margin-bottom: 14px; color: var(--ink); font: 700 18px 'Fredoka', sans-serif; }
.shortcut-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.arrow-keys { display: grid; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(2, 50px); gap: 6px; }
.k-up { grid-column: 2; }
.k-left { grid-column: 1; grid-row: 2; }
.k-down { grid-column: 2; grid-row: 2; }
.k-right { grid-column: 3; grid-row: 2; }
.play-page kbd { display: grid; place-items: center; min-width: 50px; height: 50px; padding: 0 12px; border: 1px solid #d9d4c8; border-radius: 10px; background: linear-gradient(#fff, #f1eee7); color: var(--ink); font: 700 20px 'Roboto Condensed', sans-serif; box-shadow: 0 3px 0 #cfc9bc; }
.play-page kbd.k-wide { font-size: 16px; }
.key-note { display: grid; justify-items: center; gap: 8px; color: var(--ink); font-size: 16px; text-align: center; }
.arrow-keys + .key-note { padding-left: 28px; border-left: 1px solid var(--line); }
.play-page .save-state { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* game panel */
.play-panel { position: relative; padding: 20px; border: 1px solid color-mix(in srgb, var(--frame) 82%, #fff); border-radius: 26px; background: var(--frame); box-shadow: 0 18px 38px color-mix(in srgb, var(--frame) 24%, transparent); }
.play-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin: 0 0 14px; color: #fff; }
.play-panel-head > .actions { margin-left: auto; }
.play-panel-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.play-panel-identity > svg { width: 34px; height: 34px; flex: none; fill: currentColor; }
.play-panel-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.play-panel-labels strong { font: 700 24px / 1.1 'Fredoka', sans-serif; }
.play-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgb(81 232 156 / .35); border-radius: 999px; background: rgb(50 201 126 / .16); color: #79f0b1; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.play-live::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ''; }
.fullscreen-button { display: grid; width: 46px; height: 44px; flex: none; place-items: center; border: 1px solid rgb(255 255 255 / .35); border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; }
.fullscreen-button:hover, .fullscreen-button[aria-pressed='true'] { background: rgb(255 255 255 / .2); }
.fullscreen-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.play-bar { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.play-bar:has(.actions:only-child) { justify-content: flex-end; }
.scores { display: flex; gap: 10px; }
.play-page .scores .score-card { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 100px; padding: 8px 14px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .16); color: #fff; }
.play-page .scores .score-card > span { font-size: 14px; font-weight: 700; letter-spacing: .06em; opacity: .9; white-space: nowrap; }
.play-page .scores .score-card > strong { font: 700 30px / 1 'Fredoka', sans-serif; font-variant-numeric: tabular-nums; }
.play-page .scores .score-card i { position: absolute; top: -16px; color: #fecf40; font-size: 15px; font-weight: 800; font-style: normal; opacity: 0; }
.play-page .scores .score-card i.pop { animation: score-pop .65s ease-out; }
@keyframes score-pop { 0% { opacity: 1; transform: translateY(4px); } 100% { opacity: 0; transform: translateY(-14px); } }
.actions, .overlay-actions { display: flex; gap: 10px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 20px; border: 2px solid transparent; border-radius: 14px; font: 700 19px 'Fredoka', sans-serif; white-space: nowrap; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.play-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.play-button:hover:not(:disabled) { transform: translateY(-2px); }
.play-new { background: #fecf40; color: var(--ink); }
.play-new:hover:not(:disabled) { background: #ffd95e; }
.play-undo { border-color: #fff; background: #fff; color: var(--accent); }
.play-undo:disabled { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .12); color: rgb(255 255 255 / .75); cursor: not-allowed; }
.play-undo[aria-pressed='true'] { border-color: #fecf40; background: #fff3c7; color: #9a3208; }

/* second row of controls: level pickers, toggles and records */
.play-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: -4px 0 16px; color: #fff; }
.play-select { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.play-select select { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 700 16px 'Roboto Condensed', sans-serif; letter-spacing: 0; cursor: pointer; }
.play-record { color: rgb(255 255 255 / .9); font-size: 15px; font-weight: 700; }

.board-frame { position: relative; padding: 14px; border-radius: 20px; background: rgb(255 255 255 / .1); }

.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--ink) 84%, transparent); backdrop-filter: blur(6px); }
.overlay-card { width: min(100%, 340px); padding: 26px; border-radius: 20px; background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.overlay-kicker { margin-bottom: 8px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.overlay-card h2 { margin-bottom: 8px; color: var(--ink); font: 700 28px 'Fredoka', sans-serif; }
.overlay-card > p:not(.overlay-kicker) { margin-bottom: 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.overlay-actions { justify-content: center; }
.overlay-card .play-undo { border-color: var(--line); }

.play-page .status { min-height: 20px; margin-top: 12px; color: rgb(255 255 255 / .9); font-size: 15px; font-weight: 600; text-align: center; }
.play-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; margin-top: 14px; color: #fff; }
.play-panel-footer .scores { flex-wrap: wrap; }
.play-panel-footer .score-card { display: flex !important; flex-direction: row; align-items: baseline; gap: 10px !important; min-width: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.play-panel-footer .score-card > span { color: rgb(255 255 255 / .82); font-size: 14px !important; }
.play-panel-footer .score-card > strong { color: #fecf40; font-size: 22px !important; }
.play-panel-footer .status { flex: 1; margin: 0; text-align: right; }
.play-panel:fullscreen { display: flex; min-height: 100dvh; flex-direction: column; justify-content: center; overflow: auto; padding: clamp(16px, 3vw, 40px); border: 0; border-radius: 0; }
.play-panel:fullscreen .board-frame { width: min(100%, 1000px); align-self: center; }

/* Bottom information tabs shown on every game page. */
.game-details { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; column-gap: 20px; margin: 0 0 30px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 5px 18px rgb(40 30 10 / .04); }
.game-detail-tabs { display: flex; grid-column: 1; align-items: stretch; gap: 22px; border-bottom: 1px solid var(--line); }
.game-detail-tab { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 6px 12px; border: 0; background: transparent; color: var(--muted); font: 700 17px 'Fredoka', sans-serif; cursor: pointer; }
.game-detail-tab::before { color: currentColor; font: 700 20px / 1 system-ui, sans-serif; }
.game-detail-tab[data-icon='about']::before { content: '▤'; }
.game-detail-tab[data-icon='controls']::before { content: '🎮'; font-size: 18px; }
.game-detail-tab[data-icon='related']::before { content: '★'; }
.game-detail-tab[aria-selected='true'] { color: var(--orange); }
.game-detail-tab[aria-selected='true']::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px; background: var(--orange); content: ''; }
.game-detail-tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.game-detail-content { grid-column: 1; padding: 18px 4px 4px; }
.game-detail-panel p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.related-game-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-game-links a { padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.related-game-links a:hover { filter: brightness(.96); }
.game-details-promo { display: grid; grid-column: 2; grid-row: 1 / span 2; align-content: center; justify-items: start; gap: 8px; padding: 18px; border-left: 1px solid var(--line); color: var(--muted); }
.game-details-promo > span { font-size: 24px; }
.game-details-promo p { max-width: 220px; font-size: 14px; line-height: 1.5; }
.game-details-promo strong { color: var(--orange); font: 700 18px 'Fredoka', sans-serif; }

/* goal */
.goal-card { padding: 24px 26px 26px; border: 1px solid color-mix(in srgb, #c9d9f3 60%, transparent); border-radius: 20px; background: var(--sky); }
.goal-card h2, .more-card h2 { color: var(--ink); font: 700 34px / 1.05 'Fredoka', sans-serif; letter-spacing: -.01em; }
.goal-card p { margin: 12px 0 20px; color: var(--ink); font-size: 18px; line-height: 1.45; }
.goal-card .goal-note { margin: -10px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.goal-equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.goal-equation b { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 14px; background: #f7802f; color: #fff; font: 700 34px 'Fredoka', sans-serif; box-shadow: 0 4px 0 rgb(0 0 0 / .1); }
.goal-equation b.goal-result { background: #fecf40; color: var(--ink); }
.goal-equation b.goal-light { background: #fff; color: var(--ink); }
.goal-equation i { color: var(--ink); font: 700 30px 'Fredoka', sans-serif; font-style: normal; }

/* more games */
.more-card { padding: 22px 20px 20px; border: 1px solid color-mix(in srgb, #e9c85e 55%, transparent); border-radius: 20px; background: #fde38a; }
.more-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.more-card h2 { font-size: 28px; }
.more-card-head svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.more-card-head:hover svg { transform: translateX(4px); }
.more-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.more-card-grid .more-tile:nth-child(n + 3) { display: none; }

/* coming-soon pages: the cover sits in the panel with a badge */
.soon-stage { position: relative; overflow: hidden; border-radius: 20px; background: rgb(255 255 255 / .1); }
.soon-stage img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.85); }
.soon-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: linear-gradient(180deg, rgb(13 27 76 / .15), rgb(13 27 76 / .72)); color: #fff; text-align: center; }
.soon-badge { padding: 10px 26px; border-radius: 999px; background: #fecf40; color: var(--ink); font: 700 clamp(30px, 3.4vw, 46px) / 1 'Fredoka', sans-serif; letter-spacing: .06em; box-shadow: 0 6px 0 rgb(0 0 0 / .18); transform: rotate(-4deg); }
.soon-overlay p { max-width: 380px; font-size: 20px; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.soon-overlay .play-button { margin-top: 6px; }

.play-page .footer { margin-top: 8px; }

/* On short viewports, reduce decorative spacing before shrinking interactive boards. */
@media (min-width: 761px) and (max-height: 800px) {
  .crumbs { padding-block: 10px 8px; }
  .play-layout { row-gap: 12px; padding-bottom: 24px; }
  .play-panel { padding: 14px; }
  .play-panel-head { min-height: 40px; margin-bottom: 8px; }
  .play-bar { gap: 8px; margin-bottom: 10px; }
  .play-options { gap: 8px 12px; margin-bottom: 10px; }
  .board-frame { padding: 10px; }
  .play-panel-footer { min-height: 42px; margin-top: 8px; }
  .play-page .status { margin-top: 8px; }
}

@media (min-width: 761px) and (max-height: 650px) {
  .play-page .topbar { height: 60px; }
  .crumbs { padding-block: 7px 5px; }
  .play-layout { padding-bottom: 16px; }
  .play-panel { padding: 10px; border-radius: 20px; }
  .play-panel-head { min-height: 34px; margin-bottom: 6px; }
  .play-panel-identity > svg { width: 26px; height: 26px; }
  .play-panel-labels strong { font-size: 19px; }
  .play-button { min-height: 42px; padding-inline: 14px; font-size: 16px; }
  .board-frame { padding: 8px; }
  .play-panel-footer { min-height: 34px; margin-top: 6px; }
}

/* tablet: board first, side cards in two columns below */
@media (min-width: 761px) and (max-width: 1319px) {
  .play-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-intro, .play-panel, .how-card { grid-column: 1 / -1; }
  .play-panel { max-width: 640px; width: 100%; justify-self: center; }
  .play-panel-head { flex-wrap: wrap; }
  .play-panel-labels strong { font-size: 21px; }
  .how-card { order: 1; }
}

/* phones: title and scores side by side, controls, board, then the rest */
@media (max-width: 760px) {
  .play-page { width: calc(100% - 28px); }
  .play-page .topbar { height: 64px; }
  .crumbs, .goal-card { display: none; }
  .play-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; }
  .play-layout > *, .play-panel > *, .play-bar > *, .play-intro > * { grid-column: 1 / -1; }
  .play-bar, .play-intro { display: contents; }
  .play-panel { display: flex; grid-column: 1 / -1; flex-direction: column; order: 4; padding: 12px; border-radius: 22px; }
  .title-art { order: 1; grid-column: 1; align-self: center; margin: 0 0 0 4px; font-size: clamp(40px, 11vw, 58px); text-align: left; text-shadow: 0 2px 0 var(--title-shadow); }
  .title-art.is-short { font-size: clamp(58px, 17vw, 84px); }
  .title-art.is-long { font-size: clamp(32px, 8.5vw, 46px); }
  .title-brush { bottom: -10px; height: 18px; }
  .play-bar > .scores { order: 2; grid-column: 2; align-self: center; gap: 8px; }
  .play-bar > .scores:has(> .score-card:nth-child(3)) { order: 3; grid-column: 1 / -1; }
  .scores:has(> .score-card:nth-child(3)) .score-card { flex: 1; width: auto; }
  .tagline { order: 3; margin-top: 6px; font-size: 16px; text-align: left; }
  .play-panel-head { order: 0; flex-wrap: wrap; min-height: 42px; margin-bottom: 8px; }
  .play-panel-head .actions { order: 3; flex: 1 1 100%; width: 100%; margin: 0; }
  .play-panel-head .fullscreen-button { order: 2; }
  .play-panel-identity { gap: 9px; }
  .play-panel-identity > svg { width: 28px; height: 28px; }
  .play-panel-labels { gap: 8px; }
  .play-panel-labels strong { font-size: 18px; }
  .play-live { padding: 5px 8px; font-size: 10px; }
  .play-options { order: 2; margin: 0 0 10px; color: var(--ink); }
  .board-frame, .soon-stage { order: 3; }
  .progress-row { order: 4; }
  .play-panel-footer { order: 5; }
  .how-card { order: 8; }
  .more-card { order: 10; }
  .play-panel-footer { order: 5; flex-direction: column; align-items: stretch; min-height: 0; margin: 0; padding: 12px; border-radius: 16px; background: var(--frame); }
  .play-panel-footer .scores { justify-content: space-between; }
  .play-panel-footer .scores .score-card { width: auto; padding: 0; border: 0; background: transparent; color: #fff; }
  .play-panel-footer .scores .score-card > span { color: rgb(255 255 255 / .82); }
  .play-panel-footer .scores .score-card > strong { color: #fecf40; }
  .play-panel-footer .status { color: rgb(255 255 255 / .9); text-align: center; }
  .intro-heading-row { order: 1; grid-column: 1 / -1; justify-content: flex-start; gap: 8px; margin: 0; }
  .game-category { padding: 6px 10px; font-size: 11px; }
  .game-details { display: block; margin-top: 8px; padding: 14px; }
  .game-detail-tabs { overflow-x: auto; gap: 18px; }
  .game-detail-tab { flex: none; font-size: 15px; }
  .game-details-promo { display: none; }
  .play-page .scores .score-card { min-width: 0; width: clamp(64px, 20vw, 92px); padding: 8px 6px; border: 2px solid color-mix(in srgb, var(--accent) 25%, #fff); background: color-mix(in srgb, var(--accent) 6%, #fff); color: var(--ink); }
  .play-page .scores .score-card > span { color: var(--accent); font-size: 12px; }
  .play-page .scores .score-card > strong { font-size: 24px; }
  .play-page .scores .score-card i { color: var(--orange); }
  .actions .play-button { flex: 1; min-width: 0; padding: 0 12px; font-size: 17px; white-space: normal; line-height: 1.1; }
  .actions .play-new { flex: 1.4; }
  .play-undo { border-color: var(--ink); background: #fff; color: var(--ink); }
  .play-undo:disabled { border-color: #c9c3b6; background: #fff; color: #8b8676; }
  .play-select select { border: 1px solid var(--line); }
  .play-record { color: var(--muted); }
  .board-frame, .soon-stage { padding: 12px; border: 1px solid rgb(255 255 255 / .12); border-radius: 20px; background: rgb(255 255 255 / .1); box-shadow: none; }
  .soon-stage { padding: 0; }
  .soon-overlay p { font-size: 17px; }
  .how-card { border: 1px solid var(--line); background: var(--surface); }
  .how-card .shortcuts { margin: 0; padding: 16px 18px 18px; }
  .how-card summary { gap: 14px; padding: 16px 18px; cursor: pointer; }
  .how-card summary > span { flex: 1; }
  .how-card summary strong { font-size: 21px; }
  .how-card summary small { display: block; margin-top: 2px; color: var(--accent); font-size: 15px; }
  .how-book, .how-chevron { display: block; width: 30px; height: 30px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .how-chevron { width: 24px; height: 24px; stroke-width: 2.4; transition: transform .2s; }
  .how-card[open] .how-chevron { transform: rotate(180deg); }
  .how-steps { padding: 0 18px 18px; }
  .how-steps li { font-size: 16px; }
  .more-card { padding: 16px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
  .more-card h2 { font-size: 23px; }
  .more-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .more-card-grid .more-tile:nth-child(n + 3) { display: grid; }
  .more-card-grid .more-text small { display: none; }
  .more-card-grid .more-text strong { font-size: 14px; text-align: center; white-space: normal; }
}

@media (max-width: 760px) {
  .game-screen .game-play.play-panel { display: flex; width: 100%; order: 2; flex-direction: column; margin: 0 0 18px; padding: 12px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .play-page .scores .score-card i.pop { animation: none; }
  .play-button, .more-card-head svg, .how-chevron { transition: none; }
}
