@font-face {
  font-family: "UTMain";
  src: url("../assets/Font/Main_Font_MCUIE.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #06131b;
  --panel: rgba(21, 21, 21, 0.14);
  --panel-strong: rgba(42, 42, 42, 0.24);
  --line: rgba(255, 255, 255, 0.32);
  --text: #f6ffff;
  --muted: rgba(238, 255, 255, 0.78);
  --cyan: #39f5ff;
  --blue: #4999ff;
  --green: #7cffba;
  --violet: #be8cff;
  --pink: #ff65d9;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "UTMain", "Trebuchet MS", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(57, 245, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(255, 101, 217, 0.18), transparent 24rem),
    linear-gradient(140deg, #03101a 0%, #09263c 45%, #071a22 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../assets/images/BG.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.08) brightness(0.54);
  transform: scale(1.03);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(2, 16, 25, 0.86)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.16), transparent 40rem);
  pointer-events: none;
}

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

p {
  line-height: 1.75;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 78%, transparent);
}

.corner-character {
  position: fixed;
  left: clamp(-52px, -2.2vw, -18px);
  bottom: -20px;
  width: clamp(150px, 20vw, 330px);
  z-index: 11;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.58));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(7, 36, 54, 0.68), rgba(7, 36, 54, 0.22));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(1.45);
  transition: padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 0.55rem;
  background: rgba(3, 18, 29, 0.88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  object-fit: contain;
  transition: opacity 180ms ease, transform 180ms ease, width 180ms ease, height 180ms ease;
}

.brand-main {
  width: min(310px, 48vw);
  max-height: 70px;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}

.brand-scroll {
  position: absolute;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  opacity: 0;
  transform: scale(0.85) rotate(-5deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0 22px rgba(49, 123, 255, 0.5);
}

.site-header.is-scrolled .brand-main {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  width: 70px;
}

.site-header.is-scrolled .brand-scroll {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-link,
.discord-link,
.button,
.music-toggle,
.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 20px rgba(0, 0, 0, 0.17);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.nav-link,
.discord-link {
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.discord-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  border-color: rgba(57, 245, 255, 0.75);
  background: linear-gradient(180deg, rgba(57, 245, 255, 0.36), rgba(29, 94, 168, 0.26));
}

.discord-link {
  background: linear-gradient(180deg, rgba(92, 122, 255, 0.68), rgba(71, 72, 205, 0.56));
}

.menu-toggle {
  display: none;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
}

.hero-section,
.sub-hero,
.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-section {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(4rem, 8vw, 8rem) 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 7rem 0 auto;
  height: 470px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(57, 245, 255, 0.0), rgba(57, 245, 255, 0.18), rgba(255, 101, 217, 0.0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(14px);
}

.glass-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.07)),
    rgba(6, 31, 47, 0.48);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -24px 42px rgba(14, 70, 92, 0.14),
    0 30px 70px var(--shadow);
  backdrop-filter: blur(18px) saturate(1.5);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 26%, transparent 67%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 20% 0%, rgba(57, 245, 255, 0.19), transparent 19rem);
}

.hero-panel,
.hero-side,
.page-title-card,
.big-card,
.info-card,
.rules-panel,
.game-card,
.checklist-card,
.placeholder-tile,
.member-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero-panel,
.hero-side,
.page-title-card,
.big-card,
.info-card,
.rules-panel,
.game-card,
.checklist-card,
.placeholder-tile,
.member-card > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 8.2rem);
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.22), 0 0 25px rgba(57, 245, 255, 0.34);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.1rem;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.hero-copy,
.page-title-card p,
.big-card p,
.info-card p,
.checklist-card li,
.game-card p,
.member-card p,
.site-footer p {
  color: var(--muted);
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: transform 160ms ease, filter 160ms ease;
}

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

.button.primary {
  background: linear-gradient(180deg, rgba(57, 245, 255, 0.92), rgba(41, 109, 255, 0.78));
  color: #031521;
  text-shadow: none;
}

.button.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.08));
}

.button.small {
  min-height: 38px;
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
}

.hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-light {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: var(--green);
  box-shadow: 0 0 18px var(--green), 0 0 42px rgba(124, 255, 186, 0.5);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.stat-grid div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-grid strong {
  display: block;
  font-size: 1.7rem;
  color: var(--cyan);
}

.stat-grid span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.section-shell {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.about-layout,
.game-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 1rem;
}

.tile-stack,
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metro-tile {
  min-height: 146px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.metro-tile span {
  font-size: 1.2rem;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.metro-tile.cyan { background: linear-gradient(135deg, rgba(57, 245, 255, 0.88), rgba(0, 91, 145, 0.76)); }
.metro-tile.green { background: linear-gradient(135deg, rgba(124, 255, 186, 0.86), rgba(0, 126, 92, 0.72)); }
.metro-tile.blue { background: linear-gradient(135deg, rgba(73, 153, 255, 0.88), rgba(35, 57, 199, 0.78)); }
.metro-tile.violet { background: linear-gradient(135deg, rgba(190, 140, 255, 0.88), rgba(92, 38, 142, 0.78)); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.member-card {
  min-height: 126px;
  border-radius: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 245, 255, 0.72);
}

.member-card p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.sub-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 2rem;
}

.page-title-card {
  max-width: 840px;
}

.page-title-card h1 {
  font-size: clamp(3.8rem, 9vw, 7.4rem);
}

.game-layout {
  align-items: stretch;
}

.game-card.featured {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-badge {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 255, 186, 0.18);
  border: 1px solid rgba(124, 255, 186, 0.4);
  color: var(--green);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.project-tags span {
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.76rem;
}

.checklist-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

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

.placeholder-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.placeholder-tile span {
  font-size: 2rem;
  color: var(--cyan);
}

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

.rules-panel {
  max-height: none;
}

.rules-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  margin: 0;
  padding-left: 1.4rem;
}

.rules-list li {
  padding: 0.72rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  line-height: 1.55;
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 0.78rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.music-toggle.is-playing {
  background: linear-gradient(180deg, rgba(124, 255, 186, 0.8), rgba(29, 159, 111, 0.68));
  color: #04130e;
  text-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-section,
  .about-layout,
  .game-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 3rem;
  }

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

  .rules-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(3, 18, 29, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link,
  .discord-link {
    text-align: center;
  }

  .tile-stack {
    grid-template-columns: 1fr;
  }

  .corner-character {
    opacity: 0.42;
    width: 155px;
  }

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

  .section-heading.with-action {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
