/* ==========================================================
   BumbleMC website
   Colors live in :root - change them there to re-theme the site.
   ========================================================== */

:root {
  --bg: #120d07;
  --bg-2: #1a1309;
  --surface: #221a0f;
  --surface-2: #2b2113;
  --border: #3d2f19;
  --border-light: #56431f;

  --honey: #ffc21a;
  --honey-light: #ffd95a;
  --honey-deep: #e89a06;
  --honey-shadow: #9a5a00;
  --amber: #ff8a1f;

  --text: #f7eedc;
  --text-muted: #b9a888;
  --text-dim: #85765c;

  --green: #5fd068;
  --discord: #5865f2;

  /* rank colors (same as in-game) */
  --guardian: #2bc804;
  --champion: #009ddb;
  --warlord: #cd120a;
  --titan: #892bc4;
  --king: #fd7e00;

  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint honeycomb texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffc21a' stroke-width='1.5'/%3E%3C/svg%3E");
}

img, video, svg { max-width: 100%; display: block; }
a { color: var(--honey); text-decoration: none; }
a:hover { color: var(--honey-light); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--honey); color: #241500; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-edge: #0b0804;
  --btn-text: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid rgba(0, 0, 0, .35);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--btn-edge), inset 0 2px 0 rgba(255, 255, 255, .18);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-text); filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), inset 0 2px 0 rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), inset 0 2px 0 rgba(255, 255, 255, .18); }
.btn:focus-visible { outline: 3px solid var(--honey-light); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-honey { --btn-bg: linear-gradient(180deg, var(--honey-light), var(--honey) 55%, var(--honey-deep)); --btn-edge: var(--honey-shadow); --btn-text: #2a1700; }
.btn-discord { --btn-bg: linear-gradient(180deg, #7983f5, var(--discord)); --btn-edge: #343c9c; --btn-text: #fff; }
.btn-store { --btn-bg: linear-gradient(180deg, #7ee08a, #3fb950 55%, #2e9a40); --btn-edge: #1d6b2b; --btn-text: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn-ghost { --btn-bg: rgba(34, 26, 15, .75); --btn-edge: #0b0804; border-color: var(--border-light); }
.btn-sm { padding: 9px 14px; font-size: 15px; }
.btn-lg { padding: 17px 30px; font-size: 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .28);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 208, 104, .6); animation: ping 2s infinite; }
.dot.offline { background: #d9534f; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 104, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(95, 208, 104, 0); } }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(18, 13, 7, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 18px; max-width: 1320px; }
.brand { display: flex; align-items: center; flex: none; }
.brand:hover { color: var(--text); }
.brand-logo { width: auto; height: 40px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); transition: transform .15s ease; }
.brand:hover .brand-logo { transform: scale(1.04) rotate(-1deg); }
.site-footer .brand-logo { height: 58px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.main-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 194, 26, .07); }
.main-nav a.active { color: var(--honey); }
.main-nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--honey); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn { height: 40px; padding-top: 0; padding-bottom: 0; }
.header-actions .pill { padding: 1px 8px; font-size: 11px; }
.ip-btn { gap: 8px; padding-left: 12px; padding-right: 10px; }
.ip-btn svg { width: 14px; height: 14px; }
.ip-btn .ip-text { font-size: 13px; letter-spacing: .02em; }
.ip-btn .pill { padding: 1px 8px; font-size: 11px; }
.copied-flag { position: absolute; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(34, 26, 15, .8);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 22px;
  background: rgba(18, 13, 7, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 14px; border-radius: 10px; color: var(--text); font-family: var(--font-heading); font-size: 19px; font-weight: 600; }
.mobile-nav a.active { color: var(--honey); background: rgba(255, 194, 26, .08); }
.mobile-nav .btn { margin-top: 10px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 20px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(255, 196, 64, .55), transparent 70%),
    linear-gradient(180deg, #24123a 0%, #5a2448 30%, #b4492f 55%, #f08a24 72%, #ffc85a 84%, #3a2310 84.2%, #1c1309 100%);
}
/* optional screenshot: drop a file at assets/img/hero.jpg */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 7, .35) 0%, rgba(18, 13, 7, .25) 50%, var(--bg) 100%);
}
.hero-scene { position: absolute; inset: auto 0 0; z-index: -2; width: 100%; height: 72%; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }

.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 9s ease-in-out infinite reverse; }
.float-c { animation: float 11s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.bee { position: absolute; z-index: 1; width: 58px; pointer-events: none; }
.bee img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.bee-1 { top: 26%; left: 12%; animation: buzz1 14s linear infinite; }
.bee-2 { top: 40%; right: 10%; width: 44px; animation: buzz2 17s linear infinite; }
.bee-3 { top: 18%; right: 26%; width: 36px; animation: buzz3 20s linear infinite; }
@keyframes buzz1 { /* flies right, turns around, flies back */
  0% { transform: translate(0, 0) rotate(0) scaleX(1); }
  25% { transform: translate(60px, -30px) rotate(8deg) scaleX(1); }
  49.3% { transform: translate(118px, 9px) rotate(-4deg) scaleX(1); }
  50.7% { transform: translate(118px, 9px) rotate(4deg) scaleX(-1); }
  75% { transform: translate(50px, 30px) rotate(-6deg) scaleX(-1); }
  98.6% { transform: translate(1px, 0) rotate(0) scaleX(-1); }
  100% { transform: translate(0, 0) rotate(0) scaleX(1); }
}
@keyframes buzz2 { /* flies left, turns around, flies back */
  0% { transform: translate(0, 0) rotate(0) scaleX(-1); }
  48.8% { transform: translate(-80px, 22px) rotate(-5deg) scaleX(-1); }
  50% { transform: translate(-80px, 22px) rotate(5deg) scaleX(1); }
  75% { transform: translate(-40px, -30px) rotate(-6deg) scaleX(1); }
  98.8% { transform: translate(-1px, 0) rotate(0) scaleX(1); }
  100% { transform: translate(0, 0) rotate(0) scaleX(-1); }
}
@keyframes buzz3 {
  0% { transform: translate(0, 0) rotate(0) scaleX(-1); }
  25% { transform: translate(-60px, -25px) rotate(-8deg) scaleX(-1); }
  49.5% { transform: translate(-118px, 8px) rotate(4deg) scaleX(-1); }
  50.5% { transform: translate(-118px, 8px) rotate(-4deg) scaleX(1); }
  75% { transform: translate(-55px, 28px) rotate(6deg) scaleX(1); }
  99% { transform: translate(-1px, 0) rotate(0) scaleX(1); }
  100% { transform: translate(0, 0) rotate(0) scaleX(-1); }
}

.hero-content { position: relative; max-width: 900px; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 194, 26, .35);
  border-radius: 99px;
  background: rgba(18, 13, 7, .55);
  color: var(--honey-light);
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(84vw, clamp(220px, 44vh, 430px)); height: auto; margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); animation: logo-float 6s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-tagline { margin: clamp(10px, 2vh, 22px) auto clamp(16px, 3vh, 28px); max-width: 620px; color: #f3e6cb; font-size: clamp(18px, 2.4vw, 22px); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  max-width: 820px;
  margin: clamp(18px, 3.6vh, 40px) auto 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(18, 13, 7, .7);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 14px; }
.hero-stats > div + div { border-left: 1px solid var(--border); }
.stat-label { display: block; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.stat-value { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--text); }
.stat-value.copy { cursor: pointer; color: var(--honey); }
.stat-value.copy:hover { color: var(--honey-light); }
.stat-ip .stat-value { font-size: 22px; }
.platform-tabs-mini { margin: 8px 0 2px; padding: 3px; border-radius: 10px; }
.platform-tabs-mini button { padding: 5px 14px; font-size: 13px; border-radius: 7px; }
.platform-tabs button[aria-pressed="true"] { background: var(--honey); color: #2a1700; }
.stat-port { margin-top: 2px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.stat-port.has-port { color: var(--text-muted); }
.stat-port b { color: var(--honey-light); font-weight: 800; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--text-muted); font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scroll-hint svg { width: 18px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 60px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(255, 170, 30, .28), transparent 70%),
    linear-gradient(180deg, #24150a, var(--bg));
}
.page-hero h1 { font-size: clamp(42px, 7vw, 72px); color: var(--honey); text-shadow: 0 4px 0 var(--honey-shadow), 0 8px 24px rgba(0, 0, 0, .5); }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 19px; }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; color: var(--text-dim); font-size: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--honey); }

/* ---------- sections ---------- */

