@font-face { font-family: Manrope; src: url('/fonts/manrope-variable.woff') format('woff'); font-style: normal; font-weight: 200 800; font-display: swap; }
:root { font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #183a2b; background: #faf8f2; font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; --green: #22553d; --ink: #183a2b; --muted: #626f62; --lime: #e7eece; --line: #dfe3d7; }
* { box-sizing: border-box; }
html { scroll-padding-bottom: calc(10em + env(safe-area-inset-bottom)); }
body { margin: 0; min-width: 0; font-size: 16px; }
h1, h2, h3, p { margin: 0; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #986324; outline-offset: 4px; }
[hidden] { display: none !important; }
.game-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.game-skip { position: fixed; top: -90px; left: 15px; z-index: 60; padding: 14px; background: var(--green); color: white; border-radius: 12px; }
.game-skip:focus { top: 10px; }
.game-shell { max-width: 1120px; margin: auto; padding: 0 32px calc(10em + env(safe-area-inset-bottom)); }
.game-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 82px; gap: 8px 14px; padding-block: 12px; }
.game-brand { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 9px; min-width: 0; max-width: 100%; min-height: 44px; }
.brand-mark { position: relative; display: block; flex: none; width: 46px; height: 42px; overflow: hidden; border-radius: 13px; background: #213b2c; }
.brand-mark img { position: absolute; width: 54px; height: 54px; max-width: none; left: -4px; top: -3px; clip-path: inset(0 0 24% 0); }
.brand-name { min-width: 0; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.65px; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.game-header [data-language-switch] { margin-left: auto; flex: none; }
/* Navigation is always text-labelled; it grows to two rows when text grows. */
.game-nav { position: fixed; z-index: 40; left: 50%; bottom: max(16px,env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: stretch; width: min(30em,calc(100% - 28px)); padding: 6px; border: 1px solid #ffffffc9; border-radius: 29px; background: #fffffff0; box-shadow: 0 5px 12px #1d1d1f08, 0 14px 42px #1d1d1f12; transform: translateX(-50%); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.game-nav a { display: flex; flex: 1 1 5.4em; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: min-content; min-height: 58px; padding: 8px 5px; border-radius: 23px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.game-nav a > svg { display: block; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.game-nav a[aria-current=page] { background: #e7eee9; color: var(--green); font-weight: 750; }
.nav-label { max-width: 100%; overflow-wrap: normal; word-break: normal; white-space: normal; hyphens: none; }
.game-heading { padding: 8px 0 18px; }
.game-eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: 1px; font-weight: 750; color: #5e775f; overflow-wrap: anywhere; }
.game-eyebrow > span { font-size: 17px; margin-right: 5px; }
.game-heading h1 { font-size: clamp(32px,4.6vw,50px); font-weight: 780; letter-spacing: -1.8px; line-height: 1.12; margin: 8px 0 10px; overflow-wrap: anywhere; }
.game-heading > p:last-child { max-width: 35em; color: var(--muted); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.game-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,1fr); gap: 24px; align-items: start; }
.game-stage { background: #fff; border: 1px solid #e4e8dc; padding: 22px; border-radius: 20px; min-width: 0; box-shadow: 0 8px 22px #31462e04; }
.game-stage-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.game-stage-top > div:first-child { flex: 1 1 9em; min-width: 0; }
.game-overline { font-size: 12px; line-height: 1.5; letter-spacing: .7px; color: #61745b; font-weight: 750; overflow-wrap: anywhere; }
.game-stage h2 { font-size: 17px; line-height: 1.4; letter-spacing: -.3px; margin-top: 5px; overflow-wrap: anywhere; }
.game-mode-switch { display: flex; max-width: 100%; padding: 4px; background: #eef2e8; border-radius: 23px; gap: 2px; }
.game-mode-switch button { min-height: 44px; min-width: 0; padding: 9px 13px; border: 0; background: transparent; color: #586a50; border-radius: 20px; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.game-mode-switch button.is-selected { background: white; color: var(--green); box-shadow: 0 1px 4px #233b3110; }
.game-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 20px 0 18px; }
.game-stats > p { display: flex; align-items: baseline; gap: 5px; }
.game-stats > p > span { font-size: 28px; font-weight: 760; letter-spacing: -.8px; min-width: 20px; font-variant-numeric: tabular-nums; }
.game-stats small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.game-no-rush { margin-left: auto; display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; line-height: 1.5; color: #5d6e54; overflow-wrap: anywhere; }
.game-no-rush > span { font-size: 21px; }
/* A grid overlay contributes to intrinsic height, so translated text/200% text cannot be clipped. */
.game-board-wrap { position: relative; isolation: isolate; display: grid; }
.game-board { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; align-content: start; }
.game-card { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; min-width: 0; min-height: 44px; padding: 4px; border: 1px solid #dfe7d5; border-radius: 16px; background: #eef3e7; isolation: isolate; transition: background .2s,border-color .2s,transform .18s; }
.game-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid #a7b99335; border-radius: 10px; pointer-events: none; }
.game-card-star { font-size: 34px; font-weight: 400; color: #789764; line-height: 1; }
.game-card-face { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; max-width: 100%; min-width: 0; }
.game-card-face svg { display: block; width: 54px; height: auto; max-width: 85%; flex: none; }
.game-card-face small { max-width: 100%; font-size: 12px; font-weight: 700; color: #405936; line-height: 1.3; overflow-wrap: anywhere; }
.game-card.is-open .game-card-star, .game-card.is-matched .game-card-star { display: none; }
.game-card.is-open .game-card-face, .game-card.is-matched .game-card-face { display: flex; }
.game-card.is-open { background: #fff8e8; border-color: #daba6e; }
.game-card.is-matched { background: #f0f6e6; border-color: #aac781; }
.game-card.is-matched::after { content: '✓'; position: absolute; top: 4px; right: 6px; color: #456d3c; font-size: 12px; font-weight: 800; }
.game-card.is-matched::before, .game-card.is-open::before { display: none; }
.game-start-panel { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 248px; padding: 20px 18px; text-align: center; border-radius: 18px; background: #fafcf3f2; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); box-shadow: inset 0 0 0 1px #dce6ce; }
.game-start-star { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 17px; background: #dfebc8; color: #6a843f; font-size: 34px; margin-bottom: 10px; transform: rotate(-7deg); }
.game-start-panel h3 { margin-bottom: 18px; max-width: 100%; font-size: 23px; letter-spacing: -.5px; line-height: 1.3; overflow-wrap: anywhere; }
.game-start-panel p { font-size: 16px; color: var(--muted); line-height: 1.55; margin: 9px 0 16px; overflow-wrap: anywhere; }
.game-start-panel small { font-size: 13px; color: #617159; margin-top: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.game-primary, .game-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 20px; border-radius: 16px; font-size: 16px; font-weight: 700; line-height: 1.5; max-width: 100%; border: 0; overflow-wrap: anywhere; transition: transform .2s,background .2s; }
.game-primary { background: var(--green); color: #fff; }
.game-primary:disabled { opacity: .6; }
.game-secondary { background: #edf2e5; color: var(--green); }
.game-status { font-size: 14px; line-height: 1.6; color: #596a4f; min-height: 2.5em; margin: 16px 0 0; overflow-wrap: anywhere; }
.game-progress-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; margin-top: 6px; }
.game-text-button { max-width: 100%; background: transparent; border: 0; color: var(--green); font-size: 14px; font-weight: 700; line-height: 1.5; min-height: 44px; padding: 10px 0; text-align: left; overflow-wrap: anywhere; }
.game-nickname { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.game-tray { padding: 12px 12px 10px; margin: 15px 0 0; border: 1px solid #e0e7d3; border-radius: 18px; background: #f4f7ed; }
.game-tray-foods { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 5px; }
.game-tray-food { display: grid; place-items: center; aspect-ratio: 1; background: #e9edde; border-radius: 10px; color: #637855; border: 1px solid transparent; }
.game-tray-food svg { width: 100%; height: auto; max-width: 38px; filter: grayscale(1); opacity: .35; transform: scale(.8); transition: opacity .2s,transform .2s; }
.game-tray-food.is-filled { background: #fff9e8; border-color: #ccdca3; }
.game-tray-food.is-filled svg { filter: none; opacity: 1; transform: scale(1); }
.game-tray > p { font-size: 13px; line-height: 1.5; color: #56684c; text-align: center; margin-top: 8px; overflow-wrap: anywhere; }
.game-side { display: grid; gap: 18px; min-width: 0; }
.game-ranking, .game-collection { border: 1px solid #dce2d3; border-radius: 20px; padding: 22px; background: #fafbf6; min-width: 0; }
.game-ranking-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-ranking-heading > div { min-width: 0; }
.game-ranking-heading h2 { font-size: 26px; letter-spacing: -.7px; font-weight: 740; line-height: 1.3; margin: 7px 0 10px; overflow-wrap: anywhere; }
.game-ranking-heading > span { font-size: 44px; color: #7e995e; }
.game-ranking-rule { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; overflow-wrap: anywhere; }
.game-leaderboard { list-style: none; padding: 0; margin: 0; }
.game-leaderboard li { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: baseline; gap: 3px 10px; padding: 13px 0; border-bottom: 1px solid #e4e8dc; }
.game-leaderboard li:first-child { padding-top: 0; }
.game-rank-number { grid-row: 1 / 3; font-size: 16px; font-weight: 800; color: #657b52; }
.game-leaderboard li:first-child .game-rank-number { color: #8a631f; }
.game-rank-name { font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.game-rank-result { grid-column: 2; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.game-ranking-empty { text-align: center; padding: 18px 4px 22px; color: #7c9364; }
.game-ranking-empty > span { display: block; font-size: 38px; font-weight: 300; margin-bottom: 12px; }
.game-ranking-empty p { font-size: 16px; color: #536b45; margin-bottom: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.game-ranking-empty small { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.game-fine-print { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 16px; overflow-wrap: anywhere; }
.game-collection { background: #fffdf4; }
.game-collection h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.5px; margin: 7px 0 18px; color: #405936; overflow-wrap: anywhere; }
.game-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.game-week-day { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.game-week-day > span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 11px; background: #f0f1e7; color: #a9b58e; font-size: 24px; border: 1px solid transparent; }
.game-week-day.is-today > span { border-color: #8fa167; }
.game-week-day.is-played > span { background: #e4edc8; color: #586f2f; }
.game-week-day > small { max-width: 100%; font-size: 12px; line-height: 1.5; color: #576b45; overflow-wrap: anywhere; }
.game-collection > p:not(.game-overline) { font-size: 14px; line-height: 1.7; margin-top: 16px; color: #526744; overflow-wrap: anywhere; }
.game-collection > small { display: block; font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 9px; overflow-wrap: anywhere; }
.game-return-note { display: flex; gap: 14px; background: #eaf0df; border-radius: 23px; padding: 22px; }
.game-return-note > span { font-size: 28px; color: #647f49; }
.game-return-note > div { min-width: 0; }
.game-return-note h2 { font-size: 18px; line-height: 1.4; margin-bottom: 7px; overflow-wrap: anywhere; }
.game-return-note p { font-size: 14px; color: #5d7150; line-height: 1.65; overflow-wrap: anywhere; }
.game-about { padding: 2px 8px; color: #596c4b; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.game-about summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-weight: 650; }
.game-about p { margin: 0 0 12px; }
.game-finish { text-align: center; padding: 26px 0 2px; border-top: 1px solid #e3e9da; margin-top: 12px; }
.game-finish-mark { font-size: 46px; line-height: 1; color: #7f9c50; margin-bottom: 12px; }
.game-finish h3 { font-size: 28px; letter-spacing: -.8px; line-height: 1.25; margin: 9px 0 12px; overflow-wrap: anywhere; }
.game-finish > p:not(.game-eyebrow):not(.game-fine-print) { font-size: 16px; line-height: 1.6; color: #5c7050; overflow-wrap: anywhere; }
.game-finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.game-personal-best { margin-top: 7px; color: var(--green) !important; font-weight: 650; }
.game-after-menu { display: block; min-height: 44px; border-top: 1px solid #e1e8d5; margin-top: 23px; padding-top: 19px; font-size: 14px; font-weight: 650; color: #4e7135; line-height: 1.6; overflow-wrap: anywhere; }
.game-after-menu span { margin-left: 10px; }
.game-challenge { display: flex; gap: 14px; align-items: center; padding: 18px 22px; margin: 0 0 22px; background: #e8efd9; border: 1px solid #cddcaa; border-radius: 21px; }
.game-challenge > span { font-size: 32px; color: #587a36; }
.game-challenge > div { min-width: 0; }
.game-challenge h2 { font-size: 18px; line-height: 1.4; margin-bottom: 5px; overflow-wrap: anywhere; }
.game-challenge p { font-size: 14px; line-height: 1.6; color: #536a41; overflow-wrap: anywhere; }
.game-finish .game-challenge-result { border-radius: 17px; background: #f0f4e5; padding: 13px 15px; margin-top: 15px; color: #45662d !important; }
.game-share-fallback { overflow-wrap: anywhere; margin: 12px 0; }
.game-share-fallback a { display: inline-block; min-height: 44px; padding-block: 8px; text-decoration: underline; font-size: 14px; line-height: 1.6; }
.game-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; padding: 30px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.game-footer > a { font-size: 14px; letter-spacing: .7px; font-weight: 800; color: #4b6841; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.game-noscript { margin: 20px; padding: 20px; background: white; font-size: 16px; line-height: 1.6; }
.game-noscript a { text-decoration: underline; }
@media (hover:hover) { .game-card:not(:disabled):hover { background: #e4edd8; transform: translateY(-2px); } .game-primary:hover { background: #193e2c; } .game-nav a:hover { background: #edf2e8; } }
.game-card:not(:disabled):active, .game-primary:active, .game-secondary:active { transform: scale(.97); }
@media (max-width:800px) {
  .game-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .game-shell { max-width: 620px; padding-inline: 22px; }
  .game-header { min-height: 76px; }
  .game-heading { padding: 8px 0 18px; }
  .game-heading h1 { font-size: 38px; letter-spacing: -1.2px; }
  .game-card-face svg { width: 58px; }
}
@media (max-width:440px) {
  .game-shell { padding-inline: 16px; }
  .game-heading { padding: 4px 0 16px; }
  .game-heading h1 { font-size: 34px; letter-spacing: -1px; }
  .game-stage { padding: 16px 14px; border-radius: 18px; }
  .game-stage h2 { font-size: 16px; }
  .game-stage-top { gap: 10px; }
  .game-mode-switch button { padding-inline: 11px; }
  .game-stats { gap: 6px 16px; margin: 16px 0; }
  .game-stats > p > span { font-size: 26px; }
  .game-no-rush { font-size: 12px; }
  .game-board { gap: 7px; }
  .game-card { border-radius: 12px; padding: 4px 3px; }
  .game-card::before { inset: 6px; border-radius: 8px; }
  .game-card-star { font-size: 28px; }
  .game-card-face { gap: 3px; }
  .game-card-face svg { width: 46px; }
  .game-card-face small { font-size: 11px; }
  .game-start-panel { min-height: 248px; padding: 18px 14px; }
  .game-start-panel h3 { font-size: 22px; }
  .game-start-panel p { font-size: 16px; }
  .game-tray { padding: 10px 8px; border-radius: 15px; }
  .game-tray-foods { gap: 3px; }
  .game-tray-food { border-radius: 7px; }
  .game-ranking, .game-collection { padding: 20px; border-radius: 18px; }
  .game-ranking-heading h2 { font-size: 24px; }
  .game-challenge { padding: 16px; }
  .game-finish h3 { font-size: 26px; }
}
@media (max-width:374px) {
  .brand-name { font-size: 16px; letter-spacing: -.5px; }
  .brand-mark { width: 42px; }
  .brand-mark img { left: -6px; }
  .game-brand { gap: 7px; }
  .game-stage { padding-inline: 12px; }
  .game-stage-top > div:first-child { flex-basis: 100%; }
  .game-board { gap: 6px; }
  .game-card-face svg { width: 42px; }
  .game-card-face small { font-size: 11px; }
  .game-week { gap: 3px; }
  .game-week-day > span { border-radius: 8px; font-size: 21px; }
  .game-ranking, .game-collection { padding: 18px; }
}
@media (max-height:450px) and (orientation:landscape) {
  .game-nav { bottom: 8px; padding: 4px; }
  .game-nav a { min-height: 48px; gap: 3px; padding-block: 6px; }
  .game-nav a > svg { width: 19px; height: 19px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .game-card:not(:disabled):hover, .game-card:not(:disabled):active, .game-primary:active, .game-secondary:active { transform: none; } }
@media (prefers-contrast:more) { .game-fine-print, .game-status, .game-ranking-rule, .game-stats small, .game-no-rush, .game-nickname { color: #3c532f; } .game-card { border-color: #647c53; } }
