/* 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; }

.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;
  }
  /* Yalnızca ortak şablonun ızgarasındaki bölgeler; kendi düzenini kullanan sayfalar (Harfle) etkilenmez. */
  .play-layout > .play-intro { grid-area: intro; }
  .play-layout > .how-card { grid-area: how; }
  .play-layout > .shortcuts { grid-area: keys; }
  .play-layout > .play-panel { grid-area: panel; }
  .play-layout > .goal-card { grid-area: goal; }
  .play-layout > .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 { 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); }


.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; }

/* 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) {
  .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-layout > :is(.play-intro, .play-panel, .how-card) { grid-column: 1 / -1; }
  .play-layout > .play-panel { max-width: 640px; width: 100%; justify-self: center; }
  .play-panel-head { flex-wrap: wrap; }
  .play-panel-labels strong { font-size: 21px; }
  .play-layout > .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); }
  .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; }
}

/* Tam ekran (game-shell.js): panel ekranı kaplayan sabit bir sütuna dönüşür. Başlık üstte, alt çubuk altta kalır;
   aradaki içerik ortalanır ve [data-fs-fit] öğesinin genişliği (--fs-fit-w) her şey ekrana sığacak şekilde hesaplanır.
   Oyunlar tam ekranda tahtalarını ekran yüksekliğinden değil bu genişlikten türetir. */
html.game-fs-open, html.game-fs-open body { overflow: hidden; overscroll-behavior: none; }
html.game-fs-open :is(.modal-backdrop, .toast) { z-index: 1001; }
.play-panel.is-fullscreen {
  position: fixed !important; inset: 0; z-index: 1000; display: flex !important; flex-direction: column; gap: 10px;
  box-sizing: border-box; width: 100vw; max-width: none; height: 100vh; height: 100dvh; min-height: 0; margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow: hidden; overscroll-behavior: contain; border: 0; border-radius: 0; box-shadow: none; outline: none;
}
.play-panel.is-fullscreen.fs-overflow { overflow-y: auto; }
.play-panel.is-fullscreen > * { flex: none; order: 0; max-width: 100%; margin: 0; }
.play-panel.is-fullscreen > :not(.play-panel-head, .play-panel-footer) { align-self: center; }
.play-panel.is-fullscreen > .play-panel-head + * { margin-top: auto; }
.play-panel.is-fullscreen > :has(+ .play-panel-footer), .play-panel.is-fullscreen > :last-child:not(.play-panel-footer) { margin-bottom: auto; }
.play-panel.is-fullscreen > :is([data-fs-fit], .progress-row) { width: var(--fs-fit-w, auto); box-sizing: border-box; }
.play-panel.is-fullscreen > .play-options { width: 100%; justify-content: center; margin: 0; }
.play-panel.is-fullscreen > :is(.play-extras, .goal-card, .more-card, .game-details) { display: none !important; }
.play-panel.is-fullscreen .play-options { color: #fff; }
.play-panel.is-fullscreen .play-record { color: rgb(255 255 255 / .85); }
/* Tahta bir üst sınıra ulaştığında çerçeve tahtadan geniş kalabilir; çerçeve kutusu tam ekranda görünmez olur. */
.play-panel.is-fullscreen .board-frame { border-color: transparent; background: none; box-shadow: none; }

.play-panel.is-fullscreen > .play-panel-head { display: flex; width: 100%; min-height: 40px; flex-wrap: nowrap; gap: 10px; }
.play-panel.is-fullscreen .play-panel-head .actions { order: 0; flex: 0 1 auto; width: auto; min-width: 0; margin: 0 0 0 auto; gap: 8px; }
.play-panel.is-fullscreen .play-panel-head .play-button { flex: 0 1 auto; min-height: 40px; padding: 0 14px; font-size: 16px; white-space: nowrap; }
.play-panel.is-fullscreen .play-panel-head .fullscreen-button { order: 0; width: 42px; height: 40px; }
.play-panel.is-fullscreen .play-panel-identity > svg { width: 26px; height: 26px; }
.play-panel.is-fullscreen .play-panel-labels strong { font-size: 20px; white-space: nowrap; }

.play-panel.is-fullscreen > .play-panel-footer { width: 100%; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 0 4px; border-radius: 0; background: transparent; }
.play-panel.is-fullscreen .play-panel-footer .scores { flex-wrap: nowrap; gap: 16px; }
.play-panel.is-fullscreen .play-panel-footer .score-card > span { font-size: 12px !important; }
.play-panel.is-fullscreen .play-panel-footer .score-card > strong { font-size: 19px !important; white-space: nowrap; }
.play-panel.is-fullscreen .play-panel-footer .status { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: 13px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

}

.fs-rotate-hint { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 48px); left: 50%; z-index: 5; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 28px); padding: 6px 6px 6px 14px; border-radius: 999px; background: rgb(8 14 30 / .88); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 22px rgb(0 0 0 / .3); transform: translateX(-50%); animation: fs-hint-in .25s ease-out; }
@keyframes fs-hint-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.fs-rotate-hint button { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 14px; cursor: pointer; }

