:root {
  color-scheme: dark;
  --text: #f7f0dc;
  --muted: #bfc9c4;
  --dim: #7d8d89;
  --panel: rgba(14, 22, 25, 0.82);
  --panel-strong: rgba(8, 13, 16, 0.92);
  --line: rgba(190, 224, 214, 0.18);
  --mint: #69d0aa;
  --amber: #e2b14f;
  --red: #d96a4c;
  --violet: #9b87d9;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 0%, rgba(105, 208, 170, 0.18), transparent 34%),
    linear-gradient(180deg, #0b1114, #151512 58%, #0a0d0e);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 16, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.footer a:hover {
  color: var(--mint);
}

.playfield {
  position: relative;
  min-height: min(760px, calc(100vh - 66px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  align-items: end;
  gap: 28px;
  padding: clamp(92px, 13vw, 154px) clamp(18px, 5vw, 64px) clamp(58px, 8vw, 88px);
  overflow: hidden;
}

.playfield::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 13, 0.94), rgba(7, 11, 13, 0.42) 52%, rgba(7, 11, 13, 0.82)),
    linear-gradient(180deg, transparent 62%, #0b1012);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.launcher {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 7.5vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.launcher > p {
  max-width: 620px;
  font-size: 1.06rem;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  width: fit-content;
  margin: 26px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 13, 16, 0.58);
}

.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.status small {
  color: var(--dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.class-tab {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  padding: 0 18px;
}

.button--primary {
  color: #07100d;
  background: linear-gradient(180deg, #93eccb, #3fa37b);
  border-color: rgba(147, 236, 203, 0.55);
}

.button--secondary,
.class-tab {
  color: var(--text);
  background: rgba(14, 22, 25, 0.7);
}

.queue,
.news-grid article,
.hero-panel,
.event-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.queue {
  align-self: end;
  padding: 22px;
}

.queue span {
  display: block;
  color: var(--muted);
}

.queue strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 2.7rem;
  line-height: 1;
}

.progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 224, 214, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--mint));
}

.queue p {
  margin: 14px 0 0;
}

.news,
.heroes,
.events {
  padding: clamp(48px, 8vw, 84px) clamp(18px, 5vw, 64px);
}

.news {
  background: #101617;
}

.section-title {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.news-grid article {
  min-height: 230px;
  padding: 22px;
}

.news-grid time {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--amber);
  font-weight: 800;
}

.news-grid p {
  margin-bottom: 0;
}

.heroes {
  background:
    linear-gradient(180deg, rgba(13, 16, 16, 0.96), rgba(21, 21, 18, 0.94)),
    url("./assets/rune-pattern.svg");
}

.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.class-tab {
  min-width: 112px;
  padding: 0 14px;
}

.class-tab.is-active {
  color: #dffdef;
  border-color: rgba(105, 208, 170, 0.62);
  background: rgba(105, 208, 170, 0.16);
}

.hero-panel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(220px, 320px);
  gap: 22px;
  align-items: center;
  max-width: 1080px;
  padding: 24px;
}

.hero-panel__icon {
  width: 92px;
  height: 92px;
}

.hero-panel__role {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel p {
  margin-bottom: 0;
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-panel div:has(dt) {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
}

.hero-panel dt {
  color: var(--dim);
  font-size: 0.82rem;
}

.hero-panel dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.events {
  background: #0b1012;
}

.event-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.event-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
}

.event-list img {
  width: 64px;
  height: 64px;
}

.event-list p {
  margin-bottom: 0;
}

.event-list span {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--dim);
  border-top: 1px solid var(--line);
  background: #080c0e;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .playfield,
  .news-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .playfield {
    min-height: auto;
  }

  .queue {
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .playfield {
    padding-top: 68px;
  }

  .status {
    width: 100%;
  }

  .hero-panel dl {
    grid-template-columns: 1fr;
  }

  .event-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .event-list img {
    width: 54px;
    height: 54px;
  }

  .event-list span {
    grid-column: 2;
  }

  .footer {
    flex-direction: column;
  }
}
