*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d18;
  --surface: #13131f;
  --surface2: #1a1a2a;
  --border: #252538;
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --red: #e05555;
  --blue: #4a90d9;
  --gold: #f0b429;
  --green: #4caf7d;
  --accent: #6c4fd6;
  --accent2: #8b6fe8;
}

body.light {
  --bg: #f4f4fa;
  --surface: #ffffff;
  --surface2: #ededf7;
  --border: #d4d4e8;
  --text: #12121e;
  --muted: #6b6b8a;
  --red: #c0392b;
  --blue: #2563eb;
  --gold: #b45309;
  --green: #16a34a;
  --accent: #6c4fd6;
  --accent2: #7c3aed;
}

body.light .topo-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,79,214,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74,144,217,0.03) 0%, transparent 60%);
}

body.light nav {
  background: rgba(244,244,250,0.9);
}

body.light tr:hover td { background: rgba(0,0,0,0.02); }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Topographic background */
.topo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,79,214,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74,144,217,0.07) 0%, transparent 60%);
}
.topo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cg fill='none' stroke='%236c4fd6' stroke-opacity='0.07' stroke-width='1'%3E%3Cellipse cx='400' cy='300' rx='380' ry='260'/%3E%3Cellipse cx='400' cy='300' rx='340' ry='220'/%3E%3Cellipse cx='400' cy='300' rx='300' ry='180'/%3E%3Cellipse cx='400' cy='300' rx='260' ry='145'/%3E%3Cellipse cx='400' cy='300' rx='220' ry='115'/%3E%3Cellipse cx='400' cy='300' rx='180' ry='88'/%3E%3Cellipse cx='400' cy='300' rx='140' ry='64'/%3E%3Cellipse cx='400' cy='300' rx='100' ry='44'/%3E%3Cellipse cx='400' cy='300' rx='60' ry='26'/%3E%3Cellipse cx='160' cy='120' rx='200' ry='130'/%3E%3Cellipse cx='160' cy='120' rx='160' ry='100'/%3E%3Cellipse cx='160' cy='120' rx='120' ry='72'/%3E%3Cellipse cx='160' cy='120' rx='80' ry='46'/%3E%3Cellipse cx='640' cy='480' rx='220' ry='140'/%3E%3Cellipse cx='640' cy='480' rx='180' ry='108'/%3E%3Cellipse cx='640' cy='480' rx='140' ry='78'/%3E%3Cellipse cx='640' cy='480' rx='100' ry='52'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 800px 600px;
  background-repeat: repeat;
  opacity: 1;
}

nav, main, footer { position: relative; z-index: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
  background: rgba(13, 13, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.brand svg { color: var(--gold); }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.nav-search { display: flex; align-items: center; }
.nav-search input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  outline: none;
  width: 150px;
  transition: border-color 0.15s;
}
.nav-search input:focus { border-color: var(--accent); }
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.nav-search button:hover { opacity: 0.85; }

/* Discord auth */
.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #5865F2;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.discord-login-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  user-select: none;
}
.nav-user:hover { border-color: var(--accent); }

.discord-avatar { width: 28px; height: 28px; border-radius: 50%; }
.nav-username { font-size: 0.82rem; font-weight: 600; color: var(--text); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
}
.nav-user.open .nav-dropdown { display: block; }
.nav-dropdown a, .nav-dropdown-note {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--surface2); text-decoration: none; }
.nav-dropdown-note { color: var(--muted); font-size: 0.78rem; cursor: default; }

