:root {
  /* Ashura Whole Heavens palette: Akatsuki black + crimson red glow */
  --bg: #08070a;
  --panel: rgba(22, 14, 16, 0.74);
  --panel-border: rgba(214, 30, 44, 0.26);
  --accent: #d61e2c;        /* Akatsuki crimson */
  --accent-2: #ff5563;      /* bright red glow */
  --accent-3: #1a0e10;      /* ink black-red */
  --text: #f6eef0;
  --muted: #c2aab0;
  --nav-bg: rgba(12, 8, 10, 0.82);
  --fallback-grad: radial-gradient(1200px 800px at 70% 10%, #2a0c10 0%, #08070a 60%);
}

/* ---------- LIGHT THEME: white + blue primary, black tones ---------- */
[data-theme="light"] {
  --bg: #f4f8fd;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(37, 99, 165, 0.28);
  --accent: #1f6fd6;        /* primary blue */
  --accent-2: #3fa9ff;      /* bright sky blue */
  --accent-3: #0a1a2e;      /* deep black-blue */
  --text: #0e1b2b;
  --muted: #4a5f78;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --fallback-grad: radial-gradient(1200px 800px at 70% 10%, #dcecff 0%, #f4f8fd 60%);
}

/* Theme toggle button (fixed, top-right, above content) */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}
.theme-toggle:hover { transform: scale(1.1); border-color: var(--accent); }

/* When placed inside the nav, it sits inline as the last link item. */
.theme-toggle.nav-toggle {
  position: static;
  width: 38px;
  height: 38px;
  font-size: 17px;
  margin-left: 4px;
}
.theme-toggle.nav-toggle:hover { transform: scale(1.08); }