.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(34, 26, 15, .55) 15%, rgba(34, 26, 15, .55) 85%, transparent); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; margin-bottom: 12px; color: var(--honey); font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before, .kicker::after { content: "⬢"; margin: 0 10px; font-size: 11px; opacity: .6; vertical-align: 2px; }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); }
.section-head p { color: var(--text-muted); font-size: 18px; }

/* ---------- cards ---------- */

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* honeycomb icon tile */
.hex {
  --hex-color: var(--honey);
  flex: none;
  width: 58px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hex-color) 45%, #2b2113), color-mix(in srgb, var(--hex-color) 18%, #1a1309));
}
.hex-lg { width: 84px; height: 94px; font-size: 42px; }

/* feature tiles */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.feature-card:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, var(--honey)) 60%, var(--border)); box-shadow: 0 10px 0 rgba(0, 0, 0, .35), 0 0 40px -10px color-mix(in srgb, var(--accent, var(--honey)) 50%, transparent); }
.feature-card h3 { margin: 0; font-size: 24px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.feature-card .more { margin-top: auto; padding-top: 6px; color: var(--accent, var(--honey)); font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: .05em; }
.feature-card .more::after { content: " →"; transition: margin .15s; }
a.feature-card:hover .more::after { margin-left: 4px; }
.feature-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border: 1px solid var(--border-light); border-radius: 99px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }

/* currency cards */
.currency { padding: 28px; text-align: left; }
.currency .hex { margin-bottom: 18px; }
.currency h3 { font-size: 28px; }
.currency ul { margin: 14px 0 0; padding: 0; list-style: none; }
.currency li { display: flex; gap: 10px; padding: 6px 0; color: var(--text-muted); font-size: 15.5px; border-top: 1px dashed var(--border); }
.currency li::before { content: "⬢"; color: var(--accent); font-size: 12px; line-height: 1.9; }
.cmd { display: inline-block; padding: 1px 8px; border: 1px solid var(--border-light); border-radius: 6px; background: rgba(0, 0, 0, .3); color: var(--honey-light); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; white-space: nowrap; }

/* ---------- ranks ---------- */

.rank-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rank-card {
  --rank: var(--honey);
  padding: 26px 18px 22px;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  border-top: 4px solid var(--rank);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rank-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--rank) 26%, transparent), transparent 70%); pointer-events: none; }
