:root {
  --ink: #111;
  --paper: #FFFDF5;
  --red: #FF3B3B;
  --yellow: #FFD60A;
  --blue: #2EC4F1;
  --pink: #FF5DA2;
  --green: #3DDC97;
  --purple: #7B2CBF;
  --display: 'Bangers', Impact, 'Arial Black', sans-serif;
  --body: 'Karla', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--yellow);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }

/* ---------- backgrounds ---------- */
.bg-default {
  position: fixed; inset: 0; z-index: 0;
  background-color: var(--yellow);
  background-image:
    radial-gradient(var(--pink) 26%, transparent 28%),
    radial-gradient(var(--pink) 26%, transparent 28%);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  transition: opacity .8s ease;
}
.scene {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.scene svg { width: 100%; height: 100%; display: block; }
body[data-pick="barnsdall"] #scene-barnsdall,
body[data-pick="ucla"] #scene-ucla { opacity: 1; transform: scale(1); }
body[data-pick] .bg-default { opacity: 0; }

/* ---------- layout ---------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.masthead { text-align: center; margin: 8px 0 40px; }
.eyebrow {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; margin: 0;
  transform: rotate(-2deg);
}
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 14vw, 150px);
  line-height: .88; letter-spacing: .02em;
  margin: 18px 0 18px;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 7px 7px 0 var(--ink);
}
h1 .amp { color: var(--red); }
h1 .names { display: block; font-size: .42em; color: var(--blue); letter-spacing: .06em; margin-bottom: 6px; }
.bubble {
  position: relative;
  display: inline-block;
  max-width: 620px;
  margin: 6px auto 0;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 30px;
  padding: 14px 22px;
  font-size: 18px; font-weight: 600;
  box-shadow: 6px 6px 0 var(--ink);
}
.bubble::after {
  content: ""; position: absolute; left: 40px; bottom: -22px;
  border: 12px solid transparent;
  border-top: 14px solid var(--ink);
  border-left: 14px solid var(--ink);
}

.panel {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  padding: 24px;
  margin: 0 0 40px;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.panel-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 5vw, 46px); letter-spacing: .03em; line-height: 1;
  margin: 0;
}
.num {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--display); font-size: 24px;
  box-shadow: 3px 3px 0 var(--ink);
}
.lede { margin: 6px 0 18px; max-width: 70ch; }
.fine { font-size: 13px; color: #444; margin: 10px 0 0; max-width: 90ch; }
.fine a { text-underline-offset: 2px; }

/* ---------- weather ---------- */
.weekends { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.weekend h3 {
  font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .03em;
  margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.weekend h3 small { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: #555; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.day {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; text-align: left;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px;
  font: inherit; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.day:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.day[aria-pressed="true"] { background: var(--yellow); transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.day:focus-visible, .cell:focus-visible, .pick-btn:focus-visible, .btn:focus-visible, .chipbtn:focus-visible {
  outline: 3px dashed var(--purple); outline-offset: 3px;
}
.day-top { display: flex; justify-content: space-between; align-items: baseline; }
.day-name { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .03em; }
.day-date { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.chip {
  align-self: flex-start;
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border: 2px solid var(--ink);
}
.chip.alert { background: var(--red); color: #fff; }
.chip.long { background: #fff; }
.loc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0 8px;
  padding-top: 6px; border-top: 2px dashed rgba(0,0,0,.25);
  transition: opacity .3s;
}
.loc-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.temps { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.temps .lo { font-size: 13px; color: #555; }
.cond { grid-column: 1 / -1; font-size: 14px; }
.live { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; color: #3a3a3a; }
.sunset { font-family: var(--mono); font-size: 12px; border-top: 2px solid var(--ink); padding-top: 6px; }
body[data-pick="barnsdall"] .loc-row[data-loc="ucla"],
body[data-pick="ucla"] .loc-row[data-loc="barnsdall"] { opacity: .4; }

.take {
  margin: 22px 0 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-left-width: 12px;
  padding: 12px 16px;
}

/* ---------- bingo cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.card {
  --accent: var(--pink);
  position: relative;
  background: #fff;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 18px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .3s;
}
.card[data-loc="ucla"] { --accent: var(--blue); }
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 13px 13px 0 var(--ink); }
.card.picked { background: #FFF6CC; transform: rotate(-1deg); box-shadow: 14px 14px 0 var(--ink); }
.card.dimmed { opacity: .82; }
.card-kicker {
  margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 42px); line-height: 1; letter-spacing: .02em;
  margin: 4px 0 6px;
}
.card-sub { margin: 0 0 12px; font-size: 15px; }
.bingo-head, .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bingo-head { margin-bottom: 4px; }
.bingo-head span {
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border: 3px solid var(--ink);
  font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.1;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--body); font-weight: 700;
  font-size: clamp(9.5px, 2.5vw, 13px); line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  overflow: hidden;
}
.cell.free { background: var(--yellow); font-family: var(--display); font-weight: 400; font-size: clamp(12px, 3vw, 17px); letter-spacing: .03em; }
.cell::after {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0; transform: scale(.3);
  mix-blend-mode: multiply;
  transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1);
}
.cell.daubed::after { opacity: .7; transform: scale(1); }
.card-foot {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  margin-top: 12px; font-size: 13px;
}
.card-foot a { font-weight: 700; }
.card-foot span { font-family: var(--mono); font-size: 12px; color: #444; }
.pick-btn {
  display: block; width: 100%;
  margin-top: 14px; padding: 8px 10px;
  font-family: var(--display); font-size: 26px; letter-spacing: .04em;
  background: var(--accent); color: #fff;
  -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.pick-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

/* comic bursts */
.burst-wrap {
  position: absolute; z-index: 3; pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
  opacity: 0; transform: scale(.2) rotate(-30deg);
  transition: opacity .25s, transform .45s cubic-bezier(.3,1.7,.5,1);
}
.burst {
  display: grid; place-items: center;
  width: 128px; height: 128px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 18%, 82% 7%, 79% 30%, 100% 35%, 84% 52%, 98% 72%, 75% 74%, 72% 97%, 55% 84%, 38% 100%, 33% 77%, 9% 82%, 18% 61%, 0% 45%, 19% 33%, 10% 12%, 33% 17%);
  font-family: var(--display); font-size: 24px; letter-spacing: .03em; color: var(--red);
}
.picked-burst { top: -46px; right: -30px; }
.card.picked .picked-burst { opacity: 1; transform: scale(1) rotate(12deg); }
.bingo-burst { top: 40%; left: 50%; margin: -90px 0 0 -90px; }
.bingo-burst .burst { width: 180px; height: 180px; font-size: 40px; background: var(--red); color: #fff; }
.bingo-burst.show { animation: bingo 2.4s ease forwards; }
@keyframes bingo {
  0% { opacity: 0; transform: scale(.2) rotate(-30deg); }
  15% { opacity: 1; transform: scale(1.15) rotate(-8deg); }
  25% { transform: scale(1) rotate(-6deg); }
  80% { opacity: 1; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: scale(.9) rotate(-6deg); }
}

/* ---------- plan ---------- */
.plan-intro { font-size: 18px; max-width: 68ch; margin: 6px 0 18px; }
.daychips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chipbtn {
  font: 700 14px/1 var(--body);
  padding: 8px 12px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.bring { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.bring-box { border: 3px solid var(--ink); padding: 14px; background: #fff; position: relative; }
.bring-box p { margin: 8px 0 0; font-size: 15px; }
.bring-box .tag {
  display: inline-block; font-family: var(--display); font-size: 22px; letter-spacing: .04em;
  padding: 0 10px; border: 3px solid var(--ink); color: #fff;
  -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill;
}
.bring-box.abhi .tag { background: var(--blue); }
.bring-box.alice .tag { background: var(--pink); }
.bring-box.both .tag { background: var(--green); }
.plan-empty {
  border: 3px dashed var(--ink); padding: 22px; text-align: center; font-weight: 600; background: #fff;
}
.plan-where {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px;
  background: var(--ink); color: #fff;
  padding: 10px 14px;
  font-family: var(--display); font-size: 26px; letter-spacing: .04em;
}
.plan-where span:last-child { color: var(--yellow); }
.notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.notes li { border: 2px solid var(--ink); background: #fff; padding: 8px 12px; font-size: 15px; }
.notes li.hot { background: #FFE1E1; }
.notes li.cool { background: #E1F6FD; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 14px 0;
  border-bottom: 2px dashed rgba(0,0,0,.3);
}
.timeline li:last-child { border-bottom: 0; }
.timeline time {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  align-self: start;
  background: var(--yellow); border: 2px solid var(--ink);
  padding: 4px 6px; text-align: center;
}
.timeline li.sun time { background: var(--red); color: #fff; }
.timeline h4 { font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: .03em; line-height: 1.05; margin: 0 0 4px; }
.timeline p { margin: 0; font-size: 16px; }

/* ---------- playlist ---------- */
.tracks {
  list-style: none; counter-reset: t; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
}
.tracks li {
  counter-increment: t;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 2px solid var(--ink);
}
.tracks li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tracks a { text-decoration: none; }
.tracks a:hover .song { text-decoration: underline; }
.song { font-weight: 700; display: block; }
.artist { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.artists { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.artists li {
  font-family: var(--display); font-size: 19px; letter-spacing: .04em;
  padding: 2px 10px; border: 2px solid var(--ink); background: #fff;
}
.artists li:nth-child(4n+1) { background: var(--yellow); }
.artists li:nth-child(4n+2) { background: var(--pink); color: #fff; -webkit-text-stroke: .8px var(--ink); paint-order: stroke fill; }
.artists li:nth-child(4n+3) { background: var(--blue); color: #fff; -webkit-text-stroke: .8px var(--ink); paint-order: stroke fill; }
.artists li:nth-child(4n) { background: var(--green); }

/* ---------- lock in ---------- */
.summary {
  font-size: 18px; font-weight: 600;
  background: #fff; border: 3px dashed var(--ink);
  padding: 16px; margin: 6px 0 16px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: var(--display); font-size: 24px; letter-spacing: .04em;
  padding: 8px 20px;
  background: var(--yellow); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}
.btn.alt { background: var(--red); color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

footer {
  text-align: center;
  font-family: var(--mono); font-size: 12px;
}
footer span { background: var(--ink); color: #fff; padding: 6px 12px; display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .weekends { grid-template-columns: 1fr; }
  .bring { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .panel { padding: 18px 14px; box-shadow: 6px 6px 0 var(--ink); }
  .card { padding: 12px; box-shadow: 7px 7px 0 var(--ink); }
  .picked-burst { right: -8px; top: -52px; }
  .burst { width: 104px; height: 104px; font-size: 20px; }
  .timeline li { grid-template-columns: 78px 1fr; gap: 12px; }
  .timeline time { font-size: 13px; }
  .days { gap: 10px; }
  .day { padding: 10px; }
  .day-name { font-size: 26px; }
  .temps { font-size: 16px; }
}
@media (max-width: 380px) {
  .days { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
  .scene { transform: none; }
}
