/* ==========================================================================
   COZY VIRTUAL PET - STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Palettes
   -------------------------------------------------------------------------- */
:root {
  --font-family: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 16px 40px -10px var(--theme-shadow);
  --shadow-button: 0 6px 16px var(--theme-btn-shadow);
}

/* Lavender Theme (VIOLET) */
body.theme-violet {
  --bg-gradient: linear-gradient(135deg, #f5efff 0%, #e8dcff 50%, #fdf5ff 100%);
  --theme-primary: #8a4fff;
  --theme-primary-hover: #7535eb;
  --theme-secondary: #c59eff;
  --theme-accent: #ede0ff;
  --theme-text-dark: #372549;
  --theme-text-muted: #726284;
  --theme-card-bg: rgba(255, 255, 255, 0.92);
  --theme-shadow: rgba(138, 79, 255, 0.15);
  --theme-btn-shadow: rgba(138, 79, 255, 0.25);
  --shape-color-1: rgba(197, 158, 255, 0.35);
  --shape-color-2: rgba(237, 224, 255, 0.6);
  --hunger-color: linear-gradient(90deg, #ff9f43, #ff6b6b);
  --happiness-color: linear-gradient(90deg, #a55eea, #8854d0);
  --badge-bg: #ede0ff;
  --badge-text: #672ac8;
}

/* Rose / Strawberry Theme (JOSIECAT) */
body.theme-josiecat {
  --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #ffe0ec 50%, #fff5f8 100%);
  --theme-primary: #ff5e8e;
  --theme-primary-hover: #e84375;
  --theme-secondary: #ffa0be;
  --theme-accent: #ffe4ee;
  --theme-text-dark: #4a2130;
  --theme-text-muted: #8c5d6e;
  --theme-card-bg: rgba(255, 255, 255, 0.94);
  --theme-shadow: rgba(255, 94, 142, 0.18);
  --theme-btn-shadow: rgba(255, 94, 142, 0.3);
  --shape-color-1: rgba(255, 160, 190, 0.35);
  --shape-color-2: rgba(255, 228, 238, 0.6);
  --hunger-color: linear-gradient(90deg, #ff9f43, #ff5e8e);
  --happiness-color: linear-gradient(90deg, #ff6b8b, #ff477e);
  --badge-bg: #ffe4ee;
  --badge-text: #d9245c;
}

/* Sky Blue / Mint Theme (PET1) */
body.theme-pet1 {
  --bg-gradient: linear-gradient(135deg, #e8f7ff 0%, #d8efff 50%, #f0faff 100%);
  --theme-primary: #0098ea;
  --theme-primary-hover: #007bc0;
  --theme-secondary: #74c7ff;
  --theme-accent: #def2ff;
  --theme-text-dark: #1b384d;
  --theme-text-muted: #4e6f87;
  --theme-card-bg: rgba(255, 255, 255, 0.94);
  --theme-shadow: rgba(0, 152, 234, 0.16);
  --theme-btn-shadow: rgba(0, 152, 234, 0.28);
  --shape-color-1: rgba(116, 199, 255, 0.35);
  --shape-color-2: rgba(222, 242, 255, 0.6);
  --hunger-color: linear-gradient(90deg, #20bf6b, #0fb9b1);
  --happiness-color: linear-gradient(90deg, #2bcbba, #0098ea);
  --badge-bg: #def2ff;
  --badge-text: #0070a8;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--theme-text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Background Decorative Elements
   -------------------------------------------------------------------------- */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.7;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--shape-color-1);
  top: -80px;
  right: -80px;
}

.shape-2 {
  width: 280px;
  height: 280px;
  background: var(--shape-color-2);
  bottom: -60px;
  left: -60px;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: var(--shape-color-1);
  top: 45%;
  left: -70px;
}

/* --------------------------------------------------------------------------
   4. Main Container & Header
   -------------------------------------------------------------------------- */
.app-container {
  width: 100%;
  max-width: 460px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.icon-btn {
  background: var(--theme-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.08);
}

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

/* --------------------------------------------------------------------------
   5. Card Common Styles
   -------------------------------------------------------------------------- */
.card {
  background: var(--theme-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. Screen 1: Activation View
   -------------------------------------------------------------------------- */
.activation-card {
  text-align: center;
}

.activation-header {
  margin-bottom: 24px;
}

.plushie-box-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: float-idle 3s ease-in-out infinite;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  line-height: 1.4;
}

.activation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin-left: 4px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  background: #ffffff;
  border: 2px solid var(--theme-accent);
  border-radius: var(--radius-md);
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 4px var(--theme-shadow);
}

.btn {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.btn-primary {
  background: var(--theme-primary);
  color: #ffffff;
  padding: 14px 24px;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--theme-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--theme-btn-shadow);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--theme-text-muted);
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--theme-text-dark);
}

.btn-sm {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.error-toast {
  background: #fff0f0;
  border: 1px solid #ffd1d1;
  color: #d63031;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  animation: shake 0.4s ease;
}

.error-toast.hidden {
  display: none !important;
}

.code-hints {
  display: block;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.hints-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin-bottom: 8px;
}

.hints-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hint-pill {
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--theme-accent);
  color: var(--theme-text-dark);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hint-pill:hover {
  transform: scale(1.05);
  background: var(--theme-secondary);
}

/* --------------------------------------------------------------------------
   7. Screen 2: Pet Care Dashboard
   -------------------------------------------------------------------------- */
.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Pet Identity Bar */
.pet-identity-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pet-name-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  padding: 3px 8px 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
  max-width: 60%;
}

.pet-name-container:focus-within {
  background: #ffffff;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}

.pet-name-input {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 50px;
}

.edit-badge {
  font-size: 0.7rem;
  opacity: 0.6;
  pointer-events: none;
}

.mood-badge {
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 3px 8px;
}

/* 7b. Level, XP & Coin Stats Toolbar */
.pet-stats-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.025);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.04);
  gap: 8px;
}

.level-xp-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--theme-primary);
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.xp-mini-track {
  width: 50px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.xp-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.coin-balance-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.coin-icon {
  font-size: 0.88rem;
}

/* Feature & World Quick Tools Dock */
.feature-quick-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.025);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.feature-quick-dock::-webkit-scrollbar {
  height: 4px;
}

.feature-quick-dock::-webkit-scrollbar-thumb {
  background: var(--theme-secondary);
  border-radius: 4px;
}

.quick-tool-btn {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  min-width: 44px;
  height: 42px;
  padding: 3px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  flex-shrink: 0;
}

.quick-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--theme-shadow);
  border-color: var(--theme-primary);
}

.quick-tool-btn:active {
  transform: scale(0.94);
}

.tool-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.tool-caption {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--theme-text-muted);
  line-height: 1;
  white-space: nowrap;
}

.quick-laser-btn {
  background: linear-gradient(135deg, #fff0f0, #ffe0e0);
  border-color: #ff4757;
  animation: pulse-laser-btn 1.5s infinite alternate;
}

@keyframes pulse-laser-btn {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); filter: brightness(1.1); }
}

.quick-fish-btn {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #0098ea;
  animation: pulse-fish-btn 1.5s infinite alternate;
}

@keyframes pulse-fish-btn {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); filter: brightness(1.1); }
}

/* Pet Arena (Cozy Home Setting) */
.pet-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 215px;
  padding: 10px 8px 12px 8px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 6px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: background 0.8s ease, filter 0.8s ease;
}

/* --------------------------------------------------------------------------
   7c. Rich Themed Wallpapers & Room Flooring
   -------------------------------------------------------------------------- */
