/* =============================================================
   Oria 001 — PYP Boost
   Vibrant "game arena" design system. Dark-first, neon accents.
   ============================================================= */

/* ---- tokens -------------------------------------------------------- */
:root {
  --bg: #0a0820;
  --bg-2: #0f0c28;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #15122f;
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f2ff;
  --muted: #b3aede;
  --faint: #8a85b8;

  --violet: #8b5cf6;
  --violet-2: #7c3aed;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --pink-2: #f472b6;
  --gold: #ffcb45;
  --lime: #a3e635;
  --danger: #fb7185;

  --grad-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --grad-cyan: linear-gradient(135deg, #22d3ee, #7c3aed);
  --grad-gold: linear-gradient(135deg, #ffd54a, #ff9d2e);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(139, 92, 246, 0.45);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
}

/* ---- reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(55% 45% at 92% 12%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(60% 60% at 80% 95%, rgba(236, 72, 153, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; padding: 0; }

.ic { width: 18px; height: 18px; flex: none; }
.grad-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---- splash -------------------------------------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg-2);
  transition: opacity 0.5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-mark { width: 76px; height: 76px; animation: pop 0.6s ease, floaty 2.4s ease-in-out infinite 0.6s; }

/* ---- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.94rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: 0 10px 26px -10px rgba(236, 72, 153, 0.7); }
.btn--primary:hover { box-shadow: 0 14px 32px -10px rgba(236, 72, 153, 0.9); transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: #2a1a00; }
.btn--ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); transform: translateY(-2px); }
.btn--danger { background: rgba(251, 113, 133, 0.16); color: #ffd2d9; border: 1px solid rgba(251, 113, 133, 0.4); }
.btn--danger:hover { background: rgba(251, 113, 133, 0.26); }
.btn--sm { padding: 7px 13px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); transition: 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---- chips / tags -------------------------------------------------- */
.pts-chip {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  color: var(--gold); background: rgba(255, 203, 69, 0.13);
  border: 1px solid rgba(255, 203, 69, 0.3); padding: 2px 9px; border-radius: 999px;
}
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.tag .ic { width: 15px; height: 15px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 600; color: var(--cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 5px 12px; border-radius: 999px;
}
.kicker .ic { width: 15px; height: 15px; }

/* =============================================================
   AUTH
   ============================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__art { position: relative; overflow: hidden; padding: 56px; display: flex; align-items: center;
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.2) 55%, rgba(34, 211, 238, 0.18)); }
.auth__art-inner { position: relative; z-index: 2; max-width: 460px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.6; }
.orb--1 { width: 320px; height: 320px; background: #8b5cf6; top: -60px; left: -40px; animation: floaty 8s ease-in-out infinite; }
.orb--2 { width: 280px; height: 280px; background: #ec4899; bottom: -40px; right: 40px; animation: floaty 10s ease-in-out infinite reverse; }
.orb--3 { width: 220px; height: 220px; background: #22d3ee; bottom: 120px; left: 120px; animation: floaty 12s ease-in-out infinite; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-brand b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.auth-brand span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }
.auth__headline { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.05; }
.auth__lede { margin-top: 18px; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; max-width: 40ch; }
.auth__list { margin-top: 28px; display: grid; gap: 12px; }
.auth__list li { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.auth__list .ic { width: 20px; height: 20px; color: #fff; background: rgba(255, 255, 255, 0.16); padding: 7px; box-sizing: content-box; border-radius: 10px; }

.auth__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 440px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; border-bottom: 1px solid var(--border); }
.tab { padding: 11px; border-radius: 12px; font-weight: 600; color: var(--muted); transition: 0.2s; }
.tab.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.auth-card__body { padding: 26px; }
.auth-foot { margin-top: 18px; color: var(--faint); font-size: 0.82rem; text-align: center; }

.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field-hint { display: flex; gap: 8px; font-size: 0.8rem; color: var(--faint); align-items: flex-start; margin-top: -4px; }
.field-hint .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--cyan); }
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); transition: 0.18s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); background: rgba(255, 255, 255, 0.06); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b3aede' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
/* Native dropdown popups -> match the dark theme (fixes white-on-white options).
   Explicit hex (not var) so the popup is deterministic across Chrome/Edge/Firefox. */
select option, select optgroup { background-color: #15122f; color: #f4f2ff; }
select optgroup { color: #b3aede; }
select option:checked, select option:hover { background-color: #2a2350; color: #fff; }
.pw { position: relative; display: block; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--faint); }
.pw__toggle:hover { color: var(--text); }
.form-error { color: #ffb3bf; font-size: 0.86rem; min-height: 0; display: none; }
.form-error.show { display: block; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--border); font-weight: 600; font-size: 0.88rem; color: var(--muted); transition: 0.2s; }
.demo-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.1); }
.demo-btn .ic { width: 16px; height: 16px; }

.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }

/* =============================================================
   APP SHELL
   ============================================================= */
.app-shell { min-height: 100vh; padding-bottom: 30px; }
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); background: rgba(10, 8, 32, 0.72); border-bottom: 1px solid var(--border); }
.topbar__inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--font-display); font-size: 1.05rem; }
.brand__text i { font-style: normal; font-size: 0.74rem; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav__link { display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 11px; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: 0.2s; }
.nav__link .ic { width: 18px; height: 18px; }
.nav__link:hover { color: var(--text); background: var(--panel); }
.nav__link.is-active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.1; }
.user-chip__meta b { font-size: 0.9rem; }
.user-chip__meta span { font-size: 0.76rem; color: var(--gold); font-weight: 600; }

