:root {
  --ink: #18140f;
  --paper: #fff1c8;
  --acid: #38e6eb;
  --pink: #ff66ad;
  --blue: #75c7ff;
  --yellow: #ffe657;
  --green: #66e475;
  --red: #ff654f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, sans-serif;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 40px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 4px solid var(--ink);
}
.logo-wrap img { height: 38px; width: auto; display: block; }
nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  font-family: ui-monospace, "SF Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}
nav.main-nav a:hover, nav.main-nav a.active {
  border-color: var(--ink);
  background: var(--acid);
  box-shadow: 2px 2px 0 var(--ink);
}
.header-right { display: flex; align-items: center; gap: 12px; }
a.os-link {
  width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%;
  background: #2081e2; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink); text-decoration: none;
}
a.os-link img { width: 22px; height: 22px; display: block; }
.btn-pill, .connect {
  font-family: ui-monospace, "SF Mono", "Courier New", monospace;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
  background: var(--yellow); padding: 13px 22px; text-decoration: none;
  border-radius: 999px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.connect.on { background: var(--green); }
.hamburger {
  display: none; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--paper); align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hamburger span { width: 16px; height: 2px; background: var(--ink); display: block; }
.mobile-nav {
  display: none; position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: var(--paper); padding: 26px 28px; flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: Impact, "Arial Black", sans-serif; font-size: 28px; text-transform: uppercase;
  padding: 16px 0; border-bottom: 2px solid rgba(24,20,15,.24); text-decoration: none;
}
.mobile-nav a.active { color: var(--pink); }
@media (max-width: 1100px) {
  nav.main-nav, .header-right .os-link, .header-right .btn-pill { display: none; }
  .hamburger { display: flex; }
  header { padding: 12px 20px; }
}

.hero {
  padding: clamp(36px, 6vw, 72px) max(22px, 6vw);
  background: linear-gradient(164deg, var(--pink) 0 58%, var(--yellow) 58% 100%);
  border-bottom: 5px solid var(--ink);
}
.sticker {
  display: inline-block; margin: 0; padding: 8px 12px; border: 3px solid var(--ink);
  background: var(--paper); box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase; font: 900 11px ui-monospace, monospace;
}
h1 {
  margin: 16px 0 0; max-width: 14ch;
  font: 900 clamp(56px, 9vw, 108px)/.78 Impact, "Arial Black", sans-serif;
  text-transform: uppercase; letter-spacing: -.03em;
}
h1.long { max-width: 12em; font-size: clamp(42px, 6vw, 78px); }
h1 em { color: var(--paper); font-style: normal; -webkit-text-stroke: 3px var(--ink); }
.intro {
  max-width: 720px; margin: 22px 0 0; padding: 16px 18px;
  border: 3px solid var(--ink); background: #fff1c8ed; box-shadow: 6px 6px 0 var(--ink);
  font-weight: 800; font-size: 18px; line-height: 1.45;
}
.intro p { margin: 0 0 14px; }
.intro p:last-child { margin: 0; }
.hero-split {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-split h1 { margin: 18px auto 0; }
.hero-split .intro { margin-left: auto; margin-right: auto; }
.hero-split .clock,
.hero-split #clockNote { margin-left: auto; margin-right: auto; }
#clockNote { overflow-wrap: anywhere; }
.rules-art { width: min(980px, 100%); margin: 22px auto 0; }
.rules-art img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(6px 7px 0 var(--ink));
}
.hero-art { max-width: 920px; margin: 0 auto; border: 0; background: none; box-shadow: none; }
.hero-art img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(7px 8px 0 var(--ink));
}
.clock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  width: min(560px, 100%); margin-top: 22px;
}
.clock span {
  padding: 12px 10px 8px; border: 3px solid var(--ink); background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink); text-align: center;
}
.clock b { display: block; font: 900 clamp(28px, 5vw, 48px)/.9 Impact, sans-serif; }
.clock small {
  display: block; margin-top: 4px; font: 800 11px ui-monospace, monospace;
  letter-spacing: .08em; text-transform: uppercase;
}
.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rules span {
  padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: white;
  font: 800 11px ui-monospace, monospace; text-transform: uppercase;
}

.board {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 22px;
  padding: 28px max(22px, 5vw) 70px;
  background-image: radial-gradient(circle at 1px 1px, #18140f24 1.2px, transparent 1.5px);
  background-size: 8px 8px;
}
.panel {
  padding: 22px; border: 4px solid var(--ink); background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
h2 { margin: 0 0 12px; text-transform: uppercase; font: 900 32px/1 Impact, "Arial Black", sans-serif; }
.note { margin: 0 0 14px; font-weight: 800; line-height: 1.45; }
.pick-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pick-bar button {
  padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: white;
  font: 800 12px ui-monospace, monospace; cursor: pointer;
}
.pick-bar button:hover { background: var(--acid); }
.status { min-height: 1.4em; font-weight: 800; }
.prize-card {
  margin: 0 0 16px; border: 3px solid var(--ink); background: white;
  box-shadow: 4px 4px 0 var(--ink);
}
.prize-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fff1c8;
}
.prize-card figcaption {
  padding: 8px 12px; border-top: 3px solid var(--ink);
  font: 900 16px ui-monospace, monospace;
}
.prize-card img[hidden] { display: none; }
.prize-card:has(img[hidden]) figcaption { border-top: 0; }
.standing {
  display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none;
}
.standing li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border: 2px solid var(--ink); background: white; font-weight: 800;
}
.standing b { font: 900 12px ui-monospace, monospace; text-transform: uppercase; }
.frens { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.frens button {
  padding: 0; border: 3px solid var(--ink); background: white; box-shadow: 3px 3px 0 var(--ink);
  text-align: left;
}
.frens button img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fff; }
.frens button b, .frens button small { display: block; padding: 0 6px; }
.frens button b { font: 900 13px ui-monospace, monospace; }
.frens button small { padding-bottom: 6px; font-weight: 800; color: #5c534b; }
.frens button[aria-pressed="true"] { background: var(--acid); box-shadow: 3px 3px 0 var(--pink); }
.frens button:disabled { opacity: .45; cursor: not-allowed; }
.bid {
  margin-top: 14px; padding: 14px 18px; border: 3px solid var(--ink); background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink); font: 900 18px Impact, sans-serif; text-transform: uppercase;
}
.bid:disabled { background: #e7e0d2; cursor: not-allowed; }
.owner { margin-top: 16px; padding-top: 14px; border-top: 3px solid var(--ink); }
.owner button { margin: 0 8px 8px 0; }
#walletPicker {
  width: min(420px, calc(100vw - 28px));
  padding: 22px;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
#walletPicker::backdrop { background: rgba(24, 20, 15, .45); }
#walletList { display: grid; gap: 10px; }
#walletList button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 3px solid var(--ink); background: white;
  box-shadow: 4px 4px 0 var(--ink); text-align: left;
  font: 900 18px Impact, sans-serif; text-transform: uppercase;
}
#walletList img { width: 28px; height: 28px; object-fit: cover; }
@media (max-width: 1040px) {
  .hero-art img { filter: drop-shadow(5px 6px 0 var(--ink)); }
}
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .clock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
