:root {
  --dw-bg: #0f1f4d; --dw-fg: #f1e6cf; --dw-accent: #e08a3c; --dw-panel: rgba(10, 22, 58, .96);
  --dw-font-body: 'Space Grotesk', system-ui, sans-serif; --display: 'Young Serif', Georgia, serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --cream: #f1e6cf; --orange: #e08a3c; --cyan: #45b8c4; --deep: #0a163a; --line: #f1e6cf26; --red: #e0533c; --green: #63c49a;
}
body { overflow-x: hidden; background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px); background-size: 28px 28px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.sub { opacity: .85; margin-top: 0; }

.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: #0f1f4df0; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.3rem; color: var(--cream); text-decoration: none; }
.knot { width: 30px; height: 30px; color: var(--orange); }
.topbar nav { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: .8rem; }
.topbar nav a { color: var(--cream); text-decoration: none; opacity: .85; }
.topbar nav a:hover { color: var(--orange); opacity: 1; }
@media (max-width: 680px) { .topbar nav a { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-top: clamp(32px, 5vw, 64px); }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-fig { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-copy, .hero-fig { grid-column: 1; grid-row: auto; } }
.hero-fig { position: relative; margin: 0; border: 1px solid var(--line); box-shadow: 0 30px 80px #0009, 0 0 0 8px var(--deep); border-radius: 4px; overflow: hidden; }
.hero-fig img { width: 100%; height: auto; }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.hero em { font-style: normal; color: var(--orange); }
.lede { font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 50ch; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.btn { font-family: var(--mono); font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--cream); background: transparent; border: 1.5px solid var(--cream); padding: .85em 1.3em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--cream); color: var(--deep); }
.btn-hot { background: var(--orange); border-color: var(--orange); color: #1a0e02; }
.btn-hot:hover { background: #f4a560; border-color: #f4a560; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.hs { position: absolute; transform: translate(-50%, -50%); width: 7%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed transparent; background: transparent; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: var(--orange); background: #e08a3c2a; }
.hs.is-found { border-color: #45b8c499; }
.hs-balloon { left: 9%; top: 18%; width: 10%; } .hs-hook { left: 19.5%; top: 41%; width: 5%; } .hs-top { left: 70.5%; top: 9%; width: 5%; }
.hs-boat { left: 37%; top: 95%; width: 8%; } .hs-barrel { left: 95%; top: 95%; width: 5%; }

.what { display: grid; place-items: center; }
.what-inner { max-width: 820px; border: 1px solid var(--line); background: var(--deep); padding: clamp(22px, 4vw, 44px); border-radius: 6px; position: relative; }
.what-inner::before { content: ''; position: absolute; inset: 8px; border: 1px dashed #45b8c433; border-radius: 4px; pointer-events: none; }
.intro { opacity: .9; }
.tells { padding-left: 1.1em; }
.tells li { margin: .7em 0; }
.tells b { color: var(--orange); font-weight: 600; }
.tame i { font-style: normal; border-bottom: 1px dotted var(--cyan); color: var(--cyan); cursor: pointer; }

/* board */
.board { background: linear-gradient(var(--dw-bg), var(--deep)); }
.board-head { max-width: 1120px; margin: 0 auto 1.4rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tab { font-family: var(--mono); font-size: .82rem; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--cream); color: var(--deep); font-weight: 600; }
.board-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .board-grid { grid-template-columns: 1fr; } }
.levers, .gauges { background: #0d1b45; border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 3vw, 28px); }
.levers h3, .gauges h3 { font-size: 1.2rem; }
.lever { margin: 0 0 1.2rem; }
.lever label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .3rem; }
.lever output { font-family: var(--mono); color: var(--orange); font-weight: 400; font-size: .85rem; }
.lever small { display: block; opacity: .7; font-size: .85rem; margin-top: .2rem; }
input[type=range] { width: 100%; accent-color: var(--orange); height: 28px; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.meters li { display: grid; grid-template-columns: 9.5em 1fr 2.6em; gap: .7rem; align-items: center; font-size: .95rem; }
@media (max-width: 420px) { .meters li { grid-template-columns: 7.5em 1fr 2.4em; font-size: .88rem; } }
.track { height: 14px; background: #ffffff14; border-radius: 999px; overflow: hidden; position: relative; }
.track::after { content: ''; position: absolute; left: 70%; top: -2px; bottom: -2px; width: 2px; background: #ffffff55; }
.fill { display: block; height: 100%; width: 50%; border-radius: 999px; background: var(--cyan); transition: width .35s ease, background .35s; }
.fill.good { background: var(--green); } .fill.bad { background: var(--red); }
.val { font-family: var(--mono); font-size: .82rem; text-align: right; }
.broke { min-height: 3em; margin: 1.2rem 0 1rem; font-family: var(--mono); font-size: .88rem; color: #ffb9a6; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aftermath { min-height: 1.5em; margin: 1rem 0 0; padding: 0; font-size: 1rem; line-height: 1.5; }
.aftermath:not(:empty) { padding: 1rem 1.1rem; border-left: 3px solid var(--orange); background: #e08a3c14; }
.ghost-secret { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* slate */
.slate { max-width: 980px; margin: 0 auto; }
.topics { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.topics li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #0d1b45; }
.topics .t { font-family: var(--display); font-size: 1.12rem; }
.topics .d { display: block; font-size: .88rem; opacity: .75; margin-top: .15rem; }
.vote { flex: none; font-family: var(--mono); font-size: .8rem; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--orange); background: transparent; color: var(--cream); cursor: pointer; }
.vote[aria-pressed="true"] { background: var(--orange); color: #1a0e02; }
.your-votes { font-family: var(--mono); color: var(--cyan); min-height: 1.4em; }

.support { text-align: center; background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support > p { max-width: 60ch; margin: 0 auto; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 1100px; margin: 1.8rem auto 0; }
.offer { display: grid; gap: .35rem; align-content: start; font: inherit; text-align: left; color: var(--cream); background: #0f1f4d; border: 1px solid var(--line); border-radius: 10px; padding: 1.2em; cursor: pointer; transition: border-color .2s, transform .2s; }
.offer:hover, .offer:focus-visible { border-color: var(--orange); transform: translateY(-2px); }
.o-k { font-family: var(--display); font-size: 1.2rem; }
.o-p { font-family: var(--mono); color: var(--orange); font-size: .9rem; }
.offer small { opacity: .8; font-size: .9rem; }

.signup { display: grid; justify-items: center; text-align: center; }
.signup > p { max-width: 56ch; }
.signup .dw-optin { width: 100%; text-align: left; }
.dw-optin button[type=submit] { font-family: var(--mono); color: #1a0e02; }
.offer-note { margin: 0; color: var(--cyan); font-family: var(--mono); font-size: .88rem; }
.found-box { max-width: 680px; width: 100%; margin-top: 2.4rem; text-align: left; }
.found { font-family: var(--mono); text-align: center; color: var(--cyan); }
.reward { padding: 1rem 1.2rem; border: 1px solid var(--orange); border-radius: 8px; background: #e08a3c14; }
.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; }
