/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
#bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  height: 56px;
  flex: 0 0 56px;
  box-sizing: border-box;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--card-border, #e8ddcd);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  display: block;
}
.brand-logo {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(255, 126, 54, 0.3));
}
#bar h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  color: var(--ink);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background 0.18s ease;
}
.icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.icon:active {
  transform: scale(0.92);
}

.spacer { flex: 1; }

#pill {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: 0 0 auto;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
#pill.ok {
  color: #2b8a3e;
  border-color: rgba(64, 192, 87, 0.35);
}
#pill.ok .status-dot {
  background: #40c057;
  box-shadow: 0 0 8px rgba(64, 192, 87, 0.6);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.15); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  border: none;
  border-radius: 18px;
  padding: 13px 22px;
  font: 800 15px 'Outfit', 'Nunito', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.96);
}

.glass-btn {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.glass-btn:hover {
  box-shadow: var(--shadow-card);
}

.primary-btn {
  background: linear-gradient(135deg, #22b8cf 0%, #15aabf 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(34, 184, 207, 0.35);
  border: 1px solid rgba(255,255,255,0.25);
}
.primary-btn:hover {
  box-shadow: 0 8px 24px rgba(34, 184, 207, 0.45);
}

/* ==========================================================================
   FALLBACK KEYBOARD
   ========================================================================== */
#kb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px 14px;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
#kb.on { display: flex; }
#root.kbon .screen { padding-bottom: 120px; }

#kb button {
  width: 42px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: 800 17px 'Outfit', sans-serif;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
#kb button:hover {
  transform: translateY(-2px);
  border-color: var(--p2);
}
#kb button:active {
  background: var(--p2);
  color: #fff;
  transform: scale(0.92);
}

/* ==========================================================================
   SETTINGS SHEET MODAL
   ========================================================================== */
#sheet {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 22, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 50;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
#sheet.on { display: flex; }

#sheetIn {
  background: var(--card-solid);
  width: 100%;
  max-width: 560px;
  border-radius: 32px 32px 0 0;
  padding: 14px 24px max(24px, env(safe-area-inset-bottom));
  animation: sheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d8cbba;
  margin: 0 auto 16px;
}

.sheet-head {
  margin-bottom: 20px;
}
.sheet-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
}

.opt-card {
  background: #faf5ed;
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.opt-text b {
  font-size: 15px;
  color: var(--ink);
  display: block;
}
.opt-text small {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.opt-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.opt-block b {
  font-size: 15px;
  color: var(--ink);
  display: block;
}
.opt-block small {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.persona-toggle {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  background: #ede2d4;
  padding: 4px;
  border-radius: 14px;
}
.persona-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px;
  font: 800 14px 'Outfit', sans-serif;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.persona-btn.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.voice-picker-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.voice-select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 13px 'Outfit', sans-serif;
  cursor: pointer;
  outline: none;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.voice-select:focus {
  border-color: var(--p1);
}

.test-voice-btn {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sw {
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #ded0bf;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  border: none;
  transition: background 0.2s ease;
}
.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sw.on {
  background: var(--p3);
}
.sw.on::after {
  transform: translateX(20px);
}

.hardware-chip {
  margin: 10px 0 6px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--dim);
  line-height: 1.45;
}
.lib-info-text {
  margin-top: 6px;
  display: block;
  white-space: pre-line;
  font-size: 12px;
  color: var(--dim);
  font-weight: 600;
}

.row3 {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.row3 label {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.row3 input {
  width: 100%;
  font: 700 15px 'Outfit', sans-serif;
  padding: 9px 10px;
  margin-top: 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease;
}
.row3 input:focus {
  border-color: var(--p2);
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.auto-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.reload-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--dim);
}

.sheet-done-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  font-size: 16px;
}

/* ==========================================================================
   CELEBRATION BURST & 2D ANIMATIONS
   ========================================================================== */
#burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

/* Fluttering Confetti Ribbon Strips */
.confetti-ribbon {
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  animation: flyRibbon 1.15s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}
@keyframes flyRibbon {
  0% {
    transform: translate(0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.6);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(1.1);
    opacity: 0;
  }
}

/* Sparkling Stars */
.confetti-star {
  position: absolute;
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.45));
  animation: flyStar 1.1s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}
@keyframes flyStar {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.5);
    opacity: 1;
  }
  50% {
    transform: translate(calc(var(--dx) * 0.7), calc(var(--dy) * 0.8)) rotate(calc(var(--rz) * 0.5)) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(var(--rz)) scale(0.8);
    opacity: 0;
  }
}