/* Theme 1: Cozy Oak (Warm Home Living Room) */
.pet-arena.theme-room-classic {
  background: 
    linear-gradient(180deg, transparent 0%, transparent 63%, #8d6238 63%, #8d6238 65%, transparent 65%),
    repeating-linear-gradient(90deg, #fffaf5 0px, #fffaf5 14px, #f7efe6 14px, #f7efe6 28px),
    repeating-linear-gradient(0deg, #dfbd9a 0px, #dfbd9a 18px, #caa078 18px, #caa078 20px, #b88d64 20px);
  background-size: 100% 100%, 100% 63%, 100% 37%;
  background-position: top, top, bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Theme 2: Pastel Dream (Kawaii Strawberry Bedroom) */
.pet-arena.theme-room-pastel {
  background: 
    linear-gradient(180deg, transparent 0%, transparent 63%, #f06292 63%, #ffffff 64%, #f8bbd0 65%, transparent 65%),
    repeating-linear-gradient(90deg, #fff5f8 0px, #fff5f8 16px, #ffe4ec 16px, #ffe4ec 32px),
    repeating-linear-gradient(45deg, #f8bbd0 0px, #f8bbd0 12px, #f48fb1 12px, #f48fb1 24px);
  background-size: 100% 100%, 100% 63%, 100% 37%;
  background-position: top, top, bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Theme 3: Midnight Galaxy (Cosmic Space Observatory) */
.pet-arena.theme-room-galaxy {
  background: 
    linear-gradient(180deg, transparent 0%, transparent 63%, #00d2d3 63%, #54a0ff 65%, transparent 65%),
    radial-gradient(circle at 30% 25%, rgba(155, 89, 182, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 75% 45%, rgba(52, 152, 219, 0.4) 0%, transparent 45%),
    linear-gradient(180deg, #090a1a 0%, #151838 63%, #0f1026 65%, #050611 100%);
  background-size: 100% 100%;
}

/* Theme 4: Forest Cabin (Rustic Woodland Hearth) */
.pet-arena.theme-room-cabin {
  background: 
    linear-gradient(180deg, transparent 0%, transparent 63%, #3e2723 63%, #2e1c18 65%, transparent 65%),
    repeating-linear-gradient(180deg, #8d6e63 0px, #a1887f 8px, #795548 18px, #5d4037 20px),
    repeating-linear-gradient(90deg, #4e342e 0px, #4e342e 24px, #3e2723 24px, #3e2723 26px);
  background-size: 100% 100%, 100% 63%, 100% 37%;
  background-position: top, top, bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* 7d. Day / Night Cycle Overlays */
.pet-arena.time-day {
  /* Default bright lighting */
}

.pet-arena.time-sunset {
  filter: sepia(0.2) saturate(1.2) brightness(0.95);
}

.pet-arena.time-night {
  filter: brightness(0.72) contrast(1.12);
}

/* Time Indicator Pill */
.time-cycle-pill {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  z-index: 4;
  transition: all 0.2s ease;
}

.time-cycle-pill:hover {
  transform: scale(1.06);
  background: #ffffff;
}

/* Room Decor: Themed Windows */
.window-decor {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 46px;
  height: 52px;
  border-radius: 9px 9px 3px 3px;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.window-decor:hover {
  transform: scale(1.05);
}

.pet-arena.time-day .window-decor {
  background: linear-gradient(180deg, #a0e8ff 0%, #d8f5ff 100%);
}

.pet-arena.time-sunset .window-decor {
  background: linear-gradient(180deg, #ff7e5f 0%, #feb47b 100%);
}

.pet-arena.time-night .window-decor {
  background: linear-gradient(180deg, #091236 0%, #1e3c72 100%);
}

/* Classic: Warm Oak Cross Pane */
.theme-room-classic .window-decor {
  border: 3px solid #8d6238;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.theme-room-classic .window-frame-h, .theme-room-classic .window-frame-v {
  background: #8d6238;
}
.theme-room-classic .window-sill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #6d4c2b;
  border-radius: 2px;
  z-index: 3;
}

/* Pastel: Rounded Heart Scalloped Window */
.theme-room-pastel .window-decor {
  border: 3px solid #ff80ab;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 0 10px rgba(255, 128, 171, 0.4);
}
.theme-room-pastel .window-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle at 6px 8px, transparent 4px, #ffffff 4px);
  background-size: 10px 8px;
  z-index: 3;
}
.theme-room-pastel .window-frame-h, .theme-room-pastel .window-frame-v {
  background: #ff80ab;
}

/* Galaxy: Circular Spaceship Porthole */
.theme-room-galaxy .window-decor {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3.5px solid #00d2d3;
  box-shadow: 0 0 12px rgba(0, 210, 211, 0.6), inset 0 0 8px rgba(0, 210, 211, 0.4);
}
.theme-room-galaxy .window-frame-h, .theme-room-galaxy .window-frame-v {
  display: none;
}

/* Cabin: Rustic Log Timber Window */
.theme-room-cabin .window-decor {
  border: 3.5px solid #4e342e;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.theme-room-cabin .window-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #c0392b 0px, #c0392b 4px, #2c3e50 4px, #2c3e50 8px);
  z-index: 3;
}
.theme-room-cabin .window-frame-h, .theme-room-cabin .window-frame-v {
  background: #4e342e;
}

.window-glass {
  position: relative;
  width: 100%;
  height: 100%;
}

.window-frame-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  z-index: 2;
}

.window-frame-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  z-index: 2;
}

.window-sun {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.82rem;
  animation: sun-glow 3s infinite alternate ease-in-out;
}

.window-cloud {
  position: absolute;
  bottom: 3px;
  left: 2px;
  font-size: 0.75rem;
  opacity: 0.85;
  animation: cloud-drift 6s infinite alternate ease-in-out;
}

.window-moon {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 0.82rem;
  animation: sun-glow 3s infinite alternate ease-in-out;
}

.window-stars {
  position: absolute;
  bottom: 4px;
  left: 3px;
  font-size: 0.75rem;
  animation: twinkle-stars 2s infinite alternate ease-in-out;
}

@keyframes twinkle-stars {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   7e. Themed Interactive Props & Wall Decor
   -------------------------------------------------------------------------- */
.theme-prop-left {
  position: absolute;
  bottom: 36px;
  left: 14px;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.theme-prop-left:hover {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.theme-prop-left:active, .prop-tap-active {
  transform: scale(0.9);
}

.theme-prop-right {
  position: absolute;
  top: 14px;
  right: 64px;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.theme-prop-right:hover {
  transform: translateY(-2px) scale(1.12);
}

.theme-prop-right:active {
  transform: scale(0.9);
}

.prop-content {
  font-size: 2.1rem;
  line-height: 1;
  display: block;
}

.prop-sub {
  font-size: 1.1rem;
  margin-top: -4px;
  line-height: 1;
}

/* Fireplace animated flames (Cabin) */
.theme-room-cabin .theme-prop-left .prop-content {
  font-size: 2.3rem;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.7));
  animation: flame-flicker 1.4s infinite alternate ease-in-out;
}

@keyframes flame-flicker {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.6)); }
  50% { transform: scale(1.06) translateY(-2px); filter: drop-shadow(0 0 14px rgba(255, 165, 2, 0.9)); }
  100% { transform: scale(0.98) translateY(1px); filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.8)); }
}

/* Telescope (Galaxy) */
.theme-room-galaxy .theme-prop-left .prop-content {
  font-size: 2.3rem;
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 8px rgba(84, 160, 255, 0.6));
  animation: telescope-tilt 4s infinite alternate ease-in-out;
}

@keyframes telescope-tilt {
  0% { transform: rotate(-8deg) translateY(0); }
  100% { transform: rotate(-15deg) translateY(-2px); }
}

/* Teddy Bear (Pastel) */
.theme-room-pastel .theme-prop-left .prop-content {
  font-size: 2.1rem;
  animation: teddy-bob 2.6s infinite ease-in-out;
}

@keyframes teddy-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

/* Planet Mobile (Galaxy) */
.theme-room-galaxy .theme-prop-right .prop-content {
  font-size: 1.8rem;
  animation: planet-spin 7s infinite linear;
}

@keyframes planet-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 7e. Laser Pointer Frenzy Mini-Game Layer */
.minigame-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: auto;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

.minigame-layer.hidden {
  display: none !important;
}

.minigame-hud {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  z-index: 12;
}

.mg-quit-btn {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.laser-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #ff2a2a 60%, #ff0044 100%);
  box-shadow: 0 0 14px 6px rgba(255, 0, 80, 0.85);
  border: 2px solid #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: laser-pulse 0.4s infinite alternate ease-in-out;
  transition: top 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), left 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
  z-index: 11;
  outline: none;
}

@keyframes laser-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); box-shadow: 0 0 10px 4px rgba(255, 0, 80, 0.7); }
  100% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 18px 8px rgba(255, 0, 80, 1); }
}

.window-frame-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: translateY(-50%);
  z-index: 2;
}

.window-frame-v {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #ffffff;
  transform: translateX(-50%);
  z-index: 2;
}

/* Room Decor: Potted Plant & Yarn Cushion */
.plant-decor {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
  z-index: 3;
  user-select: none;
}

.bed-decor {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 1.45rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
  z-index: 3;
  user-select: none;
}

@keyframes sun-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)); }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9)); }
}

