/* ============================================================
   TESLAPUNK — dark-punk electric aesthetic
   Steel graphite base · high-voltage arc blue · crimson danger
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  /* palette — graphite black, arc blue, crimson (dark punk, not candy) */
  --bg:          #07080b;
  --bg-2:        #0b0d13;
  --ink:         #e8ecf3;
  --muted:       #96a0b2;
  --dim:         #5a6478;

  --volt:        #4ea8ff;   /* electric arc blue  */
  --volt-2:      #b9e4ff;   /* icy arc tip        */
  --hot:         #ff2142;   /* crimson — danger / Mars */
  --hot-2:       #ff5c7a;   /* magenta-crimson    */
  --amber:       #ff8a1e;   /* spark / coins      */
  --tox:         #a6ff2e;   /* toxic laser — sparing */

  --grad:        linear-gradient(100deg, #3f8dff 0%, #7cc0ff 55%, #dff1ff 100%); /* arc blue -> white */
  --grad-hot:    linear-gradient(100deg, var(--hot) 0%, var(--hot-2) 100%);      /* crimson */

  /* per-section accent (overridden in .survival) */
  --acc:         var(--volt);
  --acc-grad:    var(--grad);

  --surface:     rgba(14, 17, 24, .72);
  --surface-2:   rgba(20, 24, 33, .66);
  --line:        rgba(120, 140, 170, .15);
  --line-bright: rgba(78, 168, 255, .40);

  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 24px 60px -28px rgba(0,0,0,.9);
  --glow:   0 0 0 1px rgba(78,168,255,.26), 0 0 30px -8px rgba(78,168,255,.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1,h2,h3 { font-family: var(--font-display); line-height: 1.03; font-weight: 700; letter-spacing: .01em; }
::selection { background: rgba(78,168,255,.34); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.volt {
  background: var(--acc-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.dot { color: var(--dim); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__coil {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(78,168,255,.16);
  border-top-color: var(--volt);
  border-right-color: var(--volt-2);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 24px -6px rgba(78,168,255,.6);
}
.loader__txt {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .42em;
  color: var(--volt); text-indent: .42em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); overflow: hidden; }
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-fx__grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(120,140,170,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,140,170,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 78%);
}
.bg-fx__scan {
  position: absolute; inset: 0; opacity: .55;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.4) 2px 3px);
  mix-blend-mode: multiply;
}
.bg-fx__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 20%, transparent 38%, rgba(7,8,11,.92) 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7,8,11,.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand img { height: 34px; width: auto; filter: drop-shadow(0 0 12px rgba(78,168,255,.3)); }
.nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.7rem;
}
.nav__links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; letter-spacing: .04em;
  color: var(--muted);
  position: relative; padding: .3rem 0;
  transition: color .25s ease;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--acc-grad); border-radius: 2px;
  transition: width .3s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: .55rem 1.15rem; border-radius: 8px;
  color: #05070c !important;
  background: var(--acc-grad);
  box-shadow: 0 6px 20px -8px rgba(78,168,255,.7);
  transition: transform .2s ease, box-shadow .25s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(78,168,255,.85); }

.nav__toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  place-content: center; gap: 5px; padding: 0;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .03em;
  font-size: 1rem; padding: .85rem 1.5rem; border-radius: 10px;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  will-change: transform;
}
.btn__i { width: 20px; height: 20px; flex: none; }
.btn--primary {
  color: #05070c; background: var(--acc-grad); background-size: 160% 160%;
  box-shadow: 0 12px 32px -12px rgba(78,168,255,.8);
}
.btn--primary:hover { transform: translateY(-3px); background-position: 100% 50%; box-shadow: 0 18px 42px -12px rgba(78,168,255,.95); }
.btn--ghost {
  color: var(--ink); border: 1px solid var(--line-bright);
  background: rgba(78,168,255,.06);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(78,168,255,.13); box-shadow: var(--glow); }