/* Floating Comic Cheer Badge */
.floating-cheer-badge {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.6);
  background: linear-gradient(135deg, #fff9db 0%, #ffd43b 100%);
  border: 3px solid #f59f00;
  color: #b45309;
  font: 900 clamp(20px, 2.8vw, 28px) 'Outfit', sans-serif;
  letter-spacing: -0.01em;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(245, 159, 0, 0.35), 0 4px 0 #d97706;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 45;
  animation: popFloatCheer 1.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popFloatCheer {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(-6deg);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.15) rotate(3deg);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.0) rotate(0deg);
  }
  80% {
    transform: translate(-50%, calc(-50% - 30px)) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, calc(-50% - 60px)) scale(0.9);
    opacity: 0;
  }
}

/* Flying Star to Header Counter */
.flying-reward-star {
  position: fixed;
  font-size: 38px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.85));
  pointer-events: none;
  z-index: 55;
  animation: arcToCounter 0.78s cubic-bezier(0.2, 0.85, 0.4, 1) forwards;
}
@keyframes arcToCounter {
  0% {
    left: var(--startX);
    top: var(--startY);
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    opacity: 1;
  }
  45% {
    left: var(--midX);
    top: var(--midY);
    transform: translate(-50%, -50%) scale(1.45) rotate(180deg);
    opacity: 1;
  }
  100% {
    left: var(--endX);
    top: var(--endY);
    transform: translate(-50%, -50%) scale(0.7) rotate(360deg);
    opacity: 0.85;
  }
}

/* Star Counter Bounce when star lands */
.star-bump {
  animation: starBumpBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes starBumpBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-6deg); filter: drop-shadow(0 0 10px rgba(245, 159, 0, 0.8)); }
  75% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   STAMP LANDING TACTILE FEEDBACK LAYER
   ========================================================================== */
#stampFxLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 38;
}

.stamp-ripple {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 3.5px solid rgba(247, 103, 7, 0.75);
  background: radial-gradient(circle, rgba(255, 146, 43, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 24px rgba(247, 103, 7, 0.35);
  animation: stampWave 0.7s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes stampWave {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.stamp-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0b17c 0%, #9c6644 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 30px;
  border: 3px solid #fdf0d5;
  box-shadow: 0 8px 24px rgba(102, 59, 31, 0.38);
  pointer-events: none;
  animation: stampBadgePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stampBadgePop {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.15) rotate(4deg);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -70%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100%) scale(0.85);
    opacity: 0;
  }
}

.wrong-case-ripple {
  border-color: rgba(240, 62, 62, 0.85);
  background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 24px rgba(240, 62, 62, 0.45);
}

.wrong-case-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
  border-color: #ffe3e3;
  box-shadow: 0 8px 24px rgba(201, 42, 42, 0.45);
  font-size: 20px;
  animation: wrongBadgeShake 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wrongBadgeShake {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  25% { transform: translate(-56%, -50%) scale(1.1); opacity: 1; }
  50% { transform: translate(-44%, -50%) scale(1.05); }
  75% { transform: translate(-52%, -50%) scale(1); }
  100% { transform: translate(-50%, -85%) scale(0.85); opacity: 0; }
}


/* ==========================================================================
   STATS BAR BUTTON & BADGES MODAL
   ========================================================================== */
.stats-bar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stats-bar-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--p1);
  box-shadow: 0 4px 12px rgba(255, 126, 54, 0.2);
}

.trophy-icon {
  font-size: 18px;
}
.stats-bar-text {
  font: 800 13px 'Outfit', sans-serif;
  color: var(--ink);
}

/* ==========================================================================
   PWA OFFLINE INSTALLATION COMPONENT STYLES
   ========================================================================== */
.install-pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #4C6FFF 0%, #3451db 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(76, 111, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: 800 13px 'Outfit', sans-serif;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulseInstallBtn 3.5s infinite ease-in-out;
  flex-shrink: 0;
}
.install-pwa-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(76, 111, 255, 0.5);
}
.install-pwa-btn:active {
  transform: translateY(1px);
}
.install-icon {
  font-size: 16px;
}
@keyframes pulseInstallBtn {
  0%, 100% { box-shadow: 0 4px 14px rgba(76, 111, 255, 0.35); }
  50% { box-shadow: 0 6px 22px rgba(76, 111, 255, 0.65); transform: translateY(-1px); }
}

