/* Need for Speed World section, 2026-11-28: /needforspeed/ + gallery, cars, store, how-to-play, faq.
   Loaded after /css/seo-servers-20261012.css (the SwedenCode server-page system: charcoal, Chakra Petch labels, Inter copy,
   JetBrains Mono figures) and only adds the NFS World layer: electric cyan from the game's HUD, boost orange,
   slanted "speed" type, a section sub-nav and the page-specific blocks. ASCII only. */

.sp-page--nfsw {
  --sp-accent: #27C6FF; --sp-accent-2: #8FE3FF; --sp-btn-1: #12A5E8; --sp-btn-2: #0B6FD0;
  --nf-boost: #FF8A1F; --nf-boost-2: #FFB46B; --nf-gold: #FFD24A; --nf-good: #46D6A0; --nf-bad: #FF7A83;
  --nf-glow: rgba(39, 198, 255, .32);
}

/* ---------- top bar: brand + NFS sub-brand + section nav + play ---------- */
.nf-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: -4px;
  font: 700 11px/1 var(--sp-display); letter-spacing: .14em; text-transform: uppercase; font-style: italic;
  color: #021018; background: linear-gradient(100deg, var(--sp-accent-2), var(--sp-accent));
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); text-decoration: none; flex: none;
}
.nf-nav a { white-space: nowrap; }
.nf-nav a[aria-current="page"] { color: var(--sp-hot); background: rgba(39, 198, 255, .12); box-shadow: inset 0 -2px 0 var(--sp-accent); }
.nf-topplay { flex: none; min-height: 38px; padding: 0 14px; font-size: 11.5px; }
.nf-topplay svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.nf-hero .sp-hero__art { background-position: center 40%; }
.nf-hero::after {   /* speed streaks over the art */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(100deg, transparent 52%, rgba(39, 198, 255, .16) 52.2%, transparent 53.4%),
    linear-gradient(100deg, transparent 60%, rgba(39, 198, 255, .10) 60.15%, transparent 61%),
    linear-gradient(100deg, transparent 67%, rgba(255, 138, 31, .10) 67.1%, transparent 67.8%);
}
.nf-hero h1 { max-width: none; }
.nf-hero h1 .nf-h1a { display: block; font-size: .5em; letter-spacing: .08em; color: var(--sp-text); }
.nf-hero h1 .nf-h1b {
  display: inline-block; font-style: italic; transform: skewX(-6deg); transform-origin: left bottom;
  background: linear-gradient(92deg, #F7FAFF 0%, var(--sp-accent-2) 45%, var(--sp-accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(39, 198, 255, .28));
}
.nf-hero--sub h1 { font-size: clamp(34px, 5vw, 58px); }

.nf-live { display: inline-flex; align-items: center; gap: 10px; }
.sp-eyebrow.nf-eyebrow::before { display: none; }
.nf-dot { width: 9px; height: 9px; border-radius: 50%; background: #5C6B82; flex: none; }
.nf-dot.is-on { background: var(--nf-good); box-shadow: 0 0 0 0 rgba(70, 214, 160, .6); animation: nfPulse 2s ease-out infinite; }
.nf-dot.is-off { background: var(--nf-bad); }
@keyframes nfPulse { 0% { box-shadow: 0 0 0 0 rgba(70, 214, 160, .55); } 70% { box-shadow: 0 0 0 9px rgba(70, 214, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 214, 160, 0); } }

.nf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.nf-play { --b1: #12A5E8; --b2: #0B6FD0; }
.sp-btn--accent.nf-boostbtn { --sp-btn-1: #FF9A3C; --sp-btn-2: #E06A0B; }

/* HUD strip: live figures, speedometer feel */
.nf-hud {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; margin: 34px 0 0;
  border: 1px solid var(--sp-line-2); border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 28, 39, .9), rgba(11, 14, 19, .9));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nf-hud > div { position: relative; padding: 14px 16px 13px; }
.nf-hud > div + div { border-left: 1px solid var(--sp-line); }
.nf-hud > div::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--sp-accent), transparent); }
.nf-hud dt { margin: 0 0 6px; font: 600 10.5px/1.2 var(--sp-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-mute); }
.nf-hud dd { margin: 0; font: 700 clamp(20px, 2.6vw, 28px)/1 var(--sp-mono); font-variant-numeric: tabular-nums; color: var(--sp-hot); }
.nf-hud dd small { margin-left: 4px; font: 600 11px/1 var(--sp-sans); color: var(--sp-mute); }

