﻿:root {
  color-scheme: dark;
  --bg: #060805;
  --panel: rgba(12, 18, 14, 0.86);
  --panel-strong: #101711;
  --line: rgba(196, 166, 92, 0.28);
  --line-strong: rgba(124, 255, 84, 0.34);
  --text: #efe3c2;
  --muted: #a99d7e;
  --gold: #d6a441;
  --gold-light: #ffe38a;
  --fel: #9cff45;
  --fel-soft: rgba(156, 255, 69, 0.15);
  --orange: #e87824;
  --orange-dark: #8d3f13;
  --green-deep: #142416;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --glass: rgba(10, 16, 13, 0.72);
  --glass-strong: rgba(12, 18, 15, 0.84);
  --control-bg: rgba(5, 8, 7, 0.54);
  --font-ui: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-2xs: 0.64rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --title-sm: 1.25rem;
  --title-md: clamp(1.625rem, 2.8vw, 2.4rem);
  --title-lg: clamp(2.125rem, 5vw, 4.2rem);
  --ui-micro: var(--text-2xs);
  --ui-label: var(--text-xs);
  --ui-body: var(--text-sm);
  --ui-heading: var(--text-lg);
  --site-header-h: 64px;
}

/* Launcher visual sync: same content and behavior, unified presentation. */
.registration-disabled [data-feature="registration"],
.expeditions-disabled [data-feature="expeditions"],
.expeditions-disabled [data-page="expedicoes"],
.password-recovery-disabled [data-feature="password-recovery"],
.purchases-disabled #open-buy-coins-button,
.purchases-disabled #buy-coins-modal { display: none !important; }
.registration-closed-notice { display: none; }
.registration-disabled .registration-closed-notice { display: block; }

:root {
  --bg: #070807;
  --panel: rgba(10, 13, 10, 0.88);
  --panel-strong: #10130f;
  --line: rgba(181, 133, 30, 0.46);
  --line-strong: rgba(220, 164, 38, 0.62);
  --text: #f0e6cf;
  --muted: #bcb099;
  --gold: #e0a82f;
  --gold-light: #ffd569;
  --fel: #80ed5c;
  --fel-soft: rgba(128, 237, 92, 0.11);
  --orange: #f28a22;
  --orange-dark: #b95613;
  --green-deep: #11170f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
  --glass: rgba(8, 11, 8, 0.78);
  --glass-strong: rgba(8, 11, 8, 0.9);
  --control-bg: rgba(4, 7, 5, 0.82);
}

body {
  background:
    radial-gradient(circle at 16% 0%, rgba(215, 153, 35, 0.08), transparent 28%),
    linear-gradient(145deg, #0d100c 0%, #080907 52%, #050605 100%);
}

body::before {
  background-image: none;
}

.site-header {
  border-bottom-color: rgba(190, 138, 27, 0.42);
  background:
    linear-gradient(180deg, rgba(21, 23, 20, 0.96), rgba(8, 10, 8, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 188, 70, 0.38), transparent);
}

.main-nav a,
.mobile-nav-toggle,
.nav-buy,
.nav-logout {
  border-radius: 8px;
}

.main-nav a.active {
  color: #ffd569;
  background: linear-gradient(180deg, rgba(255, 188, 70, 0.15), rgba(112, 76, 12, 0.16));
  box-shadow: inset 0 0 0 1px rgba(218, 159, 35, 0.38);
}

.nav-session {
  border-color: rgba(218, 159, 35, 0.45);
  border-radius: 10px;
  background: rgba(10, 14, 9, 0.88);
}

.hero {
  background: #050605;
}

.hero::before {
  filter: saturate(0.88) contrast(1.1) brightness(0.72);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(4, 5, 4, 0.5) 0%, rgba(4, 5, 4, 0.2) 40%, rgba(4, 5, 4, 0.34) 68%, rgba(3, 4, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 4, 3, 0.1) 0%, rgba(4, 5, 4, 0.12) 52%, rgba(4, 5, 4, 0.78) 100%),
    radial-gradient(circle at 50% 56%, rgba(255, 174, 51, 0.1), transparent 34%);
}

.hero-art {
  display: none;
}

.hero-logo {
  width: min(100%, 600px);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.72));
}

.hero-copy {
  color: #e5dac1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.launcher-download,
.account-card,
.account-summary,
.panel-block,
.ranking-board,
.play-steps,
.feature,
.login-required {
  border-color: rgba(190, 138, 27, 0.48);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 181, 54, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(16, 19, 14, 0.94), rgba(6, 8, 6, 0.9));
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 222, 145, 0.05);
}

.account-card {
  border-radius: 16px;
  backdrop-filter: blur(16px);
}

