/* ===========================================
   DIMMI SHARED STYLES - Caique Parrot Theme
   Colors: Orange, Green, White
   =========================================== */

/* CSS Variables for Caique Theme */
:root {
  /* Primary Caique Colors */
  --caique-orange: #FF8C42;
  --caique-orange-dark: #E67332;
  --caique-orange-light: #FFB07C;
  --caique-green: #2ECC71;
  --caique-green-dark: #27AE60;
  --caique-green-light: #58D68D;
  --caique-white: #FAFAFA;
  --caique-cream: #FFF8F0;
  
  /* UI Colors */
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-overlay: rgba(0,0,0,0.85);
  
  /* Feedback Colors */
  --color-success: var(--caique-green);
  --color-error: #e74c3c;
  --color-warning: var(--caique-orange);
  
  /* ========== SEMANTIC YES/NO/REWARD COLORS ==========
     These map to the UX Style Guide in SYNK.md.
     Use these for consistent YES/NO associations across games. */
  --dimmi-yes-color: #2ecc71;       /* Green/Teal - correct answers, YES buttons */
  --dimmi-no-color: #ff6b81;        /* Pink/Red - wrong answers, NO buttons */
  --dimmi-reward-color: #9b59b6;    /* Purple - reward screens, video/photo time */
  --dimmi-warning-color: #f39c12;   /* Orange - admin dialogs, "are you sure?" */
  --dimmi-neutral-color: #f1c40f;   /* Yellow/Gold - hints, prompts, questions */
  
  /* Consistent Sounds */
  --sound-click: 600;
  --sound-success: 800;
  --sound-error: 200;
  --sound-back: 400;
}

/* ========== SEMANTIC YES/NO/REWARD UTILITY CLASSES ==========
   Use these for consistent visual feedback across games.
   These are building blocks - don't apply globally yet. */

/* YES / Correct state - green background */
.dimmi-yes {
  background-color: var(--dimmi-yes-color) !important;
  color: #ffffff !important;
}

/* NO / Incorrect state - pink/red background */
.dimmi-no {
  background-color: var(--dimmi-no-color) !important;
  color: #ffffff !important;
}

/* Reward state - purple background (for video/photo screens) */
.dimmi-reward {
  background-color: var(--dimmi-reward-color) !important;
  color: #ffffff !important;
}

/* Warning/Admin state - orange background */
.dimmi-warning {
  background-color: var(--dimmi-warning-color) !important;
  color: #ffffff !important;
}

/* Neutral/Hint state - yellow/gold background */
.dimmi-neutral {
  background-color: var(--dimmi-neutral-color) !important;
  color: #333333 !important;
}

/* Border variants (less intrusive than full background) */
.dimmi-yes-border { border: 3px solid var(--dimmi-yes-color) !important; }
.dimmi-no-border { border: 3px solid var(--dimmi-no-color) !important; }
.dimmi-reward-border { border: 3px solid var(--dimmi-reward-color) !important; }

/* ========== NO-SCROLL PARROT-FRIENDLY BASE ========== */
/* Apply to html,body in each page's <style> block for full effect,
   or add .no-scroll class to body */
.no-scroll,
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Base styles for parrot-friendly pages (no scroll, no select) */
.parrot-friendly {
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Opt-in helper to re-enable mobile scrolling and safe-area padding */
html.touch-scroll,
body.touch-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  padding-bottom: max(env(safe-area-inset-bottom), 12px);
  touch-action: auto;
}

/* Scrollable containers - use this class on any element that should scroll on mobile */
.scrollable {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain;
  touch-action: auto !important;
}

/* Always show scrollbar on scrollable elements (helps on mobile) */
.scrollable::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
  width: 8px;
  background: rgba(255,255,255,0.1);
}

.scrollable::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb:hover,
.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

/* ========== HOME BUTTON - LEFT STRIP ========== */
.home-strip {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5vw;
  min-width: 50px;
  max-width: 70px;
  background: linear-gradient(180deg, var(--caique-orange) 0%, var(--caique-orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  border-right: 3px solid var(--caique-orange-light);
  transition: transform 100ms ease, background 100ms ease;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255,140,66,0.5);
  touch-action: manipulation;
  pointer-events: auto !important;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.home-strip:hover {
  background: linear-gradient(180deg, var(--caique-orange-light) 0%, var(--caique-orange) 100%);
}

.home-strip:active {
  transform: scale(0.95);
  background: linear-gradient(180deg, var(--caique-orange-dark) 0%, #CC5500 100%);
}

.home-strip .home-icon,
.home-strip .home-strip-icon {
  font-size: min(8vw, 45px);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
  pointer-events: none;
}

.home-strip.locked-home {
  opacity: 0.5;
  pointer-events: none;
}

/* Content padding to account for home strip */
.has-home-strip {
  padding-left: calc(5vw + 10px) !important;
  padding-left: calc(max(50px, min(5vw, 70px)) + 10px) !important;
}

/* ========== PROGRESS BAR (Top Strip) ========== */
.progress-strip {
  position: fixed;
  top: 0;
  left: 5vw;
  left: max(50px, min(5vw, 70px));
  right: 0;
  height: 8px;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

.progress-strip-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--caique-green) 0%, var(--caique-green-light) 100%);
  transition: width 500ms ease;
  box-shadow: 0 0 10px var(--caique-green);
}

.progress-strip-stars {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-70%);  /* Offset left to avoid settings menu on right */
  font-size: 18px;
  color: #fff;
  font-family: system-ui, sans-serif;
  background: rgba(0,0,0,0.4);
  padding: 5px 12px;
  border-radius: 15px;
  z-index: 999;  /* Below settings toggle (z-index: 200) */
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ========== GALLERY GRID (Square Thumbnails) ========== */
.gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow-y: auto;
  padding: 15px;
  padding-bottom: 120px;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 4px solid transparent;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
  transition: transform 100ms ease, border-color 100ms ease;
}

