/* =========================================================
   Game of Drones - Master CSS
   Premium responsive layout - aligned header/nav/ticker/pages
   ========================================================= */

/* ==================== ROOT / RESET ==================== */

:root {
  --bg: #0b0f12;
  --bg-dark: #05070a;
  --panel: rgba(18, 27, 34, 0.78);
  --panel-solid: #121b22;

  --text: #ffffff;
  --muted: #c8d2d8;
  --soft: #8fa1aa;

  --brand: #f49d50;
  --brand-blue: #00aef0;
  --brand-2: #405965;
  --skywise-blue: #005EA5;

  --success: #00d084;
  --danger: #ff4f64;

  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(244, 157, 80, 0.38);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.26);
  --glow: 0 0 34px rgba(244, 157, 80, 0.24);

  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  --header-height: 72px;
  --ticker-height: 40px;
  --header-total: 112px;

  --container: 1200px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-total);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(244, 157, 80, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(0, 174, 240, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

a:hover {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(244, 157, 80, 0.35);
  color: #fff;
}

/* ==================== BACKGROUND / UTILITIES ==================== */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100000;
  padding: 0.7rem 1rem;
  border-radius: var(--pill);
  background: var(--brand);
  color: #111;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.28;
}

.orb-one {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -110px;
  background: var(--brand);
}

.orb-two {
  width: 320px;
  height: 320px;
  top: 22%;
  right: -120px;
  background: var(--brand-blue);
}

.orb-three {
  width: 260px;
  height: 260px;
  bottom: 8%;
  left: 45%;
  background: var(--brand-2);
}

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
  padding: 4rem 0;
}

.container.narrow {
  max-width: 880px;
}

