/* ==========================================================================
   DIGITAL TOILET • EXECUTIVE PORCELAIN SANCTUARY
   Modern Luxury Glassmorphism & Bathroom POV Theme
   ========================================================================== */

:root {
  --font-royal: 'Cinzel', serif;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --gold-primary: #f5b73c;
  --gold-light: #fbe69b;
  --gold-glow: rgba(245, 183, 60, 0.45);
  --blue-water: #00b4d8;
  --blue-deep: #0077b6;
  --blue-ocean: #03045e;
  --zen-emerald: #10b981;
  --zen-leaf: #34d399;
  --arcade-violet: #8b5cf6;
  --arcade-pink: #ec4899;
  --crimson-exit: #ef4444;
  --crimson-dark: #b91c1c;

  /* Backgrounds & Glassmorphism */
  --glass-bg: rgba(14, 20, 32, 0.85);
  --glass-bg-subtle: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(245, 183, 60, 0.32);
  --glass-border-subtle: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);

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

  --transition-fast: 0.18s ease;
  --transition-norm: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explicit Fallback for Clickable Elements */
button,
a,
.clickable {
  cursor: pointer !important;
}

*,
*::before,
*::after,
body,
button,
div,
a,
.tile,
.falling-tile {
  box-sizing: border-box;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-main);
  background-color: #060911;
  color: var(--text-main);
  user-select: none;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
}

/* Explicit Custom Finger Cursor on All Buttons, Interactive Elements & Hover States */
button,
a,
input,
select,
textarea,
[role="button"],
.btn,
.btn-flush,
.btn-relax,
.btn-wisdom,
.btn-game,
.btn-exit,
.btn-toggle-panel,
.icon-btn,
.modal-close-btn,
.btn-primary-modal,
.btn-secondary-modal,
.btn-wisdom-action,
.btn-wash-action,
.btn-wash,
.btn-warning-dismiss,
.falling-tile,
.modal-window,
.modal-backdrop,
.toast,
.stat-pill,
button:hover,
a:hover,
.btn:hover,
.icon-btn:hover,
.btn-toggle-panel:hover,
.modal-close-btn:hover,
.falling-tile:hover,
*:hover,
*:active,
*:focus {
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
}

/* ==========================================================================
   FULLSCREEN ROYAL TOILET POV BACKGROUND & LIGHTING
   ========================================================================== */

.pov-background {
  position: fixed;
  inset: 0;
  background: url('assets/images/royal_toilet.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: 1;
  transform: scale(1.01);
  transition: transform 0.6s ease-out;
  will-change: transform;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 12, 22, 0.25) 0%, rgba(4, 6, 12, 0.78) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

/* App Wrapper for Screen Shake */
.app-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: filter 0.3s ease;
}

.app-wrapper.screen-shake {
  animation: earthquake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes earthquake {

  10%,
  90% {
    transform: translate3d(-2px, 2px, 0) rotate(-0.5deg);
  }

  20%,
  80% {
    transform: translate3d(3px, -2px, 0) rotate(0.8deg);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-5px, 4px, 0) rotate(-1deg);
  }

  40%,
  60% {
    transform: translate3d(5px, -3px, 0) rotate(0.7deg);
  }
}

/* ==========================================================================
   TOP STATUS BAR
   ========================================================================== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Occupied Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: beaconPulse 1.6s infinite ease-in-out;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #ef4444;
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 16px #ff4d4d;
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #ef4444;
  }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fca5a5;
  text-transform: uppercase;
}

/* Toilet Time Counter */
.timer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border);
  padding: 6px 18px;
  border-radius: 9999px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.timer-icon {
  font-size: 1.2rem;
  animation: flipSand 8s infinite ease-in-out;
}

@keyframes flipSand {

  0%,
  45% {
    transform: rotate(0deg);
  }

  50%,
  95% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.timer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  opacity: 0.85;
}

.timer-digits {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Top Right Controls */
.top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-primary);
  transform: scale(1.06);
}

/* ==========================================================================
   FLOATING BOTTOM SANCTUARY CONSOLE (UNCLUTTERED POV)
   ========================================================================== */

.main-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
  /* Anchored to bottom so royal toilet is unobstructed */
  justify-content: center;
  padding: 16px 20px 24px 20px;
  position: relative;
  z-index: 10;
}