/* ---------- section helpers ---------- */
.nf-kicknum { color: var(--sp-accent-2); margin-right: 8px; font-family: var(--sp-mono); letter-spacing: 0; }
.nf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; }
.nf-head h2 { margin-bottom: 0; }
.nf-more { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sp-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-accent-2); text-decoration: none; }
.nf-more::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .15s ease; }
.nf-more:hover { color: var(--sp-hot); }
.nf-more:hover::after { width: 26px; }

/* feature cards with a photo */
.nf-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nf-feat { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sp-line); border-radius: 8px; background: var(--sp-panel); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.nf-feat:hover { border-color: rgba(39, 198, 255, .45); transform: translateY(-2px); }
.nf-feat img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.nf-feat__b { padding: 18px 20px 20px; }
.nf-feat h3 { margin: 0 0 6px; font: 700 17px/1.25 var(--sp-display); letter-spacing: .02em; text-transform: uppercase; color: var(--sp-hot); }
.nf-feat p { margin: 0; font-size: 15px; line-height: 1.6; }

/* explore tiles reuse .sp-world; NFS hover */
.nf-tiles .sp-world:hover { border-color: rgba(39, 198, 255, .5); }
.nf-tiles .sp-world b::after { content: " \2192"; color: var(--sp-accent-2); }

/* facts table */
.nf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; border-top: 1px solid var(--sp-line); }
.nf-facts div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sp-line); }
.nf-facts dt { font: 600 12px/1.5 var(--sp-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-mute); }
.nf-facts dd { margin: 0; color: var(--sp-text); font-size: 15px; }
.nf-facts code { font: 500 13.5px/1.4 var(--sp-mono); color: var(--sp-hot); overflow-wrap: anywhere; }