.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ==================== TYPOGRAPHY ==================== */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75em;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.55rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lead,
.hero-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.section-intro,
.section-title {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro p,
.section-title p {
  color: var(--muted);
}

/* ==================== HEADER / NAV / TICKER ==================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: var(--header-total);
  z-index: 10000;
  background: rgba(7, 10, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.nav-shell {
  height: var(--header-height);
  width: min(94%, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
}

.brand {
  min-width: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  overflow: hidden;
}

.brand-mark {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px;
  object-fit: contain;
  display: block;
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  overflow: hidden;
}

.brand-text strong {
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  color: var(--soft);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  height: var(--header-height);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.user-status {
  color: var(--soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-toggle {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  flex: 0 0 2px;
  background: var(--text);
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav-toggle:hover span,
.nav-toggle.active span {
  background: var(--brand);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==================== TICKER - ULTRA PREMIUM ==================== */

.ticker-bar {
  height: var(--ticker-height);
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(11, 17, 22, 0.94)),
    linear-gradient(90deg, rgba(64, 89, 101, 0.38), rgba(244, 157, 80, 0.12), rgba(64, 89, 101, 0.38));
  border-top: 1px solid rgba(244, 157, 80, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ticker-live {
  height: 26px;
  margin-left: max(1rem, 3vw);
  margin-right: 0.9rem;
  padding: 0 0.9rem;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--brand), #ffbd7c);
  color: #101010;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow:
    0 0 18px rgba(244, 157, 80, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ticker-viewport {
  position: relative;
  height: var(--ticker-height);
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
  color: #e6edf3;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.018em;
  line-height: 1;
}

.ticker-track.paused {
  animation-play-state: paused !important;
}

.ticker-unit {
  display: inline-flex;
  align-items: center;
  margin-right: 2.4rem;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.ticker-custom {
  color: var(--brand);
  font-weight: 800;
  margin-right: 0.65rem;
  text-shadow: 0 0 10px rgba(244, 157, 80, 0.22);
}

.ticker-separator {
  display: inline-block;
  width: 0.35rem;
  min-width: 0.35rem;
  height: 1px;
  margin: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.ticker-skywise {
  display: inline-flex;
  align-items: center;
  color: #e6edf3;
}

.ticker-skywise-box {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 27px;
  padding: 0.22rem 0.68rem;
  border-radius: var(--pill);
  border: 1px solid rgba(158, 195, 212, 0.42);
  background:
    linear-gradient(135deg, rgba(158, 195, 212, 0.13), rgba(64, 89, 101, 0.14));
  color: #e6edf3;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(158, 195, 212, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.ticker-skywise-box.ticker-skywise-warning {
  border-color: rgba(244, 157, 80, 0.58);
  background:
    linear-gradient(135deg, rgba(244, 157, 80, 0.14), rgba(64, 89, 101, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(244, 157, 80, 0.16);
}

.ticker-skywise-label {
  display: inline-flex;
  align-items: center;
  color: #005EA5;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0, 94, 165, 0.25);
}

.ticker-skywise-label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.32rem;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1;
}

.ticker-skywise-warning .ticker-skywise-label {
  color: #005EA5;
}

.ticker-skywise-gap {
  display: inline-block;
  width: 0.08rem;
  min-width: 0.08rem;
}

.ticker-skywise-box a {
  color: #e6edf3;
  text-decoration: none;
  margin-left: 0.04rem;
  border-bottom: 1px solid transparent;
  font-weight: 650;
  line-height: 1;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.ticker-skywise-box a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-shadow: 0 0 8px rgba(244, 157, 80, 0.25);
}

.ticker-new-badge-wrapper {
  display: inline-flex;
  align-items: center;
  margin: 0 0.14rem 0 0;
  line-height: 1;
}

.ticker-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.05rem;
  padding: 0 0.42rem;
  border-radius: var(--pill);
  background: linear-gradient(135deg, rgba(244, 157, 80, 0.26), rgba(244, 157, 80, 0.12));
  border: 1px solid rgba(244, 157, 80, 0.48);
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 12px rgba(244, 157, 80, 0.16);
}

.ticker-skywise-warning .ticker-new-badge {
  background: linear-gradient(135deg, rgba(255, 79, 100, 0.22), rgba(244, 157, 80, 0.12));
  border-color: rgba(255, 79, 100, 0.46);
  color: #ffbac2;
}

@media (max-width: 700px) {
  .ticker-live {
    margin-left: 0.7rem;
    margin-right: 0.55rem;
    padding: 0 0.62rem;
    font-size: 0.6rem;
  }

  .ticker-track,
  .ticker-item {
    font-size: 0.82rem;
  }

  .ticker-unit {
    margin-right: 1.8rem;
  }

  .ticker-custom {
    margin-right: 0.5rem;
  }

  .ticker-separator {
    width: 0.25rem;
    min-width: 0.25rem;
  }

  .ticker-skywise-box {
    min-height: 25px;
    padding: 0.2rem 0.5rem;
    gap: 0.26rem;
  }

  .ticker-new-badge {
    height: 0.95rem;
    font-size: 0.55rem;
    padding: 0 0.34rem;
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0) translateY(-50%);
  }

  100% {
    transform: translateX(-50%) translateY(-50%);
  }
}

.nav-menu {
  position: fixed;
  top: calc(var(--header-total) + 12px) !important;
  right: max(1rem, env(safe-area-inset-right));
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - var(--header-total) - 2rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 27, 34, 0.98), rgba(7, 10, 12, 0.98));
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 10001;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a,
.nav-menu .link-button,
.nav-menu button[data-logout] {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.nav-menu .link-button:hover,
.nav-menu button[data-logout]:hover {
  color: var(--brand);
  background: rgba(244, 157, 80, 0.1);
}

.nav-feature,
.nav-giveaway {
  background: linear-gradient(135deg, #ff8c00, #ff2d55) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255, 100, 60, 0.26);
}

.user-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-menu[hidden],
#login-link[hidden] {
  display: none !important;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  margin-top: 0.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .nav-shell {
    width: 100%;
    padding: 0 1rem;
  }

  .brand {
    max-width: calc(100vw - 84px);
  }

  .brand-mark {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-basis: 42px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small,
  .user-status {
    display: none !important;
  }

  .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  .nav-menu {
    top: calc(var(--header-total) + 8px) !important;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .ticker-live {
    margin-left: 0.75rem;
    font-size: 0.65rem;
  }

  .ticker-message {
    padding: 0 1.75rem;
    font-size: 0.88rem;
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
.nav-menu,
.site-bg {
  max-width: 100vw;
}

.nav-menu {
  scrollbar-width: thin;
}

.nav-menu:not(.active) {
  overflow: hidden;
}

/* ==================== BUTTONS ==================== */

.btn,
.primary-button,
.secondary-button,
.send-btn,
.login-btn,
.join-btn,
.sync-btn,
.upload-btn,
.save-btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 850;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn,
.btn-primary,
.primary-button,
.send-btn,
.login-btn,
.join-btn,
.sync-btn,
.upload-btn,
.save-btn,
.download-btn {
  background: linear-gradient(135deg, var(--brand), #ffbd7c);
  color: #111;
  box-shadow: 0 12px 34px rgba(244, 157, 80, 0.26);
}

.btn:hover,
.btn-primary:hover,
.primary-button:hover,
.send-btn:hover,
.login-btn:hover,
.join-btn:hover,
.sync-btn:hover,
.upload-btn:hover,
.save-btn:hover,
.download-btn:hover {
  transform: translateY(-2px);
  color: #111;
  box-shadow: 0 16px 42px rgba(244, 157, 80, 0.34);
}

.btn-secondary,
.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--border);
  box-shadow: none;
}

.btn-secondary:hover,
.secondary-button:hover {
  color: var(--brand);
  background: rgba(244, 157, 80, 0.1);
  border-color: var(--border-strong);
}

/* ==================== HERO ==================== */

.hero-royal {
  min-height: calc(100vh - var(--header-total));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  text-align: left;
}

.hero-royal::before {
  display: none !important;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.42) contrast(1.18) saturate(1.08);
}

.hero-royal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 75% 25%, rgba(244, 157, 80, 0.2), transparent 26rem),
    radial-gradient(circle at 20% 80%, rgba(0, 174, 240, 0.14), transparent 24rem),
    linear-gradient(90deg, rgba(5, 7, 10, 0.94), rgba(5, 7, 10, 0.66) 48%, rgba(5, 7, 10, 0.88));
}

.page-hero,
.premium-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 10, 12, 0.92), rgba(14, 24, 30, 0.82)),
    radial-gradient(circle at 85% 20%, rgba(244, 157, 80, 0.24), transparent 28rem),
    radial-gradient(circle at 10% 85%, rgba(0, 174, 240, 0.15), transparent 26rem);
}

.page-hero::before,
.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 72%, rgba(244, 157, 80, 0.09)),
    url("../images/realm-bg.png") center/cover no-repeat;
  opacity: 0.24;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 10, 12, 0.7) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.52) 100%);
}

