﻿/**
 * UserID10T's Arcade - Main Stylesheet
 * 
 * This file contains all styling for the website including:
 * - Design tokens (colors, spacing, typography)
 * - Global layout and typography
 * - Navigation and header styles
 * - Card components and content containers
 * - Embed panels (Twitch, YouTube)
 * - Shop section styling
 * - Footer and legal page styles
 * - Accessibility utilities (skip-link, sr-only)
 * - Responsive breakpoints
 * 
 * Architecture:
 * The stylesheet is organized from general (global styles) to specific (component styles).
 * CSS variables in :root define a consistent design system. All colors, spacing, and font
 * sizes should use these variables for consistency and maintainability.
 * 
 * Color Palette:
 * - Background: Deep blue-black (#0f1923) for retro arcade feel
 * - Text: Pure white (#f0f0f0) for high contrast and readability
 * - Primary Accent: Vibrant red (#ff4655) for CTAs and emphasis
 * - Secondary: Mint/teal (#00ffbe) for hover states and highlights
 * - Tertiary: Gold (#ffb800) for premium/featured content
 */

/* Import self-hosted fonts */
@import url('fonts.css');

:root {
  --bg: #0f1923;              /* Deep blue-black */
  --fg: #f0f0f0;              /* Pure white */
  --primary: #ff4655;         /* Vibrant red */
  --secondary: #00ffbe;       /* Mint/teal */
  --accent: #ffb800;          /* Gold (for premium/featured) */
  --muted: #b4becb;           /* Muted copy with stronger contrast */
  --card-bg: #1a2332;         /* Subtle blue tint */
  --primary-hero: #ff4f5d;
  --price-tint: #ffe3e6;
  --neutral-border: #8f8f8f;
  --neutral-border-hover: #b2b2b2;
  --legal-max-width: 840px;   /* Legal page content width */
  --content-max-width: min(1260px, 96vw); /* Main site content width */
  
  /* Consistent spacing system */
  --spacing-xs: 0.5rem;       /* 8px - tight spacing */
  --spacing-sm: 1rem;         /* 16px - small gaps */
  --spacing-md: 1.5rem;       /* 24px - medium gaps */
  --spacing-lg: 2rem;         /* 32px - large gaps */
  --spacing-xl: 3rem;         /* 48px - section spacing */
  --content-top-spacing: 1rem;
  --post-breadcrumb-start-gap: var(--content-top-spacing);
  --hero-padding-top: var(--content-top-spacing);
  --hero-padding-bottom: var(--spacing-md);
  --hero-text-gap: var(--spacing-xs);
  --breadcrumb-padding-top: 0.55rem;
  --breadcrumb-padding-bottom: 0.35rem;
  
  /* Section padding (standardized) */
  --section-padding: 3rem 1rem;
  --subsection-padding: 2rem 1rem;
  --container-padding: 1.5rem 1rem;
  
  /* Typography system */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Press Start 2P', 'Courier New', monospace;
  --font-mono: 'Courier New', 'Consolas', monospace;
  
  /* Font sizes */
  --text-xs: 0.75rem;         /* 12px - small labels */
  --text-sm: 0.875rem;        /* 14px - secondary text */
  --text-base: 1rem;          /* 16px - body text */
  --text-lg: 1.125rem;        /* 18px - emphasized text */
  --text-xl: 1.25rem;         /* 20px - card headings */
  --text-eyebrow: clamp(0.68rem, 0.85vw, 0.78rem);
  --text-body-lg: clamp(1.05rem, 1.18vw, 1.16rem);
  --text-section-title: clamp(1.45rem, 2.3vw, 2.05rem);
  --text-card-title: clamp(1.08rem, 1.45vw, 1.34rem);
  --text-page-title: clamp(1.95rem, 3.6vw, 3rem);
  --text-hero-title: clamp(2.6rem, 5vw, 4.4rem);
  --measure-copy: 64ch;
  
  /* Line heights for readability */
  --leading-tight: 1.25;      /* Display text */
  --leading-normal: 1.5;      /* UI elements */
  --leading-relaxed: 1.7;     /* Body text */
  
  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}

/* ========================================
   GLOBAL STYLES
   Layout foundation, typography, links
   ======================================== */

* { box-sizing: border-box; }

/* Global layout and background enforcement */
html {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
  background-color: var(--bg) !important;
}

body { overflow-x: hidden; background-color: var(--bg) !important; }

@supports not (scrollbar-gutter: auto) {
  html { overflow-y: scroll; }
}

:where(body.site-page) {
  width: 100%;
  max-width: none;
  font-family: var(--font-body);
  background: var(--bg);
  background-color: var(--bg) !important;
  color: var(--fg);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* Constrain media and icons to avoid pushing layout wider than viewport */
:where(body.site-page) img,
:where(body.site-page) svg { max-width: 100%; height: auto; display: block; }

:where(body.site-page) a {
  color: var(--primary); 
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ========================================
   HEADER & HERO
   Main page title with arcade styling
   ======================================== */

/* Header */
:where(body.site-page) > header:not(.hero-banner) {
  text-align: center; 
  padding: 0.5rem var(--spacing-sm) 0 var(--spacing-sm);
}

.shop-page > header:not(.hero-banner) {
  padding: 0;
}

.twitch-page > header:not(.hero-banner),
.youtube-page > header:not(.hero-banner) {
  padding: 0;
}

.main-title {
  font-family: var(--font-display);
  font-size: var(--text-hero-title);
  line-height: 1.05;
  letter-spacing: 0.035em;
  color: var(--primary-hero);
  -webkit-text-stroke: 1px #000000;
  text-shadow: 0 0 10px rgba(255, 79, 93, 0.88), 0 0 24px rgba(255, 79, 93, 0.45);
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.home-title {
  padding: 0.5rem 0;
  margin: 0.25rem 0 0.5rem 0;
}

.home-header-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 0.5rem;
}

.home-marquee {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}


.subtitle {
  font-family: var(--font-body);
  color: rgba(234, 240, 247, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  max-width: 58ch;
  margin: var(--spacing-xs) auto 0;
}

.home-page .subtitle {
  color: rgba(250, 243, 244, 0.9);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  font-weight: 500;
  max-width: 46ch;
}

.shop-page .main-title,
.product-page .main-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4.5vw, 3.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--primary);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 18px rgba(255, 70, 85, 0.2);
}

.twitch-page .main-title,
.youtube-page .main-title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 24px rgba(255, 70, 85, 0.22);
}

.about-page .main-title,
.projects-page .main-title,
.extensions-page .main-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--primary);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* ========================================
   NAVIGATION
   Primary navigation bar with sticky positioning
   Social media links with platform colors
   ======================================== */

.main-nav {
  background: var(--bg);
  padding: 0.75rem var(--spacing-sm);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "brand links right"
    "social social social";
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: var(--spacing-sm);
}

.nav-brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  width: 44px;
  height: auto;
  display: block;
}

.nav-logo-mobile {
  display: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(240, 240, 240, 0.95);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav.is-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.main-nav.is-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.main-nav.is-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-links {
  grid-area: links;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: var(--leading-normal);
  transition: all 0.2s;
  color: rgba(240, 240, 240, 0.78);
  --nav-active-underline-inset: 0;
  padding-bottom: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.nav-links a + a {
  padding-left: 0.9rem;
  --nav-active-underline-inset: 0.9rem;
}

.nav-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.95em;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.18)
  );
}

.nav-links a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(0, 255, 190, 0.22);
}

.nav-links a:focus-visible {
  color: #fff;
  outline: 2px solid rgba(255, 214, 218, 0.95);
  outline-offset: 2px;
  border-radius: 6px;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.28);
}

.nav-links a.active {
  color: #fff4d1;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.3);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: var(--nav-active-underline-inset);
  right: 0;
  bottom: -0.2rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.95), rgba(255, 184, 0, 0.98));
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.35);
}

.nav-social-row {
  grid-area: social;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: 0.2rem;
}

.nav-right {
  grid-area: right;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
}

.nav-social a {
  font-size: 1.4rem;
  transition: all 0.3s;
  display: inline-block;
}

.nav-social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.nav-social a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
  border-radius: 8px;
}

.nav-social .fa-twitch { color: #9146ff; }
.nav-social .fa-youtube { color: #ff0000; }
.nav-social .fa-x-twitter { color: #ffffff; }
.nav-social .fa-tiktok { color: #25f4ee; }
.nav-social .fa-facebook-f { color: #1877f2; }
.nav-social .fa-instagram { color: #e1306c; }

.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.07);
  color: rgba(238, 242, 248, 0.92);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cart-btn:hover {
  background: rgba(255, 70, 85, 0.16);
  border-color: rgba(255, 70, 85, 0.7);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.2);
}

.nav-cart-btn[aria-expanded="true"] {
  background: rgba(255, 70, 85, 0.22);
  border-color: rgba(255, 70, 85, 0.82);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.26);
}

.nav-cart-btn:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.nav-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ff4655;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(10, 14, 26, 0.85);
  pointer-events: none;
}

/* Legacy social-links-top class - kept for backwards compatibility */
.social-links-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.social-links-top a {
  font-size: 1.6rem;
  color: var(--primary);
  transition: all 0.3s;
  display: inline-block;
}

.social-links-top a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

.section-divider { 
  width: 100%; 
  height: 1px; 
  background: rgba(255,255,255,0.1); 
  margin: 0;
}

/* ========================================
   CARDS & CONTENT CONTAINERS
   Main content grid, card styling, hover effects
   ======================================== */

.embed-panel {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--post-breadcrumb-start-gap) 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--embed-content-stack-gap, var(--spacing-lg));
}

.twitch-page .embed-panel,
.youtube-page .embed-panel {
  padding-top: var(--post-breadcrumb-start-gap);
  --embed-content-stack-gap: var(--spacing-lg);
}

.embed-panel > * {
  margin: 0;
}

.embed-panel h2 {
  font-family: var(--font-body);
  font-size: var(--text-section-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-align: center;
  margin: 0 0 var(--spacing-sm) 0;
}

.embed-panel h3 {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--primary);
  text-align: center;
  margin: 0 0 var(--spacing-sm) 0;
}

.embed-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #000;
}

.embed-panel .placeholder-message {
  padding: var(--spacing-lg);
  text-align: center;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  color: var(--muted);
}

.embed-panel .placeholder-message a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.embed-panel .placeholder-message a:hover {
  color: var(--secondary);
}

.cards-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  padding: calc(var(--content-top-spacing) + 2rem) 1rem 3rem 1rem;
  overflow: visible;
}

.projects-page .projects-cards {
  padding: var(--content-top-spacing) 1rem 3rem 1rem;
}


.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
  position: relative;
  border: 1px solid var(--secondary);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: visible;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--secondary); }
.card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: var(--spacing-sm); }
.card h3 { font-family: var(--font-body); font-size: var(--text-card-title); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--fg); margin: var(--spacing-xs) 0; }

