:root {
  color-scheme: light;
  --electric-blue: #0084ff;
  --lime-green: #a5e61d;
  --metallic-silver: #9da7b8;
  --bg: #ffffff;
  --bg-2: #f4f9ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --soft: #26384f;
  --gold: var(--electric-blue);
  --bronze: var(--metallic-silver);
  --rare: var(--electric-blue);
  --epic: #7f56d9;
  --success: #55b80d;
  --accent: var(--electric-blue);
  --border: rgba(0, 132, 255, 0.18);
  --border-strong: rgba(0, 132, 255, 0.34);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --brand-logo: url("https://qauqeyxuqkiwhvrnniko.supabase.co/storage/v1/render/image/public/button-empire-thumbnails/logo.png?width=160&height=160&resize=cover&quality=90");
  --font: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 132, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(165, 230, 29, 0.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 58%, #eef6ff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 132, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 167, 184, 0.12) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(1160px, calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(19, 12, 7, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.brand-sigil {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 0;
  background: var(--brand-logo) center / 124% 124% no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
  overflow: hidden;
  clip-path: circle(49.5% at 50% 50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 49.5%, transparent 50%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 49.5%, transparent 50%);
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand-mark small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.tab-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab-link:focus-visible {
  color: var(--gold);
  background: rgba(0, 132, 255, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .tab-link:hover {
    color: var(--gold);
    background: rgba(0, 132, 255, 0.1);
  }
}

.tab-link--primary {
  color: #171008;
  background: linear-gradient(135deg, #f7d98b, #c98b3e);
  box-shadow: 0 10px 26px rgba(0, 132, 255, 0.18);
}

.support-home-link {
  flex: 0 0 auto;
}

main {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(42px, 6vw, 80px);
}

.hero-map {
  position: absolute;
  inset: 7% -12% auto 38%;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 44px, rgba(0, 132, 255, 0.09) 45px 46px),
    conic-gradient(from 30deg, transparent, rgba(0, 132, 255, 0.12), transparent 34%, rgba(0, 132, 255, 0.08), transparent 70%);
  filter: blur(0.2px);
  opacity: 0.9;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--font);
}

h1 {
  max-width: 760px;
  font-size: clamp(32px, 6.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

h1 span {
  display: block;
  margin-top: 0.28em;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--soft);
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(15px, 2vw, 18px);
}

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

.cta-button {
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta-button:hover {
    transform: translateY(-2px);
  }
}

.cta-button--gold {
  border-color: rgba(0, 132, 255, 0.62);
  color: #170f08;
  background: linear-gradient(135deg, #ffe6a3, #d7973f);
  box-shadow: 0 20px 42px rgba(0, 132, 255, 0.18);
}

.cta-button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.codex-hint:empty {
  display: none;
}

.codex-hint {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.codex-hint code {
  color: var(--gold);
}

.codex-hint.is-ready {
  color: var(--success);
}

.codex-hint.is-missing {
  color: #dfb177;
}

.hero-display {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.atlas-orbit {
  position: absolute;
  width: min(92vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 132, 255, 0.18);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), transparent 34%),
    repeating-linear-gradient(118deg, rgba(0, 132, 255, 0.12) 0 2px, transparent 2px 16px),
    rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.42), 0 34px 90px rgba(0, 0, 0, 0.36);
}

.country-card {
  position: relative;
  z-index: 2;
  width: min(360px, 82vw);
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 85% 12%, rgba(0, 132, 255, 0.22), transparent 13rem),
    rgba(34, 24, 13, 0.92);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.country-card::after {
  content: "";
  position: absolute;
  inset: -70% -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.12), transparent 58%);
  animation: cardSheen 7s ease-in-out infinite;
}

.card-rarity {
  position: relative;
  z-index: 1;
  display: inline-flex;
  border: 1px solid rgba(0, 132, 255, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 132, 255, 0.08);
}

.country-flag {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-top: 70px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 46px;
}

.country-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 32px;
  font-weight: 800;
}

.country-card p,
.card-footer {
  position: relative;
  z-index: 1;
}