.btn--text { color: var(--muted); padding-inline: .4rem; }
.btn--text:hover { color: var(--volt); transform: translateX(3px); }

/* ---------- Shared bits ---------- */
.section { position: relative; padding: clamp(4.5rem, 11vh, 8rem) 0; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--acc, var(--volt)); margin-bottom: .9rem;
}
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.sec-head h2 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); text-transform: uppercase; }
.sec-head__sub { max-width: 58ch; color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.sub-head {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 2.6rem 0 1.1rem;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink); }
p + p { margin-top: 1rem; }
strong { color: #fff; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding: clamp(4rem, 9vh, 7rem) 0 3rem;
}
.hero__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__logo {
  width: clamp(280px, 42vw, 560px); height: auto;
  filter: drop-shadow(0 6px 30px rgba(78,168,255,.3));
}
.hero__title { margin-bottom: .6rem; }
.hero__tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink);
}
.hero__lead { max-width: 52ch; color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.platforms { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.platforms li {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: .38rem .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}

.hero__art { position: relative; justify-self: center; }
.art-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(78,168,255,.2);
  transform: rotate(-2deg);
}
.art-frame img { width: 100%; height: auto; display: block; }
.art-frame__glow {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 90px -20px rgba(78,168,255,.3);
  background: linear-gradient(160deg, transparent 55%, rgba(78,168,255,.12));
}
.art-frame--float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: rotate(-2deg) translateY(0);} 50%{ transform: rotate(-2deg) translateY(-16px);} }

.hero__ship {
  position: absolute; width: 76px; height: auto;
  left: -34px; bottom: 40px;
  filter: drop-shadow(0 0 18px rgba(255,138,30,.55));
  animation: hoverShip 5s ease-in-out infinite;
}
@keyframes hoverShip { 0%,100%{ transform: translateY(0) rotate(-6deg);} 50%{ transform: translateY(-14px) rotate(-2deg);} }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--line-bright); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--volt); animation: cue 1.5s ease-in-out infinite; }
@keyframes cue { 0%{ opacity:0; transform: translateY(0);} 40%{ opacity:1;} 80%,100%{ opacity:0; transform: translateY(14px);} }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(78,168,255,.05), rgba(255,33,66,.05));
  padding: .85rem 0;
}
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  animation: marquee 26s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker__track i { color: var(--volt); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story__grid {
  display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story__text p { color: var(--muted); }
.story__text .lead { color: var(--ink); margin-bottom: 1.2rem; }
.pull {
  margin: 1.8rem 0; padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--hot);
  background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.pull p { font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 600; }
.pull cite { display: block; margin-top: .5rem; font-style: normal; color: var(--dim); font-size: .86rem; letter-spacing: .04em; }
.note { font-size: .95rem; color: var(--dim); }

.story__art { position: relative; }
.polaroid {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,33,66,.22), 0 0 55px -20px rgba(255,33,66,.5);
}
.polaroid img { width: 100%; }
.story__tesla {
  position: absolute; right: -18px; bottom: -24px; width: 120px; height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(255,138,30,.4));
  animation: hoverShip 6s ease-in-out infinite;
}

