/* ==========================================================================
   AlmahMU Official Portal Identity — Obsidian / Sapphire / Ice-Cyan
   Aligned with almahmu.online landing DNA + custom Season 22 Portal UX
   ========================================================================== */

:root,
body.v3 {
  --al-void: #03060f;
  --al-obsidian: #060c1c;
  --al-navy: #0a142d;
  --al-elevated: #0c1730;
  --al-ink: #eef4ff;
  --al-silver: #d4e1f5;
  --al-muted: #8ea3c6;
  --al-dim: #5e7396;
  --al-ice: #73d4ff;
  --al-ice-bright: #b8ecff;
  --al-sapphire: #2478ff;
  --al-sapphire-deep: #1246b5;
  --al-emerald: #36e2b4;
  --al-line: rgba(115, 212, 255, 0.14);
  --al-line-strong: rgba(115, 212, 255, 0.34);
  --al-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --al-sans: "Outfit", "Be Vietnam Pro", "Golos Text", system-ui, -apple-system, sans-serif;

  /* Core v3 design system overrides */
  --bg: #03060f;
  --bg-2: #060c1c;
  --surface: #060c1c;
  --card: #091228;
  --text: #eef4ff;
  --dim: #b9cae6;
  --faint: #8ea3c6;
  --accent: #2478ff;
  --accent-2: #73d4ff;
  --accent-rgb: 36 120 255;
  --live: #36e2b4;
  --line: rgba(115, 212, 255, 0.14);
  --line-hi: rgba(115, 212, 255, 0.34);
  --glass: rgba(6, 12, 28, 0.78);
  --glass-hi: rgba(11, 21, 46, 0.9);
  --font: var(--al-sans);
  --head: var(--al-display);
  --radius: 16px;
}

html {
  background: var(--al-void);
  color-scheme: dark;
}

body.v3 {
  position: relative;
  min-height: 100dvh;
  background: var(--al-void) !important;
  color: var(--al-ink);
  font-family: var(--al-sans);
  overflow-x: hidden;
}

body.v3::before,
body.v3::after {
  display: none !important;
}

/* ---------------- Atmospheric Backdrop & Border Frame ---------------- */
.al-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 52% at 18% 12%, rgba(36, 120, 255, 0.18), transparent 68%),
    radial-gradient(54% 48% at 86% 22%, rgba(115, 212, 255, 0.12), transparent 66%),
    linear-gradient(180deg, rgba(3, 6, 15, 0.54) 0%, rgba(3, 6, 15, 0.86) 58%, #03060f 100%),
    url("/brand/almah-bg.jpg") center top / cover no-repeat;
  background-color: var(--al-void);
}

.al-aura {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(88px);
}

.al-aura-left {
  width: 520px;
  height: 520px;
  left: -180px;
  top: 120px;
  background: radial-gradient(circle, rgba(36, 120, 255, 0.22), transparent 72%);
}

.al-aura-right {
  width: 460px;
  height: 460px;
  right: -160px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(115, 212, 255, 0.16), transparent 72%);
}

.al-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(115, 212, 255, 0.12);
  border-radius: 3px;
  pointer-events: none;
  z-index: 28;
}

.al-frame::before,
.al-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(115, 212, 255, 0.45);
  border-style: solid;
}

.al-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.al-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

body.v3 main,
body.v3 footer.ft {
  position: relative;
  z-index: 2;
}

/* Typography alignment across headings */
body.v3 h1,
body.v3 h2,
body.v3 .al-title,
body.v3 .al-sec-title,
body.v3 .xp-head h1,
body.v3 .kb-head h1,
body.v3 .zpk-heading h2 {
  font-family: var(--al-display);
  letter-spacing: -0.01em;
}

/* ---------------- Top Command Navigation Bar ---------------- */
.v3 .nav {
  background: rgba(4, 8, 20, 0.84) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--al-line) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.46), inset 0 -1px 0 rgba(115, 212, 255, 0.08);
}

.v3 .nav .wpick-nav {
  display: none !important;
}