/* Light-theme fixes for elements that hardcode white/dark text */
[data-theme="light"] h1 {
  background: linear-gradient(120deg, var(--accent-3) 10%, var(--accent) 50%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .pill-stat .num,
[data-theme="light"] .tool h4,
[data-theme="light"] .build-card h3,
[data-theme="light"] .example-title a,
[data-theme="light"] .data-cell .dv,
[data-theme="light"] .stat-box .sv,
[data-theme="light"] .cost-summary strong,
[data-theme="light"] .tool-price-note strong,
[data-theme="light"] footer .big,
[data-theme="light"] .callout strong,
[data-theme="light"] .article-body h2 { color: var(--accent-3); }
[data-theme="light"] .step-body li { color: #23405f; }
[data-theme="light"] .tool-use { color: #23405f; }
[data-theme="light"] .code-box { background: #eef4fb; color: #1b2c40; border-color: rgba(37,99,165,0.25); }
[data-theme="light"] .tag-chip { background: rgba(37,99,165,0.08); border-color: rgba(37,99,165,0.28); color: #1f4c7a; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

/* 3D canvas sits behind everything */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ---------- LIVE BANNER ---------- */
.live-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, #9146ff, #d61e2c);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(214,30,44,0.4);
  animation: liveSlideIn 0.4s ease both;
}
.live-banner .live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff;
  animation: pulse 1.4s infinite;
}
.live-banner .live-cta {
  background: #fff; color: #1a0e10; text-decoration: none;
  font-weight: 800; padding: 6px 16px; border-radius: 999px;
  transition: transform 0.2s ease;
}
.live-banner .live-cta:hover { transform: scale(1.06); }
.live-banner .live-x {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 16px; cursor: pointer; margin-left: 4px;
}
@keyframes liveSlideIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- SHARED NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .brand .sp {
  font-size: 22px;
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(214, 30, 44, 0.8));
}
.site-nav .links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav .links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.site-nav .links a:hover { color: #fff; background: rgba(214,30,44,0.12); }
.site-nav .links a.active {
  color: #fff;
  background: rgba(214,30,44,0.16);
  border-color: rgba(214,30,44,0.4);
}
.site-nav .links a.ext::after { content: " ↗"; opacity: 0.6; font-size: 11px; }

/* ---------- HERO ---------- */
header.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  animation: floatIn 1s ease both;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2s infinite;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  animation: floatIn 0.9s ease both;
}
.logo-spiral {
  font-size: 44px;
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 0 14px rgba(214, 30, 44, 0.8));
}
.logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }

h1 {
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  background: linear-gradient(120deg, #fff 10%, var(--accent) 45%, var(--accent-2) 75%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: floatIn 1.1s ease both;
  animation-delay: 0.1s;
}

.hero p.sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  animation: floatIn 1.2s ease both;
  animation-delay: 0.2s;
}

.hero .cta-row {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: floatIn 1.3s ease both;
  animation-delay: 0.3s;
}
.pill-stat {
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  text-align: left;
}
.pill-stat .num { font-size: 26px; font-weight: 800; color: #fff; }
.pill-stat .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.scroll-hint {
  margin-top: 60px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bob 2s infinite;
}

/* ---------- SECTION TITLES ---------- */
.section-head { text-align: center; margin: 90px 0 50px; }
.section-head .kicker {
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 10px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* ---------- STEP CARDS ---------- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.step.visible { opacity: 1; transform: translateY(0) scale(1); }
.step:hover {
  border-color: rgba(214, 30, 44, 0.55);
  box-shadow: 0 26px 70px rgba(214, 30, 44, 0.25);
  transform: translateY(-4px) scale(1.005);
}
.step .num-badge {
  width: 88px; height: 88px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-3));
  box-shadow: 0 10px 30px rgba(214, 30, 44, 0.4);
  position: relative;
  overflow: hidden;
}
.step .num-badge span.emoji { position: absolute; bottom: 6px; right: 8px; font-size: 20px; }
.step-body h3 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tag-tool {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(35, 213, 171, 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(35, 213, 171, 0.3);
  letter-spacing: 0.5px;
}
.tag-format {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: #b6a4ff;
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.step-body p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.step-body ul {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-body li { padding-left: 24px; position: relative; font-size: 14.5px; color: #d4d9f5; }
.step-body li::before { content: "▹"; position: absolute; left: 4px; color: var(--accent-2); }

/* ---------- CARD GRIDS (tips/tools) ---------- */
.tips-grid, .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.tip {
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tip:hover { transform: translateY(-6px); border-color: rgba(255, 92, 138, 0.5); }
.tip .ico { font-size: 30px; margin-bottom: 12px; }
.tip h4 { font-size: 17px; margin-bottom: 8px; }
.tip p { color: var(--muted); font-size: 14px; }

.tool {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tool:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 30, 44, 0.6);
  box-shadow: 0 20px 50px rgba(214, 30, 44, 0.22);
}
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tool-ico { font-size: 32px; }
/* Product image slot: drop an official SiteStripe/brand PNG in the <img>
   later. Until then, shows a branded gradient tile with the emoji icon. */
.product-shot {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(214,30,44,0.22), transparent 60%),
    linear-gradient(160deg, #171013, #0c0a0c);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .product-shot {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(31,111,214,0.20), transparent 60%),
    linear-gradient(160deg, #e8f1fc, #ffffff);
}
/* Real product image: when a card has one, it fills the tile on a clean
   near-white backing (retail standard). Add class "has-photo" to
   .product-shot and set the <img src>. Without it, the emoji tile shows. */
.product-shot img { display: none; }
.product-shot.has-photo { background: #ffffff; font-size: 0; }
.product-shot.has-photo .brand-chip { background: rgba(0,0,0,0.06); color: #333; }
.product-shot.has-photo img {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
}
.product-shot .brand-chip {
  position: absolute; top: 8px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,0.4); color: #fff; text-transform: uppercase;
}
[data-theme="light"] .product-shot .brand-chip { background: rgba(255,255,255,0.75); color: #0e1b2b; }

/* ---------- PURCHASE MODAL ---------- */
.buy-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.buy-modal[hidden] { display: none; }
.buy-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.buy-dialog {
  position: relative;
  width: min(460px, 92vw);
  padding: 30px 26px 22px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  animation: buyIn 0.25s ease both;
}
[data-theme="light"] .buy-dialog { background: rgba(255,255,255,0.96); }
@keyframes buyIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
.buy-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.buy-x:hover { color: var(--text); }
.buy-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.buy-name { font-size: 14px; color: var(--accent-2); font-weight: 700; margin-bottom: 20px; }
.buy-options { display: flex; flex-direction: column; gap: 12px; }
.buy-opt {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--panel-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.buy-opt:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.buy-opt .buy-store { font-size: 17px; font-weight: 800; }
.buy-opt .buy-sub { font-size: 12px; color: var(--muted); }
.buy-opt.bestbuy { background: linear-gradient(120deg, rgba(255,225,0,0.14), rgba(255,225,0,0.04)); border-color: rgba(255,225,0,0.5); }
.buy-opt.bestbuy .buy-store { color: #ffe000; }
[data-theme="light"] .buy-opt.bestbuy .buy-store { color: #b39500; }
.buy-opt.amazon { background: linear-gradient(120deg, rgba(255,153,0,0.14), rgba(255,153,0,0.04)); border-color: rgba(255,153,0,0.5); }
.buy-opt.amazon .buy-store { color: #ff9900; }
.buy-opt.brand { background: linear-gradient(120deg, rgba(68,214,44,0.16), rgba(68,214,44,0.05)); border-color: rgba(68,214,44,0.55); }
.buy-opt.brand .buy-store { color: #44d62c; }
[data-theme="light"] .buy-opt.brand .buy-store { color: #2a9e1a; }
.buy-disc { margin-top: 16px; font-size: 11px; color: var(--muted); text-align: center; }
.price {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.price-free { background: rgba(80, 220, 130, 0.16); color: #6ee7a0; border: 1px solid rgba(80, 220, 130, 0.35); }
.price-paid { background: rgba(245, 197, 66, 0.16); color: #f5c542; border: 1px solid rgba(245, 197, 66, 0.35); }
.tool h4 { font-size: 19px; margin-bottom: 6px; }
.tool-use { color: #d4dcf0; font-size: 14px; margin-bottom: 10px; }
.tool-price-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.tool-price-note .warn { color: #ff9d6b; display: block; margin-top: 4px; font-size: 12px; }
.tool-price-note strong { color: #fff; }
.tool-btn {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.tool-btn:hover { filter: brightness(1.12); transform: scale(1.02); }
.cost-summary {
  text-align: center;
  max-width: 720px;
  margin: 30px auto 0;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 15px;
}
.cost-summary strong { color: #fff; }

/* ---------- GOLDEN META EXAMPLES ---------- */
.frontpage-note { text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--muted); font-size: 15px; }
.frontpage-note .fp-badge {
  display: inline-block;
  margin: 0 4px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(214, 30, 44, 0.16);
  color: #ff8089;
  border: 1px solid rgba(214, 30, 44, 0.4);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.example {
  margin-bottom: 34px;
  padding: 26px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.example-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.example-thumb {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(214, 30, 44, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: block;
}
.example-titles { flex: 1; min-width: 220px; }
.example-role { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.example-title { font-size: 20px; font-weight: 800; margin: 6px 0 8px; line-height: 1.25; }
.example-title a { color: #fff; text-decoration: none; }
.example-title a:hover { color: var(--accent-2); text-decoration: underline; }
.fp-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
  border: 1px solid rgba(245, 197, 66, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.meta-block { margin-top: 16px; }
.meta-block .meta-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.meta-block .placeholder-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,157,107,0.15); color: #ff9d6b;
  border: 1px solid rgba(255,157,107,0.35); letter-spacing: 0.5px; text-transform: none;
}
.meta-block .real-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(80, 220, 130, 0.16); color: #6ee7a0;
  border: 1px solid rgba(80, 220, 130, 0.35); letter-spacing: 0.5px; text-transform: none;
}
.use-formula {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: rgba(245, 197, 66, 0.08);
  border: 1px dashed rgba(245, 197, 66, 0.35);
  color: var(--muted); font-size: 13.5px;
}
.use-formula strong { color: #f5c542; }
.code-box {
  background: #0d0b0f;
  border: 1px solid rgba(214, 30, 44, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: 'Consolas', 'SF Mono', monospace;
  font-size: 13.5px;
  color: #d8d0d4;
  white-space: pre-wrap;
  line-height: 1.55;
  overflow-x: auto;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(214,30,44,0.10);
  border: 1px solid rgba(214,30,44,0.28);
  color: #f0c8cc;
  font-size: 13px;
}
.data-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.data-cell {
  flex: 1; min-width: 120px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
}
.data-cell .dv { font-size: 20px; font-weight: 800; color: #fff; }
.data-cell .dl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.thumb-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.thumb-card:hover { transform: translateY(-5px); border-color: rgba(214,30,44,0.6); }
.thumb-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.thumb-card .tc-cap { padding: 10px 14px; font-size: 13px; color: var(--muted); }
.thumb-card .tc-cap strong { color: #fff; display: block; margin-bottom: 2px; font-size: 13.5px; }

/* ---------- SPONSOR BANNER ROW (trackside-style, interactive 3D) ---------- */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  perspective: 1000px;
  margin-top: 10px;
}
.sponsor-banner {
  position: relative;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 240px;
  padding: 22px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(150deg, #1a1418, #0c0a0c);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.sponsor-banner:hover {
  transform: rotateX(0deg) translateY(-8px) scale(1.04);
  box-shadow: 0 26px 60px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.35);
}
/* Shine sweep on hover */
.sponsor-banner::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.sponsor-banner:hover::after { left: 130%; }
.sponsor-banner .sp-logo { font-size: 34px; line-height: 1; }
.sponsor-banner .sp-name { font-size: 18px; font-weight: 800; letter-spacing: 0.3px; }
.sponsor-banner .sp-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  opacity: 0.85;
}
/* Brand-tinted accents */
.sponsor-banner.s-razer  { background: linear-gradient(150deg, #0a1a0a, #061006); border-color: rgba(68,214,44,0.5); }
.sponsor-banner.s-razer .sp-name  { color: #44d62c; }
.sponsor-banner.s-amazon { background: linear-gradient(150deg, #1e1710, #0d0a06); border-color: rgba(255,153,0,0.5); }
.sponsor-banner.s-amazon .sp-name { color: #ff9900; }
.sponsor-banner.s-bestbuy{ background: linear-gradient(150deg, #16160a, #0b0b05); border-color: rgba(255,225,0,0.5); }
.sponsor-banner.s-bestbuy .sp-name{ color: #ffe000; }
.sponsor-banner.s-exitlag{ background: linear-gradient(150deg, #0a1420, #06090f); border-color: rgba(74,163,224,0.5); }
.sponsor-banner.s-exitlag .sp-name{ color: #4aa3e0; }
.sponsor-banner .sp-badge {
  position: absolute; top: 8px; right: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
}
[data-theme="light"] .sponsor-banner { color: #0e1b2b; background: linear-gradient(150deg, #ffffff, #eef3fb); }
[data-theme="light"] .sponsor-banner .sp-badge { background: rgba(0,0,0,0.08); color: #4a5f78; }

/* ---------- FLOW STRIP ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 20px; }
.flow .node {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.flow .arrow { color: var(--accent); font-size: 20px; }

/* ---------- EMBEDS (Watch page) ---------- */
.embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  background: #000;
}
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.platform-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.platform-tab {
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: all 0.2s ease;
}
.platform-tab.active { color: #fff; border-color: var(--accent); background: rgba(214,30,44,0.18); }
.platform-tab.twitch.active { border-color: #9146ff; background: rgba(145,70,255,0.22); }
.embed-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #fff;
}
.embed-label .pf-dot { width: 9px; height: 9px; border-radius: 50%; }
.embed-label .yt { background: #ff0000; box-shadow: 0 0 10px #ff0000; }
.embed-label .tw { background: #9146ff; box-shadow: 0 0 10px #9146ff; }

/* ---------- BUILDS / ARTICLES ---------- */
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.build-card {
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.build-card:hover { transform: translateY(-6px); border-color: rgba(214,30,44,0.6); box-shadow: 0 20px 50px rgba(214,30,44,0.2); }
.build-card .bc-top { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.build-card .bc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bc-pill {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(214,30,44,0.14); color: #ff8089; border: 1px solid rgba(214,30,44,0.35);
  letter-spacing: 0.5px;
}
.bc-pill.pve { background: rgba(80,220,130,0.14); color: #6ee7a0; border-color: rgba(80,220,130,0.35); }
.bc-pill.pvp { background: rgba(145,70,255,0.16); color: #b98cff; border-color: rgba(145,70,255,0.4); }
.build-card h3 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.build-card p { color: var(--muted); font-size: 14px; flex: 1; }
.build-card .bc-btn {
  margin-top: 16px; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 12px;
  color: #fff; background: linear-gradient(120deg, var(--accent-2), var(--accent));
  transition: filter 0.2s ease;
}
.build-card .bc-btn:hover { filter: brightness(1.12); }

/* Article layout */
.article { max-width: 820px; margin: 0 auto; }
.article-head { margin: 30px 0 30px; }
.article-head h1 {
  font-size: clamp(30px, 5vw, 52px);
  text-align: left;
  margin-bottom: 14px;
}
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; align-items: center; }
.article-body h2 { font-size: 26px; margin: 40px 0 14px; color: #fff; }
.article-body h3 { font-size: 20px; margin: 26px 0 10px; color: var(--accent-2); }
.article-body p { color: #d9cdd0; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: #d9cdd0; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent-2); }
.callout {
  padding: 16px 20px; border-radius: 14px;
  background: rgba(214,30,44,0.08);
  border: 1px solid rgba(214,30,44,0.3);
  border-left: 4px solid var(--accent);
  margin: 20px 0; color: #e7d5d8;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.big-btn {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.big-btn:hover { filter: brightness(1.12); transform: scale(1.02); }
.big-btn.ghost { background: transparent; border: 1px solid var(--panel-border); color: var(--text); }
.big-btn.questlog { background: linear-gradient(120deg, #6a4bd6, #9146ff); }

/* Interactive build viewer */
.build-viewer { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 24px 0; }
.bv-section {
  padding: 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-border); backdrop-filter: blur(12px);
}
.bv-section h4 { color: var(--accent-2); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.skill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border);
  font-size: 14px; cursor: default; transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.skill-chip .k { color: var(--accent-2); font-weight: 800; font-family: monospace; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-box { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); }
.stat-box .sv { font-size: 20px; font-weight: 800; color: #fff; }
.stat-box .sl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  margin-top: 90px;
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
}
footer .big {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes floatIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.6; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; }
  .step .num-badge { width: 64px; height: 64px; font-size: 26px; }
  .site-nav { justify-content: center; }
}

/* ---------- PRINT / SAVE-AS-PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  #bg-canvas, .site-nav, .platform-tabs { display: none !important; }
  html, body { background: #ffffff !important; color: #14121c !important; }
  .content { max-width: 100%; padding: 0; }
  .badge, .pill-stat, .step, .tip, .flow .node, .tag-tool, .tag-format {
    background: #f4f2fa !important;
    border: 1px solid #d8d2ea !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    color: #14121c !important;
  }
  .step { opacity: 1 !important; transform: none !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: 14px; }
  h1, .logo-name, .section-head h2 { -webkit-text-fill-color: #2a1650 !important; color: #2a1650 !important; background: none !important; }
  .hero { min-height: auto; padding: 10px 0 24px; }
  .scroll-hint, .logo-spiral { animation: none !important; }
  .section-head { margin: 34px 0 20px; }
  .num-badge { background: #2a1650 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  p, li, .step-body p, .tip p, .pill-stat .lbl { color: #3a3550 !important; }
  .muted, .section-head p { color: #55506b !important; }
  footer { border-top: 1px solid #d8d2ea; }
  footer .big { color: #2a1650 !important; }
}