.sanctuary-console {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow), 0 0 35px rgba(245, 183, 60, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: consoleSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes consoleSlideUp {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sanctuary-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), transparent);
}

/* Welcome Card (Visible initially) */
.welcome-card {
  padding: 20px 24px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 183, 60, 0.12);
  border: 1px solid rgba(245, 183, 60, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.crown-icon {
  font-size: 0.95rem;
}

.crown-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.welcome-title {
  font-family: var(--font-royal);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-shadow: 0 0 15px rgba(245, 183, 60, 0.3);
}

.welcome-quote {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 380px;
}

/* Toggle Button */
.btn-toggle-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: all var(--transition-fast);
  outline: none;
}

.btn-toggle-panel:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(245, 183, 60, 0.6);
}

.btn-toggle-panel.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid var(--glass-border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Collapsible Controls Drawer */
.controls-drawer {
  padding: 0 22px 18px 22px;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.35s ease;
  overflow: hidden;
  max-height: 700px;
  opacity: 1;
}

.controls-drawer.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

/* Session Brief Row */
.session-brief {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.brief-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brief-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.brief-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.brief-divider {
  width: 1px;
  height: 24px;
  background: var(--glass-border-subtle);
}

/* ==========================================================================
   BUTTONS GRID & STYLING
   ========================================================================== */

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.btn-flush {
  grid-column: 1 / -1;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--font-main);
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: scale(1.15) rotate(-5deg);
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Individual Button Themes */
.btn-flush {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.38), rgba(0, 180, 216, 0.28));
  border-color: rgba(0, 180, 216, 0.45);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.18);
}

.btn-flush:hover {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.55), rgba(0, 180, 216, 0.45));
  border-color: var(--blue-water);
  box-shadow: 0 6px 25px rgba(0, 180, 216, 0.38);
}

.btn-relax {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.18));
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.btn-relax:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.3));
  border-color: var(--zen-emerald);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.3);
}

.btn-wisdom {
  background: linear-gradient(135deg, rgba(245, 183, 60, 0.22), rgba(251, 191, 36, 0.15));
  border-color: rgba(245, 183, 60, 0.35);
  box-shadow: 0 4px 20px rgba(245, 183, 60, 0.12);
}

.btn-wisdom:hover {
  background: linear-gradient(135deg, rgba(245, 183, 60, 0.38), rgba(251, 191, 36, 0.28));
  border-color: var(--gold-primary);
  box-shadow: 0 6px 25px rgba(245, 183, 60, 0.3);
}

.btn-game {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.18));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.btn-game:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(236, 72, 153, 0.3));
  border-color: var(--arcade-violet);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.35);
}

.btn-exit {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.18));
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.btn-exit:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.38), rgba(185, 28, 28, 0.28));
  border-color: var(--crimson-exit);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.3);
}

.card-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 4px;
}

/* ==========================================================================
   HIGH STRESS ALERT SCREEN OVERLAY & BANNER
   ========================================================================== */

/* High Stress Screen Shake & Red Alert */
.high-stress-active {
  animation: shake 0.3s infinite, redStrobe 0.5s infinite alternate;
  border: 8px solid red !important;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  20% { transform: translate(-3px, 0px) rotate(-1deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  80% { transform: translate(3px, 1px) rotate(1deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes redStrobe {
  from { box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.4); }
  to { box-shadow: inset 0 0 80px rgba(255, 0, 0, 0.9); }
}

.stress-alert-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 68px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: inset 0 0 70px 25px rgba(239, 68, 68, 0.75);
}

.stress-alert-overlay.active {
  opacity: 1;
  visibility: visible;
  animation: stressBorderFlash 0.5s infinite alternate ease-in-out;
}

@keyframes stressBorderFlash {
  0% {
    box-shadow: inset 0 0 45px 15px rgba(239, 68, 68, 0.45);
    background: radial-gradient(circle at center, transparent 60%, rgba(239, 68, 68, 0.15) 100%);
  }

  100% {
    box-shadow: inset 0 0 95px 35px rgba(239, 68, 68, 0.95);
    background: radial-gradient(circle at center, transparent 35%, rgba(239, 68, 68, 0.32) 100%);
  }
}

.stress-banner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(185, 28, 28, 0.98));
  color: #ffffff;
  font-family: var(--font-royal);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(254, 202, 202, 0.6);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.65), 0 0 20px rgba(239, 68, 68, 0.5);
  animation: bannerVibrate 0.35s infinite alternate ease-in-out;
  text-transform: uppercase;
  max-width: 90%;
  text-align: center;
}

