/* === styles/main.css === */
/* ===== CSS Design Tokens ===== */
:root {
  --color-bg-deep: #0B061A;
  --color-bg-mid: #12071F;
  --color-bg-card: rgba(255,255,255,0.04);
  --color-bg-card-hover: rgba(255,255,255,0.07);
  --color-border: rgba(255,255,255,0.10);
  --color-border-hover: rgba(255,255,255,0.20);
  --color-text-primary: #F0EEFF;
  --color-text-secondary: #B8B5D0;
  --color-text-muted: #8B88A3;
  --color-neon-magenta: #FF6BE5;
  --color-neon-cyan: #00D4F0;
  --color-disco-yellow: #FFE84D;
  --color-hot-pink: #FF6B9E;
  --color-lime: #A7FF2E;
  --color-danger: #FF3366;
  --color-success: #2ECC71;
  --color-glow-magenta: rgba(232,40,199,0.25);
  --color-glow-cyan: rgba(0,212,240,0.25);
  --color-glow-yellow: rgba(255,232,77,0.20);
  --font-display: 'Orbitron', 'Rajdhani', 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', 'Rubik', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg-deep);
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, var(--color-glow-magenta) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, var(--color-glow-cyan) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, var(--color-glow-yellow) 0%, transparent 40%);
}
a { color: var(--color-neon-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-neon-magenta); }
a:focus-visible { outline: 2px solid var(--color-neon-cyan); outline-offset: 2px; border-radius: var(--radius-sm); }
img { max-width: 100%; height: auto; display: block; }
button, .btn, .nav-toggle, .nav-links a, .checklist-item, .faq-q, .bpm-calc-btn, [role=button] { touch-action: manipulation; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
:focus-visible { outline: 2px solid var(--color-neon-cyan); outline-offset: 2px; }

.skip-link { position: absolute; top: -100px; left: var(--space-md); z-index: 1000; background: var(--color-neon-magenta); color: #1A0618; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: var(--space-md); }

.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(11,6,26,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); padding: var(--space-sm) 0; transition: box-shadow .3s; }
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(232,40,199,0.15); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); }
.nav-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--color-text-primary); display: flex; align-items: center; gap: var(--space-xs); }
.nav-logo .disco-icon { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(var(--color-neon-magenta), var(--color-disco-yellow), var(--color-neon-cyan), var(--color-hot-pink), var(--color-neon-magenta)); flex-shrink: 0; }
.nav-links { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.nav-links a { font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--color-text-secondary); transition: background .2s, color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible { background: var(--color-bg-card-hover); color: var(--color-text-primary); }

/* ===== Hamburger Menu Button ===== */
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-primary); padding: 8px 12px; min-width: 44px; min-height: 44px; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--color-neon-magenta); background: var(--color-bg-card-hover); }