.country-card p {
  color: var(--soft);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.card-footer strong {
  color: var(--success);
}

.mini-card {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 118px;
  height: 154px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.mini-card span {
  font-size: 36px;
}

.mini-card strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.mini-card--epic {
  right: 2%;
  top: 18%;
  border-color: rgba(177, 138, 244, 0.42);
  transform: rotate(8deg);
}

.mini-card--rare {
  left: 0;
  bottom: 13%;
  border-color: rgba(0, 132, 255, 0.42);
  transform: rotate(-9deg);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
}

.story-section,
.destination-section,
.achievement-section,
.ranking-section,
.help-section,
.final-cta {
  position: relative;
  margin-top: clamp(48px, 9vw, 108px);
}

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

.story-card,
.destination-card,
.achievement-ledger article,
.leaderboard-card,
.help-steps,
.final-cta {
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(26, 18, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 26px 24px 24px;
  border-radius: 28px;
}

.story-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 132, 255, 0.5), transparent);
  pointer-events: none;
}

.ranking-lede {
  margin: 0 0 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.story-card h3 {
  position: relative;
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.story-card span {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 132, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(0, 132, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  font-family: var(--font);
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
}

.gate-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.gate-icon--svg {
  color: var(--gold);
}

.gate-icon--svg .landing-svg-icon {
  width: 26px;
  height: 26px;
}

.destination-card h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
}

.story-card p,
.destination-card p,
.achievement-ledger p {
  color: var(--muted);
  font-size: 14px;
}

.story-card p {
  position: relative;
  margin: 10px 0 0;
  line-height: 1.6;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.destination-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 30px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .destination-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 28px 64px rgba(0, 132, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.destination-card strong {
  margin-top: auto;
  color: var(--gold);
  font-size: 13px;
}

.destination-card--codex {
  border-color: rgba(0, 132, 255, 0.38);
}

.destination-card--achievement {
  border-color: rgba(177, 138, 244, 0.34);
}

.destination-card--stats {
  border-color: rgba(165, 230, 29, 0.44);
}

.destination-card--help {
  border-color: rgba(0, 132, 255, 0.32);
}

.destination-card--ranking {
  border-color: rgba(157, 167, 184, 0.38);
}

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

.achievement-ledger article {
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
}

.reward-medal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.2);
}

.achievement-ledger h3 {
  margin-top: 22px;
}

.leaderboard-card {
  padding: 18px;
  border-radius: 30px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--soft);
}

.leaderboard-row + .leaderboard-row {
  margin-top: 8px;
}

.leaderboard-row--top {
  background: rgba(0, 132, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .leaderboard-row:hover {
    background: rgba(0, 132, 255, 0.08);
  }
}

.leaderboard-row span {
  color: var(--gold);
  font-weight: 800;
}

.leaderboard-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.help-steps {
  margin: 0;
  padding: 28px 28px 28px 52px;
  border-radius: 30px;
  color: var(--soft);
}

.help-steps li + li {
  margin-top: 14px;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 72px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 132, 255, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.94));
}

.final-cta h2 {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
  line-height: 1.25;
}

.final-cta p:not(.eyebrow) {
  color: var(--muted);
}