@keyframes bannerVibrate {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-3px) scale(1.02);
  }
}

/* ==========================================================================
   FLUSH ANIMATION OVERLAY (FULLSCREEN WATER VORTEX)
   ========================================================================== */

.flush-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.flush-overlay.flushing {
  opacity: 1;
}

.water-whirlpool {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  border-radius: 45%;
  transform: translate(-50%, -50%) scale(0.1);
  background: radial-gradient(circle, rgba(0, 119, 182, 0.95) 0%, rgba(3, 4, 94, 0.8) 45%, rgba(0, 180, 216, 0.6) 80%, transparent 100%);
  opacity: 0;
}

.flush-overlay.flushing .water-whirlpool {
  animation: whirlpoolRush 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes whirlpoolRush {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.1);
    opacity: 0;
  }

  20% {
    opacity: 0.92;
  }

  65% {
    transform: translate(-50%, -50%) rotate(720deg) scale(1.15);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, -50%) rotate(1080deg) scale(0.05);
    opacity: 0;
  }
}

.water-wave {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 40%;
  background: linear-gradient(180deg, rgba(0, 180, 216, 0.35), rgba(0, 119, 182, 0.7));
  opacity: 0;
  pointer-events: none;
}

.wave-1 {
  bottom: -200%;
}

.wave-2 {
  bottom: -210%;
}

.wave-3 {
  bottom: -220%;
}

.flush-overlay.flushing .wave-1 {
  animation: waveRise 2.8s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.flush-overlay.flushing .wave-2 {
  animation: waveRise 2.8s 0.15s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.flush-overlay.flushing .wave-3 {
  animation: waveRise 2.8s 0.3s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

@keyframes waveRise {
  0% {
    bottom: -200%;
    transform: rotate(0deg);
    opacity: 0.7;
  }

  45% {
    bottom: -20%;
    transform: rotate(180deg);
    opacity: 0.9;
  }

  75% {
    bottom: -20%;
    transform: rotate(270deg);
    opacity: 0.85;
  }

  100% {
    bottom: -200%;
    transform: rotate(450deg);
    opacity: 0;
  }
}

.bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 180, 216, 0.4));
  border-radius: 50%;
  opacity: 0;
}

.flush-overlay.flushing .bubble {
  animation: bubbleRise 2.2s ease-in forwards;
}

.bubble:nth-child(1) {
  left: 15%;
  width: 22px;
  height: 22px;
  animation-delay: 0.2s;
}

.bubble:nth-child(2) {
  left: 30%;
  width: 34px;
  height: 34px;
  animation-delay: 0.5s;
}

.bubble:nth-child(3) {
  left: 45%;
  width: 18px;
  height: 18px;
  animation-delay: 0.1s;
}

.bubble:nth-child(4) {
  left: 60%;
  width: 28px;
  height: 28px;
  animation-delay: 0.4s;
}

.bubble:nth-child(5) {
  left: 75%;
  width: 40px;
  height: 40px;
  animation-delay: 0.3s;
}

.bubble:nth-child(6) {
  left: 85%;
  width: 20px;
  height: 20px;
  animation-delay: 0.6s;
}

.bubble:nth-child(7) {
  left: 22%;
  width: 16px;
  height: 16px;
  animation-delay: 0.8s;
}

.bubble:nth-child(8) {
  left: 68%;
  width: 30px;
  height: 30px;
  animation-delay: 0.7s;
}

@keyframes bubbleRise {
  0% {
    bottom: -40px;
    transform: scale(0.6);
    opacity: 0;
  }

  25% {
    opacity: 0.8;
  }

  85% {
    opacity: 0.7;
  }

  100% {
    bottom: 105%;
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ==========================================================================
   MODAL WINDOWS & BACKDROPS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-norm);
}

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

.modal-window {
  width: 100%;
  max-width: 520px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow: var(--glass-shadow);
  padding: 30px 26px;
  position: relative;
  transform: scale(0.92) translateY(18px);
  transition: transform var(--transition-norm);
}

.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.08);
}

.btn-primary-modal {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #0b0f19;
  font-weight: 800;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: all var(--transition-fast);
}

.btn-primary-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 183, 60, 0.5);
}