.gallery-item.selected {
  border-color: var(--caique-orange);
  box-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
  transform: scale(1.05);
}

.gallery-item.current {
  border-color: var(--caique-green);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.gallery-item .item-num {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 10px;
  font-family: system-ui, sans-serif;
}

/* ========== CONSISTENT BUTTON STYLES ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--caique-green) 0%, var(--caique-green-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 15px 30px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
  transition: transform 100ms ease;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--caique-orange) 0%, var(--caique-orange-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 15px 30px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
  transition: transform 100ms ease;
}

.btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

/* Navigation buttons (prev/next) */
.nav-btn-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--caique-orange-light) 0%, var(--caique-orange) 100%);
  cursor: pointer;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 0 rgba(0,0,0,0.3);
  transition: transform 100ms ease;
}

.nav-btn-large:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

/* Mode toggle buttons */
.mode-toggle {
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 30px;
}

.mode-btn {
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms ease;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--caique-green) 0%, var(--caique-green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* ========== CAIQUE THEMED BACKGROUNDS ========== */
.bg-caique {
  background: linear-gradient(135deg, var(--caique-orange) 0%, var(--caique-green) 100%);
}

.bg-caique-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ========== CLOSE/X BUTTON ========== */
.close-btn-round {
  font-size: 40px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
  color: #fff;
}

.close-btn-round:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

/* ========== GO BUTTON ========== */
.go-btn-large {
  flex: 1;
  font-size: 36px;
  padding: 18px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--caique-green) 0%, var(--caique-green-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 0 rgba(0,0,0,0.3);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 200ms ease, transform 100ms ease;
  font-family: system-ui, sans-serif;
  font-weight: bold;
}

.go-btn-large.ready {
  opacity: 1;
}

.go-btn-large:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

/* ========== QUEST UI ========== */

/* Quest Progress Bar (shows step progress during quest) */
.quest-progress-bar {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 100%);
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: system-ui, sans-serif;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 200px;
  max-width: 80vw;
  max-height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.quest-progress-bar.visible {
  display: flex;
}

/* Progress track container */
.quest-progress-track {
  width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

/* Progress fill */
.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--caique-orange) 0%, var(--caique-green) 100%);
  border-radius: 10px;
  transition: width 500ms ease;
  box-shadow: 0 0 15px rgba(46,204,113,0.5);
}

/* Step markers along the progress bar */
.quest-step-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.quest-step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  top: -5px;
  transition: all 200ms ease;
  z-index: 2;
}

.quest-step-marker.completed {
  background: var(--caique-green);
  border-color: var(--caique-green-light);
  box-shadow: 0 0 12px var(--caique-green);
}

.quest-step-marker.current {
  background: var(--caique-orange);
  border-color: var(--caique-orange-light);
  box-shadow: 0 0 12px var(--caique-orange);
  animation: marker-pulse 1.5s ease-in-out infinite;
  transform: scale(1.15);
}

.quest-step-marker.reward {
  cursor: pointer;
}

.quest-step-marker.reward:hover {
  transform: scale(1.2);
}

@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--caique-orange); }
  50% { box-shadow: 0 0 25px var(--caique-orange); }
}

/* Quest label showing current progress */
.quest-progress-label {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quest-progress-label .stars-needed {
  color: #ffd700;
}

.quest-stars-strip {
  display: flex;
  gap: 2px;
  justify-content: center;
  width: 100%;
  max-height: 30px;
}

.quest-star-icon {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 150ms ease, color 150ms ease;
}

.quest-star-icon.filled {
  color: #ffd700;
  transform: scale(1.05);
}

/* Reward preview tooltip */
.reward-preview {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  margin-bottom: 8px;
  z-index: 10;
}

.quest-step-marker:hover .reward-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.reward-preview::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.9);
}

/* Old dot styles (keeping for compatibility) */
.quest-progress-bar .quest-dots {
  display: flex;
  gap: 6px;
}

.quest-progress-bar .quest-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 200ms ease;
}

.quest-progress-bar .quest-dot.completed {
  background: var(--caique-green);
  border-color: var(--caique-green-light);
  box-shadow: 0 0 8px var(--caique-green);
}

