/* Erscheinungsbild: dunkler, ruhiger Grund, eine kräftige Akzentfarbe und klare Signalfarben.
   Alle Farben und Abstände kommen aus diesen Variablen. */
:root {
  color-scheme: dark;
  --bg: #0f1226;
  --surface: #1a1e3a;
  --surface-2: #252a4d;
  --surface-3: #323865;
  --text: #f2f3ff;
  --muted: #a9aed0;
  --accent: #6d4dff;
  --accent-strong: #5a3af0;
  --accent-soft: #b9a8ff;
  --good: #3ddc97;
  --bad: #ff7a7a;
  --gold: #ffc24b;
  --sky: #5cc8ff;
  --on-signal: #0f1226;
  --print-ink: #111;
  --print-line: #999;
  /* Zwölf Farben für die Quartette auf Papier, die man leicht benennen kann:
     rot, blau, grün, orange, lila, türkis, pink, braun, gelb, grau, schwarz, hellblau. */
  --print-v0: #c62828;
  --print-v1: #1565c0;
  --print-v2: #2e7d32;
  --print-v3: #ef6c00;
  --print-v4: #6a1b9a;
  --print-v5: #00838f;
  --print-v6: #d81b60;
  --print-v7: #5d4037;
  --print-v8: #fdd835;
  --print-v9: #757575;
  --print-v10: #111111;
  --print-v11: #81d4fa;
  --print-on-light: #111111;
  --print-paper: #ffffff;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }

body {
  background: radial-gradient(1000px 500px at 80% -10%, #2a2360 0%, transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

#app { max-width: 880px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 56px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
a { color: var(--accent-soft); }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.hidden { display: none !important; }
.section-title { margin: 28px 4px 12px; font-size: 1.05rem; color: var(--muted); font-weight: 700; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

/* Knöpfe */
button, .button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 14px;
  padding: 12px 20px;
  min-height: 50px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  transition: transform .1s, background .15s;
}
button:hover:not(:disabled), .button:hover { background: var(--accent-strong); }
button:active:not(:disabled), .button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, .button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}
button.secondary, .button.secondary { background: var(--surface-3); }
button.secondary:hover:not(:disabled), .button.secondary:hover { background: #3f4678; }
button.good { background: var(--good); color: var(--on-signal); }
button.good:hover:not(:disabled) { background: #5fe7ad; }
button.danger { background: var(--bad); color: var(--on-signal); }
button.danger:hover:not(:disabled) { background: #ff9393; }
button.big { width: 100%; font-size: 1.15rem; min-height: 62px; }
button.link { background: none; color: var(--muted); font-weight: 600; padding: 8px 4px; min-height: 44px; }
button.link:hover:not(:disabled) { background: none; color: var(--text); }
.icon { width: 22px; height: 22px; flex: none; }

input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text);
  min-height: 50px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 140px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
textarea.plain { min-height: 84px; font: inherit; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
summary { cursor: pointer; font-weight: 700; min-height: 32px; }

/* Start */
.hero { background: linear-gradient(135deg, #5a3af0 0%, #8f4dff 60%, #c054e8 100%); }
.hero h1 { margin-bottom: 2px; }
.hero p { color: #efeaff; }
.hero .cta { background: #fff; color: #2a1a8a; }
.hero .cta:hover:not(:disabled) { background: #efeaff; }
.hero .stats { margin: 16px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stat { background: rgba(255, 255, 255, .13); border-radius: var(--radius-s); padding: 10px 4px; }
.card:not(.hero) .stat { background: var(--surface-2); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; }
.stat span { font-size: .78rem; }
.all-done { background: rgba(255, 255, 255, .16); border-radius: var(--radius-s); padding: 14px; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile {
  background: var(--surface);
  color: var(--text);
  min-height: 128px;
  text-align: left;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile:hover:not(:disabled), a.tile:hover { background: var(--surface-2); }
.tile strong { font-size: 1.08rem; font-weight: 800; }
.tile small { font-weight: 500; color: var(--muted); font-size: .86rem; line-height: 1.3; }
.chip { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; color: var(--on-signal); background: var(--tint, var(--accent-soft)); }
.chip.emoji { font-size: 1.45rem; }
.tile.locked .chip { background: var(--surface-3); color: var(--muted); }

/* Level */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 4px 0 14px; }
.steps i { height: 8px; border-radius: 8px; background: var(--surface-3); }
.steps i.done { background: var(--good); }
.steps i.current { background: var(--gold); }
.level-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.level-list li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-s); background: var(--surface-2); }
.level-list li.future { opacity: .62; }
.level-list .num { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: var(--surface-3); border-radius: 10px; font-weight: 800; }
.level-list li.done .num { background: var(--good); color: var(--on-signal); }
.level-list li.current .num { background: var(--gold); color: var(--on-signal); }
.level-list small { display: block; color: var(--muted); }
.examples { list-style: none; padding: 0; display: grid; gap: 6px; }
.examples li { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }

.bar { height: 12px; background: var(--surface-3); border-radius: 12px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--good); width: 0; border-radius: 12px; transition: width .25s; }
.bar.timer > i { background: var(--sky); transition: width .25s linear; }

/* Übungen */
.word { font-size: 2.1rem; font-weight: 800; text-align: center; margin: 6px 0 14px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.choices { display: grid; gap: 10px; }
.choices button { background: var(--surface-2); font-weight: 600; }
.choices button:hover:not(:disabled) { background: var(--surface-3); }
.choices button.right, .choices button.right:disabled { background: var(--good); color: var(--on-signal); opacity: 1; }
.choices button.wrong, .choices button.wrong:disabled { background: var(--bad); color: var(--on-signal); opacity: 1; }

.feedback { padding: 12px 14px; border-radius: var(--radius-s); margin: 0 0 12px; background: var(--surface-2); }
.feedback.good { background: rgba(61, 220, 151, .16); color: #b5f5d8; }
.feedback.bad { background: rgba(255, 122, 122, .15); color: #ffd0d0; }
.feedback.hint { background: rgba(255, 194, 75, .16); color: #ffe5ae; }

.game-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 800; }
.swipe-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 28px 16px;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 14px 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .12s, background .12s;
  overflow-wrap: anywhere;
}
.swipe-card.lean-yes { background: rgba(61, 220, 151, .3); }
.swipe-card.lean-no { background: rgba(255, 122, 122, .3); }
.judge-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.judge-buttons .no { background: var(--bad); color: var(--on-signal); }
.judge-buttons .yes { background: var(--good); color: var(--on-signal); }

/* Zeitmaschine */
.time-cue { display: inline-block; color: var(--gold); font-weight: 800; }
.time-sentence { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 22px 0; overflow-wrap: anywhere; }
.time-gap { display: inline-block; min-width: 3.4em; border-bottom: 3px solid var(--accent-soft); }
.time-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.time-options button { min-height: 66px; font-size: 1.1rem; background: var(--surface-3); }

/* Verb-Quartett */
.quartet-example { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quartet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.quartet-card { flex-direction: column; gap: 2px; min-height: 76px; padding: 8px; background: var(--surface-2); font-size: 1.05rem; overflow-wrap: anywhere; }
.quartet-card:hover:not(:disabled) { background: var(--surface-3); }
.quartet-card small { font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--kind); }
.quartet-card.kind-base { --kind: var(--sky); }
.quartet-card.kind-past { --kind: var(--gold); }
.quartet-card.kind-participle { --kind: #ff9ecb; }
.quartet-card.kind-de { --kind: var(--good); }
.quartet-card.selected, .quartet-card.selected:hover:not(:disabled) { background: var(--accent); }
.quartet-card.selected small { color: #fff; }

/* Verb-Quartett auf Papier: 47 x 66 mm, sechzehn Felder auf jedem A4-Bogen */
.print-verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 320px; overflow: auto; }
.print-verbs label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; padding: 4px 0; }
.print-verbs input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.print-check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 0; }
.print-check input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.print-preview { overflow-x: auto; }
.print-sheet { display: grid; grid-template-columns: repeat(4, 47mm); grid-auto-rows: 66mm; justify-content: center; width: 188mm; margin: 0 auto 16px; background: #fff; color: var(--print-ink); }
.print-card { border: .3mm dashed var(--print-line); padding: 2.5mm; display: flex; flex-direction: column; overflow: hidden; }
.print-card.verb-0 { --kind: var(--print-v0); }
.print-card.verb-1 { --kind: var(--print-v1); }
.print-card.verb-2 { --kind: var(--print-v2); }
.print-card.verb-3 { --kind: var(--print-v3); }
.print-card.verb-4 { --kind: var(--print-v4); }
.print-card.verb-5 { --kind: var(--print-v5); }
.print-card.verb-6 { --kind: var(--print-v6); }
.print-card.verb-7 { --kind: var(--print-v7); }
.print-card.verb-8 { --kind: var(--print-v8); }
.print-card.verb-9 { --kind: var(--print-v9); }
.print-card.verb-10 { --kind: var(--print-v10); }
.print-card.verb-11 { --kind: var(--print-v11); }
.print-card.verb-8, .print-card.verb-11 { --kind-ink: var(--print-on-light); }
.print-kind { display: flex; justify-content: space-between; align-items: center; gap: 1mm; background: var(--kind); color: var(--kind-ink, #fff); font-size: 7.5pt; font-weight: 800; padding: 1mm 1.5mm; border-radius: 1.2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-label { flex: 1; text-align: center; }
.print-corner { display: flex; flex-direction: column; align-items: center; min-width: 9mm; line-height: 1; }
.print-picto { display: grid; place-items: center; width: 9mm; height: 9mm; border-radius: 1.5mm; background: var(--print-paper); font-size: 15pt; }
.print-picto.text { font-size: 6.5pt; color: var(--print-ink); overflow-wrap: anywhere; text-align: center; }
.print-symbol { font-size: 6pt; margin-top: .4mm; }
.print-word { flex: 1; display: grid; place-items: center; font-size: 16pt; font-weight: 800; text-align: center; line-height: 1.1; overflow-wrap: anywhere; }
.print-forms { list-style: none; margin: 0; padding: 1.2mm 0 0; border-top: .3mm solid var(--print-line); font-size: 7pt; line-height: 1.3; }
.print-forms li.now { font-weight: 800; }
.print-forms li span { font-weight: 700; }
.print-rules { grid-column: span 2; font-size: 8pt; line-height: 1.3; }
.print-rules h3 { font-size: 10.5pt; margin: 0 0 1.5mm; }
.print-rules p { margin: 0 0 1.2mm; }

/* Listen und Formular */
.list-link { background: none; color: var(--text); padding: 4px 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.list-link:hover:not(:disabled) { background: none; color: var(--accent-soft); }
.form-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.block { display: block; }
.nowrap { white-space: nowrap; }

/* Themenwahl */
.topic-group { margin: 14px 0 6px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.topic { display: flex; width: 100%; justify-content: flex-start; gap: 12px; text-align: left; font-weight: 600; background: var(--surface-2); padding: 8px 10px; margin-bottom: 6px; }
.topic:hover:not(:disabled) { background: var(--surface-3); }
.topic .num { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: var(--surface-3); border-radius: 10px; font-weight: 800; }
.topic.mastered .num { background: var(--good); color: var(--on-signal); }
.topic.current .num { background: var(--gold); color: var(--on-signal); }
.topic small { display: block; color: var(--muted); font-weight: 500; }

/* Wortpakete */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pack { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: 16px; padding: 12px; }
.pack.on { box-shadow: inset 0 0 0 2px var(--good); }
.pack small { flex: 1; }
.pack button { min-height: 44px; padding: 8px; font-size: .92rem; }

/* Auswertung in der Elternansicht */
.meter { display: grid; gap: 4px; }
.meter-label { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.meter-value { color: var(--muted); white-space: nowrap; }
.meter-bar { height: 8px; background: var(--surface-3); border-radius: 8px; overflow: hidden; }
.meter-bar > i { display: block; height: 100%; background: var(--accent-soft); border-radius: 4px; }
.day-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 90px; align-items: end; border-bottom: 1px solid var(--surface-3); }
.day-column { height: 100%; display: flex; align-items: flex-end; }
.day-column > i { display: block; width: 100%; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.day-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: .8rem; }
.table-scroll { overflow-x: auto; }
table.analysis { font-size: .9rem; }
.num-cell { text-align: right !important; white-space: nowrap; }
.current-row td { background: var(--surface-2); }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.status-mastered, .status-secure, .status-confirmed { background: rgba(61, 220, 151, .16); color: #b5f5d8; }
.status-building { background: rgba(92, 200, 255, .14); color: #c9ecff; }
.status-shaky, .status-slipped { background: rgba(255, 194, 75, .16); color: #ffe5ae; }

/* Sprechprobe */
.record-button.recording, .record-button.recording:hover:not(:disabled) { background: var(--bad); color: var(--on-signal); }

/* Satzschlange */
.snake-built { min-height: 1.5em; margin: 12px 0 8px; font-weight: 700; text-align: center; color: var(--good); }
.snake-board { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; background: var(--surface-2); border-radius: 14px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.snake-word { position: absolute; display: grid; place-items: center; background: var(--surface-3); color: var(--text); border-radius: 7px; font-size: clamp(.68rem, 2.4vw, .9rem); font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.snake-seg { position: absolute; background: var(--good); border-radius: 30%; transform: scale(.9); }
.snake-seg.head { background: var(--gold); z-index: 1; }
.snake-notice { text-align: center; color: var(--muted); font-size: .92rem; min-height: 2.6em; margin: 8px 0; }
.snake-pad { display: grid; grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(2, 54px); gap: 6px; justify-content: center; margin-bottom: 8px; }
.snake-pad button { padding: 0; min-height: 0; font-size: 1.3rem; }
.pad-up { grid-column: 2; grid-row: 1; }
.pad-left { grid-column: 1; grid-row: 2; }
.pad-down { grid-column: 2; grid-row: 2; }
.pad-right { grid-column: 3; grid-row: 2; }

/* Hör-Blitz */
.listen-box { display: grid; place-items: center; margin: 22px 0; }
.listen-button { background: var(--surface-3); min-height: 70px; padding: 14px 26px; font-size: 1.1rem; }

/* Codeknacker */
.code-word { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2rem; letter-spacing: .22em; text-align: center; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 6px; }
.code-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.code-tile { min-height: 58px; padding: 0; font-size: 1.4rem; background: var(--surface-3); }
.code-tile:disabled { opacity: .2; }

/* Links */
.link-box { background: var(--surface-2); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; white-space: pre-wrap; }
.qr { width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 14px; }
.qr svg { display: block; width: 100%; height: 100%; }

table.preview { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.preview td, table.preview th { border-bottom: 1px solid var(--surface-3); padding: 8px; text-align: left; }
.scroll { overflow: auto; max-height: 340px; }

/* Familien-Tabu */
.taboo-word { font-size: 2.5rem; font-weight: 800; text-align: center; margin: 4px 0 12px; overflow-wrap: anywhere; }
.taboo-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.taboo-list li { background: rgba(255, 122, 122, .15); color: #ffd0d0; border-radius: 12px; text-align: center; padding: 10px; font-weight: 700; font-size: 1.1rem; }
.timer-big { font-size: 2.2rem; font-weight: 800; text-align: center; color: var(--sky); }
.player-row { display: grid; grid-template-columns: 1fr 125px 50px; gap: 8px; align-items: center; margin-bottom: 8px; }
.player-row button { padding: 0; }
.tabu-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tabu-actions button { padding: 12px 4px; font-size: .95rem; }
.stars { font-size: 2.6rem; text-align: center; color: var(--gold); letter-spacing: 6px; }

/* Spielproben */
.probe-note { background: rgba(92, 200, 255, .12); color: #c9ecff; border-radius: var(--radius-s); padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; }
.hud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .92rem; }
.pill.energy { background: rgba(255, 194, 75, .18); color: var(--gold); }
.goal { font-weight: 700; margin-bottom: 12px; }

.map { display: grid; gap: 3px; margin: 0 auto 14px; }
/* Karte und Knöpfe passen ohne Scrollen auf den Bildschirm, auch auf dem iPad im Querformat. */
.expedition .map { width: min(100%, max(280px, calc(100vh - var(--expedition-chrome)))); width: min(100%, max(280px, calc(100dvh - var(--expedition-chrome)))); }
.expedition { --expedition-chrome: 275px; padding: 14px 20px; }
.expedition h1 { font-size: 1.4rem; margin: 0; }
.expedition .hud { margin: 6px 0 10px; }
.expedition-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.expedition-controls button { min-height: 54px; padding: 8px 10px; line-height: 1.2; }
.expedition-message { min-height: calc(2 * 1.45em + 20px); padding: 10px 14px; margin-bottom: 10px; font-size: .95rem; }
.expedition .probe-note { margin: 12px 0 0; }
.tile-cell {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  font-size: clamp(.95rem, 3.4vw, 1.5rem);
  line-height: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tile, #2f7a64);
}
.tile-cell:hover:not(:disabled) { background: var(--tile, #2f7a64); filter: brightness(1.15); }
.tile-cell:disabled { opacity: 1; }
.tile-cell.unseen { --tile: #20254a; color: var(--muted); }
.tile-cell.grass { --tile: #2f7a64; }
.tile-cell.forest { --tile: #1f5f4c; }
.tile-cell.stone { --tile: #58607f; }
.tile-cell.water { --tile: #1d4f8f; }
.tile-cell.camp, .tile-cell.chest, .tile-cell.npc { --tile: #6b57c9; }
.tile-cell.player { box-shadow: inset 0 0 0 3px var(--gold); }
.tile-cell.reach:not(.player) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }

.garden { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.plot { min-height: 118px; flex-direction: column; background: #243f3a; border-radius: 16px; padding: 10px 6px; gap: 4px; font-weight: 600; }
.plot:hover:not(:disabled) { background: #2d4f49; }
.plot.ripe { background: #2f7a64; box-shadow: inset 0 0 0 2px var(--good); }
.plot .glyph { font-size: 2.2rem; line-height: 1.1; }
.plot small { font-size: .78rem; font-weight: 600; color: #c8e8df; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lot { background: var(--surface-2); border-radius: 16px; padding: 12px; text-align: center; }
.lot .glyph { font-size: 2.2rem; display: block; }
.lot.empty .glyph { opacity: .35; filter: grayscale(1); }
.lot button { width: 100%; margin-top: 8px; min-height: 44px; padding: 8px; font-size: .9rem; }

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.place { flex-direction: column; min-height: 110px; background: var(--surface-2); gap: 4px; }
.place:hover:not(:disabled) { background: var(--surface-3); }
.place .glyph { font-size: 2rem; }
.place-banner { position: relative; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--surface-2); }
.place-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.place-banner.slot-morning::after { background: rgba(255, 200, 140, .14); }
.place-banner.slot-afternoon::after { background: rgba(255, 160, 80, .1); }
.place-banner.slot-evening::after { background: rgba(40, 30, 110, .42); }
.speech { background: var(--surface-2); border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.speaker { color: var(--accent-soft); font-weight: 800; margin-bottom: 4px; }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(6, 8, 22, .7); display: flex; align-items: flex-end; justify-content: center; z-index: 10; padding: 12px; overflow: auto; }
.sheet { background: var(--surface); border-radius: 24px; padding: 20px; width: 100%; max-width: 620px; max-height: calc(100vh - 24px); overflow: auto; box-shadow: var(--shadow); }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --text: #000; --muted: #333; }
  body { background: #fff; color: #000; }
  button, .button, .no-print { display: none !important; }
  .card { box-shadow: none; padding: 0; }
  #app:has(.print-sheet) { max-width: none; padding: 0; margin: 0; }
  .print-preview { overflow: visible; }
  .print-sheet { margin: 0 auto; break-after: page; break-inside: avoid; }
  .print-sheet:last-child { break-after: auto; }
}
@page { size: A4 portrait; margin: 10mm; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.check-card { border: 1px solid var(--accent); }
.sentence-issues { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.report-link { display: block; margin-top: 8px; font-size: .9rem; }
.grade-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.placement-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