@media (max-width: 560px) {
  .play-panel.is-fullscreen .play-live { display: none; }
  .play-panel.is-fullscreen > .play-panel-head { flex-wrap: wrap; row-gap: 8px; }
  .play-panel.is-fullscreen .play-panel-head .actions { order: 3; flex: 1 1 100%; margin: 0; }
  .play-panel.is-fullscreen .play-panel-head .play-button { flex: 1; min-height: 38px; font-size: 15px; }
  .play-panel.is-fullscreen .play-panel-footer .status { display: none; }
  .play-panel.is-fullscreen .play-panel-footer .scores { flex: 1; justify-content: space-between; }
}
@media (max-height: 520px) {
  .play-panel.is-fullscreen { gap: 6px; padding-block: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom)); }
  .play-panel.is-fullscreen .play-live, .play-panel.is-fullscreen .play-panel-identity > svg { display: none; }
  .play-panel.is-fullscreen > .play-panel-head { min-height: 34px; }
  .play-panel.is-fullscreen .play-panel-head .play-button { min-height: 34px; padding: 0 10px; font-size: 14px; }
  .play-panel.is-fullscreen .play-panel-head .fullscreen-button { width: 36px; height: 34px; }
  .play-panel.is-fullscreen .play-panel-labels strong { font-size: 16px; }
  .play-panel.is-fullscreen .play-panel-footer .score-card > strong { font-size: 16px !important; }
  .play-panel.is-fullscreen > .play-options { gap: 6px 10px; }
  .play-panel.is-fullscreen .play-options :is(select, button, .play-button) { min-height: 34px; }
}