.card-decor::after {
  content: '';
  position: absolute;
  top: -36px;
  right: -14px;
  width: 86px;
  height: 86px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.decor-love::after { background-image: url('emotes/useridLOVE.png'); }
.decor-bits::after { background-image: url('emotes/useridBITS.png'); }
.decor-amethyst::after { background-image: url('emotes/useridAmethyst.png'); }
.decor-blast::after { background-image: url('emotes/useridBLASTIN.gif'); }
.decor-hi::after { background-image: url('emotes/useridHI.png'); }
.decor-kekw::after { background-image: url('emotes/useridKEKW.png'); }
.decor-haha::after { background-image: url('emotes/useridHAHA.gif'); }
.decor-dance::after { background-image: url('emotes/useridDance.gif'); }
.decor-gift::after { background-image: url('emotes/useridGIFT.png'); }
.decor-diamond::after { background-image: url('emotes/useridDiamond.png'); }
.decor-gg::after { background-image: url('emotes/useridGG.png'); }
.decor-levelup::after { background-image: url('emotes/useridLEVELUP.png'); }
.decor-jam::after { background-image: url('emotes/useridJAM.png'); }
.decor-lurk::after { background-image: url('emotes/useridLURK.gif'); }
.decor-throb::after { background-image: url('emotes/useridTHROB.gif'); }

.decor-tr::after { top: -36px; right: -14px; }
.decor-tl::after { top: -36px; left: -14px; }
.decor-br::after { bottom: -32px; right: -14px; }
.decor-bl::after { bottom: -32px; left: -14px; }

.card.card-decor {
  margin: 2rem 0.5rem;
}

.cta-coin {
  position: relative;
}

.cta-coin::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  width: 20px;
  height: 20px;
  background: url('emotes/useridBITS.png') no-repeat center / contain;
  filter: drop-shadow(0 0 4px rgba(255, 184, 0, 0.45));
  pointer-events: none;
}

.cta-coin:hover::before,
.cta-coin:focus-visible::before {
  transform: translateY(-1px) scale(1.06);
}

.card.cta-coin {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.2);
}

/* Home page arcade cabinet cards (CodePen-structure translation) */
.home-page .home-cabinet-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  padding: calc(var(--content-top-spacing) + 1.2rem) 1rem 2rem;
}

.home-page .arcade-link {
  display: block;
  position: relative;
  color: inherit;
  width: min(100%, 44vh);
  max-width: 400px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  grid-column: span 2;
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 360px 360px;
}

/* Center the final row when 2 cards remain in a 3-column layout */
.home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(2):nth-of-type(3n + 1) {
  grid-column: 2 / span 2;
  justify-self: center;
}

.home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(1):nth-of-type(3n + 2) {
  grid-column: 4 / span 2;
  justify-self: center;
}

.home-page .arcade-link[aria-label="About"] .arcade-machine {
  --stripe-left: #5de2ff;
  --stripe-mid: var(--secondary);
  --stripe-right: #33d8ff;
}

.home-page .arcade-link[aria-label="Twitch Content"] .arcade-machine {
  --stripe-left: #8e6dff;
  --stripe-mid: var(--primary);
  --stripe-right: var(--secondary);
}

.home-page .arcade-link[aria-label="YouTube Content"] .arcade-machine {
  --stripe-left: #ff8aa8;
  --stripe-mid: var(--primary);
  --stripe-right: #ff6379;
}

.home-page .arcade-link[aria-label="Shop"] .arcade-machine {
  --stripe-left: #ffe38b;
  --stripe-mid: var(--accent);
  --stripe-right: #ffb800;
}

.home-page .arcade-link[aria-label="Projects"] .arcade-machine {
  --stripe-left: #60f2cf;
  --stripe-mid: var(--secondary);
  --stripe-right: #2fc3ff;
}

.home-page .arcade-link:hover,
.home-page .arcade-link:focus-visible {
  text-decoration: none;
}

.home-page .arcade-link:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 6px;
}

.home-page .arcade-machine {
  --cabinet-border: #152338;
  --cabinet-shell: #1a2a40;
  --cabinet-plate: #2a3f5a;
  --cabinet-panel: #cfd9e6;
  --cabinet-screen: #0f1923;
  --cabinet-screen-line: #1a2d45;
  --cabinet-joystick: #1b8df5;
  --cabinet-joystick-dark: #106dbe;
  --cabinet-shadow: rgba(0, 255, 190, 0.22);
  --cabinet-alien: #7fd3ff;
  --stripe-left: #5de2ff;
  --stripe-mid: var(--secondary);
  --stripe-right: var(--primary);
  position: relative;
  top: auto;
  width: 100%;
  max-width: 400px;
  height: 100%;
  margin: 0;
  left: auto;
  transform: none;
  transform-origin: center center;
  perspective: 35em;
}

.home-page .arcade-machine,
.home-page .arcade-machine *,
.home-page .arcade-machine *::before,
.home-page .arcade-machine *::after {
  box-sizing: content-box;
}

.home-page .arcade-machine > .shadow {
  position: absolute;
  top: 2%;
  left: 19%;
  width: 65%;
  height: 85%;
  background: var(--cabinet-shell);
  box-shadow: 0 0 40px var(--cabinet-shadow);
  z-index: -1;
}

.home-page .arcade-machine .top {
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 15%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
  z-index: 3;
}

.home-page .arcade-machine .top .marquee-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--bg);
  font-family: 'Orbitron', 'Press Start 2P', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 4;
}

.home-page .arcade-machine .top::before,
.home-page .arcade-machine .top::after {
  content: "";
  position: absolute;
  top: -9%;
  width: 4%;
  height: 100%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
}

.home-page .arcade-machine .top::before { left: -6%; }
.home-page .arcade-machine .top::after { right: -6%; }

.home-page .arcade-machine .stripes {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  background: var(--stripe-mid);
}

.home-page .arcade-machine .stripes::before,
.home-page .arcade-machine .stripes::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.home-page .arcade-machine .stripes::before {
  left: -100%;
  background: var(--stripe-left);
}

.home-page .arcade-machine .stripes::after {
  right: -100%;
  background: var(--stripe-right);
}

.home-page .arcade-machine .screen-container {
  position: absolute;
  top: 15%;
  left: 19%;
  width: 62%;
  height: 50%;
  background: var(--cabinet-plate);
  border: 5px solid var(--cabinet-border);
  z-index: 1;
}

.home-page .arcade-machine .screen-container::before,
.home-page .arcade-machine .screen-container::after {
  content: "";
  position: absolute;
  top: -2%;
  width: 4%;
  height: 100%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
  z-index: 2;
}

.home-page .arcade-machine .screen-container::before { left: -6%; }
.home-page .arcade-machine .screen-container::after { right: -6%; }

.home-page .arcade-machine .screen-container > .shadow {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 8%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 4;
}

.home-page .arcade-machine .screen {
  position: absolute;
  top: 15%;
  left: 11%;
  width: 75%;
  height: 70%;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  background: var(--cabinet-screen);
  border: 5px solid var(--cabinet-border);
  border-radius: 90px 93px 93px 93px / 15px 15px 15px 15px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 190, 0.12),
    0 0 10px rgba(0, 255, 190, 0.12),
    0 0 22px rgba(47, 195, 255, 0.08);
  transition: box-shadow 0.24s ease;
}

.home-page .arcade-machine .screen-display {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0 1px, rgba(0, 0, 0, 0) 1px 16px);
  background-position: 0 0;
  animation: translate 1.1s steps(16, end) infinite;
  z-index: 4;
  opacity: 0.7;
  pointer-events: none;
  will-change: background-position;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.home-page .arcade-machine .screen-emote {
  position: relative;
  width: 42%;
  max-width: 88px;
  height: auto;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(0, 255, 190, 0.35));
  animation: bounce 0.8s ease-in-out infinite;
  will-change: transform;
}

.home-page .arcade-machine .screen-display,
.home-page .arcade-machine .screen-emote {
  animation-play-state: paused;
}

.home-page .arcade-link:hover .screen-display,
.home-page .arcade-link:focus-visible .screen-display,
.home-page .arcade-link:hover .screen-emote,
.home-page .arcade-link:focus-visible .screen-emote {
  animation-play-state: running;
}

.home-page .arcade-link:hover .screen,
.home-page .arcade-link:focus-visible .screen {
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 190, 0.35),
    0 0 16px rgba(0, 255, 190, 0.35),
    0 0 34px rgba(47, 195, 255, 0.22);
}

.home-page .arcade-machine .joystick {
  position: absolute;
  top: 91%;
  left: 17%;
  width: 5%;
  height: 6%;
  border-radius: 50%;
  border: 5px solid var(--cabinet-border);
  background: var(--cabinet-joystick);
  z-index: 3;
}

.home-page .arcade-machine .joystick::before {
  content: "";
  position: absolute;
  top: 7%;
  left: 32%;
  width: 65%;
  height: 90%;
  border-radius: 50%;
  background: var(--cabinet-joystick-dark);
}

.home-page .arcade-machine .joystick .stick {
  position: absolute;
  top: 100%;
  left: 30%;
  width: 40%;
  height: 200%;
  background: var(--cabinet-border);
}

.home-page .arcade-machine .joystick .stick::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20%;
  width: 150%;
  height: 100%;
  transform: rotate(90deg);
  background: var(--cabinet-border);
}

.home-page .arcade-machine .board {
  position: absolute;
  top: 61%;
  left: 18.2%;
  width: 66%;
  height: 20%;
  transform: rotateX(70deg);
  background: var(--cabinet-plate);
}

.home-page .arcade-machine .board::before,
.home-page .arcade-machine .board::after {
  content: "";
  position: absolute;
  top: -2%;
  width: 4%;
  height: 92%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
  z-index: 2;
}

.home-page .arcade-machine .board::before { left: -6%; }
.home-page .arcade-machine .board::after { right: -6%; }

.home-page .arcade-machine .board .button {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 6%;
  height: 15%;
  box-sizing: border-box;
  border-radius: 50%;
  border: 5px solid var(--cabinet-border);
}

.home-page .arcade-machine .board .button-a { left: 40%; background: var(--accent); }
.home-page .arcade-machine .board .button-b { left: 55%; background: var(--secondary); }
.home-page .arcade-machine .board .button-c { left: 70%; background: var(--primary); }

.home-page .arcade-machine .bottom {
  position: absolute;
  top: 76%;
  left: 14.5%;
  width: 71%;
  height: 10%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
}

.home-page .arcade-machine .bottom::before,
.home-page .arcade-machine .bottom::after {
  content: "";
  position: absolute;
  top: -9%;
  width: 4%;
  height: 98%;
  background: var(--cabinet-panel);
  border: 5px solid var(--cabinet-border);
  z-index: 2;
}

.home-page .arcade-machine .bottom::before { left: -5.8%; }
.home-page .arcade-machine .bottom::after { right: -5.9%; }

.home-page .arcade-machine .alien-container {
  position: absolute;
  top: 20%;
  left: 35%;
  width: 30%;
  height: 30%;
  animation: bounce 0.8s infinite;
}

