/* =========================================================
   HEISTARENA.RO — site de prezentare
   ========================================================= */
:root {
  --bg: #02060f;
  --bg-2: #040b1a;
  --panel: rgba(6, 16, 36, 0.72);
  --panel-solid: #06122a;
  --line: rgba(64, 156, 255, 0.26);
  --line-strong: rgba(80, 176, 255, 0.6);
  --blue: #1f8fff;
  --blue-2: #0a5fe0;
  --cyan: #45d2ff;
  --ice: #bfe9ff;
  --text: #dfe9ff;
  --muted: #8b9dc3;
  --red: #ff2d4b;
  --gold: #ffc24a;
  --glow: 0 0 18px rgba(40, 150, 255, 0.55), 0 0 42px rgba(40, 150, 255, 0.25);
  --radius: 10px;
  --f-display: "Exo 2", "Rajdhani", sans-serif;
  --f-ui: "Rajdhani", "Segoe UI", sans-serif;
  --f-body: "Barlow", "Segoe UI", sans-serif;
  --max: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #01040b; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--blue-2)); border-radius: 10px; border: 2px solid #01040b; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(24, 110, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(24, 110, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 110% 90%, rgba(0, 160, 255, 0.10), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(60, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.noise {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(circle at center, #04163a 0%, #01040b 70%);
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader img { width: 170px; filter: drop-shadow(0 0 30px rgba(40, 150, 255, .8)); animation: pulse 1.6s ease-in-out infinite; }
.preloader__bar { width: 220px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: load 1.1s ease-in-out infinite; }
.preloader__txt { font-family: var(--f-ui); letter-spacing: .5em; font-size: 12px; color: var(--muted); font-weight: 600; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(1.05); filter: drop-shadow(0 0 45px rgba(60, 170, 255, 1)); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: .6;
}
.header.scrolled {
  background: rgba(2, 7, 18, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.header__row { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 0 12px rgba(40, 150, 255, .6)); transition: transform .3s; }
.brand:hover img { transform: scale(1.06) rotate(-2deg); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: 32px; height: 100%; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 16px; font-family: var(--f-ui); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  color: #c7d5f3; text-transform: uppercase; transition: color .25s;
}
.nav a .icon { font-size: 15px; opacity: .8; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--blue); box-shadow: 0 0 14px var(--blue), 0 0 30px var(--blue);
  transform: scaleX(0); transition: transform .3s;
}
.nav a:hover, .nav a.active { color: var(--cyan); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

.header__cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.connect-link { display: flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; letter-spacing: .06em; font-size: 15px; color: #c7d5f3; transition: color .2s; }
.connect-link:hover { color: var(--cyan); }
.ip-pill {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(6, 22, 52, .6);
  font-family: var(--f-ui); font-weight: 700; font-size: 17px; letter-spacing: .04em;
  box-shadow: inset 0 0 20px rgba(30, 140, 255, .15), 0 0 0 rgba(30,140,255,0);
  transition: box-shadow .3s, border-color .3s, transform .2s;
}
.ip-pill:hover { border-color: var(--cyan); box-shadow: inset 0 0 20px rgba(30, 140, 255, .25), var(--glow); transform: translateY(-1px); }
.ip-pill .icon { color: var(--cyan); font-size: 18px; }
.ip-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2dff9b; box-shadow: 0 0 10px #2dff9b; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px; border-radius: 8px; overflow: hidden; isolation: isolate;
  font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px;
  transition: transform .2s, box-shadow .3s, border-color .3s, background .3s;
}
.btn .icon { transition: transform .25s; }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(180deg, #2aa8ff, #0a6cff);
  box-shadow: 0 0 0 1px rgba(140, 210, 255, .5) inset, 0 8px 30px rgba(20, 130, 255, .45);
  color: #fff;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(170, 225, 255, .8) inset, 0 12px 40px rgba(20, 140, 255, .7); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-strong); background: rgba(6, 22, 52, .45); color: var(--ice); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--glow); transform: translateY(-2px); }
.btn--sm { padding: 10px 16px; font-size: 13px; gap: 10px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: 78px;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background: url("../assets/img/hero.jpg") center 35% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%);
  filter: saturate(1.15) contrast(1.05) hue-rotate(-6deg);
  transform: scale(1.08); transition: transform .2s linear;
}
.hero__tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(2,6,15,.92) 30%, rgba(2,6,15,.35) 60%, rgba(2,6,15,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    radial-gradient(700px 400px at 72% 40%, rgba(20, 110, 255, .25), transparent 70%);
}
.hero__rain {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(170, 215, 255, .18) 22px 23px, transparent 23px 60px);
  background-size: 200px 200px;
  animation: rain .5s linear infinite;
  mask-image: linear-gradient(90deg, transparent 35%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 70%);
}
@keyframes rain { to { background-position: -40px 200px; } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.hero__slashes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__slashes i {
  position: absolute; height: 2px; width: 40vw;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan); transform: rotate(-35deg); opacity: .0;
  animation: slash 7s ease-in-out infinite;
}
.hero__slashes i:nth-child(1) { top: 12%; left: -10%; animation-delay: .5s; }
.hero__slashes i:nth-child(2) { bottom: 18%; right: -12%; animation-delay: 2.8s; }
.hero__slashes i:nth-child(3) { top: 55%; left: -18%; animation-delay: 4.6s; width: 25vw; }
@keyframes slash { 0%,100% { opacity: 0; translate: -30vw 0; } 10% { opacity: .9; } 30% { opacity: 0; translate: 40vw 0; } }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.4fr; gap: clamp(20px, 3vw, 56px); align-items: center; padding-block: 60px 90px; }