.account-card::before {
  inset: 0;
  border-color: rgba(112, 239, 77, 0.2);
  border-radius: 16px;
}

.tabs {
  border-color: rgba(255, 220, 139, 0.07);
  border-radius: 10px;
  background: rgba(2, 4, 3, 0.48);
}

.tab {
  border-radius: 8px;
}

.tab.active {
  border-color: rgba(225, 167, 43, 0.64);
  background: linear-gradient(180deg, rgba(229, 174, 52, 0.28), rgba(92, 70, 17, 0.3));
  color: #ffe08a;
  box-shadow: inset 0 0 18px rgba(255, 188, 70, 0.08);
}

input,
select {
  border-color: rgba(190, 138, 27, 0.4);
  border-radius: 10px;
  background: rgba(4, 8, 5, 0.84);
}

input:focus,
select:focus {
  border-color: #dca52f;
  box-shadow: 0 0 0 3px rgba(220, 165, 47, 0.13);
}

.btn,
.launcher-download-button {
  border-radius: 9px;
}

.btn-primary,
.launcher-download-button {
  border-color: #ffc35b;
  background: linear-gradient(180deg, #ffa634 0%, #ed7c1b 56%, #b84e10 100%);
  box-shadow: 0 10px 24px rgba(215, 102, 18, 0.24), inset 0 1px 0 rgba(255, 235, 177, 0.34);
}

.launcher-download {
  border-radius: 10px;
}

.launcher-download-icon {
  border-color: rgba(128, 237, 92, 0.5);
  background: rgba(5, 10, 5, 0.74);
}

.dashboard-section::before,
.realm-section::before,
.ranking-page::before {
  filter: saturate(0.82) brightness(0.66);
}

@media (max-width: 760px) {
  #conta .account-card {
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 181, 54, 0.1), transparent 42%),
      linear-gradient(180deg, rgba(14, 17, 12, 0.94), rgba(5, 7, 5, 0.94));
  }

  #conta .account-card::before,
  #conta .tabs {
    border-radius: 12px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 8, 5, 0.18), var(--bg) 72%),
    radial-gradient(circle at 70% 30%, rgba(116, 255, 60, 0.22), transparent 28%),
    radial-gradient(circle at 30% 12%, rgba(232, 120, 36, 0.18), transparent 32%),
    linear-gradient(135deg, #070905 0%, #161006 43%, #050705 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 68%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

[data-lucide] {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke-width: 2.25;
  vertical-align: -0.16em;
}

.lucide-loader-circle {
  animation: icon-spin 0.9s linear infinite;
}

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

a [data-lucide],
button [data-lucide],
label [data-lucide],
h2 [data-lucide],
h3 [data-lucide],
dt [data-lucide],
.status-pill [data-lucide],
.brand-status small [data-lucide],
.nav-user [data-lucide],
.nav-wallet [data-lucide],
.account-summary span [data-lucide],
.roleta-cost [data-lucide] {
  margin-right: 0.42em;
}

.status-pill [data-lucide],
.brand-status small [data-lucide] {
  margin-right: 0;
}

.main-nav a [data-lucide],
.nav-user [data-lucide],
.nav-wallet [data-lucide],
.nav-buy [data-lucide],
.nav-logout [data-lucide],
.btn [data-lucide],
label [data-lucide] {
  margin-right: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px clamp(27px, 5.7vw, 99px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 7, 0.82);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(8, 13, 7, 0.82);
  pointer-events: none;
}

.app-main {
  min-height: calc(100vh - var(--site-header-h));
}

.app-page {
  min-height: calc(100vh - var(--site-header-h));
}


.brand {
  display: inline-flex;
  flex: 0 0 210px;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 227, 138, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 227, 138, 0.28));
}

.brand strong,
h1,
h2 {
  font-family: var(--font-display);
}