@keyframes cloud-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

/* Dynamic Speech Bubble */
.speech-bubble {
  background: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1.5px solid var(--theme-accent);
  position: relative;
  margin-bottom: 10px;
  max-width: 85%;
  text-align: center;
  animation: bubble-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.speech-bubble p {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  line-height: 1.3;
}

/* Interactive Question Box & 2 Answer Buttons */
.question-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.question-box.hidden {
  display: none !important;
}

.question-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  line-height: 1.3;
}

.question-options {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.btn-question-choice {
  font-family: var(--font-family);
  background: var(--theme-accent);
  border: 1.5px solid var(--theme-secondary);
  color: var(--theme-text-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-question-choice:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--theme-primary);
  color: #ffffff;
  border-color: var(--theme-primary);
  box-shadow: 0 4px 10px var(--theme-shadow);
}

.btn-question-choice:active {
  transform: translateY(1px) scale(0.96);
}

.bubble-tail {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #ffffff;
}

.bubble-tail::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--theme-accent);
  z-index: -1;
}

/* Action Prop Overlay Layer */
.action-prop-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 8;
}

.action-prop {
  position: absolute;
  pointer-events: none;
  font-size: 2.4rem;
  z-index: 9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.prop-fish {
  animation: fish-drop-chomp 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.prop-hand {
  font-size: 2.7rem;
  animation: hand-stroke-pet 0.85s ease-in-out forwards;
}

.prop-ball {
  font-size: 2.2rem;
  animation: ball-bounce-play 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Pixel Art Pet Sprite & Synchronized Unit */
.pet-avatar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  outline: none;
  margin-top: 6px;
  transform: translateY(4px);
}

.pet-avatar-wrapper:focus-visible {
  outline: 3px dashed var(--theme-primary);
  border-radius: var(--radius-md);
}

.pet-character-unit {
  position: relative;
  width: 112px;
  height: 112px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: idle-breathe 2.4s ease-in-out infinite;
  transform-origin: bottom center;
  transition: filter 0.3s ease;
}

.pet-sprite {
  /* Crisp 32x32 pixel art scaling rules */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Tear Streams for Crying State */
.tear-stream {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

.tear-left {
  top: 28px;
  left: 24px;
}

.tear-right {
  top: 28px;
  right: 24px;
}

.pet-avatar-wrapper.is-tantrum .tear-left {
  animation: tear-fall-left 0.75s infinite linear;
}

.pet-avatar-wrapper.is-tantrum .tear-right {
  animation: tear-fall-right 0.75s infinite 0.38s linear;
}

/* Starving Sweat Drop */
.starving-sweat {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 6;
  pointer-events: none;
}

.pet-avatar-wrapper.is-starving-wrapper .starving-sweat {
  opacity: 1;
  transform: scale(1);
  animation: sweat-drip 1.2s infinite ease-in-out;
}

@keyframes sweat-drip {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-4px) scale(1.2); opacity: 1; }
}

/* Celebration Crown Badge */
.crown-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 1.75rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.85));
}

.pet-avatar-wrapper.is-celebrating .crown-badge {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
  animation: crown-float 1.8s infinite ease-in-out;
}

@keyframes crown-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1.1) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-5px) scale(1.18) rotate(4deg); }
}

/* --------------------------------------------------------------------------
   7f. Themed Rug Styles
   -------------------------------------------------------------------------- */
.cozy-rug {
  position: absolute;
  bottom: -6px;
  width: 126px;
  height: 38px;
  z-index: 0;
  transition: all 0.4s ease;
}

/* Classic: Woven Oval Beige Rug with Warm Braided Border */
.theme-room-classic #cozy-rug, .theme-room-classic .cozy-rug {
  background: radial-gradient(ellipse at center, #ffffff 0%, #f5e6d3 50%, #d4b896 90%, #b8956e 100%);
  border-radius: 50%;
  border: 2.5px dashed #a07a50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Pastel: Heart Plush Strawberry Rug */
.theme-room-pastel #cozy-rug, .theme-room-pastel .cozy-rug {
  width: 128px;
  height: 42px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #ffc1e3 50%, #f48fb1 85%, #ec407a 100%);
  border-radius: 50% 50% 45% 45%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(236, 64, 122, 0.35);
}

/* Galaxy: Celestial Glowing Crescent Moon Rug */
.theme-room-galaxy #cozy-rug, .theme-room-galaxy .cozy-rug {
  width: 130px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 210, 211, 0.6) 0%, #302b63 60%, #0f0c29 100%);
  border-radius: 50%;
  border: 2px solid #00d2d3;
  box-shadow: 0 0 16px rgba(0, 210, 211, 0.5), inset 0 0 10px rgba(84, 160, 255, 0.4);
}

