body { background: var(--bg); }
button, a { touch-action: manipulation; }
button, input, a { scroll-margin-top: 24px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline-color: #278960; }
.icon-button { min-width: 44px; height: 44px; background: #fff; }
.sign-in, .account-link { min-height: 44px; font-size: .875rem; }
.account-link { max-width: 170px; }
.account-link span { overflow: hidden; text-overflow: ellipsis; }
.progress-track { height: 5px; margin-top: 11px; background: #e9eeea; border-radius: 8px; overflow: hidden; }
.progress-track i { height: 100%; display: block; background: #42a47a; border-radius: inherit; }
.arcade-rule { height: 1px; background: var(--line); margin-top: 15px; }
.soft-button { font-size: .875rem; min-height: 46px; padding: 11px 17px; border-radius: 14px; font-weight: 600; }
.soft-button.primary:hover { background: #104c3a; }
.text-button { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.player-topline { margin-bottom: 21px; }
.back-link, .player-topline .soft-button { font-size: .875rem; }
.player-heading { margin-bottom: 22px; }
.player-heading h1 { font-size: 2rem; font-weight: 780; letter-spacing: -.05em; }
.player-actions { flex: none; gap: 8px; }
.journey-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #e8f0eb; padding: 15px 20px; border-radius: 17px; margin-bottom: 22px; }
.journey-strip > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; }
.journey-strip strong { font-size: 1rem; font-weight: 600; }
.journey-strip strong b { font-size: 1.4rem; font-variant-numeric: tabular-nums; margin-left: 4px; }
.journey-strip strong span, .journey-strip small { font-size: .8125rem; color: #607c6b; }
.journey-strip .soft-button { background: #fff; flex: none; }
.section-meter { height: 6px; background: #d2e0d6; width: 130px; flex: none; border-radius: 9px; overflow: hidden; }
.section-meter i { display: block; height: 100%; background: #279268; transition: width .3s; }
.player-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; }
.game-stage { border-radius: 24px; padding: 24px; min-height: 550px; box-shadow: 0 4px 16px #15392f04; }
.game-hud { gap: 26px; margin-bottom: 18px; padding-bottom: 16px; }
.game-hud span { font-size: .75rem; color: var(--muted); }
.game-hud strong { font-size: 1.75rem; font-weight: 720; letter-spacing: -.04em; }
.save-status { font-size: .75rem; max-width: 140px; color: #537c64; min-height: 44px; }
.play-status { font-size: .875rem; min-height: 24px; margin-bottom: 18px; flex-wrap: wrap; gap: 4px 12px; }
.status-main, .status-side { color: #52725f; opacity: 1; }
.board-wrap { max-width: 600px; }
.game-help { font-size: .875rem; color: #65776b; line-height: 1.75; margin-top: 22px; }
.game-tools { gap: 9px; margin-top: 24px; }
.game-tools .soft-button { min-height: 46px; font-size: .875rem; }
.player-aside { display: grid; gap: 16px; }
.objective-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 23px; }
.objective-card > p { font-size: 1rem; line-height: 1.7; word-break: keep-all; }
.objective-card > .text-button { margin-top: 14px; justify-content: flex-start; }
.star-guide { display: grid; gap: 6px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.star-guide > span { color: #a47b29; letter-spacing: 4px; }
.star-guide small { font-size: .8125rem; color: var(--muted); }
.music-card { border-radius: 20px; padding: 23px; background: #f1ede6; border-color: #e8e1d7; }
.music-card > strong { font-size: 1rem; color: #61513e; }
.music-card > span, .login-card p, .next-game strong { font-size: .875rem; }
.music-controls input { width: 100%; min-width: 0; height: 44px; accent-color: var(--pine); }
.login-card { font-size: .875rem; border-radius: 20px; }
.pause-layer { position: absolute; inset: 0; display: grid; place-items: center; background: #ffffffed; backdrop-filter: blur(12px); padding: 28px; z-index: 4; }
.pause-layer > div { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 390px; width: 100%; }
.pause-layer h2 { font-size: 1.75rem; letter-spacing: -.045em; margin: 8px 0 12px; }
.pause-layer p { font-size: 1rem; line-height: 1.7; color: #5d7667; word-break: keep-all; }
.start-badge { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--pine); color: var(--lime); font-size: 2rem; font-weight: 750; margin-bottom: 22px; }
.start-detail { margin: 16px 0 23px; font-size: .8125rem; color: #688271; }
.start-game { width: 100%; max-width: 270px; min-height: 54px; font-size: 1rem; }
.start-panel .text-button { margin-top: 7px; }
.pause-panel > .icon { width: 42px; height: 42px; color: #548968; }
.pause-panel .soft-button { margin-top: 22px; min-width: 190px; }
#game-root.is-complete > :not(.completion) { display: none; }
.completion.visible { display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; padding: 24px 8px; min-height: 380px; margin: 0; text-align: center; }
.result-top { flex-direction: column; gap: 16px; }
.result-mark { width: 76px; height: 76px; border-radius: 25px; background: #e4f0cf; color: #447435; }
.result-mark .icon { width: 32px; height: 32px; }
.result-top strong { font-size: 1.5rem; letter-spacing: -.04em; }
.result-stars { font-size: 1.5rem; color: #b28b35; letter-spacing: 8px; margin-top: 10px; }
.result-score { margin: 0; font-size: 2.2rem; color: #174e37; line-height: 1.3; font-weight: 780; }
.result-detail { margin: 12px 0 6px; font-size: .875rem; color: #66816e; }
.result-saving { font-size: .8125rem; line-height: 1.6; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 25px; max-width: 430px; }
.result-actions .primary { flex-basis: 100%; font-size: 1rem; min-height: 52px; }
.result-share { color: var(--pine); border-color: #94b7a1; }
#modal { width: min(590px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 28px; border-radius: 24px; }
.modal-top { gap: 14px; }
.modal-top h2 { font-size: 1.375rem; }
.setting-note, .setting-row, .setting-group > label { font-size: .875rem; }
.setting-row { gap: 16px; }
.journey-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 5px 0 16px; }
.journey-summary > span { font-size: .9375rem; }
.journey-summary > strong { font-size: 1.5rem; margin-left: auto; }
.journey-summary small { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.journey-summary .progress-track { flex-basis: 100%; margin: 0; height: 6px; }
.stage-legend { font-size: .875rem; color: var(--muted); margin: 0 0 20px; }
.chapter-list { display: grid; gap: 10px; }
.chapter { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fafcfb; }
.chapter summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 17px; cursor: pointer; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary > span:not(.chapter-number) { display: grid; gap: 2px; }
.chapter-number { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: #e7efe9; border-radius: 12px; font-size: .875rem; font-weight: 750; color: #437a58; }
.chapter summary strong { font-size: 1rem; font-weight: 700; }
.chapter summary small { font-size: .75rem; color: var(--muted); }
.chapter summary > b { font-size: .8125rem; font-weight: 550; margin-left: auto; white-space: nowrap; }
.chapter summary .icon { width: 17px; height: 17px; transition: transform .2s; }
.chapter[open] summary .icon { transform: rotate(180deg); }
.chapter .stage-picker { padding: 0 14px 14px; gap: 8px; grid-template-columns: repeat(5,minmax(0,1fr)); }
.stage-choice { min-height: 72px; padding: 11px 4px; justify-content: center; border-radius: 12px; background: #fff; }
.stage-choice b { font-size: 1.125rem; }
.stage-choice small { font-size: .75rem; display: flex; align-items: center; justify-content: center; min-height: 20px; letter-spacing: 0; }
.stage-choice small .icon { width: 14px; height: 14px; }
.stage-choice:disabled { opacity: 1; color: #87958d; background: #f0f3f1; border-color: transparent; }
.stage-choice.current { outline: 2px solid var(--pine); outline-offset: -2px; background: var(--pine); color: #fff; }
.stage-choice.current small { color: #e0edc4; }
.stage-choice.cleared:not(.current) { background: #e7f1e4; border-color: #cfe0c9; }
.help-content { display: grid; gap: 20px; font-size: 1rem; line-height: 1.8; }
.help-goal { font-weight: 700; color: var(--pine); }
.share-link-input { border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; }
.record-summary b { font-size: 2rem; }
.record-summary span, .record-row small { font-size: .8125rem; }
.record-row b, .record-game strong { font-size: 1rem; }
.auth-card input, .contact-form input, .contact-form textarea { font-size: 1rem; }
.field-note, .auth-links, .auth-check, .form-error { font-size: .875rem; }
.tile-grid { gap: 9px; }
.tile { border-radius: 14px; }
.palette-button { min-width: 44px; min-height: 44px; }
.direction-button { min-width: 52px; min-height: 52px; font-size: 1.2rem !important; }
.luma-controls { width: 100%; max-width: 600px; gap: 10px; }
.luma-controls button { min-height: 70px; border-radius: 16px; background: #edf0f8; color: #47567a; border: 1px solid #dce2ed; flex: 1; }
.luma-controls b { font-size: 1.65rem; }
.luma-controls span { font-size: .8125rem; }
.luma-controls button[data-cue] { background: #d8ebda; border-color: #6c9c73; box-shadow: 0 0 0 2px #91b88a40; }
.star-board circle { stroke-width: 5; }
@media (max-width: 1050px) {
  .player-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 20px; }
}
@media (max-width: 800px) {
  .player-layout { grid-template-columns: minmax(0,1fr); }
  .player-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .next-games { grid-column: 1/-1; }
  .objective-card { grid-column: 1/-1; }
  .objective-card .star-guide { display: flex; gap: 16px; align-items: center; }
  .objective-card .star-guide > span { flex: none; }
  .game-stage { min-height: 520px; }
}
@media (max-width: 600px) {
  .icon-button { height: 44px; min-width: 44px; }
  .sign-in { padding: 9px 13px; font-size: .875rem; }
  .account-link { max-width: 105px; padding: 7px 9px; }
  .account-link .icon { display: none; }
  .progress-track { margin-top: 12px; }
  .player-topline { margin-bottom: 18px; }
  .player-heading { gap: 12px; align-items: center; margin-bottom: 18px; }
  .player-heading h1 { font-size: 1.5rem; line-height: 1.3; overflow-wrap: anywhere; }
  .player-actions { gap: 5px; }
  .player-actions .icon-button { height: 44px; min-width: 44px; }
  .journey-strip { padding: 13px 14px; gap: 10px; margin-bottom: 16px; }
  .journey-strip > div:first-child { display: grid; gap: 1px; }
  .journey-strip strong { font-size: .875rem; }
  .journey-strip strong b { font-size: 1.25rem; }
  .journey-strip small { font-size: .75rem; }
  .journey-strip .soft-button { font-size: .875rem; padding: 10px 12px; }
  .journey-strip .soft-button > .icon { width: 16px; height: 16px; }
  .section-meter { width: 70px; }
  .game-stage { padding: 18px 13px; border-radius: 20px; min-height: 495px; }
  .game-hud { padding: 0 2px 12px; gap: 19px; margin-bottom: 16px; }
  .game-hud span, .save-status { font-size: .75rem; }
  .game-hud strong { font-size: 1.5rem; }
  .save-status { max-width: 110px; }
  .play-status { font-size: .8125rem; margin: 0 2px 14px; }
  .game-tools { gap: 8px; margin-top: 19px; padding-bottom: env(safe-area-inset-bottom); }
  .game-tools .soft-button { font-size: .875rem; padding: 10px 13px; }
  .game-help { font-size: .875rem; margin-top: 20px; }
  .player-aside { gap: 14px; }
  .objective-card { padding: 19px; }
  .music-card, .login-card { padding: 17px; }
  .music-card > strong { font-size: .9375rem; }
  .music-controls { flex-wrap: nowrap; gap: 8px; }
  .pause-layer { padding: 22px; }
  .pause-layer h2 { font-size: 1.5rem; }
  .pause-layer p { font-size: 1rem; }
  .start-badge { width: 64px; height: 64px; border-radius: 21px; font-size: 1.75rem; margin-bottom: 15px; }
  .start-detail { margin: 13px 0 20px; }
  .result-top strong { font-size: 1.375rem; }
  .result-score { font-size: 2rem; }
  .result-actions { gap: 8px; }
  .result-actions .soft-button { font-size: .875rem; }
  #modal { padding: 22px 18px; max-height: calc(100dvh - 24px); }
  .chapter summary { padding: 14px; gap: 11px; }
  .chapter .stage-picker { padding: 0 10px 12px; gap: 6px; }
  .stage-choice { min-height: 65px; }
  .stage-choice b { font-size: 1rem; }
  .stage-choice small { font-size: .75rem; }
  .journey-summary small { font-size: .75rem; }
  .record-summary { gap: 8px; }
  .record-summary b { font-size: 1.7rem; }
  .record-summary span { font-size: .8125rem; }
  .record-row { gap: 10px; }
  .record-row small { font-size: .75rem; }
  .record-row b, .record-game strong { font-size: .875rem; }
  .luma-controls { gap: 8px; }
  .luma-controls button { min-height: 72px; padding: 10px 5px; }
  .luma-controls b { font-size: 1.7rem; }
  .luma-controls span { font-size: .8125rem; }
  .tile-grid { gap: 7px; }
  .tile { border-radius: 10px; }
  .maze-grid { gap: 0; }
  .maze-grid .tile { border-radius: 0; }
  .direction-button { min-width: 52px; min-height: 52px; }
  .rain-grid .tile { min-height: 95px; }
  .palette-button { min-width: 44px; min-height: 44px; }
  .balance-slot { min-width: 32px; }
  .balance-slot small { font-size: .75rem; }
}
@media (max-width: 370px) {
  .player-heading { flex-wrap: wrap; }
  .player-actions { margin-left: auto; }
  .player-aside { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
[data-reduced="true"] *, [data-reduced="true"] *::before, [data-reduced="true"] *::after { transition: none !important; animation: none !important; }
.star-board circle.star-hit, .star-board circle.star-hit:active { fill: transparent; stroke: none; pointer-events: all; }
.luma-cue { flex-basis: 100%; text-align: center; min-height: 24px; font-size: .875rem; font-weight: 650; color: #486959; }
.account-link span { font-size: inherit; }
/* Strategy boards and arcade feedback. */
.bloom-dashboard { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; color: #4e7349; }
.bloom-dashboard > span { font-size: .75rem; font-weight: 650; letter-spacing: .08em; }
.bloom-turns { font-size: .875rem; font-variant-numeric: tabular-nums; }
.bloom-feedback { text-align: center; min-height: 28px; margin-bottom: 14px; color: #3c764e; font-size: .9375rem; font-weight: 700; }
.bloom-board { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; border-radius: 22px; padding: 14px; background: #e8eeda; max-width: 450px; margin: auto; }
.bloom-cell { aspect-ratio: 1; display: grid; place-items: center; padding: 0; border-radius: 15px; font-size: clamp(1.125rem, 4vw, 1.65rem); font-weight: 780; border: 2px solid transparent; transition: transform .14s, background .16s, box-shadow .16s; }
.bloom-cell:disabled { opacity: 1; cursor: default; }
.bloom-cell[data-rank="0"] { background: #f7faef; color: #c6d3af; font-weight: 400; }
.bloom-cell[data-rank="0"]:hover:not(:disabled) { background: #fff; border-color: #95b975; color: #629048; }
[data-rank="1"] { background: #d5e3a8; color: #3d613a; }
[data-rank="2"] { background: #a4c992; color: #315b35; }
[data-rank="3"] { background: #71b394; color: #164e3f; }
[data-rank="4"] { background: #488c7f; color: #fff; }
[data-rank="5"] { background: #3b686f; color: #fff; }
[data-rank="6"] { background: #66618c; color: #fff; }
[data-rank="7"] { background: #e4c371; color: #5d4716; }
.bloom-cell.bloom-preview { border-color: #487d4b; box-shadow: 0 0 0 2px #57885438; }
.bloom-pop { animation: merge-pop .28s ease-out; }
@keyframes merge-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.075); } 100% { transform: scale(1); } }
.bloom-hand { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.bloom-hand > span { font-size: .8125rem; font-weight: 650; letter-spacing: .04em; color: #647a51; }
.bloom-choices { display: flex; gap: 12px; }
.bloom-choice { width: 64px; height: 64px; border-radius: 18px; font-size: 1.5rem; font-weight: 750; border: 3px solid transparent; position: relative; }
.bloom-choice.selected { outline: 2px solid #296642; outline-offset: 4px; }
.bloom-choice.selected:after { content: '✓'; position: absolute; right: -7px; top: -7px; width: 23px; height: 23px; display: grid; place-items: center; color: white; background: #296642; border-radius: 50%; font-size: .75rem; }
.bloom-ladder { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.bloom-ladder span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; font-size: .75rem; font-weight: 700; }
.bloom-ladder small { color: #859479; font-size: .875rem; }
.luma-streak { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; flex-basis: 100%; background: #eef0f9; color: #565587; border: 1px solid #dcdff0; border-radius: 13px; padding: 11px 15px; }
.luma-streak strong { font-size: 1rem; }
.luma-streak span { font-size: .75rem; }
.cloud-combo { flex-basis: 100%; text-align: center; color: #427a73; background: #edf6ed; border: 1px solid #d7e6da; border-radius: 13px; padding: 10px 14px; font-size: .875rem; }
.risk-toggle[aria-pressed="true"] { background: #eee9f8; color: #675291; border-color: #bfaad9; }
@media (max-width: 600px) {
  .bloom-board { padding: 9px; gap: 6px; border-radius: 17px; }
  .bloom-cell { border-radius: 12px; font-size: 1.25rem; }
  .bloom-feedback { font-size: .875rem; }
  .bloom-hand { gap: 18px; }
  .bloom-ladder { gap: 4px; }
  .bloom-ladder span { width: 27px; height: 29px; }
  .luma-streak { padding: 10px 12px; }
  .luma-streak span { font-size: .75rem; }
}
[data-reduced="true"] .bloom-pop { animation: none; }
@media (prefers-reduced-motion: reduce) { .bloom-pop { animation: none; } }
.bloom-cell[data-rank="-1"] { background: #c8d0c2; color: #7b8974; font-weight: 450; border: 1px dashed #9aab91; }

/* Game Forest — a tactile arcade, with the games on the cover. */
@font-face { font-family: Gabarito; src: url('./fonts/Gabarito.woff2') format('woff2'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Forest Sans'; src: url('./fonts/ForestSans.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f7f8f2;
  --paper: #fff;
  --ink: #1e3028;
  --pine: #285c40;
  --muted: #69766c;
  --line: #e0e6db;
  --soft: #edf1e7;
  --lime: #d5f16b;
  font-family: Gabarito, 'Forest Sans', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans JP', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body { background: var(--bg); }
::selection { background: #d5f16b; color: #203c27; }
.site-header { background: var(--bg); border-bottom: 0; }
.header-inner { max-width: 1400px; padding: 23px 40px 21px; gap: 32px; }
.wordmark { line-height: 0; }
.wordmark img { width: 219px; height: 53px; }
.main-nav { margin: 0 auto; gap: 7px; padding: 5px; border: 1px solid #e2e7db; border-radius: 100px; background: #fff9; font-size: .875rem; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 100px; color: #697468; font-weight: 600; }
.main-nav a .icon { width: 17px; height: 17px; }
.main-nav a.active { background: #254f37; color: #fff; box-shadow: 0 2px 4px #203c2710; }
.main-nav a.active::after { display: none; }
.header-tools { gap: 8px; }
.header-tools .icon-button { width: 44px; height: 44px; min-width: 44px; border-color: transparent; background: transparent; }
.header-tools .icon-button:hover { background: #e9edde; }
.sign-in { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; background: var(--lime); color: #284329; font-size: .875rem; font-weight: 700; }
.account-link { min-height: 44px; max-width: 170px; font-size: .875rem; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 100px; }
.account-link span { font-size: inherit; overflow: hidden; text-overflow: ellipsis; }
.library-main, .player-main { max-width: 1400px; padding: 15px 40px 68px; }
.eyebrow { display: block; font-size: .75rem; font-weight: 750; letter-spacing: .12em; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.daily-collection { display: flex; align-items: center; gap: 20px; padding: 17px 22px; background: #edf0e6; border-radius: 20px; margin-bottom: 39px; }
.discovery-title { display: flex; align-items: center; gap: 11px; min-width: 164px; flex: none; }
.daily-symbol { width: 40px; height: 40px; border: 1px solid #cfd8bf; border-radius: 50%; display: grid; place-items: center; color: #637946; }
.daily-symbol .icon { width: 20px; height: 20px; }
.discovery-title h2 { font-size: .9375rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.4; }
.daily-date { display: block; color: #64705a; font-size: .75rem; margin-top: 3px; }
.discovery-games, .resume-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; flex: 1; }
.discovery-game { display: flex; align-items: center; gap: 11px; min-width: 0; border-radius: 12px; padding: 6px; transition: background .2s; }
.discovery-game:hover { background: #ffffffa3; }
.mini-art { flex: none; overflow: hidden; border-radius: 11px; width: 58px; height: 52px; background: var(--game-color); }
.mini-art canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.discovery-game > span { min-width: 0; display: grid; gap: 4px; }
.discovery-game strong { font-size: .875rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-game small { font-size: .6875rem; color: #697462; white-space: nowrap; }
.discovery-game > .icon { width: 16px; height: 16px; margin-left: auto; color: #67775a; }
.resume-collection { margin: 26px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-title h2 { font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em; }
.section-title > a { font-size: .8125rem; display: flex; align-items: center; gap: 7px; min-height: 40px; }
.section-title > a .icon { width: 16px; height: 16px; }
.resume-games .discovery-game { background: #fff; border: 1px solid var(--line); padding: 12px; }
.resume-games .mini-art { width: 70px; height: 52px; }
.resume-games .discovery-game strong { font-size: .9375rem; }
.game-collection { scroll-margin-top: 24px; }
.collection-heading { margin: 0 0 15px; gap: 18px; }
.collection-heading h1 { font-size: 1.7rem; letter-spacing: -.055em; font-weight: 780; white-space: normal; gap: 11px; }
.collection-count { display: inline-flex; align-items: center; justify-content: center; background: #e8eddf; color: #476137; min-width: 29px; height: 26px; padding: 0 8px; font-size: .8125rem; font-weight: 650; letter-spacing: 0; }
.search-box { border-radius: 100px; padding: 11px 17px; width: 248px; background: #fff9; border-color: #dde4d7; }
.search-box:focus-within { background: #fff; border-color: #618760; box-shadow: 0 0 0 3px #61876018; }
.search-box input { font-size: .875rem; }
.search-box input::placeholder { color: #6c786b; }
.filter-chips { gap: 8px; margin-bottom: 23px; flex-wrap: nowrap; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .8125rem; font-weight: 650; min-height: 40px; padding: 8px 16px; color: #65715f; background: transparent; border: 1px solid #dce3d5; }
.filter-chip .icon { width: 16px; height: 16px; }
.filter-chip.active { background: #e2efc3; border-color: #e2efc3; color: #365528; }
.filter-chip:hover:not(.active) { background: #eff2e8; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 21px; }
.game-card { background: transparent; border: 0; border-radius: 19px; box-shadow: none; overflow: visible; transition: none; }
.game-card:hover { transform: none; box-shadow: none; }
.game-link { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.card-art { position: relative; aspect-ratio: 1.48; border-radius: 19px; overflow: hidden; background: var(--game-color); isolation: isolate; }
.card-art canvas { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.3,1), filter .3s; }
.has-preview .card-art canvas { padding: 9px; }
.card-art::after { content: ''; position: absolute; inset: 0; border: 1px solid #163d2110; border-radius: inherit; pointer-events: none; }
.card-category { position: absolute; top: auto; bottom: 11px; left: 12px; font-size: .625rem; font-weight: 650; letter-spacing: .02em; line-height: 1.5; padding: 4px 9px; background: #fffffff2; color: #34463c; border-radius: 100px; }
.favorite-button { top: 9px; right: 9px; width: 40px; height: 40px; border: 0; background: #ffffffdc; color: #4d6951; box-shadow: 0 2px 7px #17382208; }
.favorite-button .icon { width: 18px; height: 18px; }
.favorite-button.is-favorite { background: #fff1ef; color: #bf665a; }
.favorite-button.is-favorite .icon { fill: #bf665a; }
.play-peek { width: 46px; height: 46px; position: absolute; inset: auto 13px 13px auto; background: #fff; color: #284e35; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; box-shadow: 0 4px 15px #15332612; }
.play-peek .icon { width: 18px; height: 18px; padding: 0; background: transparent; color: inherit; fill: currentColor; }
.card-copy { padding: 15px 2px 0; flex: 1; display: flex; flex-direction: column; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; }
.card-title-row h2 { font-size: 1.1rem; line-height: 1.35; font-weight: 780; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card-description { color: #697568; font-size: .8125rem; line-height: 1.6; margin: 6px 0 11px; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: keep-all; }
.card-record { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; color: #65735f; font-size: .75rem; margin-top: auto; }
.card-record > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.card-record .icon { width: 12px; height: 12px; }
.progress-track { height: 4px; margin-top: 10px; background: #e3e9db; border-radius: 10px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: #6d985a; border-radius: inherit; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e1e6da; padding-top: 10px; margin-top: 12px; }
.card-bottom > span { font-family: Gabarito, 'Forest Sans', sans-serif; font-size: .75rem; color: #667260; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-bottom b { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: #2e5a3b; font-weight: 750; flex: none; }
.card-bottom .icon { width: 15px; height: 15px; }
.empty-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 65px 24px; border: 1px dashed #cfd9c6; border-radius: 20px; background: #f0f3e9; font-size: 1rem; }
.empty-state > .icon { width: 36px; height: 36px; color: #5f8151; }
.site-footer { max-width: 1320px; display: flex; flex-wrap: wrap; align-items: center; margin: 0 auto; border-top: 1px solid #dae2d2; padding: 28px 0 24px; gap: 22px; color: #64745c; font-size: .75rem; }
.footer-brand { font-family: Gabarito, sans-serif; color: #2d5031; font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.055em; }
.footer-brand span { display: block; font-size: .6875rem; font-weight: 500; letter-spacing: .12em; margin-top: 4px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
.footer-share { font-size: .75rem; color: #365c3b; }
.footer-share .icon { width: 15px; height: 15px; }
.footer-copyright { flex-basis: 100%; font-size: .6875rem; color: #6d7966; }
.start-cover { width: 180px; height: 110px; overflow: hidden; border-radius: 20px; margin-bottom: 22px; flex: none; box-shadow: 0 8px 22px #214c2a0f; }
.start-cover canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.player-heading { padding-bottom: 3px; }
.player-heading h1, .pause-layer h2, .completion .result-score { font-weight: 800; }
.player-main .game-stage { box-shadow: 0 9px 30px #28452e05; }
.player-main .journey-strip { background: #e9efdf; border: 1px solid #dfe7d5; }
.player-main .music-card { background: #e9e8f3; border-color: #e0dff0; }
.player-main .music-card > strong { color: #514b70; }
.player-main .music-card > span { color: #625b7e; }
.player-main .start-game { border-radius: 100px; background: #2e5e3e; }
.player-main .start-game:hover { background: #234e31; }
.next-game canvas { width: 58px; height: 50px; border-radius: 11px; object-fit: cover; }
@media (hover: hover) {
  .game-card:hover .card-art canvas { transform: scale(1.045); }
  .game-card:hover .play-peek, .game-card:focus-within .play-peek { opacity: 1; transform: none; }
}
@media (min-width: 1450px) { .game-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .header-inner, .library-main, .player-main { padding-left: 28px; padding-right: 28px; }
  .header-inner { gap: 18px; }
  .main-nav a { padding-left: 13px; padding-right: 13px; }
  .header-tools { gap: 3px; }
  .daily-collection { gap: 15px; padding: 15px; }
  .discovery-title { min-width: 133px; }
  .daily-symbol { display: none; }
  .discovery-games { gap: 6px; }
  .discovery-game { gap: 8px; }
  .mini-art { width: 48px; height: 46px; }
  .discovery-game > .icon { display: none; }
  .game-grid { gap: 28px 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .site-footer { margin-left: 28px; margin-right: 28px; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  .header-tools { margin-left: auto; gap: 7px; }
  .main-nav { order: 3; width: 100%; justify-content: center; margin: 0; }
  .main-nav a { flex: 1; min-height: 42px; }
  body:has(.player-main) .main-nav { display: none; }
  .daily-collection { display: block; padding: 17px; margin-bottom: 30px; }
  .discovery-title { min-width: 0; gap: 9px; margin-bottom: 12px; }
  .daily-symbol { display: grid; width: 29px; height: 29px; }
  .daily-symbol .icon { width: 16px; height: 16px; }
  .discovery-title > div { display: flex; align-items: center; gap: 12px; width: 100%; }
  .daily-date { margin: 0 0 0 auto; font-size: .6875rem; }
  .discovery-games, .resume-games { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x proximity; padding-bottom: 3px; scrollbar-width: thin; }
  .discovery-game { flex: 0 0 215px; scroll-snap-align: start; padding: 5px; }
  .discovery-games .discovery-game { border-right: 1px solid #dce4d1; border-radius: 0; padding-right: 12px; }
  .discovery-games .discovery-game:last-child { border: 0; }
  .discovery-game .mini-art { width: 52px; height: 47px; }
  .discovery-game strong { font-size: .875rem; }
  .resume-games .discovery-game { flex-basis: 258px; }
  .resume-collection { margin: 22px 0; }
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px 15px; }
  .card-title-row h2 { font-size: 1rem; }
  .card-art { aspect-ratio: 1.24; }
  .card-description { font-size: .75rem; }
  .card-record { font-size: .75rem; }
  .card-bottom > span { display: none; }
  .card-bottom b { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .header-inner { padding: 17px 18px 14px; gap: 15px; }
  .wordmark img { width: 178px; height: auto; }
  .header-tools { gap: 3px; }
  .header-tools > [data-action='sound'] { display: none; }
  .header-tools .icon-button { width: 44px; min-width: 44px; }
  .sign-in { font-size: .8125rem; padding: 9px 15px; }
  .account-link { max-width: 100px; padding: 8px 10px; }
  .account-link .icon { display: none; }
  .main-nav { border-radius: 100px; padding: 4px; gap: 3px; }
  .main-nav a { font-size: .8125rem; padding: 8px 10px; min-height: 40px; gap: 7px; }
  .main-nav a .icon { width: 15px; height: 15px; }
  .library-main, .player-main { padding: 4px 16px 42px; }
  .daily-collection { padding: 15px; border-radius: 18px; margin-bottom: 29px; }
  .discovery-title h2 { font-size: .875rem; }
  .discovery-game { flex-basis: 210px; }
  .collection-heading { flex-wrap: wrap; gap: 15px; margin-bottom: 14px; }
  .collection-heading h1 { font-size: 1.5rem; }
  .collection-count { height: 24px; min-width: 26px; font-size: .75rem; }
  .search-box { width: 100%; padding: 11px 15px; }
  .search-box input { font-size: 1rem; }
  .filter-chips { gap: 6px; margin-bottom: 20px; }
  .filter-chip { flex: 1; min-height: 42px; padding: 8px 9px; font-size: .75rem; gap: 5px; white-space: nowrap; }
  .filter-chip .icon { width: 14px; height: 14px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px 13px; }
  .card-art { aspect-ratio: 1.12; border-radius: 16px; }
  .has-preview .card-art canvas { padding: 0; }
  .favorite-button { top: 4px; right: 4px; width: 44px; height: 44px; background: #ffffffdc; }
  .favorite-button .icon { width: 17px; height: 17px; }
  .card-category { left: 10px; bottom: 10px; font-size: .6875rem; padding: 4px 8px; }
  .card-copy { padding: 12px 1px 0; }
  .card-title-row h2 { font-size: .975rem; letter-spacing: -.045em; min-height: 2.6em; display: flex; align-items: center; }
  .card-description { display: none; }
  .card-record { flex-direction: row; font-size: .75rem; gap: 4px; margin-top: 7px; align-items: center; }
  .card-record .icon { display: none; }
  .card-bottom { padding-top: 9px; margin-top: 10px; }
  .card-bottom > span { display: none; }
  .card-bottom b { font-size: .8125rem; }
  .card-bottom .icon { width: 14px; }
  .site-footer { margin: 0 18px; padding: 25px 0 calc(22px + env(safe-area-inset-bottom)); gap: 18px; }
  .footer-brand { font-size: 1.6rem; }
  .footer-links { width: 100%; margin: 0; gap: 3px 18px; font-size: .75rem; }
  .footer-share { font-size: .75rem; }
  .footer-copyright { margin-top: 0; }
  .start-cover { width: 160px; height: 98px; margin-bottom: 18px; border-radius: 17px; }
  .player-main { padding-top: 10px; }
}
@media (max-width: 370px) {
  .header-inner { padding-left: 13px; padding-right: 13px; }
  .wordmark img { width: 150px; }
  .sign-in { padding-left: 12px; padding-right: 12px; }
  .library-main, .player-main { padding-left: 12px; padding-right: 12px; }
  .filter-chip { padding-left: 6px; padding-right: 6px; }
  .filter-chip .icon { display: none; }
}
@media (hover: none) { .game-card:hover .card-art canvas, .tile:hover:not(:disabled) { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
[data-reduced='true'] *, [data-reduced='true'] *::before, [data-reduced='true'] *::after { transition: none !important; animation: none !important; }

.record-row canvas { width: 68px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
@media (min-width: 801px) and (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .header-tools { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; }
  .main-nav a { flex: 1; }
  body:has(.player-main) .main-nav { display: none; }
}
@media (max-width: 600px) { .record-row canvas { width: 54px; height: 40px; } }
@media (max-width: 370px) { .record-row canvas { display: none; } }

/* A shared gameplay preview treatment for every featured game. */
.featured-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.feature-art { aspect-ratio: 360 / 220; background: var(--game-color); overflow: hidden; flex: none; }
.feature-art canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.feature-content { display: flex; flex-direction: column; flex: 1; padding: 21px 23px 22px; }
.feature-tag { font-size: .75rem; line-height: 1.5; color: var(--muted); margin-bottom: 9px; }
.feature-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.feature-title h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.feature-title > span { font-family: Gabarito, sans-serif; color: var(--muted); font-size: .8125rem; }
.feature-content p { font-size: .875rem; line-height: 1.6; color: var(--muted); margin: 8px 0 18px; word-break: keep-all; }
.feature-play { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin-top: auto; padding: 10px 17px; border-radius: 100px; background: var(--soft); color: var(--pine); font-size: .875rem; font-weight: 750; }
.feature-play > .icon:first-child { width: 12px; height: 12px; fill: currentColor; }
.feature-play > .icon:last-child { width: 16px; height: 16px; margin-left: 13px; }
.start-cover { background: var(--game-color); }
.start-cover canvas { object-fit: contain; }
@media (hover: hover) {
  .feature-card:hover { border-color: #b7cbae; }
  .feature-card:hover .feature-play { background: #e2efc3; }
}
@media (max-width: 1000px) {
  .featured-games { gap: 15px; }
  .feature-content { padding: 18px; }
  .feature-title h2 { font-size: 1.25rem; }
  .feature-title > span { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .featured-games { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(245px, 82%); gap: 13px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 8px; margin-bottom: 16px; }
  .feature-card { scroll-snap-align: start; border-radius: 19px; }
  .feature-content { padding: 17px 20px 19px; }
  .feature-title { display: flex; align-items: baseline; }
  .feature-title h2 { font-size: 1.3rem; }
  .feature-title > span { flex-basis: auto; }
  .feature-content p { font-size: .8125rem; margin-bottom: 14px; }
  .feature-tag { margin-bottom: 7px; }
}