.home-page .arcade-machine .alien .ear {
  position: absolute;
  top: 14%;
  width: 10%;
  height: 13%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .ear-left { left: 35%; }
.home-page .arcade-machine .alien .ear-right { right: 35%; }

.home-page .arcade-machine .alien .ear::before {
  content: "";
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .ear-left::before { left: -100%; }
.home-page .arcade-machine .alien .ear-right::before { right: -100%; }

.home-page .arcade-machine .alien .head-top {
  position: absolute;
  top: 26%;
  left: 20%;
  width: 60%;
  height: 15%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .head {
  position: absolute;
  top: 40%;
  left: 11.5%;
  width: 77%;
  height: 15%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .head .eye {
  position: absolute;
  top: -5%;
  width: 12%;
  height: 77%;
  background: #0f1923;
}

.home-page .arcade-machine .alien .head .eye-left { left: 25%; }
.home-page .arcade-machine .alien .head .eye-right { right: 25%; }

.home-page .arcade-machine .alien .body {
  position: absolute;
  top: 54%;
  left: 10%;
  width: 80%;
  height: 20%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .body::before,
.home-page .arcade-machine .alien .body::after {
  content: "";
  position: absolute;
  width: 13%;
  height: 220%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .body::before { left: -10%; }
.home-page .arcade-machine .alien .body::after { right: -10%; }

.home-page .arcade-machine .alien .arm {
  position: absolute;
  top: 85%;
  width: 10%;
  height: 13%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .arm-left { left: 35%; }
.home-page .arcade-machine .alien .arm-right { right: 35%; }

.home-page .arcade-machine .alien .arm::before {
  content: "";
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--cabinet-alien);
}

.home-page .arcade-machine .alien .arm-left::before { left: -100%; }
.home-page .arcade-machine .alien .arm-right::before { right: -100%; }

.home-page .arcade-link .shop-badge {
  right: 0.75rem;
  top: 0.5rem;
  z-index: 7;
}

/* Shop Card Special Styling */
.card-shop {
  position: relative;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(179, 0, 255, 0.1) 100%);
}

.card-shop:hover {
  box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(179, 0, 255, 0.3);
  transform: translateY(-8px) scale(1.02);
}

.card-shop i {
  color: var(--accent);
}

.shop-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

/* ========================================
   SHOP SECTION
   Shop preview grid, product cards, CTAs
   ======================================== */

/* Shop Preview Section */
.shop-section {
  padding: var(--post-breadcrumb-start-gap) 1rem 3rem 1rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.shop-section h2 {
  font-family: var(--font-body);
  font-size: var(--text-section-title);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

.shop-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--secondary);
}

.shop-intro {
  font-family: var(--font-body);
  color: rgba(240, 244, 248, 0.88);
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  max-width: var(--measure-copy);
  margin: 0 auto var(--spacing-lg);
}

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 var(--spacing-md);
}

.shop-categories-wrap {
  margin: 0 0 0.25rem;
}

.shop-categories-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-category-chip {
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-category-chip:hover {
  border-color: rgba(0, 255, 190, 0.5);
  background: rgba(0, 255, 190, 0.12);
}

.shop-category-chip.is-active {
  border-color: rgba(255, 70, 85, 0.75);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.34), rgba(255, 70, 85, 0.18));
  color: #fff3f4;
}

.shop-category-chip:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.shop-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Product listing grid: stable 4-up desktop layout with responsive fallbacks. */
.shop-products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.shop-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--primary);
  border-color: var(--accent);
}

.shop-preview-featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(179, 0, 255, 0.15) 100%);
}

.shop-preview-featured:hover {
  box-shadow: 0 0 20px var(--accent);
}

.shop-preview-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.shop-preview-featured .shop-preview-icon {
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.shop-preview-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: var(--spacing-xs) 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-preview-card p {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.02vw, 0.98rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
}

/* Keep pricing visually prominent over generic card paragraph styles. */
.shop-preview-card .shop-product-price {
  font-family: var(--font-body);
  margin: 0 0 var(--spacing-sm);
  color: #ff4655;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 12px rgba(255, 70, 85, 0.25);
}

.shop-price-prefix {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-price-amount {
  display: block;
}

.shop-status {
  font-family: var(--font-body);
  margin: 0 auto var(--spacing-md);
  max-width: 46rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 255, 255, 0.08);
  color: var(--fg);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  line-height: var(--leading-normal);
}

.shop-status.is-error {
  border-color: rgba(255, 83, 95, 0.65);
  background: rgba(255, 83, 95, 0.12);
  color: #ffd4d8;
}

.shop-results-summary {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  color: var(--muted);
}

.site-breadcrumb,
.shop-breadcrumb {
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto var(--spacing-sm);
  padding: var(--breadcrumb-padding-top) 1rem var(--breadcrumb-padding-bottom);
  box-sizing: border-box;
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  color: var(--muted);
}

.legal-page .site-breadcrumb {
  max-width: var(--legal-max-width);
}

.site-breadcrumb a,
.shop-breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

.site-breadcrumb a:hover,
.shop-breadcrumb a:hover {
  text-decoration: underline;
}

.shop-products-grid {
  align-items: stretch;
  gap: clamp(0.58rem, 1vw, 0.82rem);
}

.shop-product-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(0.62rem, 0.95vw, 0.82rem);
  border-radius: 10px;
}

.shop-product-card .shop-product-media-link,
.shop-product-card .shop-product-media-shell {
  display: block;
  position: relative;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  overflow: hidden;
}

.shop-product-card .shop-product-image {
  margin-bottom: 0;
}

.shop-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 18, 27, 0.85);
  margin-bottom: var(--spacing-sm);
}

.shop-product-media-link,
.shop-product-media-shell {
  display: block;
  border-radius: 8px;
}

.shop-product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  padding: clamp(0.55rem, 1.1vw, 0.8rem);
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.56) 0%, rgba(4, 8, 14, 0.18) 34%, rgba(4, 8, 14, 0.72) 100%);
}

.shop-product-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
}

.shop-product-overlay-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.shop-product-media-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.shop-product-media-link:hover .shop-product-image {
  border-color: rgba(0, 255, 190, 0.5);
  box-shadow: 0 0 14px rgba(0, 255, 190, 0.2);
}

.shop-product-title-link {
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-product-card h3 {
  margin: 0;
  min-height: 0;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(249, 251, 253, 0.98);
  -webkit-text-stroke: 0.6px rgba(5, 7, 12, 0.95);
  paint-order: stroke fill;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.shop-product-title-link:hover {
  color: var(--secondary);
}

.shop-product-title-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.shop-product-price {
  font-family: var(--font-body);
  margin: 0;
  color: var(--price-tint);
  font-size: clamp(0.94rem, 1.25vw, 1.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.65px rgba(16, 10, 12, 0.95);
  paint-order: stroke fill;
  text-shadow: 0 0 12px rgba(255, 70, 85, 0.38), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.shop-product-card .shop-product-price {
  min-height: 0;
  margin-bottom: 0;
  font-size: clamp(0.94rem, 1.25vw, 1.2rem);
}

.shop-product-helper {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.82vw, 0.76rem);
  line-height: 1.45;
  color: rgba(243, 246, 250, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.shop-category-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(10, 18, 30, 0.66);
  color: rgba(244, 247, 251, 0.98);
  font-family: var(--font-body);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px rgba(7, 10, 18, 0.9);
  paint-order: stroke fill;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.shop-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
}

.shop-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 14, 22, 0.72);
  color: rgba(239, 243, 247, 0.95);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px rgba(5, 8, 14, 0.9);
  paint-order: stroke fill;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.shop-product-actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: auto;
  width: 100%;
  padding-top: 0.5rem;
}

.shop-product-card .coming-soon-tag {
  align-self: flex-start;
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0.35px rgba(12, 6, 6, 0.9);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
}

.product-back-link,
.shop-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-back-link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.product-back-link:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.shop-action-button {
  border: 1px solid rgba(255, 70, 85, 0.68);
  color: #fff4f5;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.42), rgba(255, 70, 85, 0.25));
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.15), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.shop-action-button-link {
  text-decoration: none;
}

.shop-action-button-link.is-disabled {
  border-color: rgba(145, 150, 160, 0.42);
  background: rgba(120, 125, 135, 0.16);
  color: rgba(215, 218, 224, 0.72);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.shop-action-button:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.58), rgba(255, 70, 85, 0.32));
  border-color: rgba(255, 70, 85, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.2), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.shop-action-button:disabled {
  border-color: rgba(145, 150, 160, 0.42);
  background: rgba(120, 125, 135, 0.16);
  color: rgba(215, 218, 224, 0.72);
  cursor: not-allowed;
  box-shadow: none;
}

.product-back-link:focus-visible,
.shop-action-button:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.shop-product-card .shop-product-actions > * {
  flex: 1 1 0;
  min-height: 2.35rem;
}

.shop-product-card .shop-action-button,
.shop-product-card .shop-action-button-link {
  min-height: 2.35rem;
  padding: 0.36rem 0.62rem;
  font-size: clamp(0.66rem, 0.85vw, 0.74rem);
}

.product-detail-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: left;
  border-color: rgba(255, 70, 85, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.12);
}

.product-detail-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--primary);
}

.product-detail-card .shop-product-image {
  width: min(100%, 24rem);
  max-height: 24rem;
  margin: 0 auto var(--spacing-md);
  object-fit: contain;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-items: start;
}

.product-gallery {
  width: 100%;
}

.product-image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(100%, 24rem);
  margin: 0 auto;
}

.product-thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 18, 27, 0.82);
  cursor: pointer;
  overflow: hidden;
}

.product-thumb:hover {
  border-color: rgba(0, 255, 190, 0.55);
}

.product-thumb:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.product-thumb.is-selected {
  border-color: rgba(255, 70, 85, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.25);
}

.product-thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-summary {
  min-width: 0;
}

.product-name {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.8vw, 2.28rem);
  line-height: 1.1;
  color: #f3f4f7;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-page #product-price {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.34rem 0.68rem;
  border: 1px solid rgba(255, 70, 85, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.14), rgba(255, 70, 85, 0.02));
  color: #ff5c67;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4.3vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(255, 70, 85, 0.33);
}

.product-selection-panel {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0 0 1rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.product-selection-summary,
.product-selection-hint {
  margin: 0;
  font-family: var(--font-body);
}

.product-selection-summary {
  color: #f4f6f9;
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  font-weight: 700;
}

.product-selection-summary.is-error {
  color: #ffd4d8;
}

.product-selection-hint {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.92vw, 0.86rem);
  line-height: 1.45;
}

.product-info-block {
  margin-bottom: 0.9rem;
}

