:root {
  --bg: #070302;
  --bg-2: #120604;
  --panel: rgba(20, 8, 5, 0.74);
  --panel-2: rgba(255, 117, 18, 0.08);
  --line: rgba(255, 155, 45, 0.22);
  --line-strong: rgba(255, 180, 64, 0.5);
  --text: #fff8df;
  --muted: #d8b98c;
  --gold: #ffd36a;
  --orange: #ff7b18;
  --red: #d51f08;
  --green: #66ffae;
  --danger: #ff5b4a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 107, 16, 0.16), transparent 26rem),
    radial-gradient(circle at 12% 10%, rgba(255, 212, 99, 0.16), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(196, 20, 5, 0.22), transparent 30rem),
    linear-gradient(135deg, #040100, #140604 54%, #050100);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 132, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 132, 32, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  animation: gridDrift 18s linear infinite;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 117, 18, 0.08) 45%, transparent 55%),
    linear-gradient(20deg, transparent, rgba(255, 215, 92, 0.05), transparent);
  mix-blend-mode: screen;
  animation: backgroundSweep 10s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

#void-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.cursor-glow {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  width: 26rem;
  height: 26rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 123, 24, 0.22), transparent 62%);
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 2, 1, 0.9), rgba(6, 2, 1, 0.56));
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 123, 24, 0.55));
  animation: miniLogoPulse 2.8s ease-in-out infinite;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  position: relative;
  padding: 11px 13px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, border 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: rgba(255, 150, 44, 0.32);
  background: rgba(255, 123, 24, 0.11);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: rgba(255, 123, 24, 0.12);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
}

main {
  min-height: calc(100vh - 180px);
}

.hero {
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 18px rgba(255, 123, 24, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(3rem, 6.4vw, 6.55rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(255, 92, 12, 0.26);
}

.title-word {
  display: inline-block;
  padding: 0.04em 0.06em 0.1em;
  margin: -0.04em -0.06em -0.1em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff7c8 0%, var(--gold) 42%, #ff8c21 72%, #9b1205 100%);
  background-size: 100% 135%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 123, 24, 0.45));
  animation: titleFlicker 4.8s ease-in-out infinite;
}

.title-word:nth-child(2) {
  animation-delay: 0.35s;
}

.hero-copy {
  min-width: 0;
  overflow: visible;
}

.hero-copy p {
  max-width: 660px;
  color: #f0d3a5;
  font-size: 1.12rem;
  line-height: 1.72;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 198, 85, 0.34);
  background: rgba(255, 123, 24, 0.1);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 211, 106, 0.7);
  box-shadow: 0 20px 48px rgba(255, 92, 12, 0.18);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ffb33c, #ff7116 45%, #b41608);
  color: #1d0702;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.logo-orbit {
  position: relative;
  width: min(460px, 92vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 64, 0.3);
  box-shadow: inset 0 0 48px rgba(255, 92, 12, 0.14), 0 0 54px rgba(255, 92, 12, 0.2);
  animation: ringSpin 13s linear infinite;
}

.logo-orbit::after {
  inset: 15%;
  border-style: dashed;
  animation-duration: 8s;
  animation-direction: reverse;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 88%;
  filter: drop-shadow(0 38px 60px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 28px rgba(255, 109, 18, 0.52));
  transform-style: preserve-3d;
  animation: logoSpin3d 7.5s ease-in-out infinite;
}

.fire-card {
  position: absolute;
  width: 145px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 5, 3, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: hoverChip 4s ease-in-out infinite;
}

.fire-card b {
  display: block;
  color: var(--gold);
  font-size: 1.7rem;
}

.fire-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
}

.fire-card.one {
  right: 0;
  top: 18%;
}

.fire-card.two {
  left: 1%;
  bottom: 17%;
  animation-delay: -1.4s;
}

.section {
  padding: 58px 0;
}

.section.tight {
  padding-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1 {
  margin-bottom: 8px;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.page-hero {
  padding: 76px 0 26px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 123, 24, 0.14), rgba(255, 255, 255, 0.02) 35%, rgba(20, 7, 4, 0.78)),
    rgba(12, 4, 3, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 210, 106, 0.18), transparent 22rem);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 32px 80px rgba(255, 82, 8, 0.13);
}

