:root {
    --ink: #17201d;
    --forest: #16372f;
    --forest-2: #245647;
    --paper: #f7f1e4;
    --paper-deep: #eee3ce;
    --white: #fffdfa;
    --red: #c64132;
    --red-dark: #9f2e24;
    --gold: #d7a934;
    --jade: #67a18b;
    --muted: #6f756f;
    --line: #d9d2c3;
    --shadow: 0 18px 50px rgba(26, 31, 26, .12);
    --serif: "Noto Serif TC", "Songti TC", serif;
    --sans: "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid rgba(198, 65, 50, .35); outline-offset: 3px; }
[hidden] { display: none !important; }
.top-stripe { height: 4px; background: linear-gradient(90deg, var(--red) 0 36%, var(--gold) 36% 48%, var(--forest) 48%); }
.site-header { height: 74px; padding: 0 clamp(20px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 228, .94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(41, 50, 45, .12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-seal, .auth-seal { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); color: #fff4df; font-family: var(--serif); font-size: 24px; font-weight: 900; border: 2px solid #e3b9a8; box-shadow: inset 0 0 0 2px var(--red); }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 900; }
.brand-name strong { color: var(--red); }
.desktop-nav { display: flex; height: 100%; }
.nav-link { border: 0; background: none; padding: 0 20px; cursor: pointer; position: relative; font-weight: 700; color: #5c625e; }
.nav-link::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 4px; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-button { min-height: 42px; border: 0; background: var(--forest); color: white; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: var(--gold); color: var(--forest); font-family: var(--serif); font-weight: 900; }
.xp-pill { height: 36px; padding: 0 11px; background: #efe5c9; color: #5d4815; display: flex; align-items: center; gap: 6px; font-weight: 800; border: 1px solid #dfcea0; border-radius: 4px; font-size: 13px; }
.xp-spark { color: #bd7e12; }
.view { display: none; min-height: calc(100vh - 78px); }
.view.active { display: block; animation: viewIn .32s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.game-hero { min-height: min(710px, calc(100vh - 78px)); position: relative; display: flex; align-items: center; overflow: hidden; background: var(--forest); color: white; }
.hero-art { position: absolute; inset: 0; background-image: url('../img/examination-hall.jpg'); background-size: cover; background-position: 62% center; filter: saturate(.78) contrast(1.04); transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 39, 34, .97) 0%, rgba(16, 39, 34, .91) 33%, rgba(16, 39, 34, .38) 68%, rgba(16, 39, 34, .12) 100%), linear-gradient(0deg, rgba(15, 29, 26, .5), transparent 55%); }
.hero-copy { width: min(650px, 55vw); margin-left: clamp(24px, 8vw, 140px); position: relative; z-index: 2; padding: 60px 0 100px; }
.eyebrow, .kicker, .small-label { text-transform: uppercase; font-size: 12px; font-weight: 900; color: var(--red); letter-spacing: 0; }
.eyebrow { color: #f0d58c; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; background: #e9664e; border-radius: 50%; box-shadow: 0 0 0 5px rgba(233,102,78,.16); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(233,102,78,0); } }
.hero-copy h1 { margin: 13px 0 18px; font-family: var(--serif); font-size: 92px; line-height: .94; letter-spacing: 0; }
.hero-copy h1 em { color: #f0c45c; font-style: normal; font-size: .56em; vertical-align: top; margin-left: 6px; }
.hero-lead { max-width: 570px; margin: 0; color: rgba(255,255,255,.82); font-size: 20px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 33px; }
.primary-button, .outline-button { min-height: 48px; border: 0; padding: 0 22px; border-radius: 4px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; background: var(--red); color: white; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(159, 46, 36, .18); transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--red-dark); transform: translateY(-2px); }
.primary-button.light { background: #fff7e8; color: var(--forest); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.primary-button.light:hover { background: white; }
.primary-button svg { width: 18px; fill: currentColor; stroke: currentColor; }
.primary-button.wide { width: 100%; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.text-button { border: 0; padding: 8px 0; background: none; color: var(--forest); font-weight: 800; cursor: pointer; }
.text-button span { margin-left: 6px; transition: margin .2s; }
.text-button:hover span { margin-left: 10px; }
.text-button.light { color: white; }
.hero-stats { display: flex; gap: 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.62); font-size: 12px; }
.hero-stats strong { color: white; font-size: 14px; }
.today-card { position: absolute; right: clamp(22px, 5vw, 90px); bottom: 40px; z-index: 3; background: rgba(248,242,228,.94); color: var(--ink); padding: 18px 20px; width: min(360px, 32vw); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid var(--red); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.today-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.today-card strong { font-family: var(--serif); font-size: 21px; }
.today-card small { color: var(--muted); }
.prediction-ring { width: 60px; height: 60px; border: 5px solid var(--gold); border-left-color: #e6ddc4; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: 0 0 auto; }
.prediction-ring span { font-weight: 900; line-height: 1; }
.prediction-ring small { font-size: 9px; }
.dashboard-band, .content-view { max-width: 1280px; margin: 0 auto; padding: 78px clamp(20px, 4vw, 56px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.section-heading h2, .trend-copy h2 { font-family: var(--serif); font-size: 38px; margin: 7px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr) minmax(240px, .8fr); gap: 18px; }
.mission-feature, .streak-panel, .rank-teaser { border: 1px solid var(--line); background: rgba(255,253,250,.62); padding: 28px; border-radius: 6px; }
.mission-feature { background: var(--white); box-shadow: 0 12px 30px rgba(37,36,30,.07); }
.mission-topline { display: flex; justify-content: space-between; }
.category-tag, .time-tag, .skill-row span { font-size: 11px; font-weight: 800; }
.category-tag { color: var(--red); background: #f5dcd4; padding: 5px 8px; }
.time-tag { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.time-tag svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.time-tag i { font-style: normal; }
.mission-feature h3 { font-family: var(--serif); font-size: 32px; margin: 20px 0 9px; }
.mission-feature > p { color: var(--muted); line-height: 1.75; margin: 0; }
.skill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.skill-row span { padding: 5px 9px; border: 1px solid var(--line); color: #535a55; }
.mission-footer { border-top: 1px solid #e7e0d5; margin-top: 25px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.difficulty { display: flex; align-items: center; gap: 4px; }
.difficulty i { width: 16px; height: 5px; background: var(--red); }
.difficulty i.off { background: #ddd4c4; }
.difficulty span { margin-left: 7px; font-size: 11px; color: var(--muted); }
.round-action { width: 44px; height: 44px; border: 0; background: var(--forest); color: white; cursor: pointer; border-radius: 50%; font-size: 20px; }
.streak-panel { background: var(--forest); color: white; display: grid; align-content: start; }
.streak-icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--red); font-family: var(--serif); font-weight: 900; font-size: 20px; margin-bottom: 15px; }
.streak-panel > div:nth-child(2) { display: flex; flex-direction: column; }
.streak-panel > div span { font-size: 12px; color: rgba(255,255,255,.6); }
.streak-panel strong { font-family: var(--serif); font-size: 30px; }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 20px; }
.week-dots span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.48) !important; font-size: 9px !important; }
.week-dots span.done { background: var(--gold); color: var(--forest) !important; border-color: var(--gold); font-weight: 900; }
.streak-panel p { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.6); align-self: end; margin: 22px 0 0; }
.rank-teaser .small-label { color: var(--muted); }
.mini-rank { display: grid; grid-template-columns: 20px 34px 1fr; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #e4dccd; }
.mini-rank b { font-family: var(--serif); color: var(--muted); }
.mini-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: white; font-family: var(--serif); font-weight: 900; }
.mini-avatar.red { background: var(--red); }.mini-avatar.jade { background: var(--jade); }.mini-avatar.gold { background: var(--gold); color: var(--ink); }
.mini-rank p { margin: 0; font-size: 13px; font-weight: 800; display: flex; flex-direction: column; }
.mini-rank small { font-size: 10px; font-weight: 600; color: var(--muted); }
.mini-rank.current { background: #f5ead0; padding-left: 8px; padding-right: 8px; }.mini-rank em { display: inline-block; width: fit-content; margin-top: 2px; color: var(--red); font-size: 9px; font-style: normal; }
.rank-teaser .text-button { margin-top: 10px; font-size: 12px; }
.trend-band { background: #dfd2bb; padding: 64px max(7vw, calc((100vw - 1168px)/2)); display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.trend-copy p { line-height: 1.8; color: #5d625e; }
.trend-evidence { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,253,250,.5); border: 1px solid rgba(43,49,44,.13); }
.trend-evidence > div { padding: 25px; display: flex; align-items: center; gap: 14px; }
.trend-evidence > div + div { border-left: 1px solid rgba(43,49,44,.13); }
.trend-evidence strong { color: var(--red); font-family: var(--serif); font-size: 24px; }
.trend-evidence span { font-size: 12px; line-height: 1.6; font-weight: 700; }
.trend-evidence a { grid-column: 1 / -1; padding: 13px 24px; border-top: 1px solid rgba(43,49,44,.13); color: var(--forest); font-size: 11px; font-weight: 800; text-decoration: none; }
.content-view { padding-top: 62px; }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.page-title-row h1 { font-family: var(--serif); font-size: 64px; margin: 5px 0; line-height: 1.1; }
.page-title-row p { color: var(--muted); margin: 0; }
.segmented { display: flex; border: 1px solid var(--line); padding: 3px; background: #eee5d4; border-radius: 5px; }
.segmented button, .auth-tabs button { border: 0; background: transparent; padding: 9px 16px; cursor: pointer; font-size: 12px; font-weight: 800; border-radius: 3px; }
.segmented button.active, .auth-tabs button.active { background: var(--white); box-shadow: 0 2px 8px rgba(32,33,28,.08); color: var(--red); }
.library-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto 140px; gap: 12px; align-items: end; margin-bottom: 22px; padding: 18px; background: #e8decb; border-top: 3px solid var(--forest); }
.library-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid #cfc3af; }
.detail-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.detail-filters select { min-width: 0; height: 40px; border: 1px solid #c9beac; background: var(--white); padding: 0 9px; border-radius: 3px; color: var(--ink); }
.search-field { display: grid; gap: 6px; font-size: 10px; font-weight: 900; color: var(--muted); }
.search-field input { width: 100%; height: 45px; border: 1px solid #c9beac; background: var(--white); padding: 0 13px; border-radius: 3px; }
.favorite-filter { height: 45px; min-height: 45px; }
.favorite-filter.active { background: var(--forest); color: white; }
.library-count { display: flex; align-items: baseline; justify-content: end; gap: 7px; padding-bottom: 7px; }
.library-count strong { font-family: var(--serif); font-size: 30px; color: var(--red); }
.library-count span { font-size: 10px; color: var(--muted); }
.passage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.passage-card { background: var(--white); border: 1px solid var(--line); padding: 26px; border-radius: 6px; min-height: 360px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.passage-card::before { content: attr(data-era); position: absolute; right: 13px; top: 5px; font-family: var(--serif); color: rgba(24,53,46,.06); font-size: 92px; font-weight: 900; }
.passage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.passage-card-top { display: flex; justify-content: space-between; position: relative; }
.card-tools { display: flex; gap: 9px; align-items: start; }
.card-favorite { width: 31px; height: 31px; border: 1px solid #d7cbb8; background: #faf5eb; color: var(--muted); font-size: 17px; cursor: pointer; border-radius: 3px; line-height: 1; }
.card-favorite.active { color: var(--red); border-color: #d6a098; background: #f4ddd8; }
.passage-card h2 { font-family: var(--serif); font-size: 29px; margin: 26px 0 5px; position: relative; }
.passage-card .source { color: var(--red); font-size: 12px; font-weight: 700; }
.passage-card .hook { line-height: 1.7; color: var(--muted); font-size: 14px; flex: 1; }
.heat { font-size: 11px; color: #77672e; font-weight: 800; }
.heat-bar { height: 5px; background: #e6ddc9; margin-top: 6px; width: 90px; }
.heat-bar i { display: block; height: 100%; background: var(--gold); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e8e1d4; padding-top: 18px; margin-top: 20px; }
.card-progress { margin-top: 14px; font-size: 10px; color: var(--forest); font-weight: 800; }
.card-bottom span { color: var(--muted); font-size: 11px; }
.source-note { margin-top: 28px; border-left: 3px solid var(--gold); padding: 15px 18px; background: rgba(255,253,250,.45); }
.library-empty { grid-column: 1 / -1; min-height: 220px; border: 1px dashed #c9bdab; display: grid; place-content: center; text-align: center; gap: 5px; color: var(--muted); }
.library-empty strong { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.source-note strong { font-family: var(--serif); }
.source-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rank-season { border-left: 3px solid var(--red); padding-left: 15px; display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.rank-season strong { color: var(--ink); font-size: 15px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; max-width: 780px; margin: 20px auto 35px; }
.rank-empty { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; border: 1px dashed #c9bdab; color: var(--muted); text-align: center; padding: 20px; }
.podium-person { background: var(--white); border: 1px solid var(--line); min-height: 150px; padding: 22px; text-align: center; border-top: 5px solid #b6ad98; }
.podium-person.first { min-height: 185px; border-top-color: var(--gold); }
.podium-person.second { order: -1; }
.podium-person.third { border-top-color: #a96b51; }
.podium-person .place { font-family: var(--serif); font-size: 30px; color: var(--red); }
.podium-person strong { display: block; font-family: var(--serif); font-size: 18px; }
.podium-person small { color: var(--muted); }
.leaderboard-table { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 60px 1fr 100px 120px 100px; align-items: center; padding: 15px 22px; border-bottom: 1px solid #ebe4d8; font-size: 13px; }
.rank-row.header { background: #e8decb; font-size: 10px; color: var(--muted); font-weight: 900; text-transform: uppercase; }
.rank-row:last-child { border: 0; }
.rank-row .rank-number { font-family: var(--serif); font-weight: 900; font-size: 18px; }
.rank-name { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.rank-name > span { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }.rank-name small { padding: 2px 5px; background: #e8decb; color: var(--muted); font-size: 8px; }.rank-row.current { background: #fff8e8; box-shadow: inset 3px 0 var(--gold); }
.rank-name .mini-avatar { border-radius: 50%; }
.rank-xp { font-weight: 900; color: var(--red); }
.loading-line { padding: 28px; color: var(--muted); text-align: center; }
.empty-state { text-align: center; border: 1px dashed #c9bdab; padding: 65px 20px; background: rgba(255,253,250,.35); }
.empty-seal { width: 64px; height: 64px; margin: auto; display: grid; place-items: center; background: var(--forest); color: white; font-family: var(--serif); font-size: 32px; }
.empty-state h2 { font-family: var(--serif); margin-bottom: 4px; }.empty-state p { color: var(--muted); }.empty-state button { margin-top: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--forest); color: white; }
.metric-grid > div { padding: 24px; border-right: 1px solid rgba(255,255,255,.12); }
.metric-grid span { display: block; font-size: 11px; color: rgba(255,255,255,.58); }
.metric-grid strong { font-family: var(--serif); font-size: 36px; }.metric-grid small { margin-left: 4px; color: rgba(255,255,255,.55); }
.training-overview { padding: 32px 0; border-bottom: 1px solid var(--line); }
.overview-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.overview-heading h2 { font-family: var(--serif); font-size: 27px; margin: 5px 0 0; }
.overview-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.skill-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.skill-stat { display: grid; grid-template-columns: 78px 1fr 42px; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; }
.skill-stat > div { height: 8px; background: #ded4c3; }
.skill-stat i { display: block; height: 100%; background: var(--jade); }
.skill-stat strong { text-align: right; color: var(--forest); }
.log-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }
.history-panel, .profile-panel { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.history-panel h2, .profile-panel h2 { font-family: var(--serif); margin-top: 0; }
.history-item { display: grid; grid-template-columns: 1fr 80px 90px; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #eae3d7; }
.history-item strong { display: block; }.history-item small { color: var(--muted); }.history-score { font-family: var(--serif); font-weight: 900; }.history-xp { color: var(--red); font-weight: 800; }
.profile-panel { text-align: center; }.big-avatar { width: 76px; height: 76px; background: var(--red); color: white; margin: 0 auto 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; }.profile-panel h2 { margin-bottom: 2px; }.profile-panel > p { color: var(--muted); font-size: 12px; margin-top: 0; }
.level-track { text-align: left; margin: 25px 0; }.level-track > span, .level-track small { font-size: 11px; font-weight: 800; color: var(--muted); }.level-track > div { height: 7px; background: #e7dece; margin: 8px 0; }.level-track i { display: block; height: 100%; background: var(--gold); }
.outline-button { background: transparent; color: var(--forest); border: 1px solid var(--forest); box-shadow: none; }.outline-button.danger { color: var(--red); border-color: #dcb2aa; width: 100%; }.outline-button:hover { background: rgba(22,55,47,.06); }
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.journal-section { border-top: 4px solid var(--forest); padding-top: 20px; min-width: 0; }
.journal-section.wrong-section { grid-column: 1 / -1; border-top-color: var(--red); }
.journal-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.journal-heading h2 { font-family: var(--serif); margin: 0; font-size: 24px; }
.journal-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.section-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--forest); color: white; font-family: var(--serif); font-weight: 900; }
.wrong-section .section-mark { background: var(--red); }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.achievement { min-height: 72px; border: 1px solid #d8cebd; padding: 10px; display: flex; gap: 9px; align-items: center; opacity: .48; filter: grayscale(1); }
.achievement.unlocked { background: #f5ead0; border-color: #d8bd72; opacity: 1; filter: none; }
.achievement > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #c9c0af; color: white; font-family: var(--serif); }
.achievement.unlocked > span { background: var(--red); }
.achievement strong, .achievement small { display: block; }
.achievement strong { font-family: var(--serif); font-size: 13px; }
.achievement small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.collection-list, .word-list { display: grid; gap: 7px; }
.collection-item, .word-item { width: 100%; border: 1px solid #d8cebd; background: var(--white); min-height: 58px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; border-radius: 3px; }
.collection-item:hover, .word-item:hover { border-color: var(--jade); }
.collection-item strong, .collection-item small { display: block; }
.collection-item small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.collection-item i, .word-item i { font-style: normal; color: var(--red); }
.word-item { display: grid; grid-template-columns: 48px 1fr 16px; gap: 8px; }
.word-item strong { font-family: var(--serif); color: var(--red); }
.word-item span { font-size: 11px; color: var(--muted); }
.wrong-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wrong-item { border: 1px solid #d8cebd; background: var(--white); padding: 16px; }
.wrong-item > span { font-size: 9px; color: var(--red); font-weight: 900; }
.wrong-item > strong { display: block; font-family: var(--serif); margin: 6px 0; }
.wrong-item p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; }
.wrong-item .text-button { font-size: 10px; }
.inline-empty { min-height: 72px; border: 1px dashed #cbbfac; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 11px; padding: 15px; }
.game-view { background: #e7dcc7; }
.game-topbar { height: 74px; background: var(--forest); color: white; display: grid; grid-template-columns: 50px 1fr 100px; align-items: center; gap: 22px; padding: 0 max(22px, calc((100vw - 1160px)/2)); position: sticky; top: 74px; z-index: 30; }
.back-button { border-color: rgba(255,255,255,.25); color: white; font-size: 20px; }
.game-progress { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; font-size: 11px; font-weight: 800; }.game-progress > div { height: 6px; background: rgba(255,255,255,.15); }.game-progress i { display: block; width: 12%; height: 100%; background: var(--gold); transition: width .35s; }
.game-timer { display: flex; justify-content: end; align-items: center; gap: 7px; font-weight: 900; font-variant-numeric: tabular-nums; }.game-timer svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.game-shell { max-width: 940px; margin: 0 auto; padding: 48px 20px 90px; }
.game-shell.quiz-mode { max-width: 1280px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); gap: 18px; align-items: start; }
.reading-panel, .quiz-panel { background: var(--white); border: 1px solid #d3c7b4; padding: clamp(25px, 5vw, 58px); box-shadow: 0 20px 60px rgba(37,36,28,.12); position: relative; }
.quiz-mode .reading-panel, .quiz-mode .quiz-panel { padding: 34px; }.quiz-mode .reading-panel { position: sticky; top: 166px; max-height: calc(100vh - 190px); overflow: auto; }.quiz-mode .story-hook, .quiz-mode .glossary-strip, .quiz-mode .translation-drawer, .quiz-mode .note-drawer, .quiz-mode .game-mode-picker, .quiz-mode #beginQuizButton, .quiz-mode .reading-actions { display: none; }.quiz-mode .reading-heading { padding-bottom: 14px; }.quiz-mode .reading-heading h1 { font-size: 32px; }.quiz-mode .classical-text { font-size: 18px; line-height: 2; padding-bottom: 0; }
.reading-panel::before { content: ""; position: absolute; inset: 11px; border: 1px solid #e8dfd0; pointer-events: none; }
.reading-panel > * { position: relative; }
.reading-heading { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }.reading-heading span, .reading-heading p { font-size: 11px; color: var(--muted); }.reading-heading h1 { font-family: var(--serif); font-size: 54px; margin: 4px 0; }.reading-heading p { margin: 0; color: var(--red); font-weight: 700; }.prediction-badge { align-self: start; padding: 7px 10px; border: 1px solid #d8c48f; background: #f4ead0; color: #705a21 !important; font-weight: 800; }
.reading-actions { display: flex; align-items: start; gap: 8px; }
.favorite-button { color: var(--muted); background: #faf5eb; font-size: 21px; }
.favorite-button.active { color: var(--red); background: #f3ddd7; border-color: #d7a198; }
.story-hook { font-weight: 800; color: var(--forest); margin: 28px 0 10px; }
.classical-text { font-family: var(--serif); font-size: 22px; line-height: 2.2; padding: 22px 0; }
.glossary-strip { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: start; }.glossary-strip > strong { font-size: 12px; color: var(--red); }.glossary-strip > div { display: flex; flex-wrap: wrap; gap: 8px; }.glossary-chip { border: 1px solid #d7cbb8; background: #f5edde; padding: 6px 9px; font-size: 12px; cursor: pointer; color: var(--ink); border-radius: 3px; }.glossary-chip:hover { border-color: var(--jade); }.glossary-chip.saved { background: #e1eee7; border-color: #8bb5a5; }.glossary-chip b { color: var(--red); margin-right: 5px; }.glossary-chip i { font-style: normal; margin-left: 8px; color: var(--forest); font-weight: 900; }
.translation-drawer { margin: 0 0 25px; background: #f1e8d8; border-left: 3px solid var(--gold); padding: 12px 16px; }.translation-drawer summary { cursor: pointer; font-weight: 800; font-size: 12px; }.full-translation { white-space: pre-line; line-height: 1.9; color: #5f6560; font-size: 14px; padding: 14px 0 4px; }
.quiz-status { display: flex; justify-content: space-between; align-items: center; }.question-count { color: var(--muted); font-size: 12px; font-weight: 800; }.combo { color: var(--red); background: #f3dcd6; padding: 5px 9px; font-size: 11px; font-weight: 900; }.skill-badge { display: inline-block; margin-top: 34px; color: var(--forest); font-size: 11px; font-weight: 900; }.quiz-panel h2 { font-family: var(--serif); font-size: 34px; line-height: 1.5; margin: 8px 0 25px; }
.options-list { display: grid; gap: 10px; }.option-button { min-height: 58px; border: 1px solid #d7cebe; background: #fbf8f1; padding: 12px 16px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; border-radius: 4px; transition: border .15s, background .15s, transform .15s; }.option-button:hover { border-color: var(--jade); transform: translateX(3px); }.option-button.selected { border: 2px solid var(--forest); background: #e5eee8; padding: 11px 15px; }.option-button.correct { border-color: #3d8066; background: #dff0e7; }.option-button.wrong { border-color: var(--red); background: #f7dfdb; }.option-letter { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cfc5b4; font-family: var(--serif); font-weight: 900; }.option-button.selected .option-letter { background: var(--forest); color: white; border-color: var(--forest); }
.answer-feedback { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; background: #e0eee7; border-left: 3px solid #3d8066; }.answer-feedback.wrong { background: #f6dfda; border-left-color: var(--red); }.feedback-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #3d8066; color: white; font-weight: 900; }.answer-feedback.wrong .feedback-icon { background: var(--red); }.answer-feedback strong { font-family: var(--serif); }.answer-feedback p { margin: 3px 0 0; font-size: 12px; line-height: 1.6; color: #59615c; }.quiz-actions { margin-top: 22px; }
dialog { border: 0; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(8,20,17,.38); border-radius: 6px; }.auth-dialog { width: min(440px, calc(100vw - 28px)); padding: 36px; background: var(--paper); }.auth-dialog::backdrop, .result-dialog::backdrop { background: rgba(10,26,22,.72); backdrop-filter: blur(5px); }.dialog-close { position: absolute; top: 12px; right: 12px; font-size: 22px; border: 0; }.auth-seal { margin-bottom: 25px; }.auth-dialog h2 { font-family: var(--serif); font-size: 32px; margin: 4px 0; }.auth-dialog > p { font-size: 11px; color: var(--muted); }.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #e7ddca; padding: 3px; margin: 22px 0; }.auth-dialog label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; margin: 13px 0; }.auth-dialog input { min-height: 46px; background: var(--white); border: 1px solid #cfc4b2; border-radius: 3px; padding: 0 13px; }.auth-dialog input:focus { border-color: var(--forest); }.form-error { padding: 10px; background: #f1d7d1; color: #8d2921; font-size: 12px; margin: 10px 0; }
.result-dialog { width: min(510px, calc(100vw - 28px)); padding: 48px 38px 36px; background: var(--paper); text-align: center; overflow: hidden; }.result-dialog > * { position: relative; }.result-rays { position: absolute; width: 380px; height: 380px; left: 50%; top: -265px; transform: translateX(-50%); border: 50px dotted rgba(215,169,52,.25); border-radius: 50%; }.result-stamp { width: 82px; height: 82px; margin: 0 auto 17px; display: grid; place-items: center; background: var(--red); color: white; font-family: var(--serif); font-weight: 900; font-size: 23px; border-radius: 50%; border: 4px double #f1c9bb; transform: rotate(-7deg); }.result-dialog h2 { font-family: var(--serif); font-size: 30px; margin: 7px 0; }.score-display strong { font-family: var(--serif); font-size: 72px; color: var(--red); }.score-display span { font-size: 22px; color: var(--muted); }.score-display i { font-style: normal; }.result-dialog > p { color: var(--muted); line-height: 1.7; }.reward-row { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border: 1px solid var(--line); }.reward-row > div { padding: 15px; }.reward-row > div + div { border-left: 1px solid var(--line); }.reward-row span { display: block; font-size: 10px; color: var(--muted); }.reward-row strong { font-family: var(--serif); }.reward-row i { font-style: normal; }.result-actions { display: flex; justify-content: center; gap: 10px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 4px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }
footer { min-height: 64px; padding: 18px clamp(20px, 4vw, 72px); display: flex; justify-content: space-between; gap: 25px; align-items: center; background: #122a24; color: rgba(255,255,255,.5); font-size: 10px; }

/* Version 1.0 experience layer */
body::selection { background: #efd58e; color: var(--ink); }
.mission-feature, .streak-panel, .rank-teaser { transition: transform .2s ease, box-shadow .2s ease; }
.mission-feature:hover, .streak-panel:hover, .rank-teaser:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37,36,30,.1); }
.master-arena { background: #102b25; color: white; padding: 58px max(6vw, calc((100vw - 1168px)/2)); display: grid; grid-template-columns: minmax(0,1.4fr) minmax(220px,.7fr) minmax(200px,.6fr); gap: 42px; align-items: center; border-top: 5px solid var(--gold); }
.master-arena .kicker { color: #efc85d; }
.master-arena h2 { font-family: var(--serif); font-size: 42px; margin: 6px 0 10px; }
.master-arena-copy p { max-width: 620px; color: rgba(255,255,255,.68); line-height: 1.8; }
.master-actions { display: flex; gap: 10px; margin-top: 24px; }
.master-arena .outline-button { color: white; border-color: rgba(255,255,255,.35); }
.master-progress, .daily-goal { border-left: 1px solid rgba(255,255,255,.16); padding-left: 28px; }
.master-progress > span, .daily-goal > span { display: block; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 800; }
.master-progress strong, .daily-goal strong { display: block; margin: 7px 0 14px; font-family: var(--serif); font-size: 30px; }
.master-progress strong i { color: #efc85d; font-style: normal; }
.master-progress > div { height: 7px; background: rgba(255,255,255,.13); }
.master-progress > div i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .5s ease; }
.master-progress small, .daily-goal small { display: block; margin-top: 10px; color: rgba(255,255,255,.5); line-height: 1.5; }
.goal-pips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.goal-pips i { height: 8px; background: rgba(255,255,255,.14); }
.goal-pips i.done { background: var(--gold); }
.library-toggle-row { display: flex; gap: 7px; }
.tier-segmented { flex-wrap: wrap; }
.tier-segmented button:last-child.active { background: var(--forest); color: #f4ce6a; }
.category-tag.tier-2 { background: #e4eee8; color: #27614d; }
.category-tag.tier-3 { background: #e8e3d6; color: #665737; }
.category-tag.tier-4 { background: #f3dfd7; color: #99382d; }
.category-tag.tier-5 { background: #17372f; color: #f0cb69; }
.passage-card .round-action { transition: transform .2s, background .2s; }
.passage-card:hover .round-action { transform: rotate(-8deg) scale(1.08); background: var(--red); }
.collection-list, .word-list, .note-list { display: grid; gap: 7px; }
.note-item { width: 100%; border: 1px solid #d8cebd; background: var(--white); padding: 12px 14px; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.note-item strong { font-family: var(--serif); }
.note-item span { color: var(--muted); font-size: 10px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item:hover { border-color: var(--jade); }
.font-controls { display: flex; gap: 4px; }
.font-controls .icon-button { font-size: 11px; font-weight: 900; background: #faf5eb; }
.note-drawer { margin: 0 0 18px; border: 1px solid var(--line); background: #fbf8f1; padding: 12px 16px; }
.note-drawer summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.note-drawer textarea { width: 100%; min-height: 110px; margin-top: 12px; resize: vertical; border: 1px solid #cfc5b4; background: white; color: var(--ink); padding: 12px; line-height: 1.7; }
.note-drawer > div { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.note-drawer small { color: var(--muted); }
.note-drawer .outline-button { min-height: 38px; }
.game-mode-picker { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; padding: 15px; background: #e4eee8; border-left: 3px solid var(--forest); }
.game-mode-picker > div:first-child { display: grid; gap: 3px; }
.game-mode-picker strong { font-family: var(--serif); }
.game-mode-picker small { color: var(--muted); font-size: 10px; }
.exam-mode .story-hook, .exam-mode .glossary-strip, .exam-mode .translation-drawer, .exam-mode .note-drawer { display: none; }
.selected-mode-banner { display: grid; gap: 3px; margin: 20px 0; padding: 15px; background: #e4eee8; border-left: 3px solid var(--forest); }.selected-mode-banner strong { font-family: var(--serif); }.selected-mode-banner small { color: var(--muted); font-size: 10px; }
.exam-mode .selected-mode-banner { background: #f4e4d9; border-left-color: var(--red); }
.mode-dialog { width: min(650px, calc(100vw - 26px)); padding: 38px; background: var(--paper); border-top: 5px solid var(--gold); }.mode-dialog::backdrop { background: rgba(10,26,22,.76); backdrop-filter: blur(6px); }.mode-dialog h2 { font-family: var(--serif); font-size: 32px; margin: 5px 0; }.mode-dialog > p { color: var(--muted); margin: 0 0 22px; }.mode-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.mode-choice-grid button { min-height: 180px; border: 1px solid var(--line); background: var(--white); padding: 22px; cursor: pointer; text-align: left; display: grid; align-content: center; gap: 7px; transition: transform .18s,border .18s,box-shadow .18s; }.mode-choice-grid button:hover { transform: translateY(-4px); border-color: var(--jade); box-shadow: var(--shadow); }.mode-choice-grid button:last-child { background: var(--forest); color: white; border-color: var(--forest); }.mode-choice-grid button > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); color: white; font-family: var(--serif); font-size: 22px; }.mode-choice-grid strong { font-family: var(--serif); font-size: 22px; }.mode-choice-grid small { color: var(--muted); line-height: 1.55; }.mode-choice-grid button:last-child small { color: rgba(255,255,255,.62); }
.result-actions { flex-wrap: wrap; gap: 8px; }
.result-actions button { min-height: 42px; padding-left: 14px; padding-right: 14px; }
.auth-dialog { border-top: 5px solid var(--red); }
.auth-dialog input:focus { box-shadow: 0 0 0 3px rgba(103,161,139,.14); }
.result-card-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 28px; background: #f4ecdc; overflow: auto; }
.result-card-dialog::backdrop { background: rgba(10,26,22,.78); backdrop-filter: blur(6px); }
.card-dialog-heading h2 { font-family: var(--serif); font-size: 27px; margin: 4px 0 18px; }
.result-card-preview { background: #132e27; padding: 12px; box-shadow: 0 15px 40px rgba(17,31,26,.2); }
.result-card-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #e9dfcc; }
.card-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.qr-generator { position: fixed; left: -9999px; top: 0; width: 180px; height: 180px; background: white; padding: 8px; }

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .master-arena { grid-template-columns: 1fr 1fr; }
    .master-arena-copy { grid-column: 1 / -1; }
    .game-shell.quiz-mode { grid-template-columns: 1fr; }.quiz-mode .reading-panel { position: static; max-height: none; }
    .game-hero { min-height: 680px; }
    .hero-copy { width: 70vw; margin-left: 7vw; }
    .today-card { width: 320px; }
    .dashboard-grid { grid-template-columns: 1.4fr .7fr; }.rank-teaser { grid-column: 1 / -1; }.rank-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.rank-teaser > .small-label, .rank-teaser > .text-button { grid-column: 1 / -1; }.mini-rank { border: 1px solid #e4dccd; padding: 10px; }
    .trend-band { grid-template-columns: 1fr; gap: 25px; }
    .passage-grid { grid-template-columns: 1fr 1fr; }.log-layout { grid-template-columns: 1fr; }.profile-panel { order: -1; }
    .library-tools { grid-template-columns: 1fr auto; }.library-count { grid-column: 1 / -1; justify-content: start; padding: 0; }
    .detail-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    body { padding-bottom: 66px; }
    .site-header { height: 62px; padding: 0 14px; }.brand-name { font-size: 17px; }.brand-seal { width: 36px; height: 36px; font-size: 20px; }.sound-toggle, .xp-pill { display: none !important; }.profile-button { min-width: 42px; padding-right: 5px; }.profile-button #accountLabel { display: none; }
    .view { min-height: calc(100vh - 66px); }
    .game-hero { min-height: calc(100svh - 66px); align-items: flex-start; }
    .hero-art { background-position: 69% center; }.hero-shade { background: linear-gradient(180deg, rgba(16,39,34,.94) 0%, rgba(16,39,34,.78) 55%, rgba(16,39,34,.38) 100%); }
    .hero-copy { width: auto; margin: 0; padding: 62px 22px 190px; }.hero-copy h1 { font-size: 62px; }.hero-lead { font-size: 16px; line-height: 1.65; }.hero-actions { align-items: stretch; gap: 10px; flex-direction: column; max-width: 240px; }.hero-stats { gap: 12px; flex-wrap: wrap; margin-top: 30px; }.today-card { left: 20px; right: 20px; width: auto; bottom: 22px; }
    .dashboard-band, .content-view { padding: 52px 18px; }.section-heading, .page-title-row { align-items: flex-start; flex-direction: column; }.section-heading .text-button { align-self: flex-end; }.dashboard-grid { display: grid; grid-template-columns: 1fr; }.rank-teaser { grid-column: auto; display: block; }.mission-feature, .streak-panel, .rank-teaser { padding: 22px; }.mission-feature h3 { font-size: 28px; }
    .master-arena { grid-template-columns: 1fr; gap: 28px; padding: 44px 20px; }.master-arena-copy { grid-column: auto; }.master-arena h2 { font-size: 34px; }.master-progress, .daily-goal { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding: 22px 0 0; }.master-actions { flex-direction: column; }.master-actions button { width: 100%; }
    .trend-band { padding: 48px 20px; }.trend-evidence { grid-template-columns: 1fr; }.trend-evidence > div + div { border-left: 0; border-top: 1px solid rgba(43,49,44,.13); }
    .passage-grid { grid-template-columns: 1fr; }.passage-card { min-height: 325px; }
    .library-tools { grid-template-columns: 1fr; }.favorite-filter { width: 100%; }.library-count { grid-column: auto; }.library-toggle-row { flex-direction: column; }.tier-segmented button { flex: 1 1 30%; }
    .library-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }.detail-filters { grid-template-columns: 1fr; }
    .page-title-row h1 { font-size: 46px; }.segmented { width: 100%; }.segmented button { flex: 1; }
    .podium { gap: 5px; }.podium-person { padding: 14px 6px; }.podium-person strong { font-size: 13px; }.rank-row { grid-template-columns: 35px 1fr 76px; padding: 13px 12px; }.rank-row > :nth-child(4), .rank-row > :nth-child(5) { display: none; }
    .metric-grid { grid-template-columns: 1fr 1fr; }.metric-grid > div:nth-child(2) { border-right: 0; }.metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }.history-item { grid-template-columns: 1fr 55px 70px; }
    .overview-heading { align-items: flex-start; flex-direction: column; }.skill-bars { grid-template-columns: 1fr; }.journal-grid { grid-template-columns: 1fr; }.journal-section.wrong-section { grid-column: auto; }.wrong-list { grid-template-columns: 1fr; }.achievement-grid { grid-template-columns: 1fr; }
    .game-topbar { top: 62px; height: 62px; grid-template-columns: 40px 1fr 72px; gap: 10px; padding: 0 12px; }.game-progress { grid-template-columns: 1fr; gap: 4px; }.game-progress span { font-size: 9px; }.game-shell { padding: 20px 10px 60px; }.reading-panel, .quiz-panel { padding: 29px 20px; }.reading-panel::before { inset: 7px; }.reading-heading { align-items: flex-start; }.reading-heading h1 { font-size: 36px; }.reading-actions { flex-direction: column; align-items: end; }.prediction-badge { font-size: 9px !important; }.classical-text { font-size: 18px; line-height: 2; }.glossary-strip { grid-template-columns: 1fr; }.quiz-panel h2 { font-size: 23px; }.option-button { min-height: 56px; }
    .game-mode-picker { align-items: stretch; flex-direction: column; }.game-mode-picker .segmented { width: 100%; }.game-mode-picker .segmented button { flex: 1; }
    .mobile-nav { height: 66px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #f9f4e9; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }.mobile-nav button { border: 0; background: transparent; font-size: 9px; color: var(--muted); display: grid; place-content: center; gap: 2px; }.mobile-nav button span { font-family: var(--serif); font-size: 17px; }.mobile-nav button.active { color: var(--red); font-weight: 900; }
    footer { flex-direction: column; align-items: flex-start; padding-bottom: 85px; }
    .auth-dialog { padding: 30px 22px; }.result-dialog { padding: 38px 22px 28px; }.result-actions { flex-direction: column; }.result-actions button { width: 100%; }.toast { bottom: 82px; max-width: calc(100vw - 30px); text-align: center; }
    .result-card-dialog { padding: 22px 14px; }.card-dialog-actions { grid-template-columns: 1fr; }
    .mode-dialog { padding: 30px 20px; }.mode-choice-grid { grid-template-columns: 1fr; }.mode-choice-grid button { min-height: 135px; }
}

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