.quest-progress-bar .quest-dot.current {
  background: var(--caique-orange);
  border-color: var(--caique-orange-light);
  box-shadow: 0 0 8px var(--caique-orange);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.quest-progress-bar .quest-label {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* NEXT Button - Right Strip (mirrors Home Strip) */
.next-strip {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5vw;
  min-width: 50px;
  max-width: 70px;
  background: linear-gradient(180deg, var(--caique-green) 0%, var(--caique-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  border-left: 3px solid var(--caique-green-light);
  transition: transform 100ms ease, background 100ms ease, opacity 200ms ease;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(46,204,113,0.5);
  touch-action: manipulation;
  opacity: 0;
  pointer-events: none;
}

.next-strip.visible {
  opacity: 1;
  pointer-events: auto;
}

.next-strip:hover {
  background: linear-gradient(180deg, var(--caique-green-light) 0%, var(--caique-green) 100%);
}

.next-strip:active {
  transform: scale(0.95);
  background: linear-gradient(180deg, var(--caique-green-dark) 0%, #1e8449 100%);
}

.next-strip .next-icon {
  font-size: min(8vw, 45px);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
  pointer-events: none;
}

.next-strip.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.next-strip.quest-next-locked {
  opacity: 0.35;
  filter: grayscale(0.4);
  pointer-events: none;
}

.next-strip.quest-next-ready {
  animation: next-ready-pulse 1.4s ease-in-out infinite;
  opacity: 1;
}

@keyframes next-ready-pulse {
  0%, 100% { box-shadow: -4px 0 20px rgba(0,0,0,0.3); transform: scale(1); }
  50% { box-shadow: -4px 0 26px rgba(0,0,0,0.45); transform: scale(1.03); }
}

.quest-status {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-family: system-ui, sans-serif;
  z-index: 999;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

.quest-status.shake {
  animation: quest-shake 0.4s ease;
}

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

.quest-step-complete-overlay,
.quest-complete-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  background: rgba(0,0,0,0.4);
  animation: fadeInQuick 200ms ease;
  pointer-events: none;
}

.quest-step-complete-card,
.quest-complete-card {
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 24px 28px;
  border-radius: 20px;
  text-align: center;
  font-family: system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.15);
}

.quest-step-complete-emoji {
  font-size: 52px;
  margin-bottom: 6px;
}

.quest-step-complete-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quest-complete-card {
  font-size: 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  animation: quest-complete-pop 450ms ease;
  padding: 30px 36px;
}

.quest-complete-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.quest-complete-overlay.fade-out,
.quest-step-complete-overlay.fade-out {
  animation: fadeOutQuick 350ms ease forwards;
}

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

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

@keyframes quest-complete-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ========== WORLD MAP LAYER ========== */
.dimmi-body {
  background: linear-gradient(135deg, #fef6e4, #e0f4ff);
  color: #1a1a2e;
  font-family: 'Baloo 2', 'Nunito', system-ui, -apple-system, sans-serif;
}

.world-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.world-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 0.75rem;
}

.world-header h1 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 1px;
}

#worldViewport {
  position: relative;
  flex: 1;
  padding: 0 1.5rem 1rem;
  overflow: hidden;
}

#worldMap {
  position: relative;
  width: 200%;
  height: 200%;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.5s ease;
  background: radial-gradient(circle at 20% 20%, #ffe29f, #ffa99f 40%, #67b26f 75%);
  box-shadow: inset 0 12px 40px rgba(0, 0, 0, 0.08);
}

.world-footer {
  padding: 0.5rem 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
}

.world-region {
  position: absolute;
  width: 30%;
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  text-align: center;
  padding: 0.75rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(4px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.world-region:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.region-emoji {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 0.25rem;
}

.region-label {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.region-zoo {
  left: 15%;
  top: 20%;
}

.region-forest {
  right: 15%;
  top: 20%;
}

.region-town {
  left: 15%;
  bottom: 15%;
}

.region-park {
  right: 15%;
  bottom: 15%;
}

.world-arrows {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.world-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.world-arrow-btn:active {
  transform: scale(0.94);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.region-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.region-overlay.hidden {
  display: none;
}

.region-panel {
  width: min(520px, 90vw);
  border-radius: 24px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.region-panel h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: 0.5px;
}

.region-panel p {
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.region-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.region-buttons button {
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
}

.region-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.region-icon {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.3);
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
}

.region-game-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.region-game-list.hidden {
  display: none;
}

.pill-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #55efc4, #00b894);
  color: #0b2d2d;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pill-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.block-btn {
  width: 100%;
  justify-content: center;
}

.region-theme-zoo {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
}

.region-theme-forest {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: #fff;
}

.region-theme-town {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  color: #fff;
}

.region-theme-park {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #fff;
}

/* ========== FULLSCREEN TOGGLE BUTTON ========== */
.fullscreen-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  opacity: 0.5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fullscreen-toggle:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  transform: scale(1.1);
}

.fullscreen-toggle:active {
  transform: scale(0.95);
}

.fullscreen-toggle.is-fullscreen {
  color: var(--caique-green);
}

/* Hide on very small screens or when home-strip is present */
@media (max-width: 360px) {
  .fullscreen-toggle {
    width: 30px;
    height: 30px;
    font-size: 16px;
    top: 8px;
    left: 8px;
  }
}