/* Cabin: Faux Woodland Bear Fur Rug */
.theme-room-cabin #cozy-rug, .theme-room-cabin .cozy-rug {
  width: 132px;
  height: 42px;
  background: radial-gradient(ellipse at center, #8d6e63 0%, #5d4037 65%, #3e2723 100%);
  border-radius: 40% 40% 35% 35%;
  border: 2.5px dashed #a1887f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Equipped Accessory Overlay (Synchronized with Character Unit) */
.pet-accessory {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

.pet-accessory.acc-none {
  display: none;
}

.pet-accessory.acc-bow {
  top: 30px;
  left: 42px;
  font-size: 1.45rem;
}

.pet-accessory.acc-tophat {
  top: 18px;
  left: 39px;
  font-size: 1.8rem;
  transform: rotate(-4deg);
}

.pet-accessory.acc-sunglasses {
  top: 29px;
  left: 38px;
  font-size: 1.6rem;
}

.pet-accessory.acc-flowers {
  top: 25px;
  left: 34px;
  font-size: 1.7rem;
}

.pet-accessory.acc-crown {
  top: 18px;
  left: 38px;
  font-size: 1.7rem;
}

.pet-accessory.is-custom-pixel {
  top: 18px;
  left: 36px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-art-accessory-img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.acc-pixel-thumb {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
}

/* 🐱 Cat-Specific Positioning: Scaled down smaller as requested */
.is-cat .pet-character-unit {
  width: 88px;
  height: 88px;
  transform: translateY(8px);
}

.is-cat .pet-accessory.acc-bow {
  top: 24px;
  left: 36px;
  font-size: 1.25rem;
}

.is-cat .pet-accessory.acc-tophat {
  top: 10px;
  left: 30px;
  font-size: 1.55rem;
}

.is-cat .pet-accessory.acc-sunglasses {
  top: 22px;
  left: 30px;
  font-size: 1.35rem;
}

.is-cat .pet-accessory.acc-flowers {
  top: 16px;
  left: 28px;
  font-size: 1.45rem;
}

.is-cat .pet-accessory.acc-crown {
  top: 10px;
  left: 30px;
  font-size: 1.45rem;
}

.is-cat .pet-accessory.is-custom-pixel {
  top: 10px;
  left: 28px;
  width: 32px;
  height: 32px;
}

/* 🐶 Dog-Specific Positioning: Shifts headwear & accessories lower to fit golden puppy sprite */
.is-dog .pet-character-unit {
  transform: translateY(6px);
}

.is-dog .pet-accessory.acc-bow {
  top: 36px;
  left: 42px;
  font-size: 1.35rem;
}

.is-dog .pet-accessory.acc-tophat {
  top: 24px;
  left: 39px;
  font-size: 1.7rem;
}

.is-dog .pet-accessory.acc-sunglasses {
  top: 36px;
  left: 38px;
  font-size: 1.55rem;
}

.is-dog .pet-accessory.acc-flowers {
  top: 31px;
  left: 34px;
  font-size: 1.65rem;
}

.is-dog .pet-accessory.acc-crown {
  top: 24px;
  left: 38px;
  font-size: 1.65rem;
}

.is-dog .pet-accessory.is-custom-pixel {
  top: 24px;
  left: 36px;
}

/* 🦔 Hedgehog-Specific Positioning: Made bigger and calibrated for custom pixel hedgehog sprite */
.is-hedgehog .pet-character-unit {
  width: 132px;
  height: 132px;
  transform: translateY(2px);
}

.is-hedgehog .pet-accessory.acc-bow {
  top: 50px;
  left: 48px;
  font-size: 1.55rem;
}

.is-hedgehog .pet-accessory.acc-tophat {
  top: 28px;
  left: 42px;
  font-size: 1.9rem;
}

.is-hedgehog .pet-accessory.acc-sunglasses {
  top: 54px;
  left: 40px;
  font-size: 1.75rem;
}

.is-hedgehog .pet-accessory.acc-flowers {
  top: 40px;
  left: 36px;
  font-size: 1.85rem;
}

.is-hedgehog .pet-accessory.acc-crown {
  top: 28px;
  left: 42px;
  font-size: 1.85rem;
}

.is-hedgehog .pet-accessory.is-custom-pixel {
  top: 28px;
  left: 40px;
  width: 44px;
  height: 44px;
}

/* 🐔 Chicken-Specific Positioning: Adjusted for Josie's custom pixel chicken sprite */
.is-chicken .pet-character-unit {
  transform: translateY(2px);
}

.is-chicken .pet-accessory.acc-bow {
  top: 32px;
  left: 44px;
  font-size: 1.35rem;
}

.is-chicken .pet-accessory.acc-tophat {
  top: 16px;
  left: 36px;
  font-size: 1.7rem;
}

.is-chicken .pet-accessory.acc-sunglasses {
  top: 32px;
  left: 35px;
  font-size: 1.55rem;
}

.is-chicken .pet-accessory.acc-flowers {
  top: 24px;
  left: 33px;
  font-size: 1.65rem;
}

.is-chicken .pet-accessory.acc-crown {
  top: 16px;
  left: 35px;
  font-size: 1.65rem;
}

.is-chicken .pet-accessory.is-custom-pixel {
  top: 16px;
  left: 34px;
}

/* 🦊 Fox-Specific Positioning */
.is-fox .pet-character-unit {
  transform: translateY(4px);
}

.is-fox .pet-accessory.acc-bow {
  top: 34px;
  left: 42px;
  font-size: 1.35rem;
}

.is-fox .pet-accessory.acc-tophat {
  top: 18px;
  left: 38px;
  font-size: 1.7rem;
}

.is-fox .pet-accessory.acc-sunglasses {
  top: 34px;
  left: 38px;
  font-size: 1.55rem;
}

.is-fox .pet-accessory.acc-flowers {
  top: 26px;
  left: 34px;
  font-size: 1.65rem;
}

.is-fox .pet-accessory.acc-crown {
  top: 18px;
  left: 37px;
  font-size: 1.65rem;
}

.is-fox .pet-accessory.is-custom-pixel {
  top: 18px;
  left: 36px;
}

/* 🦫 Capybara-Specific Positioning */
.is-capybara .pet-character-unit {
  transform: translateY(6px);
}

.is-capybara .pet-accessory.acc-bow {
  top: 34px;
  left: 44px;
  font-size: 1.35rem;
}

.is-capybara .pet-accessory.acc-tophat {
  top: 18px;
  left: 38px;
  font-size: 1.7rem;
}

.is-capybara .pet-accessory.acc-sunglasses {
  top: 34px;
  left: 37px;
  font-size: 1.55rem;
}

.is-capybara .pet-accessory.acc-flowers {
  top: 26px;
  left: 34px;
  font-size: 1.65rem;
}

.is-capybara .pet-accessory.acc-crown {
  top: 18px;
  left: 37px;
  font-size: 1.65rem;
}

.is-capybara .pet-accessory.is-custom-pixel {
  top: 18px;
  left: 36px;
}

.pet-shadow {
  width: 80px;
  height: 11px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  margin-top: -4px;
  z-index: 1;
  animation: shadow-breathe 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   8. Status Meters
   -------------------------------------------------------------------------- */
.meters-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.02);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.meter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.meter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--theme-text-dark);
}

.meter-icon {
  font-size: 0.88rem;
}

.meter-value {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--theme-text-muted);
}

.meter-track {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 1.5px;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.meter-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: meter-shimmer 2.4s infinite linear;
}

@keyframes meter-shimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.hunger-fill {
  background: var(--hunger-color, linear-gradient(90deg, #ff9f43, #ff6b6b));
}

.happiness-fill {
  background: var(--happiness-color, linear-gradient(90deg, #a55eea, #8854d0));
}

.energy-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.meter-fill.meter-critical {
  background: linear-gradient(90deg, #ff4757, #ff6b81) !important;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
  animation: pulse-critical 1s infinite alternate;
}

@keyframes pulse-critical {
  0% { opacity: 0.7; }
  100% { opacity: 1; filter: brightness(1.2); }
}

.decay-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--theme-text-muted);
  margin-top: 1px;
}

.decay-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-primary);
  opacity: 0.6;
  animation: pulse-dot 2s infinite;
}

/* --------------------------------------------------------------------------
   8b. Wardrobe & Accessories Ribbon
   -------------------------------------------------------------------------- */
.wardrobe-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.02);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.wardrobe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.wardrobe-header-btns {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(231,76,60,0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
}

.wardrobe-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.wardrobe-subtitle {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--theme-text-muted);
}

.wardrobe-pills {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scrollbar-width: thin;
}

.wardrobe-pills::-webkit-scrollbar {
  height: 3px;
}

.wardrobe-pills::-webkit-scrollbar-thumb {
  background: var(--theme-secondary);
  border-radius: 4px;
}

.accessory-btn {
  font-family: var(--font-family);
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  min-width: 44px;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.accessory-btn:hover {
  transform: translateY(-2px);
  border-color: var(--theme-secondary);
  box-shadow: 0 3px 8px var(--theme-shadow);
}

.accessory-btn.active {
  background: var(--theme-accent);
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px var(--theme-primary), 0 3px 8px var(--theme-shadow);
  transform: scale(1.04);
}

.acc-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.acc-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

/* Accessory Nudge Position Adjuster */
.accessory-nudge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.nudge-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.nudge-btn-group {
  display: flex;
  gap: 3px;
}

.btn-nudge {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nudge:hover {
  transform: scale(1.12);
  background: #f8faff;
  border-color: var(--theme-primary);
}

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

.btn-nudge-reset {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  padding: 2px 8px;
}

/* --------------------------------------------------------------------------
   9. Action Buttons Grid
   -------------------------------------------------------------------------- */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.action-btn {
  font-family: var(--font-family);
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 64px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--theme-shadow);
  border-color: var(--theme-secondary);
}

.action-btn:hover .action-emoji {
  animation: emoji-jiggle 0.45s ease-in-out infinite alternate;
}

@keyframes emoji-jiggle {
  0% { transform: translateY(0) rotate(-7deg) scale(1.12); }
  100% { transform: translateY(-3px) rotate(7deg) scale(1.2); }
}

.action-btn:active {
  transform: translateY(2px) scale(0.97);
}

.action-emoji {
  font-size: 1.3rem;
  margin-bottom: 1px;
}

.action-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.action-effect-tag {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 4px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   10. Footer Controls
   -------------------------------------------------------------------------- */
.dashboard-footer {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   11. Floating Particles Overlay
   -------------------------------------------------------------------------- */
#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  animation: float-particle 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   12. Keyframe Animations
   -------------------------------------------------------------------------- */
/* Idle Breathing Animation */
@keyframes idle-breathe {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  50% {
    transform: translateY(-6px) scale(1.02, 0.98);
  }
}

@keyframes shadow-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.12;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.08;
  }
}

/* Feed Bounce Animation */
.pet-character-unit.anim-bounce,
.pet-sprite.anim-bounce {
  animation: cat-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes cat-bounce {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-20px) scale(0.92, 1.08); }
  50% { transform: translateY(0) scale(1.08, 0.92); }
  75% { transform: translateY(-6px) scale(0.98, 1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Pet Squash & Stretch Animation */
.pet-character-unit.anim-squash,
.pet-sprite.anim-squash {
  animation: cat-squash 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes cat-squash {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.22, 0.82) translateY(5px); }
  60% { transform: scale(0.88, 1.15) translateY(-6px); }
  85% { transform: scale(1.05, 0.96); }
  100% { transform: scale(1, 1); }
}

/* Play Wiggle Animation */
.pet-character-unit.anim-wiggle,
.pet-sprite.anim-wiggle {
  animation: cat-wiggle 0.6s ease-in-out !important;
}

@keyframes cat-wiggle {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-12deg) scale(1.05); }
  40% { transform: rotate(12deg) scale(1.05); }
  60% { transform: rotate(-8deg) scale(1.02); }
  80% { transform: rotate(6deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Starving / Fainted Pet State (Shaking with sadness & weakness) */
.pet-character-unit.is-starving,
.pet-sprite.is-starving {
  animation: sad-tremble 0.2s infinite linear !important;
  filter: saturate(0.6) contrast(1.1) drop-shadow(0 0 8px rgba(52, 152, 219, 0.5));
}

@keyframes sad-tremble {
  0%, 100% { transform: translateY(3px) translateX(0) scale(0.95, 0.93) rotate(0deg); }
  20% { transform: translateY(4px) translateX(-2.5px) scale(0.93, 0.95) rotate(-2deg); }
  40% { transform: translateY(2px) translateX(2.5px) scale(0.95, 0.93) rotate(2deg); }
  60% { transform: translateY(4px) translateX(-1.5px) scale(0.93, 0.96) rotate(-1.5deg); }
  80% { transform: translateY(3px) translateX(1.5px) scale(0.95, 0.94) rotate(1.5deg); }
}

/* Cat Chomp Hop (Feed) */
.pet-character-unit.anim-chomp,
.pet-sprite.anim-chomp {
  animation: cat-chomp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes cat-chomp {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-22px) scale(0.88, 1.18); }
  50% { transform: translateY(2px) scale(1.18, 0.86); }
  75% { transform: translateY(-6px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* Cat Purr Glow (Pet) */
.pet-character-unit.anim-purr-glow,
.pet-sprite.anim-purr-glow {
  animation: cat-purr-glow 0.85s ease-in-out !important;
}

@keyframes cat-purr-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 107, 139, 0)); }
  35% { transform: scale(1.18, 0.88) translateY(4px); filter: drop-shadow(0 0 16px rgba(255, 107, 139, 0.85)); }
  65% { transform: scale(0.92, 1.12) translateY(-6px); filter: drop-shadow(0 0 20px rgba(255, 107, 139, 0.95)); }
  100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 0 rgba(255, 107, 139, 0)); }
}