.pwa-install-card {
  background: linear-gradient(135deg, rgba(76, 111, 255, 0.08) 0%, rgba(52, 81, 219, 0.03) 100%);
  border: 1.5px solid rgba(76, 111, 255, 0.25);
}
.pwa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e6fcf5;
  color: #0ca678;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #b2f2bb;
}
.pwa-status-badge.offline-active {
  background: #fff3bf;
  color: #d97706;
  border-color: #fcc419;
}
.install-action-btn {
  padding: 8px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* iOS Guided Modal */
.ios-install-card {
  max-width: 520px;
}
.ios-install-intro {
  font-size: 15px;
  color: var(--ink-dim, #5c554e);
  line-height: 1.45;
  margin: 0 0 18px 0;
}
.ios-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--card-border, #e8ddcd);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.ios-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4C6FFF 0%, #3451db 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ios-step-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--ink, #2f2a26);
  line-height: 1.4;
}
.ios-share-badge {
  display: inline-flex;
  padding: 1px 6px;
  background: #f1f3f5;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 13px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 22, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.modal-overlay.on {
  display: flex;
}

.modal-card {
  background: var(--card-solid);
  width: 100%;
  max-width: 640px;
  border-radius: 32px;
  padding: clamp(16px, 2.5vh, 24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  border: 2px solid var(--card-border);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  animation: cardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.modal-close {
  background: #efe4d3;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.stats-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-pill-item {
  background: #faf5ed;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--p1);
}
.stat-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  margin-top: 2px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.badge-card {
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  border: 1.5px solid var(--line);
  text-align: center;
  transition: all 0.22s ease;
}

.badge-card.unlocked {
  border-color: #fab005;
  background: linear-gradient(135deg, #fffdf5 0%, #fff9db 100%);
  box-shadow: 0 4px 14px rgba(250, 176, 5, 0.22);
}

.badge-card.locked {
  opacity: 0.65;
  filter: grayscale(0.6);
}

.badge-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.badge-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.badge-desc {
  font-size: 11px;
  color: var(--dim);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.badge-status {
  font-size: 11px;
  font-weight: 800;
  color: #fab005;
}
.badge-card.locked .badge-status {
  color: var(--dim);
}

/* ==========================================================================
   LEVEL-UP CELEBRATION MODAL
   ========================================================================== */
.level-up-card {
  max-width: 480px !important;
  text-align: center;
  border: 3px solid #fab005 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf0 100%) !important;
  box-shadow: 0 20px 60px rgba(250, 176, 5, 0.28) !important;
  padding: 32px 24px !important;
  align-items: center;
}

.lu-stars-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 48px;
  margin-bottom: 12px;
}

.lu-star {
  display: inline-block;
  animation: starBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lu-star.s1 { animation-delay: 0.1s; }
.lu-star.s2 { animation-delay: 0.3s; }
.lu-star.s3 { animation-delay: 0.5s; }

@keyframes starBounceIn {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.3) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.lu-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 28px);
  background: linear-gradient(135deg, #f59f00 0%, #d9480f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lu-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff3bf;
  color: #d9480f;
  font: 900 14px 'Outfit', sans-serif;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(245, 159, 0, 0.2);
}

.lu-msg {
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 24px;
}

.lu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.lu-actions .btn {
  padding: 14px 20px;
  font-size: 16px;
  width: 100%;
}

/* ==========================================================================
   MASCOT COMPANION — PIP THE PHONICS OWL 🦉
   ========================================================================== */
.mascot-companion {
  position: fixed;
  bottom: 16px;
  right: 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 45;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#root.kbon .mascot-companion {
  bottom: 74px;
}

.mascot-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4C6FFF 0%, #3451db 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(76, 111, 255, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  animation: mascotFloat 3.2s ease-in-out infinite;
}

.mascot-mark-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

.mascot-avatar:hover {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 12px 30px rgba(110, 70, 30, 0.25);
}

.mascot-avatar.hop {
  animation: mascotHop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mascot-avatar.celebrate-dance {
  animation: mascotCelebrateDance 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes mascotCelebrateDance {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.35) translateY(-26px) rotate(-18deg); box-shadow: 0 16px 36px rgba(245, 159, 0, 0.5); }
  55% { transform: scale(1.4) translateY(-34px) rotate(180deg); }
  80% { transform: scale(1.15) translateY(-8px) rotate(360deg); }
  100% { transform: scale(1) translateY(0) rotate(360deg); }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mascotHop {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.3) translateY(-18px) rotate(-8deg); }
  75% { transform: scale(0.95) translateY(2px) rotate(4deg); }
  100% { transform: scale(1) translateY(0) rotate(0deg); }
}

.mascot-bubble {
  background: #ffffff;
  border: 2px solid #ede2d4;
  border-radius: 20px 20px 4px 20px;
  padding: 8px 14px;
  max-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font: 800 13px 'Nunito', sans-serif;
  color: var(--ink);
  line-height: 1.35;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-bubble.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Montessori Series Guide Card in Settings */
.montessori-guide-card {
  margin-bottom: 14px;
}
.montessori-guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
}
.guide-item.pink { border-left: 5px solid #e83e8c; }
.guide-item.blue { border-left: 5px solid #007bff; }
.guide-item.green { border-left: 5px solid #28a745; }
.guide-dot { font-size: 16px; margin-top: 2px; }
.guide-item b { font-size: 13px; color: var(--ink); display: block; }
.guide-item small { font-size: 11.5px; color: var(--dim); display: block; line-height: 1.35; }

/* ==========================================================================
   MONTESSORI LEVELS DROPDOWN (NAVBAR)
   ========================================================================== */
.home-nav-levels {
  display: flex;
  align-items: center;
  margin-left: 10px;
  animation: fadeInLevels 0.25s ease;
  position: relative;
  z-index: 50;
}

@keyframes fadeInLevels {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-level-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-level-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 14px;
  background: var(--card, #ffffff);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--card-border, #e8ddcd);
  cursor: pointer;
  font-family: 'Outfit', 'Nunito', sans-serif;
  color: var(--ink, #2c2520);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

.nav-level-dropdown-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.nav-level-dropdown-btn:active {
  transform: scale(0.96);
}

.nav-level-dropdown-btn .lvl-badge-icon {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-level-dropdown-btn .lvl-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.nav-level-dropdown-btn .lvl-current-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim, #635b54);
}

.nav-level-dropdown-btn .lvl-current-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink, #2c2520);
  letter-spacing: -0.01em;
}

.nav-level-dropdown-btn .lvl-dropdown-caret {
  font-size: 11px;
  color: var(--dim, #635b54);
  margin-left: 2px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-level-dropdown-btn.open .lvl-dropdown-caret {
  transform: rotate(180deg);
}

/* Level Button Color Themes */
.nav-level-dropdown-btn.lvl-pink {
  border-color: #f783ac;
  background: linear-gradient(135deg, #fff0f6, #ffdeeb);
}
.nav-level-dropdown-btn.lvl-pink .lvl-current-name { color: #c2255c; }

.nav-level-dropdown-btn.lvl-blue {
  border-color: #74c0fc;
  background: linear-gradient(135deg, #e7f5ff, #d0ebff);
}
.nav-level-dropdown-btn.lvl-blue .lvl-current-name { color: #1971c2; }

.nav-level-dropdown-btn.lvl-green {
  border-color: #8ce99a;
  background: linear-gradient(135deg, #ebfbee, #d3f9d8);
}
.nav-level-dropdown-btn.lvl-green .lvl-current-name { color: #2b8a3e; }

.nav-level-dropdown-btn.lvl-all {
  border-color: #fcc419;
  background: linear-gradient(135deg, #fff9db, #ffec99);
}
.nav-level-dropdown-btn.lvl-all .lvl-current-name { color: #d9480f; }

/* Dropdown Menu Box */
.nav-level-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(228, 215, 200, 0.95);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(44, 37, 32, 0.16), 0 4px 0 rgba(215, 195, 175, 0.7);
  padding: 8px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: dropdownPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

@keyframes dropdownPop {
  from { opacity: 0; transform: scale(0.94) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.nav-level-menu.open {
  display: flex;
}

.nav-level-menu-header {
  padding: 4px 10px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim, #867c73);
  border-bottom: 1px solid var(--line, #ede2d4);
  margin-bottom: 4px;
}

.nav-level-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', 'Nunito', sans-serif;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.nav-level-option:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(2px);
}

.nav-level-option .opt-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-level-option .opt-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-level-option .opt-name {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink, #2c2520);
  line-height: 1.2;
}

.nav-level-option .opt-desc {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim, #635b54);
  line-height: 1.25;
}

.nav-level-option .opt-check {
  font-size: 15px;
  font-weight: 900;
  color: var(--dim, #867c73);
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-level-option.active .opt-check {
  opacity: 1;
}

/* Active Option Highlights */
.nav-level-option.opt-pink.active {
  background: #fff0f6;
  border-color: #f783ac;
}
.nav-level-option.opt-pink.active .opt-name,
.nav-level-option.opt-pink.active .opt-check { color: #c2255c; }

.nav-level-option.opt-blue.active {
  background: #e7f5ff;
  border-color: #74c0fc;
}
.nav-level-option.opt-blue.active .opt-name,
.nav-level-option.opt-blue.active .opt-check { color: #1971c2; }

.nav-level-option.opt-green.active {
  background: #ebfbee;
  border-color: #8ce99a;
}
.nav-level-option.opt-green.active .opt-name,
.nav-level-option.opt-green.active .opt-check { color: #2b8a3e; }

.nav-level-option.opt-all.active {
  background: #fff9db;
  border-color: #fcc419;
}
.nav-level-option.opt-all.active .opt-name,
.nav-level-option.opt-all.active .opt-check { color: #d9480f; }

@media (max-width: 768px) {
  .nav-level-dropdown-btn .lvl-current-label {
    display: none;
  }
  .nav-level-dropdown-btn {
    padding: 5px 8px;
    gap: 6px;
  }
  .nav-level-menu {
    min-width: 260px;
  }
}

/* ==========================================================================
   CATEGORY THEME PICKER SCREEN (#scCategories)
   ========================================================================== */
#scCategories {
  padding: 10px 16px 20px;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-picker-container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.cat-picker-header {
  text-align: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 126, 54, 0.12);
  border: 1px solid rgba(255, 126, 54, 0.25);
  color: #d9480f;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(217, 72, 15, 0.08);
}

.cat-header-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink, #2c2520);
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}

.cat-header-subtitle {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dim, #635b54);
  margin: 0;
  max-width: 580px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 2px 16px;
}

@media (max-width: 860px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-header-title {
    font-size: 22px;
  }
}

@media (max-width: 540px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  position: relative;
  border: 2.5px solid rgba(228, 215, 200, 0.95);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(44, 37, 32, 0.08), 0 3px 0 rgba(215, 195, 175, 0.7);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  user-select: none;
  font-family: 'Outfit', 'Nunito', sans-serif;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 36px rgba(44, 37, 32, 0.14), 0 5px 0 rgba(215, 195, 175, 0.9);
}

.cat-card:active {
  transform: scale(0.97);
}

.cat-card-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.cat-emoji-main {
  font-size: 40px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.cat-emoji-group {
  display: flex;
  gap: 4px;
  font-size: 19px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 12px;
}

.cat-card-info .cat-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink, #2c2520);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.cat-card-info .cat-samples {
  font-size: 13px;
  font-weight: 700;
  color: var(--dim, #635b54);
  display: block;
  margin-bottom: 14px;
  line-height: 1.35;
}

.cat-card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease;
}

.cat-card-action .action-arrow {
  font-size: 12px;
  transition: transform 0.18s ease;
}

.cat-card:hover .action-arrow {
  transform: translateX(4px);
}

/* Category Unique Color Themes */
.cat-card-animals {
  border-color: #ffd8a8;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}
.cat-card-animals:hover {
  border-color: #ffa94d;
}
.cat-card-animals .cat-card-action {
  background: linear-gradient(135deg, #fff4e6, #ffe8cc);
  color: #d9480f;
}

.cat-card-food {
  border-color: #ffc9c9;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}
.cat-card-food:hover {
  border-color: #ff8787;
}
.cat-card-food .cat-card-action {
  background: linear-gradient(135deg, #ffe3e3, #ffc9c9);
  color: #c92a2a;
}

.cat-card-legumes {
  border-color: #b2f2bb;
  background: linear-gradient(180deg, #f4fce3 0%, #ffffff 100%);
}
.cat-card-legumes:hover {
  border-color: #69db7c;
}
.cat-card-legumes .cat-card-action {
  background: linear-gradient(135deg, #e9fac8, #d8f5a2);
  color: #2b8a3e;
}

.cat-card-objects {
  border-color: #a5d8ff;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}
.cat-card-objects:hover {
  border-color: #4dabf7;
}
.cat-card-objects .cat-card-action {
  background: linear-gradient(135deg, #e7f5ff, #d0ebff);
  color: #1864ab;
}

.cat-card-vehicles {
  border-color: #d0bfff;
  background: linear-gradient(180deg, #f8f0fc 0%, #ffffff 100%);
}
.cat-card-vehicles:hover {
  border-color: #9775fa;
}
.cat-card-vehicles .cat-card-action {
  background: linear-gradient(135deg, #f3d9fa, #eebefa);
  color: #6741d9;
}

.cat-card-mixed {
  border-color: #ffe066;
  background: linear-gradient(145deg, #fff9db 0%, #ffffff 60%, #fff4e6 100%);
  box-shadow: 0 8px 24px rgba(250, 176, 5, 0.15), 0 3px 0 rgba(229, 153, 0, 0.5);
}
.cat-card-mixed:hover {
  border-color: #fcc419;
  box-shadow: 0 16px 36px rgba(250, 176, 5, 0.25), 0 5px 0 rgba(229, 153, 0, 0.8);
}
.cat-card-mixed .cat-card-action {
  background: linear-gradient(135deg, #ffec99, #ffd43b);
  color: #8c5300;
}

.cat-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ffd43b, #fab005);
  color: #7f4f00;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(250, 176, 5, 0.4);
  letter-spacing: 0.02em;
}

/* Category Switcher Button & Active Badge in scBuild */
.cat-picker-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff922b, #fd7e14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-left: 6px;
  user-select: none;
}
.cat-picker-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(253, 126, 20, 0.45);
}
.cat-picker-nav-btn:active {
  transform: scale(0.95);
}

.active-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 126, 54, 0.12);
  color: #d9480f;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-right: 8px;
}

/* ========================================================
   QR CODE LOGIN GATE & CAMERA SCANNER STYLES
   ======================================================== */
.login-gate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  width: 100%;
  padding: 20px 16px 80px 16px;
  box-sizing: border-box;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.login-card-box {
  width: 100%;
  max-width: 480px;
  margin: auto 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 3px solid #ffeedb;
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 4px 15px rgba(253, 126, 20, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-header {
  margin-bottom: 18px;
}

.login-mascot-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, #4C6FFF 0%, #3451db 100%);
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  box-shadow: 0 10px 24px rgba(76, 111, 255, 0.38);
  margin-bottom: 12px;
  animation: floatMascot 3s ease-in-out infinite;
}

.login-mascot-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.login-mascot-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 18px;
  animation: spinSparkle 4s linear infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spinSparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  max-width: 380px;
}

/* Scanner Frame Viewport */
.scanner-frame-wrap {
  position: relative;
  width: min(250px, 68vw);
  height: min(250px, 68vw);
  margin: 10px auto;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  border: 3px solid #e2e8f0;
}

.scanner-frame-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.qr-video-viewport {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.qr-video-viewport video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 18px;
}

/* HUD Overlay & Targeting Brackets */
.scanner-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #f59e0b;
  border-style: solid;
}
.hud-corner.top-left {
  top: 14px;
  left: 14px;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 8px;
}
.hud-corner.top-right {
  top: 14px;
  right: 14px;
  border-width: 4px 4px 0 0;
  border-top-right-radius: 8px;
}
.hud-corner.bottom-left {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 8px;
}
.hud-corner.bottom-right {
  bottom: 14px;
  right: 14px;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 8px;
}

/* Animated Laser Beam */
.scanner-laser-line {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f59e0b 20%, #ef4444 50%, #f59e0b 80%, transparent 100%);
  box-shadow: 0 0 12px #f59e0b, 0 0 20px #ef4444;
  top: 20px;
  animation: laserScan 2.4s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 20px; opacity: 0.8; }
  50% { top: calc(100% - 24px); opacity: 1; }
}

/* Login Tabs Bar */
.login-tabs-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  width: 100%;
  margin-bottom: 16px;
}

.login-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-tab-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Card Badge Pill */
.card-badge-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e3a8a;
  margin-bottom: 12px;
  text-align: left;
}

.card-badge-pill.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.card-badge-pill .badge-icon {
  font-size: 24px;
}

.card-badge-pill .badge-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.card-badge-pill .badge-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.reg-instructions {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 16px 0;
  text-align: left;
}

/* Auth Forms */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

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

.form-field-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.btn-text-action {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.btn-text-action:hover {
  text-decoration: underline;
  color: #4f46e5;
}

.input-with-icon {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}

.input-with-icon input:focus {
  background: white;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-toggle-visibility {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  opacity: 0.7;
}
.btn-toggle-visibility:hover {
  opacity: 1;
}

.field-help {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}

.form-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.btn-lg {
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.scanner-controls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 12px;
}
.scanner-controls-row .btn {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Alert Notification Banner */
.login-alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  margin-bottom: 14px;
  animation: fadeIn 0.25s ease;
}

.login-alert.success {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
}
.login-alert.error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}
.login-alert.warning {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}
.login-alert.info {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
}

.login-alert .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.login-alert .alert-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Alternate Input Methods */
.login-alt-methods {
  width: 100%;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1.5px dashed #e2e8f0;
}

.alt-divider {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.alt-inputs-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.alt-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.alt-upload-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.manual-code-group {
  display: flex;
  gap: 8px;
  width: 100%;
}
.manual-code-group input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  outline: none;
  background: white;
  color: #0f172a;
}
.manual-code-group input:focus {
  border-color: #6366f1;
}

.login-footer-note {
  margin-top: 16px;
  font-size: 11px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.generator-link {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}
.generator-link:hover {
  text-decoration: underline;
}

/* Header Auth Chip Button */
.auth-chip-btn {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.auth-chip-btn:hover {
  background: rgba(16, 185, 129, 0.22);
}

/* Responsive adjustments for iPad landscape and compact viewports */
@media (max-height: 760px) {
  .login-gate-container {
    padding: 12px 12px 60px 12px;
  }
  .login-card-box {
    padding: 16px 16px 20px 16px;
    border-radius: 22px;
    margin: 8px 0;
  }
  .login-header {
    margin-bottom: 10px;
  }
  .login-mascot-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
  }
  .login-mascot-mark {
    width: 32px;
    height: 32px;
  }
  .login-title {
    font-size: 19px;
    margin-bottom: 4px;
  }
  .login-subtitle {
    font-size: 12px;
    line-height: 1.35;
  }
  .scanner-frame-wrap {
    width: min(200px, 48vw);
    height: min(200px, 48vw);
    margin: 8px auto;
  }
  .login-tabs-bar {
    margin-bottom: 10px;
  }
  .login-alt-methods {
    margin-top: 4px;
    padding-top: 10px;
  }
}

@media (max-width: 480px) {
  .login-gate-container {
    padding: 12px 10px 60px 10px;
  }
  .login-card-box {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .scanner-controls-row {
    flex-direction: column;
  }
  .scanner-controls-row .btn {
    width: 100%;
  }
  .manual-code-group {
    flex-direction: column;
  }
  .manual-code-group button {
    width: 100%;
  }
}

/* ==========================================================================
   STAMP TEST & CASE CALIBRATION SCREEN (#scStampTest)
   ========================================================================== */
#scStampTest {
  display: none;
  background: radial-gradient(circle at 50% 25%, #fffdfa 0%, #fdf6ec 70%);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 30px;
}
#scStampTest.on {
  display: flex;
}

.stamp-test-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.stamp-test-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(76, 50, 20, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 3px solid #f1e4d0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
}

.stamp-test-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f7efe4;
}

.stamp-test-mascot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff922b, #f76707);
  box-shadow: 0 6px 14px rgba(247, 103, 7, 0.28);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.stamp-test-mascot-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.stamp-test-mascot-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 15px;
  animation: floatMascotSparkle 1.8s ease-in-out infinite;
}

.stamp-test-header-text {
  flex: 1;
}
.stamp-test-title {
  margin: 0 0 3px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #2b2520;
  letter-spacing: -0.02em;
}
.stamp-test-subtitle {
  margin: 0;
  font-size: 14px;
  color: #8c7e72;
  font-weight: 600;
  line-height: 1.35;
}

.stamp-test-audio-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #ecdcc8;
  background: #fff9f0;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.stamp-test-audio-btn:hover {
  background: #ffecdb;
  border-color: #ffa94d;
  transform: scale(1.05);
}

/* --- Interactive Test Pad Surface --- */
.stamp-test-surface-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.stamp-test-zone {
  width: 100%;
  height: 250px;
  background: radial-gradient(circle at 50% 50%, #fff7eb 0%, #faeee0 75%, #f2dfca 100%);
  border: 3px dashed #d8b894;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 3px 12px rgba(120, 80, 30, 0.08);
}

.stamp-test-zone:hover {
  border-color: #f76707;
  background: radial-gradient(circle at 50% 50%, #fffbf5 0%, #fcf0e3 75%, #f5e3ce 100%);
}

.stamp-test-zone.detected-success {
  border-style: solid;
  border-color: #40c057;
  background: radial-gradient(circle at 50% 50%, #ebfbee 0%, #d3f9d8 100%);
  box-shadow: 0 0 30px rgba(64, 192, 87, 0.25);
}

/* Concentric Ripple Rings */
.test-ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(216, 184, 148, 0.35);
  pointer-events: none;
}
.test-ripple-ring.r1 {
  width: 130px;
  height: 130px;
  animation: ripplePulse 3.2s ease-in-out infinite;
}
.test-ripple-ring.r2 {
  width: 210px;
  height: 210px;
  animation: ripplePulse 3.2s ease-in-out infinite 0.7s;
}
.test-ripple-ring.r3 {
  width: 290px;
  height: 290px;
  animation: ripplePulse 3.2s ease-in-out infinite 1.4s;
}

@keyframes ripplePulse {
  0% { transform: scale(0.92); opacity: 0.3; }
  50% { transform: scale(1.06); opacity: 0.8; }
  100% { transform: scale(0.92); opacity: 0.3; }
}

/* Real-time touch contact pads */
.stamp-test-dots-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stamp-touch-point {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff922b 30%, #e8590c 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(247, 103, 7, 0.7), 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  animation: touchDotBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes touchDotBounce {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Prompt State Box */
.stamp-test-prompt-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  padding: 10px;
}
.floating-wooden-stamp-icon {
  position: relative;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
  animation: bobStamp 2.4s ease-in-out infinite;
}
@keyframes bobStamp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.stamp-sparkle-1, .stamp-sparkle-2 {
  position: absolute;
  font-size: 16px;
  color: #f59f00;
}
.stamp-sparkle-1 { top: -2px; left: -10px; animation: sparkleSpin 2s infinite ease; }
.stamp-sparkle-2 { bottom: 2px; right: -12px; animation: sparkleSpin 2.4s infinite ease 0.8s; }

.zone-prompt-heading {
  margin: 0 0 4px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #3d3228;
}
.zone-prompt-caption {
  margin: 0;
  font-size: 13px;
  color: #927e6c;
  font-weight: 600;
}

/* --- Detection Result Overlay Card --- */
.stamp-test-result-card {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 22px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 5;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stamp-test-result-card.revealed {
  opacity: 1;
  transform: scale(1);
}

.result-piece-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wooden-letter-piece.xl {
  width: 90px;
  height: 90px;
  font-size: 52px;
  border-radius: 20px;
}
.wooden-letter-piece.bounce-pop {
  animation: slotSnapBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  width: fit-content;
  text-transform: uppercase;
}
.case-pill.badge-maj {
  background: #e7f5ff;
  color: #1971c2;
  border: 1.5px solid #a5d8ff;
}
.case-pill.badge-min {
  background: #ebfbee;
  color: #2b8a3e;
  border: 1.5px solid #b2f2bb;
}

.result-title {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #2b2520;
}
.result-desc {
  margin: 0;
  font-size: 13px;
  color: #63574c;
  line-height: 1.4;
  font-weight: 600;
}
.result-desc b {
  color: #1e1914;
}

.proceed-btn {
  margin-top: 6px;
  align-self: flex-start;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 800;
}

/* --- Manual Selection & Footer --- */
.stamp-test-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.manual-pick-title {
  font-size: 12px;
  font-weight: 700;
  color: #8c7e72;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.manual-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.manual-mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #faf6f0;
  border: 2px solid #ecdcc8;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.manual-mode-btn:hover {
  background: #fff;
  border-color: #ff922b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 146, 43, 0.15);
}
.manual-mode-btn:active {
  transform: translateY(1px);
}
.manual-mode-btn .mode-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.manual-mode-btn .mode-text b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #2b2520;
  margin-bottom: 2px;
}
.manual-mode-btn .mode-text small {
  display: block;
  font-size: 11px;
  color: #8c7e72;
  line-height: 1.25;
}

.stamp-test-skip-btn {
  background: none;
  border: none;
  color: #a49688;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  align-self: center;
  transition: all 0.15s ease;
}
.stamp-test-skip-btn:hover {
  color: #f76707;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .stamp-test-card {
    padding: 16px 16px;
    border-radius: 20px;
    gap: 12px;
  }
  .stamp-test-zone {
    height: 200px;
  }
  .stamp-test-title {
    font-size: 19px;
  }
  .stamp-test-result-card {
    flex-direction: column;
    text-align: center;
    padding: 14px;
    gap: 10px;
  }
  .result-info {
    align-items: center;
  }
  .wooden-letter-piece.xl {
    width: 68px;
    height: 68px;
    font-size: 40px;
  }
  .manual-pick-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}




