/* ==========================================================================
   HostCS.ro — Effects & motion upgrade
   Loaded last, on purpose: only additive rules and overrides live here so the
   base stylesheets stay untouched. All motion is transform/opacity only and
   every JS-driven effect is gated behind prefers-reduced-motion in main.js.
   ========================================================================== */

/* ---------- Scroll progress bar (element injected by main.js) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 10px rgba(245, 180, 0, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Hero: gold text shine sweep ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .accent {
    background: linear-gradient(110deg, var(--accent) 42%, #ffe9a8 50%, var(--accent) 58%);
    background-size: 250% 100%;
    background-position: 115% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: accent-shine 6s ease-in-out infinite;
  }
}

@keyframes accent-shine {
  0%, 55%  { background-position: 115% 0; }
  85%, 100% { background-position: -55% 0; }
}

/* ---------- Hero: HUD scanline drifting down (homepage hero only) ---------- */
.hero:not(.hero-media)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(245, 180, 0, 0.05) 50%, transparent);
  animation: scanline-drift 9s linear infinite;
  pointer-events: none;
}

@keyframes scanline-drift {
  from { transform: translateY(-100px); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  to   { transform: translateY(70vh); opacity: 0; }
}

/* ---------- Hero: parallax on per-game key art (driven by --par from JS) ---------- */
.hero-media::before {
  transform: scale(1.14) translateY(var(--par, 0px));
  will-change: transform;
}

/* Tabular figures so animated counters don't jitter */
.hero-stat .num,
.hero-fact strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- Card spotlight — gold glow follows the cursor (class added by JS) ---------- */
.fx-spot {
  position: relative;
}

.fx-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 180, 0, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fx-spot:hover::after {
  opacity: 1;
}

/* ---------- Game cards: richer hover (saturate art + gold corner brackets) ---------- */
.game-card::before {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.game-card:hover::before {
  filter: blur(3.5px) saturate(1.25);
}

.game-card .fx-corners,
.game-card .fx-corners::before,
.game-card .fx-corners::after {
  position: absolute;
  pointer-events: none;
}

.game-card .fx-corners {
  inset: 10px;
  z-index: 2;
}

.game-card .fx-corners::before,
.game-card .fx-corners::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 0 solid var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
}

.game-card .fx-corners::before {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  transform: translate(8px, 8px);
}

.game-card .fx-corners::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  transform: translate(-8px, -8px);
}

.game-card:hover .fx-corners::before,
.game-card:hover .fx-corners::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Buttons: sheen sweep on ghost + press feedback ---------- */
.btn-ghost {
  position: relative;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(245, 180, 0, 0.16), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-ghost:hover::before {
  transform: skewX(-18deg) translateX(340%);
}

.btn:active {
  transform: scale(0.97);
}

/* ---------- FAQ: gold highlight when open, smoother affordance ---------- */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(245, 180, 0, 0.45);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 180, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.faq-item summary {
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--accent);
}

/* ---------- Compare table: gold marker on hovered row ---------- */
.compare-table tbody tr > * {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.compare-table tbody tr:hover > :first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}

/* ---------- Gallery tiles: corner brackets on hover ---------- */
.shot-tile::before,
.shot-tile::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--accent);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
}

.shot-tile::before {
  top: 8px;
  left: 8px;
  border-top-width: 2px;
  border-left-width: 2px;
  transform: translate(6px, 6px);
}

.shot-tile::after {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  transform: translate(-6px, -6px);
}

.shot-tile:hover::before,
.shot-tile:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- CTA band: drifting HUD grid behind the content ---------- */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent 25%, black 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, black 80%);
  animation: grid-drift 14s linear infinite;
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

/* ---------- Micro-interactions ---------- */
.topbar-note .dot {
  animation: dot-pulse 2.2s ease-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 197, 106, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(53, 197, 106, 0); }
}

.brand img {
  transition: filter 0.25s ease;
}

.brand:hover img {
  filter: drop-shadow(0 0 8px rgba(245, 180, 0, 0.4));
}

.footer-col ul a {
  display: inline-flex;
  transition: color 0.2s ease, transform 0.25s ease;
}

.footer-col ul a:hover {
  transform: translateX(4px);
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-social a {
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.highlight-icon {
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), background 0.3s ease;
}

.highlight-row:hover .highlight-icon {
  transform: scale(1.05) rotate(-3deg);
  background: rgba(245, 180, 0, 0.18);
}

/* ---------- Mobile fix: centered hero stats were stuck at 4 columns (4th one
   clipped off-screen) because .hero-inner.center .hero-stats out-specifies the
   720px media query in hero.css ---------- */
@media (max-width: 720px) {
  .hero-inner.center .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
}

/* ==========================================================================
   HUD identity pass — Counter-Strike-specific visual language
   ========================================================================== */

/* ---------- Display typography: resolved by the premium font tokens ---------- */
h1, h2, h3, h4,
.hero-stat .num,
.hero-fact strong,
.package-price .amount,
.package-name {
  font-family: var(--font-display);
  letter-spacing: 0.015em;
}

/* Rajdhani runs visually smaller/narrower than Inter — rebalance key sizes */
.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; }
.section-title { font-size: clamp(32px, 4.6vw, 48px); }
.game-card h3 { font-size: 30px; }
.why-card h3, .feature-card h3 { font-size: 20px; }
.package-name { font-size: 23px; }
.package-price .amount { font-size: 40px; }
.hero-stat .num { font-size: 34px; }
.hero-fact strong { font-size: 18px; }
.cta-band h3 { font-size: clamp(26px, 3.2vw, 36px); }
.spec-strip h4 { font-size: 18px; }

