:root {
  --neon-cyan: #36c9ff;
  --neon-magenta: #ff2dbf;
  --neon-purple: #8b5bff;
  --accent: var(--neon-cyan);
  --accent-2: var(--neon-magenta);
  --accent-3: var(--neon-purple);
  --bg: #eef7ff;
  --bg-strong: #fff2fb;
  --ink: #0e1322;
  --muted: #4e5e75;
  --card: #ffffff;
  --border: rgba(14, 19, 34, 0.12);
  --shadow: 0 18px 45px rgba(10, 15, 30, 0.18);
  --neon-glow: 0 0 18px rgba(54, 201, 255, 0.55), 0 0 26px rgba(255, 45, 191, 0.45);
  --neon-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  color-scheme: light;
}

:root[data-theme="dark"],
body[data-theme="dark"],
body.theme-dark {
  --bg: #0a1526;
  --bg-strong: #0f1f38;
  --ink: #eaf1ff;
  --muted: #93a7c7;
  --card: #0f1f38;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Questrial", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Questrial", sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

button {
  font-family: inherit;
}

.site {
  background:
    radial-gradient(circle at 12% 12%, rgba(54, 201, 255, 0.28), transparent 45%),
    radial-gradient(circle at 86% 18%, rgba(255, 45, 191, 0.24), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(139, 91, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 100%);
  min-height: 100vh;
}

:root[data-theme="dark"] .site {
  background:
    radial-gradient(circle at 15% 15%, rgba(54, 201, 255, 0.25), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(255, 45, 191, 0.22), transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(139, 91, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #0b162a 0%, var(--bg) 100%);
}

.site-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: var(--neon-gradient);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--neon-glow);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand__mark--logo {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.brand__mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-weight: 700;
  color: var(--ink);
}

.brand__tagline {
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: rgba(54, 201, 255, 0.12);
  color: var(--ink);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.neon {
  background: var(--neon-gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(54, 201, 255, 0.35), 0 12px 30px rgba(255, 45, 191, 0.25);
}

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

.btn.ghost {
  border-color: var(--border);
  background: var(--card);
  color: var(--ink);
}

.btn.ghost:hover {
  box-shadow: 0 12px 24px rgba(54, 201, 255, 0.12);
}

.theme-toggle {
  font-size: 0.9rem;
  padding: 10px 16px;
}

.theme-toggle--floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon svg {
  width: 22px;
  height: 22px;
}

.theme-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.theme-switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch__thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.theme-switch[aria-pressed="true"] .theme-switch__track {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.theme-switch[aria-pressed="true"] .theme-switch__thumb {
  transform: translateX(20px);
}

.theme-switch__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

:root[data-theme="dark"] .theme-switch__label {
  color: rgba(234, 241, 255, 0.8);
}

.announcement {
  background: linear-gradient(120deg, rgba(54, 201, 255, 0.2), rgba(255, 45, 191, 0.2));
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(90vw, 640px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  border-radius: 14px;
  z-index: 20;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__content {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner__content strong {
  color: var(--ink);
}

.cookie-banner__link {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  padding: 48px 0 24px;
}

.hero-slider-wrap {
  position: relative;
  min-height: 420px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-slide--fallback {
  background: linear-gradient(135deg, rgba(54, 201, 255, 0.35), rgba(255, 45, 191, 0.35));
}

.hero__content--overlay,
.hero-slide__content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  color: #fff;
  z-index: 2;
}

.hero-slide__content {
  justify-content: space-between;
  padding: 28px 32px 6px;
}

.hero-slide__content::before,
.hero-slide__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 96px;
  pointer-events: none;
  z-index: 0;
}

.hero-slide__content::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.hero-slide__content::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.hero-slide__content > * {
  position: relative;
  z-index: 1;
}

.hero-slide__content h1,
.hero-slide__content h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
  line-height: 1.05;
}

.hero-slide__content .hero__subtitle {
  max-width: 560px;
  font-size: 0.98rem;
}

.hero-slide__bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-slide__cta {
  margin-left: auto;
  font-size: 0.9rem;
  padding: 10px 18px;
}

.hero__content--overlay h1,
.hero__content--overlay p,
.hero__content--overlay .hero__subtitle,
.hero__content--overlay .hero__meta,
.hero-slide__content h1,
.hero-slide__content h2,
.hero-slide__content p,
.hero-slide__content .hero__subtitle {
  color: #fff;
}

.hero__content--overlay .hero__meta {
  color: rgba(255, 255, 255, 0.7);
}

.hero-slider__dots {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-slider__dots button.is-active {
  background: var(--accent-2);
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
}

.hero-slider__btn--prev {
  left: 16px;
}

.hero-slider__btn--next {
  right: 16px;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--ink);
}

.hero__subtitle {
  font-size: 1.15rem;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

.hero__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero__meta span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

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

.hero-card {
  background: var(--card);
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.hero-card--alt {
  background: linear-gradient(135deg, rgba(54, 201, 255, 0.16), rgba(255, 45, 191, 0.16));
  animation-delay: 1.2s;
}

.hero-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.hero-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.event-list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.hero-card .event-list {
  justify-items: center;
}

.hero-card .event-list li {
  width: 100%;
  max-width: 360px;
  text-align: center;
  justify-self: center;
  min-height: 132px;
}

.hero-card .event-list li {
  padding: 10px;
}

.event-list__item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-card .event-list__time,
.hero-card .event-list__title {
  display: block;
}

:root[data-theme="dark"] .event-list li {
  background: rgba(15, 31, 56, 0.8);
}

.event-list__time {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
}

.event-list__title {
  color: var(--ink);
  font-weight: 600;
}

.event-list__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.event-card__meta--postponed {
  color: var(--accent-2);
}

.event-list__cta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.page-hero {
  padding-top: 32px;
  max-width: 760px;
}

.page-hero + .section--about-body {
  padding-top: 0;
  margin-top: -8px;
}

.page-hero--events {
  padding-bottom: 8px;
}

.section--events-week {
  padding-top: 8px;
}

.page-body {
  max-width: 720px;
}

.page-hero--rules {
  max-width: 900px;
}

.rules-section {
  padding-top: 24px;
}

.rules-shell {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rules-nav {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 120px;
  align-self: start;
}

.rules-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
}

.rules-tabs {
  display: flex;
  gap: 8px;
}

.rules-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  font-size: 0.85rem;
}

.rules-tab.is-active {
  background: var(--neon-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--neon-glow);
}

.rules-links {
  display: grid;
  gap: 8px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}

.rules-links a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.rules-links a:hover {
  border-color: rgba(54, 201, 255, 0.5);
  color: var(--ink);
}

.rules-content {
  display: grid;
  gap: 18px;
}

.rules-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.rules-card h2 {
  margin-bottom: 0.6rem;
}

.rules-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.section {
  padding: 56px 0 24px;
}

.section--about-body {
  padding-top: 20px;
}

.section__intro {
  max-width: 680px;
}

.section__intro--stack {
  margin-top: 28px;
}

.section__intro--tight {
  margin-bottom: 0;
}

.lead {
  font-size: 1.12rem;
}

.feature-grid,
.event-grid,
.partner-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid article {
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.12);
}

.feature-grid .richtext {
  color: var(--muted);
}

.feature-grid .richtext p:last-child,
.feature-grid .richtext ul:last-child,
.feature-grid .richtext ol:last-child {
  margin-bottom: 0;
}

.event-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section--events-week .event-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: flex-start;
}

.event-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.event-row > * {
  scroll-snap-align: start;
}

.event-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(54, 201, 255, 0.18), rgba(255, 45, 191, 0.12));
  border: 1px solid var(--border);
  width: 100%;
  max-width: 280px;
}

.event-card__time {
  font-weight: 700;
  color: var(--accent-2);
}

.event-card__matchup {
  font-weight: 600;
  color: var(--ink);
}

.event-card__meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.event-card__poster {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 10px 0 12px;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.18);
  background: var(--bg-strong);
}

.event-card__poster img {
  width: 100%;
  height: auto;
  display: block;
}

.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.partner-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-card__title {
  font-weight: 700;
  color: var(--ink);
}

.partner-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.partner-card--empty {
  border-style: dashed;
  background: var(--bg-strong);
}

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
  justify-content: stretch;
}

@media (max-width: 1200px) {
  .streamer-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .streamer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .streamer-grid {
    grid-template-columns: 1fr;
  }
}

.streamer-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.streamer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(54, 201, 255, 0.18);
  border-color: rgba(54, 201, 255, 0.4);
}

.streamer-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streamer-card__media {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}

.streamer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.streamer-card__info {
  display: grid;
  gap: 6px;
  flex: 1;
}

.streamer-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.streamer-card__name {
  font-weight: 700;
  color: var(--ink);
}

.streamer-card__status {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 45, 191, 0.5);
    color: var(--accent-2);
    background: rgba(255, 45, 191, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.streamer-card--live {
  border-color: rgba(255, 64, 64, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 64, 64, 0.35), 0 0 24px rgba(255, 64, 64, 0.4), 0 16px 40px rgba(255, 0, 0, 0.22);
  padding-bottom: 54px;
}

.streamer-card--offline {
  padding-bottom: 54px;
  cursor: default;
}

.streamer-card--live .streamer-card__status {
  color: #fff;
  border-color: rgba(255, 64, 64, 0.8);
  background: rgba(255, 45, 45, 0.8);
  box-shadow: 0 0 10px rgba(255, 64, 64, 0.7);
}

.streamer-card__live-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ff2d2d;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 64, 64, 0.6), 0 0 14px rgba(255, 64, 64, 0.85);
  animation: livePulse 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.streamer-card__offline-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 160, 180, 0.22);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 2;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

