/* Megastore: Tidy Up Together - Official Grade Game-Native Wiki Stylesheet */
/* 100% Flat CSS - Reverse Engineered Supermarket Retail UI System */

:root {
  /* Retail Navy Store Atmosphere */
  --color-bg: #0a1325;
  --color-bg-alt: #070e1c;
  --color-surface: #111e38;
  --color-surface-soft: #162544;
  --color-surface-hover: #1e3258;
  --color-surface-light: #f8fafc;
  
  /* Authentic Supermarket Accents */
  --color-dept-orange: #ff6b00;
  --color-dept-orange-dark: #ea580c;
  --color-brand: #0d9488;
  --color-brand-light: #14b8a6;
  --color-brand-dark: #0f766e;
  --color-aisle-yellow: #facc15;
  --color-aisle-yellow-dark: #eab308;
  --color-snap-green: #22c55e;
  --color-snap-green-glow: rgba(34, 197, 94, 0.4);
  --color-shelf-blue: #1d4ed8;
  --color-price-red: #dc2626;
  
  /* Text and Contrast */
  --color-text-main: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-dark: #0f172a;
  
  /* Borders and Grids */
  --color-border: #233554;
  --color-border-focus: #0d9488;
  --color-border-bright: #3b82f6;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-display: "Arial Black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-shelf: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-sign: 0 10px 25px -3px rgba(255, 107, 0, 0.35);
  --shadow-snap: 0 0 20px rgba(34, 197, 94, 0.45);
  --shadow-teal: 0 8px 24px rgba(13, 148, 136, 0.3);
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #0a1325;
  background-image: 
    radial-gradient(ellipse at 50% 0%, #162544 0%, #0a1325 75%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-light);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: #5eead4;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. In-Game Top HUD Bar (Screenshot 1 and Screenshot 6 Replica)
   ========================================================================== */
.hud-ticker-bar {
  background: #060b17;
  border-bottom: 2px solid #1e3258;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
  position: relative;
  z-index: 101;
}

.hud-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hud-metrics-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f1c33;
  border: 1px solid #233554;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hud-pill-icon {
  color: var(--color-aisle-yellow);
  font-size: 0.95rem;
}

.hud-pill-value {
  color: var(--color-snap-green);
  font-family: var(--font-mono);
}

.hud-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-snap-green);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-snap-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-snap-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   2. Sticky Site Header and Royal Blue Shelf Strip
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 19, 37, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--color-shelf-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-dept-orange) 0%, var(--color-dept-orange-dark) 100%);
  border: 2px solid #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: #162544;
  border-color: #233554;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  background: #162544;
  border: 1px solid #233554;
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-toggle:hover {
  background: #1e3258;
  color: var(--color-aisle-yellow);
}

/* Mega Dropdown */
.nav-item {
  position: relative;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  background: #0f1c33;
  border: 2px solid #233554;
  border-top: 3px solid var(--color-dept-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-shelf);
  padding: 16px;
  display: none;
  z-index: 110;
}

.nav-item:hover .mega-dropdown {
  display: block;
}

.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mega-dropdown-card {
  background: #162544;
  border: 1px solid #233554;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: block;
}

.mega-dropdown-card:hover {
  background: #1e3258;
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.mega-dropdown-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-dropdown-card p {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ==========================================================================
   3. Hero Section with Key Art and Aisle Department Metric Plates
   ========================================================================== */
.hero-section {
  padding: 40px 0 32px;
  position: relative;
  border-bottom: 1px solid #1e3258;
}

.hero-hanging-bracket {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.overhead-sign-pill {
  background: linear-gradient(180deg, var(--color-dept-orange) 0%, var(--color-dept-orange-dark) 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sign);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-main-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--color-aisle-yellow);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 600px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #162544;
  border: 1px solid #233554;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-tag-badge.badge-teal {
  border-color: var(--color-brand);
  color: #5eead4;
}

.hero-tag-badge.badge-yellow {
  border-color: var(--color-aisle-yellow);
  color: var(--color-aisle-yellow);
}

/* Key Art Container with Glowing Green Snap Border */
.hero-art-card {
  position: relative;
  background: #0f1c33;
  border: 3px solid var(--color-snap-green);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-snap), var(--shadow-shelf);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.6), var(--shadow-shelf);
}

.hero-art-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}

