:root {
  --dw-bg: #0d1b22; --dw-fg: #f2e6cf; --dw-accent: #e8742f; --dw-panel: rgba(13, 27, 34, .95);
  --dw-font-body: 'Lora', Georgia, serif; --display: 'Rye', 'Lora', serif; --label: 'Bebas Neue', Impact, sans-serif;
  --paper: #efe0c4; --ink: #2a1a0e; --orange: #e8742f; --rust: #a8431c; --teal: #1d5c63; --tin: #d9dde0; --line: rgba(242, 230, 207, .18);
}
body { overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0 0 .45em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
section { padding: clamp(56px, 9vw, 112px) clamp(16px, 5vw, 64px); }
kbd { font-family: var(--label); font-size: 1.05em; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 12px clamp(16px, 4vw, 40px); background: #0d1b22d8; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 3px solid var(--orange); }
.brand { display: flex; align-items: center; gap: .5em; font-family: var(--display); font-size: 1.3rem; color: var(--paper); text-decoration: none; letter-spacing: .04em; }
.star { color: var(--tin); text-shadow: 0 0 8px #fff6; }
.topbar nav { display: flex; align-items: center; gap: 20px; font-family: var(--label); font-size: 1.15rem; letter-spacing: .06em; }
.topbar nav a { color: var(--paper); text-decoration: none; opacity: .85; }
.topbar nav a:hover { color: var(--orange); opacity: 1; }
.dw-audio { font-family: var(--label); font-size: 1rem; }
@media (max-width: 760px) { .topbar nav a { display: none; } .brand { font-size: 1.05rem; } }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 0; overflow: hidden; }
.hero-layer { position: absolute; inset: 0; }
.hero-fig { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100svh * 1.7778)); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
.hero-art { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, #0d1b22f0 0%, #0d1b22b8 34%, transparent 58%), linear-gradient(transparent 70%, #0d1b22 100%); }
.hero-copy { position: relative; z-index: 3; justify-self: end; width: min(100%, 640px); padding: 0 clamp(16px, 5vw, 64px) clamp(44px, 9vh, 110px); }
.kicker { font-family: var(--label); font-size: 1.1rem; letter-spacing: .14em; color: var(--orange); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); text-shadow: 0 4px 24px #000; }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.2rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.btn { display: inline-block; font-family: var(--label); font-size: 1.25rem; letter-spacing: .08em; text-decoration: none; color: var(--paper); border: 2px solid var(--paper); padding: .5em 1.2em; cursor: pointer; background: transparent;
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); transition: background .2s, color .2s; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-hot { background: var(--orange); border-color: var(--orange); color: #1d0c02; }
.btn-hot:hover { background: #ff9a5a; border-color: #ff9a5a; }
.hs { position: absolute; z-index: 4; 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(--orange); background: #e8742f26; }
.hs.is-found { border-color: #d9dde0aa; }
.hs-lasso { left: 14.3%; top: 21.7%; width: 10%; aspect-ratio: 1; }
.hs-horse { left: 57.4%; top: 23.4%; width: 8%; aspect-ratio: 1; }
.hs-helmet { left: 36.9%; top: 7.7%; width: 7%; aspect-ratio: 1; }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-top: 58px; }
  .hero-layer { position: relative; inset: auto; overflow: hidden; }
  .hero-fig { position: relative; left: -12%; top: 0; width: 135%; transform: none; }
  .hero::after { inset: 58px 0 auto 0; height: 76vw; background: linear-gradient(transparent 60%, #0d1b22 100%); }
  .hero-copy { width: 100%; }
}

.opener { text-align: center; background: var(--paper); color: var(--ink); }
.openline { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.2; margin: 0; }
.openline em { color: var(--rust); font-style: normal; }
.attr { font-family: var(--label); letter-spacing: .12em; font-size: 1.05rem; color: var(--rust); margin-top: 1rem; }

.ride { background: radial-gradient(80% 60% at 50% 0%, #17323b, var(--dw-bg)); }
.ride-head { max-width: 820px; margin: 0 auto 1.4rem; text-align: center; }
.ride-head p { opacity: .88; }
.game-frame { position: relative; max-width: 980px; margin: 0 auto; border: 6px solid #3a2414; border-radius: 6px; outline: 2px solid var(--orange); overflow: hidden; box-shadow: 0 40px 100px #000c; }
#ring { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: #081218; touch-action: none; }
.hud { position: absolute; top: 8px; right: 12px; display: flex; gap: 14px; padding: 4px 12px; border-radius: 6px; background: #081218d9; font-family: var(--label); font-size: 1.05rem; letter-spacing: .05em; color: #e8dcc4; }
.hud b { color: var(--orange); font-weight: 400; }
.hud-msg { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px; font-family: var(--label); font-size: 1.1rem; letter-spacing: .04em; background: linear-gradient(transparent, #000c); }
@media (max-width: 560px) { .hud { gap: 8px; font-size: .9rem; } .hud-msg { font-size: .95rem; } }
.pads { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pads button { font-family: var(--label); font-size: 1.4rem; min-width: 70px; padding: .5em 1em; border-radius: 6px; border: 2px solid var(--line); background: #17323b; color: var(--paper); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.pads .lasso { background: var(--orange); color: #1d0c02; border-color: var(--orange); min-width: 150px; }
.pads .restart { font-size: 1.1rem; opacity: .8; }

.saloon { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1240px; margin: 0 auto; }
@media (max-width: 900px) { .saloon { grid-template-columns: 1fr; } }
.saloon-copy p { opacity: .9; }
.art { position: relative; margin: 0; border: 8px solid var(--paper); box-shadow: 0 30px 90px #000b; transform: rotate(-.6deg); }
.art.wide { transform: rotate(.4deg); max-width: 1100px; margin: 1.6rem auto 0; }
.art img { width: 100%; height: auto; }
.hs-bar { left: 51.1%; top: 32.4%; width: 9%; aspect-ratio: 1; }
.hs-hat { left: 68.1%; top: 78.2%; width: 10%; aspect-ratio: 1.3; }
.hs-floor { left: 22.4%; top: 77.3%; width: 14%; aspect-ratio: 1.6; }
.hs-piano { left: 87.3%; top: 59.2%; width: 8%; aspect-ratio: 1; }
.hs-ma { left: 19%; top: 24%; width: 14%; aspect-ratio: .8; }
.hs-pete { left: 43%; top: 28%; width: 14%; aspect-ratio: .8; }
.hs-titan { left: 68%; top: 16%; width: 14%; aspect-ratio: .8; }

.wanted { background: var(--paper); color: var(--ink); text-align: center; background-image: radial-gradient(#2a1a0e14 1px, transparent 1px); background-size: 6px 6px; }
.wanted-sub { max-width: 60ch; margin: 0 auto; }
.wanted .found { font-family: var(--label); font-size: 1.2rem; letter-spacing: .08em; margin-top: 1.6rem; }
.wanted .reward { max-width: 640px; margin: 1rem auto; padding: 1rem 1.2rem; border: 3px double var(--rust); background: #fff4dc; }
.wanted .journal { max-width: 760px; margin: 1rem auto 0; text-align: left; }
.journal li { margin: .5em 0; }
.journal strong { color: var(--rust); margin-right: .3em; }
.wanted .hs:hover, .wanted .hs:focus-visible { border-color: var(--rust); }

.deputy { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .deputy { grid-template-columns: 1fr; } }
.lbl { display: block; font-family: var(--label); letter-spacing: .1em; font-size: 1.1rem; margin: 1rem 0 .3rem; color: var(--orange); }
.deputy input[type=text] { width: 100%; font: inherit; font-size: 1.2rem; padding: .7em .9em; border-radius: 4px; border: 2px solid var(--line); background: #0a151b; color: var(--paper); margin-bottom: 1rem; }
.cert { background: var(--paper); color: var(--ink); padding: clamp(20px, 4vw, 40px); text-align: center; border: 10px double var(--rust); box-shadow: 0 30px 80px #000b; }
.cert-k { font-family: var(--label); letter-spacing: .14em; font-size: 1rem; color: var(--rust); margin: 0; }
.cert-star { font-size: 3.4rem; line-height: 1; margin: .2em 0; color: #8b9399; text-shadow: 0 2px 0 #fff; }
.cert-t { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 .6rem; }
.cert-body { margin: .3rem 0; font-style: italic; }
.cert-name { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 2px solid var(--ink); display: inline-block; padding: 0 .4em; margin: .4rem 0; overflow-wrap: anywhere; }
.cert-sig { font-family: var(--display); font-size: 1.3rem; margin-top: 1rem; }
.cert-sig small { font-family: var(--label); letter-spacing: .1em; font-size: .9rem; }
.cert-fine { font-size: .78rem; opacity: .75; margin-bottom: 0; }

.posse { text-align: center; }
.posse > p { max-width: 60ch; margin: 0 auto; opacity: .88; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 900px; margin: 1.6rem auto 0; }
.offer { font-family: var(--display); font-size: 1.3rem; color: var(--paper); background: #17323b; border: 2px solid var(--line); border-radius: 6px; padding: 1.1em 1em; cursor: pointer; transition: border-color .2s, transform .2s; }
.offer small { display: block; font-family: var(--dw-font-body); font-size: .88rem; opacity: .8; margin-top: .4em; }
.offer:hover, .offer:focus-visible { border-color: var(--orange); transform: translateY(-3px); }
.merch-k { font-family: var(--label); letter-spacing: .1em; font-size: 1.15rem; margin-top: 2rem !important; }
.merch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: .6rem; }
.chip { font-family: var(--label); font-size: 1.1rem; letter-spacing: .05em; padding: .5em 1em; border-radius: 999px; border: 2px solid var(--orange); background: transparent; color: var(--paper); cursor: pointer; }
.chip:hover, .chip:focus-visible { background: var(--orange); color: #1d0c02; }

.roll { display: grid; justify-items: center; text-align: center; background: linear-gradient(#0d1b22, #2a1408); }
.roll > p { max-width: 56ch; opacity: .9; }
.roll .dw-optin { text-align: left; width: 100%; }
.dw-optin button[type=submit] { background: var(--orange); color: #1d0c02; font-family: var(--label); font-size: 1.2rem; letter-spacing: .06em; }
.offer-note { margin: 0; color: var(--orange); font-family: var(--label); font-size: 1.1rem; letter-spacing: .04em; }

.foot { padding: 30px 16px 8px; text-align: center; border-top: 3px solid var(--orange); }
.more, .fables { font-size: .95rem; }
.word { font: inherit; color: var(--orange); background: none; border: 0; padding: 0; border-bottom: 1px dotted var(--orange); cursor: pointer; }

@media print {
  body { background: #fff !important; }
  body > *:not(#deputy), .topbar, .dw-toast, .deputy-copy { display: none !important; }
  #deputy { display: block; padding: 0; }
  .cert { box-shadow: none; border-color: #a8431c; max-width: 680px; margin: 0 auto; }
}
