:root {
  --ink: #27352e;
  --muted: #718078;
  --paper: #fbfcf7;
  --canvas: #f1f5ed;
  --line: #dce6da;
  --green: #56866c;
  --green-dark: #35614b;
  --green-soft: #dfece0;
  --yellow: #f1c453;
  --yellow-soft: #fff3c9;
  --coral: #e98368;
  --coral-soft: #fce6df;
  --blue: #6c9bc5;
  --blue-soft: #e0edf7;
  --violet: #8e7ab9;
  --shadow: 0 14px 36px rgba(45, 76, 57, .09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; background:radial-gradient(circle at 88% 4%,rgba(207,228,207,.58),transparent 26%),linear-gradient(180deg,#f5f8f1 0,var(--canvas) 36%); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(86, 134, 108, .24); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .52; }
.is-hidden { display: none !important; }

.share-cover-probe { position:fixed; left:-10000px; top:0; width:500px; height:333px; opacity:.001; pointer-events:none; }
.login-screen { position:relative; min-height:100vh; display:grid; grid-template-columns:minmax(520px,1.12fr) minmax(440px,.88fr); overflow:hidden; background:linear-gradient(150deg,#fffdf5,#f1f7ed); }
.login-art { position:relative; overflow:hidden; min-height:100vh; background:url('/assets/login-sunrise-desktop.jpg?v=1') 48% center/cover no-repeat; }
.login-art::before { content:""; position:absolute; top:0;right:0;bottom:0;left:0; inset:0; background:linear-gradient(0deg,rgba(24,72,46,.43),rgba(24,72,46,.08) 30%,transparent 56%); }
.login-art::after { content:""; position:absolute; top:0;right:0;bottom:0;left:0; inset:0; box-shadow:inset -35px 0 80px rgba(245,248,240,.18); }
.login-art-copy { position:absolute; z-index:2; left:9%; bottom:9%; display:grid; gap:12px; color:white; text-shadow:0 5px 22px rgba(22,45,31,.35); }
.login-art-copy span { width:max-content; padding:7px 13px; border:1px solid rgba(255,255,255,.46); border-radius:999px; background:rgba(255,255,255,.16); backdrop-filter:blur(8px); font-size:12px; font-weight:800; letter-spacing:.12em; }
.login-art-copy strong { font-size:clamp(43px,5vw,76px); line-height:1.06; letter-spacing:-.05em; }
.login-art-copy small { font-size:14px; font-weight:700; letter-spacing:.18em; }
.login-card { align-self:center; justify-self:center; width:min(470px,82%); padding:46px; transform:translateY(-28px); border:1px solid var(--line); border-radius:34px; background:rgba(255,255,255,.88); backdrop-filter:blur(18px); box-shadow:0 30px 80px rgba(50,80,61,.15); }
.brand-lockup, .sidebar-brand { display: flex; align-items: center; gap: 13px; }
.brand-lockup strong, .sidebar-brand strong { display: block; font-size: 18px; }
.brand-lockup small, .sidebar-brand small { display: block; color: var(--muted); margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--green-soft); font-size: 24px; }
.login-card h1 { margin: 36px 0 8px; font-size: 34px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.login-trust { display:flex; justify-content:center; gap:18px; margin-top:22px; color:#789084; font-size:11px; font-weight:750; }
.login-legal { position:absolute; z-index:3; right:4.5%; bottom:16px; width:39%; text-align:center; color:#829087; font-size:10px; line-height:1.55; }
.login-legal p { margin:0 0 5px; }.login-legal a { display:inline-flex; align-items:center; gap:5px; color:#6d7f74; text-decoration:none; font-weight:700; }.login-legal a:hover { color:var(--green-dark); text-decoration:underline; }.login-legal img { width:16px; height:16px; object-fit:contain; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: #eef3ec; border-radius: 15px; }
.role-option { border: 0; border-radius: 11px; padding: 12px; background: transparent; cursor: pointer; font-weight: 800; }
.role-option.active { background: white; color: var(--green-dark); box-shadow: 0 4px 14px rgba(45,76,57,.08); }
.field-label { display: block; margin: 24px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.pin-input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: 18px; letter-spacing: .15em; }
.form-error { min-height: 22px; margin-top: 10px; color: #b64235; font-size: 13px; }

.app-shell { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: fixed; top:0;bottom:0;left:0; inset: 0 auto 0 0; z-index: 50; width: 238px; display: flex; flex-direction: column; padding: 28px 18px 20px; background: #f8faf5; border-right: 1px solid var(--line); }
.sidebar-brand { padding: 0 10px 24px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; overflow-x: hidden; padding: 7px 0; }
.nav-button { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; color: #5c6962; text-align: left; transition: .2s ease; }
.nav-button span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: #e9efea; font-size: 14px; font-weight: 900; }
.nav-button em { font-style: normal; font-weight: 750; }
.nav-button:hover { background: #edf3ec; transform: translateX(2px); }
.nav-button.active { background: var(--green); color: white; box-shadow: 0 8px 18px rgba(61,108,81,.2); }
.nav-button.active span { background: rgba(255,255,255,.2); }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 12px; background: var(--coral); color: white; text-align: center; line-height: 21px; font-size: 11px; }
.sidebar-footer { margin-top: auto; padding: 16px 6px 0; border-top: 1px solid var(--line); }
.quiet-button, .text-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-weight: 700; }
.quiet-button { width: 100%; padding: 10px; text-align: left; }

.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px,4vw,58px); border-bottom: 1px solid rgba(215,226,214,.8); background: rgba(241,245,237,.9); backdrop-filter: blur(16px); }
.topbar h2 { margin: 2px 0 0; font-size: 21px; }
.eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--green); }
.user-cluster { display: flex; align-items: center; gap: 12px; }
.balance-chip, .user-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.78); }
.balance-chip { height: 43px; padding: 0 14px; border-radius: 22px; }
.balance-chip small { color: var(--muted); }
.coin { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--yellow); color: #8b6419; font-size: 11px; font-weight: 900; box-shadow: inset 0 -2px rgba(176,121,23,.18); }
.user-chip { padding: 6px 11px 6px 7px; border-radius: 25px; }
.user-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--green-soft); }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.mobile-menu-button { display: none; }
.content-wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 70px; }
.page-view { display: none; animation: pageIn .32s ease; }
.page-view.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

.hero-panel { position: relative; display: grid; grid-template-columns: 1fr 290px; min-height: 285px; overflow: hidden; padding: 48px 54px; border-radius: var(--radius-xl); background: linear-gradient(125deg,#436f57 0%,#6b9e7e 58%,#9ac3a7 100%); color: white; box-shadow: var(--shadow); }
.hero-panel::before { content:""; position:absolute; width:420px; height:420px; right:-140px; top:-210px; border:70px solid rgba(255,255,255,.07); border-radius:50%; }
.hero-copy { z-index: 1; align-self: center; }
.hero-kicker { font-size: 10px; font-weight: 900; letter-spacing: .22em; color: #dcecdf; }
.hero-copy h1 { max-width: 560px; margin: 12px 0; font-size: clamp(34px,4.2vw,58px); line-height: 1.08; letter-spacing: -.05em; }
.hero-copy p { max-width: 520px; margin: 0 0 24px; color: rgba(255,255,255,.82); line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button { min-height: 44px; padding: 0 19px; border-radius: 13px; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button { border: 0; background: var(--green-dark); color: white; box-shadow: 0 8px 16px rgba(43,83,61,.18); }
.hero-panel .primary-button { background: white; color: var(--green-dark); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.hero-panel .secondary-button { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.1); color: white; }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(45,76,57,.15); }
.primary-button.wide { width: 100%; }
.primary-button.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.login-button { width: 100%; height: 54px; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.progress-orbit { position: relative; z-index: 1; display: grid; place-items: center; }
.progress-ring { --p: 0; width: 184px; height: 184px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#ffe08a calc(var(--p)*1%),rgba(255,255,255,.18) 0); box-shadow: 0 16px 40px rgba(29,70,47,.18); }
.progress-ring::after { content:""; position:absolute; width:146px; height:146px; border-radius:50%; background:#5c8e70; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.progress-ring span { z-index:1; text-align:center; }
.progress-ring strong, .progress-ring small { display:block; }
.progress-ring strong { font-size:34px; }
.progress-ring small { color:rgba(255,255,255,.72); margin-top:4px; }
.orbit-star { position:absolute; color:#ffe08a; animation:float 3s ease-in-out infinite; }
.star-a { top:24px; right:18px; font-size:24px; }.star-b { bottom:28px; left:14px; font-size:18px; animation-delay:-1.4s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(8deg); } }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:34px 4px 16px; }
.section-heading.compact { margin:0 0 18px; }
.section-heading h3 { margin:4px 0 0; font-size:22px; }
.section-heading p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.soft-chip { padding:9px 13px; border-radius:18px; background:var(--green-soft); color:var(--green-dark); font-size:12px; font-weight:850; }
.daily-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.task-card { position:relative; min-height:210px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:white; box-shadow:0 8px 24px rgba(45,76,57,.05); overflow:hidden; }
.task-card::after { content:""; position:absolute; width:110px; height:110px; border-radius:50%; right:-40px; top:-45px; background:var(--task-soft); }
.task-icon { position:relative; z-index:1; display:grid; place-items:center; width:45px; height:45px; border-radius:14px; background:var(--task-soft); font-size:20px; }
.task-card h4 { margin:20px 0 6px; font-size:18px; }.task-card p { margin:0; color:var(--muted); font-size:12px; }
.task-progress { height:7px; margin:20px 0 10px; border-radius:9px; background:#edf1eb; overflow:hidden; }.task-progress i { display:block; height:100%; width:var(--task-progress); border-radius:9px; background:var(--task-color); }
.task-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:var(--muted); }
.task-footer button { border:0; padding:7px 11px; border-radius:10px; background:var(--task-color); color:white; cursor:pointer; font-weight:800; }
.task-card.done { border-color:#bcd5c4; background:#fbfefb; }.task-card.done .task-footer button { background:var(--green-soft); color:var(--green-dark); }
.skeleton-grid:empty::before { content:"正在准备今日题目…"; grid-column:1/-1; padding:50px; text-align:center; color:var(--muted); }
.dashboard-lower { display:grid; grid-template-columns:1.3fr .7fr; gap:16px; margin-top:20px; }
.surface-card { padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:rgba(255,255,255,.88); box-shadow:0 7px 24px rgba(45,76,57,.05); }
.card-title { display:flex; gap:13px; align-items:center; }.card-title>span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--yellow-soft); }
.card-title h3,.card-title p { margin:0; }.card-title p { margin-top:4px; color:var(--muted); font-size:12px; }
.quick-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }.quick-row button { flex:1; min-width:110px; padding:13px; border:1px solid var(--line); border-radius:12px; background:#f8faf6; cursor:pointer; font-weight:800; }.quick-row button:hover { border-color:var(--green); color:var(--green-dark); }
.mini-list { display:grid; gap:9px; margin-top:16px; }.mini-row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px dashed var(--line); font-size:12px; }.mini-row strong.positive { color:var(--green); }.mini-row strong.negative { color:var(--coral); }.empty-mini,.empty-state { padding:22px; text-align:center; color:var(--muted); font-size:13px; }

.subject-hero { position:relative; min-height:205px; display:flex; align-items:center; justify-content:space-between; gap:30px; overflow:hidden; padding:38px 42px; border-radius:var(--radius-xl); box-shadow:var(--shadow); }
.subject-hero::after { content:""; position:absolute; width:220px; height:220px; right:-55px; bottom:-115px; border:44px solid rgba(255,255,255,.22); border-radius:50%; }
.subject-hero>div { position:relative; z-index:1; }.subject-icon { display:inline-grid; place-items:center; width:48px; height:48px; margin-right:10px; border-radius:16px; background:rgba(255,255,255,.7); font-size:21px; font-weight:900; }
.subject-hero h1 { margin:12px 0 8px; font-size:36px; letter-spacing:-.04em; }.subject-hero p { max-width:650px; margin:0; line-height:1.75; color:#56665d; }
.math-hero { background:linear-gradient(125deg,#f6d9cb,#fbefe7); }.english-hero { background:linear-gradient(125deg,#d7e8f6,#eaf4fb); }.poem-hero { background:linear-gradient(125deg,#e3eddf,#f4f0dc); }.sudoku-hero { background:linear-gradient(125deg,#e9e1f3,#f6eef7); }.photo-hero { background:linear-gradient(125deg,#dbeedf,#eef7ec); }.error-hero { background:linear-gradient(125deg,#f7ddd6,#fbefea); }.mall-hero { background:linear-gradient(125deg,#fff0c6,#fff8e4); }
.hero-number { font-size:120px; font-weight:950; opacity:.12; line-height:.8; }.feature-grid { display:grid; gap:18px; margin-top:22px; }.two-columns { grid-template-columns:1fr 1fr; }
.practice-card { padding:30px; border-radius:var(--radius-lg); background:white; border:1px solid var(--line); box-shadow:0 8px 26px rgba(45,76,57,.06); }.practice-card.coral { --accent:var(--coral); --soft:var(--coral-soft); }.practice-card.blue { --accent:var(--blue); --soft:var(--blue-soft); }
.card-tag { display:inline-block; padding:7px 10px; border-radius:12px; background:var(--soft); color:var(--accent); font-size:11px; font-weight:900; }.practice-illustration { margin:24px 0; padding:22px; border-radius:18px; background:var(--soft); text-align:center; font-size:clamp(25px,4vw,44px); font-weight:900; letter-spacing:.05em; }.practice-illustration b { color:var(--accent); }.practice-card h3 { margin:0 0 7px; font-size:23px; }.practice-card p { min-height:48px; margin:0 0 20px; color:var(--muted); line-height:1.7; }.practice-card .primary-button { background:var(--accent); }
.learning-tip { display:flex; gap:15px; margin-top:18px; padding:20px 24px; border:1px dashed #e3c35f; border-radius:18px; background:var(--yellow-soft); }.learning-tip>span { font-size:24px; }.learning-tip strong,.learning-tip p { display:block; margin:0; }.learning-tip p { margin-top:5px; color:#7b6b41; }
.word-showcase { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin-top:22px; }.word-tile { display:flex; flex-direction:column; align-items:center; gap:7px; min-height:185px; padding:25px 12px; border:1px solid var(--line); border-radius:20px; background:white; cursor:pointer; box-shadow:0 7px 24px rgba(45,76,57,.05); }.word-tile:hover { transform:translateY(-4px); border-color:#9dc1dd; }.word-tile span { font-size:50px; }.word-tile strong { font-size:21px; color:#3e6f98; }.word-tile small { color:var(--muted); }.phrase-card { position:relative; margin-top:18px; text-align:center; background:linear-gradient(110deg,#f3f8fc,#e5eff8); }.phrase-card h2 { margin:12px 0 5px; font-size:34px; color:#426f95; }.phrase-card p { margin:0; color:var(--muted); }.round-sound { width:46px; height:46px; border:0; border-radius:50%; background:var(--blue); color:white; cursor:pointer; font-size:18px; }.phrase-card .round-sound { position:absolute; right:25px; top:50%; transform:translateY(-50%); }
.poem-counter,.error-count { position:relative; z-index:1; padding:20px 24px; border-radius:20px; background:rgba(255,255,255,.55); text-align:center; }.poem-counter strong,.poem-counter small,.error-count strong,.error-count small { display:block; }.poem-counter strong,.error-count strong { font-size:34px; }.poem-counter small,.error-count small { color:var(--muted); }
.poem-reader { position:relative; display:grid; grid-template-columns:120px 1fr; gap:26px; margin-top:22px; padding:42px; border:1px solid #dfe7d6; border-radius:var(--radius-xl); background:#fffef8; box-shadow:0 12px 34px rgba(75,82,47,.07); }.poem-index { font:900 70px/1 Georgia,serif; color:#d8dfc9; }.poem-main { max-width:760px; text-align:center; }.poem-dynasty { display:inline-block; padding:5px 10px; border-radius:10px; background:#edf2e5; color:#6d7c56; font-size:11px; font-weight:850; }.poem-main h2 { margin:14px 0 5px; font:900 36px/1.3 "STKaiti","KaiTi",serif; }.poem-author { margin:0; color:#8d927d; }.poem-content { margin:28px 0; font:500 clamp(21px,3vw,30px)/2 "STKaiti","KaiTi",serif; white-space:normal; }.poem-meaning { padding:18px; border-radius:15px; background:#f5f3e7; text-align:left; color:#6d715f; line-height:1.8; font-size:13px; }.poem-actions { display:flex; justify-content:center; gap:10px; margin-top:22px; }
.segmented { display:flex; gap:5px; padding:5px; border-radius:15px; background:rgba(255,255,255,.55); }.segmented button { border:0; padding:11px 14px; border-radius:11px; background:transparent; cursor:pointer; font-weight:800; }.segmented button.active { background:var(--violet); color:white; }
.sudoku-layout { display:grid; grid-template-columns:minmax(400px,700px) minmax(220px,1fr); gap:20px; margin-top:22px; align-items:start; }.sudoku-card { padding:24px; border-radius:var(--radius-lg); background:white; border:1px solid var(--line); }.sudoku-meta { display:flex; justify-content:space-between; margin-bottom:18px; color:var(--muted); font-size:12px; }.sudoku-board { width:min(100%,500px); aspect-ratio:1; display:grid; margin:0 auto; border:3px solid #5d5174; border-radius:11px; overflow:hidden; background:#f8f6fb; }.sudoku-board.size-4 { grid-template-columns:repeat(4,1fr); }.sudoku-board.size-6 { grid-template-columns:repeat(6,1fr); }.sudoku-cell { position:relative; display:grid; place-items:center; border:1px solid #cfc9d9; background:#fff; cursor:pointer; font-size:clamp(17px,4vw,28px); font-weight:850; }.sudoku-cell.fixed { background:#ebe6f1; color:#4a405d; cursor:default; }.sudoku-cell.selected { background:#fff0c8; }.sudoku-cell.bad { background:#ffe0da; color:#b84638; }.size-4 .sudoku-cell:nth-child(4n+2){border-right:3px solid #5d5174}.size-4 .sudoku-cell:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid #5d5174}.size-6 .sudoku-cell:nth-child(6n+3){border-right:3px solid #5d5174}.size-6 .sudoku-cell:nth-child(n+7):nth-child(-n+12),.size-6 .sudoku-cell:nth-child(n+19):nth-child(-n+24){border-bottom:3px solid #5d5174}
.number-pad { display:flex; justify-content:center; gap:9px; margin:20px 0; }.number-pad button { width:46px; height:46px; border:1px solid #d8d0e3; border-radius:13px; background:#f3eff7; cursor:pointer; font-size:18px; font-weight:900; }.number-pad button:hover { background:var(--violet); color:white; }.sudoku-actions { display:flex; justify-content:center; gap:10px; }.rules-card h3 { margin-top:0; }.rules-card ol { padding-left:22px; line-height:2; color:var(--muted); }.rules-card p { padding:14px; border-radius:13px; background:var(--yellow-soft); color:#76673e; line-height:1.7; font-size:12px; }
.photo-layout { display:grid; grid-template-columns:minmax(340px,1fr) minmax(300px,.8fr); gap:20px; margin-top:22px; }.upload-card { padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:white; }.photo-dropzone { width:100%; min-height:340px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:20px; border:2px dashed #a9c8af; border-radius:20px; background:#f5faf3; cursor:pointer; overflow:hidden; }.photo-dropzone:hover { border-color:var(--green); }.camera-orb { display:grid; place-items:center; width:74px; height:74px; border-radius:50%; background:var(--green-soft); font-size:30px; }.photo-dropzone small { color:var(--muted); }.photo-dropzone img { display:none; max-width:100%; max-height:310px; border-radius:13px; object-fit:contain; }.photo-dropzone.has-image span,.photo-dropzone.has-image strong,.photo-dropzone.has-image small { display:none; }.photo-dropzone.has-image img { display:block; }.upload-card textarea { width:100%; min-height:84px; margin:14px 0; padding:13px; border:1px solid var(--line); border-radius:13px; resize:vertical; }.history-list { display:grid; gap:11px; max-height:500px; overflow:auto; }.history-item { display:grid; grid-template-columns:64px 1fr; gap:12px; align-items:center; padding:10px; border-radius:13px; background:#f7f9f5; }.history-item img { width:64px; height:64px; object-fit:cover; border-radius:10px; }.history-item strong,.history-item small { display:block; }.history-item small { margin-top:5px; color:var(--muted); }.status { display:inline-block; margin-top:6px; padding:4px 8px; border-radius:9px; font-size:10px; font-weight:850; }.status.pending { background:var(--yellow-soft); color:#8a671c; }.status.approved,.status.fulfilled { background:var(--green-soft); color:var(--green-dark); }.status.rejected { background:var(--coral-soft); color:#ad4a38; }
.error-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; margin-top:22px; }.error-card { padding:22px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 7px 24px rgba(45,76,57,.05); }.error-card header { display:flex; justify-content:space-between; gap:10px; }.subject-label { padding:5px 9px; border-radius:9px; background:var(--coral-soft); color:#ad4a38; font-size:10px; font-weight:900; }.mistake-count { color:var(--muted); font-size:11px; }.error-card h3 { min-height:52px; margin:17px 0; font-size:17px; line-height:1.55; }.error-card footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }.error-card footer small { color:var(--muted); }.empty-error { grid-column:1/-1; padding:70px 20px; text-align:center; border:1px dashed #b9cfbc; border-radius:24px; background:#f7fbf5; }.empty-error span { display:block; font-size:58px; }.empty-error h3 { margin:14px 0 7px; }.empty-error p { color:var(--muted); }

.game-page { width:100%; }.game-header { display:flex; justify-content:space-between; gap:25px; align-items:end; margin-bottom:18px; }.game-header h1 { margin:5px 0; font-size:34px; }.game-header p { margin:0; color:var(--muted); }.game-level-select { display:flex; align-items:center; gap:8px; }.game-level-select label { font-size:12px; color:var(--muted); }.game-level-select select,.game-start { min-height:44px; border-radius:12px; }.game-level-select select { padding:0 12px; border:1px solid var(--line); background:white; }.game-start { border:0; padding:0 18px; background:linear-gradient(135deg,#e0a13e,#c9772e); color:white; cursor:pointer; font-weight:900; box-shadow:0 8px 18px rgba(164,92,29,.22); }
.game-shell { overflow:hidden; border:1px solid #b8cab0; border-radius:24px; background:#394c3e; box-shadow:0 20px 54px rgba(41,64,48,.2); }.game-hud { min-height:88px; display:flex; align-items:center; gap:12px; padding:10px 15px; background:linear-gradient(180deg,#5d7352,#394b35); color:white; box-shadow:inset 0 -1px rgba(255,255,255,.08); }.sun-bank { display:flex; align-items:center; gap:7px; min-width:90px; padding:12px; border:1px solid rgba(255,224,120,.18); border-radius:13px; background:rgba(24,37,24,.5); }.sun-bank span { color:#ffd966; font-size:22px; filter:drop-shadow(0 0 5px rgba(255,214,79,.6)); }.sun-bank strong { font-size:19px; }.plant-cards { flex:1; display:flex; gap:8px; overflow-x:auto; padding:4px 3px; }.plant-card { position:relative; flex:0 0 72px; height:66px; padding:4px; border:2px solid #c9b46b; border-radius:11px; background:linear-gradient(#fff3c7,#e9d69e); cursor:pointer; overflow:hidden; transition:transform .16s,box-shadow .16s,filter .16s; touch-action:manipulation; }.plant-card.selected { border-color:#fff; box-shadow:0 0 0 3px #efc83c,0 6px 14px rgba(0,0,0,.22); transform:translateY(-3px); }.plant-card.cooldown:not(.selected) { filter:grayscale(.72) brightness(.78); }.plant-card .sprite { width:44px; height:44px; margin:0 auto; }.plant-card b { position:absolute; right:3px; bottom:2px; padding:2px 4px; border-radius:6px; background:#425137; color:#ffe783; font-size:9px; }.plant-card small { position:absolute; left:3px; bottom:2px; font-size:8px; color:#3d4c35; }.wave-meter { width:150px; }.wave-meter span { display:block; margin-bottom:6px; font-size:10px; }.wave-meter div { height:8px; border-radius:6px; background:rgba(0,0,0,.3); overflow:hidden; }.wave-meter i { display:block; width:0; height:100%; border-radius:6px; background:linear-gradient(90deg,#e0b452,#ffe480); transition:width .25s; }.game-audio-controls { display:flex; gap:5px; }.hud-button { min-width:44px; height:40px; padding:0 10px; border:1px solid rgba(255,255,255,.22); border-radius:10px; background:rgba(255,255,255,.1); color:white; cursor:pointer; touch-action:manipulation; }.hud-button:hover { background:rgba(255,255,255,.18); }.icon-hud { padding:0; font-size:17px; }.icon-hud.is-off { opacity:.55; }
.battlefield { position:relative; aspect-ratio:9/5.25; overflow:hidden; padding:2.8% 2.6%; background:linear-gradient(180deg,#d9c58d 0 2.8%,#769c4d 2.8% 97.2%,#aa8a56 97.2%); touch-action:manipulation; isolation:isolate; }.battlefield::before { content:""; position:absolute; z-index:0; inset:2.8% 2.6%; border:2px solid rgba(58,91,38,.28); box-shadow:inset 0 0 30px rgba(48,84,31,.18); pointer-events:none; }.battlefield::after { content:""; position:absolute; z-index:1; left:2.6%; right:2.6%; top:calc(2.8% + 20%); height:1px; background:rgba(255,255,255,.18); box-shadow:0 calc((100% - 1px)*1) rgba(255,255,255,.18),0 calc((100% - 1px)*2) rgba(255,255,255,.18),0 calc((100% - 1px)*3) rgba(255,255,255,.18); pointer-events:none; }.garden-decor { position:absolute; z-index:6; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:2.8%; height:74%; overflow:hidden; color:#fff0a9; font-size:clamp(11px,1.6vw,23px); text-shadow:0 18px #dce98a,0 -18px #fff0a9,0 36px #f1d668,0 -36px #f1d668; pointer-events:none; }.decor-left { left:0; }.decor-right { right:0; color:#d7ecc3; }.battlefield-grid,.game-entities,.game-pickups { position:absolute; inset:2.8% 2.6%; }.battlefield-grid { z-index:2; display:grid; grid-template-columns:repeat(9,1fr); grid-template-rows:repeat(5,1fr); }.battle-cell { min-width:0; min-height:0; padding:0; border:1px solid rgba(66,105,43,.16); background:rgba(139,190,83,.8); cursor:pointer; touch-action:manipulation; }.battle-cell.cell-1 { background:rgba(126,178,72,.88); }.battle-cell:hover { background:#b3d976; border-color:rgba(255,246,172,.72); }.battle-cell.can-plant { background:#c8df75; box-shadow:inset 0 0 0 2px rgba(255,244,147,.64); animation:cellReady .8s infinite alternate; }.game-entities { z-index:3; pointer-events:none; }.game-pickups { z-index:5; pointer-events:none; }.game-entity { position:absolute; transform:translate(-50%,-50%); transition:filter .2s; will-change:left; }.game-entity.plant { width:9.5%; height:18.5%; }.game-entity.enemy { width:10.5%; height:20%; filter:drop-shadow(0 4px 3px rgba(0,0,0,.25)); }.game-entity.hit { filter:brightness(1.65) saturate(.4); }.game-entity.slow { filter:hue-rotate(155deg) drop-shadow(0 0 4px #80dcff); }.sprite { background-image:url('/assets/game-sprites.webp'); background-size:400% 200%; background-repeat:no-repeat; }.game-entity .sprite { width:100%; height:100%; }.sprite-sun { background-position:0 0; }.sprite-seed { background-position:33.333% 0; }.sprite-frost { background-position:66.666% 0; }.sprite-gourd { background-position:100% 0; }.sprite-gremlin { background-position:0 100%; }.sprite-beetle { background-position:33.333% 100%; }.sprite-mole { background-position:66.666% 100%; }.sprite-troll { background-position:100% 100%; }.health-bar { position:absolute; left:10%; right:10%; top:-2px; height:4px; border-radius:4px; background:rgba(80,20,20,.5); overflow:hidden; }.health-bar i { display:block; height:100%; background:#7dd66d; }.projectile { position:absolute; width:1.8%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:#65b83d; box-shadow:0 0 6px #d5ff9f; }.projectile.frost { background:#7fdfff; box-shadow:0 0 8px #d8f8ff; }.falling-sun { position:absolute; z-index:5; width:clamp(46px,8.5%,68px); aspect-ratio:1; transform:translate(-50%,-50%); border:3px solid rgba(255,250,186,.72); border-radius:50%; background:radial-gradient(circle,#fff9bd 8%,#ffd85b 42%,#eda622 72%,#d47b11 100%); color:#86510b; box-shadow:0 0 0 5px rgba(255,223,94,.18),0 0 22px #ffe278; cursor:pointer; font-size:clamp(20px,2.4vw,31px); animation:sunPulse .75s infinite alternate; pointer-events:auto; touch-action:none; user-select:none; -webkit-tap-highlight-color:transparent; }.falling-sun::after { content:"+25"; position:absolute; left:50%; bottom:-11px; transform:translateX(-50%); padding:1px 4px; border-radius:5px; background:rgba(82,67,25,.78); color:white; font-size:8px; font-weight:900; }.falling-sun:active { filter:brightness(1.25); transform:translate(-50%,-50%) scale(.86); }.falling-sun.plant-sun { box-shadow:0 0 0 5px rgba(255,244,154,.2),0 0 18px #fff1a4; }.game-overlay { position:absolute; z-index:9; inset:0; display:grid; place-items:center; padding:18px; background:rgba(31,52,37,.32); backdrop-filter:blur(2px); }.game-overlay.is-hidden { display:none; }.game-overlay>div { max-width:430px; padding:25px 32px; border:1px solid rgba(255,255,255,.65); border-radius:20px; background:rgba(255,251,229,.95); text-align:center; box-shadow:0 15px 40px rgba(0,0,0,.2); }.game-overlay strong,.game-overlay span { display:block; }.game-overlay strong { font-size:25px; color:#416144; }.game-overlay span { margin-top:7px; color:#73806e; line-height:1.6; }.game-legend { display:flex; flex-wrap:wrap; gap:10px 20px; padding:14px 18px; background:#f7efd0; color:#5b5c42; font-size:11px; }.game-legend span { white-space:nowrap; }
.sprite-melon,.sprite-bomb,.sprite-butter,.sprite-lightning,.sprite-healer,.sprite-pot,.sprite-knight,.sprite-bat,.sprite-golem,.sprite-wizard { background-image:url('/assets/game-extra-sprites.webp'); background-size:500% 200%; background-repeat:no-repeat; }
.sprite-melon { background-position:0 0; }.sprite-bomb { background-position:25% 0; }.sprite-butter { background-position:50% 0; }.sprite-lightning { background-position:75% 0; }.sprite-healer { background-position:100% 0; }
.sprite-pot { background-position:0 100%; }.sprite-knight { background-position:25% 100%; }.sprite-bat { background-position:50% 100%; }.sprite-golem { background-position:75% 100%; }.sprite-wizard { background-position:100% 100%; }
.projectile.melon { width:2.8%; background:#4d992f; box-shadow:0 0 0 3px rgba(193,236,92,.28); }.projectile.butter { width:2.2%; border-radius:7px; background:#ffd958; box-shadow:0 0 7px #fff0a0; }.game-entity.stunned::after { content:"★"; position:absolute; left:50%; top:-12%; color:#ffe36b; font-size:15px; animation:stunSpin .6s linear infinite; }.game-effect { position:absolute; width:12%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; pointer-events:none; }.game-effect.boom { background:radial-gradient(circle,#fff48b 0 14%,#f18635 35%,rgba(210,62,35,.45) 58%,transparent 70%); animation:boomOut .55s ease-out; }.game-effect.spark { border:4px solid #eaf8ff; box-shadow:0 0 17px #8cecff,inset 0 0 12px #bdf5ff; animation:boomOut .28s ease-out; }
@keyframes boomOut { from{transform:translate(-50%,-50%) scale(.25);opacity:1}to{transform:translate(-50%,-50%) scale(1.6);opacity:0} } @keyframes stunSpin { to{transform:rotate(360deg)} }
@keyframes sunPulse { to { transform:translate(-50%,-50%) scale(1.1) rotate(7deg); } }
@keyframes cellReady { to { filter:brightness(1.13); } }
.plant-cards { scrollbar-width:none; }
.plant-cards::-webkit-scrollbar { display:none; }

.big-balance { padding:18px 27px !important; border-radius:20px; background:rgba(255,255,255,.65); text-align:center; }.big-balance span,.big-balance strong { display:block; }.big-balance strong { font-size:38px; color:#9b691a; }.mall-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin-top:22px; }.mall-item { position:relative; overflow:hidden; padding:25px 20px; border:1px solid #eadfbf; border-radius:20px; background:white; text-align:center; box-shadow:0 8px 24px rgba(89,69,25,.06); }.mall-item::before { content:""; position:absolute; width:100px; height:100px; right:-45px; top:-50px; border-radius:50%; background:#fff4d5; }.mall-emoji { position:relative; font-size:52px; }.mall-item h3 { margin:15px 0 7px; }.mall-item p { min-height:38px; margin:0; color:var(--muted); font-size:12px; line-height:1.55; }.mall-price { margin:18px 0 13px; font-size:22px; font-weight:900; color:#9b691a; }.mall-item .primary-button { background:#d69b34; }.order-card { margin-top:18px; }.order-list { display:grid; gap:8px; }.order-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:14px; padding:12px 14px; border-radius:12px; background:#f8faf6; }.order-row small { color:var(--muted); }

.parent-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }.parent-heading h1 { margin:4px 0; font-size:36px; }.parent-heading p { margin:0; color:var(--muted); }.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:24px 0; }.metric-card { padding:20px; border:1px solid var(--line); border-radius:18px; background:white; }.metric-card small,.metric-card strong { display:block; }.metric-card small { color:var(--muted); }.metric-card strong { margin-top:7px; font-size:27px; }.admin-tabs { display:flex; gap:7px; overflow:auto; padding:6px; border-radius:16px; background:#e8eee6; }.admin-tabs button { flex:0 0 auto; border:0; padding:11px 17px; border-radius:11px; background:transparent; cursor:pointer; font-weight:800; }.admin-tabs button.active { background:white; color:var(--green-dark); box-shadow:0 4px 13px rgba(45,76,57,.08); }.admin-panel { display:none; margin-top:18px; }.admin-panel.active { display:block; }.admin-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.admin-columns .surface-card>h3 { margin-top:0; }.admin-list { display:grid; gap:11px; max-height:560px; overflow:auto; }.admin-row { display:grid; grid-template-columns:70px 1fr; gap:12px; padding:12px; border-radius:14px; background:#f7f9f5; }.admin-row.no-image { grid-template-columns:1fr; }.admin-row img { width:70px; height:70px; border-radius:10px; object-fit:cover; }.admin-row h4,.admin-row p { margin:0; }.admin-row p { margin-top:5px; color:var(--muted); font-size:11px; }.row-actions { display:flex; gap:6px; margin-top:9px; }.row-actions button { border:0; padding:6px 9px; border-radius:8px; cursor:pointer; font-size:11px; font-weight:800; }.approve { background:var(--green); color:white; }.reject { background:var(--coral-soft); color:#ad4a38; }.item-editor-list { display:grid; gap:10px; }.item-editor { display:grid; grid-template-columns:58px 1.2fr 2fr 100px 95px 80px; gap:9px; align-items:center; padding:11px; border-radius:14px; background:#f7f9f5; }.item-editor input { min-width:0; height:40px; padding:0 9px; border:1px solid var(--line); border-radius:10px; }.item-editor label { display:flex; align-items:center; gap:5px; font-size:11px; }.settings-form { display:grid; gap:13px; }.settings-form label { display:grid; gap:6px; color:var(--muted); font-size:12px; font-weight:750; }.settings-form input { height:43px; padding:0 12px; border:1px solid var(--line); border-radius:11px; color:var(--ink); }.settings-form .primary-button { justify-self:start; }.subheading { margin-top:28px !important; }.narrow-card { max-width:540px; }

.modal { position:fixed; z-index:100; inset:0; display:none; place-items:center; padding:18px; }.modal.open { display:grid; }.modal-backdrop { position:absolute; inset:0; background:rgba(35,49,40,.58); backdrop-filter:blur(7px); }.quiz-dialog,.confirm-dialog { position:relative; width:min(720px,100%); max-height:min(760px,94vh); overflow:auto; border-radius:28px; background:var(--paper); box-shadow:0 28px 80px rgba(25,45,33,.3); }.quiz-dialog header { display:grid; grid-template-columns:50px 1fr auto; gap:14px; align-items:center; padding:24px 28px 16px; }.quiz-dialog h2 { margin:3px 0 0; }.icon-button { width:40px; height:40px; border:1px solid var(--line); border-radius:12px; background:white; cursor:pointer; font-size:22px; }.quiz-progress-text { padding:8px 12px; border-radius:13px; background:var(--green-soft); color:var(--green-dark); font-size:12px; font-weight:900; }.quiz-progress { height:7px; margin:0 28px; border-radius:8px; background:#e4eae2; overflow:hidden; }.quiz-progress i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--green),#8fb494); transition:width .3s; }.quiz-content { position:relative; padding:38px 44px 42px; }.quiz-content>.round-sound { position:absolute; right:44px; top:25px; }.quiz-question { min-height:105px; display:grid; place-items:center; padding:20px; border-radius:20px; background:white; border:1px solid var(--line); text-align:center; font-size:clamp(25px,5vw,40px); font-weight:900; line-height:1.4; }.quiz-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:19px; }.quiz-option { min-height:68px; padding:12px 18px; border:2px solid var(--line); border-radius:16px; background:white; cursor:pointer; font-size:16px; font-weight:800; }.quiz-option:hover:not(:disabled) { border-color:var(--green); transform:translateY(-2px); }.quiz-option.correct { border-color:#62a375; background:#e8f5e9; color:#356c47; }.quiz-option.wrong { border-color:#d86c58; background:#fce7e2; color:#a94837; }.quiz-feedback { min-height:0; margin-top:15px; padding:0; border-radius:13px; color:var(--muted); line-height:1.65; text-align:center; }.quiz-feedback.show { padding:13px; background:var(--yellow-soft); }.next-button { display:block; margin:17px auto 0; }.confirm-dialog { width:min(410px,100%); padding:34px; text-align:center; }.confirm-icon { font-size:48px; }.confirm-dialog h2 { margin:12px 0 6px; }.confirm-dialog p { color:var(--muted); line-height:1.7; }.confirm-dialog>div:last-child { display:flex; justify-content:center; gap:10px; margin-top:22px; }
.toast-region { position:fixed; z-index:200; right:20px; top:20px; display:grid; gap:9px; }.toast { min-width:260px; max-width:380px; padding:14px 17px; border-radius:14px; background:#293b31; color:white; box-shadow:0 12px 34px rgba(25,45,33,.25); animation:toastIn .25s ease; }.toast.error { background:#9c4235; }.toast.success { background:#35664b; }@keyframes toastIn { from{opacity:0;transform:translateY(-8px)} }

.resource-word small { overflow:hidden; max-width:100%; text-overflow:ellipsis; white-space:nowrap; }
.book-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.book-tile { display:flex; gap:12px; align-items:center; min-height:90px; padding:17px; border:1px solid var(--line); border-radius:17px; background:white; }
.book-tile>span { font-size:29px; }.book-tile strong,.book-tile small { display:block; }.book-tile strong { line-height:1.35; }.book-tile small { margin-top:5px; color:var(--muted); font-size:10px; }
.ai-tip { margin:12px 0; padding:12px 14px; border-radius:12px; background:#f1f6eb; color:#526b55; font-size:12px; line-height:1.65; }.ai-tip b { display:block; margin-bottom:3px; }
.weekly-report-card { display:flex; justify-content:space-between; align-items:center; gap:25px; margin-bottom:20px; }.weekly-report-card h3 { margin:4px 0 7px; }.weekly-report-card p { max-width:760px; margin:0; color:var(--muted); line-height:1.75; white-space:pre-line; }

@media (max-width: 1060px) {
  .app-shell { grid-template-columns:88px minmax(0,1fr); }.sidebar { width:88px; padding:22px 10px; }.sidebar-brand { justify-content:center; padding:0 0 20px; }.sidebar-brand>div,.nav-button em,.sidebar-footer { display:none; }.nav-button { justify-content:center; padding:0; }.nav-button span { width:38px;height:38px; }.nav-badge { position:absolute; top:4px; right:4px; }.main-area { grid-column:2; }.daily-grid,.mall-grid { grid-template-columns:repeat(2,1fr); }.content-wrap { width:calc(100% - 36px); }.item-editor { grid-template-columns:48px 1fr 1.5fr 85px; }.item-editor label,.item-editor button { grid-column:span 1; }
}

@media (max-width: 760px) {
  body { padding-bottom:calc(76px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#f7faf4 0,#eef3eb 46%,#f5f7f2 100%); }.login-screen { display:block; min-height:100dvh; padding-bottom:30px; }.login-art { display:block; min-height:245px; height:34dvh; background-image:url('/assets/login-sunrise-mobile.jpg?v=1'); background-position:center; }.login-art::before { background:linear-gradient(0deg,rgba(24,72,46,.48),rgba(24,72,46,.06) 55%,transparent 78%); }.login-art-copy { left:24px; bottom:38px; gap:7px; }.login-art-copy strong { font-size:34px; }.login-art-copy span { font-size:9px; }.login-art-copy small { font-size:10px; }.login-card { position:relative; z-index:4; width:min(92%,470px); margin:-24px auto 0; padding:28px 23px; border-radius:28px; box-shadow:0 24px 60px rgba(52,78,60,.2); }.login-card h1 { margin-top:25px; font-size:27px; }.login-trust { gap:10px; font-size:9px; }
  .app-shell { display:block; }.sidebar { position:fixed; inset:auto 0 0; z-index:80; width:auto; height:calc(72px + env(safe-area-inset-bottom)); display:block; padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border:0; border-top:1px solid rgba(207,220,207,.88); background:rgba(250,252,248,.94); backdrop-filter:blur(20px) saturate(1.3); box-shadow:0 -10px 30px rgba(43,69,53,.1); }.sidebar-brand,.sidebar-footer { display:none; }.main-nav { height:58px; flex-direction:row; gap:4px; overflow-x:auto; padding:0 2px; scrollbar-width:none; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }.main-nav::-webkit-scrollbar { display:none; }.nav-button { flex:0 0 66px; min-height:56px; flex-direction:column; gap:2px; padding:3px 4px; border-radius:14px; font-size:10px; scroll-snap-align:center; touch-action:manipulation; }.nav-button span { width:29px;height:29px;font-size:12px;border-radius:10px; }.nav-button em { display:block; white-space:nowrap; font-size:9px; }.nav-button:hover { transform:none; }.nav-button.active { background:linear-gradient(150deg,#5e8e70,#3e6d53); box-shadow:0 7px 16px rgba(53,98,71,.2); }.nav-badge { top:2px;right:7px; }.main-area { min-width:0; }.topbar { height:66px; padding:0 12px; gap:9px; background:rgba(247,250,244,.88); border-color:rgba(213,224,211,.8); }.topbar>div:nth-child(2) { display:block; min-width:0; margin-right:auto; }.topbar .eyebrow { font-size:8px; letter-spacing:.12em; }.topbar h2 { margin-top:1px; max-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:17px; }.mobile-menu-button { display:none; }.user-cluster { gap:6px; }.user-chip { min-width:42px; min-height:42px; justify-content:center; padding:3px; border-radius:50%; }.user-chip>div { display:none; }.user-avatar { width:34px;height:34px; }.balance-chip { height:40px; padding:0 9px; gap:6px; }.balance-chip small { display:none; }.coin { width:23px;height:23px; }.content-wrap { width:calc(100% - 24px); padding:16px 0 30px; }
  .hero-panel { grid-template-columns:1fr 106px; min-height:222px; padding:27px 22px; border-radius:24px; box-shadow:0 15px 36px rgba(45,76,57,.14); }.hero-copy h1 { font-size:29px; }.hero-copy p { font-size:12px; margin-bottom:17px; line-height:1.7; }.progress-ring { width:102px;height:102px; }.progress-ring::after { width:80px;height:80px; }.progress-ring strong { font-size:21px; }.orbit-star { display:none; }.hero-actions .secondary-button { display:none; }
  .section-heading { margin-top:25px; }.section-heading h3 { font-size:20px; }.daily-grid { grid-template-columns:1fr 1fr; gap:10px; }.task-card { min-height:190px; padding:17px; }.task-card h4 { margin-top:14px; }.dashboard-lower,.two-columns,.photo-layout,.error-grid,.admin-columns { grid-template-columns:1fr; }.ledger-card { display:none; }
  .subject-hero { min-height:170px; padding:24px 21px; align-items:flex-start; flex-direction:column; gap:14px; border-radius:23px; }.subject-hero h1 { font-size:27px; }.subject-hero p { font-size:12px; }.hero-number { display:none; }.subject-hero>.primary-button { align-self:stretch; }.word-showcase { grid-template-columns:1fr 1fr; gap:10px; }.word-tile { min-height:150px;padding:17px 8px; }.word-tile span { font-size:40px; }.phrase-card h2 { font-size:25px; }.phrase-card .round-sound { position:static; transform:none; margin-top:15px; }
  .poem-reader { grid-template-columns:1fr; padding:25px 19px; }.poem-index { display:none; }.poem-main h2 { font-size:30px; }.poem-content { font-size:21px; line-height:1.9; }.poem-actions { flex-direction:column; }
  .sudoku-layout { grid-template-columns:1fr; }.rules-card { display:none; }.sudoku-card { padding:15px; }.sudoku-board { width:100%; }.sudoku-cell { font-size:21px; }.segmented { width:100%; }.segmented button { flex:1; }.photo-dropzone { min-height:270px; }.history-card { order:2; }.error-card h3 { min-height:auto; }
  .game-header { align-items:stretch; flex-direction:column; gap:14px; }.game-header h1 { font-size:29px; }.game-header p { font-size:12px; line-height:1.6; }.game-level-select { width:100%; }.game-level-select select { flex:1; }.game-shell { margin:0 -12px; border-width:1px 0; border-radius:0; box-shadow:0 12px 32px rgba(41,64,48,.16); }.game-hud { min-height:73px; flex-wrap:wrap; gap:6px; padding:7px 8px; }.sun-bank { order:1; min-width:62px; height:43px; padding:7px; }.sun-bank span { font-size:19px; }.sun-bank strong { font-size:16px; }.plant-cards { order:2; min-width:calc(100% - 154px); gap:6px; }.plant-card { flex-basis:56px;height:56px;border-radius:9px; }.plant-card .sprite { width:36px;height:36px; }.plant-card small { display:none; }.wave-meter { display:none; }.game-audio-controls { order:3; margin-left:auto; }.game-audio-controls .hud-button { min-width:38px;width:38px; }.game-hud>#pauseGameButton { order:4; min-width:50px; }.hud-button { height:40px;padding:0 6px; }.battlefield { aspect-ratio:1.5; padding:2.8% 1.7%; }.battlefield::before,.battlefield-grid,.game-entities,.game-pickups { left:1.7%;right:1.7%; }.garden-decor { display:none; }.game-entity.enemy { width:12%;height:18.5%; }.game-entity.plant { width:10.5%;height:17%; }.falling-sun { width:clamp(48px,12%,62px); }.game-overlay>div { padding:20px 22px;border-radius:17px; }.game-overlay strong { font-size:21px; }.game-overlay span { font-size:12px; }.game-legend { gap:7px 12px; padding:11px 12px; font-size:9px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }.game-legend span { flex:0 0 auto; }
  .mall-grid,.metric-grid { grid-template-columns:1fr 1fr; gap:10px; }.mall-item { padding:20px 12px; }.mall-emoji { font-size:42px; }.order-row { grid-template-columns:1fr auto; }.order-row small { grid-column:1/-1; }.parent-heading { align-items:flex-start; }.parent-heading h1 { font-size:30px; }.admin-tabs { margin:0 -12px; border-radius:0; }.item-editor { grid-template-columns:44px 1fr 78px; }.item-editor input:nth-of-type(2) { grid-column:1/-1; }.item-editor label,.item-editor button { grid-column:auto; }
  .quiz-dialog { border-radius:24px 24px 0 0; align-self:end; max-height:92vh; }.modal { padding:0; }.quiz-dialog header { padding:18px 17px 13px; }.quiz-progress { margin:0 17px; }.quiz-content { padding:26px 17px 28px; }.quiz-question { min-height:95px; }.quiz-options { grid-template-columns:1fr; gap:9px; }.quiz-option { min-height:56px; }.quiz-content>.round-sound { right:20px;top:14px; }.toast-region { left:12px;right:12px;top:12px; }.toast { min-width:0;max-width:none; }
}

@media (max-width: 760px) {
  .book-grid { grid-template-columns:1fr 1fr; }
  .book-tile { padding:13px; min-height:78px; }
  .weekly-report-card { display:grid; }
  .weekly-report-card .primary-button { justify-self:start; }
}

@media (max-width: 390px) {
  .hero-panel { grid-template-columns:1fr; min-height:210px; }.progress-orbit { display:none; }.daily-grid,.mall-grid,.metric-grid { grid-template-columns:1fr; }.task-card { min-height:158px; }.word-showcase { grid-template-columns:1fr 1fr; }.user-role { display:none; }.topbar h2 { max-width:82px; }.game-hud { align-items:center; }.plant-cards { min-width:calc(100% - 68px); }.game-audio-controls { margin-left:68px; }.battlefield { aspect-ratio:1.38; }.falling-sun { width:48px; }
}

.poem-reader { margin-top:0; }
.sudoku-card,.game-shell { scroll-margin-top:70px; }

@media (min-width:761px) and (max-height:780px) {
  .login-card { padding:38px 42px; transform:translateY(-45px); }
  .login-card h1 { margin-top:28px; }
  .login-legal { bottom:6px; font-size:9px; }
}

@media (max-width:760px) {
  .login-card { transform:none; }
  .login-legal { position:static; width:min(92%,470px); margin:20px auto 0; padding:0 10px; font-size:9px; }
  .login-legal p { margin-bottom:6px; }
  .poem-reader { padding-top:22px; }
  .poem-main h2 { margin-top:0; }
  .poem-author { margin-top:7px; font-size:13px; }
  .poem-content { margin:22px 0; }
  .game-hud { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:7px; min-height:122px; padding:8px; }
  .game-hud .sun-bank { grid-column:1; grid-row:1; order:initial; }
  .game-hud .game-audio-controls { grid-column:3; grid-row:1; order:initial; margin-left:0; }
  .game-hud>#pauseGameButton { grid-column:4; grid-row:1; order:initial; }
  .game-hud .plant-cards { grid-column:1/-1; grid-row:2; order:initial; width:100%; min-width:0; padding:3px 0 5px; }
  .game-hud .plant-card { flex-basis:64px; height:60px; }
  .game-hud .plant-card .sprite { width:40px; height:40px; }
}

/* 10.0 · 更紧凑的学习首屏、账号入口与家长管理台 */
.share-cover-probe { width:600px; height:600px; }
.login-art-copy { left:auto; right:7%; justify-items:end; text-align:right; }
.primary-button,.secondary-button,.game-start,.row-actions button { white-space:nowrap; }
.user-cluster { position:relative; }
.user-chip { border:1px solid var(--line); cursor:pointer; color:var(--ink); text-align:left; }
.user-avatar { overflow:hidden; flex:0 0 auto; }
.user-avatar img,.avatar-preview img { width:100%; height:100%; object-fit:cover; }
.user-copy { min-width:0; }
.user-copy strong,.user-copy small { display:block; }
.user-copy strong { font-size:13px; }
.user-copy small { margin-top:2px; color:var(--muted); font-size:10px; }
.account-caret { color:#8a988f; font-size:12px; }
.account-menu { position:absolute; z-index:90; right:0; top:calc(100% + 10px); width:220px; padding:10px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.97); box-shadow:0 18px 44px rgba(39,64,48,.18); }
.account-menu>div { padding:8px 10px 11px; }
.account-menu strong,.account-menu small { display:block; }
.account-menu small { margin-top:3px; color:var(--muted); font-size:10px; }
.account-menu button { width:100%; min-height:40px; border:0; border-radius:11px; background:#edf3ec; color:var(--green-dark); cursor:pointer; font-weight:850; }
.app-shell.parent-mode { grid-template-columns:minmax(0,1fr); }
.app-shell.parent-mode .sidebar { display:none; }
.app-shell.parent-mode .main-area { grid-column:1; }
.app-shell.parent-mode .content-wrap { width:min(1120px,calc(100% - 48px)); }

#view-math .feature-grid,#view-english .word-showcase,#view-photos .photo-layout { margin-top:0; }
.practice-launch { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding:15px 17px 15px 20px; border:1px solid #c9deed; border-radius:18px; background:linear-gradient(115deg,#eef7fd,#e2f0fa); box-shadow:0 8px 24px rgba(65,112,148,.08); }
.practice-launch strong,.practice-launch small { display:block; }
.practice-launch small { margin-top:4px; color:#668093; }
.practice-launch .primary-button { min-width:185px; background:linear-gradient(135deg,#527fa4,#3c6b90); }
.page-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; padding:11px 13px 11px 17px; border:1px solid #dfd9e8; border-radius:17px; background:rgba(255,255,255,.72); color:var(--muted); font-size:12px; }
#view-sudoku .sudoku-layout { margin-top:0; }

.compact-hero { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; min-height:118px; overflow:hidden; padding:20px 23px; border-radius:22px; box-shadow:var(--shadow); }
.compact-hero::after { content:""; position:absolute; right:-38px; bottom:-68px; width:150px; height:150px; border:28px solid rgba(255,255,255,.22); border-radius:50%; }
.compact-hero-icon { position:relative; z-index:1; display:grid; place-items:center; width:52px; height:52px; border-radius:17px; background:rgba(255,255,255,.74); font-size:22px; font-weight:900; }
.compact-hero-copy { position:relative; z-index:1; min-width:0; }
.compact-hero h1 { margin:4px 0 3px; font-size:26px; letter-spacing:-.035em; }
.compact-hero p { margin:0; overflow:hidden; color:#59685f; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.compact-stat { position:relative; z-index:2; min-width:108px; padding:11px 15px; border:1px solid rgba(255,255,255,.55); border-radius:17px; background:rgba(255,255,255,.68); text-align:right; }
.compact-stat strong,.compact-stat small { display:block; }
.compact-stat strong { font-size:30px; line-height:1; }
.compact-stat small { margin-top:5px; color:var(--muted); font-size:10px; white-space:nowrap; }
.mall-hero { background:linear-gradient(125deg,#fff0c6,#fff8e4); }
.mall-hero .compact-stat strong { color:#9b691a; }
.error-hero { background:linear-gradient(125deg,#f7ddd6,#fbefea); }
.error-hero .compact-stat strong { color:#ad4a38; }

.game-shell { position:relative; }
.game-broadcast { position:absolute; z-index:14; top:90px; left:2.6%; right:2.6%; height:31px; overflow:hidden; border:1px solid rgba(255,232,135,.42); border-radius:0 0 12px 12px; background:rgba(43,62,38,.88); color:#fff2ae; opacity:0; pointer-events:none; transform:translateY(-7px); transition:opacity .2s,transform .2s; }
.game-broadcast.show { opacity:1; transform:none; }
.game-broadcast span { position:absolute; top:0; left:100%; min-width:max-content; padding:7px 18px; font-size:11px; font-weight:900; letter-spacing:.06em; }
.game-broadcast.show span { animation:broadcastRun 5.4s linear forwards; }
@keyframes broadcastRun { to { transform:translateX(calc(-100vw - 100%)); } }

.parent-heading { align-items:center; }
.parent-heading p { white-space:nowrap; }
.parent-heading .secondary-button { flex:0 0 auto; min-width:88px; }
.metric-grid { margin:17px 0; }
.metric-card { position:relative; min-height:88px; overflow:hidden; padding:15px 17px; }
.metric-card::after { content:""; position:absolute; right:-18px; bottom:-25px; width:64px; height:64px; border-radius:50%; background:var(--green-soft); opacity:.65; }
.metric-card strong { position:relative; z-index:1; margin-top:5px; font-size:25px; }
.weekly-report-card { padding:19px 21px; }
.weekly-report-card .primary-button { flex:0 0 auto; }
.item-editor { grid-template-columns:70px minmax(130px,1.15fr) minmax(180px,1.7fr) 90px auto 72px; padding:13px; }
.editor-field { display:grid !important; gap:5px !important; min-width:0; color:var(--muted); font-size:10px !important; font-weight:800; }
.editor-field small { padding-left:3px; }
.editor-field input { width:100%; }
.editor-icon input { text-align:center; font-size:20px; }
.editor-active { white-space:nowrap; }
.security-grid { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:16px; }
.profile-card,.pin-card { position:relative; overflow:hidden; }
.profile-card h3,.pin-card h3 { margin:5px 0 6px; }
.profile-card p,.pin-card p { margin:0 0 17px; color:var(--muted); font-size:12px; line-height:1.6; }
.pin-badge { position:absolute; top:18px; right:18px; padding:6px 9px; border-radius:10px; background:var(--green-soft); color:var(--green-dark); font-size:10px; font-weight:900; }
.child-pin-card .pin-badge { background:var(--yellow-soft); color:#8b681f; }
.avatar-form { display:grid; grid-template-columns:62px 1fr; gap:11px 13px; align-items:end; }
.avatar-preview { grid-row:1/3; display:grid; place-items:center; width:62px; height:62px; overflow:hidden; border:3px solid white; border-radius:50%; background:var(--green-soft); box-shadow:0 6px 18px rgba(52,91,65,.16); font-size:28px; }
.avatar-form label { display:grid; gap:5px; color:var(--muted); font-size:10px; font-weight:800; }
.avatar-form select { width:100%; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:10px; background:white; }
.file-picker { min-height:38px; display:flex !important; align-items:center; justify-content:center; border:1px dashed #9fbaa7; border-radius:10px; background:#f3f8f1; color:var(--green-dark) !important; cursor:pointer; }
.file-picker input { display:none; }
.avatar-form .primary-button { grid-column:1/-1; }

@media (max-width:760px) {
  .login-art { background-position:center; }
  .login-art-copy { left:auto; right:20px; bottom:30px; max-width:48%; justify-items:end; text-align:right; }
  .login-art-copy strong { font-size:28px; }
  .user-chip { min-width:42px; min-height:42px; }
  .user-chip .user-copy,.user-chip .account-caret { display:none; }
  .account-menu { position:fixed; top:70px; right:12px; width:min(240px,calc(100vw - 24px)); }
  body.parent-mode { padding-bottom:0; }
  .app-shell.parent-mode .content-wrap { width:calc(100% - 24px); padding-top:13px; }
  .practice-card { padding:20px; }
  .practice-illustration { margin:15px 0; padding:17px; }
  .practice-card p { min-height:auto; margin-bottom:15px; }
  .learning-tip { padding:14px 16px; font-size:12px; }
  .practice-launch { align-items:stretch; flex-direction:column; gap:12px; padding:16px; }
  .practice-launch .primary-button { width:100%; min-width:0; }
  .word-showcase { margin-top:0; }
  .page-tools { align-items:stretch; flex-direction:column; gap:9px; margin-bottom:10px; padding:10px; }
  .page-tools>span { padding:0 4px; font-size:10px; }
  .compact-hero { grid-template-columns:42px minmax(0,1fr) 84px; gap:10px; min-height:100px; padding:14px; border-radius:20px; }
  .compact-hero-icon { width:42px; height:42px; border-radius:14px; font-size:18px; }
  .compact-hero h1 { font-size:21px; }
  .compact-hero .eyebrow { display:none; }
  .compact-hero p { font-size:10px; }
  .compact-stat { min-width:84px; padding:10px 11px; border-radius:14px; }
  .compact-stat strong { font-size:25px; }
  .mall-grid { margin-top:12px; }
  #view-mall .mall-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mall-item { padding:16px 10px; }
  .mall-item p { min-height:34px; }
  .mall-price { margin:12px 0 10px; font-size:19px; }
  .error-grid { margin-top:12px; }
  .photo-layout { gap:12px; }
  .upload-card { padding:15px; }
  .photo-dropzone { min-height:235px; }
  .game-broadcast { top:124px; left:1.7%; right:1.7%; height:27px; }
  .game-broadcast span { padding:5px 14px; font-size:10px; }
  .parent-heading { align-items:center; gap:8px; }
  .parent-heading .eyebrow { display:none; }
  .parent-heading h1 { margin:0; font-size:23px; }
  .parent-heading p { margin-top:3px; font-size:9px; }
  .parent-heading .secondary-button { min-width:74px; min-height:37px; padding:0 10px; font-size:11px; }
  .parent-mode .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:12px 0; }
  .metric-card { min-height:70px; padding:10px 8px; border-radius:14px; }
  .metric-card small { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
  .metric-card strong { margin-top:4px; font-size:19px; }
  .weekly-report-card { gap:12px; margin-bottom:13px; padding:16px; }
  .weekly-report-card h3 { font-size:18px; }
  .weekly-report-card p { font-size:11px; line-height:1.6; }
  .weekly-report-card .primary-button { width:100%; justify-self:stretch; }
  .admin-tabs { margin:0; padding:4px; border-radius:13px; }
  .admin-tabs button { flex:1 0 auto; padding:9px 11px; font-size:11px; }
  .admin-panel { margin-top:12px; }
  .admin-panel .surface-card { padding:16px; }
  .row-actions { flex-wrap:wrap; }
  .row-actions button { flex:1 1 110px; }
  .item-editor { grid-template-columns:54px minmax(0,1fr) 68px; gap:8px; padding:10px; }
  .item-editor .editor-icon { grid-column:1; }
  .item-editor .editor-name { grid-column:2/4; }
  .item-editor .editor-description { grid-column:1/4; }
  .item-editor .editor-price { grid-column:1/3; }
  .item-editor .editor-active { grid-column:3; align-self:end; min-height:40px; justify-content:center; }
  .item-editor>[data-save-item] { grid-column:1/4; width:100%; }
  .security-grid { grid-template-columns:1fr; gap:12px; }
  .profile-card p,.pin-card p { margin-bottom:13px; }
}

/* v10.1: stable game rendering and clearer parent report */
.battlefield-grid,.game-entities,.game-pickups { contain:layout paint; }
.battle-cell.can-plant { animation:none; }
.game-entity { transform:translate3d(-50%,-50%,0); transition:filter .12s; }
.projectile { transform:translate3d(-50%,-50%,0); will-change:left; }
.falling-sun { width:clamp(56px,8.5%,76px); transform:translate3d(-50%,-50%,0); }
.falling-sun:active { filter:brightness(1.18); transform:translate3d(-50%,-50%,0); }
@keyframes sunPulse { to { filter:brightness(1.08); box-shadow:0 0 0 7px rgba(255,223,94,.2),0 0 27px #ffe278; } }
.weekly-report-card>div { min-width:0; }
.weekly-report-card p { font-size:15px; line-height:1.8; overflow-wrap:anywhere; }

@media (max-width:760px) {
  .falling-sun { width:clamp(48px,12%,62px); }
  .weekly-report-card p { font-size:13px; line-height:1.8; }
}
@media (max-width:410px) { .falling-sun { width:48px; } }

/* Safari 12 uses the JPEG login art; modern browsers keep the smaller WebP files. */
@supports (aspect-ratio:1 / 1) {
  .login-art { background-image:url('/assets/login-sunrise-desktop.webp?v=1'); }
  @media (max-width:760px) { .login-art { background-image:url('/assets/login-sunrise-mobile.webp?v=1'); } }
}

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

/* v10.4: literature shelves and iOS 12/Safari 12 layout fallbacks. */
.literature-shelf { margin-top:20px; padding:24px; border:1px solid #dfe7d6; border-radius:24px; background:linear-gradient(145deg,#fffef9,#f3f6eb); box-shadow:0 12px 34px rgba(62,79,50,.07); }
.shelf-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.shelf-heading h3 { margin:4px 0; font-size:24px; }.shelf-heading p { margin:0; color:var(--muted); font-size:12px; }
.literature-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(5,auto); grid-auto-flow:column; gap:9px 13px; }
.literature-link { min-width:0; min-height:54px; display:grid; grid-template-columns:31px minmax(0,1fr) auto; align-items:center; gap:9px; padding:9px 11px; border:1px solid #dce5d5; border-radius:14px; background:rgba(255,255,255,.82); color:var(--ink); cursor:pointer; text-align:left; }
.literature-link:hover,.literature-link.active { border-color:#7fa489; background:#eaf3e8; box-shadow:0 5px 14px rgba(57,94,68,.09); }.literature-link span { display:grid; place-items:center; width:29px; height:29px; border-radius:9px; background:#f1ead4; color:#8b7134; font:800 11px/1 Georgia,serif; }.literature-link strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }.literature-link small { color:#829083; font-size:9px; white-space:nowrap; }
.shelf-pagination { display:flex; justify-content:center; gap:10px; margin-top:18px; }.shelf-pagination button { min-width:128px; }.shelf-pagination button:disabled { opacity:.42; cursor:not-allowed; }
.literature-badge { display:inline-block; padding:5px 10px; border-radius:10px; background:#edf2e5; color:#6d7c56; font-size:10px; font-weight:850; }
.classical-reader .poem-main { max-width:900px; }.classical-content { max-height:520px; overflow:auto; padding:0 12px; text-align:left; font-size:20px; line-height:2; }.rare-characters { margin-top:18px; padding:17px; border:1px solid #e8d9b7; border-radius:15px; background:#fff8e8; text-align:left; }.rare-characters>strong { display:block; margin-bottom:11px; color:#795f2d; }.rare-characters>div { display:flex; flex-wrap:wrap; gap:8px; }.rare-characters span { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:2px 6px; min-width:118px; padding:8px 10px; border-radius:11px; background:white; }.rare-characters b { font:900 20px/1 "STKaiti","KaiTi",serif; }.rare-characters i { color:#b06f3b; font-size:11px; font-style:normal; }.rare-characters small { grid-column:1/-1; color:var(--muted); font-size:9px; }

/* Properties below are ignored by Safari 12 without these physical fallbacks. */
.modal,.modal-backdrop,.game-overlay { top:0;right:0;bottom:0;left:0; }
.quiz-dialog { width:720px; max-width:100%; max-height:94vh; }
.confirm-dialog { width:410px; max-width:100%; }
.sudoku-board { height:500px; }
.battlefield { height:700px; }
.battlefield::before,.battlefield-grid,.game-entities,.game-pickups { top:2.8%;right:2.6%;bottom:2.8%;left:2.6%; }
.falling-sun { width:68px; height:68px; }
.projectile { height:3.1%; }.projectile.melon { height:4.8%; }.projectile.butter { height:3.8%; }
.game-effect { height:20.5%; }
.sprite { background-image:url('/assets/game-sprites.png?v=1'); }
.sprite-melon,.sprite-bomb,.sprite-butter,.sprite-lightning,.sprite-healer,.sprite-pot,.sprite-knight,.sprite-bat,.sprite-golem,.sprite-wizard { background-image:url('/assets/game-extra-sprites.png?v=1'); }

@media (max-width:760px) {
  .sudoku-board { height:calc(100vw - 54px); max-height:500px; }
  .battlefield { height:66vw; }
  .falling-sun { width:58px; height:58px; }
  .literature-shelf { padding:17px 13px; border-radius:20px; }.shelf-heading { align-items:flex-start; }.shelf-heading p { max-width:250px; }
  .literature-catalog { gap:7px; }.literature-link { min-height:50px; grid-template-columns:25px minmax(0,1fr); gap:6px; padding:7px; }.literature-link span { width:25px; height:25px; }.literature-link small { display:none; }.literature-link strong { font-size:12px; }
  .classical-content { max-height:58vh; padding:0 2px; font-size:17px; line-height:1.9; }.rare-characters span { min-width:calc(50% - 4px); }.shelf-pagination button { min-width:0; flex:1; }
}
@media (max-width:410px) { .falling-sun { width:48px; height:48px; }.literature-shelf { margin-left:-2px; margin-right:-2px; }.shelf-heading .soft-chip { font-size:8px; padding:6px; } }

@supports (aspect-ratio:1 / 1) {
  .sudoku-board,.battlefield { height:auto; }
  .falling-sun,.projectile,.game-effect { height:auto; }
  .sprite { background-image:url('/assets/game-sprites.webp'); }
  .sprite-melon,.sprite-bomb,.sprite-butter,.sprite-lightning,.sprite-healer,.sprite-pot,.sprite-knight,.sprite-bat,.sprite-golem,.sprite-wizard { background-image:url('/assets/game-extra-sprites.webp'); }
}

.legacy-safari .poem-actions button+button,.legacy-safari .shelf-pagination button+button { margin-left:10px; }
.legacy-safari .game-audio-controls button+button { margin-left:5px; }
.legacy-safari .rare-characters span+span { margin-left:4px; margin-bottom:4px; }
@media (max-width:760px) {
  .sidebar { top:auto;right:0;bottom:0;left:0; }
  .legacy-safari .main-nav .nav-button+.nav-button { margin-left:4px; }
}