/* ---------- gallery ---------- */
.nf-gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nf-gal li { grid-column: span 4; }
.nf-gal li.is-wide { grid-column: span 8; grid-row: span 2; }
.nf-gal li.is-wide button, .nf-gal li.is-wide figure { height: 100%; }
.nf-gal li.is-half { grid-column: span 6; }
.nf-gal button {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--sp-line); border-radius: 8px; overflow: hidden;
  background: var(--sp-panel); cursor: zoom-in; color: inherit; font: inherit; text-align: left;
}
.nf-gal img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.nf-gal li.is-wide img { aspect-ratio: auto; height: 100%; }
.nf-gal button:hover img { transform: scale(1.035); filter: brightness(1.08); }
.nf-gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px;
  background: linear-gradient(0deg, rgba(6, 10, 18, .92), rgba(6, 10, 18, 0));
  font: 600 13px/1.35 var(--sp-sans); color: var(--sp-text);
}
.nf-gal figcaption small { display: block; margin-top: 2px; font: 500 11px/1.3 var(--sp-sans); color: var(--sp-mute); }
.nf-gal figure { margin: 0; height: 100%; }
.nf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.nf-filter button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sp-line-2); background: rgba(234, 240, 247, .03);
  font: 600 12.5px/1 var(--sp-sans); color: var(--sp-body); cursor: pointer;
}
.nf-filter button[aria-pressed="true"] { color: #021018; background: var(--sp-accent); border-color: var(--sp-accent); }

.nf-lb { width: min(1400px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--sp-line-2); border-radius: 10px; background: #05080D; color: var(--sp-text); }
.nf-lb::backdrop { background: rgba(3, 6, 12, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nf-lb img { width: 100%; height: auto; max-height: calc(94vh - 58px); object-fit: contain; background: #000; }
.nf-lb__bar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 10px 0 16px; }
.nf-lb__cap { flex: 1; min-width: 0; font-size: 14px; }
.nf-lb__cap small { display: block; color: var(--sp-mute); font-size: 12px; }
.nf-lb__bar button { width: 40px; height: 40px; border-radius: 7px; border: 1px solid var(--sp-line-2); background: rgba(234, 240, 247, .05); color: var(--sp-text); font: 600 18px/1 var(--sp-sans); cursor: pointer; }
.nf-lb__bar button:hover { background: rgba(39, 198, 255, .14); }

/* ---------- cars ---------- */
.nf-cop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nf-cop li { position: relative; padding: 16px 16px 14px; border: 1px solid var(--sp-line); border-radius: 8px; background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel)); overflow: hidden; }
.nf-cop li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #E8414D 0 50%, #3D7EEB 50% 100%); }
.nf-cop b { display: block; font: 700 15px/1.3 var(--sp-display); letter-spacing: .03em; text-transform: uppercase; color: var(--sp-hot); }
.nf-cop span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--sp-mute); }
.nf-cop em { display: inline-block; margin-top: 10px; font: 600 12.5px/1 var(--sp-mono); font-style: normal; color: var(--nf-gold); }
.nf-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nf-brands li { padding: 8px 12px; border-radius: 7px; border: 1px solid var(--sp-line); background: rgba(234, 240, 247, .025); font: 600 13px/1 var(--sp-display); letter-spacing: .08em; text-transform: uppercase; color: var(--sp-text); }
.nf-brands li small { margin-left: 6px; font: 500 12px/1 var(--sp-mono); color: var(--sp-accent-2); letter-spacing: 0; }
.nf-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.nf-split img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--sp-line); aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- store ---------- */
.nf-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--sp-line-2); border-radius: 8px; background: var(--sp-panel); }
.nf-wallet__lbl { font: 600 12px/1 var(--sp-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-mute); }
.nf-wallet__val { margin-right: auto; font: 700 22px/1 var(--sp-mono); color: var(--nf-gold); }
.sp-btn--gold { background: linear-gradient(180deg, #FFE07A, #F2B417); color: #1A1200; box-shadow: 0 10px 26px -14px #F2B417, inset 0 1px 0 rgba(255, 255, 255, .4); }
.sp-btn--gold:hover { filter: brightness(1.06); }
.nf-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nf-pack {
  position: relative; display: grid; gap: 5px; padding: 20px 16px 18px; text-align: left; cursor: pointer; color: var(--sp-text);
  border: 1px solid var(--sp-line-2); border-radius: 8px; background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel)); font: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nf-pack:hover { transform: translateY(-2px); border-color: rgba(39, 198, 255, .5); }
.nf-pack[aria-checked="true"] { border-color: var(--sp-accent); box-shadow: 0 0 0 1px var(--sp-accent), 0 12px 32px -12px var(--nf-glow); }
.nf-pack__k { font: 600 11px/1 var(--sp-display); letter-spacing: .18em; text-transform: uppercase; color: var(--sp-accent-2); }
.nf-pack--boost .nf-pack__k { color: var(--nf-boost-2); }
.nf-pack--boost[aria-checked="true"] { border-color: var(--nf-boost); box-shadow: 0 0 0 1px var(--nf-boost), 0 12px 32px -12px rgba(255, 138, 31, .4); }
.nf-pack b { font: 700 24px/1.1 var(--sp-display); letter-spacing: .02em; color: var(--sp-hot); }
.nf-pack em { font: 600 13px/1 var(--sp-mono); font-style: normal; color: var(--nf-gold); }
.nf-pack i { position: absolute; top: -9px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--sp-accent); color: #021018; font: 700 10px/1.2 var(--sp-display); letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
.nf-buy { margin: 22px 0 0; max-width: 760px; }
.nf-buy label { display: block; margin: 0 0 8px; font: 600 12px/1 var(--sp-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-mute); }
.nf-buy__row { display: flex; gap: 12px; }
.nf-buy input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--sp-line-2); background: rgba(0, 0, 0, .35);
  color: var(--sp-hot); font: 500 17px/1 var(--sp-mono); letter-spacing: .06em; text-transform: uppercase;
}
.nf-buy input::placeholder { color: #5C6B82; text-transform: none; letter-spacing: 0; font-family: var(--sp-sans); font-size: 15px; }
.nf-buy input:focus { outline: none; border-color: var(--sp-accent); box-shadow: 0 0 0 3px rgba(39, 198, 255, .18); }
.nf-buy .sp-btn { min-height: 54px; padding: 0 22px; }
.nf-buy .sp-btn:disabled { cursor: not-allowed; filter: grayscale(.6) brightness(.7); }
.nf-buy__msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 500; }
.nf-buy__msg.is-ok { color: var(--nf-good); }
.nf-buy__msg.is-err { color: var(--nf-bad); }
.nf-fine { margin: 6px 0 0; font-size: 13px; color: var(--sp-mute); }
.nf-coin { color: var(--nf-gold); }