/* ---------- Modes overview (two beasts) ---------- */
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.mode-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.mode-card:hover { transform: translateY(-6px); }
.mode-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 110% at 50% 0%, rgba(78,168,255,.10), transparent 62%), var(--bg-2); }
.mode-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.mode-card:hover .mode-card__media img { transform: scale(1.04); }
.mode-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,8,11,.75));
}
.mode-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.mode-card__tag {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc, var(--volt));
}
.mode-card h3 { font-size: 1.9rem; margin: .35rem 0 .5rem; }
.mode-card p { color: var(--muted); font-size: .98rem; }
.mode-card__go {
  display: inline-block; margin-top: 1.1rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.mode-card:hover .mode-card__go { color: var(--acc, var(--volt)); }
.mode-card--arcade { box-shadow: 0 0 0 1px rgba(78,168,255,.14); }
.mode-card--arcade:hover { border-color: var(--volt); box-shadow: var(--glow); }
.mode-card--survival { --acc: var(--amber); --acc-grad: var(--grad-hot); box-shadow: 0 0 0 1px rgba(255,138,30,.14); }
.mode-card--survival:hover { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(255,138,30,.3), 0 0 30px -8px rgba(255,138,30,.45); }

/* ---------- Arcade mode (THE main event) ---------- */
.arcade { --acc: var(--volt); --acc-grad: var(--grad); }
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: 1.8rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 2px; width: 100%;
  background: var(--acc-grad); opacity: .5; transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-bright); background: var(--surface-2); box-shadow: var(--glow); }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1rem;
  border-radius: 11px; color: var(--acc, var(--volt));
  background: rgba(78,168,255,.09); border: 1px solid var(--line-bright);
}
.card__ico svg { width: 24px; height: 24px; }
.card--hot .card__ico { color: var(--hot-2); background: rgba(255,33,66,.1); border-color: rgba(255,33,66,.4); }
.card--hot::before { background: var(--grad-hot); }
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* Voltage spotlight */
.voltage { overflow: hidden; position: relative; margin-top: clamp(3rem, 7vh, 5rem); padding: clamp(3.5rem, 8vh, 6rem) 0; border-block: 1px solid var(--line); }
.voltage__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 78% 50%, rgba(78,168,255,.14), transparent 65%),
    linear-gradient(180deg, transparent, rgba(8,10,16,.6), transparent),
    url('../assets/img/bg-lightning.webp') center/cover;
  opacity: .5;
}
.voltage__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(7,8,11,.5) 45%, rgba(7,8,11,.85));
}
.voltage__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.voltage__art {
  position: relative; display: grid; place-items: center; gap: 1.4rem;
  padding: 2.4rem; min-height: 320px;
}
.voltage__art img { width: 130px; filter: drop-shadow(0 0 30px rgba(255,138,30,.5)); animation: hoverShip 5s ease-in-out infinite; }

/* Real HUD voltage tank: tank-empty.png in front, tank-fill.png animated behind */
.tank {
  position: relative;
  width: 132px;                /* 72x140 scaled up */
  aspect-ratio: 72 / 140;
  filter: drop-shadow(0 0 22px rgba(34,120,180,.45));
}
.tank__window {
  /* the transparent cell column inside the frame where the fill shows through */
  position: absolute;
  left: 34.5%; width: 28%;
  top: 17.1%; bottom: 19.3%;
  overflow: hidden;
}
.tank__fill {
  position: absolute; inset: 0;
  background: url('../assets/img/tank-fill.png') center bottom / 100% 100% no-repeat;
  transform-origin: bottom;
  animation: fill 3.2s ease-in-out infinite;
}
.tank__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
@keyframes fill {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}
.tank__label {
  position: absolute; bottom: -1.7rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: .6rem; letter-spacing: .16em;
  color: var(--muted); white-space: nowrap; z-index: 3;
}
.voltage__copy .lead { color: var(--ink); margin-bottom: 1rem; }
.voltage__copy p { color: var(--muted); }
.ticks { margin-top: 1.5rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
  border-radius: 3px; background: var(--acc-grad); box-shadow: 0 0 12px rgba(78,168,255,.6);
}