@keyframes cardSheen {
  0%,
  42% {
    transform: translateX(-20%) rotate(8deg);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  100% {
    transform: translateX(24%) rotate(8deg);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
    flex-direction: column;
  }

  .top-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .tab-link {
    padding: 0 10px;
  }

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

  .hero-display {
    min-height: 440px;
    order: -1;
  }

  .destination-grid,
  .story-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-ledger {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: min(100% - 20px, 1160px);
  }

  .site-header {
    top: 6px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  .brand-mark {
    min-height: 32px;
    gap: 8px;
  }

  .brand-sigil {
    width: 30px;
    height: 30px;
  }

  .brand-mark strong {
    display: none;
  }

  .brand-mark small {
    display: none;
  }

  .top-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    padding: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .top-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-link {
    min-width: max-content;
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-tabs .tab-link:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(244, 249, 255, 0.96);
  }

  .support-home-link {
    min-height: 36px;
    min-width: max-content;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-map {
    inset: 8% 0 auto auto;
    width: min(420px, calc(100vw - 32px));
    height: min(420px, calc(100vw - 32px));
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .hero-display {
    min-height: 320px;
    order: 0;
  }

  .atlas-orbit {
    width: min(300px, calc(100vw - 56px));
  }

  .country-card {
    width: min(300px, 100%);
    min-height: 300px;
    padding: 20px;
    border-radius: 24px;
  }

  .country-flag {
    width: 64px;
    height: 64px;
    margin-top: 26px;
    border-radius: 18px;
    font-size: 34px;
  }

  .country-card h2 {
    margin-top: 16px;
    font-size: 26px;
  }

  .country-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .card-footer {
    margin-top: 18px;
    font-size: 12px;
  }

  .mini-card {
    display: none;
  }

  .destination-grid,
  .story-track {
    grid-template-columns: 1fr;
  }

  .destination-card {
    min-height: 196px;
  }

  .leaderboard-row {
    grid-template-columns: 42px 1fr;
  }

  .leaderboard-row em {
    grid-column: 2;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-header {
    width: min(100% - 16px, 1160px);
    padding: 5px;
  }

  .brand-sigil {
    width: 28px;
    height: 28px;
  }

  .tab-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .site-noise {
    display: none;
  }
}

.site-footer {
  width: min(1160px, calc(100% - 28px));
  margin: 44px auto 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 20px;
  align-items: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__links a:hover {
    color: var(--gold);
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    gap: 4px 16px;
  }
}

/* White launch theme */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 132, 255, 0.18);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-sigil {
  border-color: transparent;
  border-radius: 999px;
  background: var(--brand-logo) center / 124% 124% no-repeat;
  color: transparent;
  box-shadow: none;
  clip-path: circle(49.5% at 50% 50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 49.5%, transparent 50%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 49.5%, transparent 50%);
}

.top-tabs {
  border-color: rgba(0, 132, 255, 0.12);
  background: rgba(244, 249, 255, 0.82);
}

.tab-link {
  color: #334155;
}

.tab-link:focus-visible {
  color: var(--electric-blue);
  background: rgba(0, 132, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .tab-link:hover {
    color: var(--electric-blue);
    background: rgba(0, 132, 255, 0.08);
  }
}

.tab-link--primary,
.top-tabs .tab-link.is-current,
.cta-button--gold {
  color: #ffffff;
  border-color: rgba(0, 132, 255, 0.42);
  background: linear-gradient(135deg, var(--electric-blue), #0067d6);
  box-shadow: 0 16px 34px rgba(0, 132, 255, 0.22);
}

.cta-button--ghost {
  color: var(--electric-blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 132, 255, 0.2);
}

.hero-map {
  background:
    repeating-radial-gradient(circle, transparent 0 44px, rgba(0, 132, 255, 0.12) 45px 46px),
    conic-gradient(from 30deg, transparent, rgba(0, 132, 255, 0.18), rgba(165, 230, 29, 0.18), transparent 70%);
}

.atlas-orbit {
  border-color: rgba(0, 132, 255, 0.18);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.88), transparent 34%),
    repeating-linear-gradient(118deg, rgba(0, 132, 255, 0.12) 0 2px, transparent 2px 16px),
    rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 54px rgba(0, 132, 255, 0.12), 0 32px 80px rgba(0, 132, 255, 0.14);
}

.country-card,
.story-card,
.destination-card,
.achievement-ledger article,
.leaderboard-card,
.help-steps,
.final-cta,
.mini-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.88)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 132, 255, 0.16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.country-card {
  background:
    radial-gradient(circle at 84% 12%, rgba(165, 230, 29, 0.22), transparent 12rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(236, 247, 255, 0.92));
}

.country-flag,
.card-rarity,
.gate-icon,
.mode-icon,
.landing-stat-icon,
.rank-board__icon {
  background: rgba(0, 132, 255, 0.08);
  border-color: rgba(0, 132, 255, 0.2);
  color: var(--electric-blue);
}

.story-card::before,
.section-heading::before {
  background: linear-gradient(90deg, var(--electric-blue), rgba(165, 230, 29, 0.8), transparent);
}

.card-footer strong,
.codex-hint.is-ready {
  color: #4aa400;
}