/* Cat Pounce (Play) */
.pet-character-unit.anim-pounce,
.pet-sprite.anim-pounce {
  animation: cat-pounce 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) !important;
}

@keyframes cat-pounce {
  0% { transform: scale(1) translateY(0); }
  18% { transform: scale(1.14, 0.84) translateY(5px) translateX(-14px); }
  45% { transform: scale(0.9, 1.14) translateY(-26px) translateX(20px) rotate(7deg); }
  75% { transform: scale(1.1, 0.92) translateY(2px) translateX(10px); }
  100% { transform: scale(1) translateY(0) translateX(0) rotate(0deg); }
}

/* Cat Rejection Head Shake */
.pet-character-unit.anim-refuse,
.pet-sprite.anim-refuse {
  animation: cat-refuse 0.55s ease-in-out !important;
}

@keyframes cat-refuse {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-14px) rotate(-12deg); }
  40% { transform: translateX(14px) rotate(12deg); }
  60% { transform: translateX(-8px) rotate(-6deg); }
  80% { transform: translateX(8px) rotate(6deg); }
}

/* Cat Nap Animation */
.pet-character-unit.anim-nap,
.pet-sprite.anim-nap {
  animation: cat-nap 1.2s ease-in-out !important;
}

@keyframes cat-nap {
  0%, 100% { transform: scale(1) translateY(0); }
  25% { transform: scale(1.14, 0.86) translateY(5px); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6)); }
  50% { transform: scale(1.08, 0.92) translateY(3px); filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.8)); }
  75% { transform: scale(1.12, 0.88) translateY(4px); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)); }
}

/* Crying Tantrum Sprite */
.pet-avatar-wrapper.is-tantrum .pet-character-unit,
.pet-avatar-wrapper.is-tantrum .pet-sprite {
  animation: cat-sobbing 1s ease-in-out infinite !important;
}

@keyframes cat-sobbing {
  0%, 100% { transform: translateY(4px) scale(0.96, 0.94); }
  25% { transform: translateY(8px) scale(1.04, 0.90) rotate(-4deg); }
  50% { transform: translateY(2px) scale(0.94, 0.98); }
  75% { transform: translateY(8px) scale(1.04, 0.90) rotate(4deg); }
}

/* Prop Keyframe Animations */
@keyframes fish-drop-chomp {
  0% {
    top: 5px;
    left: 50%;
    transform: translate(-50%, -20px) scale(0.6) rotate(-25deg);
    opacity: 0;
  }
  30% {
    top: 45px;
    left: 50%;
    transform: translate(-50%, 0) scale(1.4) rotate(15deg);
    opacity: 1;
  }
  60% {
    top: 105px;
    left: 50%;
    transform: translate(-50%, 0) scale(1.1) rotate(-10deg);
    opacity: 1;
  }
  85% {
    top: 125px;
    left: 50%;
    transform: translate(-50%, 0) scale(0.6) rotate(35deg);
    opacity: 0.8;
  }
  100% {
    top: 135px;
    left: 50%;
    transform: translate(-50%, 0) scale(0) rotate(90deg);
    opacity: 0;
  }
}

@keyframes hand-stroke-pet {
  0% {
    top: 45px;
    left: 20%;
    transform: scale(0.6) rotate(-35deg);
    opacity: 0;
  }
  35% {
    top: 32px;
    left: 40%;
    transform: scale(1.3) rotate(-10deg);
    opacity: 1;
  }
  70% {
    top: 38px;
    left: 60%;
    transform: scale(1.3) rotate(20deg);
    opacity: 1;
  }
  100% {
    top: 55px;
    left: 80%;
    transform: scale(0.7) rotate(45deg);
    opacity: 0;
  }
}

@keyframes ball-bounce-play {
  0% {
    top: 125px;
    left: 10%;
    transform: scale(0.7) rotate(0deg);
    opacity: 0;
  }
  20% {
    top: 30px;
    left: 30%;
    transform: scale(1.25) rotate(120deg);
    opacity: 1;
  }
  45% {
    top: 125px;
    left: 50%;
    transform: scale(1.1, 0.8) rotate(240deg);
    opacity: 1;
  }
  70% {
    top: 40px;
    left: 70%;
    transform: scale(1.2) rotate(360deg);
    opacity: 1;
  }
  90% {
    top: 125px;
    left: 88%;
    transform: scale(0.9, 0.7) rotate(480deg);
    opacity: 0.9;
  }
  100% {
    top: 115px;
    left: 96%;
    transform: scale(0.3) rotate(540deg);
    opacity: 0;
  }
}

@keyframes tear-fall-left {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  25% { opacity: 1; transform: translate(-4px, 12px) scale(1.1); }
  75% { opacity: 0.9; transform: translate(-12px, 42px) scale(0.9); }
  100% { transform: translate(-18px, 65px) scale(0.3); opacity: 0; }
}

@keyframes tear-fall-right {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  25% { opacity: 1; transform: translate(4px, 12px) scale(1.1); }
  75% { opacity: 0.9; transform: translate(12px, 42px) scale(0.9); }
  100% { transform: translate(18px, 65px) scale(0.3); opacity: 0; }
}

/* Particle Float Up */
@keyframes float-particle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(var(--drift-x, 0px), -60px) scale(1.2) rotate(var(--rot, 15deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--drift-x, 0px) * 1.5), -120px) scale(1) rotate(calc(var(--rot, 15deg) * 2));
  }
}

/* Speech Bubble Pop-in */
@keyframes bubble-pop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

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

/* --------------------------------------------------------------------------
   14. Modals (Shop & Scrapbook)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: modal-fade-in 0.25s ease-out;
}

.modal-backdrop.hidden {
  display: none !important;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--theme-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.9) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-icon {
  font-size: 1.2rem;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.modal-header-coins {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  box-shadow: var(--shadow-sm);
  margin-left: auto;
  margin-right: 8px;
}

.modal-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--theme-text-dark);
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
}

/* Shop Navigation Tabs */
.shop-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.shop-tab {
  flex: 1;
  font-family: var(--font-family);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--theme-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-tab.active {
  background: var(--theme-accent);
  color: var(--theme-text-dark);
  border-color: var(--theme-primary);
  box-shadow: var(--shadow-sm);
}

.shop-tab-content {
  padding: 12px;
  overflow-y: auto;
  max-height: 55vh;
}

.shop-tab-content.hidden {
  display: none !important;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.shop-item-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.shop-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--theme-shadow);
  border-color: var(--theme-secondary);
}

