@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #07080b;
  --bg-subtle: #0d0f14;
  --bg-card: rgba(15, 18, 25, 0.75);
  --bg-card-hover: rgba(22, 26, 37, 0.9);
  --bg-elevated: #151821;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(200, 255, 69, 0.35);
  --border-active: rgba(56, 189, 248, 0.5);
  
  --text-main: #f3f4f6;
  --text-muted: #949ba4;
  --text-dim: #606673;
  
  --acid: #c8ff45;
  --acid-glow: rgba(200, 255, 69, 0.32);
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.3);
  --violet: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.28);
  --gold: #fbbf24;
  --coral: #ff5c5c;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --max-width: 1240px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #10141f 0%, #07080b 60%);
  line-height: 1.6;
}

/* Full-Page Background Physics Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%);
}

.ambient-glow {
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 75vw;
  height: 55vh;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.06) 0%, rgba(200, 255, 69, 0.035) 40%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Links & Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

code, kbd, .mono {
  font-family: var(--font-mono);
}

.svg-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* TOP HUD HEADER */
.site-hud {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 11, 0.84);
  border-bottom: 1px solid var(--border-subtle);
}

.hud-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--text-main);
}

.logo-symbol {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--acid), #9fe81b);
  color: #07080b;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 0 16px var(--acid-glow);
}

.hud-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 480px;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover {
  color: var(--text-main);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.hud-btn.active {
  background: rgba(200, 255, 69, 0.12);
  border-color: var(--acid);
  color: var(--acid);
}

/* ==========================================
   PORTFOLIO TONE & CRINGE SLIDER CONTROLS
   ========================================== */

/* 1. TOP HUD FADER */
.cringe-slider-hud {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(12, 16, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 14px;
  border-radius: 10px;
  width: 100%;
  max-width: 360px;
  min-width: 260px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cringe-slider-hud:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.cringe-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.cringe-slider-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hud-led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse-glow 2s infinite;
}

.cringe-badge {
  color: var(--acid);
  font-weight: 800;
  background: rgba(200, 255, 69, 0.12);
  border: 1px solid rgba(200, 255, 69, 0.3);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.cringe-badge.tier-0 {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.cringe-badge.tier-1 {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

.cringe-badge.tier-2 {
  color: var(--acid);
  background: rgba(200, 255, 69, 0.12);
  border-color: rgba(200, 255, 69, 0.35);
  box-shadow: 0 0 10px rgba(200, 255, 69, 0.2);
}

.slider-track-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 3px 0 1px;
}

.hud-slider-notches {
  position: absolute;
  top: 5px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.hud-notch {
  width: 2px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
}

/* Custom Tactile Range Input for HUD */
.cringe-range-input.tactile-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #080b11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  margin: 0;
  position: relative;
  z-index: 2;
}

.cringe-range-input.tactile-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #444c5c 0%, #202735 50%, #131722 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px var(--acid-glow);
  cursor: grab;
  /* Horizontal grip ribs */
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0.3) 2px, transparent 2px, transparent 4px);
  background-size: 10px 8px;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cringe-range-input.tactile-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 18px var(--acid);
}

.cringe-range-input.tactile-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #444c5c 0%, #202735 50%, #131722 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px var(--acid-glow);
  cursor: grab;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.slider-label {
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  padding: 1px 3px;
  border-radius: 3px;
}

.slider-label:hover {
  color: var(--text-main);
}

.slider-label.active {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lbl-full {
  display: inline;
}

.lbl-short {
  display: none;
}

/* 2. PROMINENT HERO TONE CONSOLE */
.hero-tone-console {
  width: 100%;
  max-width: 740px;
  margin: 28px 0 34px 0;
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.92) 0%, rgba(10, 13, 20, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 22px 24px 20px;
  position: relative;
  z-index: 5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-tone-console:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.console-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.console-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: pulse-glow 2s infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.console-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.console-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.console-badge.tier-0 {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}

.console-badge.tier-1 {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.22);
}

.console-badge.tier-2 {
  color: var(--acid);
  background: rgba(200, 255, 69, 0.14);
  border: 1px solid rgba(200, 255, 69, 0.4);
  box-shadow: 0 0 16px rgba(200, 255, 69, 0.22);
}

/* Mechanical Slider Track Wrap */
.console-slider-track-wrap {
  position: relative;
  padding: 6px 0 20px;
}

.console-track-groove {
  position: relative;
  height: 14px;
  background: #06080d;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.console-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #38bdf8 0%, #c084fc 50%, var(--acid) 100%);
  box-shadow: 0 0 14px rgba(200, 255, 69, 0.4);
  pointer-events: none;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.console-detents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.detent {
  position: absolute;
  top: -2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detent:first-child { transform: translateX(0); }
.detent:last-child { transform: translateX(-100%); }

.detent-line {
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.detent-pip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 4px;
}

/* Hero Tactile Input */
.hero-tactile-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 4;
  margin: 0;
}

.hero-tactile-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(180deg, #485265 0%, #252e3d 48%, #181e2b 52%, #0e1219 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 16px var(--acid);
  cursor: grab;
  /* Distinct horizontal ribbed grip texture */
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.4) 2px, transparent 2px, transparent 4px);
  background-size: 14px 12px;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-tactile-input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9), 0 0 24px var(--acid);
}