.card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.kpi {
  padding: 24px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi b {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.kpi small {
  color: #f3c691;
  font-weight: 750;
}

.player-card {
  min-height: 360px;
}


.roster-lines {
  display: grid;
  gap: 42px;
}

.member-line {
  position: relative;
  padding: 20px;
  border-radius: 34px;
  border: 1px solid rgba(255, 180, 64, 0.12);
  background: linear-gradient(135deg, rgba(255, 123, 24, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 0 60px rgba(255, 92, 12, 0.045);
}

.member-line-head {
  margin-bottom: 18px;
}

.line-count {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 64, 0.22);
  color: var(--gold);
  background: rgba(255, 123, 24, 0.08);
  font-weight: 950;
  font-size: 0.82rem;
}

.member-grid {
  align-items: stretch;
}

.member-role {
  color: #f3c691;
  font-weight: 900;
  margin-top: 4px;
}

.member-creator .avatar,
.member-caster .avatar,
.member-coach .avatar {
  border-radius: 999px;
}

.member-creator .avatar {
  background: linear-gradient(135deg, #ffd36a, #ff7b18 52%, #361003);
}

.member-caster .avatar {
  background: linear-gradient(135deg, #ffe5a3, #ff9b2f 48%, #5b1104);
}

.member-coach .avatar {
  background: linear-gradient(135deg, #fff1bd, #c94e12 46%, #260906);
}


.player-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 26px;
  border: 1px solid rgba(255, 199, 85, 0.35);
  background: linear-gradient(135deg, rgba(255, 211, 106, 0.9), rgba(255, 111, 15, 0.88) 46%, rgba(95, 8, 2, 0.9));
  display: grid;
  place-items: center;
  color: #1c0602;
  font-weight: 1000;
  font-size: 1.45rem;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255, 123, 24, 0.28);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-number {
  position: absolute;
  right: 20px;
  top: 14px;
  color: rgba(255, 211, 106, 0.2);
  font-size: 4rem;
  font-weight: 1000;
  line-height: 1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 180, 64, 0.24);
  border-radius: 999px;
  background: rgba(255, 123, 24, 0.08);
  color: #ffdca1;
  font-weight: 850;
  font-size: 0.78rem;
}

.bio {
  color: var(--muted);
  line-height: 1.62;
}

.player-stats,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat-mini {
  padding: 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 180, 64, 0.18);
}

.stat-mini b {
  display: block;
  color: var(--gold);
  font-size: 1.24rem;
}

.stat-mini span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.match-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.date-box {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 123, 24, 0.12);
  border: 1px solid rgba(255, 180, 64, 0.28);
}

.date-box b {
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1;
}

.date-box span {
  display: block;
  color: var(--muted);
  font-weight: 950;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.match-title {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid rgba(255, 180, 64, 0.32);
  background: rgba(255, 123, 24, 0.1);
  white-space: nowrap;
}

.status.ganado,
.status.win {
  color: var(--green);
  border-color: rgba(102, 255, 174, 0.35);
  background: rgba(102, 255, 174, 0.08);
}

.status.perdido,
.status.loss {
  color: var(--danger);
  border-color: rgba(255, 91, 74, 0.35);
  background: rgba(255, 91, 74, 0.08);
}

.clip-card iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #000;
}

.clip-fallback {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 123, 24, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 211, 106, 0.08), rgba(255, 56, 15, 0.12));
}

.clip-platform {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.progress-wrap {
  display: grid;
  gap: 18px;
}

.progress-line {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 180, 64, 0.18);
}

.progress-line span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold));
  box-shadow: 0 0 24px rgba(255, 123, 24, 0.48);
  animation: growBar 1.2s ease both;
}

.tournament-card h3,
.sponsor-card h3 {
  margin-bottom: 10px;
}

.tournament-grid-info,
.sponsor-grid-info {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 180, 64, 0.12);
  color: var(--muted);
}

.info-line b {
  color: var(--text);
  text-align: right;
}

.sponsor-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 123, 24, 0.12);
  border: 1px solid rgba(255, 180, 64, 0.25);
  color: var(--gold);
  font-size: 1.7rem;
  font-weight: 1000;
}