.hero-art-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 19, 37, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-snap-green);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-snap-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 4 Aisle Department Metric Plates */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-card {
  background: #111e38;
  border: 1px solid #233554;
  border-top: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.hero-card:hover {
  background: #162544;
  border-color: var(--color-brand-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-shelf);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Yellow Square Aisle Plate */
.aisle-plate-sm {
  width: 34px;
  height: 34px;
  background: var(--color-aisle-yellow);
  color: #000000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hero-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.hero-card-desc {
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.hero-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-aisle-yellow);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-card-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   4. In-Game Ability Hotbar Dock Widget
   ========================================================================== */
.hotbar-dock-container {
  background: #091122;
  border: 1px solid #1e3258;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hotbar-dock-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hotbar-dock-slots {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hotbar-slot {
  position: relative;
  width: 62px;
  height: 62px;
  background: #111e38;
  border: 2px solid #233554;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hotbar-slot:hover {
  border-color: var(--color-snap-green);
  box-shadow: 0 0 12px var(--color-snap-green-glow);
  transform: translateY(-2px);
}

.hotbar-keycap {
  position: absolute;
  top: 3px;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  background: #1e3258;
  color: #f8fafc;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1;
}

.hotbar-icon {
  font-size: 1.35rem;
  margin-top: 6px;
}

.hotbar-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  line-height: 1;
  margin-top: 2px;
}

/* ==========================================================================
   5. Main Content Layout and Sticky Table of Contents
   ========================================================================== */
.content-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 60px;
}

.sidebar-toc {
  position: sticky;
  top: 85px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #111e38;
  border: 1px solid #233554;
  border-top: 3px solid var(--color-shelf-blue);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-shelf);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e3258;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item {
  margin: 0;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.toc-link:hover {
  background: #162544;
  color: var(--color-aisle-yellow);
  padding-left: 14px;
}

.toc-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-aisle-yellow);
  background: #091122;
  border: 1px solid #233554;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* ==========================================================================
   6. Checkout Register Direct Answer Card (Screenshot 3 and 7 Replica)
   ========================================================================== */
.direct-answer-card {
  background: #111e38;
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-teal), var(--shadow-shelf);
}

.checkout-counter-header {
  background: linear-gradient(90deg, #0d9488 0%, #0f766e 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #14b8a6;
}

.checkout-counter-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gold-star-badge {
  width: 36px;
  height: 36px;
  background: var(--color-aisle-yellow);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
  flex-shrink: 0;
}

.checkout-counter-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.checkout-sub-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.direct-answer-content {
  padding: 24px;
}

.direct-answer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.direct-answer-text {
  font-size: 0.96rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.direct-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Authentic Barcode Price Tag Cards (Screenshot 5 Replica) */
.barcode-price-tag {
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.barcode-price-tag:hover {
  transform: translateY(-3px);
  border-color: var(--color-aisle-yellow);
}

.tag-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
}

.tag-sku-box {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.tag-price-badge {
  background: var(--color-price-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
}

.tag-sale-pill {
  background: var(--color-dept-orange);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.direct-answer-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.direct-answer-step-desc {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.barcode-graphic {
  height: 22px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a,
    #0f172a 2px,
    transparent 2px,
    transparent 4px,
    #0f172a 4px,
    #0f172a 7px,
    transparent 7px,
    transparent 9px
  );
  border-radius: 2px;
  opacity: 0.85;
}

/* ==========================================================================
   7. Staff Breakroom Notice Ad Container (ad-surface)
   ========================================================================== */
.ad-surface {
  background: #0e182c;
  border: 2px solid #233554;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-shelf);
  position: relative;
  overflow: hidden;
}

.ad-hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-aisle-yellow),
    var(--color-aisle-yellow) 12px,
    #0f172a 12px,
    #0f172a 24px
  );
  border-radius: 2px;
  margin-bottom: 12px;
}

.ad-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-slot {
  min-height: 90px;
  background: #091122;
  border: 1px dashed #233554;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 12px;
}

/* ==========================================================================
   8. Suspended Department Section Headers (H2) and Guide Sections
   ========================================================================== */
.guide-section {
  background: #111e38;
  border: 1px solid #233554;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-shelf);
  position: relative;
}

/* Suspended Retail Signboard Header */
.dept-signboard-wrapper {
  margin-bottom: 20px;
}

.signboard-chains {
  display: flex;
  justify-content: space-between;
  width: 140px;
  margin-left: 24px;
  margin-bottom: -2px;
}

.chain-link {
  width: 6px;
  height: 12px;
  background: #64748b;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dept-signboard {
  background: linear-gradient(180deg, var(--color-dept-orange) 0%, var(--color-dept-orange-dark) 100%);
  border: 3px solid #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sign);
}

.aisle-plate-lg {
  width: 44px;
  height: 44px;
  background: var(--color-aisle-yellow);
  color: #000000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.section-lead {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.guide-box {
  background: #162544;
  border: 1px solid #233554;
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: all 0.15s ease;
}

.guide-box:hover {
  background: #1e3258;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.guide-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-box p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ==========================================================================
   9. Embedded In-Game Screenshot Callouts with Wireframe Glow
   ========================================================================== */
.screenshot-callout-card {
  background: #0f1c33;
  border: 2px solid #233554;
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow-shelf);
}

.screenshot-container-glow {
  position: relative;
  border: 2px solid var(--color-snap-green);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-snap);
}

.screenshot-container-glow img {
  width: 100%;
  height: auto;
  display: block;
}

.hud-callout-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 19, 37, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-snap-green);
  color: var(--color-snap-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 6px;
}

