/* Zom-B-Gone Shelters: New Owner Orientation */
@font-face { font-family: 'Protest Strike'; src: url(assets/fonts/ProtestStrike-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Saira'; src: url(assets/fonts/Saira-Variable.ttf) format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Economica'; src: url(assets/fonts/Economica-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Economica'; src: url(assets/fonts/Economica-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --lime: #D9E137;
  --lime-dim: #b9c02a;
  --bg: #1b1d1a;
  --panel: #232522;
  --panel-2: #2c2f2a;
  --line: #3a3d37;
  --text: #f1eee6;
  --muted: #b7b5ab;
  --orange: #F07E32;
  --yellow: #F4BD2E;
  --sage: #8CA56D;
  --green: #4E6A30;
  --ok: #9fd05a;
  --bad: #ff8a5c;
  --radius: 14px;
  --head: 'Protest Strike', Impact, 'Arial Black', sans-serif;
  --body: 'Saira', system-ui, -apple-system, sans-serif;
  --label: 'Economica', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h2, h3, h4 { font-family: var(--head); font-weight: 400; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .6em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--lime); font-weight: 600; }
ul { padding-left: 1.2em; margin: 0 0 .9em; }
a { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--lime); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.eyebrow { font: 700 1rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: .6em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* ---------- buttons ---------- */
button { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; gap: .4em; border: 2px solid transparent; border-radius: 999px; padding: 10px 22px; font: 700 1.15rem/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--lime); color: #151612; }
.btn-primary:not(:disabled):hover { background: #e6ee52; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:not(:disabled):hover { border-color: var(--lime); }
.linkish { background: none; border: 0; padding: 0; color: var(--lime); text-decoration: underline; cursor: pointer; font-size: .92rem; }

/* ---------- layout ---------- */
.topbar { display: none; }
.layout { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 22px; background: #151714 url(assets/art/metal1.webp) center/cover; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.sidebar::before { content: ''; position: absolute; inset: 0; background: rgba(18, 20, 17, .86); z-index: 0; }
.sidebar > * { position: relative; z-index: 1; }
.side-logo { width: 170px; }
.side-title { font: 400 1.4rem/1.1 var(--head); }
.side-progress-top { display: flex; justify-content: space-between; font: 700 1rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#pct { color: var(--lime); }
.track { height: 8px; background: #0e0f0d; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.track-fill { height: 100%; width: 0; background: var(--lime); transition: width .4s; }
.outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ol-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer; color: var(--text); }
.ol-item:hover:not(:disabled) { background: rgba(255,255,255,.05); }
.ol-item.current { background: rgba(217, 225, 55, .1); border-color: rgba(217, 225, 55, .45); }
.ol-item.locked { color: #77776f; cursor: not-allowed; }
.ol-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--label); background: var(--panel-2); border: 1px solid var(--line); }
.ol-item.current .ol-num { background: var(--lime); color: #151612; border-color: var(--lime); }
.ol-item.done .ol-num { background: var(--green); border-color: var(--sage); color: #fff; }
.ol-item.locked .ol-num { font-size: .75rem; }
.ol-title { font-weight: 500; line-height: 1.25; }
.restart { margin-top: auto; align-self: flex-start; font-size: 1rem; padding: 8px 16px; }
.side-note { font-size: .8rem; color: var(--muted); margin: 0; }

.main { padding: 40px 28px 120px; max-width: 800px; width: 100%; margin: 0 auto; outline: none; }
.block { margin-bottom: 22px; }
.block.in { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.foot { display: flex; justify-content: center; padding: 18px 0 0; min-height: 70px; }
.continue { font-size: 1.3rem; padding: 12px 36px; }
.end-note { font: 400 1.3rem var(--head); color: var(--lime); text-align: center; }

/* ---------- marks: icon + word, never color alone ---------- */
.mark { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 600; white-space: normal; }
.mark.ok { color: var(--ok); }
.mark.bad { color: var(--bad); }
.warn { background: rgba(240, 126, 50, .12); border-left: 4px solid var(--orange); padding: 10px 14px; border-radius: 6px; margin-top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111; }
.hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-copy { position: absolute; inset: 0; padding: 28px 30px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(90deg, rgba(17,18,15,.92) 0%, rgba(17,18,15,.7) 40%, rgba(17,18,15,0) 70%); max-width: 100%; }
.hero-copy > * { max-width: 54%; }
.hero-logo { width: 220px; margin-bottom: 10px; }
.hero-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.hero-sub { font-size: 1.05rem; }
.hero-meta { font: 700 1rem var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin: 0; }

/* ---------- gus ---------- */
.gus { display: flex; gap: 16px; align-items: flex-start; }
.gus-face { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lime); background: var(--panel-2); }
.gus-bubble { position: relative; flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: 14px 18px; }
.gus-name { font: 700 1.05rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.gus-name span { color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.gus-bubble ul { margin-top: 8px; }
.gus-facepalm .gus-face { border-color: var(--orange); }
.card .gus { margin-top: 18px; }

/* ---------- objectives ---------- */
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.objectives li { display: flex; gap: 14px; align-items: flex-start; }
.obj-n { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--lime); color: #151612; display: grid; place-items: center; font: 400 1.3rem var(--head); }
.obj-h { display: block; font: 400 1.2rem var(--head); color: var(--text); }
.b-objectives + .b-text { margin-top: -10px; }

/* ---------- callout ---------- */
.callout { position: relative; overflow: hidden; border-radius: var(--radius); padding: 44px 32px; background-size: cover; background-position: center; border: 1px solid var(--line); min-height: 220px; }
.callout::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,18,.92), rgba(20,21,18,.55)); }
.callout > * { position: relative; }
.callout-kicker { font: 700 1.05rem var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.callout-title { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: .1em 0 .2em; }
.callout-text { font-size: 1.15rem; max-width: 60%; }
.callout-sil { position: absolute; right: -10px; bottom: -8px; width: 42%; max-width: 330px; opacity: .85; }

/* ---------- process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.step { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.step-art { position: relative; height: 90px; display: grid; place-items: center; margin-bottom: 10px; }
.step-art img { max-height: 86px; width: auto; }
.step-n { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #151612; display: grid; place-items: center; font: 400 1rem var(--head); }
.step h4 { margin-bottom: .3em; }
.step p { font-size: .95rem; }

/* ---------- tabs / accordion ---------- */
.tablist { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; font: 700 1.15rem var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--lime); border-bottom-color: var(--lime); }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--lime); font: 400 1.4rem/1 var(--head); }
.acc[open] summary::after { content: '−'; }
.acc-body { padding: 0 4px 16px; color: #e0ddd4; }

/* ---------- flashcards ---------- */
.flashcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.flash { position: relative; min-height: 240px; perspective: 900px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.flash-front, .flash-back { position: absolute; inset: 0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; backface-visibility: hidden; transition: transform .5s; border: 1px solid var(--line); }
.flash-front { background: var(--panel-2) url(assets/art/metal2.webp) center/cover; justify-content: space-between; }
.flash-front::before { content: ''; position: absolute; inset: 0; background: rgba(35,37,34,.82); border-radius: 12px; z-index: -1; }
.flash-front { isolation: isolate; }
.flash-back { background: #2e3226; transform: rotateY(180deg); font-size: .95rem; }
.flash.flipped .flash-front { transform: rotateY(180deg); }
.flash.flipped .flash-back { transform: rotateY(360deg); }
.flash-label { font: 700 .95rem var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flash-art { width: 84px; height: 84px; object-fit: contain; align-self: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.flash-q { font: 400 1.25rem/1.2 var(--head); }
.flash-verdict { font: 400 1.3rem var(--head); }
.flash-verdict.ok { color: var(--ok); }
.flash-verdict.ok::before { content: '✓ '; }
.flash-verdict.bad { color: var(--bad); }
.flash-verdict.bad::before { content: '✗ '; }

/* ---------- options (poll, mcq, battle) ---------- */
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; font-size: 1rem; }
.opt:not(:disabled):hover { border-color: var(--lime); }
.opt:disabled { opacity: .5; cursor: default; }
.opt.picked { border-color: var(--lime); background: rgba(217,225,55,.1); }
.opt-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.opt.right { border-color: var(--ok); }
.opt.right .opt-mark { background: var(--ok); border-color: var(--ok); color: #111; }
.opt.right .opt-mark::after { content: '✓'; }
.opt.wrong { border-color: var(--bad); }
.opt.wrong .opt-mark { background: var(--bad); border-color: var(--bad); color: #111; }
.opt.wrong .opt-mark::after { content: '✗'; }

/* ---------- worked example ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font: 700 .95rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tfoot th, tfoot td { border-bottom: 0; font-weight: 600; }
tfoot td .mark { font-size: .88rem; margin-right: 6px; }
.w-item { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.w-item img { width: 40px; height: 40px; object-fit: contain; }
.w-note { color: var(--muted); min-width: 200px; }

/* ---------- pantry builder ---------- */
.sticky-meters { position: sticky; top: 0; z-index: 3; background: var(--panel); padding: 12px 0 8px; margin: 10px 0 14px; border-bottom: 1px solid var(--line); }
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.meter-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.meter-label { font: 700 .95rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meter-top .mark { font-size: .8rem; }
.meter-track { height: 10px; background: #111; border-radius: 99px; overflow: hidden; margin: 4px 0; border: 1px solid var(--line); }
.meter-fill { height: 100%; transition: width .3s; }
.meter-fill.ok { background: var(--ok); }
.meter-fill.bad { background: repeating-linear-gradient(135deg, var(--bad) 0 6px, #d9693d 6px 12px); }
.meter-val { font-size: .85rem; font-variant-numeric: tabular-nums; }
.dead-line { font-size: .88rem; color: var(--bad); margin: 8px 0 0; min-height: 0; }
.dead-line:empty { display: none; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shop-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.shop-item img { height: 58px; width: auto; margin: 0 auto 4px; object-fit: contain; }
.shop-name { font-weight: 600; font-size: .93rem; line-height: 1.25; }
.shop-stats { font-size: .82rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.shop-note { font-size: .8rem; color: var(--muted); flex: 1; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.step-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #1a1c19; font-size: 1.3rem; cursor: pointer; }
.step-btn:hover { border-color: var(--lime); color: var(--lime); }
.step-count { font: 400 1.35rem var(--head); min-width: 2ch; text-align: center; }
.hint { margin-top: 14px; }
.hint summary { cursor: pointer; color: var(--lime); font-weight: 600; }
.hint p { margin-top: 6px; }

/* ---------- sort ---------- */
.pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; margin-bottom: 14px; }
.chip { background: var(--panel-2); border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: grab; font-size: .95rem; }
.chip.selected { border-color: var(--lime); background: rgba(217,225,55,.14); }
.chip.shake { animation: shake .35s; border-color: var(--bad); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bin { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #1a1c19; cursor: pointer; font: 400 1.25rem var(--head); }
.bin-wrap:first-child .bin { border-color: var(--sage); }
.bin-wrap:last-child .bin { border-color: var(--orange); }
.bin.over, .bin:hover { background: rgba(217,225,55,.08); }
.bin-list { list-style: none; padding: 8px 4px 0; margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.sort-fb { margin-top: 14px; }

/* ---------- hotspots ---------- */
.scene { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #2a2622; margin: 6px 0 10px; }
.scene img { position: absolute; }
.scene-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-light { left: 22%; top: 0; width: 26%; opacity: .9; }
.scene-fan { left: 7%; top: 28%; width: 16%; }
.scene-shelf { position: absolute; right: 7%; bottom: 8%; width: 20%; }
.scene-shelf > img:first-child { position: relative; width: 100%; }
.ss { width: 34%; }
.ss1 { left: 8%; top: 4%; } .ss2 { left: 50%; top: 2%; }
.ss3 { left: 12%; top: 34%; } .ss4 { left: 52%; top: 32%; }
.ss5 { left: 8%; top: 64%; } .ss6 { left: 50%; top: 64%; }
.hs { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; z-index: 2; }
.hs-dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(217,225,55,.25); border: 3px solid var(--lime); box-shadow: 0 0 0 0 rgba(217,225,55,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(217,225,55,0); } 100% { box-shadow: 0 0 0 0 rgba(217,225,55,0); } }
.hs-label { font: 700 .9rem var(--label); letter-spacing: .06em; text-transform: uppercase; background: rgba(17,18,15,.85); padding: 2px 8px; border-radius: 6px; }
.hs.found .hs-dot { background: var(--bad); border-color: #fff; animation: none; }
.hs.found .hs-dot::after { content: '!'; display: grid; place-items: center; height: 100%; font-weight: 800; color: #111; }
.hs.fine .hs-dot { background: var(--ok); border-color: #fff; animation: none; }
.hs.fine .hs-dot::after { content: '✓'; display: grid; place-items: center; height: 100%; font-weight: 800; color: #111; }
.hs-count { font: 700 1.1rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin: 0 0 8px; }

/* ---------- bench ---------- */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 14px 0; align-items: stretch; }
.slots { display: flex; align-items: center; gap: 8px; }
.slot { flex: 1; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 14px; background: #1a1c19; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; cursor: pointer; min-width: 0; }
.slot.filled { border-style: solid; border-color: var(--lime); }
.slot.over { background: rgba(217,225,55,.1); }
.slot img { max-height: 62%; width: auto; object-fit: contain; }
.slot-empty { font-size: .85rem; color: var(--muted); text-align: center; }
.slot-name { font-size: .88rem; font-weight: 600; text-align: center; }
.plus { font: 400 1.8rem var(--head); color: var(--lime); }
.combo { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.combo-name { font: 400 1.45rem/1.1 var(--head); color: var(--lime); }
.combo-parts { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.stat { margin-bottom: 8px; }
.stat-top { display: flex; justify-content: space-between; font: 700 .95rem var(--label); letter-spacing: .08em; text-transform: uppercase; }
.stat-top .mark { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: .82rem; }
.stat-track { display: flex; gap: 4px; margin-top: 3px; }
.pip { flex: 1; height: 8px; border-radius: 3px; background: #111; border: 1px solid var(--line); }
.pip.on.ok { background: var(--ok); border-color: var(--ok); }
.pip.on.bad { background: var(--bad); border-color: var(--bad); }
.stat-why { font-size: .8rem; color: var(--bad); margin-top: 2px; }
.combo-verdict { margin-top: 6px; font-size: .95rem; }
.junk { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.junk-item { background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; }
.junk-item:not(:disabled):hover { border-color: var(--lime); }
.junk-item img { height: 46px; width: auto; object-fit: contain; }
.junk-name { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.2; }
.junk-stats { font: 700 .85rem var(--label); letter-spacing: .06em; color: var(--muted); }
.junk-item.used { opacity: .35; cursor: default; }

/* ---------- traps ---------- */
.trap-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.trap { background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.trap img { height: 42px; width: auto; object-fit: contain; }
.trap-name { font-size: .83rem; font-weight: 600; text-align: center; line-height: 1.2; }
.trap-type { font: 700 .82rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.trap.selected { border-color: var(--lime); background: rgba(217,225,55,.12); }
.trap.used { opacity: .45; }
.yard { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) 60px; gap: 6px; padding: 10px 10px 34px; border-radius: 14px; background: linear-gradient(#3b4a2c, #2a3520); border: 1px solid var(--line); min-height: 190px; margin: 8px 0; overflow: hidden; }
.zone { position: relative; z-index: 1; border: 2px dashed rgba(255,255,255,.3); border-radius: 10px; background: rgba(0,0,0,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; cursor: pointer; }
.zone:hover { border-color: var(--lime); }
.zone img { height: 48px; width: auto; }
.zone-label { font: 700 .95rem var(--label); letter-spacing: .1em; text-transform: uppercase; }
.zone-empty { font-size: .82rem; color: #d3d8c6; }
.zone-trap { font-size: .8rem; text-align: center; line-height: 1.2; }
.zone.holds { border-style: solid; border-color: var(--ok); background: rgba(159,208,90,.18); }
.zone.partial { border-style: solid; border-color: var(--yellow); background: rgba(244,189,46,.14); }
.zone.fails, .zone.backfire { border-style: solid; border-color: var(--bad); background: rgba(255,138,92,.16); }
.yard-hatch { position: relative; z-index: 1; border-radius: 10px; background: #474a44 repeating-linear-gradient(90deg, #555850 0 6px, #474a44 6px 12px); border: 3px solid #1b1d1a; }
.yard-hatch::after { content: 'HATCH'; position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font: 700 .8rem var(--label); letter-spacing: .1em; }
.yard-grass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30px; object-fit: cover; opacity: .8; }
.yard-zombie { position: absolute; bottom: 6px; left: 0; height: 70%; width: auto; z-index: 0; opacity: .8; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.slider-row { margin-top: 6px; }
.yard-slider { flex: 1; min-width: 160px; accent-color: var(--lime); height: 28px; }
.trap-log { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.trap-fb { margin-top: 8px; }

/* ---------- battle ---------- */
.carry { list-style: none; padding: 0; display: grid; gap: 8px; }
.battle-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.battle-top .eyebrow { margin: 0; }
.hearts { display: flex; align-items: center; gap: 4px; }
.heart { font-size: 1.6rem; line-height: 1; color: #ff5a4a; }
.heart.lost { color: #6b6b64; }
.hearts-n { font: 700 1rem var(--label); letter-spacing: .08em; margin-left: 6px; }
.battle-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.battle-q { font-size: 1.45rem; outline: none; }
.battle-fb { background: var(--panel-2); border-left: 4px solid var(--lime); border-radius: 8px; padding: 12px 14px; margin: 12px 0 14px; }
.ending { padding: 0; overflow: hidden; }
.ending-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ending-zombie .ending-img { aspect-ratio: auto; max-height: 420px; object-fit: contain; background: #111; }
.ending-copy { padding: 22px 26px 26px; }
.ending-human .battle-q { color: var(--lime); font-size: 2.2rem; }
.ending-zombie .battle-q { color: var(--bad); font-size: 2.2rem; }
.ending .hearts { margin-bottom: 12px; }
.debrief { list-style: none; padding: 0; display: grid; gap: 8px; }

/* ---------- cert ---------- */
#cert-name { flex: 1; min-width: 180px; background: #111; border: 2px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 14px; font: inherit; }
#cert-name:focus { border-color: var(--lime); }
.cert { margin-top: 18px; border: 3px solid var(--lime); outline: 1px solid var(--lime); outline-offset: -10px; border-radius: 8px; padding: 34px 30px; text-align: center; background: #151714 url(assets/art/metal2.webp) center/100% 100%; position: relative; isolation: isolate; }
.cert::before { content: ''; position: absolute; inset: 0; background: rgba(20,21,18,.85); z-index: -1; border-radius: 6px; }
.cert-logo { width: 200px; margin: 0 auto 10px; }
.cert-kicker { font: 700 1.2rem var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--lime); }
.cert-name { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.2 var(--head); margin: 10px 0; overflow-wrap: anywhere; }
.cert-body { max-width: 460px; margin: 0 auto 20px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.cert-sig { font: 400 1.6rem var(--head); color: var(--lime); }
.sources { display: grid; gap: 6px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #151714; border-bottom: 1px solid var(--line); }
  .topbar-logo { height: 34px; width: auto; }
  .nav-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 700 1rem var(--label); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 40; top: 0; left: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .25s; visibility: hidden; }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .main { padding: 20px 16px 100px; }
  .card { padding: 20px 18px; }
  .hero-img { aspect-ratio: 4/3; object-position: 70% 50%; }
  .hero-copy { position: static; background: var(--panel); padding: 20px 18px; }
  .hero-copy > * { max-width: 100%; }
  .hero-logo { width: 170px; }
  .callout { padding: 32px 20px; }
  .callout-text { max-width: 100%; }
  .callout-sil { width: 46%; opacity: .35; }
  .meters { grid-template-columns: 1fr 1fr; }
  .sticky-meters { top: 55px; }
  .shop { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shop-item { padding: 10px; }
  .shop-item img { height: 42px; }
  .shop-name { font-size: .88rem; }
  .step-btn { width: 36px; height: 36px; }
  .gus-face { width: 60px; height: 60px; }
  .gus { gap: 10px; }
  .bench { grid-template-columns: 1fr; }
  .bins { grid-template-columns: 1fr; }
  .yard { grid-template-columns: repeat(3, 1fr) 36px; padding: 8px 8px 34px; min-height: 170px; }
  .zone img { height: 36px; }
  .zone-label { font-size: .82rem; }
  .yard-hatch::after { font-size: .7rem; }
  .hs-label { font-size: .75rem; padding: 1px 5px; }
  .hs-dot { width: 24px; height: 24px; }
  .w-note { min-width: 160px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print: certificate only ---------- */
#print-root { display: none; }
@media print {
  @page { size: landscape; margin: 0.5in; }
  body.printing-cert { background: #fff; }
  body.printing-cert > :not(#print-root) { display: none !important; }
  body.printing-cert #print-root { display: block; }
  #print-root .cert { margin: 0; padding: 64px 56px; background: #fff; color: #111; border-color: #4E6A30; outline-color: #4E6A30; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .cert::before { display: none; }
  #print-root .cert-kicker, #print-root .cert-sig { color: #4E6A30; }
  #print-root .cert .small { color: #444; }
  #print-root .cert-logo { content: url(assets/brand/LOGO_Zombie_BLK_new.svg); width: 260px; }
}