.product-info-heading {
  font-family: var(--font-body);
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  color: var(--secondary);
  margin-bottom: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.09);
  color: var(--fg);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.product-chip.is-muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.product-select {
  width: min(100%, 22rem);
  min-height: 2.2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(10, 18, 27, 0.9);
  color: var(--fg);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.product-select:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.product-select:disabled {
  opacity: 0.7;
}

.color-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.75rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.color-swatch-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.color-swatch-label {
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.color-swatch:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.color-swatch.is-selected {
  border-color: rgba(255, 70, 85, 0.95);
  background: rgba(255, 70, 85, 0.16);
}

.color-swatch.is-unavailable {
  border-style: dotted;
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  opacity: 0.75;
  cursor: not-allowed;
}

.size-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.size-option {
  position: relative;
  min-width: 4.4rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0;
  border: 1px solid var(--neutral-border);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.size-option:hover {
  border-color: var(--neutral-border-hover);
  background: rgba(255, 255, 255, 0.1);
}

.size-option:focus-visible {
  outline: 2px solid #c8c8c8;
  outline-offset: 2px;
}

.size-option.is-selected {
  border-color: #efefef;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.size-option.is-unavailable {
  border-style: solid;
  border-color: #7a7a7a;
  background: rgba(255, 255, 255, 0.02);
  color: #8b8b8b;
  cursor: not-allowed;
}

.size-option.is-unavailable::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 48%;
  height: 1.5px;
  background: #9a9a9a;
  transform: rotate(-29deg);
  pointer-events: none;
}

.product-size-empty {
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-description {
  font-family: var(--font-body);
  color: var(--fg);
  font-size: clamp(0.98rem, 1.08vw, 1.04rem);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

.product-description p {
  margin: 0 0 0.6rem;
}

.product-description ul {
  margin: 0;
  padding-left: 1.15rem;
}

.product-description li {
  margin-bottom: 0.35rem;
}

.product-disclaimer {
  font-family: var(--font-body);
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-disclaimer strong {
  color: #ffd28a;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 var(--spacing-sm);
}

.product-meta-grid dt {
  font-family: var(--font-body);
  font-size: clamp(0.64rem, 0.85vw, 0.75rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.product-meta-grid dd {
  font-family: var(--font-body);
  margin: 0.2rem 0 0;
  font-size: clamp(0.84rem, 1vw, 0.95rem);
  color: var(--fg);
  font-weight: 600;
}

.product-variant-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.product-variant-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}

.product-variant-table th,
.product-variant-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: var(--text-sm);
}

.product-variant-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-xs);
  background: rgba(255, 255, 255, 0.03);
}

.product-page .shop-section {
  padding-top: calc(var(--content-top-spacing) - 0.6rem);
  padding-bottom: 2rem;
}

.product-page .shop-status {
  margin-bottom: var(--spacing-sm);
}

.product-page .product-info-block {
  margin-bottom: var(--spacing-sm);
}

.product-page .shop-intro {
  margin-top: 0.55rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-page .product-variant-table-wrap {
  max-height: 18rem;
}

@media (min-width: 1200px) {
  .shop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-page .product-layout {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 1rem;
    grid-column: 1 / -1;
  }

  .product-page .product-gallery {
    position: sticky;
    top: 5.6rem;
  }

  .product-page .product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: var(--spacing-sm);
    max-width: 72rem;
  }

  .product-page .product-description-block {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .product-page .product-description {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-page .shop-intro {
    grid-column: 1 / -1;
  }
}

.coming-soon-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.coming-soon-tag[hidden] { display: none; }

.coming-soon-tag.is-out {
  background: #ff4655;
}

.coming-soon-tag.is-low {
  background: #f5a524;
  color: #1f1510;
}

.coming-soon-tag.is-last {
  background: #ff7a1f;
  color: #1f130a;
}

.coming-soon-tag.is-live {
  background: var(--primary);
}

.coming-soon-tag.featured {
  background: var(--accent);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent); }
  50% { box-shadow: 0 0 15px var(--accent), 0 0 25px rgba(179, 0, 255, 0.5); }
}

.shop-notify {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.shop-notify p {
  color: var(--fg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}

.shop-notify i {
  color: var(--primary);
  margin-right: var(--spacing-xs);
}

.shop-notify strong {
  color: var(--primary);
}

/* ========================================
   Cart Shell
   Floating mini-cart and checkout preview drawer
   ======================================== */

.cart-fab {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.4rem);
  bottom: clamp(0.8rem, 2.5vw, 1.6rem);
  z-index: 2100;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "count label"
    "count total";
  align-items: center;
  column-gap: var(--spacing-xs);
  min-width: 9rem;
  padding: 0.65rem var(--spacing-sm);
  border-radius: 10px;
  border: 1px solid rgba(255, 70, 85, 0.72);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.88), rgba(255, 70, 85, 0.68));
  color: #fff;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.cart-fab:hover {
  filter: brightness(1.06);
}

.cart-fab:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.cart-fab-count {
  grid-area: count;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(16, 24, 38, 0.35);
  font-family: var(--font-display);
  font-size: var(--text-xs);
}

.cart-fab-label {
  grid-area: label;
  justify-self: start;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-fab-total {
  grid-area: total;
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--text-xs);
}

.cart-fab.cart-fab--nav-mounted {
  display: none !important;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2090;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cart-drawer[hidden],
.cart-drawer-backdrop[hidden] {
  display: none !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: var(--page-sb-width, 0px);
  z-index: 2101;
  width: min(calc(100% - var(--page-sb-width, 0px)), 26rem);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(21, 30, 46, 0.98), rgba(14, 20, 33, 0.98));
  color: var(--fg);
  box-shadow: -0.7rem 0 1.8rem rgba(0, 0, 0, 0.35);
  overflow-x: visible;
  overflow-y: hidden;
}

.cart-drawer > * {
  min-width: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  min-width: 0;
}

.cart-drawer-title,
.cart-drawer-summary {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-drawer-title {
  flex: 1 1 auto;
}

.cart-close-btn {
  flex: 0 0 auto;
}

.cart-drawer-summary {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.cart-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  color: var(--accent);
}

.cart-close-btn {
  min-height: 2.75rem;
  padding: 0.5rem var(--spacing-sm);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.cart-empty {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: var(--text-base);
}

.cart-empty[hidden] {
  display: none !important;
}

.cart-empty-title,
.cart-empty-copy {
  margin: 0;
  font-family: var(--font-body);
}

.cart-empty-title {
  color: var(--fg);
  font-weight: 700;
}

.cart-empty-copy {
  line-height: 1.5;
}

.cart-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: fit-content;
  padding: 0.5rem var(--spacing-sm);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 190, 0.42);
  background: rgba(0, 255, 190, 0.08);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.cart-empty-link:hover {
  background: rgba(0, 255, 190, 0.14);
  border-color: rgba(0, 255, 190, 0.65);
}

.cart-empty-link:focus-visible,
.cart-close-btn:focus-visible,
.cart-qty-btn:focus-visible,
.cart-remove-btn:focus-visible,
.cart-item-name:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.cart-items {
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  min-height: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  gap: var(--spacing-xs);
  padding: 0.7rem;
  margin-bottom: var(--spacing-xs);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
}

.cart-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.cart-item-body {
  min-width: 0;
}

.cart-item-name {
  margin: 0;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}

.cart-item-name:hover {
  color: var(--secondary);
}

.cart-item-meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.cart-item-price {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: var(--text-xs);
}

.cart-item-controls {
  margin-top: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-qty-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-value {
  min-width: 1.9rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.cart-remove-btn {
  min-height: 2.75rem;
  padding: 0.5rem var(--spacing-sm);
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.cart-remove-btn:hover {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--fg);
}

.cart-drawer-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--spacing-xs);
  padding-bottom: calc(var(--spacing-xs) + env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  margin: 0 0 var(--spacing-xs);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.cart-subtotal-value {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
}

.cart-shipping-form {
  margin: 0 0 var(--spacing-xs);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spacing-xs);
}

.cart-recipient-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-recipient-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(242, 246, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-recipient-name,
.cart-recipient-address1,
.cart-recipient-address2,
.cart-recipient-city,
.cart-recipient-state,
.cart-recipient-zip,
.cart-recipient-country {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  padding: 0.5rem 0.6rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.cart-recipient-name,
.cart-recipient-address1,
.cart-recipient-address2 {
  grid-column: 1 / -1;
}

.cart-quote-actions {
  margin: 0 0 var(--spacing-xs);
}

.cart-quote-btn {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 9px;
  border: 1px solid rgba(84, 204, 255, 0.58);
  background: linear-gradient(145deg, rgba(84, 204, 255, 0.2), rgba(55, 141, 221, 0.24));
  color: #e9f8ff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-quote-btn:disabled {
  border-color: rgba(145, 150, 160, 0.42);
  background: rgba(120, 125, 135, 0.16);
  color: rgba(215, 218, 224, 0.72);
  cursor: not-allowed;
}

.cart-quote-btn:focus-visible,
.cart-recipient-name:focus-visible,
.cart-recipient-address1:focus-visible,
.cart-recipient-address2:focus-visible,
.cart-recipient-city:focus-visible,
.cart-recipient-state:focus-visible,
.cart-recipient-zip:focus-visible,
.cart-recipient-country:focus-visible {
  outline: 2px solid #bde7ff;
  outline-offset: 2px;
  border-color: rgba(189, 231, 255, 0.72);
}

.cart-breakdown-row,
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.cart-breakdown-row > span,
.cart-total-row > span,
.cart-subtotal-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-breakdown-value,
.cart-total-value,
.cart-subtotal-value {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.cart-breakdown-value {
  color: rgba(242, 246, 255, 0.92);
}

.cart-total-row {
  margin-bottom: var(--spacing-xs);
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.cart-total-value {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--fg);
}

.cart-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs);
}

.cart-clear-btn,
.cart-checkout-btn {
  min-height: 2.75rem;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cart-clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.cart-clear-btn:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.cart-checkout-btn {
  border: 1px solid rgba(255, 70, 85, 0.68);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.42), rgba(255, 70, 85, 0.25));
  color: #fff2f3;
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.15), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.cart-checkout-btn:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.58), rgba(255, 70, 85, 0.32));
  border-color: rgba(255, 70, 85, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.2), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.cart-checkout-btn:disabled {
  border-color: rgba(145, 150, 160, 0.42);
  background: rgba(120, 125, 135, 0.16);
  color: rgba(215, 218, 224, 0.72);
  cursor: not-allowed;
  box-shadow: none;
}

.cart-clear-btn:focus-visible,
.cart-checkout-btn:focus-visible {
  outline: 2px solid #ffd6da;
  outline-offset: 2px;
}

.cart-checkout-status {
  margin: var(--spacing-xs) 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(242, 246, 255, 0.86);
}

.cart-checkout-trust {
  margin: var(--spacing-xs) 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(242, 246, 255, 0.88);
}

.cart-checkout-trust-badge {
  border: 1px solid rgba(54, 214, 146, 0.6);
  background: rgba(54, 214, 146, 0.16);
  color: #d7ffe8;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cart-checkout-trust-copy {
  color: rgba(242, 246, 255, 0.88);
}

.cart-checkout-status.is-error {
  color: #ffb9bf;
}

.about-section, .projects-section { 
  padding: var(--post-breadcrumb-start-gap) 1rem 3rem 1rem;
  max-width: var(--content-max-width); 
  margin: 0 auto; 
}

.about-section {
  position: relative;
}

.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(0, 255, 190, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(140deg, rgba(26, 35, 50, 0.94), rgba(15, 25, 35, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.12), 0 12px 24px rgba(0, 0, 0, 0.25);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(0, 255, 190, 0.16), transparent 58%),
    radial-gradient(circle at 70% 55%, rgba(255, 70, 85, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-hero .about-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--secondary);
}

.about-section .about-hero h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-section .about-hero p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.embed-panel > :first-child,
.cards-container > :first-child,
.shop-section > :first-child,
.about-section > :first-child,
.projects-section > :first-child,
.legal-content > :first-child {
  margin-top: 0;
}

.about-section h2, .projects-section h2 {
  font-family: var(--font-body);
  font-size: var(--text-section-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-align: left;
  margin: 2rem 0 0.85rem;
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--accent);
}

.about-page .about-section h2,
.projects-page .projects-section h2,
.legal-page .legal-content h2,
.legal-page .legal-content h3 {
  text-wrap: balance;
}

/* Ensure about section paragraphs are readable */
.about-section p {
  color: rgba(241, 245, 249, 0.9);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--spacing-sm);
  max-width: 66ch;
}

.about-hero .about-lead {
  color: #ffffff;
  font-size: clamp(1.12rem, 1.45vw, 1.34rem);
  line-height: 1.72;
  max-width: 68ch;
  margin: 0 auto;
}

.about-story-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.about-story-row {
  display: grid;
  grid-template-columns: 1fr minmax(110px, 170px);
  align-items: center;
  gap: 0.9rem;
}

.about-story-row:nth-child(even) {
  grid-template-columns: minmax(110px, 170px) 1fr;
}

.about-story-row:nth-child(even) .about-story-text {
  order: 2;
}

.about-story-row:nth-child(even) .about-story-art {
  order: 1;
}

.about-story-text {
  background: rgba(26, 35, 50, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.95rem 1rem;
}

.about-story-text p {
  margin: 0;
}

.about-story-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-story-art img {
  width: min(170px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 255, 190, 0.28));
}

.about-recent-games {
  margin: 1.25rem 0 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.84), rgba(15, 25, 35, 0.86));
}

