@charset "UTF-8";
/* Guia de Zelda com o visual do vargas.com.br: mesmas cores, fonte e painéis de vidro de src/index.css.
   Escuro é o padrão; o claro vale quando a pessoa escolhe (data-theme="light", a mesma escolha do site). */
:root {
  --void: #070a12;
  --graphite: #0b101b;
  --raised: #101726;
  --line: rgb(255 255 255 / 0.10);
  --edge: #6b7385;
  --hover: rgb(255 255 255 / 0.06);
  --ink: #e9edf6;
  --ink-soft: #c2c9d8;
  --ink-muted: #a7b0c2;
  --electric: #1f5eff;
  --spark: #4d7dff;
  --signal: #93b4ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --glow: rgb(31 94 255 / 0.22);
  --glow-2: rgb(124 77 255 / 0.13);
  --glass: rgb(16 23 38 / 0.94);
  --glass-clear: rgb(148 170 255 / 0.07);
  --glass-line: rgb(255 255 255 / 0.13);
  --glass-shine: rgb(255 255 255 / 0.09);
  --glass-shadow: rgb(0 0 0 / 0.55);
  --tint: rgb(31 94 255 / 0.12);
  --map-bg: #0b101b;
  --map-grid: rgb(255 255 255 / 0.05);
  --map-card: #121a2c;
  --map-card-line: rgb(255 255 255 / 0.16);
  --map-ink: #e9edf6;
  --map-word: #8792a8;
  --map-link: rgb(255 255 255 / 0.28);
  --map-arrow: #93b4ff;
  --map-node: #1f5eff;
  --map-node-off: #4a556b;
  --map-ring: #070a12;
  --map-label: #101726;
  --map-desert: rgb(251 191 36 / 0.10);
  --map-mount: rgb(167 176 194 / 0.13);
  --map-forest: rgb(74 222 128 / 0.09);
  --map-lake: rgb(77 125 255 / 0.24);
  --map-river: rgb(77 125 255 / 0.4);
  --body-size: 17px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --void: #eef1f6;
  --graphite: #e4e8ef;
  --raised: #f7f9fc;
  --line: rgb(11 15 26 / 0.12);
  --hover: rgb(11 15 26 / 0.05);
  --ink: #0b0f1a;
  --ink-soft: #2b3445;
  --ink-muted: #4a5568;
  --spark: #1f5eff;
  --signal: #1747c9;
  --ok: #166534;
  --warn: #92400e;
  --danger: #b91c1c;
  --glow: rgb(31 94 255 / 0.12);
  --glow-2: rgb(124 77 255 / 0.08);
  --glass: rgb(247 249 252 / 0.96);
  --glass-clear: rgb(255 255 255 / 0.62);
  --glass-line: rgb(11 15 26 / 0.10);
  --glass-shine: rgb(255 255 255 / 0.9);
  --glass-shadow: rgb(40 60 120 / 0.22);
  --tint: rgb(31 94 255 / 0.08);
  --map-bg: #f7f9fc;
  --map-grid: rgb(11 15 26 / 0.06);
  --map-card: #ffffff;
  --map-card-line: rgb(11 15 26 / 0.2);
  --map-ink: #0b0f1a;
  --map-word: #5b667a;
  --map-link: rgb(11 15 26 / 0.3);
  --map-arrow: #1f5eff;
  --map-node-off: #8a94a8;
  --map-ring: #ffffff;
  --map-label: #ffffff;
  --map-desert: rgb(146 64 14 / 0.13);
  --map-mount: rgb(74 85 104 / 0.16);
  --map-forest: rgb(22 101 52 / 0.12);
  --map-lake: rgb(31 94 255 / 0.2);
  --map-river: rgb(31 94 255 / 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(760px 420px at 60% -120px, var(--glow), transparent 66%) no-repeat,
    radial-gradient(620px 520px at 96% 880px, var(--glow-2), transparent 70%) no-repeat,
    radial-gradient(680px 560px at 22% 1650px, var(--glow), transparent 70%) no-repeat,
    var(--void);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in oklab, var(--electric) 22%, transparent); }