.hero-tactile-input::-moz-range-thumb {
  width: 26px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(180deg, #485265 0%, #252e3d 48%, #181e2b 52%, #0e1219 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 16px var(--acid);
  cursor: grab;
}

/* Tier Cards Grid */
.console-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  outline: none;
}

.tier-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.tier-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tier-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.tier-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.tier-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  transition: color 0.2s ease;
}

/* Active Tier Highlights */
.tier-card[data-cringe="0"].active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(56, 189, 248, 0.3);
}
.tier-card[data-cringe="0"].active .tier-pct { color: #38bdf8; }

.tier-card[data-cringe="1"].active {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.15), inset 0 1px 0 rgba(192, 132, 252, 0.3);
}
.tier-card[data-cringe="1"].active .tier-pct { color: #c084fc; }

.tier-card[data-cringe="2"].active {
  border-color: var(--acid);
  background: rgba(200, 255, 69, 0.08);
  box-shadow: 0 4px 20px rgba(200, 255, 69, 0.18), inset 0 1px 0 rgba(200, 255, 69, 0.3);
}
.tier-card[data-cringe="2"].active .tier-pct { color: var(--acid); }

/* Toast Notifications */
.cringe-toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  background: rgba(15, 18, 26, 0.96);
  border: 1px solid var(--acid);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--acid-glow);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cringe-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 64px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-content {
  max-width: 860px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 255, 69, 0.08);
  border: 1px solid rgba(200, 255, 69, 0.25);
  color: var(--acid);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--acid) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent-italic {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.85vw, 1.25rem);
  color: #b0b6c2;
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-spring);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--acid);
  color: #08090d;
  box-shadow: 0 0 25px rgba(200, 255, 69, 0.32);
}

.btn-primary:hover {
  background: #dcff75;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(200, 255, 69, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-terminal {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
}

.btn-terminal:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

/* INTERACTIVE PARTICLE FIELD CONTROLLER */
.physics-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: fit-content;
}

.physics-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.physics-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.physics-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.physics-mode-btn.active {
  background: var(--acid);
  color: #090a0f;
  font-weight: 700;
  box-shadow: 0 0 12px var(--acid-glow);
}

/* FLOATING QUICK DOCK */
.desktop-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(17, 20, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.desktop-dock.dock-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(36px);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
}

.dock-item:hover {
  transform: translateY(-6px) scale(1.12);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dock-item.active {
  background: rgba(200, 255, 69, 0.15);
  border-color: var(--acid);
  color: var(--acid);
}

.dock-tooltip {
  position: absolute;
  top: -34px;
  opacity: 0;
  pointer-events: none;
  background: #090a0e;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-4px);
}

.dock-separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

/* MAIN CONTENT CONTAINER */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 140px;
}

/* SECTION HEADINGS */
.section-header {
  margin-bottom: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}

.section-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SPOTLIGHT CARD CONTAINER */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.spotlight-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* PYPI BADGES */
.pypi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* FEATURED PROJECT: SPINNERS ARENA */
.featured-showcase {
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.featured-visual-container {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #06070a;
}

.featured-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-showcase:hover .featured-visual-img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.1) 0%, rgba(7, 8, 11, 0.8) 100%),
              linear-gradient(90deg, transparent 60%, rgba(16, 19, 26, 0.9) 100%);
  pointer-events: none;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: var(--acid);
  color: #07080b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--acid-glow);
}

.interactive-arena-dial {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 12, 17, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

.spin-rpm-dial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed var(--acid);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--acid);
  transition: transform 0.2s linear;
}

.dial-stats {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
}

.dial-label {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.dial-value {
  color: #fff;
  font-weight: 700;
}

.dial-rev-btn {
  background: rgba(200, 255, 69, 0.15);
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dial-rev-btn:hover {
  background: var(--acid);
  color: #07080b;
}

.featured-content {
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: 0.12em;
}

.featured-content h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: #fff;
}

.featured-content p {
  color: #b5bac4;
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 32px;
}

.tag-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-item {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  z-index: 2;
}

.bento-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--acid);
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.bento-title {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}

.bento-desc {
  color: #a1a7b3;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: auto;
  width: fit-content;
}

.bento-link:hover {
  color: var(--acid);
  transform: translateX(4px);
}

/* TCUP EMG SIGNAL SIMULATOR */
.tcup-canvas-container {
  height: 120px;
  width: 100%;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

#tcup-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tcup-pulse-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tcup-pulse-btn:hover {
  background: var(--cyan);
  color: #07080b;
}

/* LOOPSENTRY WIDGET */
.loopsentry-widget {
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  font-size: 0.72rem;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-weight: 700;
}