.about-recent-games-header p {
  margin-bottom: 0.75rem;
}

.about-recent-games-list {
  min-height: 2.4rem;
}

.about-recent-games-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.about-game-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-game-art {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 22, 0.7);
}

.about-game-art--fallback {
  background: linear-gradient(160deg, rgba(255, 70, 85, 0.22), rgba(0, 255, 190, 0.2));
}

.about-game-meta h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.about-game-meta h3 a {
  color: var(--fg);
  text-decoration: none;
}

.about-game-meta h3 a:hover {
  color: var(--secondary);
}

.about-game-meta p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.about-highlights { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: var(--spacing-md); 
  margin-top: 1.1rem;
}

.highlight-item {
  text-align: center;
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 190, 0.42);
  box-shadow: 0 0 14px rgba(0, 255, 190, 0.16);
}

.highlight-item i { font-size: 2rem; color: var(--primary); margin-bottom: var(--spacing-xs); }
.highlight-item h3 { font-family: var(--font-body); font-size: clamp(1.16rem, 1.7vw, 1.42rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--fg); margin: var(--spacing-xs) 0; }
.highlight-item p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; }

.projects-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: var(--spacing-md); 
}
.project-card { 
  background: var(--card-bg); 
  border: 1px solid var(--secondary); 
  border-radius: 8px; 
  padding: var(--spacing-md); 
  text-align: center; 
  transition: transform 0.3s, box-shadow 0.3s; 
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--primary); }
.project-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.project-card h3 { font-family: var(--font-body); font-size: var(--text-card-title); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--fg); margin: var(--spacing-xs) 0; }
.project-card p { font-size: 0.98rem; line-height: 1.7; color: var(--muted); }

/* clickable project card */
.project-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* work-in-progress project card */
.project-card--wip {
  opacity: 0.72;
  pointer-events: none;
  cursor: default;
  position: relative;
}

/* status badge — top-right corner of each project card */
.project-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  line-height: var(--leading-tight);
}

.project-status--live    { background: var(--primary);  color: var(--bg); }
.project-status--draft   { background: rgba(255, 200, 60, 0.15); color: #ffc83c; border: 1px solid rgba(255, 200, 60, 0.4); }
.project-status--building { background: rgba(0, 200, 255, 0.12); color: #5de5ff; border: 1px solid rgba(0, 200, 255, 0.35); }

/* tech-stack pill tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.project-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.projects-cta-row {
  margin-top: 2rem;
}

/* ========================================
   YOUTUBE CONTENT SECTIONS
   Card grid layout for Recent Videos and Shorts
   Mirrors Twitch content section pattern with red accent
   ======================================== */

.yt-content-section {
  margin: 0;
}

.yt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: 0.6rem;
}

.embed-panel .yt-section-header h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.45vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-align: left;
}

.yt-section-link {
  font-size: 0.82rem;
  color: #ffd4d8;
}

.yt-section-link:hover,
.yt-section-link:focus-visible {
  color: #fff1f2;
}

.yt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.yt-content-card {
  background: #111;
  border: 1px solid rgba(255, 70, 85, 0.45);
  border-radius: 8px;
  overflow: hidden;
  min-height: 100%;
}

.yt-card-thumb-link {
  display: block;
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.yt-card-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.22) 42%, rgba(8, 12, 18, 0.94) 100%);
  z-index: 0;
}

.yt-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.yt-card-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 1.45rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yt-card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.82);
  color: #fff3f4;
  font-size: 0.68rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.embed-panel h3.yt-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.yt-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: #ffe4e7;
}

.yt-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.82);
  backdrop-filter: blur(6px);
}

.yt-content-card:hover .yt-card-thumb,
.yt-card-thumb-link:focus-visible .yt-card-thumb {
  transform: scale(1.04);
}

.yt-card-thumb-link:focus-visible {
  outline: 2px solid rgba(255, 184, 0, 0.85);
  outline-offset: 2px;
}

.yt-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.yt-loading-error {
  color: #ffd4d8;
}

.content-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.content-load-more-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.82);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.62rem 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.content-load-more-button:hover,
.content-load-more-button:focus-visible {
  transform: translateY(-1px);
}

.content-load-more-button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.content-load-more-button[hidden] {
  display: none;
}

.youtube-page .content-load-more-button {
  border-color: rgba(255, 70, 85, 0.45);
  color: #fff1f2;
}

.youtube-page .content-load-more-button:hover,
.youtube-page .content-load-more-button:focus-visible {
  background: rgba(255, 70, 85, 0.18);
  border-color: rgba(255, 70, 85, 0.72);
}

.twitch-page .content-load-more-button {
  border-color: rgba(145, 70, 255, 0.45);
  color: #efe0ff;
}

.twitch-page .content-load-more-button:hover,
.twitch-page .content-load-more-button:focus-visible {
  background: rgba(145, 70, 255, 0.18);
  border-color: rgba(145, 70, 255, 0.72);
}

.twitch-overview {
  margin: 0;
}

.twitch-overview-card {
  border: 1px solid rgba(145, 70, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(145, 70, 255, 0.18) 0%, rgba(26, 35, 50, 0.9) 100%);
  padding: var(--spacing-md);
  box-shadow: 0 0 24px rgba(145, 70, 255, 0.15);
}

.twitch-overview-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.twitch-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 2px solid transparent;
}

.twitch-status-live {
  background: rgba(255, 70, 85, 0.18);
  color: #ffd7dc;
  border-color: var(--primary);
}

.twitch-status-offline {
  background: rgba(0, 255, 190, 0.16);
  color: #d8fff4;
  border-color: var(--secondary);
}

.embed-panel h2.twitch-overview-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.16rem, 1.7vw, 1.48rem);
  line-height: 1.18;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-align: left;
  font-weight: 700;
}

.twitch-overview-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.twitch-overview-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.twitch-page .embed-panel h2,
.twitch-page .embed-panel h3,
.youtube-page .embed-panel h2,
.youtube-page .embed-panel h3 {
  text-wrap: balance;
}

.twitch-content-section {
  margin: 0;
}

.twitch-schedule-section {
  margin: 0;
}

.twitch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: 0.6rem;
}

.embed-panel .twitch-section-header h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.45vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-align: left;
}

.twitch-section-link {
  font-size: 0.82rem;
  color: #d7bdff;
}

.twitch-section-link:hover,
.twitch-section-link:focus-visible {
  color: #efe0ff;
}

.twitch-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1200px) {
  .yt-card-grid,
  .twitch-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.twitch-schedule-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.twitch-schedule-days {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}

.twitch-schedule-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  position: relative;
  width: auto;
  min-width: clamp(88px, 10vw, 108px);
  max-width: 118px;
  padding: 0.38rem 0.5rem;
  border: 1px solid rgba(145, 70, 255, 0.32);
  border-radius: 8px;
  background: rgba(20, 24, 34, 0.75);
  color: var(--fg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  flex: 0 0 auto;
}

.twitch-schedule-day.has-events {
  border-color: rgba(0, 255, 190, 0.44);
  background: linear-gradient(180deg, rgba(0, 255, 190, 0.08) 0%, rgba(20, 24, 34, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 190, 0.08);
}

.twitch-schedule-day.has-events::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #00ffbe;
  box-shadow: 0 0 10px rgba(0, 255, 190, 0.75);
}

.twitch-schedule-day:hover,
.twitch-schedule-day:focus-visible,
.twitch-schedule-day.is-active {
  border-color: rgba(191, 148, 255, 0.92);
  background: rgba(145, 70, 255, 0.18);
  transform: translateY(-1px);
}

.twitch-schedule-day.has-events:hover,
.twitch-schedule-day.has-events:focus-visible,
.twitch-schedule-day.has-events.is-active {
  border-color: rgba(0, 255, 190, 0.88);
  background: linear-gradient(180deg, rgba(0, 255, 190, 0.18) 0%, rgba(20, 24, 34, 0.92) 100%);
}

.twitch-schedule-day-static {
  cursor: default;
}

.twitch-schedule-day-static:hover,
.twitch-schedule-day-static:focus-visible {
  transform: none;
}

.twitch-schedule-day-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.twitch-schedule-day-count {
  font-size: 0.68rem;
  color: var(--muted);
}

.twitch-schedule-day.has-events .twitch-schedule-day-count {
  color: #d8fff4;
}

.twitch-schedule-detail {
  min-height: 0;
  border: 1px solid rgba(145, 70, 255, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(145, 70, 255, 0.1) 0%, rgba(19, 24, 35, 0.92) 100%);
  padding: 0.82rem 0.9rem;
}

.twitch-schedule-detail-head,
.twitch-schedule-empty {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.twitch-schedule-empty-global {
  min-height: 150px;
  justify-content: center;
}

.embed-panel h3.twitch-schedule-detail-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-align: left;
  font-weight: 700;
}

.twitch-schedule-detail-subtitle,
.twitch-schedule-empty-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.twitch-schedule-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
}

