/* ==========================================================================
   Welcome Baby Anjaneya – Find & Decorate
   Indian Mythology Inspired Festive Child-Friendly Design System
   100% Edge-to-Edge Responsive Layout across Desktop, Laptop, Mac, Tablet, iPad & Mobile
   Loads exact game assets from assets/ directory
   ========================================================================== */

:root {
  /* Warm, joyful festive palette */
  --bg-warm-sunset: linear-gradient(135deg, #ffedd5 0%, #fef3c7 45%, #fed7aa 100%);
  --palette-gold: #f59e0b;
  --palette-gold-light: #fef08a;
  --palette-gold-dark: #b45309;
  --palette-marigold: #f97316;
  --palette-saffron: #ea580c;
  --palette-terracotta: #c2410c;
  --palette-peacock: #0d9488;
  --palette-peacock-light: #5eead4;
  --palette-rose: #f43f5e;
  --palette-magenta: #be123c;
  --palette-cream: #fffbeb;
  --palette-royal-wood: #78350f;

  /* UI Tokens */
  --shadow-soft: 0 4px 16px rgba(120, 53, 15, 0.15);
  --shadow-lg: 0 12px 32px rgba(180, 83, 9, 0.28);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  --font-family: 'Outfit', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Responsive Heights */
  --hud-height: 54px;
  --tray-height: clamp(96px, 22vh, 142px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  inset: 0;
  background: #78350f;
  font-family: var(--font-family);
  color: #3e1b04;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   EDGE-TO-EDGE FULLSCREEN APP SHELL
   ========================================================================== */
#gameAppShell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #78350f;
}

/* Global HUD Bar (Sound toggle) */
.global-hud-bar {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--palette-gold);
  background: rgba(255, 255, 255, 0.95);
  color: var(--palette-royal-wood);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hud-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.hud-btn:active {
  transform: scale(0.92);
}

/* Fireworks / Confetti Canvas */
#confettiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Screens General Layout */
.game-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.game-screen.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto !important;
  visibility: visible !important;
  transform: scale(1);
}

.game-screen.fade-out {
  opacity: 0;
}

/* ==========================================================================
   SCREEN 1: INTRO / WELCOME (scene_1_background.png)
   ========================================================================== */

#screenIntro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(10px, 2.5vh, 22px) clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  background: #78350f;
}

.intro-scene-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.intro-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  display: block;
}

.intro-header {
  position: relative;
  z-index: 20;
  margin-top: clamp(6px, 1.8vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 70%, transparent 100%);
  padding: 6px 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.intro-title-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fffbeb;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  margin-bottom: 4px;
}

.intro-title {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 900;
  color: #78350f;
  text-shadow: 0 2px 0 #fef08a, 0 3px 10px rgba(120, 53, 15, 0.25);
  line-height: 1.15;
}

.intro-subtitle {
  font-size: clamp(0.85rem, 1.7vw, 1.25rem);
  color: #9a3412;
  font-weight: 700;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.intro-footer {
  position: relative;
  z-index: 30;
  margin-bottom: clamp(12px, 3vh, 32px);
  pointer-events: auto;
}

/* Large Child-Friendly Primary Button */
.btn-primary-fun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  color: #451a03;
  font-family: var(--font-family);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: clamp(10px, 1.6vh, 16px) clamp(28px, 4vw, 44px);
  border: 3.5px solid #fffbeb;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45), 0 3px 0 #9a3412;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  animation: pulseButton 2.2s infinite;
  pointer-events: auto;
}

.btn-primary-fun:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.55), 0 4px 0 #9a3412;
}

.btn-primary-fun:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35), 0 1px 0 #9a3412;
}

.btn-secondary-fun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #78350f;
  font-family: var(--font-family);
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  font-weight: 800;
  padding: clamp(8px, 1.4vh, 12px) clamp(20px, 3vw, 32px);
  border: 2.5px solid #f59e0b;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}

.btn-secondary-fun:hover {
  transform: scale(1.04);
  background: #ffffff;
}

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

/* ==========================================================================
   SCREEN 2: MAIN GAMEPLAY (scene_2_background.png)
   ========================================================================== */

#screenGameplay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #54250e;
}

