:root {
  --red: #e5484d;
  --red-dark: #a92b35;
  --ink: #171316;
  --surface: #241d21;
  --surface-light: #30272c;
  --line: rgba(255, 245, 238, 0.14);
  --muted: #c1b6b9;
  --white: #fff8f2;
  --display: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 82px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  height: 72px;
  background: rgba(8, 9, 11, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

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

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--display);
  line-height: 1;
  letter-spacing: 0.05em;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 800;
}

.brand-copy span {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: #d1d1d4;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px;
  background: #fff;
  transition: 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px clamp(24px, 8vw, 150px) 90px;
  overflow: hidden;
  background: #0b0b0d;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.82) 36%, rgba(8, 9, 11, 0.12) 72%),
    linear-gradient(0deg, var(--ink) 0%, transparent 22%);
}

.hero-art {
  position: absolute;
  inset: -4% -3% -4% 35%;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.48) contrast(1.14) brightness(0.73) hue-rotate(76deg);
  transform: scale(1.04);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(226, 29, 47, 0.42), rgba(12, 5, 8, 0.02) 60%);
  mix-blend-mode: color;
}

.hero-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(740px, 65vw);
}

.eyebrow,
.section-kicker,
.event-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  margin: 24px 0 28px;
  font-size: clamp(72px, 10vw, 148px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  color: var(--red);
  font-style: normal;
}

.hero-content > p {
  width: min(580px, 100%);
  margin: 0 0 36px;
  color: #c6c6ca;
  font-size: clamp(16px, 1.25vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 30px rgba(226, 29, 47, 0.2);
}

.button-primary:hover {
  background: #f12a3d;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(8, 9, 11, 0.28);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-status {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 80px);
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.66);
  backdrop-filter: blur(12px);
}

.hero-status small,
.hero-status strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-status small {
  color: var(--muted);
  font-size: 10px;
}

.hero-status strong {
  margin-top: 2px;
  font-size: 13px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(226, 29, 47, 0.16);
  animation: pulse 2s infinite;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 42px;
  left: clamp(24px, 3.6vw, 66px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #949499;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.scroll-cue svg {
  width: 16px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
}

.section {
  padding: 120px clamp(24px, 8vw, 150px);
}

.schedule-section {
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(226, 29, 47, 0.08), transparent 30%),
    var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 50px;
}

h2 {
  margin-top: 14px;
  font-size: clamp(54px, 6.5vw, 94px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--red);
  font-size: 20px;
}

.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.7fr);
  gap: 22px;
}

.featured-event {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid var(--line);
}

.event-map {
  position: absolute;
  inset: 0;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.45) contrast(1.18) brightness(0.62) hue-rotate(76deg);
  transition: transform 0.7s ease;
}

.featured-event:hover .event-map {
  transform: scale(1.035);
}

.event-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 4, 5, 0.98), rgba(4, 4, 5, 0.08) 72%),
    linear-gradient(90deg, rgba(190, 12, 30, 0.28), transparent 50%);
}

.event-date {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 132px;
  padding: 20px;
  color: #fff;
  background: var(--red);
  text-align: center;
}

.event-date strong,
.event-date span {
  display: block;
  font-family: var(--display);
  line-height: 1;
}

.event-date strong {
  font-size: 38px;
}

.event-date span {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.event-content {
  position: relative;
  z-index: 2;
  width: min(570px, 100%);
}

.event-content h3 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 5vw, 68px);
}

.event-content p {
  margin: 0 0 28px;
  color: #c0c0c4;
}

.event-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
}

.info-card,
.quote-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 50px;
  color: var(--red);
  border: 1px solid rgba(226, 29, 47, 0.35);
  background: rgba(226, 29, 47, 0.08);
}

.card-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.info-card h3 {
  margin: 18px 0;
  font-size: 39px;
}

.info-card p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  margin-top: auto;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-link span {
  margin-left: 8px;
  color: var(--red);
}

.quote-card {
  padding: 32px 38px;
  border-left: 3px solid var(--red);
  background: linear-gradient(135deg, rgba(226, 29, 47, 0.11), transparent), var(--surface);
}

.quote-card blockquote {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.quote-card span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.legacy-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 170px);
  align-items: center;
  background: var(--surface);
}

.legacy-copy > p,
.about-copy > p {
  max-width: 570px;
  margin: 30px 0 36px;
  color: var(--muted);
  font-size: 16px;
}

.stat-stack {
  border-top: 1px solid var(--line);
}

.stat-card {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
  padding-right: 22px;
  padding-left: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.stat-card > span {
  color: var(--red);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
}

.stat-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-card i {
  color: var(--red);
  font-size: 23px;
  font-style: normal;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.3fr;
  gap: clamp(60px, 10vw, 160px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.95), rgba(8, 9, 11, 0.76)),
    radial-gradient(circle at 20% 50%, rgba(226, 29, 47, 0.2), transparent 30%);
}

.about-mark {
  position: relative;
  max-width: 430px;
}

.about-mark::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(226, 29, 47, 0.5);
  transform: rotate(-4deg);
}

.about-mark img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}

.about-copy {
  max-width: 710px;
}

.site-footer {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px clamp(24px, 8vw, 150px);
  border-top: 1px solid var(--line);
  background: #060709;
  color: #797a7f;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand .brand-copy strong {
  color: #fff;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(226, 29, 47, 0);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    z-index: 102;
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(8, 9, 11, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 28px;
  }

  .menu-toggle.open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .event-grid,
  .legacy-section {
    grid-template-columns: 1fr;
  }

  .event-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .card-icon {
    margin-bottom: 35px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 72px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero {
    min-height: 820px;
    align-items: end;
    padding-bottom: 150px;
  }

  .hero-art {
    inset: 0 0 35% 0;
    background-size: cover;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--ink) 18%, rgba(8, 9, 11, 0.42) 72%, rgba(8, 9, 11, 0.22)),
      linear-gradient(90deg, rgba(8, 9, 11, 0.72), transparent);
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    font-size: clamp(61px, 19vw, 92px);
  }

  .hero-status {
    right: 24px;
    bottom: 34px;
    left: 24px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }

  .featured-event {
    min-height: 580px;
  }

  .event-side {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 390px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-mark {
    width: min(78vw, 380px);
    margin: 0 auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Authenticated server panel */
.site-header {
  justify-content: flex-start;
}

.main-nav {
  margin-left: auto;
}

.login-button {
  z-index: 102;
  margin-left: clamp(20px, 2.5vw, 40px);
  padding: 9px 16px;
  border: 1px solid rgba(229, 72, 77, 0.58);
  border-radius: 999px;
  color: #fff;
  background: rgba(229, 72, 77, 0.12);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.login-button:hover,
.login-button.active {
  border-color: var(--red);
  background: var(--red);
}

.login-page,
.panel-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 15%, rgba(229, 72, 77, 0.14), transparent 28%),
    var(--ink);
}

.login-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 150px 24px 80px;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  width: min(1050px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(229, 72, 77, 0.13), transparent 52%),
    var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.login-copy,
.login-form {
  padding: clamp(34px, 6vw, 70px);
}

.login-copy {
  border-right: 1px solid var(--line);
}

.login-copy h1 {
  margin: 22px 0;
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.82;
}

.login-copy p {
  max-width: 530px;
  color: var(--muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: rgba(8, 9, 11, 0.24);
}

.login-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--white);
  background: rgba(255, 248, 242, 0.04);
  font: inherit;
}

