:root {
  --dw-bg: #0f3a66; --dw-fg: #eaf3ff; --dw-accent: #ff9f43; --dw-panel: rgba(9, 38, 70, .96);
  --dw-font-body: 'Bricolage Grotesque', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; --hand: 'Caveat', 'Comic Sans MS', cursive;
  --line: rgba(234, 243, 255, .22); --grid: rgba(234, 243, 255, .08);
}
body { overflow-x: hidden; background-color: var(--dw-bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(234, 243, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 243, 255, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
h1, h2, h3 { font-weight: 800; line-height: 1; margin: 0 0 .45em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
button { font: inherit; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 12px clamp(16px, 4vw, 40px); background: #0b2e52e6; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--dw-fg); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.cog { color: var(--dw-accent); }
.topbar nav { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: .8rem; }
.topbar nav a { color: var(--dw-fg); text-decoration: none; opacity: .85; }
.topbar nav a:hover { opacity: 1; color: var(--dw-accent); }
@media (max-width: 640px) { .topbar nav a { display: none; } }

.intro { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: 30px; }
.compass { position: absolute; right: clamp(8px, 4vw, 40px); top: clamp(30px, 6vw, 70px); width: clamp(70px, 12vw, 140px); color: #eaf3ff55; cursor: pointer; transform: rotate(14deg); }
.compass:hover, .compass:focus-visible { color: var(--dw-accent); }
.compass.is-found { color: #ffd0a0; }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 0 0 1rem; }
.rev { background: none; border: 1px solid var(--line); color: inherit; font: inherit; padding: 0 .4em; cursor: pointer; }
.rev.is-found { border-color: var(--dw-accent); color: var(--dw-accent); }
.intro h1 { font-size: clamp(2.8rem, 8vw, 6rem); max-width: 14ch; }
.intro h1 span { color: var(--dw-accent); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 62ch; opacity: .94; }
.note { font-family: var(--hand); font-size: 1.6rem; color: #ffd0a0; transform: rotate(-2deg); display: inline-block; margin: .5rem 0 0; }
.word { background: none; border: 0; padding: 0; color: inherit; font: inherit; border-bottom: 2px wavy var(--dw-accent); cursor: pointer; }

.bench { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding-top: 10px; }
@media (max-width: 940px) { .bench { grid-template-columns: 1fr; } }
.parts { display: grid; gap: 14px; }
fieldset { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px 14px; margin: 0; background: #0b2e5299; }
legend { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 .5em; color: var(--dw-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .4em .85em; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; transition: background .15s, border-color .15s, color .15s; }
.chip input:checked + span { background: var(--dw-accent); border-color: var(--dw-accent); color: #2a1300; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chip:hover span { border-color: var(--dw-accent); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.craft { flex: 1 1 200px; background: var(--dw-accent); color: #2a1300; font-weight: 800; font-size: 1.1rem; border: 0; border-radius: 10px; padding: .85em 1.2em; cursor: pointer; }
.craft:hover { background: #ffb870; }
.ghost { background: transparent; color: var(--dw-fg); border: 1px solid var(--line); border-radius: 10px; padding: .8em 1.1em; cursor: pointer; }
.ghost:hover:not([disabled]) { border-color: var(--dw-accent); }
.ghost[disabled] { opacity: .45; cursor: default; }
.ghost.small { padding: .45em .8em; font-size: .88rem; }

.sheet { position: sticky; top: 76px; background: #f4f8ff; color: #0f2c4c; border-radius: 6px; padding: 18px clamp(16px, 2.4vw, 26px) 16px; box-shadow: 0 30px 80px #0009;
  background-image: linear-gradient(#0f3a6612 1px, transparent 1px), linear-gradient(90deg, #0f3a6612 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; }
@media (max-width: 940px) { .sheet { position: relative; top: 0; } }
.ring { position: absolute; right: 22px; bottom: 54px; width: 84px; height: 84px; border-radius: 50%; border: 5px solid #8a5a2a22; box-shadow: inset 0 0 0 2px #8a5a2a14; cursor: pointer; }
.ring.is-found { border-color: #ff9f4366; }
.sheet-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; border-bottom: 2px solid #0f2c4c; padding-bottom: 6px; margin-bottom: 12px; }
.sheet-head [data-stamp] { color: #c0392b; border: 2px solid #c0392b; padding: 0 .5em; transform: rotate(-4deg); }
.sheet-body { font-size: .98rem; line-height: 1.5; min-height: 280px; }
.sheet-body .empty { opacity: .65; font-family: var(--mono); font-size: .9rem; }
.sheet-body h3 { font-size: 2rem; margin: 0 0 .1em; color: #0f3a66; }
.sheet-body .one { font-style: italic; margin: 0 0 .8em; }
.sheet-body h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin: .9em 0 .25em; color: #c0392b; }
.sheet-body ul { margin: 0; padding-left: 1.2em; }
.sheet-body .verdict { font-family: var(--hand); font-size: 1.55rem; color: #c0392b; margin: .8em 0 0; transform: rotate(-1deg); }
.sheet-body .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: .8rem; }
.sheet.is-drawn .sheet-body > * { animation: draw .5s ease both; }
.sheet.is-drawn .sheet-body > *:nth-child(2) { animation-delay: .05s; } .sheet.is-drawn .sheet-body > *:nth-child(3) { animation-delay: .1s; }
.sheet.is-drawn .sheet-body > *:nth-child(4) { animation-delay: .15s; } .sheet.is-drawn .sheet-body > *:nth-child(5) { animation-delay: .2s; }
@keyframes draw { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sheet-foot { display: flex; gap: 8px; margin-top: 14px; }
.sheet-foot .ghost { color: #0f2c4c; border-color: #0f2c4c55; }

.plan { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
.btn { display: inline-block; text-decoration: none; background: var(--dw-fg); color: #0f2c4c; font-weight: 800; padding: .85em 1.3em; border-radius: 10px; }
.btn:hover { background: var(--dw-accent); color: #2a1300; }
.small { font-size: .95rem; }
.offers { display: grid; gap: 10px; }
.offer { text-align: left; font-size: 1.05rem; font-weight: 700; color: var(--dw-fg); background: #0b2e52; border: 1px solid var(--line); border-radius: 10px; padding: .9em 1.1em; cursor: pointer; transition: border-color .2s, transform .2s; }
.offer small { font-weight: 400; font-size: .86rem; opacity: .78; }
.offer:hover, .offer:focus-visible { border-color: var(--dw-accent); transform: translateX(3px); }

.signup { display: grid; justify-items: center; text-align: center; }
.signup .dw-optin { text-align: left; width: 100%; }
.offer-note { margin: 0; color: var(--dw-accent); font-family: var(--mono); font-size: .85rem; }
.found { font-family: var(--mono); font-size: .85rem; margin-top: 2rem; opacity: .85; }
.reward { max-width: 640px; margin: 1rem auto; padding: 1rem 1.2rem; border: 1px solid var(--dw-accent); border-radius: 10px; background: #ff9f4314; }
.journal { max-width: 720px; margin: 1rem auto 0; text-align: left; }
.journal li { margin: .5em 0; }
.foot { padding: 30px 16px 10px; text-align: center; border-top: 1px solid var(--line); }
.more { font-family: var(--mono); font-size: .85rem; }