.twitch-schedule-event {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem;
  background: rgba(145, 70, 255, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(145, 70, 255, 0.16);
}

.twitch-schedule-event:first-child {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(145, 70, 255, 0.16);
}

.twitch-schedule-event-artwork {
  flex-shrink: 0;
  width: 110px;
  height: 150px;
}

.twitch-schedule-game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(145, 70, 255, 0.24);
}

.twitch-schedule-game-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.12) 0%, rgba(0, 255, 190, 0.08) 100%);
  border-radius: 4px;
  border: 1px dashed rgba(145, 70, 255, 0.24);
}

.twitch-schedule-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.twitch-event-time-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.twitch-event-time {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #efe0ff;
}

.twitch-schedule-event-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.28;
  color: #fff;
  margin: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.twitch-event-game-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.twitch-event-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.twitch-genre-badge {
  display: inline-block;
  background: rgba(0, 255, 190, 0.12);
  color: #00ffbe;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 190, 0.24);
}

.twitch-event-meta-line {
  font-size: 0.78rem;
  color: #c9b3ff;
}

.twitch-event-summary {
  font-size: 0.8rem;
  color: #b8a8d8;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.twitch-event-game-details-unavailable,
.twitch-event-game-details-error {
  font-size: 0.70rem;
  color: #9986c2;
  font-style: italic;
}

.twitch-schedule-event-link {
  width: fit-content;
  font-size: 0.68rem;
  color: #d7bdff;
}

.twitch-schedule-event-link:hover,
.twitch-schedule-event-link:focus-visible {
  color: #efe0ff;
}

.twitch-content-card {
  background: #111;
  border: 1px solid rgba(145, 70, 255, 0.45);
  border-radius: 8px;
  overflow: hidden;
  min-height: 100%;
}

.twitch-card-thumb-link {
  display: block;
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.twitch-card-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.22) 42%, rgba(8, 12, 18, 0.94) 100%);
  z-index: 0;
}

.twitch-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.twitch-card-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 1.45rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.twitch-card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.82);
  color: #efe0ff;
  font-size: 0.68rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.embed-panel h3.twitch-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.twitch-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: #f2e8ff;
}

.twitch-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.82);
  backdrop-filter: blur(6px);
}

.twitch-content-card:hover .twitch-card-thumb,
.twitch-card-thumb-link:focus-visible .twitch-card-thumb {
  transform: scale(1.04);
}

.twitch-card-thumb-link:focus-visible {
  outline: 2px solid rgba(145, 70, 255, 0.88);
  outline-offset: 2px;
}

.twitch-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ========================================
   CAROUSEL STYLES
   YouTube/content carousel with smooth animations
   Navigation controls, touch support, responsive indicators
   ======================================== */

.carousel {
  position: relative;
  width: 100%;
  margin: var(--spacing-lg) 0;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--card-bg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  opacity: 0.5;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  gap: 0;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.carousel-video-container {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.25);
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.carousel-slide.active .carousel-video-container {
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Override vertical aspect ratio for horizontal carousel videos */
.carousel-video-container.carousel-video-horizontal {
  width: 90%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
}

.carousel-embed {
  width: 100%;
  height: 100%;
  border: none;
}

.embed-lazy {
  width: 100%;
  height: 100%;
}

.embed-lazy-trigger {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--fg);
}

.embed-lazy-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.embed-lazy-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
  color: var(--secondary);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.embed-lazy-trigger:hover .embed-lazy-overlay,
.embed-lazy-trigger:focus-visible .embed-lazy-overlay {
  color: var(--primary);
}

.embed-lazy-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-sm);
  pointer-events: none;
  z-index: 10;
}

.carousel-button {
  pointer-events: all;
  background: rgba(0, 255, 190, 0.2);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-button:hover {
  background: var(--secondary);
  color: var(--bg);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 190, 0.4);
}

.carousel-button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 255, 190, 0.3);
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot:hover {
  background: var(--secondary);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 255, 190, 0.6);
  transform: scale(1.3);
}

.carousel-dot:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dynamic status messages */
.embed-panel .carousel-status-message,
.twitch-card-grid .twitch-status-message {
  font-size: var(--text-base);
  text-align: center;
  line-height: var(--leading-normal);
  margin: var(--spacing-lg) 0;
  border-radius: 8px;
  padding: var(--spacing-md);
}

.embed-panel .carousel-status-message small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.embed-panel .carousel-status-error,
.twitch-card-grid .twitch-status-error {
  color: var(--primary);
  background: rgba(255, 70, 85, 0.1);
  border: 2px solid var(--primary);
}

.embed-panel .carousel-status-empty,
.twitch-card-grid .twitch-status-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   FOOTER
   Footer layout, legal links, copyright info
   ======================================== */

:where(body.site-page) > footer {
  text-align: center; 
  padding: var(--subsection-padding); 
  background: var(--bg); 
  margin-top: auto; 
}

.legal-links-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

.legal-links-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-links-footer a:hover {
  color: var(--primary);
}

.social-links { display: flex; justify-content: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-xs); }
.social-links a { font-size: 1.6rem; color: var(--primary); transition: color 0.2s; }
.social-links a:hover { color: var(--secondary); }
:where(body.site-page) > footer p { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-normal); letter-spacing: var(--tracking-normal); margin: 0; }

/* ===== Shared Page Hero ===== */
.hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hero-text-gap);
  text-align: center;
  padding: var(--hero-padding-top) var(--spacing-sm) var(--hero-padding-bottom);
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner h1 {
  font-family: var(--font-body);
  font-size: var(--text-page-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 70, 85, 0.22);
  margin: 0;
  font-weight: 700;
}

.hero-banner .hero-banner-subtitle {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

/* ===== Legal Pages Specific Styles ===== */

.legal-header .site-name [data-legal="site-name"] {
  color: var(--fg);
  font-weight: 600;
}

.legal-header .site-name [data-legal="business-description"] {
  color: var(--muted);
  font-weight: 500;
}

.legal-header .back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all 0.3s;
}

.legal-header .back-link:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 10px var(--primary);
}

/* Legal Page Content */
.legal-content {
  max-width: var(--legal-max-width);
  margin: 0 auto;
  padding: var(--post-breadcrumb-start-gap) var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
  flex: 1;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: clamp(1.28rem, 1.9vw, 1.62rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 2.5rem 0 var(--spacing-sm) 0;
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.legal-content h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  color: var(--primary);
  margin: var(--spacing-md) 0 0.75rem 0;
  font-weight: 700;
  line-height: 1.3;
}

.legal-content h4 {
  font-size: 1rem;
  color: var(--fg);
  margin: var(--spacing-sm) 0 var(--spacing-xs) 0;
  font-weight: 700;
}

/* ========================================
   LEGAL PAGES STYLES
   Legal page layouts, forms, content formatting
   Includes headers, content areas, metadata sections
   ======================================== */

.legal-content p {
  color: var(--fg);
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--spacing-sm) 0;
  padding-left: 2rem;
  color: var(--fg);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-content strong {
  color: var(--primary);
  font-weight: 600;
}

.legal-content em {
  color: var(--secondary);
}

.legal-content code {
  background: var(--card-bg);
  color: var(--primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* Legal Page Tables */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-sm) 0;
  font-size: 0.9rem;
}

.legal-content table th {
  background: var(--card-bg);
  color: var(--primary);
  padding: 0.75rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.legal-content table td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
}

.legal-content table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Info Boxes (Legal Pages) */
.info-box {
  background: rgba(255, 70, 85, 0.05);
  border-left: 4px solid var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-md) 0;
  border-radius: 4px;
}

.info-box.warning {
  background: rgba(0, 255, 190, 0.05);
  border-left-color: var(--secondary);
}

