:root {
  --bg: #0b1020;
  --bg-soft: #141c36;
  --card: rgba(18, 27, 52, 0.84);
  --text: #eaf0ff;
  --muted: #a5b2d1;
  --accent: #ff7f50;
  --accent-2: #22d3ee;
  --danger: #ff6b6b;
  --ok: #7bd389;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

@font-face {
  font-family: "OETZTYP";
  src: url("../images/OETZTYP_.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, #1d2d5b 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, #3f1f4f 0%, transparent 30%),
    linear-gradient(160deg, #070b18 0%, #0d1730 55%, #071121 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #1ecbe1;
  top: -60px;
  left: -90px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #ff7f50;
  bottom: -120px;
  right: -120px;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 14, 30, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.brand-text {
  font-family: "OETZTYP", sans-serif !important;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  font-family: "OETZTYP", sans-serif !important;
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.menu-btn {
  display: none;
  font-family: "OETZTYP", sans-serif !important;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
}

.hero {
  padding: 3.3rem 1.2rem 2.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-brand-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-brand-image {
  display: block;
  width: auto;
  height: clamp(96px, 10vw, 122px);
  max-width: min(100%, 220px);
  object-fit: contain;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 0.95;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.65;
  align-self: flex-start;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-extra-actions {
  margin-top: 0;
  position: relative;
  width: 260px;
  height: 230px;
  flex: 0 0 auto;
  align-self: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0;
  align-items: flex-end;
  flex-shrink: 0;
}

.hero-extra-actions::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 230px;
  height: 230px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 0 0 100%;
  border-top: 0;
  border-right: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-button-group {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
}

.hero-button-group:first-child {
  top: 0;
  left: 12px;
  transform: translate(-38%, -50%);
}

.hero-button-group-offset {
  bottom: 10px;
  right: 0;
  transform: translate(50%, 50%);
}

.hero-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 30, 0.96);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.hero-image-btn:hover {
  transform: translateY(-2px);
  background: rgba(12, 18, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-image-btn.is-spinning img {
  animation: hero-spin 1s linear;
}

@keyframes hero-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}

.hero-button-label {
  margin: 0;
  font-family: "OETZTYP", sans-serif !important;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-brand-image {
    width: auto;
    height: clamp(88px, 18vw, 108px);
    max-width: min(100%, 180px);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-extra-actions {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-extra-actions::before {
    display: none;
  }

  .hero-button-group {
    position: static;
    transform: none;
  }

  .hero-image-btn img {
    width: 100%;
    height: 100%;
  }
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(120deg, #ff9b47, #ff6f3f 45%, #f85555);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card h2 {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.stat {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.stat-small {
  font-size: 1rem;
  line-height: 1.3;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.arenas-card {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.22);
  color: #000000;
}

.arenas-card,
.arenas-card * {
  font-family: "OETZTYP", sans-serif !important;
}

.arena-label-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.08rem;
  padding: 0;
  margin-bottom: 0.45rem;
}

.arena-mode-media {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: #ffffff;
  margin: 0;
  flex: 0 0 auto;
}

.arena-mode-image {
  width: min(100%, 190px);
  height: auto;
  max-height: 100px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.arena-label-copy {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  line-height: 1.08;
  text-align: left;
  align-items: flex-start;
  flex: 1 1 auto;
}

.home-section-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: #000000;
}

.arenas-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.arena-group {
  margin-top: 0.25rem;
}

.schedule-list {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.04rem;
}

.arena-week-nav {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.arena-nav-btn {
  font-family: "OETZTYP";
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 8px;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
}

.arena-nav-btn:hover:not(:disabled) {
  background: #ebebeb;
}

.arena-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.schedule-list .arena-line {
  margin: 0;
  padding: 0.16rem 0;
  font-size: 150%;
}

.schedule-list .arena-line strong {
  color: inherit !important;
  display: inline-block;
  min-width: 3.1rem;
}

.schedule-list .arena-line.arena-line--today {
  background: #fff59d;
  color: #000000 !important;
  border-radius: 4px;
  padding: 0.04rem 0.3rem;
}

.arena-group-title {
  margin: 0;
  font-size: 1.05rem;
  color: #8b6b00;
  letter-spacing: 0.03em;
}

.arena-sub-meta {
  margin: 0;
  font-size: 0.88rem;
  color: #000000;
}

.arena-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(9, 14, 30, 0.68);
}

.arena-item h3 {
  margin: 0;
  font-size: 1.18rem;
}

.arena-line {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.schedule-list .arena-line.arena-line--moab {
  color: #000000 !important;
}

.schedule-list .arena-line.arena-line--bfb {
  color: #ff0000 !important;
}

.schedule-list .arena-line.arena-line--zomg-a {
  color: #75cc20 !important;
}

.schedule-list .arena-line.arena-line--zomg-b {
  color: #175f1c !important;
}

.arena-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.arena-tag,
.arena-ad {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.arena-ad {
  color: #ffd7a5;
  border-color: rgba(255, 127, 80, 0.5);
}

.grid-2 {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.clean-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.page-head {
  padding: 1rem 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.page-head h1 {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
}

.mini-link {
  color: #8ce7ff;
  text-decoration: none;
  font-weight: 700;
}

.mini-link:hover {
  text-decoration: underline;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.75);
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 540ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .arenas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-label-panel {
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
  }

  .arena-label-copy {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.7rem 0.8rem;
  }

  .menu-btn {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    flex-direction: column;
    padding: 0.6rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(9, 14, 30, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding-top: 2rem;
  }

  .arenas-grid {
    grid-template-columns: 1fr;
  }
}