/* Floating Top HUD */
.gameplay-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(38px, 5.2vh, 46px);
  min-height: 38px;
  padding: 0 clamp(12px, 1.8vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.95) 0%, rgba(254, 215, 170, 0.92) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 2px 10px rgba(120, 53, 15, 0.16);
  z-index: 50;
  pointer-events: auto;
}

.hud-title-wrap {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1.2vw, 16px);
}

.hud-title {
  font-size: clamp(0.88rem, 1.5vw, 1.2rem);
  font-weight: 900;
  color: #78350f;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.hud-hint {
  font-size: clamp(0.7rem, 1.05vw, 0.88rem);
  color: #9a3412;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.hud-progress-wrap {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  margin-right: 48px;
}

.progress-pill-badge {
  font-size: clamp(0.75rem, 1.4vw, 1.1rem);
  font-weight: 800;
  color: #ffffff;
  background: #ea580c;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
  white-space: nowrap;
}

.progress-bar-track {
  width: clamp(80px, 14vw, 160px);
  height: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.8px solid #f59e0b;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #facc15, #f97316);
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-btn-done {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: clamp(0.85rem, 1.5vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 2.5px solid #f0fdf4;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.hud-btn-done.hidden {
  display: none;
}

.hud-btn-done:hover:not([disabled]) {
  transform: scale(1.05);
}

.hud-btn-done.pulse-ready {
  animation: pulseButton 1.5s infinite;
}

/* ==========================================================================
   INTERACTIVE ROOM STAGE (Strict 1672:941 Aspect Ratio Centered)
   ========================================================================== */

.gameplay-stage {
  position: relative;
  max-width: calc(100% - 2 * (clamp(74px, 7.8vw, 110px) + clamp(8px, 1.2vw, 18px)));
  max-height: 100%;
  aspect-ratio: 1672 / 941;
  margin: auto;
  align-self: center;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* Room Chamber Frame */
.room-stage-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.room-backdrop-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Target Outlines Overlay */
.targets-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* Individual Target Spot */
.room-target-spot {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* When completed: lock item in place and hide target indicators */
.room-target-spot.completed {
  pointer-events: none !important;
  cursor: default;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  filter: none !important;
}

.room-target-spot.completed .outline-wrapper,
.room-target-spot.completed .target-glow-indicator {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Idle hint during drag */
.room-target-spot.target-hint-active {
  outline: 2.5px dashed rgba(251, 191, 36, 0.8);
  outline-offset: -2px;
  border-radius: 12px;
  animation: targetHintPulse 1.6s ease-in-out infinite alternate;
}

/* Hover match feedback */
.room-target-spot.hover-match {
  outline: 3.5px solid #f59e0b !important;
  filter: drop-shadow(0 0 16px #fbbf24) brightness(1.2) !important;
  transform: scale(1.03);
  border-radius: 14px;
}

/* Placed Decoration Asset */
.placed-decoration-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.placed-asset-img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  animation: popInSnap 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.placed-asset-img.fit-contain {
  object-fit: contain;
  object-position: center center;
}

.placed-asset-img.fit-fill {
  object-fit: fill;
  object-position: center center;
}

/* Room Ready Toast Banner */
.room-ready-banner {
  position: absolute;
  top: clamp(48px, 7.5vh, 62px);
  left: 50%;
  transform: translateX(-50%) translateY(-70px);
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 900;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 3px solid #fef08a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.room-ready-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GAMEPLAY MAIN CONTAINER & SIDE INVENTORY PANELS
   ========================================================================== */

.gameplay-main-container {
  position: absolute;
  top: clamp(38px, 5.2vh, 46px);
  bottom: clamp(6px, 1vh, 12px);
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: clamp(4px, 0.8vh, 8px) clamp(8px, 1.2vw, 18px);
  gap: clamp(8px, 1.2vw, 18px);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 10;
}

/* Cream-colored Side Panels for Draggable Items (Full-height, 5 Left & 5 Right) */
.gameplay-side-panel {
  flex: 0 0 auto;
  width: clamp(74px, 7.8vw, 110px);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: clamp(8px, 1.4vh, 16px) clamp(5px, 0.7vw, 10px);
  background: rgba(254, 243, 199, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 2.5px solid rgba(251, 191, 36, 0.88);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 40;
  box-sizing: border-box;
  pointer-events: auto;
}

/* Individual Draggable Item Card (Visual-only thumbnails, no text labels) */
.tray-item-card {
  flex: 0 0 auto;
  width: clamp(56px, 6.2vw, 86px);
  height: clamp(56px, 6.2vw, 86px);
  max-width: 100%;
  max-height: calc((100% - clamp(20px, 3vh, 44px)) / 5);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.96);
  border: 2.5px solid #fbbf24;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(120, 53, 15, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.6vw, 8px);
  cursor: grab;
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.tray-item-card * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.tray-item-card:hover:not(.placed):not(.in-drag) {
  transform: translateY(-2px) scale(1.06);
  border-color: #f59e0b;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}

.tray-item-card:active:not(.placed) {
  cursor: grabbing;
}

.tray-item-card.in-drag {
  opacity: 0.35;
  transform: scale(0.92);
}

.tray-item-card.placed {
  opacity: 0.42;
  cursor: default;
  filter: grayscale(0.5);
  border-color: #22c55e;
  background: rgba(240, 253, 244, 0.85);
  pointer-events: none !important;
}

.tray-item-icon {
  width: 88%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.game-asset-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* Placed Checkmark Badge */
.placed-check-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: #22c55e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tray-item-card.placed .placed-check-badge {
  display: flex;
}

/* ==========================================================================
   DRAGGING GHOST (FLOATING ITEM)
   ========================================================================== */

.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.38));
  will-change: transform;
}

.drag-ghost .game-asset-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   SCREEN 3: CELEBRATION / SUCCESS (scene_3_background.png)
   ========================================================================== */

#screenCelebration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #78350f;
}

.celebration-header {
  position: absolute;
  top: clamp(8px, 1.8vh, 18px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 70%, transparent 100%);
  padding: 6px 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.celebration-badge {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  font-size: clamp(0.7rem, 1.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35);
  margin-bottom: 4px;
}

.celebration-title {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 900;
  color: #78350f;
  text-shadow: 0 2px 0 #fef08a, 0 3px 10px rgba(120, 53, 15, 0.2);
  line-height: 1.1;
}

.celebration-subtitle {
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  color: #9a3412;
  font-weight: 700;
  margin-top: 2px;
}

.celebration-stage-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.celebration-stage-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.celebration-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.celebration-footer {
  position: absolute;
  bottom: clamp(12px, 3vh, 28px);
  z-index: 30;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes targetHintPulse {
  0% { opacity: 0.55; }
  100% { opacity: 0.95; }
}

@keyframes popInSnap {
  0% {
    transform: scale(0.65);
    opacity: 0.3;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sparkle-star {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 999;
  animation: flySparkle 0.6s ease-out forwards;
}

@keyframes flySparkle {
  0% {
    transform: translate(0, 0) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

/* Mobile Portrait Overlay */
#landscapePromptOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(41, 16, 2, 0.96);
  color: #fffbeb;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

#landscapePromptOverlay .rotate-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

@media (orientation: portrait) and (max-width: 680px) {
  #landscapePromptOverlay {
    display: flex;
  }
}

@media (max-width: 800px) {
  .gameplay-main-container {
    padding: 3px 6px;
    gap: 6px;
  }
  .gameplay-side-panel {
    width: clamp(52px, 8.5vw, 68px);
    padding: 6px 3px;
    border-radius: 16px;
  }
  .tray-item-card {
    width: clamp(42px, 7vw, 54px);
    height: clamp(42px, 7vw, 54px);
    border-radius: 10px;
    padding: 2px;
  }
}

@media (max-height: 520px) {
  .gameplay-hud {
    height: 34px;
    min-height: 34px;
  }
  .gameplay-main-container {
    top: 34px;
    bottom: 3px;
    padding: 2px 6px;
    gap: 6px;
  }
  .gameplay-side-panel {
    padding: 4px 2px;
    border-radius: 14px;
  }
  .tray-item-card {
    width: clamp(34px, 14vh, 56px);
    height: clamp(34px, 14vh, 56px);
  }
}

