/* Deed Wars by Swamp Kitten */
:root {
  --bg: #0f141b;
  --panel: #18212d;
  --panel-2: #222d3c;
  --line: #33445a;
  --text: #e9eef3;
  --muted: #8798ab;
  --gold: #f2c14e;
  --on-gold: #2a1d00;
  --gold-shadow: #6b4d0c;
  --gold-edge: #b8892a;
  --green: #7fd88f;
  --red: #ff6f61;
  --river: #2e6fb7;
  --notch: polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'VT323', ui-monospace, monospace; font-size: 22px; line-height: 1.3;
}
a { color: var(--gold); text-underline-offset: 4px; }
a:hover { color: #ffd77a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img.px, .px { image-rendering: pixelated; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.px-font, h1, h2, h3, .label, .btn, .tag { font-family: 'Press Start 2P', monospace; font-weight: 400; }
.notch { clip-path: var(--notch); }

/* labels + headings */
.label { font-size: 10px; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin: 0 0 14px; line-height: 1.6; }
h2 { font-size: 18px; line-height: 1.5; margin: 0 0 24px; text-transform: uppercase; }
h3 { font-size: 12px; line-height: 1.6; margin: 0 0 8px; text-transform: uppercase; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 20px 18px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer; clip-path: var(--notch);
}
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 -4px 0 var(--gold-edge); }
.btn-gold:hover { color: var(--on-gold); background: #f6cd6a; }
.btn-dark { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -4px 0 var(--line); }
.btn-dark:hover { color: var(--text); background: #2a3749; }
.btn:active { box-shadow: none; transform: translateY(4px); padding-bottom: 14px; }
.btn[disabled] { opacity: 0.7; cursor: default; }

/* top bar */
.top { border-bottom: 4px solid var(--panel-2); }
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.top a { text-decoration: none; }
.top .sk { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--muted); padding: 10px 0; }
.top .sk:hover { color: var(--text); }
.top .mini { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--gold); text-shadow: 2px 2px 0 var(--gold-shadow); padding: 10px 0; }

/* hero */
.hero { padding: 48px 0 40px; display: grid; gap: 40px; }
.logo {
  margin: 0; font-size: clamp(32px, 9vw, 48px); line-height: 1.15; color: var(--gold);
  text-shadow: 4px 4px 0 var(--gold-shadow); letter-spacing: 0.02em;
}
.subhead { font-family: 'Press Start 2P', monospace; font-size: 12px; line-height: 1.9; margin: 22px 0 18px; color: var(--text); }
.intro { font-size: 22px; color: var(--text); }
.origin { font-size: 18px; color: var(--muted); margin-top: 6px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@media (min-width: 860px) {
  .wrap.wide { max-width: 1040px; }
  .hero { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 56px; }
}

/* phone placeholder */
.phone {
  width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 9 / 19.5;
  background: var(--panel-2); padding: 12px; clip-path: var(--notch);
}
.phone-screen {
  height: 100%; background: var(--bg); clip-path: var(--notch);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(51,68,90,0.35) 10px 12px);
}
.ph { font-family: 'Press Start 2P', monospace; font-size: 9px; line-height: 1.7; color: var(--muted); text-transform: uppercase; }

/* sections */
section { padding: 52px 0; border-top: 4px solid var(--panel-2); }

/* steps */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; gap: 18px; align-items: center; }
.step .phone { max-width: 180px; }
.step-num { display: inline-block; font-family: 'Press Start 2P', monospace; font-size: 11px; background: var(--gold); color: var(--on-gold); padding: 6px 8px 7px; margin-bottom: 12px; clip-path: var(--notch); }
@media (min-width: 640px) { .step { grid-template-columns: 180px 1fr; gap: 28px; } }
.tag-deal { color: #c4f0cb; }
.tag-steal { color: var(--green); }

/* neighborhood cards */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--panel); padding: 18px 18px 16px; clip-path: var(--notch); }
.card p { margin: 0; color: var(--muted); font-size: 21px; }
.card h3 { color: var(--text); }
.card.home { background: var(--panel-2); box-shadow: inset 0 0 0 3px var(--gold); }
.tag { display: inline-block; font-size: 8px; padding: 5px 6px; margin-bottom: 10px; background: var(--gold); color: var(--on-gold); clip-path: var(--notch); }

/* crew */
.crew { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.member { background: var(--panel); padding: 12px 12px 14px; clip-path: var(--notch); }
.portrait {
  aspect-ratio: 1 / 1; background: var(--panel-2); margin-bottom: 12px; clip-path: var(--notch);
  display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(51,68,90,0.45) 8px 10px);
}
.member h3 { font-size: 10px; margin-bottom: 6px; }
.member p { margin: 0; font-size: 19px; line-height: 1.2; color: var(--muted); }
.member.gip h3 { color: var(--gold); }
.member.hardass h3 { color: var(--red); }
.member.you h3 { color: var(--green); }