.streamer-card__meta {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.streamer-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.streamer-card__stat--viewer::before {
    content: 'Viewers';
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-right: 4px;
    opacity: 0.75;
}

.streamer-card__platforms {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.streamer-card__platform-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.streamer-platforms {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-platforms__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-strong);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.streamer-platforms__icon svg {
  width: 18px;
  height: 18px;
}

.streamer-platforms__icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(54, 201, 255, 0.2);
}

.streamer-platforms__icon--live {
  border-color: rgba(68, 255, 152, 0.9);
  box-shadow:
    0 0 0 2px rgba(68, 255, 152, 0.7),
    0 0 16px rgba(68, 255, 152, 0.75),
    0 0 30px rgba(68, 255, 152, 0.45);
}


.streamer-card__platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.streamer-card__title {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 120px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.streamer-card__title-text {
  display: inline-block;
  padding-right: 24px;
}

.streamer-card--live .streamer-card__title-text {
  animation: streamerTitleMarquee 12s linear infinite;
}

@keyframes streamerTitleMarquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.streamer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.streamer-modal.is-open {
  display: flex;
}

.streamer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 25, 0.72);
}

.streamer-modal__card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  min-width: 280px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.streamer-modal__subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.streamer-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.streamer-modal__btn {
  justify-content: center;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.staff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.staff-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 6px;
  background: var(--bg-strong);
  border: 2px solid rgba(255, 45, 191, 0.6);
  box-shadow: var(--neon-glow);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
}