.info-box.important {
  background: rgba(255, 184, 0, 0.05);
  border-left-color: var(--accent);
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Legal Metadata */
.legal-metadata {
  background: var(--card-bg);
  padding: var(--spacing-sm);
  border-radius: 8px;
  margin-bottom: var(--subsection-padding);
  font-size: 0.9rem;
}

/* ========================================
   ORDER CONFIRMATION MODAL
   Success confirmation dialog with order details
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 30, 46, 0.98), rgba(14, 20, 33, 0.98));
  border: 1px solid rgba(0, 255, 190, 0.35);
  border-radius: 12px;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 255, 190, 0.25), 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content > h2 {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.2rem 0;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(0, 255, 190, 0.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-close:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.confirmation-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.confirmation-message {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  color: rgba(240, 244, 248, 0.9);
  line-height: 1.65;
  margin: 0;
}

.confirmation-detail {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 190, 0.25);
  border-radius: 10px;
  padding: 1rem;
}

.confirmation-detail label,
.confirmation-detail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.order-ref-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 190, 0.08);
  border: 1px solid rgba(0, 255, 190, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
}

.order-ref-display code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--secondary);
  word-break: break-all;
  margin: 0;
  padding: 0;
}

.copy-button {
  flex-shrink: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 190, 0.5);
  background: rgba(0, 255, 190, 0.12);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-button:hover {
  background: rgba(0, 255, 190, 0.22);
  border-color: rgba(0, 255, 190, 0.8);
}

.copy-button:active {
  transform: scale(0.98);
}

.copy-button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.confirmation-detail p {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(240, 244, 248, 0.88);
  line-height: 1.55;
}

.confirmation-detail p strong {
  display: inline;
  text-transform: none;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0;
}

.confirmation-detail ul {
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(240, 244, 248, 0.88);
  line-height: 1.65;
}

.confirmation-detail li {
  margin-bottom: 0.45rem;
}

.confirmation-detail a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.confirmation-detail a:hover {
  color: #fff;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.button-primary {
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.3), rgba(0, 255, 190, 0.15));
  border: 1px solid rgba(0, 255, 190, 0.6);
  color: var(--secondary);
}

.button-primary:hover {
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.42), rgba(0, 255, 190, 0.25));
  border-color: rgba(0, 255, 190, 0.9);
  box-shadow: 0 0 16px rgba(0, 255, 190, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(240, 244, 248, 0.9);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-metadata p {
  margin: 0.25rem 0;
}

.legal-metadata strong {
  color: var(--accent);
}

/* Legal Footer */
.legal-footer {
  text-align: center;
  padding: var(--subsection-padding);
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.legal-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: var(--spacing-xs) 0;
}

.legal-footer .legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.legal-footer .legal-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.legal-footer .legal-links a:hover {
  color: var(--secondary);
}

.legal-footer .legal-links a.active {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ===== End Legal Pages Styles ===== */

/* ========================================
   RESPONSIVE DESIGN
   Mobile-first media queries for tablet (768px)
   and smartphone (480px) breakpoints
   Adjusts font sizes, layout, spacing for smaller screens
   ======================================== */

@media (max-width: 768px) {
  :root {
    --post-breadcrumb-start-gap: 0.92rem;
    --hero-padding-top: 0.92rem;
    --hero-padding-bottom: 0.9rem;
    --hero-text-gap: 0.45rem;
    --breadcrumb-padding-top: 0.5rem;
    --breadcrumb-padding-bottom: 0.3rem;
  }

  .main-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .subtitle { font-size: 0.98rem; }
  .home-marquee { max-width: 460px; }
  .card-decor::after { width: 72px; height: 72px; }
  .main-nav {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand social toggle"
      "links links links"
      "right right right";
    align-items: center;
  }
  .nav-brand {
    grid-area: brand;
    justify-self: start;
  }
  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
  }
  .nav-links {
    grid-area: links;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: max-height 0.22s ease, opacity 0.2s ease, padding-top 0.2s ease;
  }
  .main-nav.is-menu-open .nav-links {
    max-height: 24rem;
    opacity: 1;
    pointer-events: auto;
    padding-top: 0.55rem;
  }
  .nav-links a {
    margin: 0;
    font-size: 0.78rem;
    padding: 0.52rem 0.62rem;
    white-space: normal;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    line-height: 1.25;
  }
  .nav-links a.active {
    color: #fff8e6;
    text-shadow: 0 0 14px rgba(255, 184, 0, 0.4);
  }
  .nav-links a + a {
    padding-left: 0;
    --nav-active-underline-inset: 0;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a + a::before { display: none; }
  .nav-social-row {
    margin-top: 0;
    justify-self: center;
    gap: 0.35rem;
    width: auto;
    min-width: 0;
  }
  .nav-right {
    grid-area: right;
    gap: 0.6rem;
    justify-self: center;
  }
  .nav-social {
    gap: 0.45rem;
    padding-right: 0;
  }
  .nav-social a { font-size: 1.2rem; }
  .cards-container { gap: 1rem; padding: 1rem 0.5rem 0.5rem 0.5rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .about-section h2 { font-size: clamp(1.28rem, 4.2vw, 1.6rem); }
  .about-section p { font-size: 1rem; }
  .about-lead { font-size: 1.08rem; }
  .about-story-row,
  .about-story-row:nth-child(even) {
    grid-template-columns: 1fr 130px;
  }
  .about-story-text { padding: 0.78rem 0.8rem; }
  .about-story-art img { width: 120px; }
  .about-game-list { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .shop-preview-grid { grid-template-columns: 1fr; gap: 1rem; }
  .shop-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  .product-detail-card .shop-product-image {
    width: min(100%, 20rem);
    max-height: 20rem;
  }
  .product-image-strip { width: min(100%, 20rem); }
  .product-page #product-price { font-size: clamp(1.7rem, 9vw, 2.25rem); }
  .shop-notify { padding: 0.75rem; }
  .shop-notify p { font-size: 0.85rem; }
  .embed-frame { min-height: 360px; }

  .cart-fab {
    right: 0.65rem;
    bottom: 0.65rem;
    min-width: 8.5rem;
    padding: 0.5rem 0.7rem;
  }

  .cart-drawer {
    width: calc(100% - var(--page-sb-width, 0px));
    grid-template-rows: auto auto auto auto;
    gap: 0.45rem;
    padding: 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
  }
  .cart-items {
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }
  .cart-drawer-footer {
    position: relative;
    z-index: 1;
    padding-top: 0.75rem;
    background: linear-gradient(180deg, rgba(21, 30, 46, 0.98), rgba(14, 20, 33, 0.99));
  }
  .cart-item-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-qty { justify-content: space-between; }
  .cart-drawer-actions { grid-template-columns: 1fr; }
  .cart-shipping-form { grid-template-columns: 1fr; }
  .cart-drawer-title { font-size: var(--text-base); }
  .cart-drawer-summary,
  .cart-item-meta,
  .cart-checkout-status,
  .cart-checkout-trust {
    font-size: var(--text-base);
  }
  .cart-empty-link { width: 100%; }

  .twitch-overview-card { padding: 0.8rem; }
  .twitch-card-grid,
  .yt-card-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  
  /* Page hero & legal responsive */
  .hero-banner h1 { font-size: clamp(1.72rem, 5.5vw, 2.2rem); }
  .legal-content { padding: 1rem var(--spacing-sm) var(--spacing-md) var(--spacing-sm); }
  .legal-content h2 { font-size: 1.16rem; }
  .legal-content h3 { font-size: 1.04rem; }
  .legal-content p,
  .legal-content li { font-size: 0.96rem; }
  .legal-content table { font-size: 0.8rem; }
  .legal-content table th,
  .legal-content table td { padding: var(--spacing-xs); }
  
  /* Carousel responsive */
  .carousel-slide { min-height: 500px; }
  .carousel-content { padding: 0; }
  .carousel-button { width: 45px; height: 45px; font-size: 1rem; }

  /* Twitch Schedule Mobile */
  .twitch-schedule-shell {
    grid-template-columns: minmax(84px, 98px) minmax(0, 1fr);
    align-items: start;
  }

  .twitch-schedule-days {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .twitch-schedule-day {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0.42rem 0.35rem;
  }

  .twitch-schedule-detail { padding: 0.7rem; }

  .twitch-schedule-event {
    gap: 0.45rem;
    padding: 0.4rem;
  }

  .twitch-schedule-event-artwork {
    width: 82px;
    height: 114px;
  }

  .twitch-schedule-day-label,
  .twitch-schedule-day-count { font-size: 0.62rem; }

  .twitch-schedule-event-title {
    font-size: 0.8rem;
  }

  .twitch-event-game-info {
    font-size: 0.68rem;
  }

  .twitch-genre-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
  }

  .twitch-event-meta-line {
    font-size: 0.66rem;
  }

  .twitch-event-summary {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
  }

  .home-page .home-cabinet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    row-gap: 0.45rem;
    column-gap: 0.45rem;
  }

  .home-page .home-cabinet-grid > a.arcade-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    justify-self: center;
  }

  .home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(2):nth-of-type(3n + 1),
  .home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(1):nth-of-type(3n + 2) {
    grid-column: auto;
  }

  .home-page .arcade-link {
    grid-column: span 1;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-page .arcade-machine .top .marquee-title {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }
  .home-page .arcade-machine .board .button {
    top: 42%;
    width: 5.25%;
    height: 12.5%;
    border-width: 3px;
  }
  .home-page .arcade-machine .screen-emote { max-width: 56px; }
}

@media (max-width: 480px) {
  :root {
    --post-breadcrumb-start-gap: 0.82rem;
    --hero-padding-top: 0.82rem;
    --hero-padding-bottom: 0.74rem;
    --hero-text-gap: 0.38rem;
    --breadcrumb-padding-top: 0.45rem;
    --breadcrumb-padding-bottom: 0.24rem;
  }

  .main-title { font-size: 1.85rem; }
  .subtitle { font-size: 0.92rem; }
  .home-header-art { margin-bottom: 0.25rem; }
  .home-marquee { max-width: 300px; }
  .card-decor::after { width: 60px; height: 60px; }
  .decor-tr::after { top: -22px; right: -6px; }
  .decor-tl::after { top: -22px; left: -6px; }
  .decor-br::after { bottom: -18px; right: -6px; }
  .decor-bl::after { bottom: -18px; left: -6px; }
  :where(body.site-page) > header:not(.hero-banner) { padding: 0.5rem 0.5rem 0.5rem 0.5rem; }

  .twitch-schedule-shell {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.45rem;
  }

  .twitch-schedule-day {
    padding: 0.38rem 0.28rem;
  }

  /* Twitch Schedule Mobile Small */
  .twitch-schedule-event {
    gap: 0.4rem;
    padding: 0.35rem;
  }

  .twitch-schedule-event-artwork {
    width: 75px;
    height: 105px;
  }

  .twitch-schedule-event-title {
    font-size: 0.82rem;
  }

  .twitch-event-game-info {
    font-size: 0.68rem;
  }

  .twitch-genre-badge {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
  }

  .twitch-event-summary {
    -webkit-line-clamp: 2;
  }
  .main-nav {
    padding: 0.5rem 0.35rem;
    gap: 0.45rem;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand social toggle"
      "links links links"
      "right right right";
  }
  .nav-brand { margin-left: 0; }
  .nav-logo { display: none; }
  .nav-logo-mobile { display: block; }
  .nav-toggle { width: 2rem; height: 2rem; }
  .nav-links { gap: 0.28rem; }
  .nav-links a {
    margin: 0;
    font-size: 0.74rem;
    padding: 0.46rem 0.56rem;
    white-space: normal;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    line-height: 1.25;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(0, 255, 190, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 190, 0.2);
  }
  .nav-links a.active {
    color: #fffdf4;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.24), rgba(255, 184, 0, 0.3));
    box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.34), 0 0 16px rgba(255, 184, 0, 0.14);
    text-shadow: none;
  }
  .nav-links a + a { padding-left: 0; --nav-active-underline-inset: 0; }
  .nav-links a.active::after { display: none; }
  .nav-links a + a::before { display: none; }
  .nav-social-row { margin-top: 0; gap: 0.24rem; width: auto; min-width: 0; }
  .nav-right { gap: 0.5rem; }
  .nav-social { gap: 0.28rem; padding-right: 0; }
  .nav-social a { font-size: 0.9rem; }
  .nav-cart-btn { width: 1.75rem; height: 1.75rem; font-size: 0.85rem; }
  .about-hero { padding: 0.95rem 0.9rem; }
  .about-kicker { font-size: 0.58rem; }
  .about-section h2 { font-size: 1.14rem; }
  .about-section p { font-size: 0.95rem; }
  .about-lead { font-size: 0.98rem; }
  .about-story-row,
  .about-story-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .about-story-row:nth-child(even) .about-story-text,
  .about-story-row:nth-child(even) .about-story-art {
    order: initial;
  }
  .about-story-art img { width: 96px; }
  .about-recent-games { padding: 0.85rem; }
  .about-game-item {
    grid-template-columns: 46px 1fr;
    padding: 0.5rem;
  }
  .about-game-art {
    width: 46px;
    height: 64px;
  }
  .shop-section h2 { font-size: 1.16rem; }
  .shop-intro { font-size: 0.96rem; }
  .shop-products-grid { grid-template-columns: 1fr; }
  .shop-preview-icon { font-size: 2.5rem; }
  .embed-frame { min-height: 280px; }
  
  /* Page hero & legal responsive */
  .hero-banner h1 { font-size: 1.42rem; word-break: break-word; }
  .legal-header .back-link { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .legal-content { padding: var(--spacing-sm) 0.75rem; }
  .legal-content h2 { font-size: 1.02rem; }
  .legal-content ul,
  .legal-content ol { padding-left: var(--spacing-md); }
  .info-box { padding: 0.75rem var(--spacing-sm); }
  .legal-footer .legal-links { flex-direction: column; gap: var(--spacing-xs); }
  
  .cta-coin::before { top: 0.35rem; left: 0.35rem; width: 16px; height: 16px; }
  
  /* Carousel responsive */
  .carousel-slide { min-height: auto; }
  .carousel-content { padding: 0; gap: 0; }
  .carousel-button { width: 40px; height: 40px; font-size: 0.9rem; }
  .carousel-indicators { gap: 6px; }
  .carousel-dot { width: 10px; height: 10px; }

  .home-page .home-cabinet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    row-gap: 0.35rem;
    column-gap: 0.35rem;
    padding-top: calc(var(--content-top-spacing) + 1.2rem);
  }

  .home-page .home-cabinet-grid > a.arcade-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    justify-self: center;
  }

  .home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(2):nth-of-type(3n + 1),
  .home-page .home-cabinet-grid > a.arcade-link:nth-last-of-type(1):nth-of-type(3n + 2) {
    grid-column: auto;
  }

  .home-page .arcade-link {
    grid-column: span 1;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-page .arcade-machine .top .marquee-title {
    font-size: 0.5rem;
    letter-spacing: 0.045em;
  }
  .home-page .arcade-machine .board .button {
    width: 5%;
    height: 11.5%;
    border-width: 2px;
  }
  .home-page .arcade-machine .screen-emote { max-width: 50px; }
}

@keyframes bounce {
  from { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes translate {
  from { background-position: 0 0; }
  to { background-position: 0 16px; }
}

/* ========================================
   PRINT STYLES
   Legal pages and content optimization for printing
   Removes interactive elements, optimizes colors for print
   ======================================== */

@media print {
  .legal-header .back-link,
  .legal-footer .legal-links { display: none; }
  .legal-content h2,
  .legal-content h3,
  .legal-content strong { color: black; }
  .legal-content table th { background: #f0f0f0; color: black; }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus Indicators - WCAG 2.4.7 Focus Visible */
:where(body.site-page) a:focus,
:where(body.site-page) button:focus,
:where(body.site-page) .card:focus,
:where(body.site-page) .arcade-link:focus,
:where(body.site-page) input:focus,
:where(body.site-page) textarea:focus,
:where(body.site-page) select:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* High contrast focus for better visibility */
:where(body.site-page) a:focus-visible,
:where(body.site-page) button:focus-visible,
:where(body.site-page) .card:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 255, 190, 0.2);
}

:where(body.site-page) .arcade-link:focus-visible,
:where(body.site-page) .nav-links a:focus-visible,
:where(body.site-page) .nav-social a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 255, 190, 0.25);
}

/* Prevent focus rings on mouse click while preserving keyboard visibility. */
:where(body.site-page) a:focus:not(:focus-visible),
:where(body.site-page) button:focus:not(:focus-visible),
:where(body.site-page) .card:focus:not(:focus-visible),
:where(body.site-page) .arcade-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Ensure skip-link target is not hidden behind sticky navigation. */
:where(body.site-page) #main-content {
  scroll-margin-top: 5.5rem;
}

/* Skip to Main Content Link - WCAG 2.4.1 Bypass Blocks */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--secondary);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  transform: translateY(-120%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  pointer-events: auto;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced Motion Support - WCAG 2.3.3 Animation from Interactions */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Keep essential transitions for usability */
  :where(body.site-page) a:focus,
  :where(body.site-page) button:focus,
  :where(body.site-page) .card:focus {
    transition: outline 0.1s ease;
  }

  /* Respect reduced-motion requests by disabling continuous marquee motion. */
  .home-page .arcade-machine .screen-display {
    animation: none !important;
  }

  .home-page .arcade-machine .screen-emote {
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  .nav-links a,
  .legal-links-footer a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  :where(body.site-page) a:focus-visible,
  :where(body.site-page) button:focus-visible,
  :where(body.site-page) .card:focus-visible,
  :where(body.site-page) .arcade-link:focus-visible {
    outline-width: 4px;
  }
}

/* Screen Reader Only Text - Utility class for accessible labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Ensure focus is visible on all card interactions */
.nav-social a:focus {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
/* Coming Soon Cards - Non-interactive placeholder cards */
.coming-soon-card {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  position: relative;
}

/* Coming Soon Tag - Visual indicator */
.coming-soon-card .coming-soon-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--primary);
  color: var(--bg);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(255, 70, 85, 0.4);
}