/* Levels rail */
.levels { margin-top: clamp(3rem, 7vh, 5rem); }
.levels__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 268px);
  gap: 1rem; overflow-x: auto; padding: .5rem var(--pad) 1.5rem;
  scroll-snap-type: x mandatory;
  max-width: var(--wrap); margin-inline: auto;
  scrollbar-width: thin; scrollbar-color: rgba(78,168,255,.4) transparent;
}
.levels__rail::-webkit-scrollbar { height: 6px; }
.levels__rail::-webkit-scrollbar-thumb { background: rgba(78,168,255,.35); border-radius: 99px; }
.lvl {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.lvl img { width: 100%; height: 170px; object-fit: cover; opacity: .82; transition: opacity .3s ease, transform .5s ease; }
.lvl:hover { transform: translateY(-6px); border-color: var(--line-bright); box-shadow: var(--glow); }
.lvl:hover img { opacity: 1; transform: scale(1.06); }
.lvl__body { padding: 1rem 1.1rem 1.2rem; }
.lvl__num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--acc, var(--volt)); }
.lvl h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.lvl p { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* Galleries */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  padding: 0; display: block;
}
.shot img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 3/4; background: var(--bg-2); transition: transform .5s ease; }
.shot--land img { aspect-ratio: 1300/631; }
.shot--wide { grid-column: span 2; }
.shot--wide img { aspect-ratio: 16/10; }
.shot::after {
  content: "⤢"; position: absolute; right: .6rem; bottom: .55rem;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(7,8,11,.7); color: var(--volt); font-size: 1rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.shot:hover { transform: translateY(-5px); border-color: var(--line-bright); box-shadow: var(--glow); }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { opacity: 1; transform: none; }

/* ---------- Survival mode (a different beast) ---------- */
.survival {
  --acc: var(--amber);
  --acc-grad: var(--grad-hot);
  background:
    radial-gradient(70% 90% at 20% 0%, rgba(255,33,66,.08), transparent 60%),
    linear-gradient(180deg, rgba(11,13,19,.4), rgba(7,8,11,0));
  border-top: 1px solid var(--line);
}
.survival__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.survival__text .lead { color: var(--ink); margin-bottom: 1.1rem; }
.survival__text p { color: var(--muted); }

.mart {
  margin-top: 1.8rem; padding: 1.5rem 1.6rem;
  border: 1px solid rgba(255,138,30,.3); border-radius: var(--radius);
  background: var(--surface-2);
}
.mart__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.mart__ico {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  color: var(--amber); background: rgba(255,138,30,.12); border: 1px solid rgba(255,138,30,.35);
}
.mart__ico svg { width: 22px; height: 22px; }
.mart__head h3 { font-size: 1.3rem; }
.mart ul { display: grid; gap: .55rem; }
.mart li { position: relative; padding-left: 1.8rem; color: var(--muted); font-size: .96rem; }
.mart li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 13px; height: 13px;
  border-radius: 50%; background: var(--grad-hot); box-shadow: 0 0 10px rgba(255,33,66,.5);
}

.survival__media { display: grid; gap: 1rem; }
.survival__stat {
  margin-top: 2.4rem; padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(255,138,30,.35); border-radius: var(--radius);
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.survival__stat b {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.survival__stat span { color: var(--muted); }

/* ---------- Trailer ---------- */
.video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-bright); box-shadow: var(--shadow), var(--glow);
  aspect-ratio: 16/9; background: var(--bg-2);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: block; overflow: hidden;
}
.video__facade img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.65); transition: transform .6s ease, filter .3s ease; }
.video__facade:hover img { transform: scale(1.05); filter: saturate(1.15) brightness(.75); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #05070c;
  box-shadow: 0 0 0 8px rgba(78,168,255,.14), 0 0 44px rgba(78,168,255,.55);
  transition: transform .25s ease;
}
.video__play svg { width: 36px; height: 36px; margin-left: 4px; }
.video__facade:hover .video__play { transform: scale(1.08); }
.video__label {
  position: absolute; left: 1rem; bottom: .9rem;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: rgba(7,8,11,.66); padding: .35rem .8rem; border-radius: 999px;
}

/* ---------- Buy — official store widgets ---------- */
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: stretch; }
.widget {
  min-width: 0; /* let the grid item shrink — the embeds have large intrinsic widths */
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.widget__label {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--volt);
}
.widget__frame {
  display: flex; justify-content: center; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(6,9,16,.7); min-height: 190px; min-width: 0;
}
.widget__frame iframe {
  width: 100%; max-width: 646px; height: 190px; border: 0; display: block;
}
.widget__frame--badge { padding: 1.4rem; flex-wrap: wrap; }