.brand-status {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-status small {
  display: flex;
  align-items: center;
  gap: 0.36em;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(var(--text-xs) * 0.92);
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.status-pill strong {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  overflow: hidden;
  color: var(--fel);
  font-size: calc(var(--text-sm) * 0.92);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: calc(var(--text-xs) * 0.95);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a.active {
  color: var(--gold-light);
  background: rgba(156, 255, 69, 0.12);
  box-shadow: inset 0 0 0 1px rgba(156, 255, 69, 0.22);
}

.nav-session {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 36, 22, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-user,
.nav-wallet {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  max-width: 118px;
  overflow: hidden;
  font-size: calc(var(--text-xs) * 0.92);
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-user {
  color: var(--fel);
}

.nav-wallet {
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

.nav-buy,
.nav-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 227, 138, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
  font-size: calc(var(--text-xs) * 0.86);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-buy {
  border-color: rgba(255, 227, 138, 0.36);
  background: linear-gradient(180deg, rgba(255, 198, 85, 0.22), rgba(232, 120, 36, 0.16));
  color: var(--gold-light);
}

.nav-buy:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.nav-buy:hover:not(:disabled),
.nav-logout:hover {
  color: var(--gold-light);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 500px);
  align-items: center;
  gap: clamp(42px, 5.2vw, 86px);
  min-height: calc(100vh - var(--site-header-h));
  padding: clamp(34px, 5.2vw, 72px) clamp(54px, 8vw, 148px) clamp(46px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: #050705;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -4;
  background-image: url("/assets/backgrounds/outland-portal.jpg");
  background-position: center center;
  background-size: cover;
  transform: scale(1.015);
  filter: saturate(1.18) contrast(1.04) brightness(1.14);
}

.hero::after {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.56) 0%, rgba(5, 7, 5, 0.28) 31%, rgba(5, 7, 5, 0.08) 58%, rgba(5, 7, 5, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 7, 5, 0.02) 0%, rgba(5, 7, 5, 0.08) 48%, rgba(6, 8, 5, 0.66) 100%),
    radial-gradient(circle at 55% 48%, rgba(116, 255, 60, 0.1), transparent 30%),
    radial-gradient(circle at 34% 70%, rgba(255, 193, 96, 0.1), transparent 24%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 34%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(116, 255, 60, 0.1), transparent 56%),
    linear-gradient(180deg, transparent, rgba(6, 8, 5, 0.76) 78%);
}

.portal-ring,
.portal-core {
  position: absolute;
  right: clamp(-380px, -22vw, -160px);
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.16;
}

.portal-ring {
  width: clamp(560px, 64vw, 940px);
  aspect-ratio: 1;
  border: clamp(18px, 2vw, 30px) solid rgba(201, 157, 61, 0.2);
  box-shadow:
    inset 0 0 70px rgba(116, 255, 60, 0.3),
    0 0 100px rgba(116, 255, 60, 0.24),
    0 0 0 1px rgba(255, 224, 138, 0.2);
  animation: portal-breathe 6s ease-in-out infinite;
}

.portal-core {
  width: clamp(420px, 50vw, 720px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(205, 255, 170, 0.8) 0%, rgba(92, 255, 54, 0.36) 26%, rgba(0, 0, 0, 0.04) 58%, transparent 72%),
    conic-gradient(from 20deg, rgba(116, 255, 60, 0.16), rgba(255, 224, 138, 0.22), rgba(116, 255, 60, 0.08));
  filter: blur(1px);
}

.fel-crystal {
  position: absolute;
  width: 74px;
  height: 170px;
  background: linear-gradient(135deg, rgba(208, 255, 164, 0.92), rgba(87, 240, 43, 0.58) 48%, rgba(5, 41, 14, 0.2));
  clip-path: polygon(50% 0, 100% 24%, 74% 100%, 22% 100%, 0 24%);
  box-shadow: 0 0 48px rgba(116, 255, 60, 0.5);
  opacity: 0.34;
}

.crystal-a {
  right: 10%;
  bottom: 10%;
  transform: rotate(13deg);
}

.crystal-b {
  right: 41%;
  top: 16%;
  width: 44px;
  height: 110px;
  transform: rotate(-19deg);
  opacity: 0.48;
}

.crystal-c {
  left: 7%;
  bottom: 18%;
  width: 48px;
  height: 118px;
  transform: rotate(23deg);
  opacity: 0.42;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: grid;
  align-content: center;
  min-height: min(620px, calc(100vh - var(--site-header-h) - 96px));
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--fel);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  color: var(--gold-light);
  font-size: var(--title-lg);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 36px rgba(213, 172, 76, 0.24);
}

.hero-logo {
  display: block;
  width: min(100%, 760px);
  max-height: 430px;
  object-fit: contain;
  object-position: left center;
  margin: -8px 0 0 -18px;
}

.hero-copy {
  max-width: 620px;
  min-height: 5.2em;
  margin: clamp(18px, 3vh, 34px) 0 0;
  color: #dacda9;
  font-size: var(--text-lg);
  line-height: 1.65;
}

.launcher-download {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 620px);
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 227, 138, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 48, 25, 0.9), rgba(20, 23, 16, 0.82) 62%, rgba(68, 38, 12, 0.8));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.launcher-download-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(156, 255, 69, 0.38);
  border-radius: 8px;
  background: rgba(8, 16, 8, 0.54);
  color: var(--fel);
}

.launcher-download-icon [data-lucide] {
  width: 25px;
  height: 25px;
}