/* ---------- copy box (launcher address) ---------- */
.nf-copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; max-width: 640px; }
.nf-copy code { flex: 1 1 280px; display: flex; align-items: center; padding: 12px 14px; border-radius: 7px; background: rgba(0, 0, 0, .35); border: 1px solid var(--sp-line); font: 500 15px/1.3 var(--sp-mono); color: var(--sp-hot); overflow-wrap: anywhere; }

.nf-legal { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--sp-mute); }
.sp-foot .nf-legal { flex-basis: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nf-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nf-feats { grid-template-columns: 1fr 1fr; }
  .nf-facts { grid-template-columns: 1fr; }
  .nf-split { grid-template-columns: 1fr; }
  .nf-gal li, .nf-gal li.is-half { grid-column: span 6; }
  .nf-gal li.is-wide { grid-column: span 12; grid-row: auto; }
  .nf-gal li.is-wide img { aspect-ratio: 16 / 10; height: auto; }
}
@media (max-width: 760px) {
  /* the base hides .sp-nav here; the NFS section nav becomes a scrolling second row */
  .sp-top__in { flex-wrap: wrap; row-gap: 0; }
  .sp-nav.nf-nav { display: flex; order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--sp-gutter)); padding: 0 var(--sp-gutter) 8px; overflow-x: auto; scrollbar-width: none; }
  .sp-nav.nf-nav::-webkit-scrollbar { display: none; }
  .nf-topplay { margin-left: auto; }
  .nf-hud { grid-template-columns: 1fr 1fr; }
  .nf-hud > div:nth-child(3) { border-left: 0; }
  .nf-hud > div:nth-child(n+3) { border-top: 1px solid var(--sp-line); }
  html { scroll-padding-top: 116px; }
}
@media (max-width: 600px) {
  .nf-feats { grid-template-columns: 1fr; }
  .nf-packs { grid-template-columns: 1fr 1fr; }
  .nf-buy__row { flex-direction: column; }
  .nf-cta .sp-btn { flex: 1 1 100%; }
  .nf-facts div { grid-template-columns: 1fr; gap: 4px; }
  .nf-gal li, .nf-gal li.is-half, .nf-gal li.is-wide { grid-column: span 12; }
  .nf-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-dot.is-on { animation: none; }
  .nf-feat, .nf-pack, .nf-gal img, .nf-more::after { transition: none; }
  a.nf-feat:hover, .nf-pack:hover { transform: none; }
  .nf-gal button:hover img { transform: none; }
}