.btn-secondary-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 14px;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary-modal:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   MODAL: RELAXATION MODE
   ========================================================================== */

.relax-window {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--glass-shadow), 0 0 35px rgba(16, 185, 129, 0.18);
  text-align: center;
}

.zen-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--zen-leaf);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.relax-header h2 {
  font-family: var(--font-royal);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.relax-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Breathing Orb */
.breathing-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 22px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-orb {
  position: relative;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, #34d399 0%, #059669 70%, #064e3b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.6);
  z-index: 5;
  animation: orbBreathe 12s infinite ease-in-out;
}

.breathing-orb span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.breathing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(52, 211, 153, 0.35);
  animation: ringRotate 20s linear infinite;
}

.ring-outer {
  width: 160px;
  height: 160px;
}

.ring-middle {
  width: 135px;
  height: 135px;
  border-color: rgba(52, 211, 153, 0.2);
  animation-direction: reverse;
  animation-duration: 15s;
}

@keyframes orbBreathe {

  0%,
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  }

  33% {
    transform: scale(1.15);
    box-shadow: 0 0 45px rgba(52, 211, 153, 0.85);
  }

  55% {
    transform: scale(1.15);
    box-shadow: 0 0 45px rgba(52, 211, 153, 0.85);
  }

  88% {
    transform: scale(0.85);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Audio Track Card & Visualizer */
.audio-track-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.visualizer-bars .bar {
  width: 3px;
  background: var(--zen-leaf);
  border-radius: 2px;
  animation: barBounce 0.8s infinite ease-in-out;
}

.bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}

.bar:nth-child(2) {
  height: 80%;
  animation-delay: 0.3s;
}

.bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.2s;
}

.bar:nth-child(4) {
  height: 100%;
  animation-delay: 0.4s;
}

.bar:nth-child(5) {
  height: 70%;
  animation-delay: 0.15s;
}

.bar:nth-child(6) {
  height: 50%;
  animation-delay: 0.35s;
}

.bar:nth-child(7) {
  height: 90%;
  animation-delay: 0.25s;
}

.bar:nth-child(8) {
  height: 35%;
  animation-delay: 0.05s;
}

@keyframes barBounce {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.track-details {
  flex: 1;
}

.track-status {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--zen-leaf);
  letter-spacing: 0.08em;
  display: block;
}

.track-details h4 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-top: 2px;
}

.btn-small-track {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-small-track:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--zen-emerald);
}

/* ==========================================================================
   MODAL: 30-SECOND TILE GAME
   ========================================================================== */

.game-window {
  max-width: 500px;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--glass-shadow), 0 0 35px rgba(139, 92, 246, 0.2);
  padding: 24px;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hud-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 12px;
  padding: 6px 14px;
  text-align: center;
  min-width: 75px;
}

.hud-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.hud-value {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-accent {
  color: #f43f5e;
}

.hud-title-wrap {
  text-align: center;
}

.game-title {
  font-family: var(--font-royal);
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.game-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Timer Bar */
.timer-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 14px;
  overflow: hidden;
}

.timer-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 3px;
  transition: width 0.3s linear;
}

