/* v5-pages: added in v5 */

/* ============ shared bits emitted by core.js / app.js ============ */
.painted { position: absolute; inset: 0; }
.painted svg { width: 100%; height: 100%; display: block; }

/* the notification bell + its counter */
.bell { position: relative; }
.bell .badge-dot { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; line-height: 17px; box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }

/* inbox sheet */
.inbox { display: flex; flex-direction: column; gap: 4px; max-height: min(60vh, 520px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; }
.inbox-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: 16px; transition: background 0.2s; }
.inbox-row:hover { background: rgba(255, 255, 255, 0.05); }
.inbox-row b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.inbox-row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.inbox-row small.dim { color: var(--dim); font: 11px var(--f-mono); margin-top: 6px; }
.inbox-row.unread { background: rgba(216, 178, 90, 0.08); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.2); }
.inbox-row.unread::after { content: ''; position: absolute; top: 18px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.inbox-row.unread b { padding-right: 18px; }
.ii { width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }

/* the sky follows the real sun: a quiet tint behind everything */
html[data-sky] body { background-attachment: fixed; transition: background-color 2s; }
html[data-sky='night'] body { background: radial-gradient(110% 60% at 50% -10%, #141b2c 0%, rgba(16, 19, 24, 0) 70%) fixed, var(--ink); }
html[data-sky='dawn'] body { background: radial-gradient(90% 55% at 15% -5%, rgba(224, 128, 100, 0.13), transparent 70%) fixed, radial-gradient(80% 50% at 85% -5%, rgba(233, 169, 79, 0.09), transparent 70%) fixed, var(--ink); }
html[data-sky='day'] body { background: radial-gradient(120% 60% at 50% -12%, rgba(240, 211, 138, 0.09), transparent 70%) fixed, #12161b; }
html[data-sky='dusk'] body { background: radial-gradient(100% 55% at 80% -8%, rgba(233, 140, 70, 0.12), transparent 70%) fixed, radial-gradient(90% 50% at 10% 0%, rgba(150, 100, 170, 0.08), transparent 70%) fixed, var(--ink); }

/* welcome sheet (first quest) */
.welcome h2 { line-height: 1.08; }
.wstars { font-size: 46px; letter-spacing: 8px; line-height: 1; margin-bottom: 14px; }
.wstars { animation: wstar 2.8s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(240, 211, 138, 0.55)); }
@keyframes wstar { 50% { transform: translateY(-6px) rotate(-3deg); filter: drop-shadow(0 0 28px rgba(240, 211, 138, 0.85)); } }

/* ============ events page (events.js) ============ */
.event-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); overflow: hidden; }
.ev-art { --h: 42; position: relative; min-height: 340px; overflow: hidden; background: #191f2a; }
.ev-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ev-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(16, 19, 24, 0.35)); pointer-events: none; }
.ev-badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 13px; border-radius: 99px; font: 700 11px var(--f-mono); letter-spacing: 0.16em; color: #1a1508; background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.8); }
.ev-badge.live { color: #fff; background: linear-gradient(115deg, #e0674f, #c9442e); animation: evPulse 1.8s ease-in-out infinite; }
.ev-badge.upcoming { color: #1a1508; }
.ev-badge.ended { color: var(--muted); background: rgba(16, 19, 24, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); }
@keyframes evPulse { 50% { box-shadow: 0 0 0 8px rgba(224, 103, 79, 0), 0 0 26px rgba(224, 103, 79, 0.6); } 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 103, 79, 0.5); } }
.ev-body { padding: 36px 36px 30px; min-width: 0; }
.countdown { margin-top: 20px; font: 800 clamp(30px, 3.6vw, 44px)/1 var(--f-mono); letter-spacing: -0.02em; color: var(--violet-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(216, 178, 90, 0.35); }
.countdown.live { color: #ff9a82; text-shadow: 0 0 30px rgba(224, 103, 79, 0.45); }
.countdown.sm { margin: 0; font-size: 13px; font-weight: 700; text-shadow: none; white-space: nowrap; }
.ev-board .crew-row { padding: 9px 4px; }
.town-board { display: flex; flex-direction: column; }
.tb-row { display: grid; grid-template-columns: 38px minmax(90px, 160px) minmax(0, 1fr) auto 84px; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.tb-row:last-child { border-bottom: 0; }
.tb-row:first-child b { color: var(--violet-2); }
.tb-row b { font: 700 18px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-row > span:last-child { text-align: right; }
.bar-line i { max-width: 100%; }

/* ============ quest page additions ============ */
.qtools { display: flex; gap: 8px; margin-bottom: 18px; }
.qtools .btn { background: rgba(16, 19, 24, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2); }
.save-btn.on { color: #ffb4a4; background: rgba(224, 103, 79, 0.2) !important; box-shadow: inset 0 0 0 1px rgba(224, 103, 79, 0.55) !important; }
.ev-mini { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: linear-gradient(150deg, rgba(216, 178, 90, 0.16), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 211, 138, 0.3); transition: transform 0.3s var(--spring); }
.ev-mini:hover { transform: translateY(-2px); }
.ev-mini.live { background: linear-gradient(150deg, rgba(224, 103, 79, 0.18), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(224, 103, 79, 0.4); }
.ev-mini-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ev-mini .ev-badge { position: static; }
.ev-mini b { font: 700 19px/1.2 var(--f-display); }
.ev-mini .countdown { margin-top: 6px; font-size: 30px; }

/* maker analytics */
.qstats { background: linear-gradient(160deg, rgba(163, 184, 108, 0.1), var(--surface) 45%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(163, 184, 108, 0.25); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 20px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(16, 19, 24, 0.35); }
.kpis div { padding: 14px 12px; border-right: 1px solid var(--line); min-width: 0; }
.kpis div:last-child { border-right: 0; }
.kpis b { display: block; font: 800 22px var(--f-mono); white-space: nowrap; }
.kpis small { display: block; color: var(--dim); font: 600 10px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-h { margin: 28px 0 14px; font: 700 17px var(--f-display); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; }
.fn-lbl { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-lbl em { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 6px; font: 700 11px var(--f-mono); font-style: normal; color: var(--text); background: rgba(255, 255, 255, 0.08); }
.fn-bar { position: relative; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.fn-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, rgba(163, 184, 108, 0.75), rgba(216, 178, 90, 0.85)); transition: width 1.2s var(--ease); }
.fn-bar span { position: absolute; left: 10px; top: 0; font: 700 12px/26px var(--f-mono); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.fn-row.start .fn-bar i { background: linear-gradient(90deg, rgba(143, 176, 221, 0.6), rgba(143, 176, 221, 0.8)); }
.fn-row.fin .fn-bar i { background: linear-gradient(90deg, #d8b25a, #f0d38a); }
.fn-row.fin .fn-lbl { color: var(--violet-2); font-weight: 600; }
.fn-row.worst .fn-bar i { background: linear-gradient(90deg, rgba(224, 103, 79, 0.65), rgba(233, 169, 79, 0.8)); }
.fn-row.worst .fn-lbl { color: #ffb4a4; }
.fn-pct { font-size: 12.5px; text-align: right; color: var(--text); }
.fn-pct small { display: block; font-size: 10.5px; color: var(--dim); }
.rt { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.rt-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 12.5px; }
.rt-row span:first-child { color: var(--amber); }
.rt-row span:last-child { text-align: right; }

/* email sign-in link */
.magic-form { display: flex; flex-direction: column; gap: 10px; }
.magic-form .input { flex: 1; min-width: 0; }
.magic-form .btn { width: 100%; }
.magic-sent { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(163, 184, 108, 0.1); box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.35); animation: popIn2 0.6s var(--spring); }
.magic-sent .env { font-size: 38px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.magic-sent b { font: 700 19px var(--f-display); }
.magic-sent p { font-size: 14px; margin-top: 4px; }
.magic-sent p b { font: 600 14px var(--f-body); color: var(--text); }

/* ============ home: today band ============ */
.today-band { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-bottom: 96px; align-items: stretch; }
.qotd { --h: 42; display: grid; grid-template-rows: auto 1fr; overflow: hidden; cursor: pointer; transition: transform 0.45s var(--spring), box-shadow 0.45s; }
.qotd:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(240, 211, 138, 0.35); }
.qotd-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #191f2a; }
.qotd-art img { width: 100%; height: 100%; object-fit: cover; }
.qotd-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 19, 24, 0.55), transparent 50%); }
.qotd-ribbon { position: absolute; z-index: 2; top: 18px; left: -6px; padding: 8px 16px 8px 20px; font: 700 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #1a1508;
  background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.8); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.qotd-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 30px 28px; }
.qotd-body h2 { font-size: clamp(28px, 3vw, 42px); margin-top: 6px; }
.qotd-body .meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.qotd-body .meta span { display: inline-flex; align-items: center; gap: 6px; }
.qotd-cta { margin-top: auto; padding-top: 14px; justify-content: space-between; }
.band-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.band-side > .card { flex: 1; }
.ev-strip { display: flex; flex-direction: column; gap: 4px; }
.ev-strip .row { margin-bottom: 10px; }
.ev-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 16px; transition: background 0.2s; }
.ev-line:hover { background: rgba(255, 255, 255, 0.05); }
.ev-thumb { position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: #191f2a; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-line b { display: block; font: 700 16.5px/1.25 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-line small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); animation: blink 1.2s infinite; }
.rivalry { display: block; transition: transform 0.3s var(--spring); }
.rivalry:hover { transform: translateY(-2px); }
.rv-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rv-row { display: grid; grid-template-columns: 28px minmax(70px, 120px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.rv-medal { font-size: 20px; }
.rv-row b { font: 700 16px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-row .mono { color: var(--amber); font-size: 13px; }

/* ============ hub: weekly challenges + saved ============ */
.weekly { background: linear-gradient(150deg, rgba(216, 178, 90, 0.12), var(--surface) 55%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 211, 138, 0.22); }
.wk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.wk { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(16, 19, 24, 0.4); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.3s; }
.wk > :last-child { grid-column: 1 / -1; justify-self: start; }
.wk-ic { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.wk b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wk.ready { box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.7), 0 0 30px -12px rgba(216, 178, 90, 0.8); }
.wk.ready .wk-ic { background: rgba(216, 178, 90, 0.25); animation: bob 2.4s ease-in-out infinite; }
.wk.claimed { opacity: 0.75; }
.wk.claimed .bar-line i { background: var(--good); }
.saved-item .btn.ghost { color: #ffb4a4; }

/* ============ profile: passport, collection, settings ============ */
.home-chip { color: var(--violet-2); background: rgba(216, 178, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); border: 0; }
button.home-chip:hover { background: rgba(216, 178, 90, 0.22); }

.passport { display: flex; flex-direction: column; gap: 22px; }
.pp-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: center; padding: 30px 34px; border-radius: 22px; color: #f5e2b0;
  background: radial-gradient(120% 140% at 0% 0%, #3a4a2c, #1f2a1c 60%, #171e16); box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 211, 138, 0.3), inset 0 0 0 7px rgba(0, 0, 0, 0.15), inset 0 0 0 8px rgba(240, 211, 138, 0.18); }
.pp-kicker { font: 700 11px var(--f-mono); letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.7; }
.pp-cover h2 { font: 800 clamp(34px, 4vw, 50px)/1 var(--f-display); letter-spacing: 0.02em; margin: 8px 0 10px; color: #f0d38a; text-transform: uppercase; }
.pp-cover p { color: rgba(245, 226, 176, 0.75); font-size: 14.5px; max-width: 460px; }
.pp-goal { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.25); }
.pp-goal > span { font-size: 32px; }
.pp-goal b { display: block; font: 700 16px var(--f-display); }
.pp-goal small { display: block; font-size: 12.5px; opacity: 0.75; margin-bottom: 8px; }
.pp-goal.won { box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.7), 0 0 30px -10px rgba(216, 178, 90, 0.8); }
.pp-page { padding: 24px 26px 26px; border-radius: 14px; color: #3b3326; background: #f3ecdc linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 30%);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(80, 110, 140, 0.08) 27px 28px), radial-gradient(120% 90% at 50% 0%, #f7f1e3, #ece2cc);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(150, 120, 70, 0.18); }
.pp-page header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1.5px dashed rgba(59, 51, 38, 0.3); }
.pp-page h3 { font: italic 600 24px var(--f-serif); color: #2b261d; }
.pp-page header .mono { font-size: 13px; font-weight: 700; color: #7a6a4a; letter-spacing: 0.1em; }
.pp-page.blank { opacity: 0.72; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; }
.pp-stamp { position: relative; aspect-ratio: 22 / 15; transition: transform 0.35s var(--spring); }
.pp-stamp:hover { transform: scale(1.06) rotate(-2deg); }
.pp-stamp svg { width: 100%; height: 100%; display: block; mix-blend-mode: multiply; }
.pp-n { position: absolute; right: 2px; bottom: 0; padding: 2px 7px; border-radius: 99px; font: 700 11px var(--f-mono); color: #f3ecdc; background: #3b3326; }
.pp-slot { aspect-ratio: 22 / 15; display: grid; place-items: center; padding: 8px; border-radius: 14px; border: 2px dashed rgba(59, 51, 38, 0.2); text-align: center; }
.pp-slot span { font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(59, 51, 38, 0.4); }

.coll-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; margin-bottom: 26px; }
.coll-head > div { text-align: center; }
.coll-head b { display: block; font: 800 36px/1 var(--f-display); }
.coll-head b .dim { font-size: 20px; }
.coll-head small { color: var(--dim); font: 600 10.5px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.coll-head .g b { color: #ffd166; text-shadow: 0 0 20px rgba(255, 209, 102, 0.5); }
.coll-head p { flex: 1 1 260px; font-size: 14.5px; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.coll-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px 16px; border-radius: 20px; text-align: center; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); }
.coll-tile .ce { font-size: 44px; line-height: 1.1; filter: grayscale(1) brightness(0.35); opacity: 0.5; }
.coll-tile b { font-size: 14px; font-weight: 600; color: var(--dim); text-transform: capitalize; }
.coll-tile small { font-size: 11.5px; color: var(--dim); }
.coll-tile.got { background: linear-gradient(160deg, rgba(163, 184, 108, 0.14), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.35); }
.coll-tile.got .ce { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); opacity: 1; }
.coll-tile.got b { color: var(--text); }
.coll-tile.got small { color: var(--teal); font-weight: 700; }
.coll-tile.golden { background: linear-gradient(160deg, rgba(255, 209, 102, 0.2), rgba(216, 178, 90, 0.05)); box-shadow: inset 0 0 0 1.5px rgba(255, 209, 102, 0.65), 0 0 34px -10px rgba(255, 209, 102, 0.75); }
.coll-tile.golden .ce { filter: drop-shadow(0 0 14px #ffd166) drop-shadow(0 0 28px rgba(255, 209, 102, 0.6)) saturate(1.3); animation: bob 3s ease-in-out infinite; }
.coll-tile.golden::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, 0.2) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 4s infinite; pointer-events: none; }
.coll-tile { overflow: hidden; }
.cg { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; font: 800 11px var(--f-mono); color: #2a1d00; background: linear-gradient(135deg, #fff3cf, #ffd166); box-shadow: 0 0 14px rgba(255, 209, 102, 0.7); }

.set-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; padding-top: 0; }
.set-row .si { width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.set-row b { display: block; font-size: 15px; font-weight: 600; }
.set-row small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
button.switch { position: relative; width: 52px; height: 30px; flex: none; border: 0; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.3s; }
button.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #d9d2c2; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); transition: transform 0.35s var(--spring), background 0.3s; }
button.switch.on { background: linear-gradient(115deg, #a3b86c, #d8b25a); }
button.switch.on i { transform: translateX(22px); background: #fff; }
button.switch[disabled] { opacity: 0.5; }

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .today-band { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis div:nth-child(3) { border-right: 0; }
  .kpis div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .wk-list { grid-template-columns: 1fr; }
  .wk { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto; }
  .wk > :last-child { grid-column: auto; justify-self: end; }
}
@media (max-width: 760px) {
  .event-card { grid-template-columns: 1fr; }
  .ev-art { min-height: 0; aspect-ratio: 16 / 9; }
  .ev-body { padding: 24px 22px 22px; }
  .tb-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 12px; }
  .tb-row .bar-line { grid-column: 1 / -1; grid-row: 2; }
  .tb-row > span:last-child { grid-column: 2 / -1; grid-row: 3; text-align: left; margin-top: -2px; }
  .today-band { margin-bottom: 72px; gap: 18px; }
  .qotd-art { aspect-ratio: 16 / 9; }
  .qotd-body { padding: 22px 22px 24px; }
  .band-side { gap: 18px; }
  .fn-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 10px; }
  .fn-lbl { grid-column: 1 / -1; font-size: 13px; }
  .kpis b { font-size: 19px; }
  .magic-form { flex-direction: column; }
  .pp-cover { grid-template-columns: 1fr; padding: 24px 22px; text-align: left; }
  .pp-page { padding: 20px 16px; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .coll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .coll-tile { padding: 16px 6px 12px; } .coll-tile .ce { font-size: 36px; } .coll-tile b { font-size: 12.5px; }
  .coll-head { gap: 10px 24px; justify-content: center; }
  .set-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; }
  .qtools { margin-bottom: 12px; }
  .inbox-row { padding: 10px 8px; gap: 12px; }
}

/* passport: counties not yet stamped */
.pp-rest { padding: 22px 24px; border-radius: 18px; background: rgba(243, 236, 220, 0.04); box-shadow: inset 0 0 0 1.5px rgba(243, 236, 220, 0.1); border: 0; }
.pp-rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; margin-top: 16px; }
.pp-rest-grid b { display: block; font: italic 600 18px var(--f-serif); color: #e8dcc0; }
.pp-rest-grid span { display: block; font: 600 10.5px/1.6 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.band-side > .ev-strip { flex: none; }
.band-side > .rivalry { display: flex; flex-direction: column; }
.band-side > .rivalry .rv-list { flex: 1; justify-content: center; }
@media (max-width: 760px) { .ev-line b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .ev-line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; } .ev-thumb { width: 48px; height: 48px; } }
.wk .pill:not(.completed) { color: var(--dim); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); }
@media (max-width: 760px) { .wk { gap: 10px 12px; padding: 14px; } .wk-ic { width: 38px; height: 38px; font-size: 19px; } .wk { grid-template-columns: 38px minmax(0, 1fr) auto; } .weekly h3 { font-size: 22px !important; } }