.login-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.login-form button {
  width: 100%;
}

.login-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.login-message {
  min-height: 24px;
  margin: 0;
  color: #f0aaad;
  font-size: 12px;
}

.panel-main {
  width: min(1500px, 92%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 140px 0 90px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.panel-heading h1 {
  margin: 10px 0;
  font-size: clamp(54px, 7vw, 94px);
  line-height: 0.9;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.panel-refresh {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--white);
  background: rgba(255, 248, 242, 0.05);
  cursor: pointer;
}

.panel-refresh:hover {
  border-color: var(--red);
  background: rgba(229, 72, 77, 0.1);
}

.server-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.server-status-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--white);
  background: rgba(255, 248, 242, 0.03);
  text-align: left;
}

.server-status-card:hover,
.server-status-card.active {
  border-color: rgba(229, 72, 77, 0.72);
  background: rgba(229, 72, 77, 0.08);
}

.server-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-status-top strong {
  font-family: var(--display);
  font-size: 20px;
}

.server-status-top i {
  color: #db777b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.server-status-card.online .server-status-top i {
  color: #75d19a;
}

.server-status-summary {
  display: block;
  min-height: 42px;
  margin: 10px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
}

.server-status-card small {
  color: #82787c;
}

.server-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.panel-action-button {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 248, 242, 0.045);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.panel-action-button:hover:not(:disabled) {
  border-color: rgba(229, 72, 77, 0.68);
  background: rgba(229, 72, 77, 0.12);
}

.panel-action-button.danger {
  color: #ffb5b7;
}

.panel-action-button.danger:hover:not(:disabled) {
  color: #fff;
  border-color: #d63b42;
  background: #a92b35;
}

.panel-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.panel-action-button.compact {
  min-height: 31px;
  padding: 5px 9px;
}

.console-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #100d0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.035);
}

.server-tabs {
  display: flex;
  gap: 7px;
}

.server-tabs button {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.server-tabs button:hover,
.server-tabs button.active {
  border-color: rgba(229, 72, 77, 0.45);
  color: #fff;
  background: rgba(229, 72, 77, 0.12);
}

.console-toolbar > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.console-view-tabs {
  display: flex;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
}

.console-view-tabs button {
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.console-view-tabs button.active {
  color: #fff;
  background: var(--red);
}

.console-output {
  height: min(55vh, 650px);
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #d9dedb;
  background: #0b090a;
  font: 12px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.console-command-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #171215;
}

.console-command-form label {
  padding-left: 17px;
  color: var(--red);
  font: 12px "SFMono-Regular", Consolas, monospace;
}

.console-command-form input {
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font: 12px "SFMono-Regular", Consolas, monospace;
}

.console-command-form button {
  align-self: stretch;
  padding: 0 22px;
  border: 0;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  font-weight: 700;
}

.console-command-form button:disabled {
  opacity: 0.45;
}

.console-message {
  min-height: 38px;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.file-manager[hidden],
#console-view[hidden] {
  display: none;
}

.file-manager {
  min-height: min(55vh, 650px);
  background: #0b090a;
}

.file-manager-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #171215;
}

.file-manager-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.file-manager-actions button,
.file-breadcrumbs button,
.file-row-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 248, 242, 0.045);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.file-manager-actions button:hover,
.file-breadcrumbs button:hover,
.file-row-actions button:hover {
  border-color: rgba(229, 72, 77, 0.68);
  background: rgba(229, 72, 77, 0.12);
}

.file-breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  gap: 5px;
}

.file-breadcrumbs span {
  color: #746b6f;
}

.file-breadcrumbs button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-color: transparent;
  color: #d8cccf;
  background: transparent;
}

.file-list-header,
.file-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 100px minmax(150px, 0.45fr) auto;
  align-items: center;
  gap: 15px;
}

.file-manager-warning {
  margin: 0;
  padding: 9px 17px;
  border-bottom: 1px solid var(--line);
  color: #c49b72;
  background: rgba(192, 128, 55, 0.065);
  font-size: 10px;
}

.file-list-header {
  padding: 10px 17px;
  border-bottom: 1px solid var(--line);
  color: #756d70;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-list {
  max-height: min(52vh, 600px);
  overflow: auto;
}

.file-row {
  min-height: 51px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255, 248, 242, 0.055);
  color: var(--muted);
  font-size: 10px;
}

.file-row:hover {
  background: rgba(255, 248, 242, 0.035);
}

.file-entry-name {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 6px 4px;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.file-entry-name span {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #f2b0b3;
  background: rgba(229, 72, 77, 0.13);
  font-size: 15px;
}

.file-row.directory .file-entry-name span {
  color: #f3cf8d;
  background: rgba(212, 157, 67, 0.13);
}

.file-entry-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 11px "SFMono-Regular", Consolas, monospace;
}

.file-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.file-row-actions button {
  padding: 5px 7px;
}

.file-row-actions button.danger {
  color: #ffb5b7;
}

.file-list-empty {
  margin: 0;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.file-editor-dialog {
  width: min(1100px, calc(100% - 28px));
  height: min(820px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--white);
  background: #100d0f;
}

.file-editor-dialog::backdrop {
  background: rgba(5, 4, 5, 0.86);
  backdrop-filter: blur(7px);
}

.file-editor-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.file-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.file-editor-heading h2 {
  margin: 4px 0;
  font-size: 32px;
}

.file-editor-heading p {
  margin: 0;
  color: var(--muted);
  font: 10px "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.file-name-field {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.file-name-field[hidden] {
  display: none;
}

.file-name-field input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--white);
  background: rgba(255, 248, 242, 0.04);
  font: 12px "SFMono-Regular", Consolas, monospace;
}

#file-editor-content {
  width: 100%;
  min-height: 0;
  padding: 20px;
  resize: none;
  border: 0;
  outline: 0;
  color: #d9dedb;
  background: #090708;
  font: 12px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}