.v3 .nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.al-nav-mark {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(115, 212, 255, 0.42));
}

.al-nav-word {
  font-family: var(--al-display);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: 0.14em;
  color: var(--al-ink);
  line-height: 1;
  white-space: nowrap;
}

.al-nav-word em {
  font-style: normal;
  color: var(--al-ice);
  margin-left: 2px;
}

.al-nav-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(115, 212, 255, 0.24);
  background: rgba(36, 120, 255, 0.12);
  color: var(--al-ice-bright);
  font-family: var(--al-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v3 .nav-top {
  border-radius: 9px !important;
  color: var(--al-silver);
  font-weight: 500;
}

.v3 .nav-top:hover,
.v3 .nav-top[aria-current="page"] {
  color: var(--al-ink);
  background: rgba(36, 120, 255, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(115, 212, 255, 0.18);
}

.v3 .nav-menu,
.v3 .nav-dlm-menu,
.v3 .lang-menu {
  background: rgba(6, 12, 28, 0.96) !important;
  border: 1px solid rgba(115, 212, 255, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(184, 236, 255, 0.14) !important;
}

.v3 .nav-menu a,
.v3 .nav-dlm-menu a,
.v3 .lang-menu a {
  border-radius: 10px !important;
}

.v3 .nav-dl,
.v3 .nav-dlm-btn,
.v3 .nav-login,
.v3 .nav-cta,
.v3 .nav-account .btn {
  border-radius: 11px !important;
}

.v3 .nav-dl,
.v3 .nav-dlm-btn,
.v3 .nav-login {
  border-color: rgba(115, 212, 255, 0.28) !important;
  background: rgba(10, 20, 45, 0.8) !important;
  color: var(--al-ink) !important;
}

.v3 .nav-cta,
.v3 .btn.btn-primary,
.v3 .x-btn.x-btn-pri {
  background: linear-gradient(135deg, var(--al-sapphire-deep) 0%, var(--al-sapphire) 56%, var(--al-ice) 128%) !important;
  border: 1px solid rgba(184, 236, 255, 0.42) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(36, 120, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  font-weight: 700;
}

.v3 .nav-cta:hover,
.v3 .btn.btn-primary:hover,
.v3 .x-btn.x-btn-pri:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(36, 120, 255, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.v3 .btn,
.v3 .x-btn {
  border-radius: 12px !important;
}

.v3 .x-btn-sec,
.v3 .btn-ghost {
  background: rgba(10, 20, 45, 0.72) !important;
  border: 1px solid rgba(115, 212, 255, 0.28) !important;
  color: var(--al-ink) !important;
}

.v3 .x-btn-sec:hover,
.v3 .btn-ghost:hover {
  background: rgba(18, 70, 181, 0.26) !important;
  border-color: var(--al-ice) !important;
}

/* ---------------- Beveled Obsidian Cards & Inputs Across Portal ---------------- */
.v3 .x-card,
.v3 .kb-card,
.v3 .zpk-card,
.v3 .pa-g,
.v3 .pa-hero,
.v3 .zr-notice,
.v3 .zr-account-alerts > div,
.v3 .zr-wallet {
  background: linear-gradient(180deg, rgba(11, 21, 46, 0.88), rgba(6, 12, 28, 0.92)) !important;
  border: 1px solid rgba(115, 212, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(184, 236, 255, 0.14) !important;
}

.v3 input:not([type="checkbox"]):not([type="radio"]),
.v3 select,
.v3 textarea {
  background: rgba(4, 9, 22, 0.92) !important;
  border: 1px solid rgba(115, 212, 255, 0.22) !important;
  border-radius: 11px !important;
  color: var(--al-ink) !important;
}

.v3 input:focus,
.v3 select:focus,
.v3 textarea:focus {
  outline: none;
  border-color: var(--al-ice) !important;
  box-shadow: 0 0 0 3px rgba(115, 212, 255, 0.14) !important;
}

.v3 .kb-chips button,
.v3 .cls-chip,
.v3 .pe-tabs button,
.v3 .pe-tabs a,
.v3 .dn-tabs button {
  border-radius: 10px !important;
}

/* ---------------- Bespoke Home Container & Sections ---------------- */
.al-wrap {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.al-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid rgba(115, 212, 255, 0.28);
  background: rgba(10, 20, 45, 0.72);
  color: var(--al-ice-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.al-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--al-emerald);
  box-shadow: 0 0 12px var(--al-emerald);
  flex: none;
}

.al-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--al-ice);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.al-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--al-ice), transparent);
}

/* --- Section 1: Asymmetric 2-Column Command Hero --- */
.al-hero {
  padding: clamp(104px, 10vw, 134px) 0 clamp(44px, 5vw, 68px);
}

.al-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.6vw, 48px);
  align-items: start;
}