.hero-grid {
  width: min(92%, var(--container));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 850px;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.98;
  margin-bottom: 1.25rem;
  color: var(--text);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-card,
.hero-emblem,
.glass-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(7, 10, 12, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), var(--glow);
  text-align: center;
}

.hero-logo,
.hero-emblem img {
  width: min(220px, 70%) !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto 1rem;
  display: block;
}

.hero-card h2,
.hero-emblem h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.hero-card p,
.hero-emblem p {
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand);
  font-weight: 850;
}

.trust-strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

/* ==================== SECTIONS / CARDS / GRIDS ==================== */

.section,
.premium-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-dark {
  background: linear-gradient(135deg, rgba(16, 24, 32, 0.84), rgba(7, 10, 12, 0.94));
}

.split-layout,
.split-panel,
.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-layout,
.split-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}

.services-grid,
.grid-3,
.premium-card-grid,
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.service-card,
.card,
.premium-card,
.contact-card,
.contact-box,
.auth-box,
.profile-boxed,
.members-callout,
.members-shop-wrapper,
.download-card,
.entry-steps,
.proof-box,
.entry-window,
.ticket-bounce-box,
.stat-card,
.video-frame,
.insta-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow-soft);
}

.service-card,
.card,
.premium-card,
.contact-card,
.contact-box,
.stat-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.service-card,
.card,
.premium-card {
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.card:hover,
.premium-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.service-card i,
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  color: var(--brand);
  background: rgba(244, 157, 80, 0.1);
  border: 1px solid rgba(244, 157, 80, 0.2);
  font-size: 1.55rem;
}