/* Game Arena */
.game-arena {
  position: relative;
  width: 100%;
  height: 380px;
  background: rgba(8, 12, 20, 0.85);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

/* Falling Tile */
.falling-tile {
  position: absolute;
  width: 68px;
  height: 68px;
  background-image: url('assets/images/tile.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 215, 0, 0.75);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 183, 60, 0.4);
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  user-select: none;
  touch-action: manipulation;
  will-change: transform, opacity;
  transition: filter 0.1s ease;
}

.falling-tile:hover {
  filter: brightness(1.2);
}

.falling-tile:active {
  transform: scale(0.92);
}

/* Tile Shatter Effect */
.falling-tile.shattered {
  pointer-events: none;
  animation: tileShatterAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tileShatterAnim {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(2);
  }

  50% {
    transform: scale(1.3) rotate(25deg);
    opacity: 0.8;
  }

  100% {
    transform: scale(0.1) rotate(60deg);
    opacity: 0;
  }
}

/* Floating Score Indicator (+10) */
.score-float {
  position: absolute;
  color: #facc15;
  font-family: var(--font-royal);
  font-size: 1.3rem;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
  animation: scoreFloatUp 0.6s ease-out forwards;
}

@keyframes scoreFloatUp {
  0% {
    transform: translate(-50%, 0) scale(0.8);
    opacity: 0;
  }

  30% {
    transform: translate(-50%, -15px) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -40px) scale(1);
    opacity: 0;
  }
}

/* Arena Overlays */
.arena-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 24, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.arena-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-card {
  text-align: center;
}

.overlay-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.overlay-card h3 {
  font-family: var(--font-royal);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.overlay-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.final-score-lead {
  font-size: 1.1rem !important;
  color: var(--text-main) !important;
}

.final-score-lead strong {
  font-size: 2rem;
  color: var(--gold-light);
  display: inline-block;
  margin-left: 6px;
}

.score-comment {
  font-style: italic;
  color: var(--blue-water) !important;
  font-weight: 500;
  margin-bottom: 14px !important;
}

.game-stat-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.game-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-game-action {
  background: linear-gradient(135deg, var(--arcade-violet), var(--arcade-pink));
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
  transition: all var(--transition-fast);
}

.btn-game-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

/* ==========================================================================
   MODAL: POSITIVE & FUNNY MOTIVATION
   ========================================================================== */

.wisdom-window {
  border-color: rgba(245, 183, 60, 0.4);
  box-shadow: var(--glass-shadow), 0 0 35px rgba(245, 183, 60, 0.15);
  text-align: center;
}

.wisdom-tag {
  display: inline-block;
  background: rgba(245, 183, 60, 0.18);
  border: 1px solid rgba(245, 183, 60, 0.4);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.wisdom-header h2 {
  font-family: var(--font-royal);
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.wisdom-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.wisdom-card {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 18px;
  padding: 26px 22px;
  margin-bottom: 22px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.quote-mark {
  font-family: var(--font-royal);
  font-size: 2.6rem;
  color: var(--gold-primary);
  opacity: 0.35;
  line-height: 0;
}

.quote-mark.open {
  text-align: left;
  margin-bottom: 14px;
}

.quote-mark.close {
  text-align: right;
  margin-top: 14px;
}

.wisdom-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 500;
  font-style: italic;
}

.wisdom-author {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.wisdom-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-wisdom-action {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #0b0f19;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: all var(--transition-fast);
}

.btn-wisdom-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 183, 60, 0.5);
}

/* ==========================================================================
   MODAL: SANITIZE & WASH HANDS STEP
   ========================================================================== */

.handwash-window {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: var(--glass-shadow), 0 0 35px rgba(6, 182, 212, 0.2);
  text-align: center;
  max-width: 480px;
}

.handwash-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.handwash-header h2 {
  font-family: var(--font-royal);
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.handwash-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.handwash-visualizer {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 20px;
  padding: 28px 20px;
  margin-bottom: 22px;
  overflow: hidden;
}

.soap-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2.8rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.soap-icon {
  animation: soapPump 1.8s infinite ease-in-out;
}

.water-drop-icon {
  animation: dropSplash 1.4s infinite ease-in-out;
}

.sparkle-icon {
  animation: sparkleTwinkle 1.6s infinite ease-in-out;
}

@keyframes soapPump {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes dropSplash {

  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15) translateY(4px);
    opacity: 1;
  }
}

@keyframes sparkleTwinkle {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.handwash-status-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* 2-Second Washing Foam & Bubble Animation */
.washing-foam-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.washing-foam-layer.active {
  opacity: 1;
}

.foam-bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  bottom: -20px;
  opacity: 0;
}

.washing-foam-layer.active .foam-bubble {
  animation: bubbleRiseLather 1.8s ease-in forwards;
}

.foam-bubble.b1 {
  left: 15%;
  width: 28px;
  height: 28px;
  animation-delay: 0.1s;
}

.foam-bubble.b2 {
  left: 35%;
  width: 42px;
  height: 42px;
  animation-delay: 0.25s;
}

.foam-bubble.b3 {
  left: 55%;
  width: 34px;
  height: 34px;
  animation-delay: 0.15s;
}

.foam-bubble.b4 {
  left: 75%;
  width: 30px;
  height: 30px;
  animation-delay: 0.3s;
}

.foam-bubble.b5 {
  left: 25%;
  width: 22px;
  height: 22px;
  animation-delay: 0.4s;
}

.foam-bubble.b6 {
  left: 65%;
  width: 38px;
  height: 38px;
  animation-delay: 0.2s;
}

.foam-bubble.b7 {
  left: 85%;
  width: 24px;
  height: 24px;
  animation-delay: 0.5s;
}

@keyframes bubbleRiseLather {
  0% {
    bottom: -20px;
    transform: scale(0.6);
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  75% {
    opacity: 0.85;
  }

  100% {
    bottom: 110%;
    transform: scale(1.25);
    opacity: 0;
  }
}

.handwash-actions {
  display: flex;
  gap: 12px;
}

.handwash-actions button {
  flex: 1;
}

.btn-wash-action {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  transition: all var(--transition-fast);
}

.btn-wash-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6);
}

/* ==========================================================================
   MODAL: EXIT BREAK REPORT
   ========================================================================== */

.report-window {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: var(--glass-shadow), 0 0 35px rgba(239, 68, 68, 0.15);
}

.report-header {
  text-align: center;
  margin-bottom: 20px;
}

.report-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.report-header h2 {
  font-family: var(--font-royal);
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.report-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Report Metrics Grid */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.report-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rep-icon {
  font-size: 1.3rem;
}

.rep-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.rep-val {
  font-size: 1.25rem;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-weight: 800;
}

/* Diagnosis Box */
.diagnosis-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.diagnosis-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-primary), #f59e0b);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#diag-title {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 6px;
}

#diag-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.fun-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fun-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fun-stat-item span:first-child {
  width: 140px;
  flex-shrink: 0;
}

