@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --paper-2: #faf7f0;
  --ink: #0f0f0f;
  --ink-soft: #3a3d38;
  --muted: #6b6f67;
  --line: rgba(15, 15, 15, 0.12);
  --panel: rgba(250, 247, 240, 0.88);
  --panel-solid: #faf7f0;
  --red: #c8202f;
  --green: #077250;
  --blue: #1a5fa8;
  --gold: #c8901a;
  --shadow: 0 24px 80px rgba(24, 18, 10, 0.18);
  --hero-h: clamp(520px, 88vh, 840px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  background: var(--paper);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; }

/* === Topbar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 54px);
  background: rgba(15, 12, 8, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f4f0e6;
  text-decoration: none;
}

.brand-emblem {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #f4f0e6;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), transparent 36%),
    conic-gradient(from 160deg, var(--red), var(--gold), var(--green), var(--blue), var(--red));
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.brand strong { display: block; font-size: 15px; letter-spacing: 0.04em; color: #f4f0e6; }
.brand small { display: block; margin-top: 2px; color: rgba(244,240,230,0.5); font-size: 12px; }

.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-btn {
  min-height: 36px;
  padding: 0 16px;
  color: rgba(244,240,230,0.8);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); color: #f4f0e6; transform: translateY(-1px); }

.nav-btn.accent {
  color: #0f0f0f;
  border-color: transparent;
  background: linear-gradient(135deg, #e8c84a, #c8901a);
  box-shadow: 0 4px 16px rgba(200,144,26,0.35);
  font-weight: 700;
}

.nav-btn.accent:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,144,26,0.5); }

button:disabled { cursor: not-allowed; opacity: 0.46; }

main {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 72px;
}

/* === HERO COVER === */
.hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a06 35%, #0d1a12 65%, #060d1a 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  left: -150px; top: -180px;
  background: radial-gradient(circle, rgba(200,32,47,0.35) 0%, transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  right: -100px; bottom: -100px;
  background: radial-gradient(circle, rgba(7,114,80,0.3) 0%, transparent 70%);
  animation: orbFloat2 11s ease-in-out infinite;
}

.hero-orb-3 {
  width: 400px; height: 400px;
  left: 40%; top: 10%;
  background: radial-gradient(circle, rgba(200,144,26,0.2) 0%, transparent 70%);
  animation: orbFloat3 9s ease-in-out infinite;
}

@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-40px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,20px) scale(1.1)} }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-ball {
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 28vw, 380px);
  height: clamp(180px, 28vw, 380px);
  opacity: 0.13;
  animation: ballSpin 30s linear infinite;
  pointer-events: none;
}

@keyframes ballSpin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

.hero-deco-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(60px, 14vw, 200px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #f4f0e6;
  padding: 80px clamp(20px, 6vw, 80px) 80px;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(200,144,26,0.45);
  border-radius: 999px;
  background: rgba(200,144,26,0.08);
  text-transform: uppercase;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  margin: 0 0 20px;
  line-height: 0.92;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title-line1 {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 400;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 30%, rgba(244,240,230,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-line2 {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(44px, 8vw, 100px);
  font-weight: 400;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c84a 50%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 36px;
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(244,240,230,0.6);
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stat { text-align: center; padding: 0 32px; }
.hero-stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

.hero-stat-num {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.04em;
  color: #f4f0e6;
  line-height: 1;
}

.hero-stat-status {
  font-size: clamp(18px, 3vw, 28px);
}

.hero-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,240,230,0.45);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f0f0f;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c84a 0%, var(--gold) 60%, #c87020);
  box-shadow: 0 8px 32px rgba(200,144,26,0.45);
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(200,144,26,0.65); }

.hero-cta-arrow { font-size: 20px; animation: bounce 2s ease infinite; }

@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Toolbar / Sections === */
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }

.toolbar, .ranking-section, .rules-section {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 32px rgba(15, 12, 8, 0.07);
  backdrop-filter: blur(14px);
}

.toolbar, .section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.search-box, .select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input, select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
  padding: 0 12px;
}

