/* ==========================================================================
   Brand Colors Studio & Game - Modern Premium Dark CSS System
   ========================================================================== */

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

:root {
  --bg-main: #090d16;
  --bg-card: #111726;
  --bg-card-elevated: #172033;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;
  --accent-pink: #ec4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.35);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Header ─── */
.brand-header {
  height: 64px;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-hub:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.brand-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Dashboard Layout ─── */
.brand-dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 60px 24px;
}

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

.header-text h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.header-text p {
  color: var(--text-secondary);
  font-size: 14px;
}

.btn-create-game {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-create-game:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── Games Grid ─── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.brand-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.brand-logo-thumbnail {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-card-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.brand-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Color Swatches in Cards & Studio */
.palette-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.color-swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
}

.color-swatch-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-play-test {
  flex: 1;
  background: #10b981;
  color: #000;
  font-weight: 900;
  font-size: 13.5px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-play-test:hover {
  background: #059669;
}

.btn-icon-action {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-icon-action.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ── Wide Single-Frame Modal System (No Vertical Scroll) ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.modal-content {
  background: #101625;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1020px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.form-input:focus {
  border-color: #3b82f6;
}

input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover, 
input.form-input:-webkit-autofill:focus, 
input.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #111726 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #111726 inset !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Image Upload Dropzone (Compact) */
.image-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.image-dropzone:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.image-dropzone.has-image {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
  padding: 8px;
}

/* ── Dedicated Pixel-by-Pixel Loupe Color Picker Modal ─── */
.loupe-modal-content {
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1140px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.loupe-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.loupe-stage-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loupe-stage-wrapper {
  position: relative;
  width: 100%;
  height: 440px;
  background: #060911;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: crosshair;
}

.loupe-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Circular Magnifying Glass (Loupe) */
.loupe-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  display: none;
  background: #000;
}

.loupe-zoom-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

.loupe-target-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
}

.loupe-hex-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Palette Vertical Bar Cards (Matching Reference Screenshot) */
.loupe-palette-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.palette-bars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.palette-bar-card {
  height: 72px;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.palette-bar-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.palette-bar-info {
  display: flex;
  flex-direction: column;
}

.palette-bar-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.palette-bar-hex {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.btn-bar-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bar-action:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.08);
}

/* ── Interactive Image Color Pin Sampler ─── */
.image-sampler-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.image-canvas-stage {
  position: relative;
  width: 100%;
  height: 200px;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: crosshair;
}

.sampler-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.color-pin-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.color-pin-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9);
}

.color-pin-marker:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.25);
}

.sampler-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sampler-tip {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.uploaded-preview-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.timing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   GAMEPLAY SCREEN STYLES (Reaction Darts Physics & Massive Target Cards)
   ========================================================================== */

.game-workspace {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: #080b13;
}

.game-main-area {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0c101c;
}

/* Arena Background Graphic */
.brand-arena-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(8, 11, 19, 0.95) 100%);
  z-index: 1;
}

/* Massive Moving Square Target Cards (350px x 350px) */
.floating-arena {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}

/* Massive Square Target Cards (350px x 350px - Full Color Fill) */
.floating-arena {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}

.brand-target-card {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 36px;
  border: 5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  will-change: left, top;
  box-sizing: border-box;
  padding: 24px;
  transition: transform 0.1s ease, border-color 0.15s, box-shadow 0.15s;
}

.brand-target-card:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.brand-target-name {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  word-break: break-word;
  padding: 0 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.brand-target-card.hit-correct {
  border-color: #10b981 !important;
  box-shadow: 0 0 75px rgba(16, 185, 129, 0.98) !important;
  pointer-events: none;
  animation: pulseCorrect 0.6s ease-in-out;
}

.brand-target-card.hit-wrong {
  animation: shakeBox 0.4s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 75px rgba(239, 68, 68, 0.98) !important;
}

@keyframes pulseCorrect {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes shakeBox {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-12px); }
  50% { transform: translateX(12px); }
  75% { transform: translateX(-8px); }
}

/* Movement Mode Selector (No Icons) */
.movement-mode-pills {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius);
}

.mode-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

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

.mode-pill.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

/* Speed Slider */
.speed-slider-container {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.speed-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}

.speed-badge {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  min-width: 44px;
  text-align: right;
}

/* ── Sidebar System ─── */
.game-sidebar {
  background: rgba(14, 19, 32, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-brand-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sidebar-brand-logo {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sidebar-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-checklist-container {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.sidebar-check-item.collected {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.sidebar-log-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.sidebar-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar-log-item.hit {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sidebar-log-item.miss {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ── Fullscreen Countdown Overlays (Exact Match to Reaction Darts) ─── */
.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 500;
  animation: fadeIn 0.2s ease;
}

.countdown-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-number {
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #38bdf8;
  background: linear-gradient(180deg, #ffffff 0%, #6366f1 50%, #312e81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 15px 35px rgba(99, 102, 241, 0.6)) drop-shadow(0 6px 0 #0f172a);
  user-select: none;
}

.countdown-number.pop {
  animation: numPopOnce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes numPopOnce {
  0% { transform: scale(0.6); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

.brand-memorize-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, 0.95);
  backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
}

.brand-memorize-card {
  background: #121827;
  border: 2px solid rgba(236, 72, 153, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 50px var(--accent-pink-glow);
  border-radius: 28px;
  padding: 36px 44px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.memo-brand-logo-large {
  max-height: 120px;
  max-width: 220px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