/* ---------- Film grain over everything (3% opacity, esports-poster texture) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%272%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23n)%27%2F%3E%3C%2Fsvg%3E");
}

/* ---------- Homepage hero: split layout with live server console ---------- */
/* max-width must stay at the container cap — "none" let the hero stretch
   edge-to-edge on 2K/4K monitors (text far left, console far right) */
.hero-inner.hero-grid {
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-grid .hero-stats {
  margin-top: 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  max-width: 480px;
}

.hero-console {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 15, 19, 0.92);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(245, 180, 0, 0.07);
  overflow: hidden;
  font-family: var(--font-mono);
  animation: fade-in-up 0.6s 0.35s cubic-bezier(.2,.7,.2,1) both;
}

/* CRT scanlines over the console */
.hero-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.014) 2px 4px);
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated-2);
}

.console-dots {
  display: inline-flex;
  gap: 6px;
}

.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a44;
}

.console-dots i:first-child { background: #e5484d; }
.console-dots i:nth-child(2) { background: var(--accent); }
.console-dots i:last-child { background: var(--success); }

.console-title {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.console-radar {
  position: relative;
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(245, 180, 0, 0.45);
  overflow: hidden;
  flex: none;
}

.console-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(245, 180, 0, 0.55), rgba(245, 180, 0, 0.1) 80deg, transparent 90deg);
  animation: radar-spin 3s linear infinite;
}

.console-radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.console-body {
  padding: 18px 16px;
  min-height: 158px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

.console-line.cmd { color: var(--accent); font-weight: 500; }
.console-line.ok { color: var(--success); }

.console-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.console-status {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.console-status .c-on {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.console-status .c-on i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2.2s ease-out infinite;
}

@media (max-width: 960px) {
  .hero-inner.hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .hero-stats { max-width: none; }
}

/* ---------- Killfeed (game-page heroes, injected by JS) ---------- */
.killfeed {
  position: absolute;
  top: calc(var(--topbar-h) + var(--header-h) + 26px);
  right: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.kf-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(245, 180, 0, 0.55);
  border-radius: 3px;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  opacity: 0;
  animation: kf-cycle 12s linear infinite;
}

.kf-entry:nth-child(2) { animation-delay: 1s; }
.kf-entry:nth-child(3) { animation-delay: 2s; }

.kf-entry svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

.kf-killer { color: var(--accent); font-weight: 700; }

.kf-victim {
  color: #e5484d;
  text-decoration: line-through;
  text-decoration-color: rgba(229, 72, 77, 0.65);
}

@keyframes kf-cycle {
  0%   { opacity: 0; transform: translateX(22px); }
  4%   { opacity: 1; transform: translateX(0); }
  55%  { opacity: 1; }
  62%  { opacity: 0; transform: translateX(0); }
  100% { opacity: 0; }
}

@media (max-width: 960px) {
  .killfeed { display: none; }
}

/* On wide monitors, pin the killfeed to the container edge, not the viewport edge */
@media (min-width: 1280px) {
  .killfeed {
    right: calc((100% - var(--container)) / 2 + 24px);
  }
}

/* ---------- Buy-menu key hints on package cards ---------- */
.package-body { position: relative; }

.buy-key {
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.package-card:hover .buy-key {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(245, 180, 0, 0.6);
}

/* ---------- Section index numbering ("// 01", injected by JS) ---------- */
.sec-idx {
  color: var(--text-dim);
  font-weight: 400;
}

.sec-idx::after {
  content: " /";
  color: var(--text-dim);
}

/* ---------- HP-bar fill under hero facts (game pages) ---------- */
.hero-fact {
  position: relative;
  padding-bottom: 10px;
}

.hero-fact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(245, 180, 0, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  animation: hp-fill 0.9s 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-fact:nth-child(2)::after { animation-delay: 0.65s; }
.hero-fact:nth-child(3)::after { animation-delay: 0.8s; }
.hero-fact:nth-child(4)::after { animation-delay: 0.95s; }

@keyframes hp-fill {
  to { transform: scaleX(1); }
}

/* ---------- Header nav v2: two-line game links with live starting price ---------- */
.nav-links a.nav-game {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 16px;
}

.nav-item-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}

.nav-item-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1;
  transition: color 0.2s ease;
}

.nav-links a.nav-game:hover .nav-item-sub,
.nav-links a.nav-game.is-active .nav-item-sub {
  color: var(--accent);
}

@media (max-width: 960px) {
  .nav-links a.nav-game { padding: 14px 18px; gap: 5px; }
  .nav-item-top { font-size: 16px; }
  .nav-item-sub { font-size: 12px; }
}

/* ---------- Package cards v2: game key art banner + HUD slot count ---------- */
.package-banner {
  height: 138px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

/* Per-game colour edge under the art */
.package-banner.cs16 { border-bottom: 2px solid var(--game-cs16); }
.package-banner.cs2  { border-bottom: 2px solid var(--game-cs2); }
.package-banner.csgo { border-bottom: 2px solid var(--game-csgo); }

/* Vary the crop per card so four identical key arts don't look copy-pasted */
.package-banner { background-position: center 22%; }
.package-card:nth-child(2) .package-banner { background-position: center 42%; }
.package-card:nth-child(3) .package-banner { background-position: center 62%; }
.package-card:nth-child(4) .package-banner { background-position: center 82%; }
.package-banner::before { background-position: inherit; }

/* Stronger scrim at the bottom so the slot count stays readable over art */
.package-banner::after {
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.1) 0%, rgba(10, 10, 12, 0.55) 55%, rgba(10, 10, 12, 0.92) 100%);
}

/* Art sharpens slightly on card hover */
.package-banner::before {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.package-card:hover .package-banner::before {
  transform: scale(1.1);
  filter: blur(2px) saturate(1.2);
}

.pkg-slots {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pkg-slots b {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.pkg-slots span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* Price gets a HUD underline */
.package-price {
  position: relative;
  padding-bottom: 14px;
}

.package-price::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(245, 180, 0, 0.15));
}

/* Featured card: lifted, gold top edge, stronger presence */
.package-card.is-featured {
  transform: translateY(-6px);
}

.package-card.is-featured:hover {
  transform: translateY(-12px);
}

.package-card.is-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
}

@media (max-width: 1100px) {
  .package-card.is-featured { transform: none; }
  .package-card.is-featured:hover { transform: translateY(-6px); }
}

/* ---------- "How it works" steps (homepage) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* Ghost step number, HUD-poster style */
.step-num {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  opacity: 0.07;
  pointer-events: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.step-card:hover .step-num {
  color: var(--accent);
  opacity: 0.18;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), background 0.25s ease, color 0.25s ease;
}

.step-card:hover .step-icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.1) rotate(-4deg);
}