.staff-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-card__name {
  font-weight: 700;
  color: var(--ink);
}

.staff-card__role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
}

.staff-card__handle {
  font-size: 0.85rem;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.link-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(54, 201, 255, 0.2);
}

.link-card .richtext {
  color: var(--muted);
}

.link-card .richtext p:last-child,
.link-card .richtext ul:last-child,
.link-card .richtext ol:last-child {
  margin-bottom: 0;
}

.contact-card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: var(--muted);
}

.span-2 {
  grid-column: 1 / -1;
}

.site-footer {
  margin-top: 56px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__right {
  margin-left: auto;
  text-align: right;
}

.admin-footer {
  margin-top: auto;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-footer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-footer__right {
  margin-left: auto;
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.75);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 24px;
}

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

.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: min(90vw, 720px);
  width: 100%;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .modal__dialog {
  background: var(--card);
}

.modal__title {
  margin-bottom: 16px;
}

.modal__body img {
  width: 100%;
  border-radius: 12px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.modal-open {
  overflow: hidden;
}

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

/* Admin styles */
.admin {
  background: var(--bg);
  min-height: 100vh;
}

.admin-shell {
  min-height: 100vh;
  padding: 0;
}

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

.admin-sidebar {
  background: var(--bg-strong);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
}

.admin-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-brand__name {
  font-weight: 700;
  color: var(--ink);
}

.admin-brand__sub {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(54, 201, 255, 0.16);
  color: var(--ink);
  border-left-color: var(--accent-2);
}

.admin-sidebar__footer {
  margin-top: auto;
}

.admin-content {
  padding: 32px clamp(20px, 4vw, 40px) 64px;
}

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

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card {
  background: var(--card);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 520px;
  margin: 0 auto;
}

.admin-card__header {
  margin-bottom: 24px;
}

.admin-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px auto 24px;
  max-width: 720px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form--inline {
  grid-template-columns: minmax(220px, 1fr);
  align-items: end;
  margin-bottom: 16px;
}

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

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}

.form-hint {
  margin: -6px 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-hint a {
  color: var(--accent);
}

.admin-form--card {
  margin-top: 20px;
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  overflow: visible;
  min-height: 240px;
}

.admin-form__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-form__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.08);
}