input:focus, select:focus {
  border-color: rgba(189, 48, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(189, 48, 63, 0.1);
}

input { width: min(340px, 100%); padding: 0 14px; }
select { min-width: 120px; padding: 0 10px; }

/* === Team Grid === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.team-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: 0 16px 36px rgba(24, 18, 10, 0.08);
}

.flag-stage {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.2) 0 2px, transparent 2px 12px), #141414;
}

.flag-img { width: 100%; height: 110px; object-fit: cover; filter: saturate(1.08) contrast(1.04); }

.flag-emoji {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  font-size: 28px;
  border: 1px solid rgba(255, 250, 240, 0.7);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.36);
  backdrop-filter: blur(10px);
}

.group-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fffaf0;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(6px);
}

.team-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.confed-line { margin-bottom: 6px; color: var(--red); font-size: 12px; font-weight: 900; }
.team-meta { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.team-card h3 { margin-bottom: 6px; font-size: 22px; letter-spacing: 0; }

.mini-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.mini-stars span {
  padding: 4px 7px;
  color: var(--ink-soft);
  font-size: 11px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.8);
}

.card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }

.vote-btn, .detail-btn {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.vote-btn {
  color: #fffaf0;
  border-color: transparent;
  background: #141414;
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.16);
  font-weight: 700;
}

.detail-btn { color: var(--ink); background: rgba(255, 250, 240, 0.72); }

.vote-btn.voted { background: var(--green); border-color: var(--green); }

/* === Ranking === */
.ranking-leader { margin-top: 18px; }

.leader-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: #fffaf0;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(189, 48, 63, 0.88), rgba(201, 148, 45, 0.86)), #141414;
}

.leader-card img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,250,240,0.48); }
.leader-card small, .leader-card strong, .leader-card span { display: block; }
.leader-card small { color: rgba(255,250,240,0.72); font-weight: 800; }
.leader-card strong { margin-top: 4px; font-size: 28px; }
.leader-card .leader-votes { font-size: 30px; font-weight: 900; }

.ranking-list { display: grid; gap: 10px; margin-top: 14px; }

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(120px, 260px) 78px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.11);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.76);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ranking-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,18,10,0.1); }

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fffaf0;
  font-weight: 900;
  border-radius: 50%;
  background: #141414;
}

.ranking-row.rank-top { border-color: rgba(201, 148, 45, 0.28); background: rgba(255,250,240,0.92); }
.ranking-row.rank-top-1 { border-color: rgba(201, 148, 45, 0.48); background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,250,240,0.92)); }
.ranking-row.rank-top-2 { border-color: rgba(192,192,192,0.4); background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(255,250,240,0.92)); }
.ranking-row.rank-top-3 { border-color: rgba(205,127,50,0.4); background: linear-gradient(135deg, rgba(205,127,50,0.08), rgba(255,250,240,0.92)); }
.ranking-row.rank-top .rank-num { font-size: 20px; }

.rank-team { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rank-team img { width: 42px; height: 28px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(20,20,20,0.12); }
.rank-team strong, .rank-team span { display: block; }
.rank-team span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(20,20,20,0.08); }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); }

