:root {
  --ink: #1d1a14;
  --ink-2: #2a251c;
  --sand: #f3e6c8;
  --sand-2: #e7d3a6;
  --sun: #ff6a2b;
  --sun-2: #ffb03b;
  --grass: #8a9a3b;
  --lake: #3d7f8f;
  --muted: #a99a7a;
  --line: rgba(243, 230, 200, .14);
  --display: "Fraunces", Georgia, serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ink); color: var(--sand); font-family: var(--body); }
body { min-height: 100dvh; padding-bottom: calc(76px + var(--safe-b)); overscroll-behavior-y: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--sun-2); }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px; background: linear-gradient(var(--ink) 70%, transparent); }
.brand-mark { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.brand-year { font-family: var(--display); font-weight: 500; font-style: italic; color: var(--sun); font-size: 22px; margin-left: 2px; }
.who { border: 1px solid var(--line); background: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.view { display: none; animation: rise .35s ease; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* HERO */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 28px 22px 150px; margin-top: 6px;
  background: linear-gradient(170deg, #ff8a3d 0%, #e5532a 45%, #6b2a2a 100%); color: var(--ink); }
.hero .sun { position: absolute; width: 230px; right: -40px; top: 40px; fill: var(--sun-2); opacity: .9; }
.hero .acacia { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; fill: var(--ink); stroke: var(--ink); }
.hero .giraffe path { stroke: var(--ink); stroke-width: 3; }
.kicker { position: relative; margin: 0 0 6px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { position: relative; margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(54px, 15vw, 96px); line-height: .86; letter-spacing: -.035em; }
.countdown { position: relative; display: flex; gap: 10px; margin-top: 20px; }
.countdown div { background: rgba(29, 26, 20, .88); color: var(--sand); border-radius: 14px; padding: 8px 12px; min-width: 64px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.cards { display: grid; gap: 14px; margin: 16px 0 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.card p { margin: 6px 0; line-height: 1.45; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; color: var(--sand-2); }
.small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.btn { display: inline-block; margin-top: 8px; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--sun); color: var(--ink);
  font-weight: 700; text-decoration: none; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--sand); border: 1px solid var(--line); }
.btn.big { font-size: 18px; padding: 14px 34px; }
.btn:active { transform: scale(.97); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 12px; }
.checklist li { break-inside: avoid; padding: 5px 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.checklist li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--muted); }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done::before { background: var(--grass); border-color: var(--grass); }

.myschedule .day { margin: 8px 0; }
.myschedule .day b { font-family: var(--display); color: var(--sun-2); margin-right: 6px; }
.myschedule .empty { color: var(--muted); font-size: 14px; }

/* MUSIC */
.section-head h2 { font-family: var(--display); font-size: 40px; margin: 8px 0 2px; letter-spacing: -.02em; }
.chips { display: flex; gap: 8px; margin: 12px 0 4px; overflow-x: auto; scrollbar-width: none; }
.chips.sub { margin-top: 4px; }
.chip { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.chip.active { background: var(--sand); color: var(--ink); border-color: var(--sand); font-weight: 700; }
.chips.sub .chip { font-size: 12px; padding: 5px 11px; }

.tracks { list-style: none; margin: 10px 0 0; padding: 0; }
.track { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.track .num { font-family: var(--display); color: var(--muted); font-size: 15px; text-align: right; }
.track .meta { min-width: 0; }
.track .artist { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.head .artist { font-family: var(--display); font-size: 19px; font-weight: 800; }
.track .song { font-size: 13px; color: var(--sand-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .song i { color: var(--muted); }
.track .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; background: var(--ink-2); border: 1px solid var(--line); margin-right: 6px; vertical-align: 1px; }
.track .crew { font-size: 11px; color: var(--sun-2); }
.acts { display: flex; gap: 2px; }
.ic { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; font-size: 17px; display: grid; place-items: center; color: var(--muted); }
.ic.play { background: #1db954; color: #08130b; font-size: 13px; }
.ic.on.like { color: var(--sun); }
.ic.on.star { color: var(--sun-2); }
.ic.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.4); } }

.share-box { margin: 22px 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.share-box p { margin: 0 0 6px; }
#crewList { margin-top: 10px; }

/* MAPS */
.map-wrap { position: relative; margin-top: 10px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #22301f; touch-action: manipulation; }
#map svg { display: block; width: 100%; height: auto; user-select: none; }
.map-info { padding: 12px 14px; background: var(--ink-2); border-top: 1px solid var(--line); font-size: 14px; min-height: 48px; }
.map-info b { font-family: var(--display); font-size: 17px; color: var(--sun-2); }
.disclaimer { margin: 10px 2px 24px; }
.poi { cursor: pointer; }
.poi circle.hit { fill: transparent; }
.poi:hover .dot, .poi.sel .dot { stroke: var(--sun-2); stroke-width: 3; }
.wander { animation: wander 14s ease-in-out infinite alternate; }
@keyframes wander { to { transform: translate(var(--dx, 30px), var(--dy, 6px)); } }

/* GAME */
.game-head { display: flex; justify-content: space-between; align-items: end; margin: 8px 2px 10px; }
.game-head .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.game-head b { font-family: var(--display); font-size: 30px; line-height: 1; }
.game-title { font-family: var(--display); font-weight: 900; font-size: 22px; font-style: italic; color: var(--sun); }
.game-stage { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: min(66dvh, 620px); }
#game { display: block; width: 100%; height: 100%; touch-action: none; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; background: rgba(29, 26, 20, .78); backdrop-filter: blur(3px); }
.overlay.hidden { display: none; }
.overlay h2 { font-family: var(--display); font-size: 40px; margin: 0 0 8px; }
.overlay p { max-width: 340px; line-height: 1.5; margin: 0 0 16px; }
.board { list-style: none; padding: 0; margin: 18px 0 0; width: 100%; max-width: 280px; text-align: left; font-size: 14px; }
.board li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.board li b { color: var(--sun-2); }

/* NAV */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(29, 26, 20, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tab { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 6px 0; color: var(--muted); border-radius: 14px; }
.tab span { font-size: 21px; filter: grayscale(1); transition: filter .2s; }
.tab.active { color: var(--sand); background: var(--ink-2); }
.tab.active span { filter: none; }

dialog { border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); color: var(--sand); padding: 22px; width: min(90vw, 340px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h3 { font-family: var(--display); font-size: 26px; margin: 0; }
dialog input { width: 100%; margin: 12px 0 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--sand); font: inherit; font-size: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 60;
  background: var(--sand); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