.admin-panel {
  margin-top: 32px;
}

.admin-panel--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.admin-panel__column {
  display: grid;
  gap: 12px;
}

.admin-bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
  }

  .admin-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .admin-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }

  .admin-server-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
  }

  .admin-server-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
  }

  .admin-server-card--active {
    border-color: var(--accent);
    box-shadow: var(--shadow);
  }

  .admin-server-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    overflow: hidden;
  }

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

  .admin-server-card--tile {
    justify-items: center;
    text-align: center;
    padding: 20px 16px;
  }

  .admin-server-name {
    font-weight: 600;
  }

  .admin-server-avatar--invite {
    background: linear-gradient(135deg, rgba(54, 201, 255, 0.2), rgba(255, 45, 191, 0.2));
    border: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    font-weight: 700;
  }

  .admin-form--modal {
    max-width: none;
    width: 100%;
  }

  .admin-modal__dialog {
    max-width: min(96vw, 920px);
  }

  .admin-server-meta {
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .admin-server-meta__muted {
    color: var(--muted);
  }

  .admin-server-card--empty {
    text-align: center;
  }

.admin-bot-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-bot-card h3 {
  margin: 0;
}

.admin-bot-card--compact {
  gap: 10px;
}

.admin-bot-card--compact label {
  gap: 6px;
}

.admin-bot-card--compact input,
.admin-bot-card--compact select {
  padding: 8px 10px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.admin-settings-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-settings-card h3 {
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.admin-stat-card h2 {
  margin: 0 0 6px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

  .admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }

  .admin-perms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }

  .admin-perm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
  }

  .admin-perm input[type="checkbox"] {
    accent-color: var(--accent);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--muted);
  }

.admin-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-page-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(54, 201, 255, 0.2);
}

.admin-page-card--active {
  border-color: rgba(54, 201, 255, 0.5);
  box-shadow: 0 20px 45px rgba(54, 201, 255, 0.18);
}

.admin-page-card__slug {
  font-weight: 700;
  color: var(--ink);
}

.admin-page-card__title {
  color: var(--muted);
}