/* === Rules === */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.rule-grid article {
  min-height: 100px;
  padding: 18px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.rule-grid strong { display: block; margin-bottom: 8px; font-size: 18px; }
.rule-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

/* === Modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 12, 8, 0.72);
}

.modal-backdrop[hidden] { display: none !important; }

.modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.close-btn {
  position: sticky;
  top: 12px;
  left: calc(100% - 56px);
  z-index: 2;
  width: 40px;
  min-height: 40px;
  color: var(--ink);
  font-size: 26px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease;
}

.close-btn:hover { transform: translateY(-2px); }

.modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: end;
  padding: 24px 28px 18px;
}

.modal-flag-panel { overflow: hidden; border: 1px solid rgba(20,20,20,0.14); border-radius: 8px; background: #141414; }
.modal-flag-panel img { width: 100%; height: 170px; object-fit: cover; }
.modal-flag-panel span { display: block; padding: 12px; color: #fffaf0; font-weight: 900; }
.modal-hero h2 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 58px); }
.modal-hero p { color: var(--ink-soft); line-height: 1.78; }

.detail-block { padding: 16px 28px 24px; }

.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.info-box { padding: 18px; border: 1px solid rgba(20,20,20,0.12); border-radius: 8px; background: rgba(247,243,234,0.72); }
.info-box h3 { margin-bottom: 10px; }
.info-box ul { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.85; }

.star-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.star-card { overflow: hidden; border: 1px solid rgba(15,15,15,0.12); border-radius: 12px; background: var(--panel-solid); transition: transform 200ms ease, box-shadow 200ms ease; }
.star-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.14); }

.star-portrait {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-a, #c8202f), var(--accent-b, #8b0000));
}

.star-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 14px);
  z-index: 1;
}

.star-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 300ms ease;
}

.star-card:hover .star-photo { transform: scale(1.04); }

.star-avatar {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 156px;
  height: 196px;
  transform: translateX(-50%);
  z-index: 2;
}

.star-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff1de 0 13px, #d89a69 14px 39px, #4d2d1f 40px 100%);
  box-shadow: 0 14px 24px rgba(0,0,0,0.22);
  transform: translateX(-50%);
}

.star-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150px;
  height: 112px;
  border-radius: 46px 46px 0 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), transparent 32%), var(--accent-a, #0b6b4a);
  box-shadow: inset 0 22px 30px rgba(255,255,255,0.16);
  transform: translateX(-50%);
}

.star-initials {
  position: absolute;
  left: 50%;
  bottom: 45px;
  z-index: 3;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  border: 2px solid rgba(255,250,240,0.55);
  border-radius: 50%;
  background: rgba(20,20,20,0.22);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.star-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.star-nick {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  letter-spacing: 0.02em;
}

.star-age-badge {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #0f0f0f;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c84a, var(--gold));
}

.star-body { padding: 16px; }
.star-body h4 { margin: 0 0 10px; font-size: 17px; font-weight: 900; line-height: 1.2; }

.star-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.star-meta-tag {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid rgba(15,15,15,0.1);
  border-radius: 999px;
  background: rgba(200,32,47,0.06);
}

.star-highlight {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200,32,47,0.05), rgba(200,144,26,0.06));
  border: 1px solid rgba(200,32,47,0.1);
}

.highlight-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.star-highlight p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

.empty-state, .mode-warning {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(20,20,20,0.18);
  border-radius: 8px;
  background: rgba(255,250,240,0.7);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(360px, calc(100% - 40px));
  padding: 14px 16px;
  color: #fffaf0;
  line-height: 1.55;
  border-radius: 8px;
  background: #141414;
  box-shadow: var(--shadow);
}

/* === Confirm Dialog === */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 12, 8, 0.65);
}

.confirm-backdrop[hidden] { display: none !important; }

.confirm-box {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
  text-align: center;
}

.confirm-box h3 { margin: 0 0 18px; font-size: 22px; }

.confirm-team-info { display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 14px; }
.confirm-team-info img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(20,20,20,0.14); }
.confirm-team-info strong { font-size: 22px; }

.confirm-box p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.confirm-actions { display: flex; gap: 12px; justify-content: center; }

.confirm-cancel, .confirm-ok {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.confirm-cancel { background: rgba(255,250,240,0.72); color: var(--ink); }
.confirm-ok { color: #fffaf0; border-color: transparent; background: #141414; box-shadow: 0 8px 20px rgba(20,20,20,0.18); }
.confirm-ok:hover { transform: translateY(-2px); background: var(--red); }
.confirm-cancel:hover { transform: translateY(-2px); }

/* === Responsive === */
@media (max-width: 900px) {
  .topbar, .toolbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .nav-actions { width: 100%; flex-wrap: wrap; }
  .modal-hero, .split-list, .star-grid { grid-template-columns: 1fr; }
  .filter-row, .search-box, .select-box, input, select { width: 100%; }
  .ranking-row { grid-template-columns: 38px minmax(0, 1fr) 66px; }
  .ranking-row .bar { grid-column: 2 / -1; grid-row: 2; }
  .rule-grid { grid-template-columns: 1fr; }
  .hero-ball { width: 160px; height: 160px; right: 10px; opacity: 0.08; }
  .hero-stats { padding: 16px 20px; }
  .hero-stat { padding: 0 18px; }
}

@media (max-width: 560px) {
  main { width: min(100% - 22px, 1200px); }
  .topbar { padding-inline: 14px; }
  .nav-btn { flex: 1; }
  .card-actions { flex-direction: column; }
  .vote-btn, .detail-btn { width: 100%; }
  .leader-card { grid-template-columns: 1fr; }
  .confirm-box { padding: 20px; }
  .hero-title-line1 { font-size: clamp(56px, 18vw, 80px); }
  .hero-title-line2 { font-size: clamp(32px, 10vw, 56px); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { width: 60px; height: 1px; }
}