.screenshot-caption-box {
  padding: 10px 4px 2px;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot-caption-box strong {
  color: var(--color-aisle-yellow);
}

/* ==========================================================================
   10. Interactive Screenshot Showcase Matrix (gallery-grid)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.gallery-card {
  background: #0f1c33;
  border: 1px solid #233554;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: var(--color-snap-green);
  box-shadow: var(--shadow-snap);
  transform: translateY(-3px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-caption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.35;
  border-top: 1px solid #1e3258;
  background: #111e38;
  flex-grow: 1;
}

/* ==========================================================================
   11. Data Tables and 1,000+ SKU Item Catalog
   ========================================================================== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid #233554;
  background: #0f1c33;
  margin: 16px 0;
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.wiki-table th {
  background: #162544;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-shelf-blue);
  white-space: nowrap;
}

.wiki-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e3258;
  color: #cbd5e1;
}

.wiki-table tbody tr {
  transition: background 0.15s ease;
}

.wiki-table tbody tr:hover {
  background: #162544;
}

.filter-search-container {
  margin-bottom: 16px;
}

.filter-input {
  width: 100%;
  background: #091122;
  border: 2px solid #233554;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 12px var(--shadow-teal);
}

.sku-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-toy { background: #831843; color: #fbcfe8; }
.tag-fresh { background: #064e3b; color: #a7f3d0; }
.tag-dry { background: #78350f; color: #fde68a; }
.tag-freeze { background: #1e3a8a; color: #bfdbfe; }
.tag-elec { background: #312e81; color: #c7d2fe; }
.tag-home { background: #134e4a; color: #99f6e4; }

/* ==========================================================================
   12. FAQ Accordion (<details> and <summary>)
   ========================================================================== */
.faq-item {
  background: #162544;
  border: 1px solid #233554;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: #3b82f6;
}

.faq-item[open] {
  border-color: var(--color-brand);
}

.faq-item summary {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-aisle-yellow);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "-";
  color: var(--color-snap-green);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  border-top: 1px solid #1e3258;
}

/* ==========================================================================
   13. Site Footer
   ========================================================================== */
.site-footer {
  background: #060b17;
  border-top: 3px solid var(--color-shelf-blue);
  color: #94a3b8;
  padding: 40px 0 28px;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.disclaimer-box {
  max-width: 760px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

/* ==========================================================================
   14. Mobile Responsiveness (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar-toc {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #0f1c33;
    flex-direction: column;
    padding: 16px;
    border-bottom: 2px solid var(--color-brand);
    box-shadow: var(--shadow-shelf);
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .mega-dropdown {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0;
    display: block;
    background: transparent;
  }
  
  /* EXPLICIT TOUCH HOVER RESET: PREVENT HORIZONTAL CUTOFF */
  .nav-item:hover .mega-dropdown {
    transform: none;
  }
  
  .nav-item:hover {
    transform: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hud-ticker-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .direct-answer-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-section {
    padding: 20px 16px;
  }
  
  .hotbar-dock-container {
    justify-content: center;
  }
}