.hero__logo { position: relative; display: grid; place-items: center; }
.hero__logo img {
  width: min(100%, 440px);
  filter: drop-shadow(0 0 22px rgba(40, 160, 255, .8)) drop-shadow(0 0 70px rgba(20, 110, 255, .45));
  animation: float 6s ease-in-out infinite;
  transition: transform .15s linear;
}
.hero__logo::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 140, 255, .35), transparent 65%);
  filter: blur(20px); animation: breathe 5s ease-in-out infinite;
}
.hero__logo .ring {
  position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(80, 180, 255, .25); animation: spin 40s linear infinite;
}
.hero__logo .ring.r2 { width: 72%; border-style: solid; border-color: transparent; border-top-color: rgba(80, 200, 255, .5); border-right-color: rgba(80, 200, 255, .15); animation-duration: 9s; animation-direction: reverse; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { font-family: var(--f-ui); font-weight: 700; letter-spacing: .55em; font-size: 15px; color: var(--cyan); text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.eyebrow::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero h1 { margin: 18px 0 4px; font-family: var(--f-display); font-weight: 800; line-height: 1; }
.hero h1 .l1 { display: block; font-size: clamp(28px, 3.2vw, 50px); letter-spacing: .01em; color: #fff; }
.hero h1 .l2 {
  display: block; font-style: italic; font-weight: 900; font-size: clamp(44px, 4.8vw, 92px); letter-spacing: -.01em;
  background: linear-gradient(180deg, #8fe3ff 0%, #2aa8ff 45%, #0b62ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(30, 150, 255, .55));
  position: relative;
}
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.glitch.on::before { opacity: .8; animation: g1 .35s steps(2) 1; background: linear-gradient(#ff2d6b,#ff2d6b); -webkit-background-clip: text; background-clip: text; }
.glitch.on::after { opacity: .8; animation: g2 .35s steps(2) 1; background: linear-gradient(#35f3ff,#35f3ff); -webkit-background-clip: text; background-clip: text; }
@keyframes g1 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, 0); } 50% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); } 100% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); } }
@keyframes g2 { 0% { clip-path: inset(60% 0 10% 0); transform: translate(6px, 0); } 50% { clip-path: inset(20% 0 55% 0); transform: translate(-5px, 0); } 100% { clip-path: inset(45% 0 30% 0); transform: translate(3px, 0); } }

.hero__sub { margin: 18px 0 30px; font-family: var(--f-ui); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; color: #fff; }
.hero__sub .typed { color: var(--cyan); }
.hero__sub .caret { display: inline-block; width: 2px; height: 1em; background: var(--cyan); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.hero__modes { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 36px; }
.hero__modes a { display: flex; align-items: center; gap: 12px; padding: 4px 22px 4px 0; margin-right: 22px; border-right: 1px solid var(--line); transition: transform .2s; }
.hero__modes a:last-child { border-right: 0; }
.hero__modes a:hover { transform: translateY(-2px); }
.hero__modes a:hover .mi { box-shadow: var(--glow); border-color: var(--cyan); }
.hero__modes .mi { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--line); background: rgba(10, 40, 90, .35); font-size: 20px; transition: .25s; }
.hero__modes b { display: block; font-family: var(--f-ui); font-size: 16px; color: #fff; line-height: 1.1; }
.hero__modes small { font-size: 12.5px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; }

.hero__tagline {
  position: absolute; z-index: 2; right: clamp(16px, 3vw, 60px); top: 21%;
  font-family: var(--f-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 2.7vw, 54px); line-height: .92; text-align: right;
  transform: rotate(-12deg); pointer-events: none;
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  filter: drop-shadow(0 0 10px rgba(60, 200, 255, .8));
}
.hero__tagline span { display: block; }
.hero__tagline span:nth-child(2) { color: rgba(60, 190, 255, .9); -webkit-text-stroke: 0; margin-right: -.2em; }
.hero__tagline span:nth-child(3) { margin-right: .1em; }

.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--f-ui); font-size: 11px; letter-spacing: .4em; color: var(--muted); }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- HUD Panel ---------- */
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(120, 190, 255, .08), 0 20px 50px rgba(0,0,0,.35);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); pointer-events: none;
  filter: drop-shadow(0 0 6px var(--cyan)); opacity: .75; transition: .3s;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.panel:hover { border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(120, 190, 255, .12), 0 0 0 1px rgba(60,160,255,.15), 0 24px 60px rgba(0, 40, 120, .35); }
