/* Rathna's 50th: fuchsia, coral and a faceted-jewel motif, with a 1976 retro feel. */
:root {
  --fuchsia: #d4177e;
  --fuchsia-deep: #a50f61;
  --coral: #ff6b5e;
  --peach: #ffb38a;
  --gold: #f6b93b;
  --cream: #fff3e6;
  --paper: #fffaf4;
  --plum: #3b0a33;
  --ink: #3b0a33;
  --muted: #7a5a72;
  --ok: #1f8a5b;
  --line: #3b0a33;
  --radius: 22px;
  --shadow: 5px 5px 0 var(--plum);
  --script: "Yellowtail", "Brush Script MT", "Segoe Script", cursive;
  --display: "Shrikhand", "Georgia", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--cream);
  /* soft facets */
  background-image:
    linear-gradient(135deg, rgba(212,23,126,.07) 0 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,107,94,.08) 0 25%, transparent 25%),
    linear-gradient(315deg, rgba(246,185,59,.07) 0 25%, transparent 25%);
  background-size: 120px 120px;
  line-height: 1.45;
  min-height: 100vh;
}
.bands { display: flex; flex-direction: column; }
.bands i { display: block; height: 9px; }
.bands i:nth-child(1) { background: var(--fuchsia); }
.bands i:nth-child(2) { background: var(--coral); }
.bands i:nth-child(3) { background: var(--peach); }

.wrap { max-width: 520px; margin: 0 auto; padding: 18px 16px 48px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 10px 0 18px; }
.gem { width: 64px; margin: 0 auto 4px; filter: drop-shadow(3px 3px 0 var(--plum)); }
.gem svg { display: block; width: 100%; height: auto; }
.kicker { margin: 4px 0 0; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--fuchsia-deep); }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(40px, 12vw, 56px); line-height: 1.02; margin: 4px 0 0; color: var(--fuchsia); text-shadow: 2px 2px 0 var(--plum); }
.year {
  font-family: var(--display);
  font-size: clamp(54px, 18vw, 84px);
  line-height: 1;
  margin: 6px 0 0;
  letter-spacing: .02em;
  color: var(--fuchsia);
  background: repeating-linear-gradient(180deg,
    var(--fuchsia) 0 9%, transparent 9% 13%,
    var(--coral) 13% 22%, transparent 22% 26%,
    var(--peach) 26% 35%, transparent 35% 39%,
    var(--gold) 39% 48%, transparent 48% 52%,
    var(--fuchsia) 52% 61%, transparent 61% 65%,
    var(--coral) 65% 74%, transparent 74% 78%,
    var(--peach) 78% 87%, transparent 87% 91%,
    var(--gold) 91% 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.vintage { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin: 0 0 22px;
}
.card h2 { margin: 0 0 2px; font-size: 24px; font-weight: 800; }
.card .q { margin: 0 0 14px; color: var(--muted); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%;
  font: inherit; font-weight: 800; font-size: 18px;
  padding: 15px 18px; min-height: 54px;
  border: 2.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  box-shadow: 3px 3px 0 var(--plum);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--plum); }
.btn:focus-visible, .chip:focus-visible, .step:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn + .btn { margin-top: 12px; }
.btn-yes { background: var(--fuchsia); color: #fff; }
.btn-yes[aria-pressed="true"] { background: var(--fuchsia-deep); }
.btn-no[aria-pressed="true"] { background: var(--peach); }
.btn-go { background: var(--coral); color: var(--plum); }
.btn-ghost { background: transparent; box-shadow: none; border-style: dashed; font-weight: 700; font-size: 16px; }
.btn-ghost:active { transform: none; }
.btn-spotify { background: #1ed760; color: #08210f; }
.btn-sm { display: inline-block; width: auto; font-size: 14px; padding: 8px 14px; min-height: 38px; box-shadow: 2px 2px 0 var(--plum); }
.btn-sm + .btn-sm { margin-top: 0; }

/* ---------- form bits ---------- */
.panel { margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(59,10,51,.35); }
.panel[hidden] { display: none; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend, .label { font-weight: 800; font-size: 16px; margin-bottom: 8px; padding: 0; display: block; }
.hint { font-weight: 500; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 9px 14px; min-height: 42px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--coral); }
.chip[aria-pressed="true"]::before { content: "\2713\00a0"; }
textarea, input[type="text"], input[type="password"], select {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
.stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step {
  width: 48px; height: 48px; border-radius: 50%; font: inherit; font-size: 26px; font-weight: 800; line-height: 1;
  border: 2.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--plum);
}
.step[disabled] { opacity: .35; cursor: default; }
.count { font-size: 30px; font-weight: 800; min-width: 2ch; text-align: center; }
.err { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #ffe3df; border: 2px solid #b3261e; color: #7a120c; font-weight: 600; }
.err[hidden] { display: none; }

/* ---------- details ---------- */
.details h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--fuchsia); }
.details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--fuchsia-deep); padding-top: 3px; }
.details dd { margin: 0; font-weight: 600; white-space: pre-line; }
.foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- done screen ---------- */
.done { text-align: center; }
.done .big { font-size: 56px; line-height: 1; margin: 0 0 6px; }
.done h2 { font-size: 26px; }
.summary { margin: 14px 0 18px; padding: 12px; border-radius: 14px; background: #fff; border: 2px solid var(--line); text-align: left; }
.summary p { margin: 2px 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--peach); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; }

/* ---------- loading ---------- */
.loader { text-align: center; padding: 70px 0; color: var(--muted); font-weight: 700; }
.spin { width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; border: 5px solid rgba(212,23,126,.2); border-top-color: var(--fuchsia); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } .btn { transition: none; } }

/* ================= HOST DASHBOARD ================= */
.adm .wrap { max-width: 980px; }
.adm h1 { font-family: var(--display); font-weight: 400; color: var(--fuchsia); margin: 6px 0 2px; font-size: 32px; }
.adm .sub { color: var(--muted); margin: 0 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 2.5px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--plum); }
.tile b { display: block; font-size: 30px; line-height: 1.1; }
.tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.tile.hot b { color: var(--fuchsia); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { font: inherit; font-weight: 800; font-size: 15px; padding: 9px 16px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--fuchsia); color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.row .who b { font-size: 17px; }
.row .who small { display: block; color: var(--muted); }
.row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--line); margin-left: 6px; vertical-align: middle; }
.badge.yes { background: #bff0d4; } .badge.no { background: #ffd0cc; } .badge.wait { background: #ffe9a8; } .badge.new { background: #e8dff0; }
.btn-wa { background: #25d366; color: #052e14; }
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1.5px solid rgba(59,10,51,.2); vertical-align: top; }
.tbl th { background: var(--peach); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tblwrap { overflow-x: auto; }
.mb { margin-bottom: 14px; }
.notice { padding: 10px 12px; border-radius: 12px; background: #fff3c4; border: 2px solid var(--line); margin-bottom: 14px; font-weight: 600; }
.bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bar .lab { width: 120px; font-weight: 700; }
.bar .fill { height: 18px; background: var(--coral); border: 2px solid var(--line); border-radius: 999px; min-width: 6px; }
.small { font-size: 14px; color: var(--muted); }
pre.preview { white-space: pre-wrap; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font-family: inherit; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--plum); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 20; max-width: 90vw; }
.toast[hidden] { display: none; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .row .acts { justify-content: flex-start; }
}
