:root {
  --bg: #FFF8DC;
  --paper: #FFFCEE;
  --ink: #1C2212;
  --ink-2: #5A6148;
  --olive: #556B2F;
  --olive-deep: #2F3D17;
  --on-olive: #FFF8DC;
  --rule: #E2D9B4;
  --flag: #7A5600;
  --bin-recycle: #2563A8;
  --bin-organics: #3E7B3E;
  --bin-landfill: #4A4A4A;
  --bin-special: #B8860B;
  --on-bin: #FFFFFF;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --font: "Overpass", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161A10; --paper: #1E2416; --ink: #F1ECD6; --ink-2: #A3AA92;
    --olive: #9DBE6A; --olive-deep: #23301A; --on-olive: #F1ECD6; --rule: #313826; --flag: #E9C46A;
    --bin-recycle: #2F6FB8; --bin-landfill: #575757; --bin-special: #A67A0A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.finder { width: 100%; }
.photo-link { margin: 6px 12px 0 0; }
.cam { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; display: grid; grid-template-rows: 1fr auto; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .aim { position: absolute; left: 50%; top: 42%; width: min(64vw, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); border-radius: 18px; }
.cam .aim i { position: absolute; width: 44px; height: 44px; border: 0 solid #fff; }
.cam .aim i:nth-child(1) { top: -3px; left: -3px; border-top-width: 6px; border-left-width: 6px; border-top-left-radius: 18px; }
.cam .aim i:nth-child(2) { top: -3px; right: -3px; border-top-width: 6px; border-right-width: 6px; border-top-right-radius: 18px; }
.cam .aim i:nth-child(3) { bottom: -3px; left: -3px; border-bottom-width: 6px; border-left-width: 6px; border-bottom-left-radius: 18px; }
.cam .aim i:nth-child(4) { bottom: -3px; right: -3px; border-bottom-width: 6px; border-right-width: 6px; border-bottom-right-radius: 18px; }
.cam .hint { position: relative; grid-row: 2; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-weight: 800; font-size: 1.1rem; }
.cam .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.cam.hit .aim i { border-color: #9DBE6A; }

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.app { max-width: 520px; margin: 0 auto; padding: 0 var(--gutter) 110px; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.quiet { color: var(--ink-2); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; background: var(--olive); color: var(--on-olive); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.link { font-weight: 800; color: var(--olive); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
.mark { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; color: var(--olive); }
section.view { padding-top: 8px; }

.ask { font-size: clamp(2.6rem, 12vw, 3.6rem); margin: 12px 0 18px; }
.finder { position: relative; display: grid; place-items: center; gap: 6px; aspect-ratio: 1 / .8; border-radius: 28px; background: var(--olive-deep); color: var(--on-olive); cursor: pointer; overflow: hidden; text-align: center; padding: 24px; grid-template-rows: 1fr auto auto; }
.finder .corners { position: relative; width: 112px; height: 112px; pointer-events: none; align-self: center; margin-bottom: 10px; }
.finder .corners i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--on-olive); }
.finder .corners i:nth-child(1) { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 10px; }
.finder .corners i:nth-child(2) { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 10px; }
.finder .corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 10px; }
.finder .corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 10px; }
.finder strong { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.finder span { font-size: .95rem; opacity: .8; max-width: 16rem; }
.status { margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--flag); background: var(--paper); font-weight: 600; }
.status.busy { border-left-color: var(--olive); }

.strip-head { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.strip-head h2 { font-size: 1.25rem; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.sticker { flex: none; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #FFFFFF; color: #1C2212; box-shadow: 0 0 0 1.5px var(--rule); }
.sticker canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.sticker b { font-weight: 800; font-size: .88rem; line-height: 1.2; }
.sticker small { font-size: .78rem; color: #5A6148; line-height: 1.2; }
.sticker:active { transform: scale(.98); }

.alts { margin-top: 18px; border-top: 1.5px solid var(--rule); }
.alt { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 64px; padding: 14px 0; border-bottom: 1.5px solid var(--rule); font-weight: 800; font-size: 1.05rem; }
.alt span { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.chev { flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-top: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 6px; }
details.alt { display: block; }
details.alt summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.alt summary::-webkit-details-marker { display: none; }
details.alt[open] .chev { transform: rotate(135deg); }
.code-entry { display: flex; gap: 8px; margin-top: 12px; }
.code-entry input { flex: 1; min-width: 0; font: inherit; font-weight: 600; padding: 0 16px; min-height: 52px; border-radius: 14px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink); }
.code-entry input:focus { border-color: var(--olive); outline: none; }

.q { padding-top: 18px; }
.q h2 { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: 10px; }
.q p { margin-bottom: 22px; max-width: 34ch; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yesno button { min-height: 88px; border-radius: 22px; font-weight: 900; font-size: 1.5rem; text-align: center; box-shadow: inset 0 0 0 2px var(--ink); }
.yesno button:first-child { background: var(--olive); color: var(--on-olive); box-shadow: none; }
.picks { border-top: 1.5px solid var(--rule); }
.pick { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 0; border-bottom: 1.5px solid var(--rule); }
.pick svg { flex: none; width: 34px; height: 34px; color: var(--olive); }
.pick b { display: block; font-weight: 800; line-height: 1.25; }
.pick span { color: var(--ink-2); font-size: .92rem; }
.pick em { margin-left: auto; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.back { margin-top: 14px; }
.guess { margin-bottom: 18px; }
.guess h3, .allh { font-size: 1.1rem; font-weight: 800; margin: 4px 0 8px; }

.verdict { margin: 0 calc(-1 * var(--gutter)); padding: 28px var(--gutter) 26px; color: var(--on-bin); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 52vh; position: relative; }
.verdict svg { width: 54px; height: 54px; margin-bottom: auto; }
.verdict .word { font-weight: 900; font-size: clamp(4.5rem, 26vw, 7.5rem); line-height: .85; letter-spacing: -.045em; }
.verdict .where { font-weight: 600; font-size: 1.05rem; opacity: .9; }
.verdict.band { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding-block: 22px; }
.verdict.band svg { width: 40px; height: 40px; margin: 0; }
.verdict.band .word { font-size: clamp(2.6rem, 13vw, 3.6rem); }
.verdict.band .where { margin-left: auto; text-align: right; font-weight: 800; }
.splitnote { margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter); background: var(--ink); color: var(--bg); font-weight: 800; }
.bin-recycle { background: var(--bin-recycle); } .bin-organics { background: var(--bin-organics); } .bin-landfill { background: var(--bin-landfill); } .bin-special { background: var(--bin-special); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: wipe .5s var(--ease) both; }
  .reveal .word { animation: drop .5s .12s var(--ease) both; }
  .reveal + .reveal { animation-delay: .08s; }
  @keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  @keyframes drop { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.what { padding: 22px 0 4px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.what h2 { font-size: 1.7rem; }
.what p { margin-top: 4px; }
.how { flex: none; margin-top: 4px; font-size: .82rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; color: var(--olive); }
.how.you { color: var(--flag); }
.block { padding: 18px 0; border-bottom: 1.5px solid var(--rule); }
.block:last-of-type { border-bottom: 0; }
.block h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.parts { display: grid; gap: 10px; }
.part { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 12px; align-items: baseline; }
.part i { width: 14px; height: 14px; border-radius: 4px; align-self: center; }
.part b { font-weight: 800; }
.part em { font-style: normal; font-weight: 800; }
.part small { grid-column: 2 / -1; color: var(--ink-2); font-size: .9rem; }
ol.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: 6px; }
ol.steps li::marker { font-weight: 900; color: var(--olive); }
.why p + p { margin-top: 10px; }
.flag { color: var(--flag); font-weight: 800; }
.after { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-top: 18px; }

.list { border-top: 1.5px solid var(--rule); margin-bottom: 34px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1.5px solid var(--rule); }
.row b { font-weight: 800; }
.row small { grid-column: 1 / -1; color: var(--ink-2); font-size: .9rem; }
.shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.35); color: #1C2212; font-weight: 900; font-size: .8rem; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.meter { display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: var(--rule); margin: 4px 0 10px; }
.meter i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; background: var(--c); vertical-align: -1px; }
.big { font-weight: 900; font-size: clamp(3rem, 15vw, 4.5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.note { color: var(--ink-2); font-size: .92rem; margin: 10px 0 22px; }

nav.tabs { position: fixed; inset: auto 0 0 0; z-index: 6; background: var(--bg); border-top: 1.5px solid var(--rule); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
nav.tabs .inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); }
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 12px; min-height: 60px; color: var(--ink-2); text-decoration: none; font-size: .8rem; font-weight: 800; position: relative; }
nav.tabs a[aria-current="page"] { color: var(--ink); }
nav.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -1.5px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--olive); }
nav.tabs svg { width: 24px; height: 24px; }
