/* 
  Pebble - The Infinite Panorama 
  Design Philosophy: Organic Minimalism & Direct Manipulation
*/

:root {
  /* Typography - Humanist Sans */
  --font-base: 'Nunito', system-ui, -apple-system, sans-serif;
  
  /* Palette - Organic & Warm */
  --bg-dawn: linear-gradient(135deg, #FDFBF7 0%, #F3EFE7 100%);
  --text-ink: #3E2723; /* Deep Warm Brown - Never Black */
  --text-soft: #8D6E63;
  
  /* Glassmorphism - The Material */
  --glass-surface: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(62, 39, 35, 0.06); /* Ultra soft shadow */
  
  /* Accents - Nature Inspired */
  --accent-teal: #4DB6AC;
  --accent-coral: #FFAB91;
  --accent-sand: #D7CCC8;
  
  /* Metrics */
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --space-unit: 8px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-ink);
  background: var(--bg-dawn);
  height: 100vh;
  height: 100dvh;
  overflow: hidden; /* The body doesn't scroll, the world does */
  display: flex;
  flex-direction: column;
}

/* The Infinite Panorama Container */
main {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  /* Main: Remove scroll-snap-stop here */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100vw;
  height: 100%;
}

/* The Scenes - Full Screen Slices */
.scene {
  min-width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always; /* Force stop at each scene */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
  padding-top: 80px; /* Space for header */
}

/* Header - Floating & Minimal */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 24px;
  padding-top: max(20px, env(safe-area-inset-top));
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* Let clicks pass through */
}



.brand-lowercase {
  font-family: 'Patrick Hand', cursive; /* Ensure handwriting font */
  font-size: 2rem;
  color: #3E2723;
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-ink);
  margin: 0;
}

.brand-lowercase {
  text-transform: lowercase;
}

/* Currency - Floating Pill */
.coins-display {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  font-weight: 700;
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--glass-shadow);
}

/* Settings Button - Minimal Icon */
.icon-btn {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-soft);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--glass-shadow);
}

.icon-btn:active {
  transform: scale(0.9);
}

/* Otter Container - The Centerpiece */
.otter-container, .kitchen-otter, .hygiene-otter, .games-otter {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* No drop shadow on the otter itself, let it feel grounded */
}

.otter-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(62, 39, 35, 0.1)); /* Very subtle grounding shadow */
}

/* Contextual Tools - Floating Glass Containers */
.context-panel {
  position: absolute;
  /* Lifted up to avoid system gestures on mobile (Redmi Note 9 etc) */
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  animation: floatUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes floatUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Draggable Items */
.draggable-item {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* For fallback emojis */
  cursor: grab;
  transition: transform 0.2s;
  padding: 8px;
}

.draggable-item:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Status Indicators - Minimal Dots */
.status-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.3;
  transition: all 0.3s;
}