a { color: var(--signal); text-decoration-color: color-mix(in oklab, var(--signal) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
button {
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms var(--ease);
}
button:hover { border-color: var(--spark); }
button:active, .primary:active { transform: scale(0.98); }
.primary, button.primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--electric);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 160ms, transform 160ms var(--ease);
}
.primary:hover { background: #1a4fe0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 640; letter-spacing: -0.025em; line-height: 1.04; margin: 10px 0 18px; }
h2 { font-size: 1.7rem; margin: 44px 0 16px; }
h3 { font-size: 1.3rem; margin: 22px 0 10px; }
p { margin: 0 0 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
kbd {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--ink-muted);
}
.skip { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--raised); color: var(--ink); }
.skip:focus { top: 12px; }

/* Vidro: os painéis do site. */
.stat, .chapter-card, .notice, .checkpoint, .route-map, .water-board > div, .boss, .filters, .collect {
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass-clear);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 48px -28px var(--glass-shadow);
}

/* Barra do site no topo: translúcida, com desfoque. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--void) 90%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
.site-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 12px; color: var(--ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
.crumb { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 8px; font-size: 14px; color: var(--ink-muted); }
.crumb a { color: var(--ink-muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb span { padding: 0 8px; color: var(--edge); }
.topbar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; padding: 0 12px; border: 0; color: var(--ink-muted); }
.topbar button:hover { background: var(--hover); color: var(--ink); }
.topbar .search-open { padding: 0 14px; border: 1px solid var(--line); font-weight: 500; }
#menu { display: none; border: 1px solid var(--edge); color: var(--ink); }

/* Coluna do guia: capítulos e cadernos. */
#sidebar {
  position: fixed;
  inset: 56px auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 22px 14px 12px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklab, var(--graphite) 82%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--ink); font-size: 1.05rem; font-weight: 640; letter-spacing: -0.015em; line-height: 1.2; text-decoration: none; }
.brand small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
.triforce { display: block; flex: 0 0 36px; width: 36px; height: 32px; }
.edition { margin: 16px 8px 10px; padding: 6px 10px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-clear); text-align: center; font-size: 12px; color: var(--ink-muted); }
.edition b { color: var(--signal); font-weight: 600; }
#nav { flex: 1; overflow: auto; scrollbar-width: thin; padding-right: 2px; }
#nav .nav-label { margin: 20px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-muted); }
#nav a { display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 9px 10px; border-radius: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.35; text-decoration: none; }
#nav a:hover { background: var(--hover); color: var(--ink); }
#nav a.active { background: var(--hover); color: var(--ink); box-shadow: inset 3px 0 0 var(--signal); }
#nav a .num { flex-shrink: 0; width: 20px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--ink-muted); }
#nav a .tick { margin-left: auto; color: var(--ok); }
.side-bottom { margin-top: 12px; padding: 10px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.side-bottom span { display: block; margin-bottom: 4px; }
.side-bottom button { min-height: 36px; padding: 0 4px; border: 0; border-radius: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.side-bottom button:hover { color: var(--ink); }
.side-bottom #account { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--signal); font-weight: 600; }
.side-bottom #account[hidden] { display: none; }

.workspace { margin-left: 280px; }
main { max-width: 1180px; min-height: 80vh; margin: auto; padding: 28px clamp(18px, 3.4vw, 48px) 72px; }
main:focus { outline: none; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.lead { max-width: 62ch; font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); }
.count-label { font-size: 14px; color: var(--ink-muted); }

/* Abertura: foto com véu escuro do lado do texto, como a faixa das páginas do site. */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 440px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #070a12; }
.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(5 8 18 / 0.92) 0%, rgb(5 8 18 / 0.5) 42%, rgb(5 8 18 / 0.05) 100%),
    linear-gradient(to right, rgb(5 8 18 / 0.88) 0%, rgb(5 8 18 / 0.7) 38%, transparent 76%);
}
.hero-text { max-width: 640px; padding: clamp(24px, 4vw, 44px); color: #f2f5fc; }
.hero h1 { margin: 10px 0 14px; }
.hero p { max-width: 46ch; font-size: 1.1rem; color: #d5dcec; }
.hero .eyebrow { color: #b3c9ff; }
.hero .hero-cap { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: #c3cbdc; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 28px; }
.stat { padding: 20px 22px; }
.stat strong { display: block; font-size: 2rem; font-weight: 640; letter-spacing: -0.02em; line-height: 1.1; }
.stat strong span { font-size: 1.1rem; font-weight: 500; color: var(--ink-muted); }
.stat > span { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-muted); }
.stat .bar { margin-top: 14px; }
.bar { height: 4px; overflow: hidden; border-radius: 999px; background: var(--line); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--electric); transition: width 0.2s; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 36px; }
.section-title h2 { margin: 0; }
.section-title span { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-muted); }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.chapter-card { position: relative; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.25s; }
.chapter-card:hover, .chapter-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--spark) 60%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 28px 56px -26px color-mix(in oklab, var(--electric) 55%, transparent);
}
.chapter-card img { width: 100%; height: 155px; object-fit: cover; }
.chapter-card .card-body { flex: 1; padding: 18px 20px 20px; }
.chapter-card h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.chapter-card p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.chapter-card .bar { position: absolute; right: 0; bottom: 0; left: 0; border-radius: 0; }
.notice { margin: 22px 0; padding: 16px 20px 16px 22px; border-left: 3px solid var(--signal); font-size: 15px; color: var(--ink-soft); }
.notice strong { color: var(--ink); }
.notice.warning { border-left-color: var(--warn); }
.notice.warning strong { color: var(--warn); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; align-items: center; }

