/* 巷口遊樂所 — a warm, small place for a few good minutes. */
:root {
  color-scheme: light;
  --paper: #fcf9f3;
  --white: #fffdf9;
  --ink: #293d36;
  --muted: #738078;
  --coral: #ec775a;
  --coral-dark: #d86348;
  --mint: #b9d9c7;
  --mint-pale: #edf3e9;
  --line: #e7e8de;
  --honey: #f3e8ca;
  --shadow: 0 6px 22px rgba(53, 62, 44, .045), 0 1px 3px rgba(53, 62, 44, .025);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The four chapter games keep tangible rewards in the player's travel book. */
.collection-shelf{margin:22px 0 30px;border-top:1px solid var(--line);padding-top:20px}
.collection-shelf>h3{font-size:20px;margin-bottom:14px}
.collection-empty{margin:0;background:#f1f4eb;border:1px dashed #c5d2bd;border-radius:14px;padding:18px;color:#6c7f6b;font-size:14px;line-height:1.9}
.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.collection-card{display:flex;gap:12px;padding:14px 12px;border:1px solid #e2d8be;border-radius:14px;background:linear-gradient(145deg,#fffaf0,#eee8d4)}
.collection-card small{font-size:11px;letter-spacing:.06em;color:#9b8260}.collection-card h4{font-size:15px;line-height:1.4;margin:3px 0 5px}.collection-card p{font-size:12px;line-height:1.65;margin:0;color:#7b816f}
.collectible-mark{display:grid;place-items:center;width:43px;height:48px;flex:0 0 43px;border-radius:50% 50% 40% 40%;font-size:26px;color:#917046;background:linear-gradient(130deg,#f9e9b0,#d9b86b);border:2px solid #fff1bc;box-shadow:0 3px 0 #ba9961}
.collection-bubble .collectible-mark{background:linear-gradient(130deg,#e7f0c3,#a5c5a2);color:#426f56;border-color:#e7f1cf;box-shadow:0 3px 0 #82a187}
.collection-hoops .collectible-mark{background:linear-gradient(130deg,#f6d4ac,#de9974);color:#986049;border-color:#ffe7ce;box-shadow:0 3px 0 #b88065}
.result-collectibles{display:grid;gap:8px;margin:0 0 20px}.earned-collectible{padding:13px 15px;background:#f1ebd1;border:1px solid #e1d5aa;border-radius:12px;text-align:left}.earned-collectible strong{display:block;font-size:15px;color:#7c633d}.earned-collectible span{display:block;font-size:12px;color:#8b8067;line-height:1.7;margin-top:4px}
@media(max-width:520px){.collection-grid{grid-template-columns:1fr}.hero h1{font-size:45px}.hero-copy>p{font-size:15px}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; letter-spacing: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #5a9276; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
img { max-width: 100%; display: block; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { color: var(--ink); background: #d2e6d9; }

/* Shared actions */
.button, .control-button, .small-play, .icon-button, .text-button, .nav-button, .back-button, .dialog-link, .filter {
  border: 0; transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border: 1px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; white-space: normal; }
.button.coral { background: var(--coral); color: #fffdf9; box-shadow: 0 4px 0 rgba(155, 78, 54, .08); }
.button.dark { color: var(--white); background: var(--ink); }
.button.outline { border-color: #dbe1d7; background: transparent; color: var(--ink); }
.button.full { width: 100%; }
.button + .button.full { margin-top: 10px; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 0; background: transparent; color: #526b5d; font-size: 14px; font-weight: 650; }
.text-button svg { width: 19px; height: 19px; }
.text-button > span { font-size: 19px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #e6e8dd; border-radius: 50%; background: transparent; color: #5d7265; }
.sound-wave { display: none; }
.sound-slash { display: initial; }
.sound-on .sound-wave, .sound-switch[aria-pressed="true"] .sound-wave { display: initial; }
.sound-on .sound-slash, .sound-switch[aria-pressed="true"] .sound-slash { display: none; }
.control-button { min-height: 46px; min-width: 44px; border: 1px solid #dce3d9; border-radius: 11px; padding: 10px 15px; background: #fffdf8; color: #405b4c; font-size: 16px; font-weight: 650; line-height: 1.35; text-align: center; }
.control-button.primary { background: var(--coral); border-color: var(--coral); color: #fffdf9; box-shadow: 0 3px 0 rgba(155, 78, 54, .08); }
.control-button[aria-pressed="true"] { border-color: #88b39a; background: #dfeee1; color: #324d3d; }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.control-label { color: #738072; font-size: 14px; line-height: 1.5; }

/* A quiet shopfront */
.site-header { width: min(1230px, calc(100% - 64px)); min-height: 108px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: env(safe-area-inset-top); }
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; }
.brand > img { flex: 0 0 42px; }
.brand > span { font-size: 22px; font-weight: 800; letter-spacing: .035em; line-height: 1.3; }
.brand small { display: block; margin-top: 6px; font-size: 9px; font-weight: 600; letter-spacing: .16em; color: #849083; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 29px; }
.site-header nav > a, .nav-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; background: transparent; color: #5e7064; font-size: 14px; font-weight: 600; }
#home-view > main { width: min(1176px, calc(100% - 64px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 24px; min-height: 510px; padding: 27px 0 22px; }
.hero-copy { position: relative; z-index: 1; padding: 0 0 16px 12px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #81917e; font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .13em; }
.live-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: #8bb59a; box-shadow: 0 0 0 4px #e8f0e3; margin-right: 3px; }
.hero h1 { font-size: 64px; line-height: 1.25; font-weight: 800; letter-spacing: -.045em; margin: 22px 0 22px; }
.hand-underline { position: relative; display: inline-block; isolation: isolate; }
.hand-underline::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 6px; height: 14px; border-radius: 55% 35% 32% 45%; transform: rotate(-2deg); background: #e0e8c8; }
.hero-copy > p { margin-bottom: 26px; color: #7c877b; font-size: 17px; line-height: 1.95; letter-spacing: .025em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-actions .button { padding-inline: 27px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 28px; color: #8e9587; font-size: 13px; letter-spacing: .02em; }
.hero-note span + span::before { content: "·"; display: inline-block; margin: 0 10px; color: #bac2ad; }
.hero-art { position: relative; isolation: isolate; align-self: center; width: 100%; max-width: 620px; padding: 17px 0 5px; }
.hero-art > img { position: relative; z-index: 1; width: 100%; height: auto; }
.hero-art > img[src$="volley-hero.png"]{border-radius:35% 35% 18% 18% / 24% 24% 12% 12%;box-shadow:0 22px 45px #526b4020;border:9px solid #fffdf5;transform:rotate(-2deg)}
.orbit { position: absolute; border: 1px dashed #dedfc5; border-radius: 50%; z-index: -1; pointer-events: none; }
.orbit-one { inset: 39px 36px 29px 14px; transform: rotate(-15deg); }
.orbit-two { width: 77%; height: 71%; right: 5%; top: 12%; border-color: #e6e7d4; transform: rotate(26deg); }
.art-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: #7c8068; font-size: 12px; font-weight: 500; letter-spacing: .035em; background: rgba(252, 249, 243, .92); padding: 7px 12px; border: 1px solid #e8e5d8; border-radius: 9px; box-shadow: 0 4px 12px rgba(72, 78, 53, .035); white-space: nowrap; }
.label-top { top: 24px; right: 18px; transform: rotate(5deg); }
.label-bottom { bottom: 23px; left: 20px; transform: rotate(-4deg); }
.label-bottom > span { color: var(--coral); font-size: 17px; line-height: 1; }
.tiny-star { color: #d4ad63; font-size: 18px; }

/* The arcade catalogue */
.games-section { padding-top: 48px; scroll-margin-top: 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.section-heading .eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 9px; }
.section-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: 30px; letter-spacing: -.025em; line-height: 1.45; margin: 0; }
.count-tag { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #edf0e6; color: #8a967b; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.filters { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #ecebe2; border-radius: 12px; background: #f2f1e9; flex-shrink: 0; }
.filter { min-height: 40px; padding: 8px 15px; border-radius: 9px; color: #85907e; background: transparent; font-size: 13px; line-height: 1.5; font-weight: 550; white-space: nowrap; }
.filter.active, .filter[aria-pressed="true"] { color: #4f705b; background: #fffdf8; box-shadow: 0 2px 5px rgba(69, 81, 53, .06); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; align-items: stretch; }
.game-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid #e8e9df; border-radius: 19px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.game-cover { position: relative; display: block; width: 100%; min-height: 44px; padding: 0; border: 0; aspect-ratio: 1.6; overflow: hidden; cursor: pointer; isolation: isolate; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cover-bubble { background: #e8efe5; }
.cover-stack { background: #f4e4d5; }
.cover-packing { background: #ebe9d7; }
.cover-tag { position: absolute; z-index: 2; left: 18px; top: 17px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 253, 247, .8); color: #6a7b63; backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; line-height: 1.5; }
.cover-number { position: absolute; z-index: 2; right: 18px; bottom: 10px; color: rgba(73, 95, 64, .24); font-size: 33px; font-weight: 750; line-height: 1; letter-spacing: -.06em; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 23px 23px 19px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.card-title-row h3 { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 750; letter-spacing: -.015em; }
.duration { flex: 0 0 auto; color: #96a08b; font-size: 12px; white-space: nowrap; }
.card-body > p { margin: 13px 0 20px; color: #8a9383; font-size: 14px; line-height: 1.8; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 15px; margin-top: auto; border-top: 1px solid #edefe6; }
.best-label { color: #a0a791; font-size: 12px; line-height: 1.5; }
.small-play { min-width: 76px; min-height: 44px; flex-shrink: 0; padding: 9px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border-radius: 9px; color: #5d7c64; background: #f1f5eb; font-size: 14px; font-weight: 650; }
.small-play span { font-size: 9px; }

/* A daily page on the calendar, and a notebook below it */
.daily-strip { position: relative; isolation: isolate; display: flex; align-items: center; gap: 29px; padding: 27px 35px; margin-top: 39px; overflow: hidden; border: 1px solid #ebdfbf; border-radius: 18px; background: #f5edda; }
.calendar-card { position: relative; flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; padding: 10px 7px 8px; border: 1px solid #e6d9bb; border-radius: 11px; background: #fffaf0; box-shadow: 0 3px 0 #eadfc9, 0 8px 12px rgba(114, 100, 63, .07); transform: rotate(-5deg); }
.calendar-card::before, .calendar-card::after { content: ""; position: absolute; top: -5px; width: 5px; height: 13px; border-radius: 3px; background: #c6bca0; border: 1px solid #b9ad91; }
.calendar-card::before { left: 17px; }.calendar-card::after { right: 17px; }
.calendar-card > span { color: #b6a273; font-size: 12px; font-weight: 650; }
.calendar-card > strong { color: #b5a06d; font-size: 35px; line-height: 1.1; font-weight: 700; }
.calendar-card > small { margin-top: 1px; color: #c0b089; font-size: 10px; font-weight: 650; letter-spacing: .15em; }
.daily-copy { position: relative; flex: 1; min-width: 0; z-index: 1; }
.daily-copy .eyebrow { color: #b3a275; font-size: 11px; margin-bottom: 4px; }
.daily-copy h2 { font-size: 25px; color: #6c7655; line-height: 1.5; margin-bottom: 6px; letter-spacing: -.02em; }
.daily-copy p { margin-bottom: 0; color: #a29b7e; font-size: 13px; line-height: 1.75; }
.daily-strip > .button { position: relative; z-index: 1; background: #6d7e58; font-size: 14px; min-height: 46px; padding: 11px 24px; border-radius: 10px; }
.daily-decoration { position: absolute; z-index: -1; right: 151px; top: -35px; font-size: 160px; color: #e7dcb7; opacity: .45; line-height: 1; transform: rotate(-15deg); pointer-events: none; }
.journal-strip { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 23px 14px; }
.journal-icon { display: grid; place-items: center; flex: 0 0 49px; width: 49px; height: 49px; border-radius: 14px; color: #8ba188; background: #edf1e7; }
.journal-icon svg { width: 31px; height: 31px; stroke-width: 1.4; }
.journal-strip > div:nth-child(2) { flex: 1; }
.journal-strip h3 { margin-bottom: 3px; color: #798773; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.journal-strip p { margin-bottom: 0; color: #a2aa95; font-size: 13px; line-height: 1.7; }
.journal-strip > .text-button { color: #9aab89; font-size: 13px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; width: min(1230px, calc(100% - 64px)); margin: 49px auto 0; padding: 27px 0 max(34px, env(safe-area-inset-bottom)); border-top: 1px solid #e9ebdf; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: #839177; font-size: 15px; font-weight: 650; }
.footer-brand img { width: 28px; height: 28px; opacity: .8; }
.site-footer > p { flex: 1; margin: 0; color: #a7af9b; font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 20px; }
.site-footer button { min-height: 44px; border: 0; padding: 8px 0; background: transparent; color: #9da792; font-size: 12px; }
.site-footer > div > span { color: #bcc1af; font-size: 9px; letter-spacing: .11em; }

/* The game cabinet */
#play-view { min-height: 100dvh; padding-bottom: max(38px, env(safe-area-inset-bottom)); }
.play-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; width: min(1176px, calc(100% - 64px)); min-height: 109px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 18px; border-bottom: 1px solid var(--line); }
.back-button { justify-self: start; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px 8px 5px; background: transparent; border-radius: 10px; color: #6f8171; font-size: 14px; font-weight: 600; }
.back-button svg { width: 21px; height: 21px; }
.play-heading { text-align: center; }
.play-heading > span { display: block; color: #9aa58f; font-size: 12px; letter-spacing: .13em; }
.play-heading h1 { margin: 2px 0 0; font-size: 23px; line-height: 1.4; letter-spacing: .01em; font-weight: 750; }
.play-toolbar { display: flex; align-items: center; gap: 10px; justify-self: end; }
.play-layout { display: grid; grid-template-columns: 280px minmax(0, 620px); justify-content: center; align-items: start; gap: 49px; width: min(1060px, calc(100% - 64px)); margin: 38px auto 0; }
.game-aside { position: sticky; top: 35px; padding: 25px 10px 15px 4px; }
.game-aside > .eyebrow { margin-bottom: 17px; color: #a1ad94; font-size: 11px; }
.game-aside h2 { font-size: 31px; line-height: 1.45; margin-bottom: 15px; font-weight: 750; letter-spacing: -.025em; }
.game-aside > p { color: #8b9785; font-size: 15px; line-height: 1.9; margin-bottom: 27px; }
.tip-card { padding: 20px; border-radius: 16px; background: #edf1e5; border: 1px solid #e5ebda; }
.tip-card > span { color: #849673; font-size: 13px; font-weight: 700; }
.tip-card p { color: #8c9b7b; margin: 9px 0 0; font-size: 14px; line-height: 1.8; }
.aside-record { display: flex; align-items: center; justify-content: space-between; padding: 21px 2px 15px; margin-top: 9px; border-bottom: 1px solid #e8ebde; }
.aside-record > span { color: #8c9981; font-size: 14px; }
.aside-record > strong { color: #6f8a64; font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.game-aside > .text-button { color: #8b9b7c; margin-top: 8px; }
.aside-decoration { display: block; color: #e4e7d5; font-size: 100px; line-height: 1; transform: rotate(11deg); margin: 30px 0 0 27px; pointer-events: none; }
.game-machine { min-width: 0; width: 100%; max-width: 620px; border: 1px solid #e0e4d8; border-radius: 22px; background: #fffdf8; box-shadow: 0 12px 35px rgba(69, 82, 50, .055), 0 2px 4px rgba(69, 82, 50, .025); }
.game-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 89px; padding: 15px 22px 13px; }
.game-hud > div { display: flex; flex-direction: column; gap: 0; }
.game-hud > div > span { color: #91a082; font-size: 12px; line-height: 1.6; }
.game-hud strong { color: #4d674d; font-size: 32px; line-height: 1.25; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.game-hud .hud-secondary { text-align: right; }
.game-hud .hud-secondary strong { font-size: 23px; letter-spacing: -.025em; }
.mode-tag { padding: 5px 10px; border: 1px solid #e3e8d8; border-radius: 100px; background: #f4f7ee; color: #8b9f78; font-size: 12px; white-space: nowrap; }
.hud-progress-track { width: 100%; height: 4px; background: #e8eedf; overflow: hidden; }
#hud-progress { width: 0; height: 100%; max-width: 100%; background: #9aba8c; transition: width .25s ease; }
.canvas-wrap { position: relative; width: 100%; overflow: hidden; background: #f6eddc; isolation: isolate; }
#game-canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 560; outline-offset: -5px; touch-action: none; -webkit-user-select: none; user-select: none; }
.game-help { margin: 0; padding: 13px 18px 0; text-align: center; color: #8c9b7f; font-size: 14px; line-height: 1.65; min-height: 32px; }
.game-help:empty, .game-controls:empty { display: none; }
.game-controls { padding: 13px 17px 18px; }
.game-controls > .control-row { justify-content: center; }
.game-controls button { max-width: 100%; }
.game-toast, .global-toast { display: block; width: max-content; max-width: calc(100% - 32px); padding: 11px 17px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(42, 64, 49, .93); color: #fffdf6; box-shadow: 0 6px 22px rgba(31, 44, 30, .14); text-align: center; font-size: 14px; line-height: 1.55; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; backdrop-filter: blur(6px); }
.game-toast { position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translate(-50%, 7px); }
.global-toast { position: fixed; z-index: 100; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 7px); }
.game-toast.show, .game-toast.visible, .game-toast.is-visible, .game-toast[data-visible="true"], .global-toast.show, .global-toast.visible, .global-toast.is-visible, .global-toast[data-visible="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Dialogs stay scrollable on short screens. */
.game-dialog, .info-dialog { width: min(440px, calc(100vw - 32px)); max-width: 440px; max-height: min(90dvh, calc(100dvh - 32px)); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #e1e6d7; border-radius: 23px; color: var(--ink); background: #fffdf8; box-shadow: 0 30px 100px rgba(25, 51, 34, .2); scrollbar-width: thin; scrollbar-color: #d2dbc8 transparent; }
.game-dialog::backdrop, .info-dialog::backdrop { background: rgba(34, 56, 42, .39); backdrop-filter: blur(7px); }
.dialog-content { padding: 30px 31px 24px; text-align: center; }
.dialog-content > .eyebrow { justify-content: center; color: #9bab8d; font-size: 12px; }
.dialog-content h2 { font-size: 27px; line-height: 1.4; letter-spacing: -.025em; font-weight: 750; margin: 9px 0 12px; }
.dialog-description { margin: 0 0 21px; color: #899780; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.intro-symbol { display: grid; place-items: center; width: 87px; height: 87px; margin: 0 auto 18px; border-radius: 24px; background: #eef2e3; overflow: hidden; }
.intro-symbol img { width: 100%; height: 100%; object-fit: cover; }
.intro-symbol svg { width: 47px; height: 47px; color: #90a779; }
.intro-steps { counter-reset: steps; display: grid; gap: 11px; padding: 18px; margin: 0 0 21px; list-style: none; border: 1px solid #e7ebdf; border-radius: 14px; background: #f5f7ef; text-align: left; }
.intro-steps li { counter-increment: steps; position: relative; padding-left: 32px; color: #7c8f71; font-size: 16px; line-height: 1.6; }
.intro-steps li::before { content: counter(steps); content: counter(steps) / ""; position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e4ecd8; color: #8da172; font-size: 13px; font-weight: 700; }
.mode-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.mode-selector button { min-height: 70px; border: 1px solid #e2e7da; border-radius: 11px; padding: 10px 7px; color: #89987b; background: #fffdf8; font-size: 16px; font-weight: 650; text-align: center; line-height: 1.55; }
.mode-selector button small { display: block; margin-top: 3px; font-size: 13px; color: #a3ae95; font-weight: 400; }
.mode-selector .selected, .mode-selector [aria-pressed="true"] { border-color: #afc49a; background: #eef3e4; color: #668252; box-shadow: 0 0 0 1px rgba(174, 197, 151, .16); }
.mode-selector .selected small, .mode-selector [aria-pressed="true"] small { color: #8eaa74; }
.dialog-link { min-height: 44px; display: block; margin: 8px auto 0; padding: 10px 9px; color: #9ba78b; background: transparent; font-size: 14px; font-weight: 500; line-height: 1.5; }
.compact .dialog-content { padding-top: 34px; padding-bottom: 24px; }
.pause-art { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #f3eddb; margin: 0 auto 17px; font-size: 29px; line-height: 1; }
.result-stars { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 13px; color: #d5b468; font-size: 39px; line-height: 1.1; letter-spacing: 5px; }
.result-stars .empty, .result-stars .dim, .result-stars .off, .result-stars [data-filled="false"] { color: #dde3d2; }
.result-stars .filled, .result-stars .lit, .result-stars [data-filled="true"] { color: #d5b468; }
.result-score-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 19px 15px 20px; margin: 19px 0 15px; border: 1px solid #e4ead8; border-radius: 16px; background: #f1f5e9; }
.result-score-wrap > span { color: #93a27f; font-size: 14px; }
.result-score-wrap > strong { color: #66824d; font-size: 52px; font-weight: 750; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#result-record { display: inline-flex; padding: 3px 11px; margin-top: 3px; border-radius: 100px; background: #e6edce; color: #9aaa65; font-size: 13px; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; text-align: center; }
.result-metrics > div { min-width: 0; padding: 12px 8px; border: 1px solid #eaede2; border-radius: 11px; background: #fafbf5; }
.result-metrics span, .result-metrics dt { display: block; color: #a0ac91; font-size: 13px; line-height: 1.5; }
.result-metrics strong, .result-metrics dd { display: block; margin: 3px 0 0; color: #809668; font-size: 17px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.result-save-note { margin: 12px 0 0; color: #abb49d; font-size: 13px; line-height: 1.6; }

/* The notebook and small-print pages use the same readable dialog. */
.info-dialog { position: relative; padding: 31px 28px 25px; }
.close-dialog { position: absolute; top: 11px; right: 11px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #a0ae90; background: #f3f6eb; font-size: 28px; font-weight: 400; line-height: 1; }
.info-title { margin: 3px 30px 21px 0; color: #647d50; font-size: 26px; font-weight: 750; line-height: 1.5; letter-spacing: -.02em; }
.info-prose { color: #879a73; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.info-prose p { margin-bottom: 17px; }
.info-prose p:last-child { margin-bottom: 0; }
.info-prose h3 { margin: 24px 0 9px; color: #6b8753; font-size: 18px; line-height: 1.55; }
.info-prose ul, .info-prose ol { margin: 12px 0 20px; padding-left: 22px; }
.info-prose li + li { margin-top: 9px; }
.info-prose a { color: #bc7b55; text-decoration: underline; text-underline-offset: 3px; }
.info-prose strong { color: #637f4d; font-weight: 700; }
.records-summary { border: 1px solid #e4ebd6; border-radius: 13px; padding: 14px 16px; margin-bottom: 17px; background: #f0f5e7; color: #8ba26c; font-size: 16px; line-height: 1.7; }
.records-summary strong { color: #69844f; font-size: 20px; }
.records-list { display: grid; gap: 10px; margin: 15px 0; }
.record-row { display: grid; grid-template-columns: 61px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; padding: 13px 11px; border: 1px solid #e9edde; border-radius: 13px; background: #fdfef9; }
.record-art { display: grid; place-items: center; width: 61px; height: 61px; overflow: hidden; border-radius: 12px; background: #eef3e2; object-fit: cover; }
.record-art img { width: 100%; height: 100%; object-fit: cover; }
.record-details { min-width: 0; }
.record-details h3, .record-details > strong { display: block; margin: 0 0 3px; color: #6e8a54; font-size: 16px; line-height: 1.4; font-weight: 650; }
.record-details p, .record-details small, .record-details > span { display: block; margin: 0; color: #a4b393; font-size: 13px; line-height: 1.5; }
.record-score { color: #7a9a58; font-size: 24px; font-weight: 700; line-height: 1.4; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.record-score small { display: block; color: #b1bd9d; font-size: 12px; font-weight: 400; }
.record-stars, .record-details .record-stars { color: #c4b078; font-size: 14px; line-height: 1.5; letter-spacing: 2px; }
.storage-note { color: #a4b294; font-size: 14px; line-height: 1.75; margin: 16px 0; }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.data-actions button, .data-actions .button { min-height: 44px; flex: 1; padding: 10px 12px; border: 1px solid #e0e8d4; border-radius: 10px; background: #f3f7eb; color: #8b9f72; font-size: 14px; text-align: center; }
.data-actions .danger, .data-actions [data-action="clear-records"] { background: #fff8ee; border-color: #edddc8; color: #b09673; }
.share-fallback { display: block; width: 100%; min-height: 115px; padding: 12px; margin: 13px 0; border: 1px solid #dfe7d3; border-radius: 12px; background: #f7f9f1; color: #7b9561; font: inherit; font-size: 16px; line-height: 1.7; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-fallback textarea { width: 100%; min-height: 110px; border: 0; outline-offset: 3px; color: inherit; background: transparent; font-size: 16px; line-height: 1.7; resize: vertical; }
.loading-state { display: grid; place-items: center; min-height: 180px; padding: 28px; text-align: center; color: #91a576; font-size: 16px; line-height: 1.75; }
.loading-state::before { content: ""; width: 29px; height: 29px; border: 3px solid #e3ecd6; border-top-color: #a8be8e; border-radius: 50%; margin-bottom: 13px; animation: turn .8s linear infinite; }

@keyframes turn { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .button.coral:hover, .control-button.primary:hover:not(:disabled) { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); }
  .button.dark:hover { background: #415844; }
  .button.outline:hover, .control-button:hover:not(:disabled) { background: #eef4e7; }
  .text-button:hover, .nav-button:hover, .site-header nav > a:hover, .site-footer button:hover, .dialog-link:hover { color: #55763d; }
  .icon-button:hover, .back-button:hover { background: #edf3e5; }
  .filter:hover { color: #67894d; background: #f9fcf3; }
  .game-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(66, 87, 42, .075), 0 3px 6px rgba(66, 87, 42, .025); }
  .game-cover:hover img { transform: scale(1.035); }
  .small-play:hover { color: #5e813e; background: #e5efd7; }
  .close-dialog:hover { background: #e8f0dc; color: #799657; }
  .data-actions button:hover { background: #eaf2df; }
}
button:active:not(:disabled), .button:active { transform: translateY(1px); }
.game-cover:focus-visible { outline-offset: -6px; }

/* Keep the desktop proportions comfortable on smaller laptops. */
@media (max-width: 1100px) {
  .site-header, .site-footer, .play-header { width: calc(100% - 48px); }
  #home-view > main { width: calc(100% - 48px); }
  .hero { gap: 10px; min-height: 450px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: 57px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { gap: 17px; }
  .hero-art { padding-top: 26px; }
  .label-top { top: 17px; right: 0; }
  .label-bottom { left: 4px; bottom: 10px; }
  .game-grid { gap: 17px; }
  .card-body { padding: 19px 17px 16px; }
  .card-title-row { flex-wrap: wrap; gap: 3px 8px; }
  .card-title-row h3 { font-size: 20px; }
  .card-bottom { flex-wrap: wrap; }
  .small-play { margin-left: auto; }
  .filters { gap: 0; }
  .filter { padding-inline: 11px; }
  .play-layout { width: calc(100% - 48px); grid-template-columns: 240px minmax(0, 620px); gap: 28px; }
  .game-aside h2 { font-size: 29px; }
  .site-footer { column-gap: 17px; }
  .site-footer > div { gap: 16px; }
  .site-footer > div > span { display: none; }
}

@media (max-width: 850px) {
  .site-header nav { gap: 18px; }
  .hero { min-height: 430px; }
  .hero h1 { font-size: 51px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { gap: 11px; }
  .hero-actions .button { padding-inline: 19px; }
  .hero-actions .text-button { font-size: 13px; }
  .art-label { font-size: 11px; padding: 6px 8px; }
  .hero-note { font-size: 12px; }
  .hero-note span + span::before { margin-inline: 7px; }
  .section-heading { flex-wrap: wrap; gap: 15px; }
  .section-heading h2 { font-size: 28px; }
  .card-body { padding: 18px 14px 14px; }
  .card-title-row h3 { font-size: 19px; }
  .card-body > p { font-size: 13px; }
  .card-body > p br { display: none; }
  .cover-tag { left: 12px; top: 12px; font-size: 11px; padding: 4px 7px; }
  .daily-strip { padding: 24px; gap: 21px; }
  .daily-copy h2 { font-size: 23px; }
  .daily-strip > .button { padding-inline: 17px; }
  .journal-strip { padding-inline: 4px; }
  .play-layout { grid-template-columns: 192px minmax(0, 620px); gap: 22px; }
  .game-aside { padding-top: 18px; }
  .game-aside h2 { font-size: 26px; }
  .game-aside > p { font-size: 14px; }
  .tip-card { padding: 16px; }
  .game-hud { padding-inline: 17px; }
  .game-controls { padding-inline: 12px; }
}

/* Phones get one clear column, with the full controls below the canvas. */
@media (max-width: 680px) {
  html { scroll-padding-top: 16px; }
  .site-header, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 12px; }
  .brand { gap: 9px; }
  .brand > img { width: 37px; height: 37px; flex-basis: 37px; }
  .brand > span { font-size: 19px; }
  .brand small { font-size: 7px; letter-spacing: .1em; margin-top: 4px; }
  .site-header nav { gap: 12px; }
  .site-header nav > a { display: none; }
  .nav-button { font-size: 13px; }
  .site-header .icon-button { width: 40px; height: 44px; flex-basis: 40px; border: 0; }
  #home-view > main { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 2px; padding: 27px 0 0; min-height: 0; }
  .hero-copy { padding: 0 4px; }
  .hero-copy > .eyebrow { font-size: 11px; }
  .hero h1 { font-size: 48px; line-height: 1.27; letter-spacing: -.04em; margin: 21px 0 18px; }
  .hand-underline::after { bottom: 5px; height: 11px; }
  .hero-copy > p { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
  .hero-actions { gap: 21px; }
  .hero-actions .button { min-height: 48px; padding-inline: 24px; font-size: 15px; }
  .hero-actions .text-button { font-size: 14px; }
  .hero-note { margin-top: 23px; font-size: 12px; }
  .hero-art { width: min(100%, 470px); margin: 10px auto 0; padding: 20px 1px 8px; }
  .art-label { font-size: 11px; }
  .label-top { top: 17px; right: 7px; }
  .label-bottom { left: 4px; bottom: 18px; }
  .orbit-one { inset: 36px 25px 26px 13px; }
  .games-section { padding-top: 34px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .section-heading h2 { gap: 10px; font-size: 26px; }
  .count-tag { padding: 4px 7px; font-size: 11px; }
  .filters { display: flex; width: 100%; max-width: 460px; margin-top: 18px; padding: 4px; }
  .filter { flex: 1; min-height: 44px; padding-inline: 7px; font-size: 13px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 480px; margin: 0 auto; }
  .game-card { border-radius: 18px; }
  .game-cover { aspect-ratio: 1.55; }
  .cover-tag { left: 17px; top: 17px; font-size: 12px; padding: 5px 10px; }
  .cover-number { font-size: 34px; bottom: 13px; }
  .card-body { padding: 22px 22px 17px; }
  .card-title-row { flex-wrap: nowrap; }
  .card-title-row h3 { font-size: 22px; }
  .duration { font-size: 13px; }
  .card-body > p { font-size: 14px; margin: 12px 0 18px; }
  .card-body > p br { display: initial; }
  .card-bottom { flex-wrap: nowrap; padding-top: 13px; }
  .best-label { font-size: 13px; }
  .small-play { min-width: 80px; }
  .daily-strip { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 19px 17px; margin-top: 28px; padding: 23px 20px; border-radius: 17px; }
  .calendar-card { width: 66px; flex-basis: 66px; }
  .daily-copy .eyebrow { font-size: 10px; }
  .daily-copy h2 { font-size: 21px; margin-bottom: 5px; }
  .daily-copy p { font-size: 13px; line-height: 1.7; }
  .daily-strip > .button { grid-column: 1 / -1; width: 100%; min-height: 46px; font-size: 15px; }
  .daily-decoration { font-size: 150px; right: -23px; top: 43px; opacity: .25; }
  .journal-strip { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 13px; padding: 24px 1px 0; margin-top: 11px; }
  .journal-icon { width: 44px; height: 46px; border-radius: 12px; }
  .journal-strip h3 { font-size: 15px; }
  .journal-strip p { font-size: 13px; }
  .journal-strip > .text-button { justify-self: start; grid-column: 2; min-height: 44px; margin-top: -7px; font-size: 14px; }
  .site-footer { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 37px; padding-top: 23px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .footer-brand { font-size: 14px; }
  .site-footer > p { margin-left: 36px; font-size: 12px; }
  .site-footer > div { flex-wrap: wrap; gap: 0 20px; margin-top: 13px; }
  .site-footer button { font-size: 13px; }
  #play-view { padding-bottom: max(25px, env(safe-area-inset-bottom)); }
  .play-header { width: calc(100% - 28px); min-height: 86px; gap: 7px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 11px; grid-template-columns: 64px minmax(0, 1fr) 92px; }
  .back-button { min-width: 44px; padding: 8px 4px; justify-content: flex-start; font-size: 13px; gap: 0; }
  .back-button > span { font-size: 0; }
  .back-button > span::after { content: "返回"; font-size: 13px; }
  .play-heading > span { font-size: 10px; letter-spacing: .09em; }
  .play-heading h1 { font-size: 20px; white-space: nowrap; }
  .play-toolbar { gap: 4px; }
  .play-toolbar .icon-button { width: 44px; height: 44px; flex-basis: 44px; border: 0; }
  .play-layout { display: block; width: calc(100% - 24px); max-width: 620px; margin: 17px auto 0; }
  .game-aside { display: none; }
  .game-machine { border-radius: 17px; box-shadow: 0 7px 22px rgba(70, 93, 39, .04); }
  .game-hud { min-height: 79px; padding: 12px 16px 10px; gap: 9px; }
  .game-hud > div > span { font-size: 12px; }
  .game-hud strong { font-size: 29px; }
  .game-hud .hud-secondary strong { font-size: 21px; }
  .mode-tag { font-size: 11px; padding: 4px 8px; }
  .game-help { padding: 12px 12px 0; font-size: 14px; line-height: 1.6; }
  .game-controls { padding: 12px 10px 15px; }
  .control-button { padding: 10px; font-size: 15px; }
  .control-label { font-size: 13px; }
  .game-toast { max-width: calc(100% - 22px); bottom: 12px; padding: 9px 13px; font-size: 13px; }
  .global-toast { bottom: max(18px, env(safe-area-inset-bottom)); }
  .dialog-content { padding: 27px 24px 21px; }
  .game-dialog, .info-dialog { border-radius: 20px; }
  .dialog-content h2 { font-size: 25px; }
  .dialog-description { font-size: 16px; }
  .intro-symbol { width: 75px; height: 75px; margin-bottom: 15px; border-radius: 21px; }
  .intro-steps { padding: 15px; gap: 10px; }
  .intro-steps li { font-size: 16px; }
  .result-stars { font-size: 36px; }
  .info-dialog { padding: 28px 21px 22px; }
  .info-title { font-size: 25px; }
  .record-row { grid-template-columns: 55px minmax(0, 1fr) auto; gap: 9px; padding: 12px 9px; }
  .record-art { width: 55px; height: 55px; }
  .record-score { font-size: 22px; }
  .record-details h3, .record-details > strong { font-size: 15px; }
}

@media (max-width: 380px) {
  .site-header, .site-footer, #home-view > main { width: calc(100% - 32px); }
  .brand > span { font-size: 17px; }
  .brand > img { width: 34px; height: 34px; flex-basis: 34px; }
  .brand small { font-size: 6px; }
  .site-header nav { gap: 6px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { gap: 14px; }
  .hero-actions .button { padding-inline: 20px; }
  .hero-actions .text-button { font-size: 13px; }
  .hero-actions .text-button svg { width: 17px; }
  .hero-note { font-size: 11px; }
  .section-heading h2 { font-size: 24px; }
  .card-body { padding-inline: 17px; }
  .card-title-row h3 { font-size: 20px; }
  .duration { font-size: 12px; }
  .best-label { font-size: 12px; }
  .daily-copy h2 { font-size: 20px; }
  .daily-strip { padding-inline: 17px; gap: 17px 13px; }
  .play-heading h1 { font-size: 18px; }
  .play-header { grid-template-columns: 53px minmax(0, 1fr) 88px; }
  .game-hud { padding-inline: 12px; }
  .mode-tag { font-size: 10px; padding-inline: 6px; }
  .dialog-content { padding-inline: 20px; }
  .mode-selector { gap: 7px; }
  .mode-selector button small { font-size: 12px; }
  .record-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; }
  .record-art { width: 46px; height: 49px; }
  .record-score { font-size: 20px; }
}

/* Runtime states and the notebook's actual markup. */
body.playing { background: #f7f8f0; }
.result-stars > span { color: #dce3d2; }
.result-stars > .earned { color: #c5a052; }
.records-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: center; }
.records-summary > div + div { border-left: 1px solid #dce5ce; }
.records-summary strong, .records-summary span { display: block; }
.records-summary strong { font-size: 25px; line-height: 1.4; }
.records-summary strong small { font-size: 13px; font-weight: 400; }
.records-summary span { font-size: 13px; }
.record-score > strong { display: block; font-size: inherit; font-weight: 700; }
.record-score > span { display: block; font-size: 13px; font-weight: 400; }
.data-actions .dialog-link { margin: 0; }

/* Essential copy stays readable against the soft, light surfaces. */
.hero-copy > p, .card-body > p, .journal-strip p, .game-aside > p, .tip-card p,
.dialog-description, .intro-steps li, .info-prose, .storage-note, .game-help,
.result-save-note, .control-label { color: #66765f; }
.eyebrow, .section-heading .eyebrow, .daily-copy .eyebrow, .game-aside > .eyebrow,
.dialog-content > .eyebrow, .hero-copy > .eyebrow, .art-label, .cover-tag, .count-tag,
.duration, .best-label, .daily-copy p, .hero-note, .site-footer > p, .site-footer button,
.play-heading > span, .game-hud > div > span, .mode-tag { font-size: 13px; }
.eyebrow, .duration, .best-label, .hero-note, .site-footer > p, .site-footer button,
.play-heading > span, .game-hud > div > span, .mode-tag, .dialog-link,
.record-details small, .record-score > span, .records-summary span { color: #728164; }
.daily-copy p { color: #7c775e; }
.intro-steps li, .dialog-description, .info-prose { font-size: 16px; }
.mode-selector button small { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Twenty-game collection: the same shopfront, with room to explore. */
.hero { min-height: 455px; padding-block: 20px 32px; }
.hero h1 { font-size: clamp(46px, 4.8vw, 64px); }
.highlight-grid { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(0,1fr); gap:22px; margin-top:18px; }
.featured-game { position:relative; isolation:isolate; min-height:294px; display:flex; align-items:center; overflow:hidden; border:1px solid #cbdccf; border-radius:22px; background:#e4eee4; }
.featured-copy { position:relative; z-index:2; padding:30px 0 30px 30px; width:51%; }
.feature-label { display:inline-flex; color:#5c8069; font-size:13px; font-weight:750; letter-spacing:.08em; margin-bottom:8px; }
.featured-copy h2 { font-size:36px; letter-spacing:-.04em; margin:0 0 10px; color:#293d36; }
.featured-copy > p { font-size:15px; color:#587464; line-height:1.8; margin-bottom:12px; }
.feature-tags { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:19px; }
.feature-tags span { padding:4px 8px; color:#547261; background:#fffdf8a8; border:1px solid #c8dccb; border-radius:6px; font-size:12px; }
.featured-copy .button { min-height:46px; background:#355b49; border-color:#355b49; padding:10px 21px; font-size:15px; }
.featured-art { display:grid; place-items:center; align-self:stretch; width:49%; padding:0; border:0; background:transparent; overflow:hidden; }
.featured-art img { width:132%; max-width:none; height:100%; object-fit:contain; }
.featured-art img[src$="volley-chapter.png"]{width:100%;object-fit:cover;object-position:65% center}
.highlight-grid .daily-strip { display:grid; grid-template-columns:66px minmax(0,1fr); gap:12px 17px; align-content:center; margin:0; padding:25px; border-radius:22px; }
.highlight-grid .calendar-card { width:66px; min-width:66px; grid-column:1; grid-row:1/3; }
.highlight-grid .daily-copy { grid-column:2; }
.highlight-grid .daily-copy .eyebrow { font-size:12px; letter-spacing:0; }
.highlight-grid .daily-copy h2 { font-size:21px; line-height:1.5; }
.highlight-grid .daily-copy p { font-size:14px; line-height:1.65; }
.highlight-grid .daily-strip > .button { grid-column:1/-1; width:100%; margin:3px 0 0; }
.highlight-grid .daily-decoration { right:-12px; top:5px; font-size:180px; }
.catalog-count { flex-shrink:0; font-size:14px; color:#718374; font-variant-numeric:tabular-nums; padding-bottom:4px; }
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:-3px 0 25px; }
.catalog-toolbar .filter { min-height:44px; font-size:14px; padding-inline:16px; }
.catalog-search-wrap { display:flex; align-items:center; gap:8px; flex:0 1 290px; min-width:180px; min-height:50px; padding:0 12px; background:#fffefa; border:1px solid #dde4d9; border-radius:12px; }
.catalog-search-wrap > svg { flex:0 0 20px; width:20px; height:20px; color:#879989; }
.catalog-search-wrap input { width:100%; min-width:0; border:0; outline:none; background:transparent; font-size:16px; color:#293d36; padding:12px 0; }
.catalog-search-wrap input::placeholder { color:#8c9a8b; }
.catalog-search-wrap:focus-within { outline:2px solid #83ab94; outline-offset:2px; }
.catalog-search-wrap input::-webkit-search-cancel-button { display:none; }
#clear-search { display:grid; place-items:center; flex:0 0 32px; min-height:44px; color:#687e6d; background:none; font-size:24px; }
.game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.game-cover { aspect-ratio:1.52; }
.cover-sports { background:#dceee8; }.cover-reflex { background:#f6e5d9; }.cover-puzzle { background:#eae6ed; }.cover-hand { background:#e4eddd; }
.card-body { padding:17px 18px 16px; }
.card-title-row h3 { font-size:20px; }
.card-body > .duration { margin-top:4px; font-size:13px; color:#6e806e; }
.card-body > p { font-size:14px; line-height:1.75; min-height:49px; margin:10px 0 15px; color:#657b6a; }
.card-bottom { gap:8px; padding-top:12px; }
.best-label { font-size:12px; color:#6d816d; }
.small-play { min-width:62px; min-height:44px; }
.cover-tag { left:12px; top:12px; font-size:12px; padding:4px 8px; color:#4b6954; }
.new-badge { position:absolute; right:11px; bottom:11px; background:#2e5d4e; color:#fffaf0; border:1px solid #ffffff66; padding:4px 8px; font-size:12px; border-radius:7px; }
.empty-games { padding:60px 20px; text-align:center; border:1px dashed #dce4d7; border-radius:18px; background:#f8f8ef; }
.empty-games h3 { font-size:22px; margin-bottom:10px; }.empty-games p { color:#718371; font-size:16px; }
.game-settings:empty { display:none; }
.game-settings { margin:0 0 18px; text-align:left; }
.game-settings label { font-size:14px; color:#4a6556; }
.game-settings select { min-height:44px; border:1px solid #cedecc; border-radius:9px; padding:9px 28px 9px 10px; color:#304e3b; background:#f7faef; font:inherit; font-size:14px; }
.pause-options { display:flex; justify-content:center; gap:15px; }
.pause-options .dialog-link { width:auto; margin-top:3px; }
.records-list { max-height:42dvh; overflow:auto; overscroll-behavior:contain; padding:2px 3px 2px 0; }
#game-help { color:#5d735e; }
@media(max-width:1120px) {
  .game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .catalog-toolbar .filter { padding-inline:11px; }
  .featured-copy { padding-left:24px; }.featured-copy h2 { font-size:31px; }
  .featured-copy > p { font-size:14px; }.highlight-grid .daily-strip { padding:20px; }
}
@media(max-width:850px) {
  .highlight-grid { grid-template-columns:1fr; }
  .featured-game { min-height:260px; }.featured-copy { padding-block:24px; }
  .featured-art img { max-height:280px; }
  .highlight-grid .daily-strip { grid-template-columns:65px 1fr auto; gap:20px; padding:20px 25px; }
  .highlight-grid .calendar-card { grid-row:1; }.highlight-grid .daily-strip > .button { grid-column:3; width:auto; }
  .highlight-grid .daily-copy h2 { font-size:21px; }.highlight-grid .daily-copy p { font-size:13px; }
  .catalog-toolbar { flex-direction:column-reverse; align-items:stretch; gap:13px; }
  .catalog-search-wrap { flex-basis:auto; width:100%; min-width:0; }
  .catalog-toolbar .filters { align-self:flex-start; max-width:100%; }
}
@media(max-width:680px) {
  .nav-volley { display:none!important; }
  .hero { min-height:0; padding-top:14px; padding-bottom:15px; }
  .hero-copy { padding-bottom:2px; }.hero-art { max-width:400px; margin:0 auto; }
  .highlight-grid { gap:15px; margin-top:6px; }
  .featured-game { min-height:252px; border-radius:18px; }
  .featured-copy { width:56%; padding:21px 0 21px 18px; }
  .featured-copy h2 { font-size:28px; }.feature-label { font-size:12px; }
  .featured-copy > p { font-size:14px; line-height:1.7; }.featured-copy > p br { display:none; }
  .feature-tags { gap:5px; margin-bottom:14px; }.feature-tags span { font-size:11px; padding:3px 6px; }
  .featured-art { width:44%; }.featured-art img { width:190%; transform:translateX(-3px); }
  .featured-copy .button { padding-inline:16px; }
  .highlight-grid .daily-strip { grid-template-columns:54px 1fr; gap:9px 16px; padding:20px; border-radius:18px; }
  .highlight-grid .calendar-card { width:54px; min-width:54px; grid-row:1; }.highlight-grid .calendar-card strong { font-size:30px; }
  .highlight-grid .daily-copy h2 { font-size:19px; }.highlight-grid .daily-copy p { font-size:13px; }
  .highlight-grid .daily-strip > .button { grid-column:1/-1; min-height:44px; width:100%; margin-top:5px; }
  .games-section { padding-top:34px; }.section-heading { margin-bottom:20px; }
  .section-heading h2 { font-size:25px; gap:8px; }.count-tag { font-size:11px; }
  .catalog-count { font-size:12px; }
  .catalog-toolbar { margin-bottom:19px; }.catalog-toolbar .filters { align-self:stretch; margin-top:0; padding:4px 2px; }
  .catalog-toolbar .filter { font-size:12px; padding:8px 4px; min-height:44px; }
  .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .game-card { border-radius:14px; }.game-cover { aspect-ratio:1.18; }
  .game-cover img { object-fit:cover; }
  .cover-tag { font-size:11px; left:8px; top:8px; padding:3px 6px; }
  .card-body { padding:12px 11px 11px; }.card-title-row h3 { font-size:17px; letter-spacing:-.035em; }
  .card-body > .duration { font-size:12px; margin-top:5px; }
  .card-body > p { display:none; }
  .card-bottom { flex-direction:column; align-items:stretch; gap:8px; margin-top:11px; padding-top:10px; }
  .best-label { font-size:11px; text-align:center; min-height:17px; }
  .small-play { width:100%; font-size:14px; min-height:44px; }
  .new-badge { font-size:11px; right:7px; bottom:7px; padding:3px 6px; }
}
@media(max-width:370px) {
  .section-heading h2 { font-size:22px; }.count-tag { display:none; }
  .catalog-toolbar .filter { font-size:11px; }
  .card-title-row h3 { font-size:16px; }.card-body { padding-inline:9px; }
  .featured-copy h2 { font-size:25px; }.featured-copy { padding-left:14px; }
}

/* 台味手作：招牌紅、磁磚綠、不鏽鋼與收據紙。 */
:root{--paper:#f3f1e9;--white:#fffef8;--ink:#25332d;--muted:#626b62;--coral:#ad382a;--coral-dark:#8b2a20;--mint:#95afa2;--mint-pale:#e5ebe2;--line:#d3d7cb;--shadow:0 3px 0 #263c3010}
body{background:var(--paper);color:var(--ink)}
.site-header{min-height:98px;border-bottom:1px solid #c8cec1}
.brand>span{font-size:23px;letter-spacing:.07em}.brand small{font-size:12px;letter-spacing:.13em;color:#58695e}
.site-header nav>a,.nav-button{font-size:15px;color:#35483d}
.button,.control-button,.small-play{border-radius:5px;box-shadow:none!important}
.button.coral:hover,.control-button.primary:hover{background:#902b20}
.button.outline{border-color:#7b8b7e;background:#ffffff45}.button{font-weight:750}
.eyebrow{font-size:14px;letter-spacing:.1em;color:#5d7163}
.taiwan-hero{grid-template-columns:.88fr 1.12fr;gap:30px;min-height:555px;padding:36px 0 26px}
.taiwan-hero .hero-copy{padding-left:0;padding-bottom:8px}
.taiwan-hero h1{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:76px;letter-spacing:.025em;line-height:1.17;margin:20px 0 24px;font-weight:900}
.taiwan-hero h1>span{color:#a33124}.taiwan-hero .hero-copy>p{font-size:18px;line-height:1.85;color:#46584c;letter-spacing:.015em}
.taiwan-hero .hero-actions{gap:12px}.taiwan-hero .hero-actions .button{padding:13px 19px;min-height:52px}
.taiwan-hero .hero-note{font-size:14px;color:#526157;margin-top:24px}
.counter-art{border:1px solid #7e9385;border-radius:2px;background:#d5ddd4;padding:0;box-shadow:8px 8px 0 #b7c4b733;overflow:visible;max-width:none}
.counter-art>img{width:100%;aspect-ratio:960/680;object-fit:cover;display:block}
.counter-sign{position:absolute;z-index:2;top:16px;left:-16px;display:flex;align-items:center;gap:13px;padding:11px 17px;background:#fffdf4;border:2px solid #365544;box-shadow:3px 3px 0 #263e3340;transform:rotate(-3deg);color:#2c4b3a}
.counter-sign>span{font-size:14px;border-right:1px solid #8f9b87;padding-right:12px;letter-spacing:.1em}.counter-sign>strong{font-family:"Noto Serif TC","PMingLiU",serif;font-size:23px;font-weight:900;letter-spacing:.08em}
.counter-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #7e9385;padding:11px 15px;background:#365847;color:#fffdf2;font-size:14px;font-weight:650;letter-spacing:.04em}.counter-caption>span{font-size:13px;font-weight:400;color:#e3e9dc}
.craft-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #b4c0b1;border-bottom:1px solid #b4c0b1;padding:22px 0;margin:18px 0 34px;gap:20px}
.craft-intro>div{display:flex;align-items:center;justify-content:center;gap:17px}.craft-intro>div+div{border-left:1px solid #c5cdbc}
.craft-stamp{writing-mode:vertical-rl;border:1px solid #9e3427;color:#9e3427;padding:9px 6px;font-size:17px;font-family:"Noto Serif TC","PMingLiU",serif;font-weight:800;letter-spacing:.18em;transform:rotate(-3deg)}
.craft-intro p{margin:0;font-size:15px;line-height:1.8;color:#5c6a5f}.craft-intro strong{font-size:16px;color:#293f31;font-weight:650}
.taiwan-highlight{margin-top:0;grid-template-columns:1.15fr 1fr;gap:22px}.taiwan-highlight .featured-game{background:#dce5dc;border-color:#b8c7b8;border-radius:5px;min-height:252px}.taiwan-highlight .featured-copy h2{font-size:29px}.taiwan-highlight .featured-copy>p{font-size:15px;color:#485f4f}.taiwan-highlight .feature-label{color:#4d6755;font-size:13px}.taiwan-highlight .featured-art img{filter:saturate(.8)}
.feature-tags span{font-size:12px;color:#3a5645;border-color:#a5b8a6;background:#f0f3e8}
.taiwan-highlight .daily-strip{border-radius:5px;background:#e9e4d4;border-color:#c1b99c}.taiwan-highlight .daily-copy h2{color:#394a35}.taiwan-highlight .daily-copy p{color:#655f48;font-size:14px}.taiwan-highlight .daily-copy .eyebrow{font-size:13px;color:#6f5638}.taiwan-highlight .daily-strip>.button{background:#3c5944;border-radius:4px}
.calendar-card{border-radius:2px;transform:rotate(-2deg);border-color:#b4a783;box-shadow:2px 3px 0 #a3916324}.calendar-card>strong,.calendar-card>span{color:#8f2e23}
.games-section{padding-top:45px}.section-heading h2{font-size:30px;color:#283e2f}.section-heading .eyebrow{font-size:13px;color:#5b7060}.count-tag{font-size:13px;color:#435c48;background:#e0e7db;border-radius:3px}.catalog-count{color:#4c654f;font-size:14px}
.filters{background:#e4e8dc;border-color:#bfcab9;border-radius:5px;gap:2px;overflow-x:auto;max-width:100%;scrollbar-width:thin}.filter{font-size:14px;min-height:44px;color:#50604f;border-radius:3px}.filter.active,.filter[aria-pressed=true]{background:#355444;color:#fffdf2;box-shadow:none}
.catalog-search-wrap{border-color:#aebda8;border-radius:5px;background:#fffdf5}.catalog-search-wrap input{font-size:15px;color:#344a39}
.game-card{border-radius:5px;border-color:#c4cdbb;box-shadow:none}.game-card:hover{box-shadow:0 8px 20px #233c2910}
.cover-tag{color:#2d4935;background:#fffff2ec;font-size:12px;border-radius:2px;border:1px solid #ffffff80}.new-badge{background:#a83828;border-radius:2px;box-shadow:none;font-size:12px}
.cover-food{background:#cfd8ca}.card-body{padding:19px 20px 17px}.card-title-row h3{font-size:22px;color:#263e2e}.card-body>p{font-size:15px;color:#52614f;line-height:1.8}.duration{font-size:13px;color:#667359}.best-label{font-size:12px;color:#586a54}.small-play{color:#fffdf0;background:#365542}.small-play:hover{background:#264132}.card-bottom{border-top-color:#d2dbca}
.journal-strip{border-top:1px solid #c4cbb8;border-bottom:1px solid #c4cbb8;margin-top:35px;padding:24px 7px}.journal-strip h3{font-size:18px;color:#3e543e}.journal-strip p{font-size:14px;color:#5a6a53}.journal-strip>.text-button{font-size:15px;color:#943326}.journal-icon{border-radius:4px;background:#e0e7d8;color:#3c5941}
.site-footer{border-top-color:#bac7b4}.site-footer>p,.site-footer button{font-size:14px;color:#5e6e56}.footer-brand{color:#3a5139}.site-footer>div>span{color:#65735a;font-size:11px}
.game-machine{border-radius:6px;border-color:#a9bba7;background:#fffef7;box-shadow:0 7px 22px #1b332312}
.play-header{border-bottom-color:#b9c6b1}.play-heading>span{color:#5a7359;font-size:13px}.play-heading h1{font-size:25px}.back-button{color:#405c42;font-size:15px}.game-aside>p{color:#51644e;font-size:16px}.game-aside h2{color:#28472e}.game-aside>.eyebrow{color:#6f805f;font-size:13px}.tip-card{border-radius:4px;border-color:#b8c8ac;background:#e7ecdf}.tip-card p,.tip-card>span{color:#526947;font-size:14px}.aside-decoration{display:none}.aside-record>span{color:#566e4d}.aside-record>strong{color:#365a38}
.game-hud>div>span{color:#566d4b;font-size:13px}.game-hud strong{color:#2d4c31}.mode-tag{border-radius:3px;border-color:#aebf9c;color:#4d653e;font-size:13px}.game-help{font-size:15px!important;color:#425c3f!important}.control-button{color:#2f4935;border-color:#a5b99c;background:#fffef7}.control-button[aria-pressed=true]{background:#315640;border-color:#315640;color:#fffdf3}.control-button:disabled{opacity:.45}
.game-dialog,.info-dialog{border-radius:7px;border-color:#9dad97;background:#fffdf4}.dialog-description{color:#52634b}.dialog-content>.eyebrow{color:#5c7252;font-size:13px}.intro-steps{border-radius:4px;border-color:#bdcbb2;background:#edf0e4}.intro-steps li{color:#405a38}.intro-steps li:before{background:#d9e1cb;color:#4a643e;border-radius:2px}.intro-symbol{border-radius:4px}.mode-selector button{border-radius:4px;color:#526a46;border-color:#b8c8aa;background:#f0f2e8}.mode-selector button.selected{background:#36573f;color:#fffdf3}.mode-selector button.selected small{color:#e3ead7}.pause-sign{display:inline-block;border:2px solid #a43929;padding:9px 18px;margin:5px auto 16px;color:#a43929;font-size:24px;font-weight:800;letter-spacing:.12em;transform:rotate(-4deg)}
.dialog-link{color:#495f40}.result-save-note{color:#65725b}.result-stars{color:#b8bda4}.result-stars .earned{color:#ae382a}.result-score-wrap{background:#e9eddf;border-radius:5px}.result-metrics>div{border-radius:4px}.info-prose{color:#4f6448}.storage-note{color:#69765d;font-size:13px}

/* A receipt explains the actual food, including worthwhile mistakes. */
#result-dialog.craft-result{width:min(690px,calc(100vw - 24px));max-width:690px}
#result-dialog.craft-result .dialog-content{padding:27px 29px 24px}
#result-title:focus{outline:none}


#result-dialog.craft-result #result-stars,#result-dialog.craft-result .result-score-wrap,#result-dialog.craft-result #result-metrics,#result-dialog.craft-result #result-description{display:none}
.creation-receipt{text-align:left;margin:20px 0 24px}.creation-photo{position:relative;overflow:hidden;border:1px solid #bbc5b4;background:#d7ddd1;border-radius:4px}.creation-photo canvas{display:block;width:100%;height:auto;aspect-ratio:600/350}.receipt-stamp{position:absolute;right:15px;top:16px;border:2px solid #a03122;padding:5px 9px;color:#a03122;background:#ffffeddd;transform:rotate(6deg);font-size:14px;font-weight:750;letter-spacing:.09em}
.creation-score-pair{display:grid;grid-template-columns:1fr 1fr;margin:20px 0 15px;border-bottom:1px solid #c4cbb8;padding-bottom:15px;gap:20px}.creation-score-pair>div+div{border-left:1px solid #c4cbb8;padding-left:20px}.creation-score-pair span{display:block;color:#5c6c52;font-size:14px}.creation-score-pair strong{color:#a33525;font-size:43px;line-height:1.35;font-weight:800;font-variant-numeric:tabular-nums}.creation-score-pair>div+div strong{color:#355c40}.creation-score-pair small{font-size:15px;color:#78826b;font-weight:500}
.creation-summary{font-size:16px;line-height:1.8;color:#334c37;margin:0 0 12px}.creation-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:17px}.creation-tags>span{padding:3px 8px;border:1px solid #b7c7a7;color:#4c6941;background:#eff2e5;font-size:13px;border-radius:2px}
.customer-review{margin:18px 0 23px;padding:16px 18px;border-left:3px solid #9a3b2b;background:#eee9d8;color:#514c32}.customer-review>span{display:block;font-size:13px;font-weight:700;color:#7c3b2a}.customer-review p{font-size:17px;line-height:1.7;margin:7px 0}.customer-review small{font-size:12px;line-height:1.6;color:#77705b;display:block}
.flavor-breakdown h3,.recipe-comparison h3{font-size:17px;letter-spacing:.04em;margin:0 0 15px;color:#344e35}.flavor-dimension{margin-bottom:16px}.flavor-dimension>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:15px;color:#3a5338}.flavor-dimension>div:first-child>span{font-size:14px;font-variant-numeric:tabular-nums}.dimension-track{height:6px;background:#e0e5d5;margin:6px 0 7px;overflow:hidden}.dimension-track>span{display:block;height:100%;background:#4f7450}.flavor-dimension p{font-size:14px;line-height:1.7;color:#66715b;margin:0}
.recipe-comparison{padding:16px;background:#e9eedf;border:1px solid #bcccad;margin:19px 0}.recipe-comparison h3{font-size:15px;margin-bottom:8px}.recipe-comparison p{font-size:14px;margin:5px 0;color:#4b6344;line-height:1.7}.recipe-comparison strong{color:#a43625}
.recipe-ticket{border-top:1px dashed #a7b69a;border-bottom:1px dashed #a7b69a;padding:12px 0;margin:18px 0 5px}.recipe-ticket summary{cursor:pointer;color:#3e5c3b;font-size:15px;font-weight:700;min-height:36px;display:flex;align-items:center;gap:8px}.recipe-ticket summary:before{content:'＋';font-size:19px}.recipe-ticket[open] summary:before{content:'−'}.recipe-ticket dl{margin:10px 0}.recipe-ticket dl>div{display:grid;grid-template-columns:95px 1fr;gap:12px;padding:7px 0;border-top:1px solid #e0e5d5;font-size:14px;line-height:1.7}.recipe-ticket dt{color:#6b775e}.recipe-ticket dd{margin:0;color:#314d33;overflow-wrap:anywhere}

/* Product collection: actual recipes, different visual outcomes, recent attempts. */
.info-dialog.product-journal{width:min(850px,calc(100vw - 28px));max-width:850px}
.journal-discovery{display:flex;align-items:center;gap:17px;margin:19px 0 22px;padding:14px 0;border-top:1px solid #bfcbb1;border-bottom:1px solid #bfcbb1}.journal-discovery>strong{font-size:38px;font-weight:800;color:#a13424}.journal-discovery small{font-size:18px;color:#7b866b;font-weight:500}.journal-discovery>span{font-size:15px;color:#53694a}
.product-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.product-tabs .control-button{flex:1;min-height:46px}.product-tabs .selected{background:#31563d;color:#fffdf1;border-color:#31563d}
.product-category-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:0 0 14px}.product-category-heading>span{font-size:14px;color:#637754}.product-category-heading .button{font-size:14px;min-height:44px;padding:9px 18px}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-card{position:relative;min-width:0;display:block;padding:0;text-align:left;border:1px solid #bcc9ad;background:#fffdf3;border-radius:3px;overflow:hidden;color:#314a33}.product-card:not(.undiscovered){cursor:pointer}.product-card:not(.undiscovered):hover{border-color:#40653e;box-shadow:0 4px 15px #2b4a2520}.product-card canvas{display:block;width:100%;height:auto;aspect-ratio:600/350}.product-card>div:last-child{padding:11px 12px 13px}.product-card strong{font-size:16px;line-height:1.5;display:block}.product-card>div>span{display:block;font-size:12px;color:#6d795e;margin-top:4px}.product-score{position:absolute;right:7px;top:7px;padding:3px 7px;background:#fffdf0f0;color:#a13424;font-size:20px;font-weight:800;border:1px solid #a1342460}.product-score small{font-size:11px;font-weight:500}
.undiscovered{background:#edf0e4;border-style:dashed}.unknown-product{display:grid;place-items:center;aspect-ratio:600/350;background:repeating-linear-gradient(45deg,#e2e7d6 0,#e2e7d6 1px,#e9eddf 1px,#e9eddf 8px);color:#9caa8e;font-family:serif;font-size:44px}.undiscovered strong{color:#748668;font-size:15px}.undiscovered p{font-size:12px;line-height:1.65;color:#7c896e;margin:5px 0 0}
.recent-creations{margin-top:27px;border-top:1px solid #c1cdb2;padding-top:22px}.recent-creations h3{font-size:18px;margin-bottom:13px}.recent-creations>button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;width:100%;min-height:47px;padding:9px 7px;text-align:left;border:0;border-bottom:1px solid #d8dfca;background:transparent;color:#3e5739;font-size:14px}.recent-creations>button>small{font-size:12px;color:#7d896d}.recent-creations>button>strong{color:#9a3b29;white-space:nowrap}.recent-creations>button:hover{background:#e8eedc}
.journal-detail{margin-top:26px;padding-top:20px;border-top:2px solid #526e49;scroll-margin-top:20px}.journal-detail-heading{display:flex;gap:16px;justify-content:space-between;align-items:center}.journal-detail-heading h3{font-size:22px;margin:0}.journal-detail-heading .dialog-link{margin:0;width:auto;font-size:13px}.journal-empty{padding:18px;color:#6a7c5c;background:#edf2e3;font-size:15px;text-align:center}.records-fold{margin-top:25px;border-top:1px solid #becbac;padding-top:18px}.records-fold>summary{font-size:17px;font-weight:700;cursor:pointer;min-height:44px;color:#46623e}.legacy-note{font-size:12px;color:#77866a}

@media(max-width:1000px){.taiwan-hero h1{font-size:65px}.taiwan-hero .hero-copy>p{font-size:17px}.taiwan-hero .hero-actions .button{padding-inline:13px}.craft-intro{gap:12px}.craft-intro>div{gap:12px}.craft-intro p{font-size:14px}.craft-intro strong{font-size:15px}.catalog-toolbar .filters{overflow:auto;max-width:100%}.filters{flex-wrap:nowrap}.filter{flex-shrink:0}}
@media(max-width:850px){.taiwan-highlight{grid-template-columns:1fr}.taiwan-hero{gap:20px}.taiwan-hero h1{font-size:60px}.counter-sign{left:-10px;top:10px;padding:8px 11px}.counter-sign>strong{font-size:19px}.counter-sign>span{font-size:12px}.counter-caption{font-size:12px}.counter-caption>span{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.site-header{min-height:82px;width:calc(100% - 30px);gap:10px}.brand>span{font-size:20px}.brand small{font-size:10px}.brand{gap:8px}.brand>img{width:37px;height:37px;flex-basis:37px}.site-header nav{gap:12px}.site-header nav>a{display:none}.site-header .nav-button{font-size:13px}.site-header .icon-button{width:36px;height:40px;flex-basis:36px}.taiwan-hero{display:flex;flex-direction:column;gap:23px;min-height:0;padding:24px 0 18px}.taiwan-hero .hero-copy{width:100%;text-align:left}.taiwan-hero .eyebrow{font-size:12px;letter-spacing:.075em}.taiwan-hero h1{font-size:56px;line-height:1.15;margin:15px 0 18px}.taiwan-hero h1 br{display:none}.taiwan-hero h1>span{display:inline}.taiwan-hero .hero-copy>p{font-size:16px;line-height:1.8;margin-bottom:20px}.taiwan-hero .hero-copy>p br:first-child{display:none}.taiwan-hero .hero-actions{gap:10px}.taiwan-hero .hero-actions .button{font-size:15px;min-height:48px;flex:1;padding:10px 12px}.taiwan-hero .hero-note{font-size:12px;margin-top:17px}.counter-art{max-width:none;margin:0;width:100%;box-shadow:5px 5px 0 #b7c4b733}.counter-art>img{aspect-ratio:1.55;object-fit:cover}.counter-sign{top:11px;left:-8px;padding:7px 11px}.counter-sign>strong{font-size:20px}.counter-caption>span{display:block;font-size:10px}.counter-caption{padding:9px 10px;font-size:11px;gap:4px}.craft-intro{padding:18px 0;margin:16px 0 27px;gap:6px}.craft-intro>div{display:block;text-align:center}.craft-intro>div+div{border-left:1px solid #c5cdbc}.craft-stamp{writing-mode:horizontal-tb;display:inline-block;padding:3px 6px;font-size:14px;letter-spacing:.08em;margin-bottom:10px}.craft-intro p{font-size:11px;line-height:1.7}.craft-intro strong{font-size:12px}.taiwan-highlight .featured-game{min-height:236px;border-radius:4px}.taiwan-highlight .featured-copy h2{font-size:26px}.taiwan-highlight .featured-copy>p{font-size:14px}.taiwan-highlight .featured-copy .button{font-size:14px}.taiwan-highlight .feature-label{font-size:12px}.taiwan-highlight .daily-strip{border-radius:4px}.section-heading{gap:8px;flex-wrap:wrap}.section-heading .eyebrow{font-size:11px}.section-heading h2{font-size:25px}.section-heading>#surprise-button{margin-left:auto;font-size:12px}.section-heading>.catalog-count{display:none}.catalog-toolbar .filters{padding:3px;align-self:stretch}.catalog-toolbar .filter{font-size:13px;padding:8px 11px;min-height:44px}.game-grid{gap:13px}.game-card{border-radius:4px}.card-body{padding:12px 11px}.card-title-row h3{font-size:18px}.new-badge{font-size:10px;border-radius:2px}.card-bottom{gap:8px}.small-play{min-height:44px;font-size:14px}.game-card[data-category=food]{grid-column:1/-1}.game-card[data-category=food] .game-cover{aspect-ratio:1.85}.game-card[data-category=food] .card-body{padding:16px}.game-card[data-category=food] .card-body>p{display:block;font-size:15px;margin:10px 0 15px}.game-card[data-category=food] .card-title-row h3{font-size:23px}.game-card[data-category=food] .card-bottom{flex-direction:row;align-items:center}.game-card[data-category=food] .small-play{width:auto;min-width:95px}.game-card[data-category=food] .best-label{text-align:left;font-size:12px}.game-card[data-category=food] .new-badge{font-size:12px}.journal-strip{align-items:flex-start;flex-wrap:wrap;gap:12px}.journal-strip h3{font-size:16px}.journal-strip p{font-size:13px}.journal-strip>.text-button{margin-left:61px;font-size:14px}.site-footer>p,.site-footer button{font-size:12px}.play-header{min-height:84px}.play-heading h1{font-size:21px}.play-heading>span{font-size:11px}.game-hud{padding:12px;gap:7px;min-height:76px}.game-hud strong{font-size:27px}.game-hud .hud-secondary strong{font-size:18px}.game-hud>div>span{font-size:11px}.mode-tag{font-size:11px;padding:4px 6px}.game-help{font-size:14px!important;padding-inline:12px}.game-controls{padding:12px}.control-button{min-height:44px;font-size:14px}.game-dialog,.info-dialog{border-radius:5px}#result-dialog.craft-result .dialog-content{padding:22px 17px}.creation-score-pair{gap:12px}.creation-score-pair>div+div{padding-left:12px}.creation-score-pair span{font-size:12px}.creation-score-pair strong{font-size:37px}.creation-score-pair small{font-size:12px}.creation-summary{font-size:15px}.customer-review{padding:13px}.customer-review p{font-size:16px}.flavor-dimension p{font-size:13px}.recipe-ticket dl>div{grid-template-columns:79px 1fr;gap:8px;font-size:13px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card strong{font-size:15px}.product-card>div:last-child{padding:10px}.product-card>div>span{font-size:11px}.undiscovered p{font-size:11px}.product-score{font-size:18px}.product-category-heading{font-size:13px}.product-category-heading .button{padding-inline:13px}.recent-creations>button{gap:7px;font-size:13px}.recent-creations>button>small{font-size:11px}.journal-detail-heading h3{font-size:19px}.journal-detail-heading .dialog-link{font-size:12px}.info-dialog.product-journal{width:calc(100vw - 20px)}}

/* Street edition: tactile pictures, readable play controls and a collecting book. */
.taiwan-hero{grid-template-columns:.92fr 1.18fr;min-height:550px;gap:36px}
.taiwan-hero h1{font-size:64px;letter-spacing:.015em;line-height:1.23}
.taiwan-hero .hero-copy>p{font-size:17px;line-height:1.95}
.counter-art{box-shadow:9px 11px 0 #2b483b10;border-color:#8b9c87}
.counter-art>img{aspect-ratio:1.53;object-fit:cover;object-position:56% center}
.counter-sign{top:22px;left:-20px;background:#fdf7e6;border-color:#8e392a;color:#7d3428}
.counter-sign>span{border-right-color:#ba9780}.counter-caption{background:#284d3d;padding:13px 15px}
.game-cover img{object-fit:cover;object-position:center}.game-cover{isolation:isolate}
.game-card .cover-tag{top:12px;left:12px;max-width:calc(100% - 24px);backdrop-filter:blur(4px)}
.game-card .new-badge{right:10px;bottom:10px;top:auto;max-width:calc(100% - 20px)}
.game-card .card-body{background:#fffdf7}.game-card .card-body>p{min-height:54px}
.game-aside #side-journal{display:block;font-size:14px;border-top:1px solid #c4ceb7;margin-top:10px;padding-top:15px}
.info-dialog.product-journal{width:min(1050px,calc(100vw - 28px));max-width:1050px}
.codex-book-heading{border-bottom:1px solid #b9c5af;padding-bottom:21px;margin-bottom:22px}
.codex-book-heading .info-title{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:35px;line-height:1.5;margin:9px 0 11px}
.codex-book-heading .info-prose{font-size:16px;margin-bottom:18px}
.codex-book-counts{display:flex;gap:30px}.codex-book-counts>div{display:flex;align-items:center;gap:13px}.codex-book-counts>div+div{border-left:1px solid #c3ccb7;padding-left:30px}
.codex-book-counts strong{font-size:37px;color:#9b3527;line-height:1.3;font-variant-numeric:tabular-nums}.codex-book-counts strong small{font-size:18px;color:#708160;font-weight:500}.codex-book-counts span{font-size:14px;color:#52694c}
.journal-main-tabs{display:flex;gap:0;border-bottom:2px solid #335b42;margin:0 0 25px}.journal-main-tabs>button{flex:1;min-height:54px;border:0;background:#e8eddf;color:#4f6847;font-weight:750;font-size:18px;padding:10px 15px}.journal-main-tabs>button[aria-pressed=true]{background:#335b42;color:#fffbed}.journal-main-tabs span{font-size:13px;margin-left:8px;opacity:.8}
.journal-section-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin:0 0 21px}.journal-section-top h2{font-size:23px;color:#345039;margin:0 0 6px}.journal-section-top p{font-size:15px;color:#69745b;line-height:1.8;margin:0}.journal-section-top>strong{white-space:nowrap;font-size:30px;color:#9d3c2c;line-height:1.4}.journal-section-top>strong small{font-size:16px;color:#728165;font-weight:500}
.codex-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.codex-filters,.recipe-filters{display:flex;gap:5px;flex-wrap:wrap}.codex-filters>button,.recipe-filters>button{border:1px solid #b9c8aa;background:transparent;border-radius:3px;min-height:44px;padding:8px 13px;font-size:14px;color:#4f6648}.codex-filters>button[aria-pressed=true],.recipe-filters>button[aria-pressed=true]{background:#e1e8d5;border-color:#55744a;color:#31562d;font-weight:750}.recipe-filters{margin:0 0 18px}
.codex-select-label{font-size:14px;color:#617454;display:flex;align-items:center;gap:9px;max-width:100%}.codex-select-label select{min-height:44px;max-width:240px;border:1px solid #aabd9c;border-radius:3px;color:#395334;background-color:#fffdf2;padding:7px 36px 7px 12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234f6648' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}
.codex-explainer{font-size:14px;line-height:1.85;color:#65755a;padding:12px 15px;background:#eaf0df;border-left:3px solid #7c916b;margin:0 0 22px}
.codex-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.codex-card{padding:0;border:1px solid #bac7aa;border-radius:4px;background:#fffdf4;text-align:left;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:border-color .2s,transform .2s,box-shadow .2s}.codex-card:hover{border-color:#6d835c;transform:translateY(-2px);box-shadow:0 6px 18px #253e2212}.codex-card.rarity-legend{border-color:#b79b59}
.codex-art{position:relative;height:160px;overflow:hidden;background:repeating-linear-gradient(45deg,#e6eadc 0,#e6eadc 1px,#eef0e6 1px,#eef0e6 9px)}.codex-art canvas{width:100%;height:100%;object-fit:cover;display:block}.rarity-legend .codex-art{background:repeating-linear-gradient(45deg,#e6dfc7 0,#e6dfc7 1px,#f0ead5 1px,#f0ead5 9px)}
.rarity-label{position:absolute;top:9px;left:9px;font-size:12px;font-weight:700;color:#476044;background:#ffffeddf;border:1px solid #a7b88f;padding:2px 7px}.rarity-legend .rarity-label{color:#88622e;border-color:#be9a60}.rarity-rare .rarity-label{color:#764b3b;border-color:#b48f70}
.codex-seal{height:100%;display:flex;align-items:center;justify-content:center;gap:13px;color:#97a486}.codex-seal>span{display:grid;place-items:center;width:66px;height:72px;border:2px solid #a1af91;font-size:37px;transform:rotate(-4deg);font-family:"Noto Serif TC","PMingLiU",serif}.codex-seal>small{writing-mode:vertical-rl;letter-spacing:.24em;font-size:13px}.rarity-legend .codex-seal{color:#a89061}.rarity-legend .codex-seal>span{border-color:#bba477}
.codex-copy{padding:14px 15px 16px;display:flex;flex-direction:column;flex:1}.codex-copy>small{font-size:12px;line-height:1.6;color:#7b846e;margin-bottom:5px}.codex-copy>strong{font-size:17px;line-height:1.6;color:#3d5537}.codex-copy>p{font-size:14px;line-height:1.8;color:#6c765f;margin:6px 0 15px;min-height:51px;flex:1}.codex-progress{height:5px;background:#e0e6d3;overflow:hidden}.codex-progress>span{height:100%;background:#638654;display:block}.rarity-legend .codex-progress>span{background:#ab8944}.codex-progress-label{font-size:12px;color:#71805f;margin-top:7px}.collected .codex-progress-label{color:#456737}.locked .codex-copy>strong{color:#647756}
.codex-detail{margin-top:25px;border-top:2px solid #6a8257;background:#f0f2e7;padding:20px;scroll-margin:20px}.codex-detail>p{font-size:16px;line-height:1.8;color:#516447;margin:12px 0}.codex-requirements>div{display:grid;grid-template-columns:1fr auto auto;gap:15px;align-items:center;border-top:1px solid #c7d2b7;padding:12px 0;font-size:14px}.codex-requirements strong{color:#3c5c32;font-variant-numeric:tabular-nums}.codex-requirements i{font-style:normal;font-size:12px;color:#71815f}.codex-date{font-size:13px!important;color:#7b775a!important}.codex-detail .storage-note{font-size:13px}
.new-codex-unlock{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid #b3c2a0;background:#edf1e1;text-align:left;border-radius:4px}.new-codex-unlock.rarity-legend{border-color:#b79a56;background:#f4ecd4}.new-codex-unlock canvas{width:92px;height:82px;object-fit:cover;flex:0 0 92px}.new-codex-unlock small{font-size:12px;color:#8a6e3a;display:block}.new-codex-unlock strong{font-size:16px;color:#3f5934;display:block;margin:3px 0}.new-codex-unlock p{font-size:13px;color:#6f7c5e;margin:0;line-height:1.7}
.recipe-rarity{font-size:12px!important;color:#9c712f!important;display:block;margin:0 0 6px!important}.secret-product{border-color:#c2a66c}.secret-product .unknown-product{color:#ae9767;background:repeating-linear-gradient(45deg,#e8e0ca 0,#e8e0ca 1px,#f0ead9 1px,#f0ead9 8px);font-family:"Noto Serif TC","PMingLiU",serif}.secret-product.undiscovered strong{color:#867650}.product-category-heading>span>small{font-size:12px}.product-card.undiscovered p{font-size:14px;color:#718063}.product-card.undiscovered strong{font-size:16px}.product-card>div:last-child{padding:14px}.product-grid>.journal-empty,.codex-grid>.journal-empty{grid-column:1/-1}
@media(max-width:1050px){.taiwan-hero h1{font-size:55px}.taiwan-hero{gap:25px}.counter-caption>span{display:none}.codex-art{height:145px}}
@media(max-width:680px){.taiwan-hero{gap:25px}.taiwan-hero h1{font-size:43px;line-height:1.35;margin:12px 0 16px;white-space:normal}.taiwan-hero h1 br{display:block}.taiwan-hero h1>span{display:block}.taiwan-hero .hero-copy>p{font-size:16px;line-height:1.9}.taiwan-hero .hero-copy>p br{display:none}.counter-art>img{aspect-ratio:1.6;object-position:center}.counter-caption>span{display:block}.counter-sign{left:-8px;top:15px}.taiwan-hero .hero-note{gap:10px;font-size:12px;flex-wrap:wrap}.craft-intro p{font-size:12px}.craft-intro strong{font-size:13px}.game-card .card-body>p{min-height:0}.game-card .cover-tag{font-size:11px}.info-dialog.product-journal{width:calc(100vw - 18px)}.codex-book-heading .info-title{font-size:26px}.codex-book-heading .info-prose{font-size:15px}.codex-book-counts{gap:18px}.codex-book-counts>div{display:block}.codex-book-counts>div+div{padding-left:18px}.codex-book-counts strong{font-size:31px}.codex-book-counts strong small{font-size:15px}.codex-book-counts span{display:block;font-size:13px}.journal-main-tabs>button{font-size:16px;padding:10px 8px}.journal-main-tabs span{font-size:12px;margin-left:5px}.journal-section-top{gap:10px}.journal-section-top h2{font-size:21px}.journal-section-top p{font-size:14px}.journal-section-top>strong{font-size:25px}.codex-toolbar{gap:12px}.codex-filters{gap:4px}.codex-filters>button,.recipe-filters>button{padding:8px 11px}.codex-select-label{width:100%;justify-content:space-between}.codex-select-label select{max-width:85%;width:240px}.codex-explainer{font-size:13px}.codex-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.codex-art{height:120px}.codex-seal{gap:8px}.codex-seal>span{width:50px;height:58px;font-size:30px}.codex-seal>small{font-size:11px}.rarity-label{font-size:11px;top:5px;left:5px;padding:1px 5px}.codex-copy{padding:11px 10px 13px}.codex-copy>strong{font-size:15px}.codex-copy>p{font-size:13px;margin-bottom:12px;line-height:1.75}.codex-copy>small{font-size:11px}.codex-progress-label{font-size:11px;line-height:1.65}.codex-detail{padding:16px 12px}.codex-detail>p{font-size:15px}.codex-requirements>div{gap:9px;font-size:13px}.codex-requirements i{font-size:11px}.product-card.undiscovered strong{font-size:15px}.product-card.undiscovered p{font-size:13px}.new-codex-unlock{gap:10px;padding:8px}.new-codex-unlock canvas{width:70px;height:74px;flex-basis:70px}.new-codex-unlock strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.codex-card{transition:none}.codex-card:hover{transform:none}}

/* v6: decisions, routes and outcome records. */
.depth-feature{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr);gap:34px;padding:28px;margin:0 0 28px;border:1px solid #c7cebd;background:#e8eddf}
.depth-feature h2{font-size:27px;line-height:1.4;margin:9px 0;color:#284939;font-family:"Noto Serif TC","PMingLiU",serif}
.depth-feature p{font-size:15px;color:#596b58;margin:8px 0 14px}
.depth-feature-links{display:grid;gap:8px}
.depth-feature-links button{background:#f8f7ef;border:1px solid #c6ccbc;border-left:4px solid #a53e2c;text-align:left;min-height:76px;padding:12px 17px;color:#284939;cursor:pointer;transition:background .15s}
.depth-feature-links button:hover{background:#fffdf5}
.depth-feature-links span{display:block;font-size:13px;color:#8a4b32;margin-bottom:3px;letter-spacing:.05em}
.depth-feature-links strong{font-size:16px;line-height:1.4}
.depth-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.depth-tags span{font-size:12px;line-height:1.4;background:#e9ede0;border:1px solid #d4ddc9;color:#456044;padding:3px 6px}
.game-card .best-label{line-height:1.5}
.journey-book-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0 20px;border-bottom:1px solid #d1d8c9;margin-bottom:23px}
.journey-book-toolbar label{display:flex;align-items:center;gap:10px;color:#526149;font-size:14px}
.journey-book-toolbar select{max-width:100%;min-height:46px;border:1px solid #bfcab6;border-radius:3px;background:#fffdf5;color:#294737;font:inherit;padding:9px 30px 9px 12px}
.journey-book-toolbar>span{font-size:14px;color:#5e7054}
.journey-game-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:25px}
.journey-game-heading h3{font-size:27px;margin:3px 0;color:#2f503b;font-family:"Noto Serif TC","PMingLiU",serif}
.journey-game-heading small{font-size:13px;color:#9b4830;letter-spacing:.08em}
.journey-game-heading p{font-size:15px;line-height:1.7;margin:8px 0 0;color:#607058}
.journey-game-heading>.button{flex-shrink:0}
.journey-section-title{font-size:17px;margin:24px 0 13px;color:#334d37;display:flex;align-items:center;gap:12px}
.journey-section-title>span{font-weight:400;color:#728063;font-size:14px}
.journey-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.journey-route{position:relative;padding:19px 16px 16px;border:1px solid #cbd1bf;background:#f7f6ec;border-top:3px solid #b8b897}
.journey-route.route-cleared{border-top-color:#426248;background:#edf1e4}
.journey-route h4{font-size:19px;margin:11px 0 8px;line-height:1.4;color:#2d503d}
.journey-route p{font-size:14px;line-height:1.8;color:#607158;margin:0 0 14px}
.journey-route small{font-size:12px;color:#76816a}
.route-status{font-size:12px;letter-spacing:.04em;color:#826e4e;background:#ebe5d3;padding:3px 6px}
.route-cleared .route-status{color:#365b3b;background:#dce7ce}
.journey-ending-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.journey-ending{display:flex;align-items:flex-start;gap:14px;padding:18px 16px;background:#f2f1e6;border:1px dashed #c3c6b0;min-width:0}
.journey-ending.found{border:1px solid #b6c4aa;background:#f8f6e8}
.journey-ending-mark{flex:0 0 38px;width:38px;height:43px;display:grid;place-items:center;border:1px solid #afa990;font-size:22px;font-weight:700;color:#aaa17e;font-family:"Noto Serif TC","PMingLiU",serif;transform:rotate(-3deg)}
.journey-ending.found .journey-ending-mark{color:#a3422c;border-color:#a3422c}
.journey-ending small{font-size:12px;color:#849076}.journey-ending h4{font-size:18px;line-height:1.5;color:#466044;margin:4px 0 7px}
.journey-ending p{font-size:14px;line-height:1.8;color:#6b785e;margin:0}
.journey-history{margin-top:24px;border-top:1px solid #cbd1be;padding-top:18px}
.journey-history>summary,.journey-decisions>summary{cursor:pointer;font-size:15px;color:#3f6045;min-height:44px;line-height:1.6;padding:10px 0}
.journey-history>article{padding:17px;border-bottom:1px solid #d9ddcc;background:#f6f6eb;margin-top:8px;text-align:left}
.journey-history>article>small{font-size:13px;color:#7a886d}.journey-history h4{font-size:19px;margin:4px 0 9px;color:#2d503c}.journey-history p{font-size:14px;color:#66705b;line-height:1.8}
.journey-decisions{text-align:left}.journey-decisions ol{margin:0;padding:0 0 0 23px;border-left:1px solid #d5d5bc;list-style:none}
.journey-decisions li{position:relative;margin:0;padding:10px 0 13px}.journey-decisions li:before{content:'';position:absolute;left:-27px;top:19px;width:7px;height:7px;background:#9a5436;transform:rotate(45deg)}
.journey-decisions li>span{display:block;font-size:12px;color:#85886d}.journey-decisions li>strong{font-size:16px;color:#40563a;display:block;margin-top:3px}.journey-decisions li>p{font-size:14px;color:#6c795e;margin:5px 0 0;line-height:1.7}
#result-dialog.journey-result{width:min(690px,calc(100vw - 24px));max-width:690px}
.result-journey{text-align:left;margin:24px 0}
.ending-reveal{display:flex;align-items:flex-start;gap:17px;padding:22px 18px;background:#e8eddb;border:1px solid #b2c29f;position:relative}
.ending-reveal.ending-unfinished{background:#ede8d8;border-color:#c9bea1}
.ending-stamp{flex:0 0 42px;height:47px;display:grid;place-items:center;border:2px solid #a7402a;color:#a7402a;font-size:26px;font-weight:750;font-family:"Noto Serif TC","PMingLiU",serif;transform:rotate(-5deg)}
.ending-reveal small{font-size:13px;color:#63714e}.ending-reveal h3{font-size:25px;color:#2c503a;margin:7px 0 10px;font-family:"Noto Serif TC","PMingLiU",serif;line-height:1.45}
.ending-reveal p{font-size:15px;line-height:1.85;color:#56674d;margin:0}
.journey-result-progress{display:flex;gap:12px;justify-content:space-between;padding:13px 0;border-bottom:1px solid #d4d9c5;margin-bottom:9px;flex-wrap:wrap;font-size:13px;color:#79856a}
.journey-result-progress strong{font-size:16px;color:#3c5d40;margin-left:5px}
.journey-next{padding:14px 15px;font-size:14px;line-height:1.8;color:#6a674d;background:#f2ecd7;border-left:3px solid #a76b3b;margin:14px 0 3px}
.game-settings fieldset{border:1px solid #c7ceba;padding:13px;margin:13px 0}.game-settings legend{font-size:14px;color:#5c704f;padding:0 6px}
.game-settings button{min-height:44px}.depth-route-grid,.session-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.depth-route-button,.session-card{min-width:0;background:#f7f7ed;border:1px solid #c9d2bb;border-radius:3px;padding:12px;text-align:left;color:#37573d;font:inherit;cursor:pointer}
.depth-route-button[aria-pressed=true],.depth-route-button.selected,.session-card.selected{background:#e0ead4;border-color:#496c48;box-shadow:inset 0 0 0 1px #496c48}
.depth-route-button small,.session-card small{display:block;font-size:13px;color:#748467;line-height:1.65;margin-top:5px}
.session-panel{grid-column:1/-1;padding:16px;border:1px solid #c5ceb8;background:#f8f6e9}.session-panel h3{font-size:20px;color:#314f38;margin:0 0 10px}.session-panel p{font-size:14px;line-height:1.8;color:#68795b}
.session-label{font-size:13px;color:#93704d}.session-summary{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;color:#556c4b}.session-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media(max-width:680px){
  .depth-feature{grid-template-columns:1fr;gap:18px;padding:20px 17px;margin-bottom:20px}.depth-feature h2{font-size:25px}.depth-feature-links button{min-height:73px;padding:11px 13px}.depth-feature-links strong{font-size:15px}
  .depth-tags{gap:4px}.depth-tags span{font-size:11px;padding:3px 4px}.journal-main-tabs>button{font-size:14px!important;padding:11px 5px!important;min-height:54px}.journal-main-tabs>button span{font-size:11px}
  .journey-book-toolbar{align-items:flex-start;flex-direction:column;gap:9px}.journey-book-toolbar label{width:100%;align-items:flex-start;flex-direction:column;gap:5px}.journey-book-toolbar select{width:100%;font-size:16px}.journey-book-toolbar>span{font-size:13px}
  .journey-game-heading{display:block}.journey-game-heading h3{font-size:24px}.journey-game-heading>.button{margin-top:13px;width:100%}.journey-game-heading p{font-size:14px}
  .journey-route-grid{grid-template-columns:1fr}.journey-route{padding:16px}.journey-route h4{font-size:19px;margin:9px 0 6px}.journey-route p{margin-bottom:10px}.journey-route small{font-size:13px}
  .journey-ending-grid{grid-template-columns:1fr}.journey-ending{padding:16px 13px;gap:11px}.journey-ending h4{font-size:18px}.journey-section-title{font-size:16px}
  .ending-reveal{padding:18px 13px;gap:13px}.ending-reveal h3{font-size:23px}.ending-stamp{flex-basis:34px;height:40px;font-size:24px}.ending-reveal p{font-size:14px}
  .journey-result-progress{gap:7px}.journey-next{padding:12px;font-size:14px}.depth-route-grid,.session-options{grid-template-columns:1fr}.session-panel{padding:12px}.game-hud .hud-secondary{min-width:0}.game-hud .hud-secondary strong{font-size:16px!important;overflow-wrap:anywhere;line-height:1.45}
}

/* Keep the primary throw between aiming controls, with the tap alternative below. */
.hoops-controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);align-items:stretch!important}
.hoops-controls .control-button{min-width:0!important;padding:10px 6px;line-height:1.45}
.hoops-controls .hoops-tap,.hoops-controls .hoops-next{grid-column:1/-1;min-height:44px!important}
