/* ==========================================================================
   Arangetram Volunteers — reimagined, novice-first volunteer experience.
   Mobile-first, calm, guided. (Coordinator dashboard uses styles.css.)
   ========================================================================== */
/* Palette + type borrowed from riya.natyagraphy.com — parchment & maroon,
   Cinzel + Cormorant Garamond, warm gold hairlines and glows. */
:root {
  --maroon: #5a0e16;
  --maroon-dark: #3f0810;
  --ink-soft: #7a2128;
  --gold: #b0782b;
  --gold-warm: #c89343;
  --gold-deep: #8a5d1d;
  --gold-soft: #e3cfa1;
  --gold-bright: #d4a55a;
  --rose: #9a4848;
  --rose-soft: #b86969;
  --cream: #f6ecd2;
  --cream-2: #efe1c0;
  --paper-tint: #fbf3df;
  --card: #fdf8ea;
  --ink: #5a0e16;
  --muted: #854940;
  --line: #e0cfa2;
  --night-1: #150609;
  --night-2: #0c0407;

  --watch: #2f5a2f;  --watch-bg: #e8efdf;
  --break: #9a6a1d;  --break-bg: #f6ead0;
  --onduty: #7a2128; --onduty-bg: #f3e2dd;
  --after: #1d6672;  --after-bg: #e2eef0;
  --other: #6a4a6f;  --other-bg: #efe6ee;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 12px 34px rgba(74,30,10,.16);
  --shadow-sm: 0 3px 12px rgba(74,30,10,.10);
  --font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', Georgia, serif;
  --font-sc: 'Cormorant SC', 'Cormorant Garamond', serif;
  --font-script: 'Tangerine', 'Cormorant Garamond', cursive;
  --maxw: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(212,165,90,.20), transparent 60%),
    linear-gradient(180deg, #fbf5e2 0%, #f3e7c8 100%);
  background-attachment: fixed;
  line-height: 1.6; font-size: 19px; font-weight: 500;
}
h1,h2,h3,h4 { line-height: 1.18; font-family: var(--font-display); font-weight: 600; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Icon system ---------- */
.agi { display: inline-flex; align-items: center; justify-content: center; color: var(--gold-deep); }
.agi svg { width: 1em; height: 1em; display: block; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; color: var(--gold-deep); }
[data-icon] svg { width: 1em; height: 1em; display: block; }
.brand-diya { color: var(--gold); font-size: 1.3rem; margin-right: 1px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,243,223,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; color: var(--maroon); font-size: 1.05rem; letter-spacing: .04em; }
.logo .diya { font-size: 1.25rem; }
.identity-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .92rem; font-weight: 600; color: var(--ink); max-width: 58vw;
}
.identity-chip .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-chip .av {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px;
  background: radial-gradient(var(--gold-soft), var(--gold)); color: #fff;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; font-family: var(--font-display);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(212,165,90,.28), transparent 62%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 100%);
  color: #f3e7c8; text-align: center; padding: 30px 20px 26px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--gold-deep);
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(320px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.hero .kicker {
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .30em;
  font-size: .82rem; color: var(--gold-bright); margin: 0 0 12px;
}
.hero h1 { margin: 0 0 12px; font-size: 2.3rem; letter-spacing: .06em; color: #f5dfac; font-weight: 600; }
.hero .lede { margin: 0 auto 20px; max-width: 470px; color: #e8d6ad; font-size: 1.18rem; font-style: italic; }

.progress-ring { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ring { position: relative; width: 96px; height: 96px; flex: 0 0 96px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: #f5dfac; }
.progress-words { text-align: left; }
.progress-words b { font-family: var(--font-display); font-size: 1.7rem; display: block; color: #f5dfac; }
.progress-words span { color: #d0a970; font-size: 1rem; }

.hero-cta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #3f0810;
  border: none; font-family: var(--font-sc); font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  padding: 14px 30px; border-radius: 999px; font-size: .92rem; box-shadow: 0 8px 22px rgba(176,122,43,.3);
  transition: transform .08s, filter .15s;
}
.hero-cta:hover { filter: brightness(1.06); }
.hero-cta:active { transform: translateY(2px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .hero-cta { margin-top: 0; }
.hero-cta.ghost { background: transparent; color: #f0e2c0; border: 1px solid rgba(212,165,90,.5); box-shadow: none; text-decoration: none; }
.hero-cta.ghost:hover { border-color: var(--gold-bright); filter: none; background: rgba(212,165,90,.1); }

/* ---------- Top nav (microsite) ---------- */
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 14px; }
.topnav a, .topnav .current {
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 600; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted);
}
.topnav a:hover { color: var(--maroon); background: rgba(176,122,43,.08); }
.topnav .current { color: var(--maroon); background: var(--paper-tint); border: 1px solid var(--gold-soft); }
@media (max-width: 620px) { .topnav { display: none; } }

/* ---------- Invitation hero ---------- */
.hero .invite-kicker {
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .26em;
  font-size: .74rem; color: var(--gold-bright); margin: 0 0 10px;
}
.hero .script-name {
  font-family: var(--font-script); font-size: 4rem; line-height: .9; color: #f0c47a; margin: 0;
}
.hero .event-name {
  font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .16em; text-transform: uppercase;
  color: #f5dfac; margin: 4px 0 10px; font-weight: 600;
}
.hero .event-sub { color: #d0a970; font-style: italic; font-size: 1.05rem; margin: 0 auto 14px; max-width: 460px; }
.hero .ornament { color: var(--gold-bright); font-size: 1rem; letter-spacing: .3em; margin: 6px 0; opacity: .9; }
.hero .event-when { font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; color: #f3e7c8; margin: 0; }
.hero .event-where { color: #d0a970; font-style: italic; font-size: 1rem; margin: 3px 0 0; }
.hero .countdown {
  display: inline-block; margin: 16px 0 4px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(212,165,90,.4); color: var(--gold-bright);
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
}
.hero .lede em { font-style: normal; color: #f0c47a; }

/* ---------- Details band (mirrors invitation) ---------- */
.details-band {
  max-width: var(--maxw); margin: -1px auto 0; padding: 20px 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--paper-tint); border-bottom: 1px solid var(--line);
}
.detail { text-align: center; padding: 4px 8px; position: relative; }
.detail + .detail::before {
  content: ""; position: absolute; left: -7px; top: 12%; height: 76%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
}
.detail .d-ic { font-size: 1.5rem; display: flex; justify-content: center; margin-bottom: 6px; color: var(--gold-deep); }
.detail .d-label { font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold-deep); display: block; margin-bottom: 3px; }
.detail .d-val { font-size: .98rem; color: var(--ink); line-height: 1.35; }
.detail .d-val strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--maroon); }
@media (max-width: 460px) {
  .details-band { grid-template-columns: 1fr; gap: 10px; }
  .detail + .detail::before { display: none; }
  .detail + .detail { border-top: 1px solid var(--line); padding-top: 12px; }
}

/* ---------- Ornamental divider ---------- */
.divider { display: flex; align-items: center; gap: 14px; margin: 8px 0 26px; color: var(--gold); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.divider span { font-size: 1rem; letter-spacing: .2em; opacity: .85; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 22px 16px 120px; }
.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; margin: 0 0 12px; }

/* ---------- My tasks band ---------- */
.mine {
  background: linear-gradient(180deg, var(--paper-tint), #f7ecd2); border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.mine h2 { margin: 0 0 4px; font-size: 1.45rem; color: var(--maroon); letter-spacing: .02em; }
.mine .sub { margin: 0 0 14px; color: var(--muted); font-size: 1rem; font-style: italic; }
.mine-list { display: flex; flex-direction: column; gap: 10px; }
.mine-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
}
.mine-item .mi-icon { font-size: 1.4rem; flex: 0 0 auto; }
.mine-item .mi-body { flex: 1; min-width: 0; }
.mine-item .mi-title { font-weight: 700; font-size: 1.08rem; }
.mine-item .mi-meta { font-size: .92rem; color: var(--muted); }
.mine-item .mi-cancel {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.mine-item .mi-cancel:hover { color: var(--onduty); border-color: var(--onduty); }

/* ---------- Guided filters ---------- */
.guide { margin-bottom: 30px; }
.guide h2 { margin: 0 0 4px; font-size: 1.7rem; color: var(--maroon); letter-spacing: .02em; }
.guide .helptext { margin: 0 0 20px; color: var(--muted); font-style: italic; font-size: 1.05rem; }
.qgroup { margin-bottom: 18px; }
.qgroup .qlabel {
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .12em;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 20px; border-radius: 999px; font-size: 1.02rem; font-weight: 600;
  transition: all .12s; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--maroon); color: #f5dfac; border-color: var(--maroon); box-shadow: var(--shadow-sm); }
.chip.active.watch-chip { background: var(--watch); border-color: var(--watch); color: #fff; }

.searchrow { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.searchrow input {
  flex: 1 1 240px; padding: 13px 16px 13px 44px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 1rem; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23857069' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 15px center;
  color: var(--ink);
}
.searchrow input:focus { outline: none; border-color: var(--gold); }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font-size: .98rem; font-weight: 600; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card);
}
.toggle input { width: 17px; height: 17px; accent-color: var(--maroon); }

.result-count { color: var(--muted); font-size: .95rem; margin: 12px 0 18px; font-style: italic; }

/* ---------- Roster: lead / helper (self-serve) + backup (coordinator) ---------- */
.roster { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.seat {
  flex: 1 1 130px; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-tint);
}
.seat-role { font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 600; color: var(--gold-deep); }
.seat-name { font-size: 1rem; color: var(--ink); font-weight: 600; }
.seat.free { border-style: dashed; border-color: var(--gold-soft); }
.seat.free .seat-name { color: var(--watch); }
.seat.taken { background: #fbf3df; border-color: var(--gold-soft); }
.seat.backup {
  flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 8px;
  background: transparent; border-style: dotted; border-color: var(--line);
}
.seat.backup .seat-role { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.seat.backup .seat-role .agi { color: var(--muted); font-size: .95em; }
.seat.backup .seat-name { color: var(--muted); font-style: italic; font-weight: 500; font-size: .9rem; }

/* ---------- Accordion controls ---------- */
.acc-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dir-hint { color: var(--muted); font-style: italic; font-size: 1rem; }
.linkbtn {
  background: none; border: none; color: var(--gold-deep); cursor: pointer; padding: 6px 8px;
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600;
}
.linkbtn:hover { text-decoration: underline; }

/* ---------- Area accordion ---------- */
.area-acc {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 64px;
}
.area-acc.open { box-shadow: var(--shadow); }
.area-header {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 15px 16px; text-align: left;
  background: linear-gradient(180deg, #fffdf7, var(--paper-tint)); border: none; cursor: pointer; font-family: inherit;
}
.area-header:hover { background: var(--paper-tint); }
.area-header.static { cursor: default; background: var(--paper-tint); }
.area-header .ai { font-size: 1.5rem; flex: 0 0 auto; }
.area-name-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.area-header .area-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--maroon); letter-spacing: .02em; }
.area-header .area-sub { font-size: .84rem; color: var(--muted); font-style: italic; }
.area-header .area-meta {
  font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600;
  color: var(--gold-deep); background: #fff; border: 1px solid var(--gold-soft); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.area-header .area-meta.filled { color: var(--muted); border-color: var(--line); background: transparent; }
.area-header .chev { color: var(--gold-deep); font-size: 1rem; transition: transform .2s; flex: 0 0 auto; }
.area-acc.open .chev { transform: rotate(180deg); }
.area-body { padding: 12px 14px 15px; border-top: 1px solid var(--line); background: #fffdf9; }

/* ---------- Task card ---------- */
.tasks { display: grid; gap: 11px; }
.task {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .1s;
}
.task:hover { box-shadow: var(--shadow); }
.task.full { opacity: .72; }
.task.mine-task { border-color: var(--watch); box-shadow: 0 0 0 2px var(--watch-bg); }
.task-top { display: flex; align-items: flex-start; gap: 12px; }
.task-icon { font-size: 1.6rem; flex: 0 0 auto; line-height: 1.1; }
.task-headings { flex: 1; min-width: 0; }
.task-headings .task-eyebrow { font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--gold-deep); font-weight: 600; margin-bottom: 1px; }
.task-headings h4 { margin: 0; font-family: var(--font); font-size: 1.4rem; font-weight: 700; color: var(--maroon); letter-spacing: .01em; }
.covers { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* Neutral "when" badge — just tells the volunteer the time of the job (calm,
   no alarm colours), since everyone gets to watch the performance. */
.when-badge {
  flex: 0 0 auto; font-size: .78rem; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.when-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.when-before { color: var(--watch); background: var(--watch-bg); }
.when-after  { color: var(--after); background: var(--after-bg); }
.when-break  { color: var(--break); background: var(--break-bg); }
.when-during { color: #4a5a86; background: #eaeff8; }
.when-reh    { color: var(--other); background: var(--other-bg); }

.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.spots { display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 5px; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot.filled { background: var(--gold); box-shadow: 0 0 0 1px rgba(138,93,29,.3); }
.dot.open { background: transparent; border: 2px solid var(--gold-soft); }
.spots-text { font-size: 1rem; font-weight: 600; }
.spots-text.none { color: var(--muted); font-weight: 600; }

.join-btn {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #f5dfac; border: none; border-radius: 999px;
  padding: 11px 26px; font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .1em;
  font-size: .88rem; font-weight: 600; transition: transform .08s, filter .15s;
  flex: 0 0 auto; box-shadow: 0 4px 14px rgba(90,14,22,.22);
}
.join-btn:hover { filter: brightness(1.15); }
.join-btn:active { transform: translateY(2px); }
.joined-wrap { display: inline-flex; align-items: center; gap: 10px; }
.joined-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--watch); font-weight: 700; font-size: 1rem; }
.full-tag { color: var(--muted); font-weight: 700; font-size: 1rem; font-style: italic; }
.mini-cancel { background: none; border: none; color: var(--muted); font-size: .88rem; text-decoration: underline; padding: 0; margin-left: 2px; font-family: inherit; }

.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty .big { font-size: 2.4rem; }

/* ---------- Modal / sheet ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(43,26,30,.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-end; justify-content: center; z-index: 60; padding: 0;
}
.overlay.show { display: flex; }
@media (min-width: 560px) { .overlay { align-items: center; padding: 20px; } }

.sheet {
  background: var(--card); width: 100%; max-width: 460px;
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow); overflow: hidden;
  animation: rise .25s ease;
}
@media (min-width: 560px) { .sheet { border-radius: 24px; } }
@keyframes rise { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 42px; height: 5px; background: var(--line); border-radius: 999px; margin: 10px auto 0; }
.sheet-body { padding: 14px 24px 26px; }
.sheet h3 { margin: 8px 0 6px; font-size: 1.7rem; color: var(--maroon); text-align: center; letter-spacing: .02em; }
.sheet .sheet-sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-style: italic; font-size: 1.05rem; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-bottom: 7px;
}
.field input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 1.1rem; font-family: inherit; color: var(--ink); background: #fffdf6;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,165,90,.28); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: 6px; font-style: italic; }
.sheet-error { color: var(--onduty); font-size: .95rem; min-height: 20px; text-align: center; margin-bottom: 6px; }
.btn-primary {
  width: 100%; background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #f5dfac; border: none; border-radius: var(--r-md);
  padding: 15px; font-family: var(--font-sc); text-transform: uppercase; letter-spacing: .1em;
  font-size: .98rem; font-weight: 600; transition: transform .08s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:active { transform: translateY(2px); }
.btn-text { display: block; width: 100%; background: none; border: none; color: var(--muted); font-size: 1rem; padding: 14px 0 2px; font-weight: 600; font-family: inherit; }

/* success sheet */
.celebrate { text-align: center; }
.celebrate .burst { font-size: 3.2rem; margin: 6px 0 4px; }
.celebrate h3 { margin: 0 0 6px; }
.celebrate .task-recap {
  background: var(--paper-tint); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; margin: 16px 0; text-align: left; display: flex; gap: 12px; align-items: center;
}
.celebrate .task-recap .tr-icon { font-size: 1.6rem; }
.celebrate .task-recap .tr-title { font-weight: 700; font-size: 1.12rem; }
.celebrate .task-recap .tr-meta { font-size: .95rem; color: var(--muted); }
.celebrate .watch-line { font-weight: 700; margin: 4px 0 18px; padding: 12px; border-radius: var(--r-md); }
.role-note { font-size: 1rem; color: var(--muted); margin: -6px 0 16px; font-style: italic; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(180deg, var(--night-1), var(--night-2)); color: #f3e7c8; padding: 13px 24px; border-radius: 999px;
  font-size: 1.02rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 80; border: 1px solid var(--gold-deep); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #5a0e16; }

/* confetti canvas */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

footer.foot { text-align: center; color: var(--muted); font-size: 1rem; padding: 6px 20px 48px; font-style: italic; }
footer.foot .divider { margin: 8px auto 22px; max-width: var(--maxw); }
footer.foot .foot-thanks { font-family: var(--font-script); font-size: 2rem; color: var(--maroon); margin: 0 0 8px; font-style: normal; }
footer.foot p { margin: 6px 0; }
footer.foot .foot-links { margin-top: 14px; }
footer.foot a { color: var(--gold-deep); font-style: normal; font-weight: 600; text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }

@media (max-width: 400px) {
  .hero h1 { font-size: 1.9rem; }
  .task-foot .join-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; }
}
