/* =========================================================
   Kommentatoren-Check – Design
   ========================================================= */

:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e7ecf3;
  --text: #0d1522;
  --muted: #5d6a7d;
  --border: #e2e7ef;
  --accent: #14924a;
  --accent-strong: #0f7a3c;
  --accent-soft: #e3f5ea;
  --on-accent: #ffffff;
  --star: #f5b100;
  --good: #16a34a;
  --mid: #d99a00;
  --bad: #dc3545;
  --danger: #d23a3a;
  --shadow-sm: 0 1px 2px rgba(13, 21, 34, .06);
  --shadow: 0 1px 2px rgba(13, 21, 34, .05), 0 8px 24px -8px rgba(13, 21, 34, .12);
  --shadow-lg: 0 24px 60px -12px rgba(13, 21, 34, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  /* Hero ist in beiden Themes dunkel (Stadion-Look) */
  --hero-bg: #0b1220;
  --hero-text: #f3f6fb;
  --hero-muted: #9fb0c6;
  --lime: #b8f23a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d16;
    --surface: #101826;
    --surface-2: #162133;
    --surface-3: #1e2b40;
    --text: #e9eef5;
    --muted: #8e9cb0;
    --border: #1f2b3e;
    --accent: #a6e635;
    --accent-strong: #bff05b;
    --accent-soft: rgba(166, 230, 53, .12);
    --on-accent: #0b1220;
    --good: #4ade80;
    --mid: #facc15;
    --bad: #f87171;
    --danger: #f87171;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -10px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #080d16;
  --surface: #101826;
  --surface-2: #162133;
  --surface-3: #1e2b40;
  --text: #e9eef5;
  --muted: #8e9cb0;
  --border: #1f2b3e;
  --accent: #a6e635;
  --accent-strong: #bff05b;
  --accent-soft: rgba(166, 230, 53, .12);
  --on-accent: #0b1220;
  --good: #4ade80;
  --mid: #facc15;
  --bad: #f87171;
  --danger: #f87171;
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -10px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--hero-text);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--hero-text); }
.logo:hover { color: var(--hero-text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lime); color: #0b1220;
  box-shadow: 0 0 0 4px rgba(184, 242, 58, .15);
}
.logo-text {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em;
  text-transform: uppercase; line-height: 1;
}
.logo-text b { color: var(--lime); font-weight: 800; }
.logo-text.small { font-size: 1.15rem; }

#nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: var(--hero-muted); font-weight: 500; font-size: .9rem; padding: 8px 12px; border-radius: 8px;
}
.nav-link:hover, .nav-link.active { color: var(--hero-text); background: rgba(255,255,255,.07); }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px;
  background: rgba(255,255,255,.07); color: var(--hero-text); font-size: .88rem; font-weight: 600;
}
.user-chip:hover { background: rgba(255,255,255,.12); color: var(--hero-text); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.1); color: var(--hero-muted); cursor: pointer;
}
.icon-btn:hover { color: var(--hero-text); background: rgba(255,255,255,.07); }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #0b1220; }
.btn-lime:hover { background: #cbff55; border-color: #cbff55; color: #0b1220; box-shadow: 0 8px 24px -6px rgba(184,242,58,.5); }
.btn-ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--hero-text); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); color: var(--hero-text); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e9cb0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.error {
  color: var(--danger); font-size: .88rem; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 242, 58, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(34, 197, 94, .18), transparent 60%),
    var(--hero-bg);
  padding: 72px 0 120px;
}
.hero::before { /* Spielfeld-Linien */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background:
    radial-gradient(circle at 78% 50%, transparent 118px, #fff 119px, #fff 121px, transparent 122px),
    linear-gradient(90deg, transparent calc(78% - 1px), #fff calc(78% - 1px), #fff calc(78% + 1px), transparent calc(78% + 1px)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 90px, transparent 90px 180px);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
  background: rgba(184, 242, 58, .1); border: 1px solid rgba(184, 242, 58, .25);
  padding: 6px 12px; border-radius: 99px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.hero h1 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: .95; letter-spacing: -.005em;
  margin: 20px 0 16px; max-width: 760px;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { color: var(--hero-muted); font-size: 1.08rem; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-strip { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat-strip .num { font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.stat-strip .lbl { color: var(--hero-muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Toolbar (schwebend über Hero) ---------- */
.toolbar {
  margin-top: -64px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px;
}
.toolbar-row { display: grid; grid-template-columns: 1fr 200px 210px; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  padding: 7px 14px; border-radius: 99px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--surface-3); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- Sektionen ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2, .h-display {
  font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: 1.9rem;
  letter-spacing: .005em; margin: 0; line-height: 1;
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.podium-card {
  position: relative; overflow: hidden; display: block; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.podium-card:hover { transform: translateY(-3px); color: var(--text); border-color: var(--accent); }
.podium-card .rank {
  position: absolute; right: 14px; top: -14px; font-family: var(--display); font-weight: 800;
  font-size: 7rem; line-height: 1; color: var(--surface-3); pointer-events: none;
}
.podium-card.r1 { background: linear-gradient(160deg, color-mix(in srgb, #f5b100 14%, var(--surface)), var(--surface) 60%); }
.podium-card.r1 .rank { color: color-mix(in srgb, #f5b100 30%, var(--surface)); }
.podium-card .medal { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.podium-card .p-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin: 14px 0 2px; position: relative; }
.podium-card .p-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; position: relative; }

/* ---------- Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.c-card {
  display: flex; flex-direction: column; gap: 18px; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: rise .35s ease both;
}
.c-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); color: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.c-top { display: flex; align-items: center; gap: 14px; }
.c-top .who { flex: 1; min-width: 0; }
.c-top h3 { margin: 0; font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; margin-top: 2px; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.mini-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.mini-bar .lbl { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-bottom: 5px; }
.mini-bar .lbl b { color: var(--text); font-weight: 600; }
.track { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s cubic-bezier(.2,.8,.2,1); }

.c-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem;
}
.c-foot .go { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.c-card:hover .go svg { transform: translateX(3px); }
.go svg { transition: transform .2s; }
.no-rating { color: var(--muted); font-size: .85rem; font-style: italic; }

/* Avatar */
.avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.05rem;
  font-family: var(--display); letter-spacing: .03em; font-size: 1.35rem;
  box-shadow: inset 0 -12px 20px rgba(0,0,0,.15);
}
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
.avatar-xs { width: 28px; height: 28px; border-radius: 99px; font-size: .85rem; }
.avatar-lg { width: 112px; height: 112px; border-radius: 28px; font-size: 2.8rem; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5), inset 0 -20px 30px rgba(0,0,0,.15); }

/* Score-Badge */
.score {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
  color: var(--s-color); background: color-mix(in srgb, var(--s-color) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--s-color) 28%, transparent);
}
.score.sm { min-width: 42px; height: 34px; font-size: 1.2rem; border-radius: 10px; }
.score.none { --s-color: var(--muted); font-size: 1.2rem; }
.s-good { --s-color: var(--good); }
.s-mid { --s-color: var(--mid); }
.s-bad { --s-color: var(--bad); }

.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; font-size: .95rem; }
.stars .off { color: var(--surface-3); }
.rating-line { display: flex; align-items: center; gap: 8px; }

/* ---------- Detailseite ---------- */
.detail-hero { padding: 36px 0 110px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--hero-muted); font-size: .88rem; font-weight: 500; margin-bottom: 28px;
}
.back:hover { color: var(--hero-text); }
.detail-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.detail-head .who { flex: 1; min-width: 220px; }
.detail-head h1 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: .95; margin: 0 0 12px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--hero-text);
  border: 1px solid rgba(255,255,255,.12);
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.ring-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center .big { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: .9; }
.ring-center .sub { color: var(--hero-muted); font-size: .75rem; margin-top: 2px; }

.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; margin-top: -70px; position: relative; z-index: 2; align-items: start; }
.stack { display: grid; gap: 20px; }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.cat-row { margin-bottom: 16px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-row .lbl { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 7px; }
.cat-row .lbl span { color: var(--muted); }
.cat-row .lbl b { font-weight: 700; }
.cat-row .track { height: 9px; }

.dist-row { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 7px; }
.dist-row .track > i { background: var(--star); }

/* Sterne-Eingabe */
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.rate-row:last-of-type { border-bottom: none; }
.rate-row .name { font-weight: 600; font-size: .92rem; }
.rate-row .word { display: block; font-size: .75rem; color: var(--muted); min-height: 1.1em; }
.star-input { display: inline-flex; gap: 2px; }
.star-input button {
  background: none; border: none; cursor: pointer; padding: 2px; color: var(--surface-3);
  transition: transform .12s, color .12s;
}
.star-input button svg { display: block; width: 26px; height: 26px; }
.star-input button:hover { transform: scale(1.15); }
.star-input button.on { color: var(--star); }
.live-avg {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 18px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; font-weight: 600;
}

.cta-card {
  text-align: center; padding: 30px 22px;
  background:
    radial-gradient(400px 200px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.cta-card .icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.cta-card h3 { margin: 0 0 6px; }
.cta-card p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }

/* Reviews */
.review { padding: 20px 0; border-top: 1px solid var(--border); }
.review:first-of-type { border-top: none; padding-top: 4px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .who { flex: 1; min-width: 0; }
.review-head .name { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.review-head .date { color: var(--muted); font-size: .8rem; }
.badge-you { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.review .text { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cat-chip { font-size: .76rem; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.cat-chip b { color: var(--text); margin-left: 4px; }
.match {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8rem; font-weight: 600;
  color: var(--text); background: var(--surface-2); border-left: 3px solid var(--accent); padding: 5px 10px; border-radius: 0 8px 8px 0;
}
.review-actions { display: flex; gap: 8px; margin-top: 14px; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .big-icon { font-size: 2.4rem; margin-bottom: 8px; }
.empty h3 { color: var(--text); margin: 0 0 4px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 9, 16, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 30px; animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: none; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-head { margin-bottom: 22px; }
.modal-head .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.modal-head h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.9rem; margin: 0; line-height: 1; }
.modal-head p { color: var(--muted); margin: 6px 0 0; font-size: .9rem; }
.modal-foot { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #0b1220; color: #f3f6fb; padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 500;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08);
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0b1220; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Footer ---------- */
.footer { margin-top: 72px; border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .logo-text b { color: var(--accent); }

/* ---------- Profil ---------- */
.profile-stats { display: flex; gap: 32px; margin-top: 18px; flex-wrap: wrap; }
.profile-stats .num { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; }
.profile-stats .lbl { color: var(--hero-muted); font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .toolbar-row { grid-template-columns: 1fr 1fr; }
  .toolbar-row .search { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 100px; }
  .stat-strip { gap: 24px; }
  .nav-link.hide-sm, .user-chip .uname { display: none; }
  .user-chip { padding: 4px; }
  .logo-text { font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
  .ring-wrap { width: 120px; height: 120px; }
  .ring-wrap svg { width: 120px; height: 120px; }
  .ring-center .big { font-size: 2.6rem; }
  .avatar-lg { width: 84px; height: 84px; font-size: 2.2rem; border-radius: 22px; }
  .modal { padding: 24px; }
  .star-input button svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