.launcher-download-copy {
  display: grid;
  min-width: 0;
}

.launcher-download-copy span {
  color: var(--fel);
  font-size: var(--text-2xs);
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-download-copy strong {
  overflow: hidden;
  color: var(--gold-light);
  font-size: var(--text-md);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher-download-copy small {
  margin-top: 2px;
  color: #b9ad8e;
  font-size: var(--text-xs);
}

.launcher-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 227, 138, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0a33a, #a74b16);
  color: #241104;
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.launcher-download-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.launcher-download-button:focus-visible {
  outline: 2px solid rgba(255, 227, 138, 0.78);
  outline-offset: 3px;
}

.play-realm-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.play-realm-status div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.06), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.18);
}

.play-realm-status dt {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-realm-status dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--gold-light);
  font-size: var(--text-sm);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.tab:focus-visible,
.main-nav a:focus-visible,
.nav-buy:focus-visible,
.nav-logout:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid rgba(255, 227, 138, 0.78);
  outline-offset: 3px;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn-primary {
  border-color: rgba(255, 227, 138, 0.44);
  background: linear-gradient(180deg, #f0a33a 0%, var(--orange) 48%, var(--orange-dark) 100%);
  color: #241104;
  box-shadow: 0 14px 34px rgba(232, 120, 36, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(20, 36, 22, 0.76);
  color: var(--text);
}

.account-card,
.feature,
.play-steps {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.server-strip {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(116, 255, 60, 0.24);
  background: rgba(20, 36, 22, 0.58);
  border-radius: var(--radius-md);
}

.server-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.server-strip-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.server-strip-header strong {
  color: var(--fel);
}

.realm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.realm-stats div {
  min-width: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.realm-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.realm-stats dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--gold-light);
  font-weight: 800;
}

.content-grid {
  display: block;
  padding: 34px clamp(28px, 6vw, 104px) 84px;
}

.section-block {
  padding-top: 20px;
}

.section-block h2,
.play-steps h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: var(--title-md);
  line-height: 1.05;
}

.section-block > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature {
  padding: 20px;
}

.feature span {
  color: var(--fel);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.feature strong {
  display: block;
  margin-top: 12px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.feature p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-shell {
  position: relative;
}

.hero-account {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 500px);
}

.account-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 548px;
  padding: 22px;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(30, 40, 28, 0.35),
      rgba(10, 14, 10, 0.22)
    ),
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 227, 138, 0.10),
      transparent 45%
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(116, 255, 60, 0.26);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tab.active {
  border-color: rgba(255, 227, 138, 0.38);
  background: linear-gradient(180deg, rgba(255, 227, 138, 0.2), rgba(156, 255, 69, 0.12));
  color: var(--gold-light);
}

.form-panel {
  display: none;
  min-height: 432px;
  padding: 24px 6px 4px;
}

.form-panel.active {
  display: block;
}

.form-panel h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: var(--title-md);
  line-height: 1.05;
}

.form-panel p {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;

  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 8, 0.6);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  border-radius: var(--radius-md);
}

input:focus,
select:focus {
  border-color: var(--fel);
  box-shadow: 0 0 0 3px rgba(116, 255, 60, 0.12);
}

select {
  cursor: pointer;
}

form .btn {
  justify-self: center;
  width: auto;
  min-width: 150px;
  margin-top: 14px;
}

.form-message {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  line-height: 1.45;
}

.form-message.success,
.form-message.error {
  display: block;
}

.form-message.success {
  border-color: rgba(116, 255, 60, 0.34);
  background: rgba(116, 255, 60, 0.1);
  color: #caffb2;
}

.form-message.error {
  border-color: rgba(255, 91, 91, 0.34);
  background: rgba(155, 36, 36, 0.16);
  color: #ffb3a9;
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: var(--title-md);
  line-height: 1.05;
}

.section-copy {
  max-width: 620px;
  margin: 10px 0 0;
  color: #d8cba8;
  font-size: var(--text-md);
  line-height: 1.6;
}

.dashboard-section,
.realm-section,
.ranking-page {
  padding: clamp(34px, 5vw, 64px) clamp(28px, 6vw, 104px);
}

.dashboard-section,
.ranking-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050705;
}

.dashboard-section::before,
.dashboard-section::after,
.ranking-page::before,
.ranking-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dashboard-section::before,
.ranking-page::before {
  z-index: -2;
  background-image: url("/assets/backgrounds/outland-portal.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.02);
}

.dashboard-section::after,
.ranking-page::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.86), rgba(5, 7, 5, 0.58), rgba(5, 7, 5, 0.86)),
    linear-gradient(180deg, rgba(5, 7, 5, 0.44), rgba(5, 7, 5, 0.9)),
    radial-gradient(circle at 70% 20%, rgba(156, 255, 69, 0.16), transparent 34%);
}

