/* ============================================================
   ASIA+ — Stylesheet
   Brand palette from the logo:
     crimson #d80000 → primary accent
     near-black #0b0b0d → background
     silver #f0f0f0 → text
   Design: borderless, panel-based separation, animated wallpaper.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --panel: rgba(18, 18, 22, 0.72);
  --panel-solid: #141419;
  --panel-2: #1a1a20;

  --text: #f2f2f4;
  --text-2: #b4b4be;
  --text-3: #7c7c8a;

  --red: #d80000;
  --red-bright: #ff2d2d;
  --red-deep: #8b0000;
  --gold: #ffb020;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-red: 0 24px 60px -24px rgba(216, 0, 0, 0.45);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;

  /* easing used across the site */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

code { font-family: "Cascadia Code", "SF Mono", Consolas, monospace; }

::selection { background: var(--red); color: #fff; }

/* Scrollbar — subtle, no track lines */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a33; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== WALLPAPER ===================== */
#wallpaper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
/* dim + vignette so content stays readable over the scrolling image */
.wallpaper-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 80% at 50% 42%, rgba(6, 6, 8, 0.42), rgba(6, 6, 8, 0.12) 52%, rgba(6, 6, 8, 0.6) 100%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.5) 0%, rgba(6, 6, 8, 0.1) 26%, rgba(6, 6, 8, 0.62) 100%);
}
/* all content sits above the wallpaper */
.nav, .hero, .section, .cta, .footer, .ticker { position: relative; z-index: 2; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(216, 0, 0, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(255, 45, 45, 0.8); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(9, 9, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img {
  display: block;
  height: 34px;
  width: auto; /* keep the wide logo's aspect ratio — never squash it */
  filter: drop-shadow(0 0 8px rgba(216, 0, 0, 0.5));
}
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.plus { color: var(--red-bright); }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* glowing red underline for nav tabs */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--red-bright), 0 0 14px rgba(255, 45, 45, 0.85), 0 0 26px rgba(216, 0, 0, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.ip-btn { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.8rem; }
.ip-btn .ip-text { display: inline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { padding: 150px 0 60px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(20, 20, 25, 0.7);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--text-2);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.status-pill.online .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 2s infinite;
}
.status-pill.offline .status-dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--red-bright) 0%, #ff6b6b 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.ip-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 18px;
  max-width: 460px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.ip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 8px;
}
.ip-row { display: flex; align-items: center; gap: 10px; }
.ip-row code {
  flex: 1;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  padding: 9px 12px;
  border-radius: 8px;
  overflow-x: auto;
}
.ip-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.dot-sep { opacity: 0.5; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero logo (source is wide ~1.73:1, so constrain by width) */
.hero-logo { position: relative; display: flex; justify-content: center; }
.hero-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(216, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.logo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 0, 0, 0.4), transparent 65%);
  filter: blur(50px);
  z-index: 1;
  animation: glow 4s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 0.9; transform: scale(1.08); }
}

/* Ticker */
.ticker {
  margin-top: 70px;
  background: rgba(9, 9, 12, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.ticker-track span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; }
.section-store, .section-join { background: rgba(9, 9, 12, 0.62); backdrop-filter: blur(14px); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(255, 45, 45, 0.6);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-2); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.section-head code {
  color: var(--red-bright);
  background: rgba(216, 0, 0, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* ===================== CARDS (borderless) ===================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.gm-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.gm-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(216, 0, 0, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -24px rgba(216, 0, 0, 0.5);
}
.gm-card:hover::before { opacity: 1; }
.gm-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(216, 0, 0, 0.13);
  border-radius: 14px;
  margin-bottom: 18px;
  position: relative;
}
.gm-card h3 { font-size: 1.28rem; font-weight: 750; margin-bottom: 8px; }
.gm-card p { color: var(--text-2); font-size: 0.94rem; }
.gm-players {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---- Custom solid-white icons (inline SVG sprite in index.html) ---- */
.tic-ic, .gm-ic, .vote-ic {
  width: 1em;
  height: 1em;
  fill: #ffffff;
  flex: none;
  display: block;
}
.tic-ic { width: 15px; height: 15px; }
.gm-ic  { width: 28px; height: 28px; }
.vote-ic { width: 26px; height: 26px; }
.gm-players .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  flex: none;
}

/* ===================== STORE ===================== */
.store-tabs {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  background: rgba(20, 20, 25, 0.7);
  border-radius: 999px;
  padding: 6px;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.store-tabs-inner { display: flex; gap: 4px; position: relative; }
.store-tab {
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s var(--ease);
}
.store-tab:hover { color: var(--text); }
.store-tab.active { color: #fff; }

/* glowing underline that slides between tabs */
.tabs-indicator {
  position: absolute;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 32px rgba(216, 0, 0, 0.6);
  transition: transform 0.42s var(--ease), width 0.42s var(--ease);
  z-index: 1;
  pointer-events: none;
}

.store-panel { display: none; }
.store-panel.active { display: block; animation: panelIn 0.5s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.rank-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px -26px rgba(0, 0, 0, 0.95);
}
.rank-card.popular {
  background: linear-gradient(180deg, rgba(216, 0, 0, 0.12), rgba(18, 18, 22, 0.85) 46%);
  box-shadow: var(--shadow-red);
}
.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(216, 0, 0, 0.9);
}
.rank-card h3 { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.01em; }
.rank-tagline { color: var(--text-3); font-size: 0.86rem; margin-bottom: 16px; }
.rank-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.rank-price .currency { font-size: 1.1rem; color: var(--text-2); font-weight: 600; }
.rank-price .amount { font-size: 2.5rem; font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.rank-price .period { font-size: 0.85rem; color: var(--text-3); }
.rank-price .free { font-size: 2.1rem; font-weight: 850; color: #4ade80; letter-spacing: -0.03em; }

.perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.perks li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--red-bright);
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 1px;
  text-shadow: 0 0 8px rgba(255, 45, 45, 0.8);
}

.btn-buy {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}
.btn-buy.soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-buy.soon:hover { transform: none; }

.store-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.84rem;
  margin-top: 34px;
}

/* ===================== VOTE ===================== */
.vote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vote-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.vote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -20px rgba(216, 0, 0, 0.5);
}
.vote-logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  flex: none;
  /* logos carry their own brand backgrounds; a chip fill would clash */
  overflow: hidden;
}
.vote-logo.wide {
  width: 100%; height: auto;
  align-self: stretch;
  margin: 0 4px;
  padding: 2px;
}
.vote-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.vote-card strong { font-size: 0.96rem; }
.vote-card span { font-size: 0.8rem; color: var(--text-3); }
.vote-go {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 0.05em;
}