/* Capítulo. */
.chapter-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; margin-bottom: 28px; }
.chapter-head figure { margin: 0; }
.chapter-head img { width: 100%; max-height: 310px; object-fit: cover; border: 1px solid var(--line); border-radius: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-clear); font-size: 12px; color: var(--ink-soft); }
.checkpoint { margin: 24px 0; padding: 20px 24px; background: var(--tint); font-size: 15px; color: var(--ink-soft); }
.checkpoint b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.chapter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; }
.mini-toc { position: sticky; top: 84px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; }
.mini-toc > a { display: block; margin: 10px 0; color: var(--ink-muted); text-decoration: none; }
.mini-toc > a:hover { color: var(--ink); }
.mini-toc b { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 24px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.step-grid { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.check-control { display: flex; padding-top: 4px; }
input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; accent-color: var(--electric); }
.step .step-no { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--signal); }
.step h3 { margin: 0 0 10px; font-size: 1.35rem; }
.step p { max-width: 72ch; font-size: var(--body-size); line-height: 1.75; color: var(--ink-soft); }
.step.done h3, .collect.done h3 { color: var(--ink-muted); }
.step.done .step-no::after { content: " · CONCLUÍDO"; color: var(--ok); }
.tip { max-width: 72ch; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--tint); font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.refs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.refs a { padding: 5px 12px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-clear); font-size: 13px; text-decoration: none; }
.refs a:hover { border-color: color-mix(in oklab, var(--spark) 60%, transparent); }
figure { margin: 22px 0; }
figure img { max-width: 100%; border-radius: 16px; cursor: zoom-in; }
figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-muted); }
.step figure, .boss figure { max-width: 560px; }
.step figure img, .boss figure img { width: 100%; max-height: 340px; object-fit: contain; background: var(--graphite); }