.login-required {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 16, 11, 0.78);
  box-shadow: var(--shadow);
}

.login-required strong,
.login-required span {
  display: block;
}

.login-required strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.login-required span {
  color: var(--muted);
  line-height: 1.55;
}

.login-required .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.account-summary,
.panel-block,
.realm-overview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.07), rgba(7, 12, 10, 0.34)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 12px;
  padding: 18px;
}

.account-summary div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.account-summary span,
.realm-signal span {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-summary strong,
.realm-signal strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--title-sm);
}

.panel-block {
  padding: 20px;
}

.panel-block h3 {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--title-sm);
}

.panel-history {
  grid-column: 1 / -1;
}

.character-list,
.history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-history .history-list {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.ranking-board {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.07), rgba(7, 12, 10, 0.34)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ranking-board-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ranking-board-header .eyebrow {
  margin-bottom: 5px;
}

.ranking-board h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.ranking-board-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 24px rgba(255, 227, 138, 0.14);
}

.ranking-board-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 227, 138, 0.24);
}

.ranking-board-icon.honor-icon {
  background-image: url("https://wow.zamimg.com/images/wow/icons/large/ability_dualwield.jpg");
}

.ranking-board-icon.arena-icon {
  background-image: url("https://wow.zamimg.com/images/wow/icons/large/inv_sword_27.jpg");
}

.ranking-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 28px 30px minmax(0, 1fr) auto minmax(108px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.ranking-row.horde {
  border-left: 3px solid rgba(220, 52, 52, 0.7);
}

.ranking-row.alliance {
  border-left: 3px solid rgba(74, 142, 255, 0.74);
}

.ranking-position {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 227, 138, 0.16);
  border-radius: 8px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 900;
}

.ranking-avatar,
.ranking-icons span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 227, 138, 0.2);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
}

.ranking-avatar img,
.ranking-icons img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ranking-main strong {
  overflow: hidden;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main span,
.ranking-score small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-icons {
  display: inline-flex;
  gap: 4px;
}

.ranking-score {
  display: grid;
  min-width: 108px;
  gap: 2px;
  text-align: right;
}

.ranking-score strong {
  color: var(--fel);
  font-size: var(--text-sm);
  font-weight: 900;
}

.ranking-empty {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
}

.character-list li,
.history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  line-height: 1.45;
}

.character-list strong,
.history-list strong {
  color: var(--gold-light);
}

.history-list time {
  white-space: nowrap;
  color: rgba(239, 227, 194, 0.62);
  font-size: var(--text-xs);
}

.realm-section {
  background:
    linear-gradient(180deg, rgba(6, 8, 5, 0.2), rgba(6, 8, 5, 0.78)),
    radial-gradient(circle at 12% 20%, rgba(156, 255, 69, 0.12), transparent 28%),
    rgba(5, 8, 6, 0.88);
}

.realm-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

.realm-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(156, 255, 69, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff8e7d;
  box-shadow: 0 0 20px rgba(255, 91, 91, 0.34);
}

.status-dot.online {
  background: var(--fel);
  box-shadow: 0 0 24px rgba(156, 255, 69, 0.54);
}

.play-steps {
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
}

.play-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.play-steps li {
  position: relative;
  min-height: 172px;
  padding: 56px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  counter-increment: steps;
  border-radius: var(--radius-md);
}

.play-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--fel);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.play-steps strong,
.play-steps span,
.play-steps code {
  display: block;
}

.play-steps strong {
  color: var(--gold-light);
  font-family: var(--font-display);
}

.play-steps span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.play-steps code {
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--fel);
  font-size: 0.92rem;
  line-height: 1.5;
}

.realmlist-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid rgba(255, 227, 138, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
}

.realmlist-copy code {
  margin: 0;
  min-width: 0;
  color: var(--gold-light);
  font-size: var(--text-sm);
  font-weight: 800;
}

.realmlist-copy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(116, 255, 60, 0.32);
  border-radius: 999px;
  background: rgba(116, 255, 60, 0.12);
  color: var(--fel);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.realmlist-copy button:hover {
  border-color: rgba(255, 227, 138, 0.44);
  color: var(--gold-light);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(28px, 6vw, 104px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}

body:has(.app-page:not([hidden])) .site-footer {
  display: none;
}

.dashboard-section,
.play-steps,
.ranking-page {
  min-height: calc(100vh - var(--site-header-h));
}

@keyframes portal-breathe {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.9;
  }

  50% {
    transform: translateY(-50%) scale(1.025);
    opacity: 1;
  }
}