.panel:hover::before, .panel:hover::after { width: 30px; height: 30px; opacity: 1; }

.panel-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-family: var(--f-ui); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--cyan); text-transform: uppercase; }
.panel-title .pi { font-size: 34px; color: var(--blue); filter: drop-shadow(0 0 8px rgba(40,150,255,.8)); }

/* ---------- Info strip ---------- */
.info { position: relative; z-index: 3; margin-top: -60px; }
.info__grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 22px; }
.info .panel { padding: 26px 28px; }
.info p { margin: 0 0 22px; color: #c3d0ea; font-size: 15.5px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.link-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.link-list .icon { color: var(--cyan); font-size: 20px; margin-top: 2px; }
.link-list span { display: block; color: #e8f0ff; font-weight: 500; }
.link-list a, .link-list code { color: var(--cyan); font-family: var(--f-ui); font-weight: 600; font-size: 15.5px; }
.link-list a:hover { text-decoration: underline; }
.link-list code { color: #fff; }
.link-list code b { color: var(--cyan); }
.link-list small { color: var(--muted); }
.copy-btn { margin-left: 8px; font-size: 11px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; transition: .2s; }
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.mini-modes { display: grid; grid-template-columns: repeat(4, 1fr); }
.mini-modes a { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 6px; border-right: 1px solid var(--line); transition: transform .25s; }
.mini-modes a:last-child { border-right: 0; }
.mini-modes a:hover { transform: translateY(-4px); }
.mini-modes a:hover .mm-ic { border-color: var(--cyan); box-shadow: var(--glow); }
.mm-ic { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; font-size: 32px; color: #56c8ff; border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(40,140,255,.3), rgba(4,14,34,.8)); transition: .3s; margin-bottom: 6px; }
.mini-modes b { font-family: var(--f-ui); font-size: 15px; color: #fff; line-height: 1.1; }
.mini-modes small { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ---------- Section heads ---------- */
.section { position: relative; padding: clamp(70px, 9vw, 130px) 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; flex-wrap: wrap; }
.sec-head h2 { margin: 10px 0 0; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; text-transform: uppercase; }
.sec-head h2 em { font-style: italic; background: linear-gradient(180deg, #8fe3ff, #1f8fff 60%, #0b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 16.5px; }
.sec-num { font-family: var(--f-ui); font-weight: 700; color: var(--cyan); letter-spacing: .4em; font-size: 13px; display: flex; align-items: center; gap: 12px; }
.sec-num::before { content: ""; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 10px var(--cyan); }

/* ---------- Mode cards ---------- */
.modes { padding-top: 26px; }
.modes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mode-card {
  position: relative; min-width: 0; min-height: 380px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.mode-card__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(1.15) brightness(1.05); }
.mode-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(2,8,22,.97) 6%, rgba(2,8,22,.5) 42%, rgba(10,40,110,0) 80%); }
.mode-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(120, 210, 255, .18) 50%, transparent 65%); transform: translateX(-100%); transition: transform .9s; }
.mode-card:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(80,190,255,.3), 0 20px 60px rgba(10, 90, 255, .35); }
.mode-card:hover .mode-card__bg { transform: scale(1.08); filter: saturate(1.3) brightness(1); }
.mode-card:hover::after { transform: translateX(100%); }
.mode-card__row { display: flex; align-items: center; gap: 16px; }
.mode-card__ic { width: 56px; height: 56px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 30px; color: #56c8ff; background: rgba(8, 28, 70, .75); border: 1px solid var(--line-strong); box-shadow: inset 0 0 16px rgba(40,150,255,.35); }
.mode-card h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 1.5vw, 28px); line-height: 1; text-transform: uppercase; color: #fff; }
.mode-card h3 + span { display: block; margin-top: 4px; font-family: var(--f-ui); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b7c8ea; font-size: 14px; line-height: 1.25; }
.mode-card .btn { margin: 16px 0 0 72px; align-self: flex-start; }
.mode-card__tag { position: absolute; top: 16px; right: 16px; font-family: var(--f-ui); font-weight: 700; font-size: 11px; letter-spacing: .18em; padding: 5px 10px; border-radius: 5px; background: rgba(4, 16, 40, .7); border: 1px solid var(--line); color: var(--cyan); }
.mode-card__tag.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); margin-right: 7px; vertical-align: 1px; animation: blink 1.4s infinite; }
.mode-card__desc { max-height: 0; overflow: hidden; opacity: 0; color: #c3d0ea; font-size: 14px; transition: max-height .45s, opacity .45s, margin .45s; }
.mode-card:hover .mode-card__desc { max-height: 90px; opacity: 1; margin-top: 12px; }

/* ---------- Features / Despre ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; }
.about__visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 460px; }
.about__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,6,15,.9), transparent 55%), linear-gradient(90deg, rgba(10,60,160,.25), transparent); }
.about__badge { position: absolute; z-index: 2; left: 24px; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 18px; }
.about__badge img { position: static; width: 84px; height: auto; filter: drop-shadow(0 0 16px rgba(255, 190, 60, .6)); animation: coin 6s ease-in-out infinite; }
@keyframes coin { 0%,100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } }
.about__badge b { display: block; font-family: var(--f-display); font-size: 24px; font-style: italic; font-weight: 900; }
.about__badge span { color: var(--muted); font-size: 14px; }
.hud-corner { position: absolute; z-index: 2; top: 20px; left: 20px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .25em; color: var(--cyan); display: flex; gap: 10px; align-items: center; }
.hud-corner::before { content: "●"; color: var(--red); animation: blink 1.2s infinite; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { padding: 24px 22px; }
.feature .fi { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; color: var(--cyan); background: rgba(20, 90, 220, .15); border: 1px solid var(--line); margin-bottom: 16px; }
.feature h4 { margin: 0 0 6px; font-family: var(--f-ui); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Ranked / arenas ---------- */
.ranked__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.arena { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; isolation: isolate; transition: transform .4s, border-color .3s, box-shadow .3s; }
.arena img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.arena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(2,8,22,.96) 10%, rgba(2,8,22,.3) 60%, transparent), linear-gradient(0deg, rgba(10, 60, 180, .25), transparent); }
.arena:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 30px 60px rgba(10, 80, 255, .3); }
.arena:hover img { transform: scale(1.07); }
.arena__num { position: absolute; top: 18px; left: 22px; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(120, 200, 255, .55); }
.arena__tag { position: absolute; top: 22px; right: 22px; font-family: var(--f-ui); font-weight: 700; font-size: 11px; letter-spacing: .2em; padding: 6px 10px; border-radius: 5px; background: rgba(4, 16, 40, .7); border: 1px solid var(--line); color: var(--cyan); }
.arena h3 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.arena p { margin: 10px 0 0; color: #c3d0ea; font-size: 15px; }

.ranked__bar { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); }
.ranked__bar .rb { display: flex; gap: 16px; align-items: center; padding: 24px 26px; border-right: 1px solid var(--line); }
.ranked__bar .rb:last-child { border-right: 0; }
.ranked__bar .rb .icon { font-size: 30px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(60,190,255,.7)); }
.ranked__bar b { display: block; font-family: var(--f-ui); font-size: 17px; color: #fff; }
.ranked__bar span { color: var(--muted); font-size: 13.5px; }

/* ---------- Season banner ---------- */
.season { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 45, 75, .35); min-height: 340px; display: flex; align-items: center; isolation: isolate; }
.season__bg { position: absolute; inset: 0; z-index: -2; background: url("../assets/img/season.jpg") center / cover; transform: scale(1.02); }
.season::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 0, 2, .2), rgba(4, 0, 2, .6) 55%, rgba(4, 0, 2, .95)); }
.season__content { margin-left: auto; padding: 44px clamp(24px, 4vw, 60px); max-width: 520px; }
.season__content .sec-num { color: #ff5a70; }
.season__content .sec-num::before { background: #ff5a70; box-shadow: 0 0 10px #ff5a70; }
.season__content h3 { margin: 12px 0 10px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }
.season__content p { color: #e0c9cd; margin: 0 0 24px; }
.btn--red { background: linear-gradient(180deg, #ff4560, #c4001f); box-shadow: 0 0 0 1px rgba(255,160,170,.4) inset, 0 8px 30px rgba(255, 30, 60, .45); color: #fff; }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,190,200,.7) inset, 0 12px 40px rgba(255, 30, 60, .7); }
.countdown { display: flex; gap: 12px; margin-bottom: 26px; }
.countdown div { min-width: 70px; text-align: center; padding: 10px 6px; border-radius: 8px; background: rgba(40, 0, 8, .55); border: 1px solid rgba(255, 45, 75, .35); }
.countdown b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; }
.countdown span { font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; color: #ff8d9c; }

/* ---------- Store ---------- */
.store__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.item { position: relative; padding: 22px 18px 20px; text-align: center; display: grid; justify-items: center; gap: 4px; overflow: hidden; }
.item::marker { display: none; }
.item__img { height: 130px; display: grid; place-items: center; margin-bottom: 8px; position: relative; }
.item__img::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--c, rgba(40,150,255,.35)), transparent 70%); filter: blur(8px); transition: transform .4s; }
.item__img img { position: relative; max-height: 130px; width: auto; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.item:hover .item__img img { transform: translateY(-8px) scale(1.07) rotate(-3deg); }
.item:hover .item__img::before { transform: scale(1.3); }
.item b { font-family: var(--f-ui); font-size: 17px; color: #fff; letter-spacing: .02em; }
.item span { font-size: 13px; color: var(--muted); }
.item .btn { margin-top: 12px; }
.item.gold { --c: rgba(255, 190, 60, .4); }
.item.purple { --c: rgba(170, 70, 255, .4); }
.item.bronze { --c: rgba(230, 140, 90, .35); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery button { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding: 0; isolation: isolate; }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(4) { grid-row: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; filter: brightness(.85) saturate(1.1); }
.gallery button::after { content: attr(data-cap); position: absolute; left: 14px; bottom: 12px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .15em; font-size: 12px; color: #fff; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .35s; text-shadow: 0 2px 10px #000; }
.gallery button::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(2,8,22,.8), transparent 50%); opacity: 0; transition: .35s; }
.gallery button:hover img { transform: scale(1.08); filter: brightness(1.05) saturate(1.25); }
.gallery button:hover::after, .gallery button:hover::before { opacity: 1; transform: none; }
.gallery button:hover { border-color: var(--cyan); }
.gallery button::after { z-index: 2; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 40px 16px; background: rgba(1, 4, 11, .92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1300px, 100%); max-height: 86vh; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: 0 0 80px rgba(20, 110, 255, .35); transform: scale(.95); transition: transform .35s; }
.lightbox.open img { transform: none; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(6,22,52,.7); font-size: 22px; transition: .2s; }
.lb-btn:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Connect steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px 28px; }
.step__n { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 58px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); opacity: .8; }
.step h4 { margin: 10px 0 8px; font-family: var(--f-ui); font-size: 21px; color: #fff; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step code { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(4, 14, 34, .8); color: var(--cyan); font-family: Consolas, monospace; font-size: 14px; }

/* ---------- Rules / FAQ ---------- */
.rf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.rf__grid > .panel { padding: 28px; }
.acc { border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 0; font-family: var(--f-ui); font-weight: 700; font-size: 17px; color: #e8f0ff; transition: color .2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-size: 13px; color: var(--cyan); min-width: 26px; }
.acc summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--cyan); transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { color: var(--cyan); }
.acc p, .acc ul { margin: 0 0 18px 40px; color: var(--muted); font-size: 15px; }
.acc ul { padding-left: 18px; }

/* ---------- Discord CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-strong); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; isolation: isolate;
  background: linear-gradient(120deg, rgba(20, 70, 200, .5), rgba(4, 12, 30, .8) 60%), url("../assets/img/g-swat.jpg") center 40% / cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,8,22,.55), rgba(2,8,22,.85)); }
.cta h3 { margin: 0 0 10px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; text-transform: uppercase; }
.cta p { margin: 0; color: #c3d0ea; max-width: 620px; }
.cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--discord { background: linear-gradient(180deg, #7289ff, #4752c4); color: #fff; box-shadow: 0 0 0 1px rgba(190,200,255,.45) inset, 0 8px 30px rgba(88, 101, 242, .5); }
.btn--discord:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(210,220,255,.8) inset, 0 12px 40px rgba(88, 101, 242, .75); }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(4, 12, 30, .9), #01040b); overflow: hidden; }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 20px var(--blue); }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1fr; gap: 0; }
.footer__grid > div { padding: 40px 28px; border-right: 1px solid var(--line); }
.footer__grid > div:last-child { border-right: 0; }
.f-brand { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.f-brand img { width: 110px; filter: drop-shadow(0 0 14px rgba(40, 150, 255, .7)); }
.f-brand p { margin: 0; color: #c3d0ea; font-size: 14px; }
.f-brand p b { color: #fff; }
.socials { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 19px; color: var(--ice); background: rgba(6, 22, 52, .5); transition: .25s; }
.socials a:hover { color: #fff; border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-3px); }
.f-title { margin: 0 0 18px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; font-size: 16px; color: var(--cyan); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.f-title::before { content: ""; border: 5px solid transparent; border-left-color: var(--cyan); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(6, 18, 42, .6); }
.stat .icon { font-size: 22px; color: var(--cyan); width: 40px; height: 40px; padding: 9px; border-radius: 8px; border: 1px solid var(--line); }
.stat small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: #fff; line-height: 1.2; }
.stat-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #2dff9b; box-shadow: 0 0 8px #2dff9b; }
.stat-note.off .dot { background: #ffb02d; box-shadow: 0 0 8px #ffb02d; }
.quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #c9d6f1; font-size: 15px; transition: .2s; }
.quick a .icon:first-child { color: var(--cyan); }
.quick a .icon:last-child { margin-left: auto; color: var(--muted); transition: transform .2s; }
.quick a:hover { color: #fff; }
.quick a:hover .icon:last-child { transform: translateX(4px); color: var(--cyan); }
.f-promo { position: relative; display: grid; place-items: center; text-align: center; min-height: 200px; isolation: isolate; }
.f-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/mode-heist.jpg") center / cover; opacity: .28; mask-image: radial-gradient(circle, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 75%); }
.f-promo img { width: 120px; filter: drop-shadow(0 0 16px rgba(40, 150, 255, .8)); }
.f-promo span { display: block; margin-top: 6px; font-family: var(--f-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: .95; transform: rotate(-8deg); color: #4fc3ff; text-shadow: 0 0 16px rgba(60, 180, 255, .8); }
.footer__bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__bottom a:hover { color: var(--cyan); }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 600; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 10px; border: 1px solid var(--cyan); background: rgba(4, 18, 44, .95); box-shadow: var(--glow); font-family: var(--f-ui); font-weight: 700; letter-spacing: .04em; transition: .35s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: #2dff9b; font-size: 20px; }

.to-top { position: fixed; z-index: 90; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(4, 18, 44, .85); display: grid; place-items: center; font-size: 20px; color: var(--cyan); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--glow); border-color: var(--cyan); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hero__tagline { display: none; }
  .nav a { padding: 0 10px; font-size: 14px; }
  .nav a .icon { display: none; }
  .connect-link { display: none; }
  .store__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .nav {
    position: fixed; top: 78px; left: 0; right: 0; margin: 0; height: auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(2, 7, 18, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px; transform: translateY(-120%); transition: transform .4s; z-index: -1;
  }
  .menu-open .nav { transform: none; }
  .nav a { padding: 16px 6px; border-bottom: 1px solid rgba(64,156,255,.12); }
  .nav a .icon { display: inline; }
  .nav a::after { display: none; }
  .burger { display: grid; }
  .header__cta { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; padding-top: 30px; }
  .hero__logo img { width: min(60vw, 300px); }
  .hero__logo { justify-items: start; }
  .hero__img { width: 100%; opacity: .55; }
  .hero__tagline { display: none; }
  .info { margin-top: 0; padding-top: 30px; }
  .info__grid { grid-template-columns: 1fr 1fr; }
  .info__grid > :last-child { grid-column: 1 / -1; }
  .modes__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .ranked__grid { grid-template-columns: 1fr 1fr; }
  .ranked__grid .arena:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .ranked__bar { grid-template-columns: 1fr 1fr; }
  .ranked__bar .rb:nth-child(2) { border-right: 0; }
  .ranked__bar .rb:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery button:nth-child(4) { grid-row: span 1; }
  .steps { grid-template-columns: 1fr; }
  .rf__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:nth-child(2) { border-right: 0; }
  .footer__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .header__row { height: 66px; gap: 12px; }
  .nav { top: 66px; }
  .brand img { height: 42px; }
  .ip-pill { padding: 9px 12px; font-size: 14px; gap: 8px; }
  .ip-pill .icon:last-child { display: none; }
  .hero { padding-top: 66px; }
  .hero__modes a { border-right: 0; margin-right: 0; padding-right: 0; width: 50%; margin-bottom: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .info__grid { grid-template-columns: 1fr; }
  .mini-modes { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .mini-modes a:nth-child(2) { border-right: 0; }
  .modes__grid { grid-template-columns: 1fr; }
  .mode-card .btn { margin-left: 0; }
  .features { grid-template-columns: 1fr; }
  .ranked__grid { grid-template-columns: 1fr; }
  .ranked__grid .arena:last-child { aspect-ratio: 4 / 5; }
  .arena { aspect-ratio: 4 / 4.2; }
  .ranked__bar { grid-template-columns: 1fr; }
  .ranked__bar .rb { border-right: 0; border-bottom: 1px solid var(--line); }
  .ranked__bar .rb:last-child { border-bottom: 0; }
  .season { min-height: 0; }
  .season::before { background: rgba(4, 0, 2, .78); }
  .countdown div { min-width: 0; flex: 1; }
  .store__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery button:nth-child(1), .gallery button:nth-child(6) { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Grid overflow guard (mobile) ---------- */
.hero__inner > *, .info__grid > *, .modes__grid > *, .about__grid > *, .features > *,
.ranked__grid > *, .store__grid > *, .steps > *, .rf__grid > *, .footer__grid > *, .cta > *, .sec-head > * { min-width: 0; }
.link-list a, .link-list code { overflow-wrap: anywhere; }
.sec-head h2 { overflow-wrap: break-word; }
@media (max-width: 680px) {
  .hero__inner, .info__grid, .modes__grid, .about__grid, .features, .ranked__grid, .steps, .rf__grid, .footer__grid, .cta { grid-template-columns: minmax(0, 1fr); }
  .store__grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__modes a { width: 100%; }
  .panel-title { font-size: 17px; }
  .mini-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