.file-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.file-editor-footer > span {
  min-width: 0;
  margin-right: auto;
  color: #f0aaad;
  font-size: 10px;
}

.file-save-button {
  border-color: var(--red);
  background: var(--red);
}

.player-panel-dialog {
  width: min(800px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  background: var(--surface);
}

.player-panel-dialog::backdrop {
  background: rgba(5, 4, 5, 0.82);
  backdrop-filter: blur(7px);
}

.player-panel-shell {
  position: relative;
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0, rgba(229, 72, 77, 0.18), transparent 36%),
    var(--surface);
}

.player-panel-shell h2 {
  margin: 8px 0 4px;
  font-size: clamp(36px, 6vw, 58px);
}

.player-panel-shell > p {
  color: var(--muted);
}

.online-player-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.online-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 248, 242, 0.035);
}

.online-player-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.online-player-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #fff;
  background: var(--red);
  font-family: var(--display);
  font-size: 20px;
}

.online-player-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.online-player-identity > span,
.online-player-identity strong,
.online-player-identity small {
  display: block;
}

.online-player-identity strong {
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 17px;
}

.online-player-identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.online-player-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.players-empty {
  margin: 0;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.player-panel-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #f0aaad !important;
  font-size: 11px;
}

@media (max-width: 980px) {
  .menu-toggle {
    margin-left: auto;
  }

  .main-nav {
    margin-left: 0;
  }

  .main-nav.open ~ .login-button {
    opacity: 0;
    pointer-events: none;
  }

  .login-button {
    margin-left: 10px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 650px) {
  .brand-copy span {
    display: none;
  }

  .login-button {
    padding: 7px 9px;
    letter-spacing: 0.04em;
  }

  .login-main {
    padding: 105px 14px 50px;
  }

  .login-copy,
  .login-form {
    padding: 30px 22px;
  }

  .panel-main {
    width: min(94%, 620px);
    padding-top: 110px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-status-grid {
    grid-template-columns: 1fr;
  }

  .player-panel-shell {
    padding: 38px 20px 24px;
  }

  .online-player-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .online-player-actions {
    width: 100%;
  }

  .online-player-actions button {
    flex: 1;
  }

  .console-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-view-tabs {
    width: 100%;
    margin-left: 0;
  }

  .console-view-tabs button {
    flex: 1;
  }

  .server-tabs {
    width: 100%;
  }

  .server-tabs button {
    flex: 1;
  }

  .console-output {
    height: 52vh;
    padding: 14px;
    font-size: 10px;
  }

  .console-command-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .console-command-form button {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .file-manager-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .file-manager-actions > div {
    justify-content: flex-start;
  }

  .file-list-header {
    display: none;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 10px 12px;
  }

  .file-row > time {
    grid-column: 1;
  }

  .file-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .file-editor-heading,
  .file-name-field {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Player stats page */
.player-stats-page {
  background:
    radial-gradient(circle at 84% 14%, rgba(75, 159, 197, 0.11), transparent 24%),
    radial-gradient(circle at 10% 35%, rgba(229, 72, 77, 0.1), transparent 26%),
    var(--ink);
}

.player-stats-page .site-header {
  background: rgba(23, 19, 22, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.stats-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  padding: 170px clamp(24px, 8vw, 150px) 110px;
  overflow: hidden;
  background: #241a20;
}

.stats-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.98) 0%, rgba(29, 20, 24, 0.84) 46%, rgba(29, 20, 24, 0.2) 78%),
    linear-gradient(0deg, var(--ink), transparent 30%);
}

.stats-hero-art {
  position: absolute;
  inset: 8% -4% 8% 45%;
  border-radius: 36px 0 0 36px;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.7) contrast(1.05) brightness(0.64) hue-rotate(88deg);
  transform: rotate(1.5deg);
}

.stats-hero-copy {
  position: relative;
  z-index: 2;
  width: min(830px, 68vw);
}

.stats-hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(62px, 8vw, 118px);
}

.stats-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #ded2d5;
  font-size: clamp(17px, 1.5vw, 21px);
}

.stats-summary {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 90px);
  bottom: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(31, 24, 28, 0.82);
  backdrop-filter: blur(14px);
}

.stats-summary div {
  min-width: 108px;
  padding: 20px;
  text-align: center;
}

.stats-summary div + div {
  border-left: 1px solid var(--line);
}

.stats-summary strong,
.stats-summary span {
  display: block;
}

.stats-summary strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.stats-summary span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px clamp(24px, 8vw, 150px);
}

.leaderboard-panel {
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(75, 159, 197, 0.12), transparent 32%),
    rgba(255, 248, 242, 0.035);
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.leaderboard-tabs button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.leaderboard-tabs button:hover,
.leaderboard-tabs button.active {
  color: #fff;
  border-color: #4b9fc5;
  background: #4b9fc5;
}

.leaderboard-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--white);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.leaderboard-rank {
  color: #4b9fc5;
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.leaderboard-value {
  color: #e8a744;
  font-family: var(--display);
  font-size: 22px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.player-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(75, 159, 197, 0.16), transparent 38%),
    var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 159, 197, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.player-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 22px;
}

.player-card-avatar,
.player-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: #4b9fc5;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

.player-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 16px;
}

.player-card-top h3 {
  overflow-wrap: anywhere;
  font-size: 29px;
}

.player-card-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.player-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: auto;
  background: var(--line);
}

.player-mini-stats > div {
  padding: 15px 18px;
  background: rgba(255, 248, 242, 0.035);
}

.player-mini-stats span,
.player-mini-stats strong {
  display: block;
}

.player-mini-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-mini-stats strong {
  margin-top: 3px;
  color: var(--white);
  font-family: var(--display);
  font-size: 24px;
}

.player-dialog-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-right: 60px;
}

.player-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 23px;
}

.player-dialog-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(46px, 7vw, 76px);
}

.player-dialog-heading p {
  margin: 0;
  color: var(--muted);
}

.player-season-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.player-season-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) repeat(4, minmax(70px, 0.6fr));
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 11px 16px;
}

.player-season-row + .player-season-row {
  border-top: 1px solid var(--line);
}

.player-season-row:nth-child(even) {
  background: rgba(255, 248, 242, 0.025);
}

.player-season-row strong {
  font-size: 13px;
}

.player-season-row span {
  color: var(--muted);
  font-size: 11px;
}

.player-season-row:first-child::before {
  content: none;
}

.player-season-header {
  min-height: 42px;
  background: rgba(75, 159, 197, 0.11);
}

.player-season-header span {
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .leaderboard-list,
  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-summary {
    right: 32px;
    bottom: 34px;
  }
}