.page-header { padding: var(--space-3xl) 0 var(--space-xl); text-align: center; position: relative; z-index: 1; }
.page-header h1 { background: linear-gradient(135deg, var(--color-neon-magenta), var(--color-disco-yellow), var(--color-neon-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; max-width: 900px; margin: 0 auto var(--space-md); }
.page-header p { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 680px; margin: 0 auto; line-height: 1.65; }

.section { padding: var(--space-2xl) 0; position: relative; z-index: 1; }
.section:nth-child(even) { background: rgba(18,7,31,0.5); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-header h2 { background: linear-gradient(135deg, var(--color-neon-magenta), var(--color-neon-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-header p { color: var(--color-text-secondary); margin-top: var(--space-sm); max-width: 680px; margin-left: auto; margin-right: auto; }

.card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: border-color .3s, box-shadow .3s, background .3s; min-width: 0; }
.card:hover { border-color: var(--color-border-hover); background: var(--color-bg-card-hover); }
.card-glow-magenta:hover { box-shadow: 0 0 30px var(--color-glow-magenta); }
.card-glow-cyan:hover { box-shadow: 0 0 30px var(--color-glow-cyan); }
.card-glow-yellow:hover { box-shadow: 0 0 30px var(--color-glow-yellow); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-lg); }

.btn { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; padding: 14px 28px; border-radius: var(--radius-md); border: 2px solid transparent; transition: all .25s; text-align: center; display: inline-flex; align-items: center; gap: var(--space-sm); }
.btn-primary { background: linear-gradient(135deg, #C018A0, #8C0060); color: #fff; border-color: transparent; }
.btn-primary:hover { box-shadow: 0 0 30px var(--color-glow-magenta); transform: translateY(-2px); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-neon-cyan); border-color: var(--color-neon-cyan); }
.btn-secondary:hover { background: var(--color-neon-cyan); color: var(--color-bg-deep); }
.btn-tertiary { background: transparent; color: var(--color-disco-yellow); border-color: var(--color-disco-yellow); }
.btn-tertiary:hover { background: var(--color-disco-yellow); color: var(--color-bg-deep); }

.checklist { display: flex; flex-direction: column; gap: var(--space-sm); }
.checklist-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all .2s; }
.checklist-item:hover { border-color: var(--color-lime); }
.checklist-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--color-lime); cursor: pointer; }
.checklist-item input[type=checkbox]:checked + span { text-decoration: line-through; color: var(--color-text-muted); }
.checklist-item .item-name { flex: 1; font-size: 0.92rem; }
.item-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.tag-magenta { background: rgba(232,40,199,0.2); color: var(--color-neon-magenta); }
.tag-cyan { background: rgba(0,212,240,0.2); color: var(--color-neon-cyan); }
.tag-yellow { background: rgba(255,232,77,0.2); color: var(--color-disco-yellow); }
.tag-pink { background: rgba(255,20,120,0.2); color: var(--color-hot-pink); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; overflow-x: auto; display: block; }
.data-table thead { background: rgba(255,255,255,0.06); }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table th { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }
.data-table td { color: var(--color-text-primary); }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table tbody tr:hover { background: var(--color-bg-card-hover); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-card); }
.faq-q { width: 100%; padding: var(--space-md); background: none; border: none; color: var(--color-text-primary); font-size: 1rem; font-weight: 600; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background .2s; }
.faq-q:hover { background: var(--color-bg-card-hover); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--color-neon-magenta); font-weight: 300; transition: transform .3s; }
.faq-item.open .faq-q::after { content: '\2212'; transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; font-size: 0.92rem; color: var(--color-text-secondary); line-height: 1.7; }
.faq-item.open .faq-a { max-height: none; padding: 0 var(--space-md) var(--space-md); }

.trend-bar { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 0.82rem; padding: var(--space-md); background: var(--color-bg-card); border-radius: var(--radius-md); }
.trend-pill { padding: 6px 16px; border-radius: 20px; font-weight: 600; border: 1px solid var(--color-border); white-space: nowrap; color: var(--color-text-secondary); display: inline-block; }
.trend-pill.hot { border-color: var(--color-hot-pink); color: var(--color-hot-pink); }
.trend-pill.verified { border-color: var(--color-lime); color: var(--color-lime); }
.trend-pill.new { border-color: var(--color-neon-cyan); color: var(--color-neon-cyan); }

.breadcrumb { font-size: 0.82rem; color: var(--color-text-muted); padding: var(--space-md) 0; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-neon-magenta); }
.breadcrumb span { color: var(--color-text-secondary); }