/* Xbox Store button */
.store-btn {
  display: inline-flex; align-items: center; gap: .95rem;
  padding: .9rem 1.7rem .9rem 1.4rem;
  border-radius: 14px;
  background: #0a0e14;
  border: 1px solid rgba(16, 124, 16, .55);
  text-decoration: none;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: #107c10;
  box-shadow: 0 0 0 1px rgba(16,124,16,.4), 0 12px 32px -12px rgba(16,124,16,.65);
}
.store-btn__icon {
  width: 44px; height: 44px; flex: none;
  filter: drop-shadow(0 0 8px rgba(16,124,16,.35));
}
.store-btn__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-btn__text small {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .06em; color: var(--muted);
}
.store-btn__text strong {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: .01em;
}
.widget__note { color: var(--dim); font-size: .82rem; }
.widget__fallback {
  margin-top: auto; font-family: var(--font-display); font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line-bright); align-self: flex-start;
  transition: color .2s ease;
}
.widget__fallback:hover { color: var(--volt); }

.buy__meta {
  margin-top: 2.6rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem;
  align-items: start; padding-top: 2rem; border-top: 1px solid var(--line);
}
.ratings { display: flex; gap: .8rem; align-items: center; }
.ratings img { height: 72px; width: auto; background: rgba(255,255,255,.9); border-radius: 6px; padding: 4px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.specs div { display: grid; gap: .15rem; }
.specs dt { font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--volt); }
.specs dd { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(6,7,11,.6); padding: 3rem 0 2.5rem; }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: .6rem; filter: drop-shadow(0 0 10px rgba(78,168,255,.22)); }
.footer__brand p { color: var(--dim); font-size: .92rem; }
.footer__brand a { color: var(--muted); border-bottom: 1px solid var(--line-bright); }
.footer__brand a:hover { color: var(--volt); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a {
  font-family: var(--font-display); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s ease;
}
.footer__links a:hover { color: var(--volt); }
.footer__copy { color: var(--dim); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: 2rem clamp(.5rem, 3vw, 3rem);
  background: rgba(4,5,8,.95); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 1rem; max-height: 100%; }
.lightbox__figure img {
  max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line-bright);
}
.lightbox__figure figcaption { font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .84rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.lightbox__close:hover { border-color: var(--volt); color: var(--volt); }
.lightbox__nav {
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.lightbox__nav:hover { border-color: var(--volt); color: var(--volt); transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px){
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,8,11,.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.4rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s cubic-bezier(.2,.7,.2,1);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; justify-content: center; }
  .nav__toggle { display: grid; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .platforms { justify-content: center; }
  .hero__art { margin-top: 1.5rem; max-width: 340px; }
  .hero__ship { left: -10px; }

  .story__grid, .voltage__grid, .survival__grid { grid-template-columns: 1fr; }
  .voltage__art { order: -1; min-height: 240px; }
  .story__tesla { width: 92px; right: 0; }
  .modes__grid { grid-template-columns: 1fr; }

  .widgets { grid-template-columns: 1fr; }
  .buy__meta { grid-template-columns: 1fr; gap: 1.5rem; }
  .specs { grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .btn--text { justify-content: center; }
  .levels__rail { grid-auto-columns: minmax(210px, 78vw); }
  .ratings { flex-wrap: wrap; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 1.4rem; z-index: 2; }
  .lightbox__nav--prev { left: 1.2rem; }
  .lightbox__nav--next { right: 1.2rem; }
}

/* small screens: simplify the Steam widget (it is a fixed-size iframe) */
@media (max-width: 700px){
  .widget__frame iframe { height: auto; min-height: 190px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #fx-canvas { display: none; }
}