.meter-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.report-actions {
  display: flex;
  gap: 12px;
}

.report-actions button {
  flex: 1;
}

.btn-wash {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
  transition: all var(--transition-fast);
}

.btn-wash:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
}

/* ==========================================================================
   MODAL: 2-MINUTE BREAK TIMER POPUP
   ========================================================================== */

.warning-window {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--glass-shadow), 0 0 40px rgba(245, 158, 11, 0.25);
  text-align: center;
  max-width: 460px;
}

.warning-icon-wrap {
  margin-bottom: 12px;
}

.warning-icon-pulse {
  font-size: 3rem;
  display: inline-block;
  animation: sandPulse 1.8s infinite ease-in-out;
}

@keyframes sandPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.15) rotate(15deg);
  }
}

.warning-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.warning-header h2 {
  font-family: var(--font-royal);
  font-size: 1.55rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.warning-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 20px;
}

.warning-stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 12px 8px;
  margin-bottom: 22px;
}

.warn-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warn-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.warn-stat strong {
  font-size: 1.1rem;
  color: #ffffff;
  font-family: 'Courier New', monospace;
}

.btn-warning-dismiss {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: url('./assets/images/finger.png') 0 0, pointer !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-fast);
}

.btn-warning-dismiss:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--blue-water);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 180, 216, 0.35);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  backdrop-filter: blur(12px);
  animation: toastBounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.toast.hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
}

.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-water);
  text-transform: uppercase;
}

.toast-body {
  font-size: 0.86rem;
  color: #f1f5f9;
  line-height: 1.4;
  margin-top: 2px;
}

@keyframes toastBounceIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 600px) {
  .top-bar {
    padding: 12px 14px;
  }

  .status-text {
    font-size: 0.72rem;
  }

  .timer-badge {
    padding: 4px 10px;
  }

  .timer-digits {
    font-size: 0.95rem;
  }

  .main-container {
    padding: 10px 12px 18px 12px;
  }

  .sanctuary-console {
    max-width: 100%;
    border-radius: 20px;
  }

  .welcome-card {
    padding: 16px 14px 12px 14px;
  }

  .welcome-title {
    font-size: 1.25rem;
  }

  .welcome-quote {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .btn-toggle-panel {
    font-size: 0.85rem;
    padding: 9px 20px;
  }

  .controls-drawer {
    padding: 0 14px 14px 14px;
  }

  .buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-flush {
    grid-column: auto;
  }

  .btn {
    padding: 10px 14px;
    gap: 12px;
  }

  .btn-icon {
    font-size: 1.25rem;
  }

  .btn-text strong {
    font-size: 0.95rem;
  }

  .btn-text small {
    font-size: 0.72rem;
  }

  .modal-window {
    padding: 20px 16px;
  }

  .game-arena {
    height: 310px;
  }

  .falling-tile {
    width: 58px;
    height: 58px;
  }
}