.section-divider { height: 4px; position: relative; z-index: 1; background: linear-gradient(90deg, transparent, var(--color-neon-magenta), var(--color-neon-cyan), var(--color-disco-yellow), transparent); }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--color-border); padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-2xl); }
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.footer-col h4 { color: var(--color-text-primary); font-size: 0.9rem; margin-bottom: var(--space-sm); }
.footer-col a { font-size: 0.82rem; color: var(--color-text-muted); display: block; margin-bottom: var(--space-xs); }
.footer-col a:hover { color: var(--color-neon-magenta); }
.footer-disclaimer { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; padding-top: var(--space-lg); margin-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.footer-updated { font-size: 0.72rem; color: var(--color-text-muted); text-align: center; margin-top: var(--space-xs); }

.bpm-mini-tool { max-width: 640px; margin: 0 auto; background: var(--color-bg-card); border: 1px solid var(--color-neon-magenta); border-radius: var(--radius-xl); padding: var(--space-lg); box-shadow: 0 0 40px var(--color-glow-magenta); }
.bpm-mini-tool h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-neon-magenta); margin-bottom: var(--space-md); text-align: center; }
.bpm-form { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-md); }
.bpm-form input, .bpm-form select { background: rgba(255,255,255,0.08); border: 1px solid var(--color-border); color: var(--color-text-primary); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 1rem; min-width: 120px; min-height: 44px; }
.bpm-form input { font-family: var(--font-mono); }
.bpm-form input[type=number]::-webkit-outer-spin-button,
.bpm-form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bpm-form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.bpm-form input:focus, .bpm-form select:focus { outline: none; border-color: var(--color-neon-cyan); box-shadow: 0 0 10px var(--color-glow-cyan); }
.bpm-form input::placeholder { color: var(--color-text-muted); }
.bpm-form select { font-family: var(--font-body); }
.bpm-calc-btn { background: linear-gradient(135deg, #C018A0, #CC0066); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem; min-height: 44px; transition: box-shadow .2s; white-space: nowrap; }
.bpm-calc-btn:hover { box-shadow: 0 0 20px var(--color-glow-magenta); }
.bpm-result { display: none; background: rgba(0,212,240,0.08); border: 1px solid var(--color-neon-cyan); border-radius: var(--radius-md); padding: var(--space-md); margin-top: var(--space-md); }
.bpm-result.visible { display: block; }
.bpm-result-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.bpm-result-row:last-child { border-bottom: none; }
.bpm-result-label { color: var(--color-text-secondary); font-size: 0.88rem; }
.bpm-result-value { font-family: var(--font-mono); color: var(--color-neon-cyan); font-weight: 600; font-size: 1.05rem; }

.hero-badge { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-disco-yellow); border: 1px solid var(--color-disco-yellow); padding: 4px 14px; border-radius: 20px; margin-bottom: var(--space-md); opacity: 0.9; }

/* ===== Reading Progress Bar ===== */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--color-neon-magenta), var(--color-neon-cyan)); z-index: 101; transition: width 0.15s linear; }

/* ===== Scroll-to-Top Button ===== */
#scroll-top-btn { position: fixed; bottom: 24px; right: 24px; z-index: 99; width: 44px; height: 44px; border-radius: 50%; background: var(--color-neon-magenta); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s; display: flex; align-items: center; justify-content: center; }
#scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top-btn:hover { box-shadow: 0 0 20px var(--color-glow-magenta); transform: translateY(-2px); }
#scroll-top-btn:focus-visible { outline: 2px solid var(--color-neon-cyan); outline-offset: 2px; }

/* ===== Related Pages Section ===== */
.related-pages { padding: var(--space-xl) 0; background: var(--color-bg-card); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin-top: var(--space-2xl); }
.related-pages h2 { text-align: center; font-size: 1.3rem; color: var(--color-text-secondary); margin-bottom: var(--space-lg); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }

/* ===== Site Search Results ===== */
.search-results { max-width: 640px; margin: 0 auto var(--space-lg); padding: var(--space-md); text-align: left; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.search-results[hidden] { display: none; }
.search-results-title { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: var(--space-sm); }
.search-results-list { display: grid; gap: var(--space-xs); }
.search-result { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.search-result:hover, .search-result:focus-visible { background: var(--color-bg-card-hover); border-color: var(--color-border); }
.search-result-title { font-weight: 700; color: var(--color-neon-cyan); }
.search-result-desc { font-size: 0.82rem; color: var(--color-text-muted); }
.search-result:hover .search-result-title, .search-result:focus-visible .search-result-title { color: var(--color-neon-magenta); }

@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 10px var(--color-glow-magenta); } 50% { box-shadow: 0 0 25px var(--color-glow-magenta), 0 0 50px var(--color-glow-cyan); } }
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::