/* ========================================
   ORDER STATUS TRACKING PAGE
   Public order lookup and fulfillment timeline
   ======================================== */

.order-status-section {
  padding: var(--post-breadcrumb-start-gap) 1rem 3rem 1rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.order-status-intro {
  text-align: center;
  margin: 0 0 var(--spacing-lg) 0;
}

.order-status-intro p {
  color: rgba(240, 244, 248, 0.9);
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  max-width: var(--measure-copy);
  margin: 0 auto;
}

.order-lookup-card {
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(0, 255, 190, 0.35);
  border-radius: 12px;
  padding: 2rem;
  max-width: 32rem;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 0 20px rgba(0, 255, 190, 0.12);
}

.order-lookup-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-group input {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 190, 0.35);
  background: rgba(10, 18, 27, 0.9);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 0;
  border-color: rgba(0, 255, 190, 0.7);
  box-shadow: 0 0 12px rgba(0, 255, 190, 0.2);
}

.lookup-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 190, 0.5);
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.2), rgba(0, 255, 190, 0.1));
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.lookup-button:hover {
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.35), rgba(0, 255, 190, 0.2));
  border-color: rgba(0, 255, 190, 0.8);
  box-shadow: 0 0 12px rgba(0, 255, 190, 0.25);
}

.lookup-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lookup-button:active {
  transform: scale(0.98);
}

.order-status-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.order-status-display[hidden] {
  display: none !important;
}

.order-summary-card {
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(255, 70, 85, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.12);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.summary-header h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--accent);
}

.fulfillment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-checkout {
  background: rgba(255, 70, 85, 0.15);
  color: #ffd4d8;
  border: 1px solid rgba(255, 70, 85, 0.4);
}

.badge-submitted {
  background: rgba(0, 184, 255, 0.15);
  color: #d4e7ff;
  border: 1px solid rgba(0, 184, 255, 0.4);
}

.badge-processing {
  background: rgba(255, 184, 0, 0.15);
  color: #ffe8b5;
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.badge-fulfilled {
  background: rgba(0, 255, 190, 0.15);
  color: #d8fff4;
  border: 1px solid rgba(0, 255, 190, 0.4);
}

.badge-cancelled {
  background: rgba(179, 38, 30, 0.2);
  color: #ffd7d4;
  border: 1px solid rgba(179, 38, 30, 0.45);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
}

.summary-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.summary-item label,
.summary-item strong {
  display: block;
}

.summary-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#summary-ref {
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.35;
}

.summary-item-label {
  display: block;
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-item-value {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 700;
  color: var(--fg);
}

.order-timeline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 190, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0;
}

.order-timeline h3 {
  margin: 0 0 1.2rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 255, 190, 0.4), rgba(0, 255, 190, 0.1));
  pointer-events: none;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 190, 0.3);
  background: rgba(0, 255, 190, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-top: -2px;
  z-index: 1;
  transition: all 0.2s ease;
}

.timeline-item.done .timeline-marker {
  border-color: rgba(0, 255, 190, 0.8);
  background: rgba(0, 255, 190, 0.2);
  color: var(--secondary);
}

.timeline-item.current .timeline-marker {
  width: 50px;
  height: 50px;
  border-color: var(--secondary);
  background: rgba(0, 255, 190, 0.15);
  box-shadow: 0 0 16px rgba(0, 255, 190, 0.35);
  color: var(--secondary);
}

.timeline-item.cancelled .timeline-marker {
  border-color: rgba(179, 38, 30, 0.7);
  background: rgba(179, 38, 30, 0.2);
  box-shadow: 0 0 16px rgba(179, 38, 30, 0.25);
  color: #ffb4ad;
}

.timeline-content {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 0.25rem;
}

.timeline-content h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.timeline-content p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.order-items-card {
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

.order-items-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.item-details {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.item-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.item-variant {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
}

.item-sku {
  margin: 0.2rem 0 0;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(240, 244, 248, 0.75);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-qty {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 1rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 255, 190, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 190, 0.2);
}

.order-info-box {
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.08), rgba(0, 255, 190, 0.04));
  border: 1px solid rgba(0, 255, 190, 0.25);
  border-radius: 10px;
  padding: 1rem;
  margin: 0;
}

.order-info-box h3,
.order-info-box h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-info-box p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(240, 244, 248, 0.85);
  line-height: 1.6;
}

.order-info-box ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.order-info-box li {
  color: rgba(240, 244, 248, 0.88);
  line-height: 1.45;
}

.order-info-box li.next-step.current {
  color: #ffffff;
}

.order-info-box li.next-step.current strong {
  color: var(--secondary);
}

.order-info-box li.next-step.done {
  color: rgba(216, 255, 244, 0.88);
}

.order-loading,
.order-not-found {
  text-align: center;
  padding: 2rem;
}

.order-loading:not([hidden]),
.order-not-found:not([hidden]) {
  display: block;
}

.order-loading[hidden],
.order-not-found[hidden] {
  display: none !important;
}

.loading-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(0, 255, 190, 0.2);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.order-loading p,
.order-not-found p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
}

.order-not-found-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.order-message {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0.5rem 0;
}

.order-message[data-kind="error"] {
  color: #ffb3b3;
}

.retry-button,
.new-lookup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 190, 0.5);
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.2), rgba(0, 255, 190, 0.1));
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.retry-button:hover,
.new-lookup-button:hover {
  background: linear-gradient(135deg, rgba(0, 255, 190, 0.35), rgba(0, 255, 190, 0.2));
  border-color: rgba(0, 255, 190, 0.8);
  box-shadow: 0 0 12px rgba(0, 255, 190, 0.25);
}

.retry-button:focus-visible,
.new-lookup-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .order-lookup-card {
    padding: 1.5rem;
    margin: 0 auto var(--spacing-md);
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-summary-card,
  .order-items-card,
  .order-timeline {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .order-status-section {
    padding: 1rem 0.75rem 2rem 0.75rem;
  }

  .order-lookup-card {
    padding: 1.2rem;
    margin: 0 auto var(--spacing-md);
  }

  .input-wrapper {
    flex-direction: column;
  }

  .lookup-button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .summary-header h2 {
    font-size: 1.1rem;
  }

  .order-item {
    align-items: flex-start;
    gap: 0.6rem;
  }

  .item-image {
    width: 52px;
    height: 52px;
  }

  .item-details {
    width: 100%;
  }

  .item-qty {
    margin-left: 0;
    align-self: flex-start;
  }

  #summary-ref {
    font-size: 0.78rem;
  }

  .timeline-marker {
    width: 38px;
    height: 38px;
  }

  .timeline-item.current .timeline-marker {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 400px) {
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}