.video-frame {
  overflow: hidden;
  background: #000;
}

.video-frame video {
  width: 100%;
  display: block;
}

.giveaway-promo {
  max-width: 1040px;
  margin: 2rem auto;
  text-align: center;
}

.realm-banner,
.join-realm {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(135deg, rgba(7, 10, 12, 0.86), rgba(7, 10, 12, 0.76)),
    url("../images/realm-bg.png") center/cover no-repeat;
  text-align: center;
}

.realm-content,
.join-realm-content {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(7, 10, 12, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.realm-intro {
  text-align: center;
}

.realm-intro h2,
.realm-intro p {
  max-width: 880px;
  margin-inline: auto;
}

/* ==================== TIMELINE / STATS ==================== */

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: linear-gradient(var(--brand), rgba(244, 157, 80, 0.08));
}

.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.timeline-icon {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: linear-gradient(135deg, var(--brand), #ffd09e);
  box-shadow: 0 0 0 8px rgba(244, 157, 80, 0.1), var(--glow);
}

.timeline-content {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.45rem;
}

/* ==================== CONTACT / FORMS ==================== */

.contact-card {
  position: sticky;
  top: calc(var(--header-total) + 1rem);
}

.contact-methods {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.contact-methods a:hover {
  border-color: var(--border-strong);
  color: var(--brand);
  transform: translateY(-2px);
}

form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin: 0;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select option {
  background: var(--panel-solid);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(244, 157, 80, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.conditional-field[hidden] {
  display: none !important;
}

.form-actions {
  text-align: center;
}

/* ==================== INSTAGRAM ==================== */

.insta-feed {
  text-align: center;
}

.insta-embed {
  overflow: hidden;
}

.insta-feed iframe.lightwidget-widget {
  width: 100% !important;
  min-height: 420px;
  display: block;
  margin: 0 auto;
  border: none;
}

/* ==================== COOKIE / TOAST ==================== */

#cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 10, 12, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 10010;
  display: none;
}

#cookie-banner.show {
  display: block;
}

#cookie-banner p {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#cookie-banner button {
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--pill);
  font-weight: 800;
}

#cookie-banner .accept,
#cookie-banner [data-cookie-accept] {
  background: var(--brand);
  color: #111;
}

#cookie-banner .reject,
#cookie-banner [data-cookie-reject] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

#toast-container {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10020;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  width: min(420px, calc(100vw - 2rem));
}

.toast {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 0.28s ease both;
}