/* gip */
.quote {
  margin: 0 0 22px; font-family: 'Press Start 2P', monospace; font-size: clamp(14px, 3.6vw, 20px); line-height: 1.7;
  color: var(--gold); text-shadow: 3px 3px 0 var(--gold-shadow);
}
.gip-body { font-size: 23px; }

/* carriage house */
.callout { background: var(--panel-2); padding: 24px; clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--gold); }
.callout p { margin: 0; }

/* modes */
.modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 24px; }
.mode { background: var(--panel); padding: 18px; clip-path: var(--notch); }
.mode .num { font-family: 'Press Start 2P', monospace; font-size: 26px; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-shadow); margin: 6px 0 12px; line-height: 1; }
.mode .unit { font-size: 9px; color: var(--muted); text-shadow: none; margin-left: 4px; }
.mode p { margin: 0; color: var(--muted); font-size: 20px; }
.extras { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.extras li::before { content: "▸ "; color: var(--gold); }

/* signup */
.signup { background: var(--panel); padding: 28px 24px; clip-path: var(--notch); }
.signup h2 { color: var(--gold); text-shadow: 3px 3px 0 var(--gold-shadow); }
.notify-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.notify-row input {
  flex: 1 1 220px; min-height: 52px; padding: 10px 14px; border: 0;
  font-family: 'VT323', monospace; font-size: 24px; color: var(--text);
  background: var(--bg); box-shadow: inset 0 0 0 3px var(--line); clip-path: var(--notch);
}
.notify-row input::placeholder { color: var(--muted); }
.notify-row input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.notify-note { margin: 12px 0 0; color: var(--muted); font-size: 20px; }
.notify-note.ok { color: var(--green); font-family: 'Press Start 2P', monospace; font-size: 12px; line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* faq */
.faq { display: grid; gap: 12px; margin: 0; }
.faq div { background: var(--panel); padding: 18px; clip-path: var(--notch); }
.faq dt { font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.7; margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--muted); }

/* skyline + footer */
.skyline { display: block; width: 100%; height: auto; margin-top: 24px; image-rendering: pixelated; }
footer { background: #0a0e13; }
footer .wrap { padding-top: 22px; padding-bottom: 34px; font-size: 20px; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* stepped blink for the cursor */
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } .btn:active { transform: none; } }

/* sizing tweaks */
.hero .phone { max-width: 220px; }
.step .phone { max-width: 140px; }
@media (min-width: 640px) { .step { grid-template-columns: 140px 1fr; } }
@media (min-width: 860px) { .hero .phone { max-width: 260px; } }

/* real assets */
.phone-screen.has-shot { padding: 0; background-image: none; display: block; }
.phone .shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-img { display: block; width: 96px; height: 96px; margin-bottom: 12px; image-rendering: pixelated; clip-path: var(--notch); }
.split { display: grid; gap: 28px; align-items: center; }
.split .phone { max-width: 220px; }
.gip-face { margin-bottom: 18px; }
@media (min-width: 640px) { .split { grid-template-columns: 1fr 220px; } }
.gallery { display: grid; gap: 24px; margin-top: 32px; align-items: center; justify-items: center; }
.gallery .phone { max-width: 220px; }
.scorecard { margin: 0; text-align: center; }
.scorecard img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 12px; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* VT323 draws © like @; use a system font for that one glyph */
.copy { font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 0.8em; }

/* bigger tap targets on phones */
.top .sk, .top .mini { display: inline-block; padding: 14px 0; }
footer a { display: inline-block; padding: 10px 0; }

/* ===== motion & easter eggs (all motion steps, never glides) ===== */

/* 1. market ticker */
.ticker { overflow: hidden; background: var(--panel); border-top: 4px solid var(--panel-2); border-bottom: 4px solid var(--panel-2); white-space: nowrap; }
.ticker-track { display: inline-flex; padding: 10px 0; animation: ticker 60s steps(480) infinite; }
.tick { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; font-size: 22px; color: var(--muted); border-right: 2px solid var(--line); }
.tick em { font-style: normal; color: var(--text); }
.tick strong { font-weight: 400; color: var(--gold); }
.tick b { font-family: 'Press Start 2P', monospace; font-weight: 400; font-size: 9px; padding: 4px 5px 3px; color: var(--bg); }
.t-up { background: var(--green); } .t-steal { background: var(--green); } .t-deal { background: #c4f0cb; }
.t-hot { background: var(--gold); } .t-high { background: #e8916b; } .t-soon { background: var(--muted); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 2. skyline: windows flick on/off, river shimmers */
.wins rect { animation: win 7s steps(1) infinite; }
.wins rect:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.wins rect:nth-child(3n) { animation-duration: 11s; animation-delay: -6s; }
.wins rect:nth-child(5n) { animation-duration: 5s; animation-delay: -1s; }
@keyframes win { 0%, 70% { opacity: 1; } 71%, 85% { opacity: 0; } 86%, 100% { opacity: 1; } }
.ripples rect { animation: ripple 2.4s steps(1) infinite; }
.ripples rect:nth-child(2n) { animation-delay: -1.2s; }
@keyframes ripple { 0% { transform: translateX(0); } 50% { transform: translateX(2px); } }

/* 3. crew idle bob (one sprite pixel = 4px) + tap to jump */
.member .portrait-img { animation: bob 1.6s steps(1) infinite; cursor: pointer; }
.member:nth-child(2n) .portrait-img { animation-delay: -0.8s; }
.member:nth-child(3n) .portrait-img { animation-delay: -0.4s; }
@keyframes bob { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.member .portrait-img.jump { animation: jump 0.48s steps(1) 1; }
@keyframes jump { 0% { transform: translateY(-8px); } 25% { transform: translateY(-16px); } 50% { transform: translateY(-8px); } 75% { transform: translateY(0); } }

/* 4/6. Gip quote typewriter + poke */
.gip-btn { background: none; border: 0; padding: 0; margin: 0 0 18px; cursor: pointer; display: block; }
.gip-btn .gip-face { margin: 0; }
.gip-btn.poked .gip-face { animation: jump 0.48s steps(1) 1; }
.quote .caret { animation: blink 0.8s steps(1) infinite; }

/* 5. score card count-up */
.sc-wrap { position: relative; max-width: 300px; margin: 0 auto 12px; container-type: inline-size; }
.sc-wrap img { margin: 0 !important; }
.sc-num {
  position: absolute; left: 12%; right: 12%; top: 48.6%; height: 10%;
  display: flex; align-items: center; justify-content: center;
  background: #0f151c; color: var(--green); font-size: 14cqw; line-height: 1; letter-spacing: 0.02em;
  visibility: hidden;
}
.sc-num.on { visibility: visible; }

/* 7. Inspector Hardass */
.hardass-walk { position: fixed; bottom: 16px; left: -110px; z-index: 50; width: 96px; height: 96px; image-rendering: pixelated; pointer-events: none; animation: march 3.2s steps(16) forwards; }
.hardass-walk.step { animation: march 3.2s steps(16) forwards, bob 0.2s steps(1) infinite; }
@keyframes march { to { left: calc(50% - 48px); } }
.notice {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); z-index: 51; width: min(340px, calc(100% - 32px));
  background: #f4efe1; color: #2a1d00; padding: 18px 18px 14px; clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--red); font-size: 21px; line-height: 1.2;
}
.notice h4 { margin: 0 0 8px; font-family: 'Press Start 2P', monospace; font-weight: 400; font-size: 10px; line-height: 1.6; color: #b3261e; }
.notice p { margin: 0 0 8px; }
.notice button { font-family: 'Press Start 2P', monospace; font-size: 9px; background: #2a1d00; color: #f4efe1; border: 0; padding: 10px 12px; min-height: 40px; cursor: pointer; clip-path: var(--notch); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .wins rect, .ripples rect, .member .portrait-img, .member .portrait-img.jump, .gip-btn.poked .gip-face, .quote .caret, .hardass-walk { animation: none !important; }
  .ticker { overflow-x: auto; }
}

/* shared Swamp Kitten header/footer pattern */
.sk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sk-mark { display: inline-flex; padding: 10px 0; color: var(--muted); }
.sk-mark:hover, .sk-mark:focus-visible { color: var(--gold); }
.sk-mark .pupil { fill: #0a0e13; }
.sk-foot { flex-wrap: nowrap; align-items: flex-start; }
.sk-foot .sk-mark { padding: 6px 0 0; flex: none; }
.sk-foot span a { display: inline; padding: 0; }
.sk-foot .sk-mark { padding-top: 5px; }

/* nav + support/privacy pages */
.dnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.dnav a { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--muted); text-decoration: none; padding: 14px 0; }
.dnav a:hover, .dnav a[aria-current="page"] { color: var(--text); }
.dnav .sk { border-left: 3px solid var(--panel-2); padding-left: 18px; }
@media (max-width: 560px) { .dnav .sk { border-left: 0; padding-left: 0; } }
.doc { padding-top: 48px; padding-bottom: 56px; }
.doc-title { margin: 0 0 22px; font-size: clamp(22px, 6vw, 32px); color: var(--gold); text-shadow: 3px 3px 0 var(--gold-shadow); line-height: 1.3; }
.doc h2 { margin-top: 40px; font-size: 14px; }
.doc p { max-width: 640px; }
.contact-box { margin: 20px 0 8px; }
.contact-box p { margin: 0; }
.contact-box .label { margin-bottom: 8px; }
.contact-box a { font-size: 26px; word-break: break-word; }
