:root {
  --dw-bg: #efe4cc; --dw-fg: #2b2118; --dw-accent: #9b2d20; --dw-panel: rgba(245, 236, 216, .97);
  --dw-font-body: 'EB Garamond', Georgia, serif; --display: 'IM Fell English SC', Georgia, serif;
  --ink: #2b2118; --red: #9b2d20; --ochre: #b8862f; --sepia: #6b5238; --line: #2b211833; --vellum: #f6eedb;
}
body { overflow-x: hidden; font-size: 1.15rem; background: var(--dw-bg) radial-gradient(120% 90% at 50% 40%, transparent 60%, #c9b48a55 100%) fixed; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 .45em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--red); }
h3 { font-size: 1.4rem; }
section { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px); }
.dw-plain { font: inherit; color: inherit; }
a { color: var(--red); }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 10px clamp(16px, 4vw, 40px); background: #efe4cce8; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { color: var(--red); }
.dw-audio { color: var(--ink); }
@media (max-width: 640px) { .topbar nav a { display: none; } }

.hero { min-height: 100svh; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: 100px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 80px; } }
.hero-map { position: relative; transform: rotate(-1.2deg); box-shadow: 0 30px 60px #2b211840, 0 0 0 10px #f6eedb, 0 0 0 11px #2b211833; }
.hero-map img { width: 100%; height: auto; }
.hs { position: absolute; width: 10%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed transparent; background: transparent; cursor: pointer; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: var(--red); background: #9b2d201a; }
.hs.is-found { border-color: var(--ochre); }
.hs-tunnel { left: 48%; top: 62%; width: 13%; }
.kicker { font-style: italic; color: var(--sepia); margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); }
.word { background: none; border: 0; padding: 0; cursor: pointer; color: var(--red); text-decoration: underline dotted; text-underline-offset: .2em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.btn { font-family: var(--display); font-size: 1.15rem; text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); padding: .55em 1.2em; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--vellum); }
.btn-hot { background: var(--red); border-color: var(--red); color: var(--vellum); }

.diary-intro { display: grid; place-items: center; padding-top: 30px; }
.diary { max-width: 720px; margin: 0; font-size: 1.3rem; font-style: italic; border-left: 3px solid var(--red); padding: 0 0 0 1.4rem; }
.diary cite { display: block; font-family: var(--display); font-style: normal; color: var(--sepia); margin-top: .6rem; }