.toast-success {
  background: linear-gradient(135deg, #118f5c, var(--success));
}

.toast-error {
  background: linear-gradient(135deg, #b71c36, var(--danger));
}

.toast .close-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== FOOTER ==================== */

.footer {
  margin-top: 2rem;
  padding: 4rem 1rem 2rem;
  color: var(--muted);
  background:
    radial-gradient(circle at top, rgba(244, 157, 80, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--bg), #050607);
  border-top: 1px solid var(--border-strong);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-column h4 {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.55rem;
}

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--brand);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.social-icons a:hover {
  transform: translateY(-2px);
  color: var(--brand);
  border-color: var(--border-strong);
}

.footer-branding-centered,
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  text-align: center;
}

.footer-branding-centered {
  margin-top: 2.5rem;
  color: var(--soft);
}

.footer-bottom {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--soft);
}

.arpas-logo {
  max-width: 150px;
  margin-bottom: 0.8rem;
}

.arpas-divider {
  width: 100%;
  max-width: 160px;
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .grid-3,
  .premium-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .split-panel,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-emblem {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-royal::after {
    background:
      radial-gradient(circle at 70% 20%, rgba(244, 157, 80, 0.16), transparent 22rem),
      linear-gradient(180deg, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.72), rgba(5, 7, 10, 0.94));
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --ticker-height: 40px;
    --header-total: 110px;
  }

  body {
    padding-top: var(--header-total);
  }

  .nav-shell {
    width: 100%;
    padding: 0 1rem;
  }

  .brand {
    max-width: calc(100vw - 84px);
  }

  .brand-mark {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-basis: 42px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small,
  .user-status {
    display: none !important;
  }

  .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  .nav-menu {
    top: calc(var(--header-total) + 8px) !important;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .ticker-live {
    margin-left: 0.75rem;
    font-size: 0.65rem;
  }

  .ticker-message {
    padding: 0 1.75rem;
    font-size: 0.88rem;
  }

  .container {
    width: min(92%, 680px);
    padding: 3rem 0;
  }

  .hero-royal,
  .page-hero,
  .premium-hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 3rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
  }

  .hero-actions,
  .trust-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .form-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline li {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  #cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(92%, 430px);
    padding: 2.5rem 0;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.6rem);
  }

  .service-card,
  .card,
  .premium-card,
  .contact-card,
  .contact-box,
  .stat-card {
    padding: 1.15rem;
  }

  .insta-feed iframe.lightwidget-widget {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none !important;
    position: static;
    transform: none;
  }
}

/* ==================== CINEMATIC PAGE LOADER ==================== */

.page-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 157, 80, 0.2), transparent 24rem),
    radial-gradient(circle at 75% 70%, rgba(0, 174, 240, 0.14), transparent 22rem),
    linear-gradient(180deg, #0b0f12 0%, #05070a 100%);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.04) 45%, transparent 70%),
    url("../images/realm-bg.png") center/cover no-repeat;
  opacity: 0.16;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-kingdom {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
}

.loader-logo {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.65));
  animation: loaderFloat 2.4s ease-in-out infinite;
}

.loader-drone {
  position: absolute;

  top: -1.5rem;
  left: 50%;
  color: var(--brand);
  font-size: 1.4rem;
  animation: droneSweep 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(244, 157, 80, 0.75));
}

.loader-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--brand);
  border-right-color: var(--brand-blue);
  animation: loaderSpin 0.9s linear infinite;
}

.loader-title {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.loader-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes droneSweep {
  0% {
    transform: translateX(-120px) translateY(8px) rotate(-8deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(-12px) rotate(0deg);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(90px) translateY(8px) rotate(8deg);
    opacity: 0;
  }
}

/* ==================== NFC CONTACT CARD FIXES ==================== */

.one-column-grid {
  grid-template-columns: 1fr !important;
}

.social-action-row {
  justify-content: center;
}

.nfc-floating-contact-btn {
  display: none;
}

@media (max-width: 768px) {
  body.nfc-contact-page {
    padding-bottom: 108px !important;
  }

  body.nfc-contact-page .desktop-contact-btn {
    display: none !important;
  }

  body.nfc-contact-page .nfc-floating-contact-btn {
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    z-index: 999998 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem;

    min-height: 58px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;

    background: linear-gradient(135deg, var(--brand), #ffbd7c);
    color: #111 !important;
    font-weight: 900;
    text-align: center;

    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.55),
      0 0 34px rgba(244, 157, 80, 0.42);

    transform: none !important;
  }

  body.nfc-contact-page .nfc-floating-contact-btn:hover {
    color: #111 !important;
    transform: none !important;
  }

  body.nfc-contact-page .nfc-floating-contact-btn i {
    color: #111 !important;
  }
}

.nfc-hero-side {
  display: grid;
  gap: 1.25rem;
}

.nfc-contact-page .nfc-quick-actions {
  position: relative;
  top: auto;
}

.nfc-contact-page .nfc-quick-actions h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.nfc-services-layout {
  display: block;
}

.nfc-contact-page .one-column-grid {
  grid-template-columns: 1fr !important;
}

@media (max-width: 900px) {
  .nfc-hero-side {
    order: 2;
  }

  .nfc-contact-page .hero-copy {
    order: 1;
  }
}