.widget-badge {
  background: rgba(255, 92, 92, 0.15);
  border: 1px solid rgba(255, 92, 92, 0.3);
  color: var(--coral);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.flamegraph-sim {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
}

.task-name {
  width: 120px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-progress-track {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.task-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--acid));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.task-progress-fill.blocked {
  background: linear-gradient(90deg, #ff7163, #ff4136);
  animation: bar-glitch 1s infinite alternate;
}

.task-time {
  width: 55px;
  text-align: right;
  color: var(--text-muted);
}

/* NEAT CANVAS WIDGET */
.neat-canvas-container {
  height: 140px;
  width: 100%;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

#neat-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.neat-mutate-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid var(--violet);
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.neat-mutate-btn:hover {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 12px var(--violet-glow);
}

/* LAB & RESEARCH SECTION */
.lab-section {
  margin-bottom: 80px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.lab-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.lab-card h4 {
  font-size: 1.35rem;
  font-weight: 750;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.lab-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* DRAGGABLE TERMINAL WINDOW (amzker-sh) */
.terminal-window {
  position: fixed;
  top: 120px;
  right: 60px;
  width: min(600px, calc(100vw - 32px));
  height: 420px;
  background: rgba(10, 12, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-window.minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.95);
}

.terminal-window.maximized {
  top: 24px !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  width: calc(100vw - 48px) !important;
  height: calc(100vh - 48px) !important;
  border-radius: var(--radius-lg);
  z-index: 1500;
}

.terminal-window.collapsed {
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden !important;
}

.terminal-window.collapsed .terminal-body,
.terminal-window.collapsed > div:last-child {
  display: none !important;
}

.terminal-titlebar {
  height: 38px;
  background: rgba(20, 24, 34, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
  cursor: grab;
}

.terminal-titlebar:active {
  cursor: grabbing;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.dot-close { background: #ff5f56; }
.dot-min { background: #ffbd2e; }
.dot-max { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.terminal-actions-right {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  flex: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #d1d5db;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-output .prompt-prefix {
  color: var(--acid);
}

.terminal-output .highlight {
  color: var(--cyan);
}

.terminal-output .accent {
  color: var(--violet);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  color: var(--acid);
  font-weight: 700;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* COMMAND PALETTE MODAL */
.palette-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.palette-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.palette-modal {
  width: min(560px, calc(100vw - 32px));
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(200, 255, 69, 0.1);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-modal-backdrop.open .palette-modal {
  transform: translateY(0);
}

.palette-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.palette-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.palette-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.palette-item:hover, .palette-item.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.palette-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

/* ABOUT SECTION */
.about-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  background: linear-gradient(135deg, rgba(16, 19, 27, 0.6) 0%, rgba(22, 27, 39, 0.4) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
}

.about-text h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
}

.about-text p {
  color: #b0b6c2;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ANIMATIONS */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px var(--acid); }
}

@keyframes bar-glitch {
  0% { opacity: 0.8; }
  100% { opacity: 1; filter: drop-shadow(0 0 6px #ff4136); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 980px) {
  .featured-showcase { grid-template-columns: 1fr; }
  .bento-col-8, .bento-col-4, .bento-col-6 { grid-column: span 12; }
  .lab-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .hud-nav { display: none; }
  .terminal-window {
    top: auto;
    bottom: 90px;
    right: 16px;
    left: 16px;
    width: auto;
    height: 360px;
  }
}

@media (max-width: 720px) {
  .console-tier-cards {
    grid-template-columns: 1fr;
  }
  .console-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .hud-container {
    padding: 0 10px;
    gap: 8px;
    height: 56px;
  }
  .hud-left {
    gap: 6px;
    flex-shrink: 0;
  }
  .logo-text {
    display: none;
  }
  .hud-center {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .cringe-slider-hud {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 4px 8px;
    gap: 2px;
    border-radius: 8px;
  }
  .cringe-slider-header {
    font-size: 0.62rem;
  }
  .cringe-slider-title {
    font-size: 0.62rem;
    gap: 4px;
  }
  .cringe-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
    white-space: nowrap;
  }
  .cringe-range-input.tactile-slider {
    height: 6px;
  }
  .cringe-range-input.tactile-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
  .cringe-range-input.tactile-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }
  .lbl-full {
    display: none;
  }
  .lbl-short {
    display: inline;
    font-weight: 700;
    font-size: 0.62rem;
  }
  .slider-labels {
    font-size: 0.62rem;
    margin-top: 1px;
  }

  .hero-section {
    padding-top: 24px;
    padding-bottom: 160px;
    min-height: auto;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hud-actions { display: none; }

  .desktop-dock {
    width: auto;
    max-width: calc(100% - 24px);
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    bottom: 14px;
  }
  .desktop-dock.dock-hidden {
    transform: translateX(-50%) translateY(40px);
  }
  .dock-item {
    width: 38px;
    height: 38px;
  }
  .physics-hud {
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #ambient-canvas { display: none; }
}