.planner { background: var(--vellum); border-block: 1px solid var(--line); }
.planner-head { max-width: 860px; margin: 0 auto 1.2rem; text-align: center; }
.intel { max-width: 1100px; margin: 0 auto 14px; border: 1px dashed var(--sepia); padding: 6px 14px; background: #efe4cc; }
.intel p { margin: .3em 0; }
.orders { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.order { text-align: left; font: inherit; color: var(--ink); background: #fffaf0; border: 1px solid var(--line); border-left: 6px solid var(--c, var(--sepia)); padding: .5em .7em; cursor: pointer; display: grid; line-height: 1.2; transition: transform .15s; }
.order:hover:not(:disabled), .order:focus-visible { transform: translateY(-2px); border-color: var(--ink); }
.order:disabled { opacity: .4; cursor: not-allowed; }
.order b { font-family: var(--display); font-weight: 400; font-size: 1.12rem; }
.order small { color: var(--red); font-size: .85rem; }
.order span { font-size: .86rem; opacity: .8; }
.o-block { --c: #6b5238; } .o-bomb { --c: #9b2d20; } .o-moat { --c: #3f6f8a; } .o-sap { --c: #4a3a2a; } .o-forage { --c: #5d8a3a; }
.o-tower { --c: #b8862f; } .o-ladder { --c: #c0563a; } .o-parley { --c: #e8e0c8; } .o-bribe { --c: #c9a227; }
.timeline-wrap { max-width: 1100px; margin: 18px auto 0; overflow-x: auto; }
.timeline, .ticks { display: grid; grid-template-columns: repeat(30, minmax(22px, 1fr)); min-width: 680px; }
.timeline { position: relative; min-height: 64px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 30 - 1px), #2b21181f calc(100% / 30 - 1px) calc(100% / 30)); border: 1.5px solid var(--ink); background-color: #fffaf0; align-items: stretch; }
.timeline > * { grid-row: 1; }
.relief { background: repeating-linear-gradient(45deg, #9b2d2022 0 6px, transparent 6px 12px); border-inline: 1.5px dashed var(--red); }
.block { position: relative; z-index: 1; margin: 6px 1px; font: inherit; font-size: .78rem; line-height: 1.05; color: var(--vellum); background: var(--c, var(--sepia)); border: 0; padding: 2px 4px; cursor: pointer; overflow: hidden; text-align: left; }
.block.o-parley { color: var(--ink); border: 1px solid var(--ink); }
.block.now { outline: 3px solid var(--ochre); outline-offset: 1px; }
.ticks span { font-size: .75rem; text-align: center; color: var(--sepia); padding-top: 2px; border-top: 3px solid transparent; }
.ticks span.now { border-top-color: var(--red); color: var(--red); font-weight: 700; }
.gauges { max-width: 1100px; margin: 16px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; }
.gauge { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .95rem; }
.gauge i { grid-column: 1 / -1; height: 8px; background: #2b211822; display: block; }
.gauge em { display: block; height: 100%; background: var(--red); transition: width .2s; }
.gauge.ours em { background: #5d8a3a; }
.gauge b { font-family: var(--display); font-weight: 400; grid-row: 1; grid-column: 2; }
.plan-btns { max-width: 1100px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.days { margin: 0 auto 0 0; }
.days b { font-family: var(--display); color: var(--red); font-size: 1.3rem; }
.run { font-family: var(--display); font-size: 1.35rem; padding: .3em 1.1em; background: var(--red); color: var(--vellum); border: 0; cursor: pointer; }
.run:disabled { opacity: .45; cursor: not-allowed; }
.ghost { font: inherit; padding: .45em .9em; background: none; border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.log { max-width: 1100px; margin: 14px auto 0; max-height: 260px; overflow-y: auto; padding: 12px 16px 12px 2em; background: #fffaf0; border: 1px solid var(--line); font-size: 1.02rem; }
.log:empty { display: none; }
.log li { margin: .3em 0; }
.log li.good { color: #3f6b23; } .log li.bad { color: #8a4a1a; } .log li.win { color: #2f6b1a; font-weight: 700; } .log li.loss { color: var(--red); font-weight: 700; }
.seals { max-width: 1100px; margin: 12px auto 0; display: grid; gap: 8px; }
.seal { text-align: left; background: var(--red); color: var(--vellum); border: 0; padding: .7em 1em; cursor: pointer; font-family: var(--display); font-size: 1.1rem; }

.engine { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .engine { grid-template-columns: 1fr; } }
.art { position: relative; margin: 0; box-shadow: 0 20px 50px #2b211840; transform: rotate(.8deg); }
.art img { width: 100%; height: auto; }
.hs-weight { left: 15.5%; top: 38%; width: 18%; } .hs-gears { left: 12%; top: 76%; width: 14%; } .hs-crane { left: 84%; top: 79%; width: 10%; }
.features { padding-left: 1.1em; }
.features li { margin: .45em 0; }
.features b { color: var(--red); font-weight: 600; }

.found-wrap { text-align: center; padding-top: 20px; }
.found b { color: var(--red); }
.reward { max-width: 640px; margin: 1rem auto; padding: 1rem 1.2rem; border: 1.5px solid var(--red); background: #9b2d2010; }
.journal { max-width: 760px; margin: 1rem auto 0; text-align: left; }
.journal li { margin: .5em 0; }

.vote { text-align: center; max-width: 1000px; margin: 0 auto; }
.vote h3 { color: var(--sepia); margin-top: 1.8rem; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: .8rem auto 0; }
.offers.four { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.offer { font: inherit; font-size: 1.15rem; font-weight: 600; color: var(--ink); background: #fffaf0; border: 1px solid var(--ink); padding: 1em; cursor: pointer; transition: transform .15s; box-shadow: 4px 4px 0 #2b211833; }
.offer.small { padding: .8em; }
.offer small { font-weight: 400; font-size: .92rem; opacity: .8; }
.offer:hover, .offer:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }

.muster { display: grid; justify-items: center; text-align: center; background: var(--vellum); border-top: 1px solid var(--line); }
.muster .dw-optin { text-align: left; width: 100%; }
.dw-optin input[type=email] { background: #fffaf0; border: 1.5px solid var(--ink); border-radius: 0; }
.dw-optin button[type=submit] { background: var(--red); color: var(--vellum); border-radius: 0; font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.offer-note { margin: 0; color: var(--red); font-style: italic; }

.foot { padding: 30px 16px 10px; text-align: center; border-top: 1px solid var(--line); }
.rose { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 1.15rem; opacity: .6; }
.rose:hover, .rose:focus-visible { opacity: 1; }
.dw-toast { background: #2b2118f2; color: var(--vellum); }