@media (max-width: 1050px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .realm-overview,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .account-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content,
  .hero-account {
    grid-column: 1;
  }

  .hero-content {
    grid-row: 1;
    min-height: 0;
    justify-self: center;
    text-align: center;
  }

  .hero-account {
    grid-row: 2;
    width: min(100%, 540px);
  }

  .hero::before {
    background-position: 50% center;
    transform: scale(1.02);
  }

  .play-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-session {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
    flex-wrap: wrap;
  }

  .nav-user,
  .nav-wallet {
    max-width: calc(50vw - 42px);
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: var(--text-xs);
  }

  .hero {
    min-height: auto;
    gap: 14px;
    padding: 32px clamp(28px, 7vw, 48px) 52px;
  }

  .hero-logo {
    width: min(100%, 520px);
    max-height: 250px;
    margin: -10px 0 -8px -12px;
  }

  .hero-copy {
    min-height: 0;
    margin-top: 12px;
    font-size: var(--text-md);
    line-height: 1.55;
  }

  .play-realm-status {
    grid-template-columns: 1fr;
  }

  .account-card {
    min-height: 0;
    padding: 16px;
  }

  .form-panel {
    min-height: 0;
    padding-top: 14px;
  }

  .server-strip {
    margin-top: 14px;
    padding: 10px;
  }

  .server-strip-header {
    padding-bottom: 8px;
  }

  .realm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .realm-stats dt {
    font-size: var(--text-xs);
  }

  .realm-stats dd {
    font-size: var(--text-sm);
  }

  .realm-stats,
  .feature-grid,
  .play-steps ol {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background-position: 52% center;
    transform: scale(1.1);
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .play-steps li {
    min-height: 0;
  }

  .realmlist-copy {
    grid-template-columns: 1fr;
  }

  .dashboard-section,
  .realm-section,
  .ranking-page {
    padding: 48px clamp(22px, 5vw, 42px);
  }

  .login-required {
    grid-template-columns: 1fr;
  }

  .login-required .btn {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .character-list li,
  .history-list li,
  .ranking-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row {
    display: flex;
  }

  .ranking-score {
    width: 100%;
    text-align: left;
  }

.account-summary {
    grid-template-columns: 1fr;
  }
}

/* Mobile shell pass: compact header/menu and safer page spacing. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --site-header-h: 58px;
  }

  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    touch-action: pan-y;
  }

  body {
    height: auto;
    overflow: visible;
    touch-action: pan-y;
  }

  .app-main {
    height: auto;
    min-height: calc(100svh - var(--site-header-h, 58px));
    overflow: visible;
    touch-action: pan-y;
  }

  .app-page:not([hidden]) {
    overflow: visible;
    touch-action: pan-y;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-status {
    max-width: calc(100vw - 122px);
  }

  .status-pill strong {
    font-size: 0.72rem;
  }

  .brand-status small {
    font-size: 0.62rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 227, 138, 0.28);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 198, 85, 0.16), rgba(232, 120, 36, 0.08)),
      rgba(0, 0, 0, 0.24);
    color: var(--gold-light);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-nav-toggle [data-lucide] {
    width: 15px;
    height: 15px;
  }

  .main-nav {
    order: 3;
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 4px;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    justify-content: center;
    min-height: 36px;
    padding: 8px 9px;
    border: 1px solid rgba(208, 166, 89, 0.14);
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .main-nav a[hidden] {
    display: none;
  }

  .nav-session {
    order: 4;
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }

  .site-header.is-menu-open .nav-session:not([hidden]) {
    display: grid;
  }

  .nav-user,
  .nav-wallet,
  .nav-buy,
  .nav-logout {
    justify-content: center;
    max-width: none;
    min-height: 34px;
  }

  .nav-wallet {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    padding: 24px 16px 38px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-logo {
    width: min(100%, 360px);
    max-height: 180px;
    margin: 0 auto;
  }

  .hero-copy {
    max-width: 34ch;
    margin-inline: auto;
    font-size: 0.9rem;
  }

  .account-shell,
  .account-card {
    width: 100%;
  }

  .dashboard-section,
  .realm-section,
  .ranking-page {
    padding: 34px 14px;
  }

  .section-heading h2 {
    font-size: clamp(1.45rem, 9vw, 2.1rem);
  }
}

@media (max-width: 420px) {
  .main-nav {
    grid-template-columns: 1fr;
  }

  .nav-session {
    grid-template-columns: 1fr;
  }
}

/* Mobile account pass: tighter login screen without the form jumping around. */
@media (max-width: 760px) {
  #conta.hero {
    min-height: calc(100svh - var(--site-header-h, 58px));
    align-content: center;
    gap: 16px;
    padding: 18px 14px 30px;
  }

  #conta .hero-content {
    min-height: 0;
    justify-items: center;
    text-align: center;
  }

  #conta .hero-logo {
    width: min(82vw, 310px);
    max-height: 132px;
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.44));
  }

  #conta .hero-copy {
    max-width: 31ch;
    min-height: 0;
    margin: 8px auto 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #eadfbd;
  }

  #conta .launcher-download {
    grid-template-columns: 42px minmax(0, 1fr);
    width: min(100%, 390px);
    margin: 12px auto 0;
    padding: 10px;
    text-align: left;
  }

  #conta .launcher-download-icon {
    width: 42px;
    height: 42px;
  }

  #conta .launcher-download-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }

  #conta .hero-account {
    width: min(100%, 390px);
    justify-self: center;
  }

  #conta .account-card {
    min-height: 0;
    align-content: start;
    padding: 14px;
    border-radius: 15px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 227, 138, 0.12), transparent 44%),
      linear-gradient(180deg, rgba(20, 30, 20, 0.66), rgba(6, 9, 7, 0.72));
  }

  #conta .account-card::before {
    border-color: rgba(208, 166, 89, 0.24);
    border-radius: 15px;
  }

  #conta .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  #conta .tab {
    min-height: 34px;
    padding: 0 4px;
    font-size: 0.61rem;
    letter-spacing: 0.04em;
  }

  #conta .tab [data-lucide] {
    width: 13px;
    height: 13px;
  }

  #conta .form-panel {
    min-height: 318px;
    padding: 14px 2px 2px;
  }

  #conta .form-panel h2 {
    font-size: clamp(1.42rem, 8vw, 1.9rem);
  }

  #conta .form-panel p {
    margin: 6px 0 14px;
    font-size: 0.84rem;
    line-height: 1.36;
  }

  #conta form {
    gap: 8px;
  }

  #conta label {
    font-size: 0.66rem;
  }

  #conta input,
  #conta select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  #conta form .btn {
    min-height: 40px;
    min-width: 132px;
    margin-top: 8px;
    padding: 9px 15px;
    font-size: 0.72rem;
  }

  #conta .server-strip {
    margin-top: 10px;
    padding: 9px;
    border-radius: 12px;
  }
}

