:root {
  --bg-color: #080c18;
  --panel-bg: rgba(16, 24, 44, 0.82);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.35);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.5);
  --accent-red: #ef4444;
  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Bungee', cursive, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(99, 102, 241, 0.15);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(239, 68, 68, 0.1) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(0.6rem, env(safe-area-inset-top)) max(0.6rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.6rem, env(safe-area-inset-left));
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  top: -80px;
  left: -80px;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
  bottom: -90px;
  right: -90px;
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 70%);
  top: 45%;
  left: 65%;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.1); }
  100% { transform: translate(-20px, 35px) scale(0.95); }
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* App Wrapper Container */
.game-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 530px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto;
}

/* Portal Navigation Tabs */
.portal-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: rgba(8, 12, 24, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.portal-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.portal-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.active-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.main-title {
  font-family: var(--font-logo);
  font-size: clamp(1.25rem, 4.2vw, 1.7rem);
  background: linear-gradient(135deg, #ffffff 25%, #fcd34d 65%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.tool-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.tool-btn:active {
  transform: scale(0.95);
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-item {
  background: rgba(10, 16, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.stat-icon {
  font-size: 1.1rem;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

/* ========================================================
   B-I-N-G-O PROGRESS BAR
   ======================================================== */
.bingo-bar {
  background: rgba(10, 15, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bingo-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.counter-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bingo-letters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(4px, 1.5vw, 8px);
}

.letter-box {
  height: clamp(44px, 11vw, 52px);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-box .char {
  font-family: var(--font-logo);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--text-dim);
  line-height: 1;
}

.letter-box .req {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 2px;
}

.letter-box .check-glow {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}

/* Unlocked Letters with custom colors */
.letter-box.unlocked {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.letter-box.unlocked .check-glow {
  opacity: 1;
  transform: scale(1);
}

.letter-box[data-letter="B"].unlocked {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}
.letter-box[data-letter="B"].unlocked .char,
.letter-box[data-letter="B"].unlocked .req { color: #ffffff; }

.letter-box[data-letter="I"].unlocked {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
}
.letter-box[data-letter="I"].unlocked .char,
.letter-box[data-letter="I"].unlocked .req { color: #ffffff; }

.letter-box[data-letter="N"].unlocked {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
}
.letter-box[data-letter="N"].unlocked .char,
.letter-box[data-letter="N"].unlocked .req { color: #ffffff; }

.letter-box[data-letter="G"].unlocked {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fcd34d;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}
.letter-box[data-letter="G"].unlocked .char,
.letter-box[data-letter="G"].unlocked .req { color: #111827; }

.letter-box[data-letter="O"].unlocked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}
.letter-box[data-letter="O"].unlocked .char,
.letter-box[data-letter="O"].unlocked .req { color: #ffffff; }

/* ========================================================
   5X5 BOARD & CELLS
   ======================================================== */
.board-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.board-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  background: rgba(10, 15, 30, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: clamp(6px, 1.8vw, 10px);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.7), 0 12px 30px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

.grid-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: clamp(5px, 1.5vw, 8px);
  width: 100%;
  height: 100%;
}

.cell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 900;
  color: var(--text-main);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  will-change: transform;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.cell:hover:not(.marked):not(.dragging):not(.drag-over):not(.blank-fill-mode) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.cell:active:not(.inline-editing) {
  transform: scale(0.92);
}

/* Drag & Drop States */
.cell.dragging {
  opacity: 0.35;
  transform: scale(0.9);
  border: 2px dashed #a855f7;
  background: rgba(168, 85, 247, 0.2);
}

.cell.drag-over {
  border: 2px solid #38bdf8 !important;
  background: rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transform: scale(1.08) !important;
  z-index: 15;
}

/* Inline Edit */
.cell.inline-editing {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
  cursor: text;
}

.cell-inline-input {
  width: 90%;
  height: 90%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 900;
  text-align: center;
  outline: none;
}

/* Marked Cell (Red Marker & Slash) */
.cell.marked {
  color: #fff;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
}

.cell.marked::before {
  content: '';
  position: absolute;
  inset: clamp(4px, 1.2vw, 6px);
  border: clamp(2.5px, 0.8vw, 3.5px) solid var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7), inset 0 0 6px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  animation: stamp-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cell.marked::after {
  content: '';
  position: absolute;
  width: 72%;
  height: clamp(2.5px, 0.7vw, 3.5px);
  background: var(--accent-red);
  transform: rotate(-35deg);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  pointer-events: none;
}

@keyframes stamp-pop {
  0% { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* SVG Line Overlay */
.lines-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.strike-line {
  stroke: #ef4444;
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.95));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 0.35s ease-out forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* ========================================================
   CLICK FILL MODE (1 -> 25)
   ======================================================== */
.click-fill-banner {
  display: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 95, 70, 0.45));
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.click-fill-banner.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fill-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fill-badge {
  background: #10b981;
  color: #064e3b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.fill-target-text {
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  font-weight: 700;
  color: #e2e8f0;
}

.next-num-highlight {
  font-size: clamp(1.15rem, 3.8vw, 1.4rem);
  font-weight: 900;
  color: #facc15;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
  margin: 0 2px;
  display: inline-block;
}

.fill-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn-fill-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.72rem;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.btn-fill-action:active {
  transform: scale(0.93);
}

.btn-fill-action.primary {
  background: #10b981;
  color: #064e3b;
  font-weight: 800;
  border-color: #34d399;
}

.btn-fill-action.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.cell.blank-fill-mode {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  color: transparent;
  cursor: pointer;
}

.cell.blank-fill-mode:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
}

.cell.filled-in-mode {
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10b981;
  color: #f0fdf4;
  animation: stamp-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================================
   CONTROLS BUTTONS
   ======================================================== */
.controls-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

button {
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button:active {
  transform: scale(0.96);
}

.btn-fill-mode {
  grid-column: span 2;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #ffffff;
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-fill-mode:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.82rem;
}

.btn-secondary:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-outline {
  grid-column: span 2;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  font-size: 0.82rem;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.28);
}

/* Status Tip */
.status-tip {
  font-size: clamp(0.72rem, 2.3vw, 0.8rem);
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* Win Banner Toast */
.win-banner {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 2px solid #818cf8;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
  z-index: 1001;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: min(92%, 440px);
}

.win-banner.active {
  bottom: 24px;
}

.win-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.win-icon {
  font-size: 2.2rem;
  animation: bounce 0.8s infinite alternate ease-in-out;
}

.win-text h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fcd34d;
}

.win-text p {
  font-size: 0.78rem;
  color: #c7d2fe;
}

.btn-win {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  margin-left: auto;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@media (max-width: 420px) {
  .game-container {
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .controls-bar {
    gap: 0.4rem;
  }
}