/* Main */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.hero-sword { color: var(--gold); flex-shrink: 0; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-ip-wrap { margin-bottom: 3rem; }

.hero-ip-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-ip-box {
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.hero-ip {
  padding: 0.65rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: monospace;
  color: var(--text);
}

.hero-copy {
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.hero-copy:hover { opacity: 0.85; }

.hero-stats-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 160px;
  transition: border-color 0.15s;
}
.hero-stat-card:hover { border-color: var(--accent); }

.hero-stat-icon { color: var(--muted); margin-bottom: 0.2rem; }
.hero-stat-val { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Home section titles */
.home-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Staff grid */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  flex: 0 0 calc(33.333% - 0.7rem);
  min-width: 200px;
  max-width: 300px;
}
.staff-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.staff-head {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  image-rendering: pixelated;
  margin-bottom: 0.75rem;
}

.staff-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.staff-role { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.role-owner { color: var(--gold); }
.role-mod { color: #60a5fa; }
.staff-profile { font-size: 0.8rem; color: var(--muted); }
.staff-profile:hover { color: var(--text); text-decoration: none; }

/* Post images */
.post-img { max-width: 100%; max-height: 480px; border-radius: 8px; margin: 0.5rem 0; display: block; }

/* Post footer — reactions & views */
.post-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.heart-btn:hover:not(:disabled) { color: #f87171; border-color: #f87171; background: rgba(248,113,113,0.08); }
.heart-btn.heart-active { color: #f87171; border-color: #f87171; background: rgba(248,113,113,0.1); }
.heart-count { min-width: 8px; }
.view-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Announcements */
.ann-empty { color: var(--muted); font-size: 0.9rem; padding: 1rem 0 1.5rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-powered { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 0.75rem; }
.footer-icon { color: var(--muted); display: flex; align-items: center; transition: color 0.15s; }
.footer-icon:hover { color: #5865F2; text-decoration: none; }




/* Tone down bold in post content — use accent color instead of heavy weight */
.rule-post-body strong { font-weight: 600; color: var(--text); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
}
td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
tr:hover td { background: rgba(255,255,255,0.02); }
.empty { color: var(--muted); text-align: center; padding: 2rem; }

.lb-sort:hover { color: var(--text); }
.lb-sort.active-sort { color: var(--gold); }
.sort-arrow { font-size: 0.7rem; margin-left: 2px; }

/* Page header */
.page-header { margin-bottom: 1.25rem; }
.page-header h1, .page-header h2 { font-size: 1.5rem; font-weight: 700; }

/* Avatar */
.avatar {
  width: 24px; height: 24px; border-radius: 3px;
  vertical-align: middle; margin-right: 8px;
  image-rendering: pixelated;
}
.player-head { width: 80px; height: 80px; border-radius: 6px; image-rendering: pixelated; }

/* Teams */
.team-red { color: var(--red); }
.team-blue { color: var(--blue); }

/* Match header */
.match-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.match-score { display: flex; align-items: center; justify-content: center; gap: 3rem; }
.score-side { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.score-side small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.map-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.match-winner { color: var(--muted); margin-bottom: 0.25rem; }
.match-date { color: var(--muted); font-size: 0.85rem; }

/* Top stats */
.top-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.top-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-stat-icon { font-size: 1.6rem; line-height: 1; }
.top-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.3rem; font-weight: 600; }
.top-stat-player { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; display: flex; align-items: center; }
.top-stat-value { font-size: 0.82rem; color: var(--gold); font-weight: 600; }

/* Teams layout */
.teams { display: flex; flex-direction: column; gap: 1rem; }
.team-title { padding: 0.9rem 1rem; font-size: 1rem; font-weight: 700; background: var(--surface2); display: flex; align-items: center; gap: 0.75rem; }
.avg-elo { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.winner-badge { background: var(--gold); color: #000; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; margin-left: auto; text-transform: uppercase; letter-spacing: 0.05em; }

/* ELO colors */
.elo-gain { color: var(--green); }
.elo-loss { color: var(--red); }

/* Player page */
.player-header { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; }
.player-header > .player-head { flex-shrink: 0; align-self: center; }
.player-info { flex: 1; }
.player-info h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.player-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.player-elo-block { text-align: right; flex-shrink: 0; align-self: flex-start; }
.player-elo { font-size: 1.1rem; color: var(--gold); font-weight: 600; }

/* Not found */
.not-found { text-align: center; padding: 4rem; }
.not-found h2 { margin-bottom: 1rem; color: var(--muted); }

/* Rank badges */
.rank-badge { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid; border-radius: 5px; font-weight: 700; white-space: nowrap; }
.badge-sm { font-size: 0.72rem; padding: 0.15rem 0.5rem; }
.badge-lg { font-size: 1rem; padding: 0.4rem 0.9rem; border-radius: 8px; }
.badge-icon { font-size: 0.9em; }

/* Rank grid page */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.rank-card { border: 1px solid; border-radius: 12px; padding: 1.5rem 1rem; text-align: center; }
.rank-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.rank-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.rank-card-range { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.rank-card-players { font-size: 0.8rem; color: var(--muted); }

/* Match cards */
.match-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.match-card { border-radius: 10px; padding: 1rem 0.75rem; text-align: center; border: 1px solid var(--border); }
.match-win { background: rgba(76,175,125,0.08); border-color: rgba(76,175,125,0.3); }
.match-loss { background: rgba(224,85,85,0.08); border-color: rgba(224,85,85,0.3); }
.match-card-result { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.match-win .match-card-result { color: var(--green); }
.match-loss .match-card-result { color: var(--red); }
.match-card-map { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card-kd { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.match-card-elo { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.match-card-time { font-size: 0.7rem; color: var(--muted); }

/* Profile grid */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.section-title { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.stat-section { padding: 1.25rem; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--muted); }
.stat-row-value { font-weight: 600; }

/* Owner badge */
.owner-badge-lg { color: #f87171 !important; background: rgba(224,85,85,0.12) !important; border-color: rgba(224,85,85,0.5) !important; }

/* Special achievement badges */
.badge-beta-winner {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(251,191,36,0.08) 100%);
  box-shadow: 0 0 10px rgba(251,191,36,0.2), inset 0 1px 0 rgba(251,191,36,0.1);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.badge-beta-winner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(251,191,36,0.08) 50%, transparent 100%);
  animation: shimmer 2.5s infinite;
}
.badge-beta-top10 {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #818cf8;
  color: #a5b4fc;
  background: linear-gradient(135deg, rgba(129,140,248,0.15) 0%, rgba(99,102,241,0.08) 100%);
  box-shadow: 0 0 10px rgba(129,140,248,0.15), inset 0 1px 0 rgba(165,180,252,0.1);
  text-transform: uppercase;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.player-rank-pos { font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.25rem; display: block; }
.player-head-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 0 0.5rem; }
.pg-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.85rem; font-weight: 500; padding: 0.4rem 1rem; cursor: pointer; transition: border-color 0.15s; }
.pg-btn:hover:not(:disabled) { border-color: var(--accent); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-info { font-size: 0.82rem; color: var(--muted); min-width: 140px; text-align: center; }

/* Rules page */
.rules-card { padding: 2rem; line-height: 1.75; font-size: 0.95rem; }
.rules-h1 { font-size: 1.6rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: var(--gold); }
.rules-h2 { font-size: 1.2rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.rules-h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 0.35rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rules-p { margin: 0.35rem 0; }
.rules-li, .rules-oli { margin: 0.25rem 0 0.25rem 1.5rem; list-style: disc; }
.rules-oli { list-style: decimal; }

.edit-rules-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.85rem; font-weight: 600; padding: 0.4rem 1rem; cursor: pointer; transition: border-color 0.15s; }
.edit-rules-btn:hover { border-color: var(--accent); }

.rules-toolbar { margin-bottom: 0.5rem; }
.toolbar-hint { font-size: 0.78rem; color: var(--muted); }
.rules-textarea { width: 100%; min-height: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: 'Inter', monospace; font-size: 0.9rem; line-height: 1.7; padding: 1.25rem; resize: vertical; outline: none; transition: border-color 0.15s; }
.rules-textarea:focus { border-color: var(--accent); }
.rules-editor-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 0.75rem; }

/* Rule posts */
.rule-post { padding: 1.5rem; margin-bottom: 1.25rem; }
.rule-post-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.rule-post-head { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; flex-shrink: 0; }
.rule-post-meta { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.rule-post-author { font-weight: 700; font-size: 0.95rem; color: var(--text); text-decoration: none; }
.rule-post-author:hover { color: var(--gold); text-decoration: none; }
.rule-post-owner { color: var(--red) !important; }
.rule-post-owner:hover { color: #ff8080 !important; }
.rule-owner-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); background: rgba(224,85,85,0.12); border: 1px solid rgba(224,85,85,0.35); border-radius: 4px; padding: 0.1rem 0.4rem; }
.rule-post-date { font-size: 0.78rem; color: var(--muted); }
.rule-post-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.rule-post-body { line-height: 1.75; font-size: 0.95rem; }

/* Theme toggle */
.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  display: block;
}
.mobile-menu a:hover { background: var(--surface2); text-decoration: none; }

@media (max-width: 700px) {
  .match-score { gap: 1.5rem; }
  .score-side { font-size: 1.8rem; }
  .player-header { flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  main { padding: 1rem; }
  .hero { padding: 2.5rem 1rem 2rem; margin-bottom: 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-stats-grid { flex-direction: column; align-items: center; }
  .hero-stat-card { width: 100%; max-width: 300px; padding: 1.1rem 1.5rem; }

  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .match-cards { grid-template-columns: repeat(2, 1fr); }
  .top-stats { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { gap: 0.75rem; }
  .staff-card { flex: 0 0 calc(50% - 0.375rem); }
  table { font-size: 0.82rem; }
  th, td { padding: 0.6rem 0.6rem; }
}

/* ── Lobby ────────────────────────────────────────────────────────────────── */
.lby-header { display:flex; align-items:center; justify-content:space-between; padding:1.25rem 1.5rem; border-bottom:1px solid var(--border); margin-bottom:1.5rem; }
.lby-header-left { display:flex; align-items:center; gap:.75rem; }
.lby-icon { font-size:1.5rem; }
.lby-title { font-size:1.1rem; font-weight:700; color:var(--text); }
.lby-id { color:var(--accent2); font-family:monospace; }
.lby-state-badge { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; padding:.35rem .8rem; border-radius:20px; background:var(--surface2); border:1px solid var(--border); color:var(--muted); }
.lby-loading { display:flex; align-items:center; gap:1rem; justify-content:center; padding:4rem; color:var(--muted); }
.lby-msg { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; padding:4rem 2rem; text-align:center; }
.lby-msg h2 { font-size:1.5rem; font-weight:700; margin-top:.5rem; }
.lby-map-chosen { font-size:1.2rem; font-weight:700; color:var(--gold); background:rgba(240,180,41,.1); border:1px solid rgba(240,180,41,.25); border-radius:10px; padding:.6rem 1.4rem; margin-top:.5rem; }

/* Check-in */
.lby-checkin { max-width:540px; margin:0 auto; padding:1.5rem; }
.lby-checkin-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.25rem; }
.lby-checkin-header h2 { font-size:1.3rem; font-weight:700; }
.lby-timer-wrap { display:flex; align-items:baseline; gap:.25rem; }
.lby-timer-num { font-size:2rem; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text); transition:color .3s; }
.lby-timer-num.urgent { color:var(--red); animation:lby-pulse 1s infinite; }
@keyframes lby-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.lby-timer-label { font-size:.85rem; color:var(--muted); font-weight:600; }
.lby-checkin-progress { height:4px; background:var(--surface2); border-radius:2px; margin-bottom:.75rem; overflow:hidden; }
.lby-progress-bar { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent2)); border-radius:2px; transition:width .4s ease; }
.lby-checkin-count { font-size:.85rem; color:var(--muted); margin-bottom:1rem; text-align:center; }
.lby-checkin-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.5rem; margin-bottom:1.25rem; }
.lby-checkin-player { display:flex; align-items:center; gap:.6rem; padding:.55rem .75rem; border-radius:8px; background:var(--surface2); border:1px solid var(--border); transition:border-color .2s; }
.lby-checkin-player.is-accepted { border-color:var(--green); background:rgba(76,175,125,.08); }
.lby-mini-head { width:28px; height:28px; border-radius:4px; image-rendering:pixelated; flex-shrink:0; }
.lby-checkin-name { flex:1; font-size:.85rem; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lby-checkin-icon { font-size:.75rem; color:var(--green); font-weight:700; }
.lby-btn-accept { width:100%; padding:.85rem; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border:none; border-radius:10px; font-size:1rem; font-weight:700; cursor:pointer; transition:opacity .15s,transform .1s; }
.lby-btn-accept:hover { opacity:.9; transform:translateY(-1px); }
.lby-waiting { text-align:center; color:var(--muted); font-size:.9rem; padding:.75rem; }

/* Picking */
.lby-pick-wrap { display:grid; grid-template-columns:220px 1fr 220px; gap:1.25rem; padding:1.25rem; min-height:500px; }
.lby-team-col { display:flex; flex-direction:column; gap:.5rem; }
.lby-team-header { padding:.6rem 1rem; border-radius:8px; font-weight:800; font-size:.9rem; text-transform:uppercase; letter-spacing:.06em; text-align:center; }
.lby-team-header.red { background:rgba(224,85,85,.15); color:var(--red); border:1px solid rgba(224,85,85,.3); }
.lby-team-header.blue { background:rgba(74,144,217,.15); color:var(--blue); border:1px solid rgba(74,144,217,.3); }
.lby-team-empty { padding:1rem; text-align:center; color:var(--muted); font-size:.8rem; border:1px dashed var(--border); border-radius:8px; }
.lby-player-card { display:flex; align-items:center; gap:.6rem; padding:.55rem .7rem; border-radius:8px; background:var(--surface2); border:1px solid var(--border); }
.lby-player-card.red { border-left:3px solid var(--red); }
.lby-player-card.blue { border-left:3px solid var(--blue); }
.lby-head { width:36px; height:36px; border-radius:5px; image-rendering:pixelated; flex-shrink:0; }
.lby-player-info { display:flex; flex-direction:column; gap:.1rem; min-width:0; }
.lby-player-name { font-size:.85rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lby-elo { font-size:.72rem; color:var(--muted); font-weight:500; }
.lby-cap-badge { margin-left:.4rem; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; background:rgba(240,180,41,.15); color:var(--gold); border:1px solid rgba(240,180,41,.3); border-radius:4px; padding:.05rem .3rem; vertical-align:middle; }
.lby-pick-center { display:flex; flex-direction:column; gap:.75rem; align-items:center; }
.lby-turn-indicator { font-size:1.1rem; font-weight:800; text-align:center; padding:.6rem 1.2rem; border-radius:10px; width:100%; }
.lby-turn-indicator.red { background:rgba(224,85,85,.15); color:var(--red); }
.lby-turn-indicator.blue { background:rgba(74,144,217,.15); color:var(--blue); }
.lby-pool-label { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); align-self:flex-start; width:100%; }
.lby-available-grid { display:flex; flex-direction:column; gap:.4rem; width:100%; }
.lby-avail-card { display:flex; align-items:center; gap:.7rem; padding:.6rem .8rem; border-radius:8px; background:var(--surface2); border:1px solid var(--border); transition:border-color .15s,background .15s,transform .1s; }
.lby-avail-card.clickable { cursor:pointer; }
.lby-avail-card.clickable:hover { border-color:var(--accent); background:rgba(108,79,214,.08); transform:translateX(2px); }
.lby-avail-info { display:flex; flex-direction:column; gap:.1rem; flex:1; min-width:0; }
.lby-pick-arrow { color:var(--accent2); font-size:1.2rem; font-weight:700; flex-shrink:0; }
.lby-btn-reroll { margin-top:.25rem; padding:.5rem 1rem; background:var(--surface2); border:1px solid var(--border); border-radius:8px; color:var(--muted); font-size:.82rem; font-weight:600; cursor:pointer; transition:border-color .15s,color .15s; width:100%; }
.lby-btn-reroll:hover { border-color:var(--accent); color:var(--text); }

/* Map veto */
.lby-veto-wrap { max-width:680px; margin:0 auto; padding:1.5rem; }
.lby-veto-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.lby-veto-header h2 { font-size:1.3rem; font-weight:700; }
.lby-veto-turn { font-size:.88rem; font-weight:600; padding:.4rem .9rem; border-radius:6px; margin-bottom:1.25rem; }
.lby-veto-turn.red { background:rgba(224,85,85,.1); color:var(--red); }
.lby-veto-turn.blue { background:rgba(74,144,217,.1); color:var(--blue); }
.lby-map-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; }
.lby-map-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:1.25rem .75rem; border-radius:10px; background:var(--surface2); border:2px solid var(--border); transition:border-color .15s,opacity .2s,transform .1s; min-height:90px; text-align:center; }
.lby-map-card.clickable { cursor:pointer; }
.lby-map-card.clickable:hover { border-color:var(--red); transform:translateY(-2px); }
.lby-map-card.banned { opacity:.35; background:var(--surface); border-style:dashed; }
.lby-map-card.chosen { border-color:var(--gold); background:rgba(240,180,41,.08); }
.lby-map-name { font-size:.9rem; font-weight:700; color:var(--text); }
.lby-ban-x { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:2.5rem; color:var(--red); opacity:.6; font-weight:900; pointer-events:none; }
.lby-chosen-badge { margin-top:.4rem; font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--gold); background:rgba(240,180,41,.15); border:1px solid rgba(240,180,41,.3); border-radius:4px; padding:.15rem .5rem; }

@media (max-width:700px) {
  .lby-pick-wrap { grid-template-columns:1fr; }
  .lby-map-grid { grid-template-columns:repeat(2,1fr); }
  .lby-checkin-grid { grid-template-columns:1fr; }
}

/* ===== v2 REDESIGN ===== */

/* Nav live badge */
.nav-live-badge {
  align-items: center;
  gap: 0.4rem;
  background: rgba(76,175,125,0.12);
  border: 1px solid rgba(76,175,125,0.3);
  border-radius: 20px;
  padding: 0.28rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4caf7d;
  letter-spacing: 0.04em;
  white-space: nowrap;
  user-select: none;
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  background: #4caf7d;
  border-radius: 50%;
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Hero v2 — 2-column layout */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 1rem;
  margin-bottom: 0;
  text-align: left;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(108,79,214,0.45) 0%, rgba(108,79,214,0.1) 50%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(74,144,217,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(224,85,85,0.1) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.hero-art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(108,79,214,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-art-particles { position: absolute; inset: 0; pointer-events: none; }
.hap {
  position: absolute;
  border-radius: 50%;
  animation: hap-float linear infinite;
}
.hap-1 { width:6px; height:6px; background:#6c4fd6; left:20%; top:30%; animation-duration:8s; animation-delay:0s; opacity:0.5; }
.hap-2 { width:4px; height:4px; background:#4a90d9; left:70%; top:60%; animation-duration:6s; animation-delay:-2s; opacity:0.5; }
.hap-3 { width:8px; height:8px; background:#6c4fd6; left:50%; top:20%; animation-duration:10s; animation-delay:-4s; opacity:0.25; }
.hap-4 { width:3px; height:3px; background:#e05555; left:80%; top:25%; animation-duration:7s; animation-delay:-1s; opacity:0.5; }
.hap-5 { width:5px; height:5px; background:#4caf7d; left:35%; top:75%; animation-duration:9s; animation-delay:-3s; opacity:0.35; }
@keyframes hap-float {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-18px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* Hero text */
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 0;
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 0;
}
.hero-m { color: var(--accent2); }
.hero-sword { display: none; }
.hero-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0;
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 460px;
  margin: 0;
}

/* CTA buttons */
.hero-cta-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.72rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(108,79,214,0.35);
}
.btn-primary:hover { background: var(--accent2); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,79,214,0.5); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.72rem 1.4rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--text); text-decoration: none; transform: translateY(-1px); background: rgba(108,79,214,0.06); }

/* Hero IP box v2 */
.hero-ip-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-ip-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 0;
}
.hero-ip-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  max-width: 270px;
}
.hero-ip {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
  flex: 1;
}
.hero-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
  font-size: 0;
}
.hero-copy:hover { color: var(--accent2); opacity: 1; }

/* Stats row */
.home-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.home-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, transform 0.15s;
}
.home-stat-card:hover { transform: translateY(-2px); }
.home-stat-icon { line-height: 0; }
.home-stat-val { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; }
.home-stat-label { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.07em; color: var(--muted); text-transform: uppercase; line-height: 1.45; }

/* Season section */
.season-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.season-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.season-title { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.3rem; }
.season-title span { color: var(--accent2); }
.season-ends { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.75rem; }
.season-progress-wrap { max-width: 560px; margin: 0 auto; }
.season-progress-labels { display: flex; justify-content: space-between; margin-bottom: 0.65rem; gap: 0.5rem; }
.season-rank-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--text); flex-wrap: wrap; }
.season-rank-elo { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.season-progress-bar { width: 100%; height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.season-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; }
.season-progress-info { font-size: 0.78rem; color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; padding: 2rem 0 0.5rem; }
  .hero-right { display: none; }
  .hero-left { align-items: center; }
  .hero-desc { text-align: center; }
}
@media (max-width: 700px) {
  .home-stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .home-stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* ── Hero art scene ──────────────────────────────────────────────────────── */
.hero-art-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.hero-char-img {
  position: relative;
  z-index: 4;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px rgba(142, 68, 173, 0.7)) drop-shadow(0 0 60px rgba(142, 68, 173, 0.3));
  animation: char-float 3.5s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes char-float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

.hero-char-shadow {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: rgba(100, 40, 160, 0.55);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 2;
  animation: shadow-pulse 3.5s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%,100% { transform: translateX(-50%) scaleX(1);   opacity: .55; }
  50%      { transform: translateX(-50%) scaleX(.7);  opacity: .3;  }
}

/* Wool block — sits at bottom-right of character */
.hero-wool-wrap {
  position: absolute;
  bottom: 2.4rem;
  right: calc(50% - 118px);
  z-index: 5;
  animation: wool-float 3.5s ease-in-out infinite;
  animation-delay: -0.4s;
  filter: drop-shadow(0 6px 18px rgba(231,76,60,0.55));
}
@keyframes wool-float {
  0%,100% { transform: translateY(0px) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
.hero-wool-svg {
  width: 72px;
  height: auto;
  transform: scaleY(1.35);
}

/* Ground ring */
.hero-ground-ring {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(142,68,173,0.35);
  box-shadow: 0 0 24px rgba(142,68,173,0.2), inset 0 0 16px rgba(142,68,173,0.1);
  z-index: 1;
}

/* Sparkle dots */
.hero-sparkle {
  position: absolute;
  border-radius: 50%;
  z-index: 6;
  animation: sparkle-pop 2s ease-in-out infinite;
}
.sp-1 { width:6px; height:6px; background:#e74c3c; top:22%; right:28%; animation-delay:0s; }
.sp-2 { width:4px; height:4px; background:#f0b429; top:15%; left:30%; animation-delay:.7s; }
.sp-3 { width:5px; height:5px; background:#9b59b6; top:40%; left:22%; animation-delay:1.2s; }
.sp-4 { width:3px; height:3px; background:#3498db; top:55%; right:22%; animation-delay:1.8s; }
@keyframes sparkle-pop {
  0%,100% { transform: scale(0); opacity:0; }
  40%,60%  { transform: scale(1); opacity:1; }
}

/* Wool floating particles */
.wool-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #e74c3c;
  opacity: 0;
  z-index: 3;
  animation: wp-drift 4s ease-in-out infinite;
}
.wp-1 { right: 30%; top: 30%; animation-delay: 0s;   background: #e74c3c; }
.wp-2 { right: 20%; top: 50%; animation-delay: 1.3s; background: #c0392b; width:7px; height:7px; }
.wp-3 { right: 35%; top: 65%; animation-delay: 2.6s; background: #e74c3c; width:5px; height:5px; }
@keyframes wp-drift {
  0%   { opacity:0; transform: translateY(0) rotate(0deg); }
  20%  { opacity:.7; }
  80%  { opacity:.4; }
  100% { opacity:0; transform: translateY(-40px) rotate(45deg); }
}

/* Mode tabs */
.mode-tabs { display:flex; gap:0.25rem; background:var(--surface2); border-radius:8px; padding:3px; }
.mode-tab { padding:0.3rem 0.85rem; border-radius:6px; font-size:0.8rem; font-weight:700; color:var(--muted); text-decoration:none; transition:background 0.15s, color 0.15s; }
.mode-tab:hover { color:var(--text); }
.mode-tab-active { background:var(--surface3,var(--surface)); color:var(--accent) !important; }

/* Profile mode switcher buttons */
.profile-mode-btn { display:inline-flex; align-items:center; padding:0.3rem 0.85rem; border-radius:6px; font-size:0.78rem; font-weight:700; background:var(--surface2); border:1px solid var(--border); color:var(--muted); cursor:pointer; transition:all 0.15s; letter-spacing:0.03em; }
.profile-mode-btn:hover { color:var(--text); border-color:var(--accent); }
.profile-mode-btn.profile-mode-active { background:rgba(224,85,85,0.12); border-color:var(--accent); color:var(--accent); }