.dot.active {
  opacity: 1;
  background: var(--accent-teal);
  transform: scale(1.2);
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-soft { color: var(--text-soft); }
.font-bold { font-weight: 700; }

/* Hide Scrollbar */
main::-webkit-scrollbar {
  display: none;
}
main {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Utilities */
/* Utilities */
.hidden { display: none !important; }

/* Overlay - Centering Container */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(62, 39, 35, 0.4); /* Warm dark overlay */
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

/* Zen Mode - The Art of Nothing */
body.zen-mode header,
body.zen-mode .context-panel,
body.zen-mode .journal-trigger,
body.zen-mode .coins-display {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Journal Trigger - Diegetic Object */
.journal-trigger {
  position: absolute;
  bottom: 120px;
  right: 20px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 10;
}


/* Close Button Fixed */
.journal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(141, 110, 99, 0.1);
  color: #5D4037;
  border: 1px solid rgba(141, 110, 99, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000; /* Must be > pages */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.journal-close-btn:hover {
  background: #8D6E63;
  color: white;
  transform: rotate(90deg);
}

/* The/* Journal Modal (Book) */
.journal-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
}

.journal-book {
  width: 90vw;
  max-width: 420px;
  height: 65vh; /* Reduced from 80vh */
  max-height: 520px; /* Reduced from 650px */
  background: transparent;
  position: relative;
  perspective: 1500px;
  margin-bottom: 20px; /* Space from bottom if centered */
}

/* Page Curl/Fold for first pages */
.journal-page:not(:last-of-type)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent #EFEBE9 transparent transparent; /* Creating the fold triangle */
  box-shadow: 3px -3px 4px rgba(0,0,0,0.15); /* Shadow for depth */
  z-index: 10;
  border-radius: 0 0 0 4px; /* Slight softening */
}

.journal-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FDF5E6; /* Old Lace */
  border-radius: 2px 16px 16px 2px;
  box-shadow: inset 20px 0 30px rgba(0,0,0,0.05), 5px 5px 15px rgba(0,0,0,0.2);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 1;
}

.journal-page::-webkit-scrollbar {
  display: none;
}

.journal-page.flipped {
  transform: rotateY(-180deg);
  pointer-events: none;
}

.journal-page h2 {
  font-family: 'Mountains of Christmas', cursive;
  color: #5D4037;
  border-bottom: 2px dashed #D7CCC8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(93, 64, 55, 0.1);
}

/* ... */

/* Polaroid Style */
.polaroid {
  background: white;
  padding: 8px 8px 24px 8px; /* Reduced padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: rotate(-2deg);
  text-align: center;
  margin: 0 auto;
  max-width: 160px; /* Reduced max-width */
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background: #eee;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem; /* Reduced font size */
  color: #ccc;
}

.polaroid-caption {
  font-family: 'Patrick Hand', cursive;
  color: #555;
}

/* Handwritten UI */
.stats-handwritten {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.checkbox-handwritten {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 1.1rem;
}

.checkbox-handwritten input {
  display: none;
}

.checkbox-handwritten .checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #8D6E63;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-handwritten input:checked + .checkmark::after {
  content: '✓';
  font-weight: bold;
  color: #3E2723;
}

.handwritten-input {
  background: transparent;
  border: none;
  border-bottom: 2px dashed #8D6E63;
  font-family: inherit;
  font-size: 1.5rem;
  color: #3E2723;
  width: 100%;
  padding: 8px 0;
  margin: 8px 0 24px 0;
}

.handwritten-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Page Navigation */
.page-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8D6E63;
  font-weight: bold;
}

.next-page-btn, .prev-page-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #3E2723;
  cursor: pointer;
}


/* The Exchange (Merchant Scene) */
.merchant-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.merchant-character {
  width: 220px;
  height: 220px;
  margin-bottom: 0px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}

.merchant-rug {
  /* Removed rug styling */
  padding: 10px;
  display: flex;
  gap: 24px;
  z-index: 1;
  margin-bottom: 40px; /* Space for buttons */
}