@media (max-width: 720px) {
  .stats-hero {
    min-height: 770px;
    padding-top: 130px;
    padding-bottom: 180px;
  }

  .stats-hero-art {
    inset: 72px 0 47% 16%;
    border-radius: 0 0 0 28px;
  }

  .stats-hero::after {
    background:
      linear-gradient(0deg, var(--ink) 28%, rgba(29, 20, 24, 0.65) 72%, rgba(29, 20, 24, 0.24)),
      linear-gradient(90deg, rgba(29, 20, 24, 0.62), transparent);
  }

  .stats-hero-copy {
    width: 100%;
  }

  .stats-hero h1 {
    font-size: clamp(49px, 14vw, 70px);
  }

  .stats-summary {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }

  .stats-summary div {
    min-width: 0;
    padding: 16px 8px;
  }

  .stats-summary strong {
    font-size: 26px;
  }

  .stats-section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .leaderboard-list,
  .player-grid {
    grid-template-columns: 1fr;
  }

  .player-dialog-heading {
    grid-template-columns: 1fr;
    margin-right: 48px;
  }

  .player-season-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Event history archive */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.history-page {
  background:
    radial-gradient(circle at 84% 14%, rgba(232, 167, 68, 0.1), transparent 24%),
    radial-gradient(circle at 10% 35%, rgba(229, 72, 77, 0.1), transparent 26%),
    var(--ink);
}

.history-page .site-header {
  background: rgba(23, 19, 22, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.history-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  padding: 170px clamp(24px, 8vw, 150px) 110px;
  overflow: hidden;
  background: #241a20;
}

.history-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.98) 0%, rgba(29, 20, 24, 0.84) 46%, rgba(29, 20, 24, 0.2) 78%),
    linear-gradient(0deg, var(--ink), transparent 30%);
}

.history-hero-art {
  position: absolute;
  inset: 8% -4% 8% 45%;
  border-radius: 36px 0 0 36px;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.72) contrast(1.05) brightness(0.64) hue-rotate(62deg);
  transform: rotate(1.5deg);
}

.history-hero-copy {
  position: relative;
  z-index: 2;
  width: min(830px, 68vw);
}

.history-hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(62px, 8vw, 118px);
}

.history-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #ded2d5;
  font-size: clamp(17px, 1.5vw, 21px);
}

.history-summary {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 90px);
  bottom: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(31, 24, 28, 0.82);
  backdrop-filter: blur(14px);
}

.history-summary div {
  min-width: 108px;
  padding: 20px;
  text-align: center;
}

.history-summary div + div {
  border-left: 1px solid var(--line);
}

.history-summary strong,
.history-summary span {
  display: block;
}

.history-summary strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.history-summary span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px clamp(24px, 8vw, 150px);
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 48px;
}

.archive-heading > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.archive-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 18px;
}

.archive-search {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 242, 0.04);
}

.archive-search:focus-within {
  border-color: rgba(229, 72, 77, 0.65);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.1);
}

.archive-search svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.archive-search input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
}

.archive-search input::placeholder {
  color: #82787c;
}

.archive-sort {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 242, 0.04);
}

.archive-sort span {
  color: var(--muted);
  font-size: 11px;
}

.archive-sort select {
  border: 0;
  outline: 0;
  color: var(--white);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.era-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.era-filters button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.era-filters button:hover,
.era-filters button.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.archive-results {
  margin: 30px 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.season-card {
  --season-accent: var(--red);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--season-accent) 24%, transparent), transparent 42%),
    var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--season-accent) 65%, white 8%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.season-card.era-2 {
  --season-accent: #e8a744;
}

.season-card.era-3 {
  --season-accent: #7c74d8;
}

.season-card.era-4 {
  --season-accent: #51a982;
}

.season-card.era-5 {
  --season-accent: #4b9fc5;
}

.season-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}

.season-label {
  color: var(--season-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-number {
  color: rgba(255, 248, 242, 0.13);
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
}

.season-card-body {
  padding: 22px;
}

.season-card-body h3 {
  min-height: 64px;
  font-size: 32px;
  line-height: 1;
}

.season-host {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.season-result {
  margin-top: auto;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.025);
}

.season-result span,
.season-result strong {
  display: block;
}

.season-result span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-result strong {
  margin-top: 4px;
  color: var(--season-accent);
  font-family: var(--display);
  font-size: 24px;
}

.season-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 22px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.season-card-footer span:last-child {
  color: var(--white);
}

.archive-empty {
  padding: 80px 24px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  text-align: center;
}

.archive-empty strong {
  font-family: var(--display);
  font-size: 26px;
}

.archive-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.season-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: min(880px, calc(100svh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--white);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.season-dialog::backdrop {
  background: rgba(7, 5, 6, 0.82);
  backdrop-filter: blur(7px);
}

.dialog-shell {
  position: relative;
  max-height: min(880px, calc(100svh - 32px));
  padding: 44px;
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 248, 242, 0.06);
  font-size: 25px;
  cursor: pointer;
}

.dialog-season-number {
  display: block;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dialog-heading h2 {
  margin: 8px 60px 10px 0;
  font-size: clamp(46px, 7vw, 76px);
}

.dialog-heading > p {
  margin: 0;
  color: var(--muted);
}

.dialog-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 34px 0 44px;
}

.dialog-highlights > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 248, 242, 0.035);
}

.dialog-highlights span,
.dialog-highlights strong {
  display: block;
}

.dialog-highlights span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-highlights strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 19px;
}

.placement-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.placement-heading h3 {
  margin-top: 7px;
  font-size: 31px;
}

.placement-heading > span {
  color: var(--muted);
  font-size: 11px;
}

.placement-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.placement-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(100px, auto);
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding: 10px 16px;
}

.placement-row + .placement-row {
  border-top: 1px solid var(--line);
}

.placement-row:nth-child(even) {
  background: rgba(255, 248, 242, 0.025);
}

.placement-rank {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.placement-player {
  min-width: 0;
}

.placement-vote {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.placement-pending {
  margin: 0;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.final-tribal {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(232, 167, 68, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 167, 68, 0.12), transparent 38%),
    rgba(232, 167, 68, 0.035);
}

.final-tribal[hidden] {
  display: none;
}

.final-tribal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.final-tribal-heading h3 {
  margin-top: 7px;
  font-size: 31px;
}

.final-tribal-heading > span {
  padding: 8px 11px;
  border-radius: 10px;
  color: #281b12;
  background: #e8a744;
  font-size: 11px;
  font-weight: 700;
}

.finalist-grid {
  display: grid;
  gap: 10px;
}

.finalist-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.finalist-card.winner {
  border-color: rgba(232, 167, 68, 0.62);
  box-shadow: inset 4px 0 0 #e8a744;
}

.finalist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
}

.finalist-player img,
.finalist-player .player-initial {
  width: 38px;
  height: 38px;
}

.finalist-player strong {
  font-family: var(--display);
  font-size: 22px;
}

.finalist-result {
  flex: 0 0 auto;
  text-align: right;
}

.finalist-result small,
.finalist-result strong {
  display: block;
}

.finalist-result small {
  color: #e8a744;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finalist-result strong {
  margin-top: 2px;
  font-size: 12px;
}

.juror-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.025);
}