.al-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.al-hero-brandrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.al-hero-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(115, 212, 255, 0.42));
}

.al-hero-title {
  margin: 0;
  font-family: var(--al-display);
  font-size: clamp(2.35rem, 4.7vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--al-ink);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.al-hero-title .al-grad {
  display: block;
  background: linear-gradient(100deg, #eef4ff 0%, #b8ecff 42%, #73d4ff 76%, #eef4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.al-hero-lead {
  margin: 0;
  max-width: 56ch;
  color: var(--al-silver);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
}

.al-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.al-cta-primary,
.al-cta-secondary,
.al-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.al-cta-primary {
  background: linear-gradient(135deg, var(--al-sapphire-deep), var(--al-sapphire) 58%, var(--al-ice) 132%);
  border: 1px solid rgba(184, 236, 255, 0.46);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 120, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.al-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(36, 120, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.al-cta-secondary {
  background: rgba(12, 23, 48, 0.84);
  border: 1px solid rgba(115, 212, 255, 0.32);
  color: var(--al-ink);
  box-shadow: inset 0 1px 0 rgba(184, 236, 255, 0.14);
}

.al-cta-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--al-ice);
  background: rgba(18, 70, 181, 0.26);
}

.al-cta-outline {
  background: transparent;
  border: 1px solid rgba(115, 212, 255, 0.22);
  color: var(--al-ice-bright);
  padding: 0 16px;
}

.al-cta-outline:hover {
  border-color: var(--al-ice);
  background: rgba(115, 212, 255, 0.08);
}

.al-hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 6px;
}

.al-hero-quicklinks .and-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(115, 212, 255, 0.2);
  background: rgba(6, 12, 28, 0.72);
  color: var(--al-silver);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.al-hero-quicklinks .and-btn:hover {
  border-color: var(--al-ice);
  color: var(--al-ink);
  background: rgba(12, 23, 48, 0.9);
}

.al-hero-quicklinks .and-btn .ico {
  width: 15px;
  height: 15px;
  background: var(--al-ice);
  flex: none;
}

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

.al-meta-cell {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(115, 212, 255, 0.16);
  background: rgba(6, 12, 28, 0.76);
  box-shadow: inset 0 1px 0 rgba(184, 236, 255, 0.08);
}

.al-meta-cell b {
  display: block;
  font-family: var(--al-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--al-ice-bright);
  line-height: 1.2;
}

.al-meta-cell span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--al-muted);
}

/* --- Right Column: Launch Countdown & Command Panel --- */
.al-hero-side {
  display: grid;
  gap: 16px;
}

.al-launch-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(115, 212, 255, 0.26);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(36, 120, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(10, 20, 45, 0.94), rgba(5, 10, 24, 0.96));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(184, 236, 255, 0.22);
}

.al-launch-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--al-ice-bright), transparent);
}

.al-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(115, 212, 255, 0.12);
}

.al-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-ice);
}

.al-panel-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--al-silver);
}

.al-panel-sub {
  margin: 14px 0 12px;
  font-size: 13.5px;
  color: var(--al-muted);
}

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

.al-unit {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px 8px;
  border-radius: 13px;
  border: 1px solid rgba(115, 212, 255, 0.2);
  background: rgba(3, 6, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(184, 236, 255, 0.12);
}

.al-unit-n {
  font-family: var(--al-display);
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--al-ink);
}