.shop-item-icon {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.shop-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.shop-item-desc {
  font-size: 0.64rem;
  color: var(--theme-text-muted);
  line-height: 1.2;
  min-height: 24px;
}

.shop-item-btn {
  width: 100%;
  margin-top: 4px;
  font-size: 0.72rem;
  padding: 4px 6px;
  border-radius: var(--radius-pill);
}

/* Scrapbook Gallery & Polaroids */
.scrapbook-card {
  max-width: 400px;
}

.scrapbook-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.scrapbook-gallery {
  padding: 12px;
  overflow-y: auto;
  max-height: 60vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.scrapbook-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: var(--theme-text-muted);
}

.scrapbook-empty p {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 0.74rem;
}

.polaroid-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 6px 6px 10px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.polaroid-card:hover {
  transform: scale(1.04) rotate(0deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  z-index: 5;
}

.polaroid-photo-frame {
  width: 100%;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fffaf5;
}

.polaroid-sprite {
  image-rendering: pixelated;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.polaroid-caption {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-meta {
  font-size: 0.58rem;
  color: var(--theme-text-muted);
  text-align: center;
  margin-top: 1px;
}

.polaroid-del-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.polaroid-card:hover .polaroid-del-btn {
  opacity: 1;
}

/* Camera Flash Animation */
.camera-flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  pointer-events: none;
  animation: shutter-flash 0.4s ease-out forwards;
}

.camera-flash-overlay.hidden {
  display: none !important;
}

@keyframes shutter-flash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   16. 8-Bit Music Player Dropdown
   -------------------------------------------------------------------------- */
.music-player-dropdown {
  position: absolute;
  top: 52px;
  right: 12px;
  background: var(--theme-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 14px;
  width: 250px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: modal-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.mp-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.music-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mp-play-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.mp-select {
  flex: 1;
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--theme-text-dark);
  outline: none;
  cursor: pointer;
}

.music-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}

.mp-vol-icon {
  font-size: 0.85rem;
}

.mp-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--theme-primary);
  cursor: pointer;
}

.voice-studio-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 6px;
}

.voice-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--theme-text-muted);
}

.voice-btn-group {
  display: flex;
  gap: 4px;
}