.juror {
  position: relative;
  gap: 7px;
  padding: 6px 9px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 248, 242, 0.035);
}

.juror img,
.juror .player-initial {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.juror strong {
  font-size: 10px;
}

.juror-weight {
  color: #e8a744;
  font-size: 10px;
  font-weight: 700;
}

.no-jury-votes {
  color: var(--muted);
  font-size: 11px;
}

.player-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.player-identity img,
.player-initial {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  image-rendering: pixelated;
}

.player-identity img {
  background: rgba(255, 248, 242, 0.08);
}

.player-initial {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.player-identity strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.voting-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 16px;
}

.voting-heading h3 {
  margin-top: 7px;
  font-size: 31px;
}

.voting-heading > span {
  color: var(--muted);
  font-size: 11px;
}

.voting-history {
  display: grid;
  gap: 10px;
}

.voting-milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 2px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--tribe-color, var(--red)) 48%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tribe-color, var(--red)) 22%, transparent), transparent),
    rgba(255, 248, 242, 0.025);
}

.voting-milestone span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voting-milestone strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 17px;
}

.voting-round {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tribe-color, var(--red)) 42%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--tribe-color, var(--red)) 18%, transparent), transparent 36%),
    rgba(255, 248, 242, 0.025);
}

.voting-round summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(120px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.voting-round summary::-webkit-details-marker {
  display: none;
}

.voting-round[open] summary {
  border-bottom: 1px solid color-mix(in srgb, var(--tribe-color, var(--red)) 35%, var(--line));
  background: color-mix(in srgb, var(--tribe-color, var(--red)) 12%, transparent);
}

.voting-round-label small,
.voting-round-label span,
.voting-tally small,
.voting-tally strong {
  display: block;
}

.voting-round-label small,
.voting-tally small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voting-round-label span {
  margin-top: 3px;
  color: color-mix(in srgb, var(--tribe-color, var(--red)) 72%, white);
  font-weight: 700;
}

.voting-eliminated img,
.voting-eliminated .player-initial {
  width: 34px;
  height: 34px;
}

.voting-eliminated strong {
  font-family: var(--display);
  font-size: 20px;
}

.voting-tally {
  position: relative;
  padding-right: 22px;
  text-align: right;
}

.voting-tally strong {
  margin-top: 3px;
  font-size: 12px;
}

.voting-tally i {
  position: absolute;
  top: 50%;
  right: 0;
  color: color-mix(in srgb, var(--tribe-color, var(--red)) 72%, white);
  font-style: normal;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.voting-round[open] .voting-tally i {
  transform: translateY(-50%) rotate(180deg);
}

.vote-phases {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.vote-phase {
  min-width: 0;
  background: var(--surface);
}

.vote-phase-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tribe-color, var(--red)) 15%, transparent), transparent 62%),
    rgba(255, 248, 242, 0.025);
}

.vote-phase-heading h4,
.vote-phase-heading strong {
  margin: 0;
}

.vote-phase-heading h4 {
  font-family: var(--display);
  font-size: 18px;
}

.vote-phase-heading > strong {
  color: var(--muted);
  font-size: 11px;
}

.vote-phase-number {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vote-phase-revote .vote-phase-number,
.vote-phase-rocks .vote-phase-number,
.vote-phase-firemaking .vote-phase-number,
.vote-phase-tiebreaker .vote-phase-number {
  border-color: color-mix(in srgb, var(--tribe-color, var(--red)) 55%, transparent);
  color: color-mix(in srgb, var(--tribe-color, var(--red)) 72%, white);
  background: color-mix(in srgb, var(--tribe-color, var(--red)) 12%, transparent);
}

.individual-votes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.individual-vote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--surface);
}

.vote-arrow {
  color: color-mix(in srgb, var(--tribe-color, var(--red)) 72%, white);
  font-weight: 700;
  text-align: center;
}

.vote-choice {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 12px;
}

.votes-pending {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

@media (max-width: 1100px) {
  .season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-summary {
    right: 32px;
    bottom: 34px;
  }
}

@media (max-width: 720px) {
  .history-hero {
    min-height: 770px;
    padding-top: 130px;
    padding-bottom: 180px;
  }

  .history-hero-art {
    inset: 72px 0 47% 16%;
    border-radius: 0 0 0 28px;
  }

  .history-hero::after {
    background:
      linear-gradient(0deg, var(--ink) 28%, rgba(29, 20, 24, 0.65) 72%, rgba(29, 20, 24, 0.24)),
      linear-gradient(90deg, rgba(29, 20, 24, 0.62), transparent);
  }

  .history-hero-copy {
    width: 100%;
  }

  .history-hero h1 {
    font-size: clamp(49px, 14vw, 70px);
  }

  .history-summary {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }

  .history-summary div {
    min-width: 0;
    padding: 16px 8px;
  }

  .history-summary strong {
    font-size: 26px;
  }

  .archive-section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .archive-controls {
    grid-template-columns: 1fr;
  }

  .archive-sort {
    justify-content: space-between;
  }

  .season-grid {
    grid-template-columns: 1fr;
  }

  .season-card {
    min-height: 320px;
  }

  .dialog-shell {
    padding: 34px 20px 28px;
  }

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

  .placement-row {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .placement-vote {
    grid-column: 2;
    text-align: left;
  }

  .voting-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .voting-round summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .voting-tally {
    text-align: left;
  }

  .vote-phase-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vote-phase-heading > strong {
    grid-column: 2;
  }

  .individual-votes {
    grid-template-columns: 1fr;
  }

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

  .vote-arrow {
    text-align: left;
  }

  .final-tribal {
    padding: 20px 14px;
  }

  .final-tribal-heading,
  .finalist-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .finalist-result {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Schedule calendar */
.schedule-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(229, 72, 77, 0.1), transparent 28%),
    var(--ink);
}

.schedule-page .site-header {
  background: rgba(23, 19, 22, 0.9);
  border-color: var(--line);
}

.schedule-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  overflow: hidden;
  padding: 160px max(5vw, 28px) 76px;
  background: #241a20;
}

.schedule-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.95) 0%, rgba(29, 20, 24, 0.65) 46%, rgba(29, 20, 24, 0.2)),
    linear-gradient(0deg, var(--ink), transparent 34%);
}