before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .pulse-glow { animation: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .data-table { -webkit-overflow-scrolling: touch; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: var(--space-xl) 0; }
  .page-header { padding: var(--space-xl) 0 var(--space-lg); }
  .page-header h1 { font-size: 1.6rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-top: var(--space-sm); gap: var(--space-xs); }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bpm-form { flex-direction: column; align-items: center; }
  .bpm-form input, .bpm-form select { width: 100%; max-width: 280px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-col { min-width: 140px; }
}

/* Print-friendly styles */
@media print {
  body::before, .site-nav, #reading-progress, #scroll-top-btn, .section-divider,
  .hero-badge, .related-pages, .site-footer, nav { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; line-height: 1.6; }
  a { color: #0066cc !important; text-decoration: underline; }
  h1, h2, h3 { color: #000 !important; -webkit-text-fill-color: unset !important; background: none !important; }
  .container { max-width: 100%; padding: 0; }
  .section { padding: 12pt 0; break-inside: avoid; }
}


/* === inline:/:0 === */
/* ===== Hero Section (index-specific) ===== */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center; position: relative; z-index: 1;
}
.hero h1 {
  background: linear-gradient(135deg, var(--color-neon-magenta), var(--color-disco-yellow), var(--color-neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 900px; margin: 0 auto var(--space-md);
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--color-text-secondary); max-width: 680px;
  margin: 0 auto var(--space-xl); line-height: 1.65;
}
.hero-cta {
  display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-md);
}
.hero-links {
  display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: var(--space-xl);
}
.hero-links a { color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.hero-links a:hover, .hero-links a:focus-visible { color: var(--color-neon-magenta); }
.hero .bpm-mini-tool { margin-bottom: var(--space-xl); }

/* ===== I Want To Navigation (index-specific) ===== */
.want-to-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md);
}
.want-to-card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-lg); cursor: pointer;
  transition: all .25s; display: flex; align-items: center; gap: var(--space-md);
}
.want-to-card:hover {
  border-color: var(--color-neon-magenta); background: var(--color-bg-card-hover); transform: translateX(4px);
}
.want-to-card .icon { font-size: 1.8rem; flex-shrink: 0; width: 48px; text-align: center; }
.want-to-card .label p:first-child { font-weight: 700; color: var(--color-text-primary); }
.want-to-card .label p:last-child { font-size: 0.8rem; color: var(--color-text-muted); }

/* ===== Search Box (index-specific) ===== */
.search-box {
  display: flex; gap: var(--space-sm); max-width: 520px; margin: 0 auto;
}
.search-box input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid var(--color-border);
  color: var(--color-text-primary); padding: 12px 18px; border-radius: var(--radius-md);
  font-size: 0.95rem; min-height: 44px;
}
.search-box input:focus {
  outline: none; border-color: var(--color-neon-cyan); box-shadow: 0 0 12px var(--color-glow-cyan);
}
.search-box input::placeholder { color: var(--color-text-muted); }
.search-box button {
  background: var(--color-neon-magenta); color: #1A0618; border: none;
  padding: 12px 22px; border-radius: var(--radius-md); font-weight: 700;
  min-height: 44px; transition: box-shadow .2s;
}
.search-box button:hover { box-shadow: 0 0 20px var(--color-glow-magenta); }

/* ===== Responsive (index-specific overrides) ===== */
@media (max-width: 768px) {
  .hero { padding: var(--space-md) 0 var(--space-lg); }
  .hero h1 { font-size: 1.45rem; margin-bottom: var(--space-sm); }
  .hero-subtitle { font-size: 0.98rem; line-height: 1.5; margin-bottom: var(--space-md); }
  .hero .bpm-mini-tool { margin-bottom: var(--space-md); padding: var(--space-md); }
  .hero .bpm-mini-tool h3 { margin-bottom: var(--space-sm); }
  .hero-cta { flex-direction: column; align-items: center; margin-bottom: var(--space-sm); }
  .hero-links { margin-bottom: 0; font-size: 0.82rem; gap: 6px; }
  /* Keep BPM input + Calculate on one row so the tool fits a 375x667 first screen. */
  .bpm-form { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: var(--space-sm); align-items: stretch; }
  .bpm-form input, .bpm-form select { width: 100%; max-width: none; min-width: 0; min-height: 44px; }
  .bpm-form #bpmInput { grid-area: 1 / 1; }
  .bpm-form #bpmCalcBtn { grid-area: 1 / 2; }
  .bpm-form #bpmMode { grid-area: 2 / 1; }
  .bpm-form #offsetInput { grid-area: 2 / 2; }
  .bpm-calc-btn { min-height: 44px; padding: 10px 16px; }
}