.rug-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.shop-trigger-img {
  width: 140px; 
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.2s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.shop-trigger-img:hover {
  transform: scale(1.05);
}

/* Shop Modal Styles */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.shop-item {
  background: #FFF;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.shop-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
}

.shop-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.shop-price {
  font-weight: bold;
  color: var(--text-ink);
  background: var(--accent-sand);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.rug-item:hover {
  transform: scale(1.2) translateY(-10px);
}

.rug-item::after {
  content: attr(data-cost) '💎';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #5D4037;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.rug-item:hover::after {
  opacity: 1;
}

.sea-glass-display {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #00695C; /* Teal for sea glass */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

/* The Rituals - Stone Stacking */
.ritual-container {
  width: 90vw;
  height: 80vh;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.ritual-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  color: #5D4037;
  margin-bottom: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  z-index: 20; /* Ensure title stays on top if desired, or move it */
  position: relative;
}

.stone-drop-zone {
  flex: 1;
  width: 100%;
  border-bottom: 4px solid #8D6E63;
  position: relative;
  display: flex;
  flex-direction: column-reverse; /* Stack from bottom */
  align-items: center;
  margin-bottom: 24px;
}

.base-stone {
  width: 120px;
  height: 40px;
  background: #5D4037;
  border-radius: 20px 20px 5px 5px;
  opacity: 0.8;
}

.stone-source {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: rgba(141, 110, 99, 0.1);
  border-radius: 24px;
}

.stone {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

.stone:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Size source stones */
.stone[data-size="large"] { width: 80px; height: 50px; }
.stone[data-size="medium"] { width: 60px; height: 40px; }
.stone[data-size="small"] { width: 40px; height: 30px; }

.stacked-stone {
  position: absolute; /* We'll position them via JS for "physics" */
  transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-ritual-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8D6E63;
  cursor: pointer;
}

/* The Current Ritual Styles */
.water-container {
    background: linear-gradient(180deg, #006064 0%, #00838F 100%);
    position: relative;
    overflow: hidden;
}

.current-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.flow-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.current-instruction {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-base);
    font-size: 1.2rem;
    opacity: 0.8;
    pointer-events: none;
}

/* Firefly Ritual Styles */
.firefly-container {
    background: radial-gradient(circle at center, #1a237e 0%, #000000 100%);
    position: relative;
    cursor: crosshair;
}

.firefly-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Lantern Trigger */
.lantern-trigger {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1000; /* Ensure on top */
}

.lantern-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.8));
}

/* Night Mode Overlay */
.night-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 10, 24, 0.9); /* Deep blue-black */
    z-index: 999; /* Below lantern (1000) but above everything else */
    pointer-events: none; /* Click through to lantern */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

body.night-mode .night-overlay {
    opacity: 1;
}

/* Lantern specific override so it doesn't get dimmed by the overlay since it's above it?
   Actually z-index 1000 > 999 so it should be bright.
   But user wanted it dimmed when OFF.
*/
body.night-mode .lantern-trigger {
    filter: none; /* Let the lantern shine or be its own thing */
    /* Wait, if it's night, the lantern is OFF? Or ON?
       User metaphor: Lantern Click -> Lights OFF (Sleep). Lantern Click -> Lights ON (Wake).
       So when Night Mode is active, the lantern image should probably look like it's off (dark) or glowing as the only light?
       "When off" -> if lights are off (night), the lantern shouldn't be bright?
       Let's stick to the previous filter for the lantern itself for now.
    */
    filter: drop-shadow(0 0 2px rgba(255, 165, 0, 0.3)); /* Dim glow */
}

/* Remove old body filters */

/* Daily Bonus Styles */
.daily-bonus-container {
    width: 95vw; /* Slightly wider on mobile */
    max-width: 500px;
    background: #FDFBF7;
    border-radius: 20px;
    padding: 24px 16px; /* Reduced horizontal padding */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.paper-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236d4c41' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.bonus-subtitle {
    color: var(--text-soft);
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; /* Reduced gap */
    width: 100%;
    margin-bottom: 24px;
}

.daily-day {
    background: #f0f0f0;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.daily-day:nth-child(7) {
    grid-column: span 4;
    aspect-ratio: 4/1;
    flex-direction: row;
    gap: 24px;
}

.daily-day.claimed {
    background: #E0F2F1;
    border-color: #4DB6AC;
    opacity: 0.6;
}

.daily-day.claimed::after {
    content: '✓';
    position: absolute;
    font-size: 2rem;
    color: #00695C;
    font-weight: bold;
}

.daily-day.active {
    background: #FFF8E1;
    border-color: #FFB74D;
    transform: scale(1.05); /* Slightly bigger */
    box-shadow: 0 8px 20px rgba(255, 183, 77, 0.3);
    z-index: 10;
}

.daily-day.locked {
    background: #eeeeee;
    opacity: 0.5;
}

.day-box-label {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: bold;
    margin-bottom: 4px;
}

.day-box-reward {
    font-size: 1.5rem;
}

.daily-day:nth-child(7) .day-box-reward {
    font-size: 2.5rem;
}

.main-btn {
    background: var(--accent-coral);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 171, 145, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.main-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 171, 145, 0.6);
}

.main-btn:not(:disabled):active {
    transform: translateY(1px);
}

/* Alert Banner */
.alert-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 50px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.alert-banner[data-variant="info"] { border-color: #29B6F6; color: #0277BD; }
.alert-banner[data-variant="warning"] { border-color: #FFA726; color: #EF6C00; }
.alert-banner[data-variant="success"] { border-color: #66BB6A; color: #2E7D32; }
.alert-banner[data-variant="error"] { border-color: #EF5350; color: #C62828; }

.alert-banner.hidden {
    display: none;
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}
/* Image Icon Utilities */
.trigger-icon, .item-icon, .merchant-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}


.merchant-img {
    object-position: center bottom;
}

/* Secret Moon */
.secret-moon {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #FFFDE7, #FDD835);
  border-radius: 50%;
  box-shadow: 0 0 20px #FDD835;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-in-out;
  z-index: 1; /* Behind UI */
  cursor: pointer;
}

body.night-mode .secret-moon {
  opacity: 0.6;
  pointer-events: auto;
}