.schedule-hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(229, 72, 77, 0.2), transparent 56%),
    #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  opacity: 0.68;
}

.schedule-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 62vw);
}

.schedule-hero h1 {
  margin: 18px 0;
  font-size: clamp(70px, 9vw, 132px);
  line-height: 0.78;
}

.schedule-hero-copy > p {
  max-width: 620px;
  color: #ded2d5;
  font-size: 16px;
  line-height: 1.8;
}

.schedule-summary {
  position: absolute;
  z-index: 2;
  right: max(5vw, 28px);
  bottom: 78px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(31, 24, 28, 0.82);
  backdrop-filter: blur(14px);
}

.schedule-summary div {
  min-width: 120px;
  padding: 18px 22px;
  text-align: center;
}

.schedule-summary div + div {
  border-left: 1px solid var(--line);
}

.schedule-summary strong,
.schedule-summary span {
  display: block;
}

.schedule-summary strong {
  font-family: var(--display);
  font-size: 28px;
}

.schedule-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-section {
  width: min(1500px, 92%);
  margin: 0 auto;
  padding: 110px 0 130px;
}

.calendar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.calendar-heading h2 {
  margin-top: 8px;
  font-size: clamp(50px, 7vw, 88px);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-controls button,
.calendar-controls select {
  height: 46px;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 248, 242, 0.04);
  font: inherit;
}

.calendar-controls button {
  width: 46px;
  border-radius: 12px;
  cursor: pointer;
}

.calendar-controls button:hover:not(:disabled),
.calendar-controls select:hover {
  border-color: rgba(229, 72, 77, 0.65);
  background: rgba(229, 72, 77, 0.1);
}

.calendar-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-controls select {
  min-width: 110px;
  padding: 0 34px 0 16px;
  border-radius: 12px;
  color-scheme: dark;
  cursor: pointer;
}

.calendar-controls select option {
  color: var(--white);
  background: var(--surface);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.calendar-key {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.calendar-key.upcoming {
  background: #e8a744;
  box-shadow: 0 0 0 4px rgba(232, 167, 68, 0.12);
}

.year-calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.calendar-month {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 248, 242, 0.025);
}

.calendar-month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(229, 72, 77, 0.12), transparent 64%),
    rgba(255, 248, 242, 0.025);
}

.calendar-month-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 23px;
}

.calendar-month-heading span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.calendar-weekday {
  padding: 9px 4px;
  color: var(--muted);
  background: #171215;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 76px;
  padding: 8px 6px;
  background: var(--surface);
}

.calendar-day.blank {
  background: rgba(12, 9, 11, 0.72);
}

.calendar-day.today::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

.calendar-day-number {
  color: #82787c;
  font-size: 10px;
  font-weight: 700;
}

.calendar-day.has-event {
  background:
    linear-gradient(145deg, rgba(229, 72, 77, 0.09), transparent 68%),
    var(--surface);
}

.calendar-event {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(229, 72, 77, 0.42);
  border-radius: 7px;
  color: var(--white);
  background: rgba(229, 72, 77, 0.12);
  cursor: pointer;
  text-align: left;
}

.calendar-event:hover {
  border-color: var(--red);
  background: rgba(229, 72, 77, 0.22);
}

.calendar-event.upcoming {
  border-color: rgba(232, 167, 68, 0.62);
  background: rgba(232, 167, 68, 0.12);
}

.calendar-event.upcoming:hover {
  border-color: #e8a744;
  background: rgba(232, 167, 68, 0.22);
}

.calendar-event strong,
.calendar-event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event strong {
  font-size: 9px;
}

.calendar-event span {
  margin-top: 2px;
  font-size: 9px;
}

.schedule-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--white);
  background: var(--surface);
}

.schedule-dialog::backdrop {
  background: rgba(5, 4, 5, 0.82);
  backdrop-filter: blur(7px);
}

.schedule-dialog-shell {
  position: relative;
  padding: 46px;
  background:
    radial-gradient(circle at 100% 0, rgba(229, 72, 77, 0.22), transparent 42%),
    var(--surface);
}

.schedule-dialog.upcoming .schedule-dialog-shell {
  background:
    radial-gradient(circle at 100% 0, rgba(232, 167, 68, 0.24), transparent 42%),
    var(--surface);
}

.schedule-dialog-season {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-dialog h2 {
  margin: 4px 0 8px;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 0.95;
}

.schedule-dialog-date {
  color: #e8a744;
  font-weight: 700;
}

.schedule-dialog-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.schedule-dialog-details div {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 248, 242, 0.035);
}

.schedule-dialog-details span,
.schedule-dialog-details strong {
  display: block;
}

.schedule-dialog-details span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-dialog-details strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .schedule-hero-copy {
    width: 100%;
  }

  .schedule-summary {
    right: max(5vw, 28px);
    bottom: 30px;
    left: max(5vw, 28px);
    justify-content: center;
  }

  .schedule-summary div {
    flex: 1;
  }

  .year-calendar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .schedule-hero {
    min-height: 700px;
    padding-top: 135px;
    padding-bottom: 170px;
  }

  .schedule-hero h1 {
    font-size: clamp(58px, 18vw, 82px);
  }

  .schedule-summary div {
    min-width: 0;
    padding: 14px 7px;
  }

  .schedule-summary strong {
    font-size: 21px;
  }

  .calendar-section {
    width: min(96%, 620px);
    padding-top: 82px;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-controls {
    width: 100%;
  }

  .calendar-controls label {
    flex: 1;
  }

  .calendar-controls select {
    width: 100%;
  }

  .calendar-day {
    min-height: 64px;
    padding: 6px 3px;
  }

  .calendar-event {
    padding: 4px 3px;
  }

  .calendar-event span {
    display: none;
  }

  .schedule-dialog-shell {
    padding: 42px 22px 28px;
  }

  .schedule-dialog-details {
    grid-template-columns: 1fr;
  }
}

/* About page */
.about-page {
  background:
    radial-gradient(circle at 85% 18%, rgba(229, 72, 77, 0.1), transparent 26%),
    var(--ink);
}

.about-page .site-header {
  background: rgba(23, 19, 22, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.about-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  padding: 170px clamp(24px, 8vw, 150px) 110px;
  overflow: hidden;
  background: #241a20;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.98) 0%, rgba(29, 20, 24, 0.88) 47%, rgba(29, 20, 24, 0.2) 78%),
    linear-gradient(0deg, var(--ink), transparent 30%);
}

.about-hero-map {
  position: absolute;
  inset: 8% -4% 8% 48%;
  border-radius: 34px 0 0 34px;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.72) contrast(1.05) brightness(0.68) hue-rotate(62deg);
  transform: rotate(2deg);
}

