:root {
  color-scheme: dark;
  --bg: #211b18;
  --panel: #332921;
  --line: #6d5240;
  --ink: #fff1dc;
  --muted: #dec4a7;
  --acid: #ffc177;
  --mint: #9cdeb8;
  --blue: #a8d7f5;
  --violet: #d9b5fa;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .54; cursor: default; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.18rem; line-height: 1.2; }
p { color: var(--muted); }
section { margin-top: 2.4rem; scroll-margin-top: 1rem; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #2b211b; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; gap: 12px; align-items: center; line-height: 1; font-size: 1.35rem; font-weight: 900; letter-spacing: .045em; white-space: nowrap; }
.brand small { display: block; margin-top: 6px; font: 600 .61rem/1 ui-monospace, monospace; letter-spacing: .13em; color: var(--muted); }
.mark { display: grid; place-items: center; width: 40px; height: 40px; color: #111811; background: var(--acid); border-radius: 11px; font-size: 1.55rem; }
.acid { color: var(--acid); }
nav { display: flex; gap: 5px; flex-wrap: wrap; }
nav a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-weight: 650; font-size: .9rem; }
nav a:hover, nav a[aria-current] { color: var(--ink); background: #493425; }
nav a[aria-current] { box-shadow: inset 0 -2px var(--acid); }
.wallet { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.wallet span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .82rem; }
.wallet b { color: var(--ink); }
.wallet i { font-style: normal; color: var(--acid); }
.wallet span:nth-child(2) i { color: var(--mint); }
.wallet span:nth-child(3) i { color: var(--blue); }
.wallet span:nth-child(4) i { color: var(--violet); }
.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 250px; gap: 16px; align-items: end; min-height: 340px; padding: clamp(22px, 5vw, 54px); margin-top: 0; border: 1px solid #99754f; border-radius: 9px; background: radial-gradient(ellipse at 70% 46%, #694829 0%, #463126 37%, transparent 75%), #31241c; }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 31px, #b9d5ff13 31px 32px), repeating-linear-gradient(0deg, transparent 0 31px, #b9d5ff13 31px 32px); mask-image: linear-gradient(90deg, transparent, #000); }
.hero-copy { max-width: 480px; }
.eyebrow, .tag { font: 750 .71rem/1.45 ui-monospace, monospace; letter-spacing: .1em; }
.eyebrow { color: var(--mint); text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px var(--mint); }
.hero h1, .heading h1 { font-size: clamp(3rem, 8vw, 6.1rem); font-weight: 920; line-height: .9; letter-spacing: -.075em; margin: 15px 0 20px; }
.hero h1 em { font-style: normal; color: var(--acid); }
.hero-copy > p:not(.eyebrow) { max-width: 370px; margin: 0 0 22px; }
.hero-level { display: grid; gap: 7px; align-self: end; border: 1px solid #99754f; padding: 14px 16px; border-radius: 8px; background: #2b2018ed; }
.hero-level strong { font-size: 1.4rem; }
small { color: var(--muted); }
progress { appearance: none; height: 7px; width: 100%; border: 0; border-radius: 8px; overflow: hidden; background: #2e3b57; }
progress::-webkit-progress-bar { background: #2e3b57; }
progress::-webkit-progress-value { background: var(--acid); }
progress::-moz-progress-bar { background: var(--acid); }
.orbit { position: absolute; z-index: -1; left: 69%; top: 44%; width: 290px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #8efbd15c; background: repeating-radial-gradient(circle, transparent 0 27px, #94fac023 28px 29px, transparent 30px 39px); }
.orbit span { position: absolute; inset: 24% 2%; border: 1px solid #a1fae4ad; border-radius: 50%; transform: rotate(35deg); }
.orbit span:nth-child(2) { transform: rotate(95deg); }
.orbit span:nth-child(3) { transform: rotate(155deg); }
.orbit i { position: absolute; inset: 36%; border: 1px solid #edffb1; border-radius: 50%; background: radial-gradient(circle at 39% 36%, #f6ffc9, #a4ed77 20%, #38746f 52%, #1d3347 70%); box-shadow: 0 0 60px 12px #a1fa9b58; }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 0 0 16px; }
.section-title .eyebrow { margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid.two, .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parent-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.card { padding: clamp(15px, 2.5vw, 23px); min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.card h3 { margin: 10px 0 7px; }
.card p + p { margin-top: 6px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #21170f69; text-transform: uppercase; }
.tile { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 8px; background: #4c3c2e; color: var(--acid); font-size: 1.4rem; font-weight: 750; }
.mission { background: linear-gradient(150deg, #453c2a, var(--panel) 62%); }
.mission.physics { background: linear-gradient(150deg, #4d3826, var(--panel) 62%); }
.mission.physics .tile { color: var(--acid); background: #573925; }
.mission.boss { background: linear-gradient(150deg, #493141, var(--panel) 62%); }
.mission.boss .tile { color: var(--violet); background: #55384a; }
.meta { font-size: .84rem; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; font-weight: 800; padding: 8px 13px; min-height: 40px; text-align: center; }
.primary { border: 1px solid var(--acid); color: #341b11; background: var(--acid); }
.primary:not(:disabled):hover { background: #ffdaa1; }
.secondary { border: 1px solid var(--line); color: var(--ink); background: #49362a; }
.secondary:not(:disabled):hover, .secondary[aria-pressed="true"] { color: var(--acid); border-color: var(--acid); }
.card > button, .card > form, form > button, .actions { margin-top: 14px; }
.actions, .filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters { margin-bottom: 14px; }
.fields { display: grid; gap: 9px; margin: 12px 0; }
label { display: grid; gap: 5px; min-width: 0; margin: 6px 0; color: var(--muted); font-size: .85rem; font-weight: 680; }
input, select, textarea { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #261c17; color: var(--ink); }
textarea { min-height: 80px; resize: vertical; }
.multiline { white-space: pre-wrap; }
.copy-line { padding: 7px 0; border-bottom: 1px solid var(--line); }
.correction { margin-top: 10px; }
.correction ol { padding-left: 24px; color: var(--muted); }
.wallet .pending { color: var(--blue); }
.xp-track { display: flex; height: 7px; border-radius: 8px; overflow: hidden; background: #2e3b57; margin-bottom: 5px; }
.xp-track span:first-child { background: var(--acid); }
.xp-track span + span { background: repeating-linear-gradient(135deg, var(--blue) 0 4px, #4974a5 4px 8px); }
dialog { width: min(780px, calc(100% - 30px)); max-height: 92vh; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
dialog::backdrop { background: #060a16cc; }
dialog img { max-width: 100%; max-height: 65vh; margin: 12px auto; }
dialog img:not([hidden]) { display: block; }
dialog form { margin-bottom: 12px; }
dialog form button { margin: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 17px; min-height: 17px; accent-color: var(--acid); }
.heading { margin: 30px 0 24px; }
.heading h1 { font-size: clamp(2.75rem, 7vw, 4.6rem); }
.exercise { border-color: #598779; background: linear-gradient(140deg, #162d36, #121a2c 65%); }
.exercise h2 { margin: 10px 0; }
.question { color: var(--ink); font-size: clamp(1rem, 3vw, 1.32rem); font-weight: 650; }
.answer { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.answer label { width: min(100%, 300px); margin: 0; }
.answer button { margin: 0; }
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--blue); }
details p { margin-top: 6px; }
.feedback { margin-top: 14px; padding: 12px; border: 1px solid #526681; border-radius: 8px; }
.good { border-color: #4c8477; color: var(--mint); }
.wrong { border-color: #966c60; color: #ffd0a9; }
.pass-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; margin-bottom: 14px; }
.pass-summary button { margin: 0; }
.pin { max-width: 480px; }
.pin p { margin: 9px 0 12px; }
.budget { color: var(--acid); font-size: 2.4rem; }
.empty { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; }
.rows, .collection { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows small { display: block; }
.rows.vertical li { display: block; }
.rows.vertical .actions { margin-top: 6px; }
.activity { max-height: 400px; overflow: auto; }
.collection { display: flex; flex-wrap: wrap; gap: 8px; }
.collection li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--mint); }
.chest-arrival { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin: 16px 0; border-color: #8c713c; background: linear-gradient(110deg, #372d24, var(--panel) 75%); }
.chest-arrival > div { flex: 1 1 150px; }
.mini-chest { display: grid; place-items: center; width: 48px; height: 39px; border: 3px solid #f4bd65; border-radius: 11px 11px 6px 6px; background: #563e47; color: #ffe4a8; font-size: 1.2rem; }
.chest-dialog { width: min(460px, calc(100% - 28px)); padding: 25px 20px 18px; text-align: center; background: radial-gradient(ellipse at 50% 55%, #36264c, #121a2c 72%); }
.chest-dialog h2 { margin-top: 4px; }
.chest-dialog form { margin: 12px 0 0; }
.loot-stage { position: relative; display: grid; place-items: center; overflow: hidden; height: 215px; --trim: #ffd385; --edge: #ab6943; --lid: #ba7c4c; --light: #ffce76; }
.loot-stage.rare { --trim: #dbb7ff; --edge: #7349b7; --lid: #7958bd; --light: #b58aff; }
.loot-rays { position: absolute; inset: -10%; opacity: 0; background: repeating-conic-gradient(from 10deg, var(--light) 0 9deg, transparent 14deg 33deg); mask-image: radial-gradient(circle, #000 0, transparent 59%); animation: loot-rays .65s .46s ease-out both; }
.loot-box { width: 136px; position: relative; padding-top: 34px; animation: loot-shake .54s ease-in-out both; }
.loot-lid { position: absolute; z-index: 1; top: 0; left: -4px; right: -4px; height: 43px; border: 4px solid var(--trim); border-radius: 18px 18px 6px 6px; background: linear-gradient(#fff3, transparent), var(--lid); transform-origin: 80% 100%; animation: loot-open .38s .53s cubic-bezier(.2,.85,.3,1) both; }
.loot-body { display: grid; place-items: center; height: 64px; border: 4px solid var(--trim); border-radius: 0 0 13px 13px; background: linear-gradient(135deg, var(--edge), #2c203d 75%); box-shadow: 0 12px 25px #0008; }
.loot-body span { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--trim); border-radius: 6px; color: var(--trim); background: #292033; }
.loot-prize { min-height: 1.5em; font-size: 1.15rem; font-weight: 800; color: var(--acid); }
.shared-actions { justify-content: flex-end; margin: 0 0 14px; }
.quest-map > p { margin: 0 0 20px; }
.quest-timeline { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; position: relative; }
.quest-timeline::before { content: ''; position: absolute; top: 20px; bottom: 20px; width: 2px; left: 20px; background: linear-gradient(var(--mint), var(--line) 85%); }
.quest-timeline li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; }
.quest-node { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #557e76; border-radius: 12px; background: var(--panel); color: var(--mint); font-weight: 800; }
.quest-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 15px; }
.quest-entry:focus-within, .quest-entry:hover { border-color: var(--mint); }
.quest-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; text-decoration: none; }
.quest-reward { justify-self: end; }
.mission-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; color: var(--muted); font-size: .8rem; }
.mission-progress-track { display: flex; flex: 1 1 110px; max-width: 260px; height: 8px; border-radius: 12px; overflow: hidden; background: #303a50; }
.mission-progress-done { background: linear-gradient(90deg, #45d9c8, #b6fa87); }
.mission-progress-pending { background: #f7c76e; }
@media (max-width: 520px) { .quest-entry { grid-template-columns: minmax(0, 1fr); } }
.quest-link h3 { margin: 3px 0 0; }
.quest-origin { display: inline-block; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: #c7a9ff; vertical-align: .13em; }
.origin-reference { background: #f7c76e; }
.origin-fr { background: #8bbfff; }
.origin-ma { background: #72e4bc; }
.quest-legend { margin-top: 18px; }
.quest-legend ul { padding: 0; margin: 0; list-style: none; }
.quest-link > span:last-child { color: var(--mint); }
.quest-back { margin: 12px 0; }
.mission-brief { border-color: #557e76; background: linear-gradient(135deg, #14313a, var(--panel) 75%); }
.mission-brief h2 { margin: 4px 0 10px; }
.mission-board { display: grid; gap: 7px; }
.mission-board-head, .mission-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(85px, 29%); gap: 12px; align-items: center; padding: 12px 16px; }
.mission-board-head { color: #f7c76e; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.mission-board-head > :last-child, .mission-loot { text-align: right; }
.mission-row { margin: 0; border: 1px solid #514458; border-radius: 9px; background: #222235; }
.mission-row > summary { color: var(--text, #f5f3ff); cursor: pointer; }
.mission-row > summary::-webkit-details-marker { display: none; }
.mission-row > summary > :first-child::before { content: '▸'; margin-right: .45em; color: #c7a9ff; }
.mission-row[open] > summary > :first-child::before { content: '▾'; }
.mission-complete { border-color: #796052; background: #382a38; }
.mission-count { margin-right: .4em; color: #f7c76e; }
.mission-loot { color: #f7c76e; font-weight: 750; font-size: .9rem; }
.mission-body { padding: 12px 16px 16px; border-top: 1px solid #514458; }
.quest-claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; border-color: #a77948; }
.character-math { --character: #7ff1c4; --character-bg: #173b40; }
.character-physics { --character: #ffc177; --character-bg: #563927; }
.character-card { border-color: var(--character-bg); background: linear-gradient(135deg, var(--character-bg), var(--panel) 55%); }
.character-summary { display: flex; align-items: center; gap: 12px; }
.character-summary h3 { margin: 3px 0; font-size: 1.65rem; }
.character-art { display: block; width: min(38%, 110px); aspect-ratio: 1 / 2; flex-shrink: 0; border: 1px solid var(--line); border-radius: 9px; background: #242424 url('portraits-campagne.png') var(--portrait-x) var(--portrait-y) / 800% 200% no-repeat; }
.avatar-stars { display: block; }
.avatar-stars span { color: var(--acid); letter-spacing: .12em; }
.expedition-avatar { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 8px 12px 8px 8px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(120deg, var(--character-bg), var(--panel)); }
.expedition-avatar:hover { border-color: var(--acid); }
.expedition-avatar .character-art { width: 78px; }
.expedition-avatar small { display: block; }
.expedition-avatar > span:last-child { color: var(--acid); }
.expedition-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.expedition-choice { display: grid; gap: 16px; background: linear-gradient(135deg, var(--character-bg), var(--panel) 75%); }
.expedition-choice:hover { border-color: var(--character); }
.expedition-choice .character-art { width: min(36%, 140px); }
.expedition-choice strong { font-size: clamp(1.15rem, 3vw, 1.65rem); }
.expedition-choice small { display: block; }
.expedition-choice-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.expedition-open { color: var(--acid); font-weight: 800; }
@media (max-width: 650px) { .expedition-choices { grid-template-columns: 1fr; } }
.quest-identity { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.quest-identity .heading { flex: 1 1 380px; min-width: 0; }
.quest-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .38fr); gap: 16px; align-items: start; }
.quest-layout .mission-brief, .quest-loot > :first-child { margin-top: 0; }
.quest-loot .quest-claim { align-items: start; }
.evolution-track li > .character-art { width: 48px; border-radius: 5px; }
.evolution-track li > div { flex: 1 1 auto; }
.evolution-track .locked .character-art { filter: saturate(.55); }
.quest-node, .mission-brief, .mission-row, .quest-claim { border-color: var(--line); }
.quest-node { color: var(--acid); background: #30241c; }
.mission-brief { background: linear-gradient(135deg, #463527, var(--panel) 75%); }
.mission-row { background: #342920; }
.mission-complete { background: #493324; }
.mission-body { border-top-color: var(--line); }
@media (max-width: 740px) { .quest-layout { grid-template-columns: 1fr; } }
.evolution-track { list-style: none; margin: 10px 0 0 8px; padding: 0 0 0 16px; border-left: 2px solid var(--character-bg); }
.evolution-track li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 0; }
.evolution-track li::before { content: ''; position: absolute; left: -21px; width: 8px; height: 8px; border: 1px solid var(--character); border-radius: 50%; background: var(--panel); }
.evolution-track .current::before, .evolution-track .unlocked::before { background: var(--character); }
.evolution-track .current strong { color: var(--character); }
.evolution-track small { display: block; color: var(--muted); }
.review-group { margin-top: 16px; }
.review-group .section-title { margin-bottom: 8px; }
.review-source { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.review-source > p { margin-top: 6px; }
.admin-panel { margin-top: 16px; scroll-margin-top: 1rem; }
.admin-panel > summary { color: var(--ink); font-size: 1.15rem; }
.admin-panel > summary .tag { margin-left: .5em; }
.admin-panel-content { margin-top: 12px; }
.batch-sheets { margin: 0 0 14px; }
.batch-sheets > summary { font-weight: 750; }
.batch-sheet { min-width: 0; margin: 8px 0 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.batch-sheet legend { padding: 0 4px; overflow-wrap: anywhere; color: var(--muted); }
.intro-dialog { width: min(500px, calc(100% - 28px)); text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 38%, #4c4730, var(--panel) 66%); border-color: #99754f; }
.intro-dialog h2 { font-size: clamp(2rem, 9vw, 3.45rem); color: var(--acid); }
.intro-dialog .check { justify-content: center; margin: 18px 0 12px; }
.intro-reactor { width: min(185px, 55vw); aspect-ratio: 1; position: relative; margin: 14px auto; border-radius: 50%; border: 1px solid #8efbd174; background: repeating-radial-gradient(circle, transparent 0 18px, #94fac033 19px 20px, transparent 21px 29px); animation: genesis-online 1.2s ease-out both; }
.intro-reactor span { position: absolute; inset: 23% 4%; border: 1px solid #99ffd0; border-radius: 50%; transform: rotate(20deg); animation: genesis-orbit 5s linear infinite; }
.intro-reactor span:nth-child(2) { animation-delay: -1.6s; }
.intro-reactor span:nth-child(3) { animation-delay: -3.2s; }
.intro-reactor i { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle at 42% 40%, white, #dcfb87 25%, #68efbc 55%, #275e63 75%); box-shadow: 0 0 36px 10px #8dff9b87; }
@keyframes genesis-online { from { opacity: 0; transform: scale(.55); } 65% { transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes genesis-orbit { from { transform: rotate(20deg); } to { transform: rotate(380deg); } }
@keyframes loot-shake { 0%, 100% { transform: rotate(0) scale(1); } 18%, 56% { transform: rotate(-7deg) scale(.95); } 36%, 74% { transform: rotate(7deg) scale(1.05); } }
@keyframes loot-open { to { transform: translateY(-21px) rotate(-31deg); } }
@keyframes loot-rays { from { opacity: 0; transform: scale(.4) rotate(-14deg); } 55% { opacity: .85; } to { opacity: .45; transform: scale(1.15) rotate(12deg); } }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: 40px; padding: 16px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
#notice { position: fixed; z-index: 3; right: 14px; bottom: 14px; max-width: min(420px, calc(100% - 28px)); padding: 12px 16px; border: 1px solid #658571; border-radius: 9px; background: #172a2b; color: var(--ink); opacity: 0; pointer-events: none; }
#notice.show { opacity: 1; }

@media (max-width: 850px) {
  .top-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 200px; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 28px); }
  nav { gap: 3px; }
  nav a { padding: 6px 7px; font-size: .79rem; }
  .grid, .grid.two, .hero, .pass-summary { grid-template-columns: 1fr; }
  .hero { min-height: 355px; }
  .orbit { width: 200px; left: 82%; opacity: .55; }
  .hero-level { width: min(100%, 265px); }
}
@media (prefers-reduced-motion: reduce) {
  .loot-box, .loot-lid, .loot-rays { animation: none; }
  .intro-reactor, .intro-reactor span { animation: none; }
  .intro-reactor span:nth-child(2) { transform: rotate(80deg); }
  .intro-reactor span:nth-child(3) { transform: rotate(140deg); }
  .loot-lid { transform: translateY(-21px) rotate(-31deg); }
  .loot-rays { opacity: .35; }
}