.bottom-nav { display: none; }

.view { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 0; display: grid; gap: 24px; }
.view-enter { opacity: 0; }
.view-enter-active { opacity: 1; transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* reveal entrance (only within an entering view) — gentle, slower cascade */
.view-enter .reveal { opacity: 0; transform: translateY(16px); }
.view-enter-active .reveal { animation: revealUp 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.view-enter-active .reveal:nth-child(1) { animation-delay: 0.05s; }
.view-enter-active .reveal:nth-child(2) { animation-delay: 0.13s; }
.view-enter-active .reveal:nth-child(3) { animation-delay: 0.21s; }
.view-enter-active .reveal:nth-child(4) { animation-delay: 0.29s; }
.view-enter-active .reveal:nth-child(5) { animation-delay: 0.37s; }
.view-enter-active .reveal:nth-child(n + 6) { animation-delay: 0.44s; }

/* ---- page head ----------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-head__sub { color: var(--muted); margin-top: 7px; max-width: 64ch; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot--current { background: var(--cyan); }
.dot--done { background: var(--lime); }
.dot--locked { background: var(--faint); }

/* ---- panels & grids ------------------------------------------------ */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__head-extra { display: flex; align-items: center; gap: 10px; }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.panel__title .ic { width: 20px; height: 20px; color: var(--violet); }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.stretch > * { height: 100%; }

.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.section-title .ic { width: 26px; height: 26px; color: var(--violet); }
.section-title .crest { width: 34px; height: 34px; border-radius: 10px; font-size: 0.8rem; }
.section-title h2 { font-size: 1.35rem; }
.section-title p { color: var(--muted); font-size: 0.9rem; }

/* ---- stat cards ---------------------------------------------------- */
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); }
.stat__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 30%, transparent); }
.stat__icon .ic { width: 22px; height: 22px; }
.stat__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat__value { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; }
.stat__label { font-size: 0.82rem; color: var(--muted); line-height: 1.2; }

/* ---- progress ------------------------------------------------------ */
.progress { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress__bar { height: 100%; width: 0; border-radius: 999px; background: var(--c); transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--violet) 60%, transparent); }
.course-progress__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font-size: 0.9rem; color: var(--muted); }
.course-progress__top b { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }

/* ---- segmented + mini select -------------------------------------- */
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.seg__btn { padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--muted); transition: 0.2s; }
.seg__btn.is-active { background: var(--grad-primary); color: #fff; }
.mini-select { padding: 8px 30px 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.85rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23b3aede' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.lb-controls { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---- avatar / crest ------------------------------------------------ */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #fff; flex: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.avatar--lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar--xl { width: 92px; height: 92px; font-size: 1.9rem; border: 3px solid rgba(255, 255, 255, 0.18); }
.crest { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: #fff; flex: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.7); }
.crest--lg { width: 58px; height: 58px; border-radius: 16px; font-size: 1.1rem; }

/* ---- leaderboard --------------------------------------------------- */
.leaderboard { display: grid; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; transition: 0.2s; }
.lb-row:hover { background: rgba(255, 255, 255, 0.06); }
.lb-row.is-me { background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.1)); border-color: rgba(139, 92, 246, 0.4); }
.lb-row__rank { width: 30px; display: grid; place-items: center; flex: none; }
.lb-row__main { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.lb-row__main b { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.lb-row__main small { color: var(--muted); font-size: 0.78rem; }
.lb-row__pts { font-family: var(--font-display); display: flex; align-items: baseline; gap: 4px; color: var(--gold); }
.lb-row__pts b { font-size: 1.1rem; }
.lb-row__pts { font-size: 0.72rem; color: var(--faint); }
.you-tag, .lead-tag { font-style: normal; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--violet); color: #fff; padding: 2px 7px; border-radius: 999px; }
.rank-medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: #1a1206; }
.rank-1 { background: linear-gradient(135deg, #ffe27a, #f59e0b); box-shadow: 0 0 14px -2px rgba(245, 158, 11, 0.8); }
.rank-2 { background: linear-gradient(135deg, #e7ebf5, #9aa6c4); }
.rank-3 { background: linear-gradient(135deg, #f0b27a, #c87f43); }
.rank-num { font-family: var(--font-display); font-weight: 700; color: var(--faint); }

/* ---- badges -------------------------------------------------------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 10px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; text-align: center; }
.badge:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.06); }
.badge__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.badge__icon .ic { width: 26px; height: 26px; }
.badge.is-earned .badge__icon { color: #1a1206; background: var(--bc); box-shadow: 0 0 20px -3px color-mix(in srgb, var(--bc) 75%, transparent); }
.badge.is-earned { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 35%, transparent); }
.badge.is-locked { opacity: 0.55; }
.badge.is-locked .badge__icon { color: var(--faint); background: rgba(255, 255, 255, 0.06); }
.badge__name { font-size: 0.78rem; font-weight: 600; line-height: 1.2; }
.ach-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* =============================================================
   HOME
   ============================================================= */
.hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.16)); border: 1px solid var(--border); }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(50% 80% at 80% 10%, rgba(34, 211, 238, 0.25), transparent 60%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; }
.hero__content h1 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin: 16px 0 12px; }
.hero__content p { color: rgba(255, 255, 255, 0.88); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__stats .stat { background: rgba(10, 8, 32, 0.5); backdrop-filter: blur(8px); }

.week-rail { display: flex; justify-content: space-between; margin-top: 22px; position: relative; }
.week-rail::before { content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--border); }
.rail-node { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; }
.rail-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; background: var(--panel-solid); border: 2px solid var(--border); color: var(--muted); }
.rail-dot .ic { width: 15px; height: 15px; }
.rail-node.done .rail-dot { background: var(--lime); border-color: var(--lime); color: #14210a; }
.rail-node.current .rail-dot { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 0 16px -2px rgba(236, 72, 153, 0.8); animation: pulse 2s ease-in-out infinite; }
.rail-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

/* team achievements */
.team-standing { display: grid; gap: 11px; }
.team-standing__crest { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.team-standing__crest b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.team-standing__crest span { font-size: 0.82rem; color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--muted); padding: 4px 0; }
.kv b { color: var(--text); font-family: var(--font-display); }
.kv.total { border-top: 1px solid var(--border); padding-top: 11px; margin-top: 3px; }
.kv.total b { font-size: 1.3rem; }
.win-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.win-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; background: rgba(52, 211, 153, 0.13); border: 1px solid rgba(52, 211, 153, 0.35); color: #7ff0c4; }
.win-chip .ic { width: 16px; height: 16px; }
.squad { display: flex; flex-direction: column; gap: 10px; }
.squad__member { display: flex; align-items: center; gap: 10px; }
.squad__name { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

/* syllabus */
.syllabus { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.syl-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); transition: transform 0.2s, box-shadow 0.2s; }
.syl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.syl-card.locked { opacity: 0.62; }
.syl-card__num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.syl-card__num .ic { width: 20px; height: 20px; }
.syl-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.syl-date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.syl-date .ic { width: 14px; height: 14px; }
.syl-card h3 { font-size: 1.05rem; }
.syl-theme { color: var(--muted); font-size: 0.85rem; margin: 3px 0 9px; }
.syl-objectives { display: grid; gap: 5px; }
.syl-objectives li { display: flex; gap: 8px; font-size: 0.83rem; color: var(--muted); align-items: flex-start; }
.syl-objectives .ic { width: 15px; height: 15px; color: var(--lime); margin-top: 2px; flex: none; }

.wtag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.wtag .ic { width: 13px; height: 13px; }
.wtag--done { background: rgba(163, 230, 53, 0.14); color: var(--lime); }
.wtag--current { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.wtag--locked { background: rgba(255, 255, 255, 0.07); color: var(--faint); }

/* =============================================================
   CHAMPION LIST
   ============================================================= */
.champ-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.weeks { display: grid; gap: 14px; }
.week-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color 0.25s; }
.week-card.is-current { border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25); }
.week-card.is-locked { opacity: 0.78; }
.week-card__head { width: 100%; display: flex; align-items: center; gap: 15px; padding: 18px 20px; text-align: left; }
.week-card__head:hover { background: rgba(255, 255, 255, 0.03); }
.week-num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.week-num .ic { width: 19px; height: 19px; }
.week-card__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.week-card__title b { font-family: var(--font-display); font-size: 1.05rem; }
.week-card__title small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.week-card__title small .ic { width: 14px; height: 14px; }
.week-card__right { display: flex; align-items: center; gap: 12px; flex: none; }
.week-card__pct { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.acc-chevron { color: var(--faint); transition: transform 0.25s; }
.acc-chevron .ic { width: 20px; height: 20px; transform: rotate(90deg); }
.week-card.is-open .acc-chevron { transform: rotate(90deg); }
.week-card.is-open .acc-chevron .ic { transform: rotate(-90deg); }
.acc-body { padding: 0 20px 20px; }
.week-progress { display: grid; gap: 8px; margin-bottom: 16px; font-size: 0.85rem; color: var(--muted); }
.locked-note { display: flex; gap: 13px; align-items: center; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); }
.locked-note .ic { width: 24px; height: 24px; color: var(--faint); flex: none; }
.locked-note b { display: block; }
.locked-note span { color: var(--muted); font-size: 0.86rem; }

.missions { display: grid; gap: 11px; }
.mission { display: flex; gap: 13px; padding: 15px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); transition: 0.2s; }
.mission.approved { background: rgba(163, 230, 53, 0.06); border-color: rgba(163, 230, 53, 0.22); }
.mission.pending { border-color: rgba(34, 211, 238, 0.3); }
.mission.rejected { border-color: rgba(251, 113, 133, 0.35); }
.mission__check { width: 26px; height: 26px; border-radius: 8px; flex: none; border: 2px solid var(--border-strong); display: grid; place-items: center; margin-top: 2px; transition: 0.2s; }
.mission__check.is-done { background: var(--lime); border-color: var(--lime); color: #14210a; }
.mission__check .ic { width: 16px; height: 16px; }
.mission__body { flex: 1; min-width: 0; }
.mission__top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.mission__title { font-family: var(--font-display); font-size: 1rem; }
.mission__desc { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.mission__note, .mission__reason { display: flex; gap: 8px; align-items: flex-start; margin-top: 9px; font-size: 0.83rem; padding: 9px 11px; border-radius: 10px; }
.mission__note { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.mission__note .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.mission__reason { background: rgba(251, 113, 133, 0.1); color: #ffc2cb; }
.mission__reason .ic { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.mission__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.status-pill .ic { width: 14px; height: 14px; }
.status-pill.is-approved { background: rgba(163, 230, 53, 0.14); color: var(--lime); }
.status-pill.is-pending { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.status-pill.is-rejected { background: rgba(251, 113, 133, 0.14); color: var(--danger); }

/* =============================================================
   PROFILE
   ============================================================= */
.profile-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 30px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent2) 22%, transparent)); border: 1px solid var(--border); flex-wrap: wrap; }
.profile-hero__bg { position: absolute; inset: 0; background: radial-gradient(40% 80% at 90% 0%, rgba(255, 255, 255, 0.12), transparent 60%); }
.profile-hero > * { position: relative; z-index: 2; }
.profile-hero__meta { flex: 1; min-width: 200px; }
.profile-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.14); padding: 4px 11px; border-radius: 999px; }
.profile-kicker .ic { width: 14px; height: 14px; }
.profile-hero__meta h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 6px; }
.profile-real { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.profile-real .ic { width: 16px; height: 16px; }
.profile-tags { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.profile-tags .crest { width: 24px; height: 24px; border-radius: 7px; font-size: 0.6rem; }
.profile-edit { align-self: flex-start; }

.info-list { display: grid; gap: 2px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.info-row dt .ic { width: 17px; height: 17px; color: var(--violet); }
.info-row dd { font-weight: 600; text-align: right; }

.team-info { display: grid; gap: 11px; }
.team-info__head { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.team-info__head b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.team-info__head span { font-size: 0.82rem; color: var(--muted); }
.teammates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.teammate { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.teammate .avatar { width: 28px; height: 28px; font-size: 0.7rem; }

.mini-weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 16px; }
.mini-week { text-align: center; padding: 11px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.mini-week span { display: block; font-size: 0.72rem; color: var(--muted); }
.mini-week b { font-family: var(--font-display); font-size: 0.95rem; display: inline-flex; }
.mini-week b .ic { width: 14px; height: 14px; color: var(--faint); }
.mini-week.done { border-color: rgba(163, 230, 53, 0.3); }
.mini-week.current { border-color: rgba(139, 92, 246, 0.45); }

/* =============================================================
   ORGANIZER CONSOLE
   ============================================================= */
.admin-grid { align-items: start; }
.admin-side { display: grid; gap: 22px; }
.queue { display: grid; gap: 12px; }
.queue-item { padding: 15px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.queue-item__main { display: flex; align-items: center; gap: 12px; }
.queue-item__main b { font-weight: 600; }
.queue-item__main small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.reveal-name { color: var(--cyan); font-weight: 600; font-size: 0.85rem; }
.queue-note { display: flex; gap: 8px; align-items: flex-start; margin: 11px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 0.85rem; }
.queue-note .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.queue-item__actions { display: flex; gap: 10px; margin-top: 12px; }

.week-toggle-list { display: grid; gap: 10px; }
.week-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.week-toggle__label { font-size: 0.88rem; color: var(--muted); }
.week-toggle__label b { color: var(--text); font-family: var(--font-display); margin-right: 5px; }
.switch { width: 46px; height: 27px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; flex: none; transition: 0.25s; border: 1px solid var(--border); }
.switch__dot { position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: 0.25s; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); }
.switch.is-on { background: var(--grad-primary); border-color: transparent; }
.switch.is-on .switch__dot { left: 21px; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.tool-row:last-child { border-bottom: none; }
.tool-row b { display: block; }
.tool-row span { color: var(--muted); font-size: 0.82rem; }

/* ---- empty / footer ------------------------------------------------ */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px; text-align: center; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--violet); opacity: 0.7; }
.footer-note { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 4px 8px; border-top: 1px solid var(--border); margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

/* =============================================================
   MODAL / TOAST / CONFETTI
   ============================================================= */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 4, 16, 0.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.22s; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; max-width: 460px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); max-height: 90vh; overflow: auto; }
.modal-overlay.show .modal { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 0; }
.modal__head h3 { font-size: 1.2rem; }
.modal__head p { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.modal__body { padding: 18px 22px 22px; display: grid; gap: 15px; }
.modal-mission { padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.modal-mission b { font-family: var(--font-display); }
.modal-mission p { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.confirm-text { color: var(--muted); }
.badge-modal { padding: 30px 26px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.badge-modal__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; }
.badge-modal__icon .ic { width: 40px; height: 40px; }
.badge-modal__icon.is-earned { color: #1a1206; background: var(--bc); box-shadow: 0 0 30px -4px color-mix(in srgb, var(--bc) 70%, transparent); }
.badge-modal__icon.is-locked { color: var(--faint); background: rgba(255, 255, 255, 0.06); }
.badge-modal h3 { font-size: 1.3rem; }
.badge-modal__state { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 11px; border-radius: 999px; }
.badge-modal__state.earned { background: rgba(163, 230, 53, 0.15); color: var(--lime); }
.badge-modal__state.locked { background: rgba(255, 255, 255, 0.08); color: var(--faint); }
.badge-modal p { color: var(--muted); }
.badge-modal .btn { margin-top: 8px; }

.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 10px; width: max-content; max-width: 90vw; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9rem; opacity: 0; transform: translateY(16px); transition: 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.toast.show { opacity: 1; transform: none; }
.toast .ic { width: 18px; height: 18px; flex: none; }
.toast--success .ic { color: var(--lime); }
.toast--info .ic { color: var(--cyan); }
.toast--error { border-color: rgba(251, 113, 133, 0.5); }
.toast--error .ic { color: var(--danger); }

.confetti-canvas { position: fixed; inset: 0; z-index: 160; pointer-events: none; }

/* =============================================================
   PROGRESS RING + ENRICHED COURSE PROGRESS
   ============================================================= */
.mini-select:focus-visible, .mini-select:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); }
.ring { position: relative; width: 130px; height: 130px; flex: none; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 11; }
.ring__fill { fill: none; stroke: var(--c); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ring__center { position: absolute; inset: 0; display: grid; place-items: center; }
.ring__pct { display: inline-flex; align-items: baseline; line-height: 1; }
.ring__center b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.ring__center i { font-style: normal; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-left: 1px; }

.course-progress { display: grid; gap: 18px; }
.cp-main { display: flex; align-items: center; gap: 22px; }
.cp-break { display: grid; gap: 9px; flex: 1; min-width: 0; }
.cp-stat { display: flex; align-items: center; gap: 11px; }
.cp-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cp-stat b { font-family: var(--font-display); font-size: 1.1rem; min-width: 1.6em; }
.cp-stat__label { color: var(--muted); font-size: 0.9rem; }
.cp-meta { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.82rem; margin-top: 4px; }
.cp-meta .ic { width: 15px; height: 15px; flex: none; }
.cp-msg { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.cp-msg .ic { width: 20px; height: 20px; flex: none; color: var(--violet); margin-top: 1px; }
.cp-msg b { color: var(--text); }
.cp-msg--win { background: linear-gradient(135deg, rgba(255, 203, 69, 0.14), rgba(236, 72, 153, 0.1)); border-color: rgba(255, 203, 69, 0.42); color: #ffe9b0; }
.cp-msg--win .ic { color: var(--gold); }
.cp-msg--win b { color: #fff; }

/* =============================================================
   ORGANIZER · MISSION MANAGER
   ============================================================= */
.icon-btn--danger { color: var(--danger); }
.icon-btn--danger:hover { background: rgba(251, 113, 133, 0.16); color: #ffd2d9; }
.mm-list { display: grid; gap: 10px; }
.mm-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.mm-item__body { flex: 1; min-width: 0; }
.mm-item__top { display: flex; align-items: center; gap: 10px; }
.mm-item__top b { font-family: var(--font-display); font-size: 0.98rem; }
.mm-item__body p { color: var(--muted); font-size: 0.86rem; margin-top: 3px; }
.mm-item__actions { display: flex; gap: 6px; flex: none; }
.mm-item__actions .icon-btn { width: 36px; height: 36px; }
.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.mm-total { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.mm-total .ic { width: 16px; height: 16px; color: var(--gold); }
.mm-total b { color: var(--text); font-family: var(--font-display); }
.mm-total.over { color: var(--gold); }

/* =============================================================
   ORGANIZER · BADGE MANAGER + EDITOR
   ============================================================= */
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bm-card { padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-top: 3px solid var(--bc); display: flex; flex-direction: column; gap: 10px; }
.bm-card__head { display: flex; align-items: center; gap: 12px; }
.bm-disc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #1a1206; background: var(--bc); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--bc) 70%, transparent); }
.bm-disc .ic { width: 24px; height: 24px; }
.bm-card__meta { min-width: 0; }
.bm-card__meta b { font-family: var(--font-display); }
.bm-tag { font-style: normal; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); background: rgba(34, 211, 238, 0.14); padding: 2px 7px; border-radius: 999px; margin-left: 7px; vertical-align: middle; }
.bm-card__meta small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.bm-desc { color: var(--muted); font-size: 0.85rem; flex: 1; }
.bm-card__actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bm-card__actions .btn { margin-right: auto; }
.bm-card__actions .icon-btn { width: 36px; height: 36px; }

.badge-editor { display: flex; align-items: center; gap: 16px; }
.badge-editor__fields { flex: 1; min-width: 0; display: grid; gap: 12px; }
.bm-disc.badge-preview { width: 62px; height: 62px; }
.bm-disc.badge-preview .ic { width: 30px; height: 30px; }
.icon-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.icon-pick { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--muted); transition: 0.18s; }
.icon-pick .ic { width: 18px; height: 18px; }
.icon-pick:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.icon-pick.is-active { color: #fff; background: var(--grad-primary); border-color: transparent; }
.color-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.color-pick { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); transition: 0.18s; }
.color-pick:hover { transform: scale(1.1); }
.color-pick.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }

.award-list { display: grid; gap: 8px; max-height: 52vh; overflow: auto; }
.award-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); text-align: left; transition: 0.18s; }
.award-row:hover { background: rgba(255, 255, 255, 0.07); }
.award-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.award-row__main b { font-weight: 600; }
.award-row__main small { color: var(--muted); font-size: 0.78rem; }
.award-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--faint); background: rgba(255, 255, 255, 0.06); transition: 0.18s; }
.award-check .ic { width: 16px; height: 16px; }
.award-row.is-on { border-color: rgba(163, 230, 53, 0.4); background: rgba(163, 230, 53, 0.08); }
.award-row.is-on .award-check { color: #14210a; background: var(--lime); }

/* =============================================================
   WELCOME OVERLAY + BADGE STRIKE
   ============================================================= */
.medallion { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.medallion__disc, .flyer { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #1a1206; background: var(--bc); box-shadow: 0 0 34px -6px color-mix(in srgb, var(--bc) 80%, transparent), inset 0 0 0 3px rgba(255, 255, 255, 0.32); }
.medallion__disc .ic, .flyer .ic { width: 40px; height: 40px; }
.medallion__name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.flyer { pointer-events: none; }

.welcome-overlay {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  opacity: 0; background: rgba(8, 6, 24, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: opacity 0.4s ease, background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
}
.welcome-overlay.show { opacity: 1; background: rgba(8, 6, 24, 0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.welcome-overlay.unblur { background: rgba(8, 6, 24, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.welcome-overlay.closing { opacity: 0; }
.welcome-card {
  width: 100%; max-width: 460px; background: var(--panel-solid); border: 1px solid var(--border-strong);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 30px 28px; text-align: center;
  transform: translateY(18px) scale(0.96); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease, background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.welcome-overlay.show .welcome-card { transform: none; opacity: 1; }
.welcome-card.strike-mode { background: transparent; border-color: transparent; box-shadow: none; }
.welcome-card.strike-mode > *:not(.welcome-badges) { opacity: 0; transform: translateY(-10px); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }
.welcome-card.strike-mode .welcome-badges { transform: scale(1.05); transition: transform 0.4s ease; }

.welcome-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); padding: 5px 13px; border-radius: 999px; }
.welcome-kicker .ic { width: 15px; height: 15px; }
.welcome-greeting { font-size: 1.7rem; margin: 16px 0 6px; }
.welcome-lede { color: var(--muted); margin-bottom: 22px; }
.welcome-sub { color: var(--muted); font-size: 0.85rem; margin: 14px 0 2px; text-align: left; }
.welcome-updates { display: grid; gap: 9px; margin: 10px 0 22px; text-align: left; max-height: 44vh; overflow: auto; padding-right: 2px; }
.wu-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.wu-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); align-self: flex-start; }
.wu-ic .ic { width: 18px; height: 18px; }
.wu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wu-text { font-weight: 600; font-size: 0.92rem; }
.wu-sub { color: var(--muted); font-size: 0.76rem; }
.wu-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; font-size: 0.78rem; color: #ffc2cb; background: rgba(251, 113, 133, 0.1); padding: 7px 9px; border-radius: 9px; }
.wu-note .ic { width: 13px; height: 13px; margin-top: 2px; flex: none; }
.wu-tag { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 0.85rem; align-self: center; }
.welcome-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 8px 0 24px; }
.welcome-continue { margin-top: 4px; }

@media (max-width: 560px) {
  .cp-main { gap: 18px; }
  .ring { width: 108px; height: 108px; }
  .ring__center b { font-size: 1.7rem; }
  .icon-picker { grid-template-columns: repeat(6, 1fr); }
  .bm-grid { grid-template-columns: 1fr; }
  .welcome-greeting { font-size: 1.4rem; }
  .medallion__disc, .flyer { width: 72px; height: 72px; }
  .medallion__disc .ic, .flyer .ic { width: 34px; height: 34px; }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes badgePop { 0% { transform: scale(0.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.badge-pop .badge__icon { animation: badgePop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.badge.badge-pop { box-shadow: 0 0 0 2px var(--bc), 0 0 26px -4px var(--bc); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.stagger-in { animation: rowIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 16px -2px rgba(236, 72, 153, 0.7); } 50% { box-shadow: 0 0 26px 2px rgba(236, 72, 153, 0.9); } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .nav { display: none; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    justify-content: space-around; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 8, 32, 0.92); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  }
  .bottom-nav__link { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 16px; border-radius: 12px; color: var(--muted); font-size: 0.68rem; font-weight: 600; }
  .bottom-nav__link .ic { width: 22px; height: 22px; }
  .bottom-nav__link.is-active { color: var(--text); }
  .bottom-nav__link.is-active .ic { color: var(--violet); }
  .app-shell { padding-bottom: 80px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .user-chip__meta { display: none; }
}
@media (max-width: 560px) {
  .view { padding: 22px 15px 0; gap: 18px; }
  .hero { padding: 24px; }
  .panel { padding: 18px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .mini-weeks { grid-template-columns: repeat(3, 1fr); }
  .week-card__head { padding: 15px; gap: 12px; }
  .week-card__right .week-card__pct { display: none; }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
  .footer-note { flex-direction: column; gap: 4px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .view-enter .reveal { opacity: 1; transform: none; }
}