/* === inline:/tools/bpm-calculator:0 === */
#bpmForm { align-items: end; }
#bpmForm label { display: flex; flex: 1 1 180px; flex-direction: column; gap: var(--space-xs); min-width: 0; color: var(--color-text-secondary); }
#bpmForm input, #bpmForm select { width: 100%; max-width: none; min-width: 0; }
#bpmForm button, [data-bpm-preset], #bpmCopyBtn { min-height: 44px; }
#bpmForm button:focus-visible, [data-bpm-preset]:focus-visible, #bpmCopyBtn:focus-visible { outline: 2px solid var(--color-neon-cyan); outline-offset: 3px; }
[data-bpm-preset] { cursor: pointer; font: inherit; }
#bpmCopyBtn:disabled { opacity: 0.5; cursor: default; }
#bpmCopyText { width: 100%; padding: var(--space-sm); background: var(--color-bg-card); color: var(--color-text-primary); border: 1px solid var(--color-border); }
#bpmResult .bpm-result-row { flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); }
#bpmResult .bpm-result-value { overflow-wrap: anywhere; }
@media (max-width: 768px) { #bpmForm { align-items: stretch; } #bpmForm label { flex: 0 1 auto; width: 100%; } }

/* === inline:/collectibles:0 === */
.progress-bar-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .progress-bar-label {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-size: 0.9rem;
    color: var(--color-text-secondary); margin-bottom: var(--space-sm);
  }
  .progress-bar-label strong {
    color: var(--color-neon-cyan); font-family: var(--font-mono); font-size: 1.1rem;
  }
  .progress-bar-track {
    width: 100%; height: 12px;
    background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-neon-magenta), var(--color-neon-cyan));
    border-radius: 6px; transition: width 0.4s ease; width: 0%;
  }
  .collectible-section-header {
    display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md);
  }
  .collectible-section-header h2 { margin: 0; }
  .collectible-section-header .section-count {
    font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text-muted);
  }

/* === inline:/collectibles/story-progression-items:0 === */
.progress-bar-wrapper {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-lg);
  }
  .progress-bar-label {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-size: 0.9rem;
    color: var(--color-text-secondary); margin-bottom: var(--space-sm);
  }
  .progress-bar-label strong {
    color: var(--color-lime); font-family: var(--font-mono); font-size: 1.1rem;
  }
  .progress-bar-track {
    width: 100%; height: 12px;
    background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-lime), var(--color-neon-cyan));
    border-radius: 6px; transition: width 0.4s ease; width: 0%;
  }
  .pocket-reactor-card {
    background: var(--color-bg-card); border: 2px solid var(--color-hot-pink);
    border-radius: var(--radius-lg); padding: var(--space-lg); position: relative; overflow: hidden;
  }
  .pocket-reactor-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--color-glow-magenta), transparent 60%);
    pointer-events: none;
  }
  .pocket-reactor-card h3 { color: var(--color-hot-pink); position: relative; z-index: 1; }
  .pocket-reactor-card p, .pocket-reactor-card ul { position: relative; z-index: 1; }
  .missable-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 2px 10px; border-radius: 10px;
    background: rgba(255,51,102,0.2); color: var(--color-danger); border: 1px solid var(--color-danger);
  }

/* === inline:/achievements:0 === */
.progress-bar-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .progress-bar-label {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
  }
  .progress-bar-label strong {
    color: var(--color-disco-yellow);
    font-family: var(--font-mono);
    font-size: 1.1rem;
  }
  .progress-bar-track {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-disco-yellow), var(--color-hot-pink));
    border-radius: 6px;
    transition: width 0.4s ease;
    width: 0%;
  }
  .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    text-align: center;
  }
  .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    display: block;
    margin-top: var(--space-xs);
  }
  .difficulty-easy { color: var(--color-lime); }
  .difficulty-medium { color: var(--color-disco-yellow); }
  .difficulty-hard { color: var(--color-neon-magenta); }
  .difficulty-expert { color: var(--color-danger); }