.about-hero-copy {
  position: relative;
  z-index: 2;
  width: min(790px, 66vw);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.back-link span {
  color: var(--red);
  font-size: 18px;
}

.about-hero h1 {
  margin: 20px 0 28px;
  font-size: clamp(62px, 8vw, 118px);
}

.about-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #ded2d5;
  font-size: clamp(17px, 1.5vw, 21px);
}

.about-year-card {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 6vw, 110px);
  bottom: 72px;
  width: 220px;
  padding: 28px;
  border-radius: 22px;
  color: #281b12;
  background: #e8a744;
  box-shadow: 0 8px 0 #a96c22;
  transform: rotate(2deg);
}

.about-year-card span,
.about-year-card small {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.about-year-card strong {
  display: block;
  margin: 5px 0;
  font-family: var(--display);
  font-size: 62px;
  line-height: 1;
}

.about-year-card small {
  color: rgba(40, 27, 18, 0.7);
  font-weight: 600;
  line-height: 1.4;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1.25fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  padding: 130px clamp(24px, 8vw, 150px);
}

.story-aside {
  position: sticky;
  top: 120px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 248, 242, 0.035);
}

.story-aside > p {
  margin: 20px 0 26px;
  color: #e4dadd;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.25;
}

.aside-rule {
  height: 1px;
  margin: 0 0 24px;
  background: var(--line);
}

.aside-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-aside ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.story-aside li {
  position: relative;
  margin: 11px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.story-aside li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.story-copy {
  min-width: 0;
}

.story-section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 110px;
}

.story-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--red-dark);
}

.story-section h2 {
  margin: 16px 0 32px;
  font-size: clamp(48px, 5.4vw, 76px);
}

.story-section p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.story-section .lead {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.45;
}

.story-quote {
  position: relative;
  margin: 0 0 110px 76px;
  padding: 42px 48px;
  border-radius: 24px;
  color: #281b12;
  background: #e8a744;
  box-shadow: 0 7px 0 #a96c22;
  transform: rotate(-1deg);
}

.story-quote::before {
  content: "“";
  position: absolute;
  top: -22px;
  left: 28px;
  color: rgba(40, 27, 18, 0.18);
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
}

.story-quote blockquote {
  position: relative;
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
}

.story-quote span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -60px 0 120px 76px;
}

.format-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.format-card > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.format-card h3 {
  margin: 42px 0 14px;
  font-size: 27px;
}

.format-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.about-closing {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: center;
  padding: 110px clamp(24px, 8vw, 150px);
  background:
    radial-gradient(circle at 20% 50%, rgba(229, 72, 77, 0.14), transparent 30%),
    var(--surface);
}

.closing-logo {
  position: relative;
  width: min(100%, 380px);
  transform: rotate(-2deg);
}

.closing-logo::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 3px solid #e8a744;
  border-radius: 30px;
  transform: rotate(5deg);
}

.closing-logo img {
  position: relative;
  width: 100%;
  border-radius: 24px;
}

.closing-copy {
  max-width: 700px;
}

.closing-copy h2 {
  margin-bottom: 28px;
}

.closing-copy > p {
  max-width: 570px;
  margin: 0 0 34px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .about-hero {
    min-height: 720px;
  }

  .about-hero-copy {
    width: 82%;
  }

  .about-year-card {
    right: 32px;
    bottom: 36px;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .story-aside {
    position: static;
    max-width: 620px;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: 0;
  }

  .format-card h3 {
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .about-hero {
    min-height: 760px;
    align-items: flex-end;
    padding-top: 130px;
    padding-bottom: 150px;
  }

  .about-hero-map {
    inset: 72px 0 42% 18%;
    border-radius: 0 0 0 28px;
  }

  .about-hero::after {
    background:
      linear-gradient(0deg, var(--ink) 24%, rgba(29, 20, 24, 0.64) 72%, rgba(29, 20, 24, 0.25)),
      linear-gradient(90deg, rgba(29, 20, 24, 0.64), transparent);
  }

  .about-hero-copy {
    width: 100%;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .about-hero h1 {
    font-size: clamp(52px, 15vw, 74px);
  }

  .about-year-card {
    right: 24px;
    bottom: 28px;
    width: 180px;
    padding: 20px;
  }

  .about-year-card strong {
    font-size: 48px;
  }

  .about-story {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 82px;
  }

  .story-quote,
  .format-grid {
    margin-right: 0;
    margin-left: 0;
  }

  .story-quote {
    padding: 36px 28px;
    margin-bottom: 90px;
  }

  .format-grid {
    margin-top: -34px;
    margin-bottom: 90px;
  }

  .about-closing {
    grid-template-columns: 1fr;
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .closing-logo {
    width: min(78vw, 340px);
    margin: 0 auto;
  }
}

/* Casual clubhouse theme */
body {
  background:
    radial-gradient(circle at 15% 18%, rgba(229, 72, 77, 0.08), transparent 28%),
    var(--ink);
}

.site-header {
  height: 92px;
}

.site-header.scrolled {
  height: 74px;
  background: rgba(23, 19, 22, 0.9);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 3px solid #fff8f2;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
}

.brand-copy strong {
  font-size: 22px;
}

.brand-copy span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
}

.main-nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 19, 22, 0.54);
  backdrop-filter: blur(12px);
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.main-nav a::after {
  display: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: var(--red);
}

.hero {
  min-height: min(920px, 100svh);
  background: #291a20;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.98) 0%, rgba(29, 20, 24, 0.78) 42%, rgba(29, 20, 24, 0.12) 76%),
    linear-gradient(0deg, var(--ink), transparent 25%);
}

.hero-art {
  inset: 3% -3% 3% 40%;
  border-radius: 40px 0 0 40px;
  filter: saturate(0.82) contrast(1.02) brightness(0.8) hue-rotate(62deg);
  transform: rotate(1.5deg) scale(1.04);
}

.hero-art::after {
  background: linear-gradient(135deg, rgba(229, 72, 77, 0.22), rgba(56, 27, 37, 0.02) 60%);
}

.hero-grid {
  opacity: 0.06;
  background-size: 72px 72px;
}

.hero-content {
  width: min(760px, 64vw);
}

.eyebrow,
.section-kicker,
.event-tag {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffd8d3;
  background: rgba(229, 72, 77, 0.16);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

h1,
h2,
h3 {
  line-height: 1;
  text-transform: none;
}

h1 {
  max-width: 850px;
  margin: 28px 0;
  font-size: clamp(64px, 8vw, 116px);
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  font-style: normal;
}

.hero-content > p {
  max-width: 620px;
  color: #ddd2d4;
  font-size: clamp(16px, 1.25vw, 19px);
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.button-primary {
  box-shadow: 0 5px 0 var(--red-dark), 0 14px 28px rgba(229, 72, 77, 0.15);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--red-dark), 0 16px 30px rgba(229, 72, 77, 0.2);
}

.button-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--red-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 248, 242, 0.08);
}

.hero-status {
  border-radius: 16px;
  background: rgba(31, 24, 28, 0.76);
}

.hero-status small,
.hero-status strong {
  font-family: var(--body);
  letter-spacing: 0.04em;
}

.scroll-cue {
  font-family: var(--body);
  letter-spacing: 0.1em;
}

.section {
  padding-top: 110px;
  padding-bottom: 110px;
}

.schedule-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(229, 72, 77, 0.11), transparent 30%),
    var(--ink);
}