.empty-state {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 180, 64, 0.28);
  background: rgba(255, 123, 24, 0.06);
  color: var(--muted);
  text-align: center;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 3, 2, 0.8);
  box-shadow: var(--shadow);
}

.login-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px;
  background: radial-gradient(circle, rgba(255, 123, 24, 0.25), transparent 64%);
  min-height: 540px;
}

.login-art img {
  width: min(360px, 90%);
  filter: drop-shadow(0 0 32px rgba(255, 123, 24, 0.55));
  animation: logoFloat 4s ease-in-out infinite;
}

.login-panel {
  padding: 44px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 180, 64, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 211, 106, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 123, 24, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.form-message {
  margin-top: 14px;
  min-height: 24px;
  color: var(--gold);
  font-weight: 850;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(5, 2, 1, 0.72);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  color: var(--muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-row a {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 64, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.tilt-card {
  transform-style: preserve-3d;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(7, 2, 1, 0.86);
  backdrop-filter: blur(16px);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 123, 24, 0.45));
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.admin-menu button.active,
.admin-menu button:hover {
  color: var(--text);
  background: rgba(255, 123, 24, 0.11);
  border-color: rgba(255, 180, 64, 0.23);
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-card {
  padding: 18px;
  margin-bottom: 16px;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-fields .wide {
  grid-column: 1 / -1;
}

.item-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-actions {
  position: sticky;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 3, 2, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(14, 5, 3, 0.92);
  border: 1px solid rgba(255, 180, 64, 0.32);
  box-shadow: var(--shadow);
  color: var(--gold);
  font-weight: 900;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes gridDrift {
  to { background-position: 64px 64px; }
}

@keyframes backgroundSweep {
  0%, 100% { opacity: 0.42; transform: translateX(-2%); }
  50% { opacity: 0.86; transform: translateX(2%); }
}

@keyframes miniLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(255, 123, 24, 0.35)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(255, 211, 106, 0.55)); }
}

@keyframes titleFlicker {
  0%, 100% { opacity: 0.94; transform: translateY(0); }
  8% { opacity: 1; filter: drop-shadow(0 0 28px rgba(255, 211, 106, 0.62)); }
  12% { opacity: 0.75; }
  16% { opacity: 1; }
  50% { transform: translateY(-4px); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1.4deg); }
}

@keyframes logoSpin3d {
  0%, 100% { transform: rotateY(-10deg) rotateX(0deg) scale(1); }
  35% { transform: rotateY(18deg) rotateX(4deg) scale(1.03); }
  70% { transform: rotateY(-22deg) rotateX(-2deg) scale(0.99); }
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

@keyframes hoverChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes growBar {
  from { width: 0; }
}

@media (max-width: 1200px) {
  h1 {
    font-size: clamp(2.75rem, 6vw, 5.7rem);
    letter-spacing: -0.025em;
  }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 3, 2, 0.95);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-grid,
  .login-shell,
  .admin-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  h1 {
    font-size: clamp(2.55rem, 15vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
  }
  .hero { padding-top: 54px; }
  .hero-grid { gap: 18px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .admin-fields { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 1fr; }
  .date-box { width: 100%; height: auto; padding: 18px; }
  .player-stats,
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fire-card { display: none; }
  .section-head,
  .footer-grid,
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .member-line { padding: 14px; border-radius: 24px; }
  .line-count { white-space: normal; }
  .login-panel { padding: 26px; }
  .login-art { min-height: 260px; padding: 26px; }
  .clip-card iframe { min-height: 420px; }
}

.avatar-uploader {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 180, 64, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.avatar-uploader img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 199, 85, 0.35);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 24px rgba(255, 123, 24, 0.22);
}

.avatar-upload-controls {
  display: grid;
  gap: 9px;
}

.avatar-upload-controls span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.avatar-upload-controls input[type="file"] {
  cursor: pointer;
  padding: 12px;
  border: 1px dashed rgba(255, 180, 64, 0.34);
  border-radius: 14px;
  background: rgba(255, 123, 24, 0.07);
  color: var(--text);
}

@media (max-width: 640px) {
  .avatar-uploader {
    grid-template-columns: 1fr;
  }
}