a.rank-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 10px 0 rgba(0, 0, 0, .35), 0 0 38px -12px var(--rank); }
.rank-card .hex { --hex-color: var(--rank); margin: 0 auto 14px; }
.rank-card h3 { position: relative; margin: 0; color: var(--rank); font-size: 26px; text-transform: uppercase; filter: brightness(1.25); }
.rank-card .tier { position: relative; color: var(--text-dim); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.rank-detail { --rank: var(--honey); padding: 0; overflow: hidden; }
.rank-detail-head { position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 28px; background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 30%, transparent), transparent 75%); border-bottom: 1px solid var(--border); }
.rank-detail-head .hex { --hex-color: var(--rank); }
.rank-detail-head h3 { margin: 0; color: var(--rank); font-size: 34px; text-transform: uppercase; filter: brightness(1.3); }
.rank-detail-head p { margin: 2px 0 0; color: var(--text-muted); }
.rank-detail-head .btn { margin-left: auto; }
.rank-detail-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.rank-detail-body > div { padding: 24px 28px; }
.rank-detail-body > div + div { border-left: 1px solid var(--border); }
.rank-detail h4 { margin-bottom: 14px; color: var(--text); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.perk-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.perk-list.single { grid-template-columns: 1fr; }
.perk-list li { display: flex; align-items: baseline; gap: 8px; color: var(--text-muted); font-size: 15px; }
.perk-list li::before { content: "✔"; color: var(--rank); font-size: 13px; filter: brightness(1.3); }
.perk-list li.new { color: var(--text); }
.perk-list li strong { color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-box { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .22); text-align: center; }
.stat-box b { display: block; color: var(--rank); font-family: var(--font-heading); font-size: 26px; font-weight: 800; filter: brightness(1.3); }
.stat-box span { color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- join ---------- */

.join-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.join-card { padding: 32px; }
.join-card h3 { font-size: 28px; }
.platform-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.platform-tabs button { padding: 9px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font-family: var(--font-heading); font-size: 16px; font-weight: 600; cursor: pointer; }
.platform-tabs button[aria-selected="true"] { background: var(--honey); color: #2a1700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; gap: 16px; padding: 12px 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--honey);
  color: #2a1700;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
}
.steps li > div { padding-top: 7px; }
.steps strong { color: var(--text); }
.steps p { margin: 2px 0 0; color: var(--text-muted); font-size: 15.5px; }
.ip-box { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ip-box code { padding: 8px 14px; border: 1px dashed var(--honey-deep); border-radius: 9px; background: rgba(255, 194, 26, .07); color: var(--honey-light); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 16px; }

.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--text-dim); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts b { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- CTA banner ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(88, 101, 242, .35), transparent 70%),
    linear-gradient(120deg, var(--surface-2), var(--surface));
}
.cta.honey { background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(255, 194, 26, .28), transparent 70%), linear-gradient(120deg, var(--surface-2), var(--surface)); }
.cta h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.cta p { margin: 0; color: var(--text-muted); font-size: 18px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-with-mascot { grid-template-columns: auto 1fr auto; }
.cta-mascot { width: 130px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); animation: logo-float 5s ease-in-out infinite; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-heading); font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--honey); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- features hub ---------- */

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter-bar button { padding: 8px 16px; border: 1px solid var(--border-light); border-radius: 99px; background: var(--surface); color: var(--text-muted); font-family: var(--font-heading); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.filter-bar button:hover { color: var(--text); }
.filter-bar button[aria-pressed="true"] { border-color: var(--honey); background: var(--honey); color: #2a1700; }
.feature-card[hidden] { display: none; }

/* ---------- feature detail page ---------- */

.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.feature-main > * + * { margin-top: 40px; }
.feature-main h2 { font-size: 32px; }
.feature-main p { color: var(--text-muted); }
.feature-main ul.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-main ul.bullets li { display: flex; gap: 12px; color: var(--text-muted); }
.feature-main ul.bullets li::before { content: "⬢"; color: var(--accent, var(--honey)); font-size: 13px; line-height: 2; }
.feature-main ul.bullets strong { color: var(--text); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0804;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .4), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.video-frame video,
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 45%, color-mix(in srgb, var(--accent, var(--honey)) 22%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px),
    #150f08;
}
.video-placeholder .play {
  width: 84px;
  height: 94px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: color-mix(in srgb, var(--accent, var(--honey)) 80%, #000);
  color: #1a1000;
}
.video-placeholder .play svg { width: 32px; height: 32px; margin-left: 5px; }
.video-placeholder strong { font-family: var(--font-heading); font-size: 24px; }
.video-placeholder span { color: var(--text-dim); font-size: 14px; }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.howto .card { padding: 20px; }
.howto h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 20px; }
.howto h3 span { font-size: 22px; }
.howto p { margin: 0; font-size: 15px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.sidebar .card { padding: 22px; }
.sidebar h3 { font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.cmd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cmd-list li { display: grid; gap: 2px; }
.cmd-list li span { color: var(--text-dim); font-size: 14px; }
.side-nav { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-muted); font-size: 15px; }
.side-nav a:hover { background: rgba(255, 194, 26, .07); color: var(--text); }
.side-nav a[aria-current="page"] { background: rgba(255, 194, 26, .12); color: var(--honey); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { padding: 18px 22px; color: var(--text); }
.pager a:hover { color: var(--text); border-color: var(--border-light); }
.pager small { display: block; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pager b { font-family: var(--font-heading); font-size: 21px; font-weight: 600; }
.pager .next { text-align: right; }

/* ---------- vote ---------- */

.vote-card { display: flex; align-items: center; gap: 18px; padding: 22px; }
.vote-card .num { flex: none; width: 46px; height: 52px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--surface-2); border: 0; color: var(--honey); font-family: var(--font-heading); font-size: 22px; font-weight: 800; }
.vote-card h3 { margin: 0; font-size: 21px; }
.vote-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.vote-card .btn { margin-left: auto; }
.vote-card.soon { opacity: .55; }

/* ---------- rules ---------- */

.rules { max-width: 860px; margin: 0 auto; display: grid; gap: 22px; }
.rule-group { padding: 28px 30px; }
.rule-group h2 { display: flex; align-items: center; gap: 14px; font-size: 28px; }
.rule-group ol { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: grid; gap: 12px; }
.rule-group li { position: relative; padding-left: 46px; color: var(--text-muted); counter-increment: rule; }
.rule-group li::before { content: counter(rule); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 194, 26, .12); color: var(--honey); font-family: var(--font-heading); font-weight: 700; }
.rule-group li strong { color: var(--text); }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border: 1px solid rgba(255, 194, 26, .35); border-radius: var(--radius); background: rgba(255, 194, 26, .07); color: var(--text-muted); }
.notice strong { color: var(--honey); }

/* ---------- footer ---------- */

.site-footer { margin-top: 40px; padding: 60px 0 36px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin-bottom: 14px; color: var(--text-muted); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-dim); font-size: 15px; }
.footer-grid a:hover { color: var(--honey); }
.footer-about p { margin: 14px 0 18px; color: var(--text-dim); font-size: 15px; max-width: 330px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--honey-deep);
  border-radius: 12px;
  background: #241a0c;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .rank-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .rank-detail-body { grid-template-columns: 1fr; }
  .rank-detail-body > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .cta { grid-template-columns: 1fr; padding: 34px 28px; }
  .cta-mascot { width: 92px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-actions .discord-btn .label,
  .header-actions .store-btn .label,
  .header-actions .ip-btn .ip-text { display: none; }
  .header-actions .btn { padding: 9px 12px; }
  .header-actions .store-btn,
  .header-actions .discord-btn .pill { display: none !important; }
  .brand-logo { height: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .rank-strip { grid-template-columns: 1fr 1fr; }
  .rank-strip > :last-child { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .perk-list { grid-template-columns: 1fr; }
  .rank-detail-head { flex-wrap: wrap; padding: 22px; }
  .rank-detail-head .btn { margin-left: 0; width: 100%; }
  .rank-detail-body > div { padding: 22px; }
  .sidebar { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .vote-card { flex-wrap: wrap; }
  .vote-card .btn { margin-left: 0; width: 100%; }
  .join-card, .rule-group { padding: 24px 20px; }
  .bee-3 { display: none; }
  .bee { width: 40px; }
  .bee-2 { width: 32px; }
}


/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-family: var(--font-heading); font-weight: 700; font-size: 16px; text-transform: uppercase; background: rgba(0, 0, 0, .25); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-muted); }
.compare td { color: var(--text); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--text-dim); }
.compare tbody tr:hover td { background: rgba(255, 194, 26, .04); }
.cmd-list li b { color: var(--text); font-weight: 600; }