h2 {
  margin-top: 12px;
  font-size: clamp(50px, 5.8vw, 82px);
  letter-spacing: -0.035em;
}

.text-link {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 248, 242, 0.07);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.event-grid {
  gap: 24px;
}

.featured-event,
.info-card,
.quote-card {
  border-color: rgba(255, 248, 242, 0.14);
  border-radius: 28px;
}

.featured-event {
  min-height: 580px;
}

.event-map {
  filter: saturate(0.72) contrast(1.05) brightness(0.7) hue-rotate(62deg);
}

.event-shade {
  background:
    linear-gradient(0deg, rgba(23, 16, 20, 0.98), rgba(23, 16, 20, 0.05) 76%),
    linear-gradient(90deg, rgba(177, 42, 55, 0.18), transparent 55%);
}

.event-date {
  top: 20px;
  right: 20px;
  min-width: 120px;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--red-dark);
}

.event-date strong,
.event-date span {
  font-family: var(--display);
}

.event-content h3 {
  font-size: clamp(42px, 4.6vw, 64px);
}

.info-card {
  background: #292126;
}

.card-icon {
  border-radius: 15px;
  background: rgba(229, 72, 77, 0.12);
  transform: rotate(-3deg);
}

.info-card h3 {
  font-size: 34px;
}

.card-link,
.quote-card span {
  font-family: var(--body);
  letter-spacing: 0.04em;
  text-transform: none;
}

.quote-card {
  border-left: 1px solid var(--line);
  background: #e8a744;
  color: #281b12;
  transform: rotate(1deg);
}

.quote-card blockquote {
  font-size: 24px;
  text-transform: none;
}

.quote-card span {
  color: rgba(40, 27, 18, 0.7);
}

.legacy-section {
  background:
    radial-gradient(circle at 12% 30%, rgba(229, 72, 77, 0.1), transparent 30%),
    #241d21;
}

.stat-stack {
  display: grid;
  gap: 12px;
  border: 0;
}

.stat-card {
  color: inherit;
  grid-template-columns: 46px 1fr auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.035);
}

.stat-card:hover {
  padding: 24px 30px;
  border-color: rgba(229, 72, 77, 0.45);
  background: rgba(229, 72, 77, 0.07);
}

.stat-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--red);
  font-family: var(--body);
}

.stat-card strong {
  font-size: 20px;
  text-transform: none;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(23, 19, 22, 0.96), rgba(23, 19, 22, 0.78)),
    radial-gradient(circle at 20% 50%, rgba(229, 72, 77, 0.2), transparent 30%);
}

.about-mark {
  max-width: 390px;
  transform: rotate(-2deg);
}

.about-mark::before {
  inset: -13px;
  border: 3px solid #e8a744;
  border-radius: 30px;
  transform: rotate(5deg);
}

.about-mark img {
  border-radius: 24px;
}

.site-footer {
  background: #100d0f;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: none;
}

@media (max-width: 980px) {
  .main-nav {
    inset: 0;
    border: 0;
    border-radius: 0;
    background: rgba(23, 19, 22, 0.98);
  }

  .main-nav a {
    padding: 10px 24px;
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 820px;
  }

  .hero-art {
    inset: 0 0 42% 0;
    border-radius: 0 0 28px 28px;
    transform: none;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--ink) 22%, rgba(23, 19, 22, 0.45) 74%, rgba(23, 19, 22, 0.18)),
      linear-gradient(90deg, rgba(23, 19, 22, 0.65), transparent);
  }

  h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .featured-event {
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Photos and moments page */
.moments-page {
  background:
    radial-gradient(circle at 84% 14%, rgba(232, 167, 68, 0.12), transparent 26%),
    radial-gradient(circle at 14% 26%, rgba(229, 72, 77, 0.1), transparent 28%),
    var(--ink);
}

.moments-page .site-header {
  background: rgba(23, 19, 22, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.moments-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  padding: 170px clamp(24px, 8vw, 150px) 96px;
  overflow: hidden;
  background: #241a20;
}

.moments-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 20, 24, 0.98) 0%, rgba(29, 20, 24, 0.84) 45%, rgba(29, 20, 24, 0.24) 76%),
    linear-gradient(0deg, var(--ink), transparent 30%);
}

.moments-hero-art {
  position: absolute;
  inset: 9% -4% 9% 45%;
  border-radius: 36px 0 0 36px;
  background: #9d45dd url("images/aeonian_background.png") center / cover no-repeat;
  filter: saturate(0.72) contrast(1.05) brightness(0.64) hue-rotate(62deg);
  transform: rotate(1.5deg);
}

.moments-hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 68vw);
}

.moments-hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(62px, 8vw, 118px);
}

.moments-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #ded2d5;
  font-size: clamp(17px, 1.5vw, 21px);
}

.video-section {
  padding: 120px clamp(24px, 8vw, 150px);
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 248, 242, 0.035);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(229, 72, 77, 0.18), rgba(232, 167, 68, 0.1)),
    var(--surface);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-copy {
  padding: 24px 26px 28px;
}

.video-card-copy span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card-copy h3 {
  margin: 10px 0 10px;
  font-size: 30px;
}

.video-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

  .moments-hero-copy {
    width: 82%;
  }
}

@media (max-width: 720px) {
  .moments-hero {
    min-height: 680px;
    padding-top: 130px;
  }

  .moments-hero-art {
    inset: 72px 0 42% 16%;
    border-radius: 0 0 0 28px;
  }

  .moments-hero::after {
    background:
      linear-gradient(0deg, var(--ink) 24%, rgba(29, 20, 24, 0.64) 72%, rgba(29, 20, 24, 0.25)),
      linear-gradient(90deg, rgba(29, 20, 24, 0.64), transparent);
  }

  .moments-hero-copy {
    width: 100%;
  }

  .moments-hero h1 {
    font-size: clamp(52px, 15vw, 74px);
  }

  .video-section {
    padding-top: 86px;
    padding-bottom: 86px;
  }
}