.al-unit-l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-ice);
}

.al-opened-msg {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(54, 226, 180, 0.38);
  background: rgba(54, 226, 180, 0.1);
  color: var(--al-emerald);
  font-weight: 700;
  text-align: center;
}

.al-panel-specs {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(115, 212, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
}

.al-panel-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--al-muted);
}

.al-panel-specs b {
  color: var(--al-ink);
  font-weight: 700;
}

.al-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(115, 212, 255, 0.12);
  font-size: 12px;
  color: var(--al-muted);
}

.al-panel-foot a {
  color: var(--al-ice);
  font-weight: 700;
  text-decoration: none;
}

.al-panel-foot a:hover {
  text-decoration: underline;
}

/* Integrated Discord mount inside right column */
.al-discord-mount .zr-discord-slot {
  margin-top: 0;
}

.al-discord-mount .zr-discord-widget {
  width: 100%;
  max-width: none;
}

/* --- Section 2: 3 Technical Pillars Strip --- */
.al-facts-sec {
  padding: 8px 0 clamp(44px, 5vw, 64px);
}

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

.al-fact-card {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 16px;
  border: 1px solid rgba(115, 212, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 20, 45, 0.78), rgba(6, 12, 28, 0.88));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(184, 236, 255, 0.12);
}

.al-fact-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--al-ice);
  margin-bottom: 10px;
}

.al-fact-v {
  display: block;
  font-family: var(--al-display);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 700;
  color: var(--al-ink);
  margin-bottom: 8px;
}

.al-fact-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--al-muted);
}

/* --- Section Head Pattern --- */
.al-sec {
  padding: clamp(38px, 4.5vw, 58px) 0;
}

.al-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.al-sec-title {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--al-ink);
  line-height: 1.15;
}

.al-sec-sub {
  margin: 0;
  max-width: 48ch;
  color: var(--al-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- Section 3: Interactive Tools Matrix (6 Cards) --- */
.al-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.al-tool-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(115, 212, 255, 0.16);
  background: linear-gradient(165deg, rgba(12, 23, 48, 0.82), rgba(5, 10, 24, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(184, 236, 255, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.al-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(115, 212, 255, 0.42);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55), 0 0 28px rgba(36, 120, 255, 0.14);
}

.al-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.al-tool-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(115, 212, 255, 0.26);
  background: rgba(36, 120, 255, 0.14);
  color: var(--al-ice-bright);
  font-size: 16px;
  font-weight: 700;
}

.al-tool-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-ice);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(115, 212, 255, 0.08);
  border: 1px solid rgba(115, 212, 255, 0.16);
}

.al-tool-card h3 {
  margin: 4px 0 0;
  font-family: var(--al-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--al-ink);
}

.al-tool-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--al-muted);
}

.al-tool-link {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--al-ice);
}

/* --- Section 4: Live Events Radar & Competitive Season Split --- */
.al-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}

.al-radar-card,
.al-season-card {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(115, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 20, 45, 0.88), rgba(6, 12, 28, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(184, 236, 255, 0.14);
}

.al-radar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.al-radar-head h3,
.al-season-card h3 {
  margin: 0;
  font-family: var(--al-display);
  font-size: 20px;
  color: var(--al-ink);
}

.al-radar-tz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(3, 6, 15, 0.72);
  border: 1px solid rgba(115, 212, 255, 0.2);
  color: var(--al-ice-bright);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

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

.al-ev-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(115, 212, 255, 0.14);
  background: rgba(3, 6, 15, 0.56);
}

.al-ev-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: var(--al-ice-bright);
}

.al-ev-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--al-ink);
  font-size: 14px;
}

.al-ev-in {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--al-emerald);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(54, 226, 180, 0.1);
  border: 1px solid rgba(54, 226, 180, 0.28);
}