/* Mobile ranking pass: compact scoreboard rows instead of tall stacked cards. */
@media (max-width: 760px) {
  .ranking-page {
    padding: 28px 10px 34px;
  }

  .ranking-page .section-heading {
    text-align: left;
  }

  .ranking-page .section-heading h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1;
  }

  .ranking-page .section-copy {
    max-width: 34ch;
    margin-inline: 0;
    font-size: 0.92rem;
  }

  .ranking-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-board {
    padding: 11px;
    border-radius: 14px;
  }

  .ranking-board-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .ranking-board-icon {
    width: 38px;
    height: 38px;
  }

  .ranking-board h3 {
    font-size: 1rem;
  }

  .ranking-list {
    gap: 5px;
  }

  .ranking-row {
    display: grid;
    grid-template-columns: 24px 30px minmax(0, 1fr) 76px;
    grid-template-areas:
      "pos avatar main score"
      "pos icon main score";
    align-items: center;
    gap: 3px 7px;
    min-height: 58px;
    padding: 7px;
    border-radius: 9px;
  }

  .ranking-position {
    grid-area: pos;
    width: 22px;
    height: 42px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .ranking-avatar {
    grid-area: avatar;
  }

  .ranking-icons {
    grid-area: icon;
    display: flex;
  }

  .ranking-avatar,
  .ranking-icons span {
    width: 28px;
    height: 28px;
  }

  .ranking-main {
    grid-area: main;
    gap: 1px;
  }

  .ranking-main strong {
    font-size: 0.82rem;
  }

  .ranking-main span {
    display: -webkit-box;
    font-size: 0.56rem;
    line-height: 1.12;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ranking-score {
    grid-area: score;
    min-width: 0;
    width: auto;
    justify-items: end;
    text-align: right;
  }

  .ranking-score strong {
    font-size: 0.76rem;
  }

  .ranking-score small {
    max-width: 74px;
    font-size: 0.52rem;
    line-height: 1.08;
    white-space: normal;
  }
}

/* Final launcher-theme cascade. Kept last so it also skins responsive pages. */
body {
  background:
    radial-gradient(circle at 16% 0%, rgba(215, 153, 35, 0.08), transparent 28%),
    linear-gradient(145deg, #0d100c 0%, #080907 52%, #050605 100%);
}

body::before { background-image: none; }

.site-header {
  border-bottom-color: rgba(190, 138, 27, 0.42);
  background: linear-gradient(180deg, rgba(21, 23, 20, 0.96), rgba(8, 10, 8, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 188, 70, 0.38), transparent);
}

.main-nav a,
.mobile-nav-toggle,
.nav-buy,
.nav-logout { border-radius: 8px; }

.main-nav a.active {
  color: #ffd569;
  background: linear-gradient(180deg, rgba(255, 188, 70, 0.15), rgba(112, 76, 12, 0.16));
  box-shadow: inset 0 0 0 1px rgba(218, 159, 35, 0.38);
}

.nav-session {
  border-color: rgba(218, 159, 35, 0.45);
  border-radius: 10px;
  background: rgba(10, 14, 9, 0.88);
}

.hero { background: #050605; }

.hero::before { filter: saturate(0.88) contrast(1.1) brightness(0.72); }

.hero::after {
  background:
    linear-gradient(90deg, rgba(4, 5, 4, 0.5) 0%, rgba(4, 5, 4, 0.2) 40%, rgba(4, 5, 4, 0.34) 68%, rgba(3, 4, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 4, 3, 0.1) 0%, rgba(4, 5, 4, 0.12) 52%, rgba(4, 5, 4, 0.78) 100%),
    radial-gradient(circle at 50% 56%, rgba(255, 174, 51, 0.1), transparent 34%);
}

.hero-art { display: none; }

.hero-logo {
  width: min(100%, 600px);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.72));
}

.hero-copy {
  color: #e5dac1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.launcher-download,
.account-card,
.account-summary,
.panel-block,
.ranking-board,
.play-steps,
.feature,
.login-required {
  border-color: rgba(190, 138, 27, 0.48);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 181, 54, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(16, 19, 14, 0.94), rgba(6, 8, 6, 0.9));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 222, 145, 0.05);
}