/* ===================== STEPS ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.step {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 130px; height: 130px;
  background: radial-gradient(circle at 70% 30%, rgba(216, 0, 0, 0.14), transparent 60%);
}
.step-num {
  font-size: 2.6rem;
  font-weight: 850;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.92rem; }
.step code {
  color: var(--red-bright);
  background: rgba(216, 0, 0, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
}
.bedrock-note {
  text-align: center;
  background: rgba(216, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 16px 22px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.bedrock-note code {
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ===================== RULES ===================== */
.rules-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rules-list li {
  background: var(--panel);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
  backdrop-filter: blur(12px);
}
.rules-list li:hover { background: var(--panel-2); transform: translateX(4px); }
.rules-list li::before {
  content: "§";
  color: var(--red-bright);
  font-weight: 800;
  flex-shrink: 0;
  width: 22px;
  text-shadow: 0 0 8px rgba(255, 45, 45, 0.7);
}

/* ===================== CTA ===================== */
.cta {
  padding: 90px 0;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(216, 0, 0, 0.2), transparent 60%),
    rgba(9, 9, 12, 0.62);
  backdrop-filter: blur(14px);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 850; letter-spacing: -0.03em; margin-bottom: 8px; }
.cta p { color: var(--text-2); max-width: 520px; }

/* ===================== FOOTER ===================== */
.footer { background: rgba(6, 6, 8, 0.9); padding: 48px 0 36px; backdrop-filter: blur(16px); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img {
  height: 30px;
  width: auto; /* preserve the wide aspect ratio */
  filter: drop-shadow(0 0 8px rgba(216, 0, 0, 0.5));
}
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-ip { font-family: "Cascadia Code", Consolas, monospace; color: var(--red-bright); font-size: 0.95rem; }
.footer-copy { color: var(--text-3); font-size: 0.82rem; line-height: 1.7; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(216, 0, 0, 0.8);
  z-index: 200;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
/* ---- TV / large displays: scale up for 10-foot viewing ---- */
@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
  html { font-size: 17.5px; }
  .section { padding: 120px 0; }
  .hero-title { max-width: 760px; }
}
@media (min-width: 2200px) {
  :root { --maxw: 1520px; }
  html { font-size: 19.5px; }
  .section { padding: 140px 0; }
  .hero { min-height: 92vh; }
  .gm-icon { width: 64px; height: 64px; }
  .gm-ic { width: 34px; height: 34px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-logo img { max-width: 320px; }
  .vote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cards-3, .steps { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 72px; left: 12px; right: 12px;
    flex-direction: column;
    background: rgba(13, 13, 16, 0.97);
    backdrop-filter: blur(18px);
    border-radius: 14px;
    padding: 12px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  /* keep the underline glow contained inside the dropdown */
  .nav-links a::after { left: 14px; right: auto; width: 26px; }
  .nav-toggle { display: flex; }
  .ip-btn .ip-text { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .rank-card.popular { order: -1; }
  .store-tabs { display: flex; margin: 0 auto 36px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .vote-grid { grid-template-columns: 1fr 1fr; }
  .ip-row { flex-direction: column; align-items: stretch; }
  .ip-row .btn { width: 100%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .popular-badge { position: static; align-self: flex-start; margin-bottom: 12px; }
}

/* ---- Small phones: stack the hero CTAs so labels never clip ---- */
@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn + .btn { margin-top: 10px; }
  .vote-grid { grid-template-columns: 1fr; }
  .store-tabs { width: 100%; }
  .store-tab { flex: 1; }
  .rank-card, .gm-card, .step, .vote-card { padding: 20px 16px; }
  .gm-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .gm-ic { width: 24px; height: 24px; }
  .ticker-track { gap: 36px; }
  .nav-inner { gap: 8px; }
}

/* ---- Landscape phones: compact hero so the fold isn't all logo ---- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 96px; padding-bottom: 40px; min-height: 0; }
  .hero-logo img { max-width: 180px; }
  .hero-inner { gap: 20px; }
  .ticker { display: none; }
  .section { padding: 48px 0; }
}

/* ---- Notched phones: respect the display cutout ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav-inner { padding-left: max(24px, env(safe-area-inset-left)); }
  .footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    padding-left: max(env(safe-area-inset-left), 0px);
    padding-right: max(env(safe-area-inset-right), 0px);
  }
}