.admin-live-editor {
  display: grid;
  gap: 24px;
  align-items: start;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-tab.is-active {
  background: var(--neon-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--neon-glow);
}

.admin-rules-shell {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-rules-nav {
  background: var(--bg-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 120px;
}

.admin-rules-links {
  display: grid;
  gap: 8px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}

.admin-rules-links a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.admin-rules-links a:hover,
.admin-rules-links a.is-active {
  color: var(--ink);
  border-color: rgba(54, 201, 255, 0.6);
  box-shadow: 0 8px 20px rgba(54, 201, 255, 0.12);
}

.admin-rules-editor {
  display: grid;
  gap: 18px;
}

.admin-live-editor--full {
  grid-template-columns: 1fr;
}

.admin-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-live-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-live-preview {
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-live-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-strong);
}

.admin-live-preview iframe {
  width: 100%;
  height: 75vh;
  border: 0;
  background: #fff;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-toolbar button,
.admin-toolbar__upload {
  border: 1px solid var(--border);
  background: var(--bg-strong);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-toolbar button:hover,
.admin-toolbar__upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(54, 201, 255, 0.16);
}

.admin-toolbar__file {
  display: none;
}

.richtext img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.richtext {
  position: relative;
}

.admin .richtext {
  min-height: 200px;
}

.richtext .content-block {
  margin: 1rem 0;
}

.richtext .content-block__handle {
  display: none;
}

.richtext .content-block.is-floating {
  position: absolute;
  z-index: 2;
}

.richtext .content-box {
  margin: 1rem 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(54, 201, 255, 0.1);
}

:root[data-theme="dark"] .richtext .content-box {
  background: rgba(15, 31, 56, 0.7);
}

.richtext .content-box p:last-child {
  margin-bottom: 0;
}

.richtext .checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.richtext .checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.richtext .checklist li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.richtext h2,
.richtext h3 {
  margin-top: 1.2rem;
}

.richtext ul,
.richtext ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.richtext blockquote {
  margin: 1rem 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.richtext hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-login-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-login-actions .btn {
  min-width: 160px;
  justify-content: center;
}

.admin-login-form {
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.admin-log-search {
  gap: 8px;
  align-items: center;
}

.admin-log-search input[type="search"] {
  min-width: 220px;
}

.admin-log-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-log-row {
  display: grid;
  grid-template-columns: 160px 160px 140px 160px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-log-row--head {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.admin-log-meta {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-log-row {
    grid-template-columns: 1fr;
  }
  .admin-log-row--head {
    display: none;
  }
}

.admin-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 16px;
  margin-top: 16px;
  justify-content: start;
}

.admin-event-grid--compact {
  max-width: 980px;
  margin-left: 0;
  margin-right: auto;
}

.admin-event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-event-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-event-card__title {
  font-weight: 700;
  color: var(--ink);
}

.admin-event-card__meta {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-event-card__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.admin-event-card__badges {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.admin-event-card__desc {
  color: var(--muted);
}

.admin-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
}

.admin-event-card__actions .btn {
  min-width: 96px;
  height: 36px;
  justify-content: center;
}

.admin-event-card__actions .inline-form {
  display: inline-flex;
}

.btn-admin {
  border-radius: 6px;
  padding: 8px 16px;
}

.admin-users-panel {
  grid-template-columns: minmax(320px, 1.3fr) minmax(260px, 0.7fr);
}

.admin-user-role {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-bootstrap {
  appearance: auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
  min-height: 44px;
  line-height: 1.3;
  background-image: none;
}

.select-bootstrap option {
  background-color: var(--card);
  color: var(--ink);
}

.select-bootstrap:focus {
  outline: none;
  border-color: rgba(54, 201, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(54, 201, 255, 0.18);
}

.select-bootstrap:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.platform-table {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.platform-table__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.platform-table__header h4 {
  margin: 0;
  font-size: 1rem;
}

.platform-table__body {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.platform-table__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
}

.platform-table__row input,
.platform-table__row select {
  width: 100%;
}

.platform-table__empty {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-table__footer {
  display: flex;
  justify-content: flex-end;
}

.platform-manager {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.platform-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-actions__hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.platform-slot {
  width: 100%;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  outline: none;
}

.platform-slot:hover {
  border-color: rgba(54, 201, 255, 0.5);
  box-shadow: 0 10px 18px rgba(54, 201, 255, 0.12);
  color: var(--ink);
}

.platform-slot:focus,
.platform-slot[open] {
  border-color: rgba(54, 201, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(54, 201, 255, 0.2);
}

.platform-slot__summary {
  list-style: none;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.platform-slot__summary::-webkit-details-marker {
  display: none;
}

.platform-slot__title {
  font-weight: 700;
  color: inherit;
}

.platform-slot__value {
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
}

.platform-slot--filled {
  border-style: solid;
  background: var(--card);
  color: var(--ink);
}

.platform-slot__fields {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 1200px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}


.live-override {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.live-override legend {
  font-weight: 600;
  color: var(--ink);
}

.live-override__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-override__options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.live-override__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.live-override__options input[type="radio"]:checked + .live-override__chip {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 20px rgba(54, 201, 255, 0.2);
}

@media (max-width: 640px) {
  .platform-table__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .platform-table__empty {
    flex-direction: column;
    align-items: flex-start;
  }
  .platform-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.platform-row .btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .platform-row {
    grid-template-columns: 1fr;
  }
}

.admin-hero-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-hero-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-hero-item--active {
  border-color: rgba(54, 201, 255, 0.5);
  box-shadow: 0 20px 45px rgba(54, 201, 255, 0.18);
}

.admin-hero-preview {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-strong);
  border: 1px solid var(--border);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-hero-preview__placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-hero-edit {
  display: grid;
  gap: 12px;
}

.admin-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-hero-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-hero-form .form-actions {
  justify-content: flex-start;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-list-body {
  display: grid;
  gap: 6px;
}

.admin-list-title {
  font-weight: 700;
  color: var(--ink);
}

.admin-list-desc {
  color: var(--muted);
}

.admin-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.status-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-pill--active {
  color: #0b5c92;
  border-color: rgba(54, 201, 255, 0.4);
  background: rgba(54, 201, 255, 0.12);
}

.status-pill--featured {
  color: #8b2bf5;
  border-color: rgba(139, 91, 255, 0.4);
  background: rgba(139, 91, 255, 0.12);
}

.status-pill--muted {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
}

.status-pill--warning {
  color: #b45200;
  border-color: rgba(255, 173, 54, 0.5);
  background: rgba(255, 173, 54, 0.18);
}

.btn.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.inline-form {
  display: inline;
}

.admin-link-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(54, 201, 255, 0.2);
}

.admin-advanced {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(54, 201, 255, 0.06);
}

.admin-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.admin-advanced__grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.admin-alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 45, 191, 0.12);
  color: #b11564;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 45, 191, 0.2);
}

.admin-alert--success {
  background: rgba(54, 201, 255, 0.16);
  color: #0b5c92;
  border: 1px solid rgba(54, 201, 255, 0.2);
}

.form-row,
.form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.form-row--tight {
  gap: 10px;
}

.form-actions {
  grid-template-columns: auto auto;
  justify-content: flex-start;
}

.form-actions--right {
  justify-content: flex-end;
}

.form-actions--sticky {
  position: sticky;
  bottom: 16px;
  background: var(--card);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  z-index: 2;
}

.streamer-form-bar {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  z-index: 3;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.toggle input {
  accent-color: var(--accent-2);
}

.toggle--switch {
  gap: 10px;
}

.toggle--switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle--switch .toggle__track {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle--switch .toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle--switch input:checked + .toggle__track {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.toggle--switch input:checked + .toggle__track::after {
  transform: translateX(22px);
}

.toggle--switch .toggle__label {
  color: var(--muted);
  font-weight: 600;
}

.toggle--switch input:checked ~ .toggle__label {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-slider-wrap,
  .hero-slider {
    min-height: 360px;
  }
  .hero__panel {
    order: 2;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-menu {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .admin-sidebar__footer {
    width: 100%;
  }
  .admin-content {
    padding: 28px 20px 48px;
  }
  .admin-live-editor {
    grid-template-columns: 1fr;
  }
  .admin-rules-shell {
    grid-template-columns: 1fr;
  }
  .admin-rules-nav {
    position: static;
  }
  .admin-rules-links {
    max-height: none;
  }
  .rules-shell {
    grid-template-columns: 1fr;
  }
  .rules-nav {
    position: static;
  }
  .rules-links {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-list-actions {
    width: 100%;
  }
  .admin-hero-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .theme-toggle--floating {
    top: 12px;
    right: 12px;
  }
  .theme-switch {
    top: 12px;
    right: 12px;
  }
  .site-nav {
    width: 100%;
  }
  .hero__content--overlay,
  .hero-slide__content {
    padding: 20px;
  }
  .hero-slide__content {
    padding-bottom: 6px;
  }
  .hero-slider__btn {
    width: 34px;
    height: 34px;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-actions {
    grid-template-columns: 1fr;
  }
  .admin-auth-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
.streamer-card__divider {
  color: var(--muted);
}

.streamer-platform {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.streamer-platform svg {
  width: 22px;
  height: 22px;
  display: block;
}

.streamer-platform .icon-bg {
  fill: currentColor;
}

.streamer-platform .icon-fg {
  fill: #fff;
}

.streamer-platform--twitch {
  color: #9146ff;
}

.streamer-platform--youtube {
  color: #ff0033;
}

.streamer-platform--kick {
  color: #00e676;
}

.streamer-platform--tiktok {
  color: #00f2ea;
}

.wheel-page .wheel-hero {
  display: grid !important;
  gap: 32px;
  align-items: center;
  justify-items: center;
  text-align: center;
  grid-template-columns: 1fr;
  padding-bottom: 16px;
}

.wheel-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.wheel-page .section {
  width: 100%;
  max-width: 100%;
}

.wheel-items-section {
  margin-top: 80px;
}

.wheel-app.mode-single .winner-grid--top3 {
  display: none !important;
}

.wheel-app.mode-top3 .winner-grid--single {
  display: none !important;
}

.wheel-app.mode-top3 [data-winner-slot="gold"] {
  display: none !important;
}

.wheel-page .wheel-hero,
.wheel-page .wheel-hero__copy {
  visibility: visible !important;
  opacity: 1 !important;
}

.wheel-hero__copy {
  max-width: 520px;
  margin: 0 auto;
}

.wheel-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wheel-brand__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.wheel-brand__text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.wheel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.wheel-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(10, 15, 30, 0.12);
}

.wheel-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.wheel-page .wheel-mode {
  display: flex !important;
}

.wheel-page .wheel-mode__selected:not([hidden]) {
  display: flex !important;
}

.wheel-page .wheel-results:not([hidden]) {
  display: flex !important;
}

.wheel-page .wheel-stage:not([hidden]) {
  display: flex !important;
}

.wheel-page [data-results-single]:not([hidden]),
.wheel-page [data-results-top3]:not([hidden]) {
  display: flex !important;
}

.wheel-mode__card {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.12);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wheel-mode__card.is-active {
  border-color: rgba(54, 201, 255, 0.8);
  box-shadow: 0 0 24px rgba(54, 201, 255, 0.35);
}

.wheel-mode__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(10, 15, 30, 0.2);
}

.wheel-mode__card--gold {
  border-color: rgba(246, 211, 100, 0.6);
  box-shadow: 0 0 22px rgba(246, 211, 100, 0.25);
}

.wheel-mode__card--podium {
  border-color: rgba(54, 201, 255, 0.5);
}

.wheel-mode__label {
  font-size: 1.05rem;
  color: var(--ink);
}

.wheel-mode__sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.wheel-mode__selected {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wheel-mode__active {
  font-weight: 600;
  color: var(--ink);
}

.wheel-results {
  width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  justify-self: center;
  align-self: center;
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.rarity-common { --rarity-color: rgba(148, 163, 184, 0.7); }
.rarity-rare { --rarity-color: rgba(54, 201, 255, 0.8); }
.rarity-epic { --rarity-color: rgba(139, 91, 255, 0.9); }
.rarity-legendary { --rarity-color: rgba(246, 211, 100, 0.95); }

.rarity-common .wheel-item-media,
.rarity-rare .wheel-item-media,
.rarity-epic .wheel-item-media,
.rarity-legendary .wheel-item-media {
  border-color: var(--rarity-color);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2), 0 0 16px var(--rarity-color);
}

.rarity-common .reel-card__media,
.rarity-rare .reel-card__media,
.rarity-epic .reel-card__media,
.rarity-legendary .reel-card__media {
  border-color: var(--rarity-color);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2), 0 0 16px var(--rarity-color);
}

.wheel-item-card {
  position: relative;
}

.rarity-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(10, 15, 30, 0.75);
  color: #fff;
  border: 1px solid transparent;
}

.rarity-badge--common { border-color: rgba(148, 163, 184, 0.7); }
.rarity-badge--rare { border-color: rgba(54, 201, 255, 0.8); }
.rarity-badge--epic { border-color: rgba(139, 91, 255, 0.9); }
.rarity-badge--legendary { border-color: rgba(246, 211, 100, 0.95); }

.win-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 80;
}

.win-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.win-overlay__panel {
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(54, 201, 255, 0.35);
  box-shadow: 0 20px 40px rgba(8, 12, 24, 0.5);
  border-radius: 20px;
  padding: 18px 22px;
  text-align: center;
  min-width: min(360px, 90vw);
  backdrop-filter: blur(10px);
  position: relative;
}

.win-overlay__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.win-overlay__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
}

.win-overlay__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.win-overlay__media {
  width: 160px;
  height: 160px;
  margin: 12px auto 10px;
  border-radius: 16px;
  border: 1px solid rgba(54, 201, 255, 0.35);
  background: rgba(10, 15, 30, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.win-overlay__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.win-overlay__item {
  font-size: 1rem;
  font-weight: 600;
  color: #cfe9ff;
}

.win-overlay__panel--podium {
  min-width: min(560px, 92vw);
  padding: 18px 20px 22px;
}

.win-overlay__podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.win-overlay__podium-card {
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid rgba(54, 201, 255, 0.25);
  border-radius: 14px;
  padding: 10px 8px 12px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.win-overlay__podium-card--first {
  border-color: rgba(246, 211, 100, 0.8);
  box-shadow: 0 0 18px rgba(246, 211, 100, 0.25);
}

.win-overlay__podium-card--second {
  border-color: rgba(201, 214, 227, 0.6);
}

.win-overlay__podium-card--third {
  border-color: rgba(242, 160, 107, 0.7);
}

.win-overlay__podium-place {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe9ff;
}

.win-overlay__podium-media {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(54, 201, 255, 0.25);
  background: rgba(10, 15, 30, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.win-overlay__podium-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.win-overlay__podium-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  min-height: 1.2em;
}

@media (max-width: 720px) {
  .win-overlay__panel--podium {
    min-width: min(420px, 92vw);
  }

  .win-overlay__podium {
    grid-template-columns: 1fr;
  }

  .win-overlay__podium-card {
    grid-template-columns: 72px 1fr;
    text-align: left;
    align-items: center;
    padding: 10px;
  }

  .win-overlay__podium-media {
    width: 64px;
    height: 64px;
    margin: 0;
  }
}

.win-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 30, 0.6);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.win-overlay__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  opacity: 0;
  animation: confetti-fall var(--confetti-duration) ease-out forwards;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.confetti-piece.confetti-left {
  left: 16px;
  bottom: 24px;
}

.confetti-piece.confetti-right {
  right: 16px;
  bottom: 24px;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: translate(var(--confetti-x), var(--confetti-peak)) rotate(200deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--confetti-x-end), var(--confetti-end)) rotate(520deg);
    opacity: 0.1;
  }
}



.winner-grid {
  width: 100%;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 760px;
  flex-direction: row;
}

.winner-grid--single {
  width: 100%;
}

.winner-grid--top3 {
  width: 100%;
  flex-direction: row !important;
  justify-content: center;
}

.winner-box {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.12);
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
}

.winner-grid--single .winner-box {
  width: 220px;
}

.winner-box__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.winner-box__media {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.winner-box__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.winner-box__name {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 32px;
}

.winner-box__price {
  font-size: 0.85rem;
  color: var(--muted);
}

.winner-box--gold {
  border-color: rgba(246, 211, 100, 0.7);
  box-shadow: 0 0 24px rgba(246, 211, 100, 0.35);
}

.winner-box--first {
  border-color: rgba(255, 45, 191, 0.6);
}

.winner-box--second {
  border-color: rgba(54, 201, 255, 0.6);
}

.winner-box--third {
  border-color: rgba(139, 91, 255, 0.6);
}

.wheel-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
}

.reel-frame {
  position: relative;
  width: min(1080px, 96vw);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  contain: layout paint;
}

.reel-window {
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  background: rgba(14, 19, 34, 0.3);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.2);
  max-width: 100%;
  width: 100%;
  contain: layout paint;
  min-height: 170px;
}

.reel {
  display: flex;
  gap: 12px;
  align-items: stretch;
  will-change: transform;
  width: max-content;
}

.reel-card {
  flex: 0 0 auto;
  width: 162px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.reel-card__media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

.reel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reel-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.reel-indicator {
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: var(--neon-glow);
  pointer-events: none;
}

.reel-indicator::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid var(--accent-2);
}

.reel-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.wheel-item-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 140px));
  justify-content: start;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.wheel-item-card {
  padding: 8px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
}

.wheel-item-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wheel-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.wheel-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  line-height: 1.3;
  width: 100%;
}

.wheel-item-price {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: -2px;
}

.wheel-result__media {
  margin-top: 12px;
}

.wheel-result__media img {
  width: min(240px, 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(10, 15, 30, 0.2);
}

.wheel-items {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.wheel-group {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: rgba(54, 201, 255, 0.06);
}

.wheel-group__header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.wheel-group__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.wheel-group__actions label {
  min-width: 180px;
}

.wheel-tier-label {
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 6px;
}

.wheel-item-row {
  align-items: end;
}

.wheel-item-actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.wheel-item-actions .btn {
  width: 100%;
}

@media (min-width: 960px) {
  .wheel-page .wheel-hero {
    grid-template-columns: 1fr;
  }

  .wheel-hero__copy {
    max-width: 640px;
  }
}

.section--gallery {
  margin-top: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-card {
  background: rgba(13, 23, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-card__media {
  position: relative;
  width: 100%;
  padding-top: 56%;
  background: rgba(15, 23, 42, 1);
  overflow: hidden;
}

.gallery-card__media--admin {
  padding-top: 60%;
  background: rgba(15, 23, 42, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card__media--admin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery-card__media--admin video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__media button {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
}

.gallery-card__media img,
.gallery-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__media-button {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
}

.gallery-card__media--video {
  position: relative;
  padding-top: 56%;
  background: rgba(15, 23, 42, 1);
  overflow: hidden;
}

.gallery-card__media--embed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.gallery-card__media--embed a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.gallery-card__body h3 {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 600;
}

.gallery-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-tabs__link {
  color: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gallery-tabs__link--active,
.gallery-tabs__link:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.gallery-card__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
}

.gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.gallery-card__meta-item {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.gallery-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.gallery-card__tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-card__author {
  font-weight: 600;
}

.gallery-card__link {
  color: #8ef;
  font-weight: 600;
  text-decoration: none;
}

.event-role-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}
.event-role-picker__column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.event-role-picker__controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.event-role-picker__controls .btn {
  width: 100%;
}
.event-role-picker select {
  min-height: 160px;
  width: 100%;
}
@media (max-width: 900px) {
  .event-role-picker {
    grid-template-columns: 1fr;
  }
  .event-role-picker__controls {
    flex-direction: row;
    justify-content: space-between;
  }
}