/* Mapas com setas. */
.route-map { margin: 24px 0; padding: 22px; }
.route-map h3 { margin: 6px 0 8px; }
.route-map p { font-size: 14px; color: var(--ink-muted); }
.route-map svg, #imageBody svg { display: block; width: 100%; height: auto; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; }
.route-map svg a, #imageBody svg a { cursor: pointer; }
.route-map svg a:hover rect, #imageBody svg a:hover rect { stroke: var(--spark); stroke-width: 2; }
.map-scroll { overflow: auto; border-radius: 12px; }
.map-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; font-size: 14px; }
.world svg { min-width: 600px; }
.water-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.water-board > div { padding: 18px; font-size: 14px; color: var(--ink-soft); }
.water-board strong { display: block; margin-bottom: 4px; font-size: 1.1rem; color: var(--signal); }
.boss { margin: 26px 0; padding: 24px; border-color: color-mix(in oklab, var(--spark) 55%, transparent); }
.boss .eyebrow { color: var(--danger); }
.boss h3 { margin-top: 8px; font-size: 1.7rem; }
.boss p { max-width: 72ch; font-size: var(--body-size); line-height: 1.7; color: var(--ink-soft); }
.boss label { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

/* Listas de coletáveis. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; padding: 16px 18px; }
.filters input[type="search"] { flex: 1; min-width: 180px; }
.filters select, .filters input[type="search"], #searchInput, .notes textarea {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--graphite);
  color: var(--ink);
  font-size: 15px;
}
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.collect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collect { padding: 22px; scroll-margin-top: 84px; }
.collect[hidden] { display: none; }
.collect .collect-head { display: flex; align-items: flex-start; gap: 12px; }
.collect h3 { margin: 4px 0 10px; font-size: 1.2rem; }
.collect p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.collect .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.collect.done { border-left: 3px solid var(--ok); }
.notes { margin-top: 30px; }
.notes label { display: block; margin-bottom: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.notes textarea { width: 100%; min-height: 110px; padding: 14px; }
.chapter-end { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.chapter-end a { font-size: 15px; font-weight: 500; text-decoration: none; }
.source-list { list-style: none; padding: 0; }
.source-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.source-list small { display: block; font-size: 13px; color: var(--ink-muted); }
table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 15px; }
td, th { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--hover); font-weight: 600; }
main ol:not(.steps) { max-width: 72ch; padding-left: 22px; color: var(--ink-soft); }
main ol:not(.steps) li { margin: 6px 0; }
main > p, main section > p { max-width: 72ch; color: var(--ink-soft); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(18px, 3.4vw, 48px); border-top: 1px solid var(--line); background: var(--graphite); font-size: 14px; color: var(--ink-muted); }
footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px 18px; white-space: nowrap; }

/* Busca e imagem ampliada. */
dialog {
  width: min(760px, 94vw);
  max-height: 88vh;
  padding: 22px;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 90px var(--glass-shadow);
}
dialog::backdrop { background: rgb(4 6 12 / 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dialog-head h2 { margin: 0; font-size: 1.4rem; }
.dialog-head button { min-width: 44px; padding: 0; border: 0; font-size: 24px; line-height: 1; color: var(--ink-muted); }
.dialog-head button:hover { background: var(--hover); color: var(--ink); }
#searchInput { width: 100%; }
#searchResults { max-height: 58vh; overflow: auto; }
#searchResults a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
#searchResults a:hover { background: var(--hover); }
#searchResults small { display: block; font-size: 12px; color: var(--ink-muted); }
#imageDialog { width: min(1300px, 96vw); }
/* Conta: entrar para guardar o progresso. */
#accountDialog { width: min(480px, 94vw); }
#accountDialog p { color: var(--ink-soft); }
#accountDialog [hidden] { display: none; }
.text-button { padding: 0 6px; border: 0; color: var(--signal); font-weight: 500; }
.google-button { display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: center; background: #fff; border-color: #dadce0; color: #1f1f1f; }
.google-button:hover { border-color: var(--spark); background: #f7f9fc; }
.text-button:hover { text-decoration: underline; }
#accountStatus { min-height: 1.6em; margin: 6px 0 0; font-size: 14px; color: var(--warn); }
#imageBody img { max-width: 100%; height: auto; border-radius: 12px; }
#toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: none; max-width: 430px; padding: 12px 18px; border-radius: 16px; background: var(--electric); color: #fff; font-size: 14px; box-shadow: 0 18px 40px -18px var(--glass-shadow); }
.empty { padding: 34px; text-align: center; color: var(--ink-muted); }
.highlight { animation: highlight 2s ease; }
@keyframes highlight { from { background: color-mix(in oklab, var(--electric) 30%, transparent); } to { background: transparent; } }
.print-only { display: none; }
.all-print .print-only { display: block; }
.all-print .no-print { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1200px) {
  #sidebar { width: 248px; }
  .workspace { margin-left: 248px; }
  .chapter-layout { grid-template-columns: 1fr; }
  .mini-toc { display: none; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .search-open span, .search-open kbd { display: none; }
  .topbar .search-open { padding: 0 12px; border: 0; }
}
@media (max-width: 800px) {
  #sidebar { width: min(300px, 86vw); background: var(--void); transform: translateX(-100%); transition: transform 0.22s var(--ease); box-shadow: 15px 0 90px rgb(0 0 0 / 0.35); }
  body.menu-open #sidebar { transform: none; }
  .workspace { margin-left: 0; }
  #menu { display: flex; }
  .crumb, .topbar #print { display: none; }
  .site-brand { flex: 1; }
  .hero { min-height: 400px; }
  .hero-text { padding-bottom: 64px; }
  .hero .hero-cap { left: 14px; }
  .hero::after { background: linear-gradient(to top, rgb(5 8 18 / 0.95) 0%, rgb(5 8 18 / 0.78) 55%, rgb(5 8 18 / 0.35) 100%); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px; }
  .chapter-head { grid-template-columns: 1fr; gap: 12px; }
  .chapter-head img { max-height: 230px; }
  .chapter-grid, .collect-grid { grid-template-columns: 1fr; }
  .chapter-card { display: grid; grid-template-columns: 112px 1fr; }
  .chapter-card img { height: 100%; min-height: 150px; }
  .chapter-card .card-body { padding: 14px 16px 18px; }
  .step-grid { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
  .water-board { grid-template-columns: 1fr; }
  .route-map { padding: 14px; }
  .route-map svg { min-width: 580px; }
  .section-title { display: block; }
  footer { display: block; }
  footer nav { margin-top: 10px; }
}
@media print {
  :root, :root[data-theme="light"] {
    --void: #fff; --graphite: #fff; --raised: #fff; --ink: #111; --ink-soft: #222; --ink-muted: #555; --line: #ccc; --signal: #1747c9; --ok: #166534; --danger: #b91c1c;
    --glass: #fff; --glass-clear: #fff; --glass-line: #ccc; --glass-shine: transparent; --glass-shadow: transparent; --tint: #f1f4fb;
    --map-bg: #fff; --map-grid: #e6e6e6; --map-card: #fff; --map-card-line: #999; --map-ink: #111; --map-word: #555; --map-link: #999; --map-arrow: #1f5eff; --map-node-off: #999; --map-ring: #fff; --map-label: #fff;
    color-scheme: light;
  }
  body { background: #fff; font-size: 11pt; }
  #sidebar, .topbar, .mini-toc, .tools, .chapter-end, footer, .filters, .map-tools, .notes, dialog, #toast, .no-print { display: none !important; }
  .workspace { margin: 0; }
  main { max-width: none; padding: 0; }
  .hero { min-height: 220px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hero-text { padding: 25px; }
  .hero h1 { font-size: 30pt; }
  .chapter-head { grid-template-columns: 1fr 1fr; }
  .chapter-head h1 { font-size: 27pt; }
  .chapter-layout { display: block; }
  .step { break-inside: avoid; padding: 14px 0; }
  .step p { font-size: 11pt; }
  .step h3 { font-size: 16pt; }
  .collect-grid { display: block; }
  .collect { break-inside: avoid; margin-bottom: 12px; }
  .route-map { break-inside: avoid; }
  .route-map svg { max-height: 400px; }
  .chapter-print { break-before: page; }
  a { color: inherit; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  h2 { font-size: 23pt; }
  h3 { font-size: 18pt; }
  .print-only { display: block; }
}