.voice-pill {
  flex: 1;
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--theme-text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-pill.active {
  background: var(--theme-accent);
  color: var(--theme-text-dark);
  border-color: var(--theme-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. Dynamic Weather & Window Effects
   -------------------------------------------------------------------------- */
.window-decor {
  cursor: pointer;
}

.window-decor:hover {
  transform: scale(1.04);
}

.window-weather-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.window-decor:hover .window-weather-badge {
  opacity: 1;
}

.window-weather-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Rain Effect */
.pet-arena.weather-rainy .window-weather-particles::before {
  content: '🌧️';
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.7rem;
  opacity: 0.9;
  animation: rain-patter 1s infinite alternate;
}

@keyframes rain-patter {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

/* Snow Effect */
.pet-arena.weather-snowy .window-decor {
  border-color: #e0f7fa;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.pet-arena.weather-snowy .window-weather-particles::before {
  content: '❄️';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.65rem;
  animation: snow-swirl 2.5s infinite alternate ease-in-out;
}

@keyframes snow-swirl {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  100% { transform: translate(-8px, 12px) rotate(180deg); opacity: 0.9; }
}

/* Sakura Effect */
.pet-arena.weather-sakura .window-weather-particles::before {
  content: '🌸';
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.7rem;
  animation: sakura-drift 3s infinite ease-in-out;
}

@keyframes sakura-drift {
  0% { transform: translate(10px, -15px) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-15px, 15px) rotate(360deg); opacity: 0; }
}

/* Autumn Effect */
.pet-arena.weather-autumn .window-weather-particles::before {
  content: '🍂';
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.7rem;
  animation: sakura-drift 3.5s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   18. Interactive Room Floor Toys
   -------------------------------------------------------------------------- */
.room-toy {
  position: absolute;
  cursor: pointer;
  user-select: none;
  font-size: 1.5rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  z-index: 3;
}

.room-toy:hover {
  transform: scale(1.22);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.room-toy:active {
  transform: scale(0.92);
}

.toy-box {
  bottom: 12px;
  left: 18px;
}

.toy-yarn {
  bottom: 14px;
  right: 22px;
}

.toy-scratch {
  bottom: 22px;
  left: 64px;
  font-size: 1.6rem;
}

.toy-mouse {
  bottom: 12px;
  right: 70px;
  font-size: 1.4rem;
}

.toy-tree {
  bottom: 30px;
  right: 14px;
  font-size: 1.8rem;
}

.toy-animated-hop {
  animation: toy-hop-anim 0.5s ease;
}

@keyframes toy-hop-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) translateY(-12px); }
  100% { transform: scale(1); }
}

.toy-animated-roll {
  animation: toy-roll-anim 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes toy-roll-anim {
  0% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-40px) rotate(-360deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   19. Fish Frenzy Catcher Mini-Game
   -------------------------------------------------------------------------- */
.quick-fish-btn {
  background: linear-gradient(135deg, #00d2d3, #00a8ff);
  box-shadow: 0 0 8px rgba(0, 210, 211, 0.5);
  animation: pulse-fish-btn 1.5s infinite alternate;
}

@keyframes pulse-fish-btn {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); filter: brightness(1.2); }
}

.fishgame-layer {
  background: rgba(0, 30, 60, 0.35);
  backdrop-filter: blur(3px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
}

.fishgame-items {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fish-falling-item {
  position: absolute;
  font-size: 1.4rem;
  user-select: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.fishgame-catcher {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  user-select: none;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.05s linear;
}

/* --------------------------------------------------------------------------
   20. Quests & Trophies Modals
   -------------------------------------------------------------------------- */
.quests-card, .trophies-card {
  max-width: 390px;
}

.quests-body, .trophies-body {
  padding: 12px;
  overflow-y: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quests-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 0.74rem;
  color: var(--theme-text-muted);
}

.quests-reset-tag strong {
  color: var(--theme-text-dark);
}

.quest-row {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.quest-icon {
  font-size: 1.5rem;
}

.quest-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quest-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.quest-progress-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #20bf6b, #0fb9b1);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.quest-status-text {
  font-size: 0.64rem;
  color: var(--theme-text-muted);
  font-weight: 600;
}

.quest-check {
  font-size: 1.1rem;
  color: #20bf6b;
}

.daily-reward-box {
  background: linear-gradient(135deg, #fff9e6, #fff0c2);
  border: 1.5px dashed #ffd32a;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.daily-reward-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-reward-icon {
  font-size: 1.6rem;
}

.daily-reward-text {
  display: flex;
  flex-direction: column;
}

.daily-reward-text strong {
  font-size: 0.78rem;
  color: #d48806;
}

.daily-reward-text span {
  font-size: 0.65rem;
  color: #8c6b00;
}

/* Trophy Items */
.trophies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trophy-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trophy-card.completed {
  border-color: #ffd32a;
  background: #fffdf5;
}

.trophy-badge-icon {
  font-size: 1.6rem;
  filter: grayscale(1);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.trophy-card.completed .trophy-badge-icon {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

.trophy-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trophy-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.trophy-desc {
  font-size: 0.65rem;
  color: var(--theme-text-muted);
}

.trophy-reward-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #d48806;
}

/* --------------------------------------------------------------------------
   21. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  body {
    padding: 12px 10px;
  }
  
  .card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .pet-sprite {
    width: 120px;
    height: 120px;
  }

  .actions-grid {
    gap: 6px;
  }

  .action-btn {
    padding: 10px 4px;
    min-height: 72px;
  }

  .action-emoji {
    font-size: 1.4rem;
  }

  .action-text {
    font-size: 0.85rem;
  }

  .action-effect-tag {
    font-size: 0.62rem;
  }
}

/* --------------------------------------------------------------------------
   22. Room Navigation & Decorating System
   -------------------------------------------------------------------------- */
.room-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.room-nav-bar::-webkit-scrollbar {
  display: none;
}

.room-nav-btn {
  flex: 1;
  min-width: 65px;
  background: transparent;
  border: none;
  padding: 5px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.room-nav-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.room-nav-btn.active {
  background: #ffffff;
  color: var(--theme-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.02);
}

/* Room Decorating Bar */
.room-decorating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1.5px dashed #ff9800;
  border-radius: var(--radius-md);
  padding: 6px 10px;
  margin-bottom: 8px;
  animation: fadeInDown 0.3s ease;
}

.deco-mode-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #e65100;
}

.deco-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Room Environments (Highly Detailed Themes & Flooring) */
/* 🛏️ Bedroom */
.pet-arena.room-bedroom {
  background: 
    linear-gradient(180deg, rgba(255, 230, 245, 0.4) 0%, transparent 18%),
    linear-gradient(180deg, #ffffff 0px, #ffffff 6px, #e2d8f0 6px, #e2d8f0 8px, transparent 8px),
    linear-gradient(180deg, transparent 0%, transparent 63%, #b39ddb 63%, #ffffff 64%, #d1c4e9 65%, transparent 65%),
    radial-gradient(circle at 15% 12%, #fff59d 2.5px, transparent 3px),
    radial-gradient(circle at 35% 10%, #fff59d 2.5px, transparent 3px),
    radial-gradient(circle at 65% 11%, #fff59d 2.5px, transparent 3px),
    radial-gradient(circle at 85% 13%, #fff59d 2.5px, transparent 3px),
    repeating-linear-gradient(90deg, #f5effe 0px, #f5effe 16px, #ece0f8 16px, #ece0f8 32px),
    repeating-linear-gradient(45deg, #d1c4e9 0px, #d1c4e9 8px, #c5b3e6 8px, #c5b3e6 16px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 63%, 100% 37%;
  background-position: top, top, top, top, top, top, top, top, bottom;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 30px rgba(179, 157, 219, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* 🍳 Kitchen */
.pet-arena.room-kitchen {
  background: 
    linear-gradient(180deg, #8d6e63 0px, #8d6e63 6px, #5d4037 6px, #5d4037 8px, transparent 8px),
    linear-gradient(180deg, transparent 0%, transparent 63%, #d7ccc8 63%, #ffffff 64%, #a1887f 65%, transparent 65%),
    repeating-linear-gradient(90deg, #fffbf2 0px, #fffbf2 20px, #f8efe0 20px, #f8efe0 22px),
    repeating-linear-gradient(0deg, #fffbf2 0px, #fffbf2 16px, #f8efe0 16px, #f8efe0 18px),
    repeating-linear-gradient(45deg, #ffcc80 0px, #ffcc80 14px, #ffa726 14px, #ffa726 28px);
  background-size: 100% 100%, 100% 100%, 100% 63%, 100% 63%, 100% 37%;
  background-position: top, top, top, top, bottom;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 25px rgba(255, 183, 77, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* 🎮 Game Room / Arcade */
.pet-arena.room-gameroom {
  background: 
    linear-gradient(180deg, #ff007f 0px, #00f0ff 4px, transparent 4px),
    linear-gradient(180deg, transparent 0%, transparent 63%, #00f0ff 63%, #ff007f 65%, transparent 65%),
    radial-gradient(circle at 25% 20%, rgba(0, 240, 255, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 80% 35%, rgba(255, 0, 127, 0.3) 0%, transparent 40%),
    repeating-linear-gradient(90deg, #100e2b 0px, #100e2b 28px, rgba(0, 240, 255, 0.08) 28px, rgba(0, 240, 255, 0.08) 30px),
    repeating-linear-gradient(0deg, #050410 0px, #050410 12px, rgba(255, 0, 127, 0.3) 12px, rgba(255, 0, 127, 0.3) 14px),
    linear-gradient(180deg, #0f0c29 0%, #1e1b4b 63%, #0b0920 65%, #050410 100%);
  background-size: 100% 100%, 100% 100%, 100% 63%, 100% 63%, 100% 63%, 100% 37%, 100% 100%;
  background-position: top, top, top, top, top, bottom, top;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(255, 0, 127, 0.2);
}

/* 🌳 Outdoor Garden */
.pet-arena.room-garden {
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 241, 118, 0.6) 0%, transparent 35%),
    linear-gradient(180deg, transparent 0%, transparent 58%, #81c784 58%, #4caf50 63%, #388e3c 65%, transparent 65%),
    linear-gradient(180deg, #81d4fa 0%, #b3e5fc 35%, #e1f5fe 58%),
    radial-gradient(circle at 30% 85%, #ffeb3b 2px, transparent 3px),
    radial-gradient(circle at 70% 75%, #f48fb1 2.5px, transparent 3.5px),
    repeating-linear-gradient(90deg, #66bb6a 0px, #66bb6a 12px, #4caf50 12px, #4caf50 24px);
  background-size: 100% 100%, 100% 100%, 100% 58%, 100% 37%, 100% 37%, 100% 37%;
  background-position: top, top, top, bottom, bottom, bottom;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 25px rgba(129, 212, 250, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* 🛋️ Cozy Lounge */
.pet-arena.room-living {
  background: 
    linear-gradient(180deg, #d7ccc8 0px, #d7ccc8 5px, #8d6e63 5px, #8d6e63 7px, transparent 7px),
    linear-gradient(180deg, transparent 0%, transparent 63%, #8d6238 63%, #5d4037 65%, transparent 65%),
    repeating-linear-gradient(90deg, #fffbf5 0px, #fffbf5 16px, #f5ecdf 16px, #f5ecdf 32px),
    repeating-linear-gradient(0deg, #dfbd9a 0px, #dfbd9a 16px, #caa078 16px, #caa078 18px, #b88d64 18px, #b88d64 20px);
  background-size: 100% 100%, 100% 100%, 100% 63%, 100% 37%;
  background-position: top, top, top, bottom;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 20px rgba(141, 98, 56, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Room-Specific Rug Designs */
.room-bedroom #cozy-rug {
  width: 130px;
  height: 42px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #e1bee7 45%, #ce93d8 80%, #ba68c8 100%);
  border-radius: 50% 50% 45% 45%;
  border: 2.5px dashed #ffffff;
  box-shadow: 0 4px 14px rgba(186, 104, 200, 0.35);
}

.room-kitchen #cozy-rug {
  width: 126px;
  height: 38px;
  background: repeating-conic-gradient(#ff8a80 0% 25%, #ffffff 0% 50%) 50% / 14px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid #d32f2f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.room-gameroom #cozy-rug {
  width: 132px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.5) 0%, #1a0836 70%, #090014 100%);
  border-radius: 50%;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6), inset 0 0 10px rgba(255, 0, 127, 0.4);
}

.room-garden #cozy-rug {
  width: 134px;
  height: 40px;
  background: radial-gradient(ellipse at center, #c8e6c9 0%, #81c784 50%, #4caf50 85%, #2e7d32 100%);
  border-radius: 50%;
  border: 2.5px solid #a5d6a7;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.room-living #cozy-rug {
  width: 126px;
  height: 38px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #f5e6d3 50%, #d4b896 90%, #b8956e 100%);
  border-radius: 50%;
  border: 2.5px dashed #a07a50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   23. Personality Badges & Species Tags
   -------------------------------------------------------------------------- */
.personality-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  border: 1px solid #7dd3fc;
  box-shadow: var(--shadow-sm);
  margin-right: 4px;
}

.personality-silly { background: linear-gradient(135deg, #fef08a, #fde047); color: #854d0e; border-color: #facc15; }
.personality-sleepy { background: linear-gradient(135deg, #e9d5ff, #d8b4fe); color: #6b21a8; border-color: #c084fc; }
.personality-adventurous { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #9a3412; border-color: #fb923c; }
.personality-mischievous { background: linear-gradient(135deg, #fbcfe8, #f472b6); color: #9d174d; border-color: #f43f5e; }
.personality-shy { background: linear-gradient(135deg, #dcfce7, #86efac); color: #166534; border-color: #4ade80; }

/* --------------------------------------------------------------------------
   24. Backpack Inventory Modal
   -------------------------------------------------------------------------- */
.inventory-card {
  max-width: 440px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.inventory-tabs {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.inventory-grid-container {
  overflow-y: auto;
  max-height: 52vh;
  padding: 4px;
}

.inventory-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.inventory-item-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inventory-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.item-qty-pill {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.item-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  margin-bottom: 2px;
}

.item-desc {
  font-size: 0.64rem;
  color: #64748b;
  line-height: 1.2;
  margin-bottom: 6px;
  flex-grow: 1;
}

.item-action-btn {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* Rarity Accents */
.rarity-common { border-color: #cbd5e1; }
.rarity-rare { border-color: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.25); }
.rarity-epic { border-color: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.35); }
.rarity-legendary { border-color: #f59e0b; box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }

/* --------------------------------------------------------------------------
   25. Adoption Sanctuary Modal (Pet Changer)
   -------------------------------------------------------------------------- */
.sanctuary-card {
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.sanctuary-body {
  padding: 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

.sanctuary-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 10px;
  text-align: center;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.species-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.species-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.species-card.is-active {
  border-color: var(--theme-primary);
  background: linear-gradient(135deg, #fff, #f8faff);
  box-shadow: 0 0 12px var(--theme-shadow);
}

.species-badge-tag {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-free {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-perk {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f5d0fe;
}

.badge-legendary {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.species-avatar {
  font-size: 2rem;
  margin-bottom: 3px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.species-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.species-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 2px;
}

.species-perk {
  font-size: 0.60rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.2;
  height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.species-card .btn {
  padding: 4px 8px;
  font-size: 0.70rem;
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-pill);
}

.btn-adopt-buy {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35);
  border: none;
}

.btn-adopt-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(217, 119, 6, 0.45);
}

.btn-locked {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #cbd5e1;
}

.sanctuary-adopt-box {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.025);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   25b. Pixel Art Accessory Studio Modal
   -------------------------------------------------------------------------- */
.pixel-studio-card {
  max-width: 440px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.pixel-studio-body {
  padding: 10px 14px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pixel-tools-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.tool-btn-group {
  display: flex;
  gap: 4px;
}

.pixel-tool-btn {
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pixel-tool-btn:hover {
  background: #f8faff;
  border-color: var(--theme-primary);
}

.pixel-tool-btn.active {
  background: var(--theme-accent);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  box-shadow: 0 0 0 2px var(--theme-primary);
}

.pixel-palette-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(0, 0, 0, 0.025);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.palette-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.palette-swatch {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
}

.palette-swatch:hover {
  transform: scale(1.2);
}

.palette-swatch.selected {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--theme-primary);
  z-index: 2;
}

.custom-color-picker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.custom-color-picker-label input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Canvas Grid */
.pixel-canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pixel-canvas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  width: 228px;
  height: 228px;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pixel-cell {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  cursor: crosshair;
}

.pixel-cell:hover {
  outline: 1px solid var(--theme-primary);
  z-index: 1;
}

/* Starter Templates */
.pixel-templates-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.templates-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.templates-btn-group {
  display: flex;
  gap: 3px;
  overflow-x: auto;
}

.btn-pixel-template {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.btn-pixel-template:hover {
  background: #fdf4ff;
  border-color: var(--theme-primary);
}

/* Preview & Save */
.pixel-save-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.025);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pixel-preview-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pixel-preview-canvas {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 8px 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.pixel-meta-inputs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   26. Mystery Boxes Modal & Unboxing Animation
   -------------------------------------------------------------------------- */
.mystery-card {
  max-width: 440px;
  width: 95%;
}

.mystery-boxes-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mystery-box-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.box-visual {
  font-size: 2.4rem;
  margin-bottom: 4px;
  animation: box-float 3s infinite ease-in-out;
}

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

.mystery-box-card h4 {
  font-size: 0.8rem;
  margin-bottom: 2px;
  color: var(--theme-text-dark);
}

.box-rates {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.2;
  margin-bottom: 8px;
  flex-grow: 1;
}

/* Unboxing Stage */
.unboxing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  text-align: center;
}

.unboxing-chest-anim {
  font-size: 4.2rem;
  animation: chest-wobble 0.8s infinite ease-in-out;
}

@keyframes chest-wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.08); }
  75% { transform: rotate(8deg) scale(1.08); }
}

.unboxing-result-card {
  background: #ffffff;
  border: 2.5px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 20px rgba(245, 158, 11, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: loot-reveal-anim 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loot-reveal-anim {
  0% { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.loot-rarity-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.loot-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 6px;
}

.loot-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-text-dark);
  margin-bottom: 2px;
}

.loot-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   27. World Map Modal & Exploration
   -------------------------------------------------------------------------- */
.world-map-card {
  max-width: 450px;
  width: 95%;
}

.world-canvas {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #c8e6c9 0%, #b3e5fc 50%, #ffe0b2 100%);
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.map-node {
  position: absolute;
  background: #ffffff;
  border: 2px solid var(--theme-primary);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.map-node:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.node-town { top: 40%; left: 45%; }
.node-beach { bottom: 15%; right: 12%; }
.node-forest { top: 18%; left: 12%; }
.node-peak { top: 12%; right: 16%; }

.world-location-panel {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.loc-icon {
  font-size: 2rem;
}

.loc-details h4 {
  font-size: 0.92rem;
  margin-bottom: 2px;
  color: var(--theme-text-dark);
}

.loc-details p {
  font-size: 0.72rem;
  color: #64748b;
}

.npc-speech-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.npc-avatar {
  font-size: 1.6rem;
}

.npc-bubble strong {
  display: block;
  font-size: 0.76rem;
  color: var(--theme-primary);
  margin-bottom: 2px;
}

.npc-bubble p {
  font-size: 0.72rem;
  color: var(--theme-text-dark);
  line-height: 1.3;
}

.loc-action-row {
  display: flex;
  gap: 6px;
}

.loc-action-row .btn {
  flex: 1;
}

/* Foraging 2-Second Interactive Pulse */
.is-foraging-pulse {
  animation: forage-pulse-anim 0.75s ease-in-out infinite alternate !important;
  opacity: 0.9 !important;
  cursor: wait !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

@keyframes forage-pulse-anim {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(0.97); filter: brightness(1.2); }
}

/* ==========================================================================
   📜 Official Adoption Certificate & Registration Form Styles
   ========================================================================== */
.cert-card {
  padding: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #f59e0b;
}

.certificate-frame {
  background: #ffffff;
  border: 3px double #d97706;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: inset 0 0 12px rgba(217, 119, 6, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

.certificate-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-header {
  text-align: center;
  border-bottom: 2px dashed #fde68a;
  padding-bottom: 10px;
}

.cert-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #78350f;
  margin: 0 0 2px 0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.cert-subtitle {
  font-size: 0.78rem;
  color: #b45309;
  margin: 0;
  font-style: italic;
}

.cert-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .cert-form-grid {
    grid-template-columns: 1fr;
  }
}

.cert-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78350f;
}

.cert-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: #1e293b;
  background: #fffdf5;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.cert-input:focus {
  border-color: #d97706;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.cert-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: #1e293b;
  background: #fffdf5;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.cert-select:focus {
  border-color: #d97706;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.cert-code-row {
  display: flex;
  gap: 8px;
}

.cert-code-input {
  flex: 1;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-sign-cert {
  white-space: nowrap;
  font-weight: 800;
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3) !important;
}

.btn-sign-cert:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   📜 Official Signed Adoption Certificate View Modal
   ========================================================================== */
.cert-view-card {
  max-width: 440px;
  background: #fffbeb;
  border: 2px solid #f59e0b;
}

.cert-display-frame {
  background: #ffffff;
  border: 3px double #d97706;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: inset 0 0 16px rgba(217, 119, 6, 0.08);
  text-align: center;
  position: relative;
}

.cert-gold-ribbon {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  color: #92400e;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: 8px;
}

.cert-display-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #78350f;
  margin: 0 0 4px 0;
}

.cert-display-sub {
  font-size: 0.8rem;
  color: #b45309;
  font-style: italic;
  margin: 0 0 16px 0;
}

.cert-display-body {
  text-align: left;
  background: #fffdf5;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cert-display-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-field-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #92400e;
}

.cert-highlight {
  font-size: 1rem;
  font-weight: 900;
  color: #78350f;
}

.cert-italic {
  font-size: 0.84rem;
  color: #475569;
  font-style: italic;
}

.cert-stamp-badge {
  display: flex;
  justify-content: flex-end;
}

.stamp-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 2.5px solid #dc2626;
  border-radius: 50%;
  color: #dc2626;
  font-size: 0.65rem;
  font-weight: 900;
  transform: rotate(-12deg);
  opacity: 0.9;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* ==========================================================================
   🗑️ Custom Accessory Deletion Button in Wardrobe
   ========================================================================== */
.accessory-pill-wrapper {
  position: relative;
  display: inline-flex;
}

.accessory-pill-wrapper .accessory-btn {
  width: 100%;
}

.btn-delete-acc {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.btn-delete-acc:hover {
  background: #dc2626;
  transform: scale(1.2);
}