.account-card {
  border-radius: 16px;
  backdrop-filter: blur(16px);
}

.account-card::before {
  inset: 0;
  border-color: rgba(112, 239, 77, 0.2);
  border-radius: 16px;
}

.tabs {
  border-color: rgba(255, 220, 139, 0.07);
  border-radius: 10px;
  background: rgba(2, 4, 3, 0.48);
}

.tab { border-radius: 8px; }

.tab.active {
  border-color: rgba(225, 167, 43, 0.64);
  background: linear-gradient(180deg, rgba(229, 174, 52, 0.28), rgba(92, 70, 17, 0.3));
  color: #ffe08a;
  box-shadow: inset 0 0 18px rgba(255, 188, 70, 0.08);
}

input,
select {
  border-color: rgba(190, 138, 27, 0.4);
  border-radius: 10px;
  background: rgba(4, 8, 5, 0.84);
}

input:focus,
select:focus {
  border-color: #dca52f;
  box-shadow: 0 0 0 3px rgba(220, 165, 47, 0.13);
}

.btn,
.launcher-download-button { border-radius: 9px; }

.btn-primary,
.launcher-download-button {
  border-color: #ffc35b;
  background: linear-gradient(180deg, #ffa634 0%, #ed7c1b 56%, #b84e10 100%);
  box-shadow: 0 10px 24px rgba(215, 102, 18, 0.24), inset 0 1px 0 rgba(255, 235, 177, 0.34);
}

.launcher-download { border-radius: 10px; }

.launcher-download-icon {
  border-color: rgba(128, 237, 92, 0.5);
  background: rgba(5, 10, 5, 0.74);
}

.dashboard-section::before,
.realm-section::before,
.ranking-page::before { filter: saturate(0.82) brightness(0.66); }

@media (max-width: 760px) {
  #conta .account-card {
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 181, 54, 0.1), transparent 42%),
      linear-gradient(180deg, rgba(14, 17, 12, 0.94), rgba(5, 7, 5, 0.94));
  }

  #conta .account-card::before,
  #conta .tabs { border-radius: 12px; }
}

/* The launcher account window is glassy: keep the artwork visible behind it. */
#conta .account-card {
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 181, 54, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(18, 21, 15, 0.72), rgba(4, 7, 5, 0.64));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  #conta .account-card {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 181, 54, 0.12), transparent 44%),
      linear-gradient(180deg, rgba(15, 18, 13, 0.76), rgba(4, 7, 5, 0.7));
  }
}

/* The launcher executable uses Exo 2. Keep every portal surface on that family. */
:root {
  --font-ui: "Exo 2", "Segoe UI", sans-serif;
  --font-display: "Exo 2", "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
output,
table,
code,
kbd,
samp {
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-synthesis: none;
}