.step-icon svg { width: 23px; height: 23px; }

.step-card h3 {
  font-size: 19px;
  text-transform: uppercase;
}

.step-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Connector arrow between steps (desktop only) */
.step-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.45;
}

.step-card:last-child::after { display: none; }

@media (max-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2)::after { display: none; }
}

@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
}

/* ---------- Mods & plugins section (game pages) ---------- */
.mods-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.mods-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.mods-panel:hover {
  border-color: rgba(245, 180, 0, 0.4);
}

/* Gold top edge, like a HUD panel header */
.mods-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.mods-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.mods-panel h3 {
  margin-top: 8px;
  font-size: 24px;
  text-transform: uppercase;
}

.mods-installed {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}

.mods-installed li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mods-installed li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mod-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mods-installed li:hover .mod-icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.08);
}

.mod-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.mod-text p {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.mod-status {
  flex: none;
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  border: 1px solid rgba(53, 197, 106, 0.4);
  padding: 4px 9px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  background: rgba(53, 197, 106, 0.08);
}

.mod-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mod-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  padding: 8px 14px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(.2,.7,.2,1),
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.reveal.is-visible .mod-chip {
  opacity: 1;
  transform: translateY(0);
}

.mod-chip:nth-child(1)  { transition-delay: 0.05s; }
.mod-chip:nth-child(2)  { transition-delay: 0.09s; }
.mod-chip:nth-child(3)  { transition-delay: 0.13s; }
.mod-chip:nth-child(4)  { transition-delay: 0.17s; }
.mod-chip:nth-child(5)  { transition-delay: 0.21s; }
.mod-chip:nth-child(6)  { transition-delay: 0.25s; }
.mod-chip:nth-child(7)  { transition-delay: 0.29s; }
.mod-chip:nth-child(8)  { transition-delay: 0.33s; }
.mod-chip:nth-child(9)  { transition-delay: 0.37s; }
.mod-chip:nth-child(10) { transition-delay: 0.41s; }
.mod-chip:nth-child(11) { transition-delay: 0.45s; }
.mod-chip:nth-child(12) { transition-delay: 0.49s; }

.mod-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.mods-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.mods-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--success);
}

@media (max-width: 900px) {
  .mods-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .mods-panel { padding: 24px 20px; }
  .mod-status { display: none; }
}

/* ---------- Reduced motion: kill the JS-independent decorative layers too ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero:not(.hero-media)::after,
  .cta-band::after {
    animation: none;
    opacity: 0;
  }
  .fx-spot::after {
    display: none;
  }
  .hero-media::before {
    transform: scale(1.06);
  }
  .killfeed {
    display: none;
  }
  .hero-fact::after {
    animation: none;
    transform: scaleX(1);
  }
  .console-radar::before,
  .console-caret {
    animation: none;
  }
  .mod-chip {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