/* ---------- short screens (laptops): keep the whole hero visible ---------- */
@media (max-height: 820px) and (min-width: 641px) {
  .hero-tagline { font-size: 18px; }
  .hero .btn-lg { padding: 13px 24px; font-size: 17px; }
  .hero-stats .stat-value { font-size: 20px; }
  .scroll-hint { display: none; }
  .hero { padding-top: calc(var(--header-h) + 10px); padding-bottom: 28px; }
  .hero-logo img { width: min(84vw, clamp(200px, 36vh, 430px)); }
  .hero-stats > div { padding-top: 8px; padding-bottom: 8px; }
  .platform-tabs-mini { margin-top: 4px; }
}

/* ---------- legal pages (privacy, terms, refunds) ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--honey); }
.legal { max-width: 820px; margin: 0 auto; }
.legal-meta { margin-bottom: 22px; color: var(--text-dim); font-size: 14px; }
.legal-toc { margin-bottom: 28px; padding: 22px 26px; }
.legal-toc h2 { margin-bottom: 10px; font-size: 18px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; color: var(--text-dim); }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--text-muted); }
.legal-toc a:hover { color: var(--honey); }
.legal-section { margin-bottom: 18px; padding: 28px 30px; }
.legal-section h2 { margin-bottom: 14px; font-size: 24px; }
.legal-section h3 { margin: 18px 0 8px; color: var(--honey); font-size: 17px; }
.legal-section p, .legal-section li { color: var(--text-muted); font-size: 16px; }
.legal-section ul { margin: 0 0 1em; padding-left: 20px; display: grid; gap: 6px; }
.legal-section strong { color: var(--text); }
.legal-section p:last-child, .legal-section ul:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-section { padding: 22px 20px; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 30px) 0 60px; text-align: center; }
.not-found img { width: min(220px, 50vw); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); animation: logo-float 4s ease-in-out infinite; }
.not-found .code { color: var(--honey); font-size: 15px; font-weight: 800; letter-spacing: .25em; }
.not-found h1 { margin: 6px 0 12px; font-size: clamp(34px, 6vw, 56px); }
.not-found p { max-width: 520px; margin: 0 auto 26px; color: var(--text-muted); font-size: 18px; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