.al-ev-empty {
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed rgba(115, 212, 255, 0.24);
  background: rgba(3, 6, 15, 0.45);
  color: var(--al-muted);
  font-size: 14px;
  line-height: 1.55;
}

.al-season-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
}

.al-season-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.al-sm-box {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(115, 212, 255, 0.14);
  background: rgba(3, 6, 15, 0.6);
}

.al-sm-box b {
  display: block;
  font-family: var(--al-display);
  font-size: 19px;
  color: var(--al-ice-bright);
}

.al-sm-box span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--al-muted);
}

.al-radar-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* --- Section 5: 16-Class Season 22 Obsidian Armory --- */
.al-classes-sec {
  padding: clamp(38px, 4.5vw, 58px) 0;
}

.al-classes-sec .x-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.al-classes-sec .al-cls-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.al-classes-sec .al-cls-chip {
  padding: 8px 14px;
  border-radius: 10px !important;
  border: 1px solid rgba(115, 212, 255, 0.2);
  background: rgba(6, 12, 28, 0.8);
  color: var(--al-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.al-classes-sec .al-cls-chip.is-on,
.al-classes-sec .al-cls-chip[aria-pressed="true"],
.al-classes-sec .al-cls-chip:hover {
  background: linear-gradient(135deg, rgba(18, 70, 181, 0.45), rgba(36, 120, 255, 0.28));
  border-color: var(--al-ice);
  color: var(--al-ink);
}

body.v3 .x-class-grid .x-cls[hidden] {
  display: none !important;
}

body.v3 .x-class-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.v3 .x-class-grid .x-cls {
  aspect-ratio: 4 / 5 !important;
  border-radius: 15px !important;
  border: 1px solid rgba(115, 212, 255, 0.18) !important;
  background: #060c1c !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(184, 236, 255, 0.14);
}

body.v3 .x-class-grid .x-cls:hover {
  border-color: var(--al-ice) !important;
  transform: translateY(-3px);
}

body.v3 .x-class-grid .x-cls.is-new {
  border-color: rgba(115, 212, 255, 0.5) !important;
  box-shadow: 0 18px 46px rgba(36, 120, 255, 0.22), inset 0 1px 0 rgba(184, 236, 255, 0.26);
}

body.v3 .x-class-grid .x-cls-badge {
  border-radius: 7px !important;
  background: linear-gradient(135deg, var(--al-sapphire-deep), var(--al-sapphire)) !important;
  color: #ffffff !important;
}

/* --- Section 6: Final CTA Banner --- */
.al-final-cta {
  margin-top: 12px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid rgba(115, 212, 255, 0.26);
  background:
    radial-gradient(60% 100% at 88% 20%, rgba(36, 120, 255, 0.2), transparent 65%),
    linear-gradient(145deg, rgba(10, 20, 45, 0.92), rgba(5, 10, 24, 0.96));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(184, 236, 255, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.al-final-copy h2 {
  margin: 8px 0 8px;
  font-family: var(--al-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  color: var(--al-ink);
}

.al-final-copy p {
  margin: 0;
  color: var(--al-muted);
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.55;
}

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

/* ---------------- Footer Refinement ---------------- */
body.v3 .ft {
  border-top: 1px solid rgba(115, 212, 255, 0.16) !important;
}

body.v3 .ft .ft-top-txt,
body.v3 .ft .ft-top-vote {
  border-radius: 8px !important;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1024px) {
  .al-hero-grid,
  .al-live-grid {
    grid-template-columns: 1fr;
  }

  .al-facts,
  .al-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.v3 .x-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .al-frame {
    inset: 6px;
  }

  .al-wrap {
    width: min(1220px, calc(100% - 28px));
  }

  .al-nav-tag {
    display: none;
  }

  .al-hero {
    padding-top: 88px;
  }

  .al-hero-meta,
  .al-facts,
  .al-tools-grid,
  .al-panel-specs {
    grid-template-columns: 1fr;
  }

  .al-clock {
    gap: 7px;
  }

  .al-unit {
    padding: 11px 4px;
  }

  .al-ev-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .al-ev-in {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.v3 .x-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