.play-panel.is-fullscreen .play-panel-footer .score-card > span { color: rgb(255 255 255 / .82) !important; }
.play-panel.is-fullscreen .play-panel-footer .score-card > strong { color: #fecf40 !important; }

/* Oyun içi onay kartı (game-dialog.js): tarayıcı penceresi yerine oyun panelinin üstünde, oyunun renkleriyle. */
.game-confirm { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; border-radius: inherit; background: color-mix(in srgb, var(--frame, #0d1b4c) 72%, transparent); backdrop-filter: blur(5px); animation: game-confirm-fade .14s ease-out; }
.game-confirm.closing { opacity: 0; transition: opacity .14s ease-in; }
.game-confirm-card { width: min(100%, 380px); max-height: 100%; overflow: auto; padding: 24px 24px 22px; border-radius: 20px; background: var(--surface, #fffdf8); color: var(--ink, #0d1b4c); text-align: center; box-shadow: 0 18px 44px rgb(0 0 0 / .28); animation: game-confirm-pop .2s cubic-bezier(.2, 1.3, .4, 1); }
.game-confirm-kicker { margin: 0 0 6px; color: var(--accent, #f25a1d); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.game-confirm-card h2 { margin: 0 0 8px; color: var(--ink, #0d1b4c); font: 700 25px / 1.15 'Fredoka', sans-serif; }
.game-confirm-message { margin: 0 0 18px; color: var(--muted, #5b6072); font-size: 15px; line-height: 1.45; }
.game-confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.game-confirm-actions .play-button { flex: 1 1 130px; min-height: 46px; padding: 0 16px; font-size: 17px; }
.game-confirm-actions .play-undo { border-color: var(--line, #ddd6c6); background: #fff; color: var(--ink, #0d1b4c); }
.game-confirm-actions .play-button:focus-visible { outline: 3px solid var(--accent, #f25a1d); outline-offset: 3px; }
@keyframes game-confirm-fade { from { opacity: 0; } }
@keyframes game-confirm-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 420px) {
  .game-confirm-card { padding: 18px 16px 16px; }
  .game-confirm-card h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-confirm, .game-confirm-card { animation: none; }
  .game-confirm.closing { transition: none; }
}

/* Panel içi oyun menüsü, seçim çipleri ve sonuç kartı (game-flow.js). Mod seçimi, zorluk ve sonuç ayrı bir
   sayfa gibi değil, oyun panelinin içinde gösterilir. Vurgu rengi oyunun --menu-accent değişkeninden gelir. */
.play-panel .board-frame:has(> .game-menu) { display: grid; }

/* ---- Tek oyun sahnesi (game-stage.js) ---------------------------------------------------------------
   Kural: çerçevenin (.board-frame) boyunu YALNIZCA tahta belirler. Başlangıç, mola, sonuç ve menü katmanları
   mutlak konumludur, perdeyle tahtanın üstünde açılır, sığmazsa kendi içinde kayar; çerçeveyi asla uzatmaz.
   İki kip:
     layer — createStage(): oyunun kendi çerçeve düzenine dokunulmaz, sadece üstüne tek bir kart katmanı eklenir.
     flow  — createFlow(): menülü oyunlar; ekranlar aynı ızgara hücresinde, oyun ekranı hep sahnede.
   --stage-min: katmanın rahat sığması için çerçevenin alt yüksekliği (menülü oyunlar kendi CSS'inde büyütür). */
.play-panel .board-frame[data-stage-mode] { --stage-min: 280px; position: relative; min-height: var(--stage-min); }
.play-panel .board-frame[data-stage-mode='layer'] { align-content: center; }
.play-panel .board-frame[data-stage-mode='flow'] { --stage-min: max(360px, min(500px, calc(100svh - 230px))); display: grid !important; grid-template: minmax(0, 1fr) / minmax(0, 1fr) !important; place-items: stretch !important; gap: 0 !important; overflow: hidden; }
.board-frame[data-stage-mode='flow'] > [data-flow='stage'] { grid-area: 1 / 1 !important; align-self: center !important; min-width: 0; min-height: 0; }
@media (max-width: 560px) {
  .play-panel .board-frame[data-stage-mode='flow'] { --stage-min: max(360px, min(440px, calc(100svh - 230px))); }
}
/* Tam ekranda çerçeve boyunu sığdırma belirler; alt sınır ekrana sığmayı engellemesin (katman gerekirse içinde kayar). */
.play-panel.is-fullscreen .board-frame[data-stage-mode] { --stage-min: 0px; }

/* Katman: perde tüm çerçeveyi kaplar. */
.board-frame > [data-flow='overlay'] { position: absolute !important; inset: 0; z-index: 6; display: flex !important; flex-direction: column; justify-content: safe center; align-items: center; width: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: clamp(10px, 3%, 24px); overflow: auto; overscroll-behavior: contain; border-radius: inherit; background: color-mix(in srgb, var(--frame) 58%, transparent); backdrop-filter: blur(2.5px); box-shadow: none; animation: flow-veil .18s ease-out; container: flow-layer / size; }
.board-frame > [data-flow='overlay'].is-offstage { visibility: hidden; pointer-events: none; animation: none; }
.board-frame > [data-flow='overlay'] > * { flex: none; width: min(100%, 760px); }
@keyframes flow-veil { from { opacity: 0; } }

/* Tek tip kart: başlangıç, mola ve sonuç her oyunda aynı görünür. */
.board-frame > .game-result[data-flow='overlay'] { text-align: center; }
.stage-card, .board-frame > .game-result[data-flow='overlay'] > .flow-card { width: min(100%, 460px) !important; padding: 20px 22px 18px; border-radius: 20px; background: #fffefa; color: var(--ink); text-align: center; box-shadow: 0 18px 40px rgb(0 0 0 / .3); animation: game-result-rise .25s ease-out; }
.stage-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stage-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.stage-title { margin: 0; color: var(--ink); font: 700 28px / 1.1 'Fredoka', sans-serif; letter-spacing: -.01em; }
.stage-record { padding: 4px 10px; border-radius: 999px; background: #fecf40; color: #4a3200; font: 700 13px 'Fredoka', sans-serif; letter-spacing: .02em; animation: stage-record .5s cubic-bezier(.2, 1.4, .4, 1); }
.stage-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 30px; line-height: 1; }
.stage-stars span { color: #d9d3c4; }
.stage-stars span.on { color: #ffc01f; text-shadow: 0 2px 0 #c98a0c; }
.stage-copy { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* İstatistikler üçlü sıralar hâlinde ortalanır: 1, 2, 4 ya da 5 değer de düzgün durur. */
.stage-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.stage-stats > div { flex: 0 1 calc((100% - 16px) / 3); min-width: 0; display: grid; gap: 2px; padding: 9px 6px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, #fff); }
.stage-stats dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.stage-stats dd { margin: 0; color: var(--ink); font: 700 21px / 1.1 'Fredoka', sans-serif; font-variant-numeric: tabular-nums; }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.stage-actions .play-button, .board-frame > .game-result[data-flow='overlay'] .play-button { flex: 1 1 130px; min-height: 46px; padding: 0 14px; font-size: 17px; }
.stage-actions .play-undo { border-color: var(--line); background: #fff; color: var(--ink); }
.stage-card :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.stage-reopen { position: absolute; bottom: 10px; left: 50%; z-index: 5; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--frame) 88%, #000); color: #fff; font: 700 14px 'Fredoka', sans-serif; box-shadow: 0 6px 16px rgb(0 0 0 / .3); cursor: pointer; transform: translateX(-50%); }
.stage-reopen:hover { filter: brightness(1.15); }
@keyframes stage-record { from { transform: scale(.4); opacity: 0; } }

/* Sahne kısaysa (telefon, basık tahta) katmanlar sığacak kadar sıkılaşır. Ölçüt ekran değil sahnenin kendi boyudur. */
@container flow-layer (max-height: 640px) {
  .flow-card :is(.game-menu-copy, .harfle-menu-copy) { display: none; }
  .flow-card .game-kicker { margin-bottom: 4px; }
  .flow-card .game-settings { margin-top: 10px; gap: 8px 12px; }
  .flow-card .game-chips button { min-height: 34px; padding: 0 10px; font-size: 14px; }
  .flow-card .game-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .flow-card .game-mode { min-height: 0; padding: 11px 12px; border-radius: 14px; }
  .flow-card .game-mode::after, .flow-card .game-mode i { display: none; }
  .flow-card .game-mode-icon { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 10px; font-size: 16px; }
  .flow-card .game-mode strong { font-size: 16px; }
  .flow-card .game-mode small { margin-top: 3px; font-size: 11.5px; line-height: 1.3; }
}
@container flow-layer (max-height: 640px) and (max-width: 520px) {
  .board-frame > [data-flow='overlay'] .game-menu h2, .flow-card h2 { font-size: 24px; }
}
/* Kart kademeli sıkılaşır: en kalabalık kart (6 istatistik, yıldızlar, 3 düğme) en küçük tahtaya da sığar. */
@container flow-layer (max-height: 640px) {
  .stage-card, .board-frame > .game-result[data-flow='overlay'] > .flow-card { padding: 16px 18px 14px; }
  .stage-title { font-size: 24px; }
  .stage-stars { margin-top: 6px; font-size: 26px; }
  .stage-stats { gap: 6px; margin-top: 11px; }
  .stage-stats > div { padding: 7px 4px; border-radius: 11px; }
  .stage-stats dd { font-size: 18px; }
  .stage-actions { margin-top: 12px; }
  .stage-actions .play-button, .board-frame > .game-result[data-flow='overlay'] .play-button { min-height: 40px; font-size: 15px; }
}
/* Dar sahnede üç düğme varsa birincisi tam satır, diğerleri yan yana; sahne hem dar hem kısaysa hepsi tek satıra sığar. */
@container flow-layer (max-width: 420px) {
  .stage-actions { gap: 6px; }
  .stage-actions .play-button { flex: 1 1 40%; min-width: 0; padding: 0 10px; font-size: 15px; }
  .stage-actions .play-new:first-child:nth-last-child(n + 3) { flex-basis: 100%; }
}
@container flow-layer (max-width: 420px) and (max-height: 460px) {
  .stage-actions { flex-wrap: nowrap; }
  .stage-actions .play-button, .stage-actions .play-new:first-child:nth-last-child(n + 3) { flex: 1 1 0; padding: 0 8px; font-size: 14px; line-height: 1.1; white-space: normal; }
}
@container flow-layer (max-height: 460px) {
  .stage-card, .board-frame > .game-result[data-flow='overlay'] > .flow-card { padding: 12px 14px 11px; border-radius: 16px; }
  .stage-kicker { margin-bottom: 3px; font-size: 10px; }
  .stage-title { font-size: 20px; }
  .stage-record { padding: 2px 8px; font-size: 11.5px; }
  .stage-copy { margin-top: 5px; font-size: 13px; line-height: 1.3; }
  .stage-stars { margin-top: 3px; font-size: 20px; }
  .stage-stats { gap: 5px; margin-top: 8px; }
  .stage-stats > div { padding: 5px 4px; border-radius: 9px; }
  .stage-stats dt { font-size: 10px; }
  .stage-stats dd { font-size: 15px; }
  .stage-actions { gap: 6px; margin-top: 9px; }
  .stage-actions .play-button, .board-frame > .game-result[data-flow='overlay'] .play-button { min-height: 36px; font-size: 14px; }
}
@container flow-layer (max-height: 330px) {
  .stage-card, .board-frame > .game-result[data-flow='overlay'] > .flow-card { padding: 9px 12px 9px; }
  .stage-copy { display: none; }
  .stage-kicker { margin-bottom: 1px; }
  .stage-title { font-size: 18px; }
  .stage-stars { margin-top: 1px; font-size: 16px; }
  .stage-stats { gap: 4px; margin-top: 6px; }
  .stage-stats > div { gap: 0; padding: 3px 4px; }
  .stage-stats dd { font-size: 14px; }
  .stage-actions { margin-top: 7px; }
  .stage-actions .play-button, .board-frame > .game-result[data-flow='overlay'] .play-button { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .stage-card, .stage-record, .board-frame > [data-flow='overlay'] { animation: none; } }
.game-menu { padding: clamp(10px, 2vw, 22px); color: #fff; }
.game-kicker { margin: 0 0 8px; color: var(--menu-accent, #fecf40); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.game-menu h2 { margin: 0; font: 700 clamp(26px, 3.2vw, 40px) / 1.05 'Fredoka', sans-serif; letter-spacing: -.02em; }
.game-menu h2 em { color: var(--menu-accent, #fecf40); font-style: normal; }
.game-menu-copy { max-width: 48ch; margin: 10px 0 0; color: rgb(255 255 255 / .78); font-size: 15px; line-height: 1.5; }
.game-settings { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.game-setting { display: grid; gap: 7px; }
.game-setting > span { color: rgb(255 255 255 / .7); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.game-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgb(0 0 0 / .22); }
.game-chips button { min-width: 64px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: rgb(255 255 255 / .85); font: 700 16px 'Fredoka', sans-serif; cursor: pointer; }
.game-chips button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgb(0 0 0 / .15); }
.game-chips button:focus-visible, .game-mode:focus-visible { outline: 3px solid var(--menu-accent, #fecf40); outline-offset: 3px; }
.game-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: 20px; }
.game-mode { position: relative; display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 18px; border: 1px solid rgb(255 255 255 / .14); border-radius: 18px; background: #fffefa; color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.game-mode::after { position: absolute; right: -46px; bottom: -75px; width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 0 0 22px rgb(0 0 0 / .025), 0 0 0 45px rgb(0 0 0 / .02); content: ''; }
.game-mode:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 16px 34px rgb(0 0 0 / .22); }
.game-mode:disabled { opacity: .6; cursor: not-allowed; }
.game-mode-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); font-size: 22px; font-weight: 700; }
.game-mode strong { font: 700 22px 'Fredoka', sans-serif; letter-spacing: -.01em; }
.game-mode small { max-width: 240px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.game-mode i { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 13px; font-style: normal; font-weight: 800; }
.game-mode.is-featured { border-color: var(--menu-accent, #fecf40); background: color-mix(in srgb, var(--frame) 70%, #000); color: #fff; }
.game-mode.is-featured small { color: rgb(255 255 255 / .72); }
.game-mode.is-featured .game-mode-icon { background: rgb(255 255 255 / .12); color: var(--menu-accent, #fecf40); }
.game-mode.is-featured i { color: var(--menu-accent, #fecf40); }
.game-result { width: min(100%, 520px); margin: auto; padding: 20px 22px; border-radius: 18px; background: #fffefa; color: var(--ink); text-align: center; box-shadow: 0 12px 30px rgb(0 0 0 / .2); animation: game-result-rise .25s ease-out; }
.game-result .game-kicker { color: var(--accent); }
.game-result h2 { margin: 0 0 6px; font: 700 30px 'Fredoka', sans-serif; }
.game-result-copy { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.game-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.game-result-actions .play-button { flex: 1 1 150px; min-height: 46px; font-size: 17px; }
.game-result-actions .play-undo { border-color: var(--line); color: var(--ink); }
@keyframes game-result-rise { from { opacity: 0; transform: translateY(8px); } }
.play-panel.is-fullscreen .game-menu { max-height: calc(100dvh - 150px); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 760px) {
  .game-menu { padding: 8px 2px; }
  .game-modes { gap: 10px; }
  .game-mode { min-height: 0; padding: 14px 16px; }
  .game-mode-icon { width: 38px; height: 38px; margin-bottom: 10px; font-size: 19px; }
  .game-mode strong { font-size: 20px; }
  .game-settings { gap: 10px 16px; }
  .game-chips button { min-width: 54px; padding: 0 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .game-mode, .game-result { transition: none; animation: none; } }
