/* Haunted Street - Cute Spooky Cartoon Aesthetic */
:root {
  --bg-dark: #070311;
  --bg-surface: #170f26;
  --bg-card: #23163a;
  --bg-card-hover: #2f1d4c;
  --border-color: #432b68;
  --orange-primary: #ff7a00;
  --orange-glow: #ffa500;
  --purple-accent: #9d4edd;
  --purple-manor: #551c85;
  --purple-manor-dark: #240c3d;
  --green-slime: #00e676;
  --green-glow: rgba(0, 230, 118, 0.4);
  --red-blood: #ff1744;
  --text-main: #f8f9fa;
  --text-muted: #b7a6cf;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-fun: 'Fredoka', 'Comic Neue', cursive, var(--font-main);
  --shadow-glow: 0 0 15px rgba(255, 122, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 50% 10%, #2a154d 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, #1f0f35 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, #170b28 0%, transparent 50%);
}

/* Background Animated Fog */
.fog-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 180px;
  background: linear-gradient(to top, rgba(157, 78, 221, 0.14), transparent);
  pointer-events: none;
  z-index: 1;
  animation: fogDrift 25s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header & Tickers */
.app-header {
  position: relative;
  z-index: 100;
  background: rgba(13, 8, 25, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  padding: 8px 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  font-size: 26px;
  animation: floatPumpkin 3s ease-in-out infinite;
}

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

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange-primary);
  text-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
  letter-spacing: 0.5px;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease;
}

.stat-pill.bounce {
  transform: scale(1.18);
  border-color: #ffd54f !important;
}

.stat-pill.candy {
  border-color: rgba(255, 122, 0, 0.4);
  color: #ffb049;
}

.stat-pill.mischief {
  border-color: rgba(157, 78, 221, 0.4);
  color: #d199ff;
}

/* Ominous Event / Countdown Banner */
.event-banner {
  background: linear-gradient(90deg, #160528, #2c0a42, #110320);
  border-bottom: 1px solid rgba(157, 78, 221, 0.35);
  padding: 6px 14px;
  font-size: 0.82rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #d8c2f0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.event-banner.blood-moon {
  background: linear-gradient(90deg, #8a0c24, #b71c1c);
  border-color: #ff5252;
  animation: bloodMoonPulse 2s infinite alternate;
}

@keyframes bloodMoonPulse {
  0% { box-shadow: inset 0 0 10px #ff1744; }
  100% { box-shadow: inset 0 0 25px #ff5252; }
}

.countdown-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 122, 0, 0.35);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffaa00;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.25);
  animation: countdownGlow 2.5s infinite alternate;
}

@keyframes countdownGlow {
  0% { text-shadow: 0 0 3px rgba(255, 170, 0, 0.4); }
  100% { text-shadow: 0 0 10px rgba(255, 170, 0, 0.9), 0 0 20px rgba(255, 23, 68, 0.5); }
}

/* Navigation Tabs */
.nav-bar {
  display: flex;
  gap: 8px;
  max-width: 1200px;
  margin: 8px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar { display: none; }

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile view switcher & street view hidden on desktop */
.mobile-view-tabs,
.mobile-street-view {
  display: none;
}

/* --- 45-DEGREE ANGLE GLOBE VIEWPORT (Looking down on a Sphere) --- */
.main-map-area {
  position: relative;
  width: 100%;
  height: calc(100vh - 105px);
  overflow: hidden;
}

.onboarding-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff7a00, #9d4edd);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  z-index: 60;
  pointer-events: none;
  animation: bounceNotice 2.5s infinite;
  text-align: center;
  max-width: 90%;
}

@keyframes bounceNotice {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

/* 45-Degree Perspective Viewport Looking Down on a Globe */
.globe-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, #180a30 0%, #080312 60%, #030107 100%);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  perspective: 900px;
  -webkit-perspective: 900px;
  perspective-origin: 50% 45%;
  -webkit-perspective-origin: 50% 45%;
}

.globe-viewport.dragging {
  cursor: grabbing;
}

/* Atmospheric Moonlit Halo behind the sphere */
.planet-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.24) 0%, rgba(255, 122, 0, 0.08) 55%, transparent 75%);
  pointer-events: none;
  filter: blur(28px);
  animation: haloBreathe 6s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* 3D Rotating Sphere (Rotates on pitch & yaw) */
.globe-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.05s ease-out;
}

/* Central Planet Body (Dark purple shadowed sphere) */
.globe-body {
  position: absolute;
  width: 630px;
  height: 630px;
  left: -315px;
  top: -315px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 28%, #3c1966 0%, #1d0936 50%, #10041e 80%, #05010b 100%);
  box-shadow: 
    0 0 65px rgba(157, 78, 221, 0.35),
    inset -45px -45px 80px rgba(0, 0, 0, 0.95),
    inset 25px 25px 50px rgba(255, 170, 0, 0.14);
  pointer-events: none;
  transform: translateZ(-10px);
  -webkit-transform: translateZ(-10px);
}

.plots-layer, .spirits-layer {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Individual Plot Tangent to Globe Surface */
.globe-plot {
  position: absolute;
  width: 96px;
  height: 114px;
  left: -48px;
  top: -57px;
  background: radial-gradient(circle at 50% 25%, #2c1248 0%, #160829 100%);
  border: 1.5px solid #4f227d;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.globe-plot:hover {
  border-color: var(--orange-primary);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
}

.globe-plot.selected {
  border-color: #ffd54f !important;
  box-shadow: 0 0 26px rgba(255, 213, 79, 0.85);
}

.globe-plot.plot-mine {
  border-color: #ffd54f;
  background: radial-gradient(circle at 50% 25%, #461b73 0%, #1d0936 100%);
}

.globe-plot.plot-empty {
  border: 1.5px dashed rgba(157, 78, 221, 0.5);
  background: rgba(18, 9, 34, 0.65);
}

.globe-plot.plot-empty:hover {
  border-color: var(--orange-glow);
  background: rgba(38, 16, 66, 0.85);
}

/* SVG Vector Icon System */
.hs-icon {
  display: inline-block;
  vertical-align: -0.15em;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  stroke: currentColor;
  flex-shrink: 0;
  pointer-events: none;
}

/* 3D Billboarding & Depth for Purple Manor Building on the Globe */
.manor-model-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.7));
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
  transform: translateZ(14px) rotateX(-12deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.globe-plot:hover .manor-model-wrapper,
.globe-plot.selected .manor-model-wrapper {
  transform: translateZ(22px) rotateX(-8deg) scale(1.08);
}

.manor-svg {
  width: 50px;
  height: 50px;
  overflow: visible;
}

.plot-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.plot-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
  padding: 1px 5px;
  border-radius: 6px;
}

.plot-mine .plot-num {
  color: #ffd54f;
  background: rgba(255, 213, 79, 0.25);
}

.plot-mine-pill {
  font-size: 0.62rem;
  font-weight: 800;
  background: #ffd54f;
  color: #170b2c;
  padding: 1px 5px;
  border-radius: 6px;
}

.plot-owner {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
  text-align: center;
  z-index: 5;
}

.plot-bottom-info {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  z-index: 5;
}

.plot-badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
}

.badge-scare {
  background: rgba(255, 23, 68, 0.2);
  color: #ff5252;
}

.badge-bowl {
  background: rgba(255, 170, 0, 0.25);
  color: #ffb049;
}

.badge-available {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
  animation: pulseAvailable 2s infinite;
}

@keyframes pulseAvailable {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.05); }
}

/* --- WANDERING SPIRITS (Ghosts, Bats, Pumpkins - Active Play) --- */
.wandering-spirit {
  position: absolute;
  width: 48px;
  height: 48px;
  left: -24px;
  top: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  z-index: 70;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.spirit-icon {
  display: block;
  font-size: 30px;
  filter: drop-shadow(0 0 14px rgba(157, 78, 221, 0.95));
  animation: floatSpirit 2.5s ease-in-out infinite alternate;
  transition: transform 0.12s ease, filter 0.12s ease;
  user-select: none;
  pointer-events: none;
}

.wandering-spirit:hover .spirit-icon {
  transform: scale(1.35);
  filter: drop-shadow(0 0 22px #ffaa00);
}

@keyframes floatSpirit {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-14px) rotate(8deg); }
}

/* Floating Map HUD Controls (Clean Frosted Vertical Pill) */
.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 50;
  background: rgba(18, 10, 32, 0.75);
  padding: 6px;
  border-radius: 28px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.map-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 18, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-btn .hs-icon {
  width: 18px;
  height: 18px;
}

.map-btn:hover {
  background: rgba(92, 29, 143, 0.9);
  border-color: var(--orange-primary);
  color: #ffd54f;
  transform: scale(1.08);
}

.map-btn:active {
  transform: scale(0.95);
}

/* Candy Bowl Full Glow Alert */
.bowl-full-glow {
  animation: bowlFullPulse 1.4s ease-in-out infinite !important;
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.8), inset 0 0 10px rgba(255, 213, 79, 0.5) !important;
  border-color: #ffd54f !important;
}

@keyframes bowlFullPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px #ff7a00);
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 14px #ffd54f);
  }
}

/* --- ACTION DRAWER --- */
.action-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75vh;
  background: rgba(20, 13, 34, 0.98);
  backdrop-filter: blur(20px);
  border-top: 3px solid var(--border-color);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--orange-primary);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-content {
  padding: 16px 20px 24px;
  overflow-y: auto;
  max-height: calc(75vh - 60px);
}

@media (min-width: 860px) {
  .action-drawer {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 440px;
    max-height: calc(100% - 40px);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transform: translateX(110%);
  }
  .action-drawer.open {
    transform: translateX(0);
  }
  .drawer-content {
    max-height: calc(100vh - 220px);
  }
}

/* --- CLICK HOUSE & COMBO CANDY RUSH --- */
.tap-house-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 16px;
  text-align: center;
}

.tap-house-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #481977 0%, #1e0936 100%);
  border: 3px solid #ff7a00;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease;
  position: relative;
}

.tap-house-btn:active, .tap-house-btn.pulse-click {
  transform: scale(0.92);
  border-color: #ffd54f;
  box-shadow: 0 0 35px rgba(255, 213, 79, 0.6);
}

.tap-house-emoji {
  font-size: 54px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  pointer-events: none;
}

.tap-hint-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffaa33;
  margin-top: 8px;
}

/* Combo Streak & Rush Badge */
.combo-badge {
  background: linear-gradient(90deg, #ff7a00, #ff1744);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.6);
  animation: pulseCombo 0.35s ease-out;
}

@keyframes pulseCombo {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.candy-rush-screen {
  box-shadow: inset 0 0 50px rgba(255, 122, 0, 0.6) !important;
}

/* Floating Candy Particles */
.floating-candy {
  position: fixed;
  pointer-events: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffb049;
  text-shadow: 0 0 8px #ff7a00, 0 2px 4px #000;
  z-index: 9999;
  animation: floatUpFade 0.65s ease-out forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85px) scale(1.25);
  }
}

/* Candy Bowl Collect Button */
.btn-collect {
  background: linear-gradient(135deg, #ff7a00, #ff9100);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-collect:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
}

.btn-collect:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Drawer Sections */
.drawer-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffaa33;
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compact-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}

.compact-card-info {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover:not(:disabled) {
  border-color: var(--orange-primary);
  background: var(--bg-card-hover);
}

.btn-action.primary {
  background: var(--purple-accent);
  border-color: var(--purple-accent);
}

.btn-action.primary:hover:not(:disabled) {
  background: #7b2cbf;
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-dialog.modal-large {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.3);
}

/* Admin Management Panel Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
  margin-top: 14px;
}

.admin-table th, .admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.btn-reset-zero {
  background: rgba(255, 23, 68, 0.2);
  border: 1px solid #ff1744;
  color: #ff5252;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-reset-zero:hover {
  background: #ff1744;
  color: #fff;
}

/* Toast Container */
/* --- DISTRICT & WORLD BOSS TOP HUD BANNER --- */
.district-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 9, 32, 0.88);
  border: 1px solid rgba(157, 78, 221, 0.45);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: #e0d0f5;
  white-space: nowrap;
}

.banner-boss-pill {
  background: linear-gradient(135deg, #ff7a00, #b71c1c);
  border: 1px solid #ffd54f;
  color: #fff;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
}

.banner-boss-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.8);
}

/* North Pole World Boss on Globe */
.globe-boss-marker {
  position: absolute;
  width: 72px;
  height: 72px;
  left: -36px;
  top: -36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 18px rgba(255, 122, 0, 0.9));
  animation: bossFloat 3s ease-in-out infinite alternate;
}

@keyframes bossFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.08); }
}

/* Street Menace Aura on Globe */
.globe-plot.plot-menace {
  border-color: #ff1744 !important;
  box-shadow: 0 0 22px rgba(255, 23, 68, 0.9), inset 0 0 10px rgba(255, 23, 68, 0.5) !important;
  animation: menacePulse 1.8s infinite alternate;
}

@keyframes menacePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px #ff1744); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 14px #ff1744); }
}

/* Yard Props on Manor Base */
.yard-props-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  pointer-events: none;
}

.yard-prop-badge {
  font-size: 13px;
  line-height: 1;
}

/* --- WITCH CAULDRON & POTIONS UI --- */
.ingredients-inventory-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  justify-content: space-around;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.potion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}

.potion-card:hover {
  border-color: #d199ff;
}

.potion-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.potion-icon {
  font-size: 32px;
  background: rgba(157, 78, 221, 0.2);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* --- DAILY QUESTS UI --- */
.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.quest-progress-bg {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7a00, #ffd54f);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --- BOSS BATTLE UI --- */
.boss-arena {
  background: radial-gradient(circle, #25103a 0%, #0d0418 100%);
  border: 1px solid #ff7a00;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.boss-hp-container {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 0, 0.5);
  overflow: hidden;
  margin: 10px 0 4px;
}

.boss-hp-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff1744, #ff9100);
  transition: width 0.4s ease;
}

.btn-attack-boss {
  background: linear-gradient(135deg, #ff7a00, #ff1744);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-attack-boss:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(255, 23, 68, 0.8);
}

.btn-attack-boss:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(25, 18, 40, 0.95);
  border: 1px solid var(--orange-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  animation: toastIn 0.3s ease-out;
}

.toast.error {
  border-color: var(--red-blood);
  color: #ff5252;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE-SPECIFIC LAYOUT & RESPONSIVE DESIGN (Adaptive Device Detection)
   ========================================================================== */

/* Drawer Drag Handle */
.drawer-drag-handle {
  display: none;
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 6px auto 10px;
  cursor: grab;
}

/* Mobile Bottom Navigation (Hidden on desktop) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(14, 7, 24, 0.96);
  border-top: 1px solid rgba(157, 78, 221, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  cursor: pointer;
  flex: 1;
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn.active,
.mobile-nav-btn:active {
  color: #ffd54f;
  transform: scale(1.05);
}

.mob-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mob-label {
  font-size: 0.68rem;
  font-weight: 700;
}

/* Mobile Expanded Menu Grid */
.mobile-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: var(--bg-card-hover);
  border-color: var(--orange-primary);
}

.mobile-menu-item.danger {
  border-color: rgba(255, 23, 68, 0.4);
}

.menu-item-icon {
  font-size: 1.5rem;
}

/* --- MOBILE LAYOUT RULES (Applied via body.is-mobile OR @media) --- */
@media (max-width: 768px), (pointer: coarse) and (max-width: 900px) {
  body.is-mobile, html.is-mobile, body {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  /* Compact Event Countdown Banner on Mobile */
  .event-banner {
    padding: 3px 8px;
    font-size: 0.68rem;
    gap: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .countdown-box {
    padding: 1px 6px;
    font-size: 0.72rem;
    letter-spacing: 1px;
  }

  /* Compact Mobile Header */
  .app-header {
    height: 44px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-top {
    height: 44px;
  }

  .logo-text {
    display: none;
  }

  .logo-area {
    gap: 4px;
  }

  .logo-icon {
    font-size: 22px;
  }

  .header-stats {
    gap: 6px;
  }

  .stat-pill {
    padding: 3px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  #btn-mute-toggle,
  .header-stats > div:last-child {
    display: none; /* Accessible in the bottom More Menu */
  }

  /* Desktop nav is replaced by bottom nav bar */
  .app-header .nav-bar {
    display: none !important;
  }

  /* Mobile View Switcher Tabs (Street View vs 3D Globe) */
  .mobile-view-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(14, 7, 25, 0.96);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 90;
  }

  .view-tab-btn {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .view-tab-btn.active {
    background: linear-gradient(135deg, #4a1975, #2c0e48);
    border-color: var(--orange-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.3);
  }

  /* Main viewport height accounting for header, mobile tabs, and bottom nav */
  .main-map-area {
    height: calc(100vh - 44px - 44px - 58px);
    height: calc(100dvh - 44px - 44px - 58px);
    position: relative;
    overflow: hidden;
  }

  /* --- DEDICATED MOBILE STREET VIEW (Default on Mobile) --- */
  .mobile-street-view {
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 80px;
  }

  /* Hero Manor Card on Mobile - High End Dark Glass Aesthetic */
  .mob-manor-card {
    background: linear-gradient(145deg, rgba(42, 18, 68, 0.82), rgba(18, 9, 32, 0.92));
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mob-manor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .mob-manor-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mob-manor-tier-pill {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(123, 44, 191, 0.3);
    color: #ffd54f;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 213, 79, 0.3);
  }

  /* Refined Tactile Tap Banner */
  .mob-tap-house-banner {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(157, 78, 221, 0.18));
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.1s ease, background 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-tap-house-banner:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.25), rgba(157, 78, 221, 0.35));
  }

  .mob-tap-icon {
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  .mob-tap-info {
    flex: 1;
  }

  .mob-tap-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
  }

  .mob-tap-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  .mob-tap-bonus {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffd54f;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 6px;
  }

  /* Mobile Candy Bowl Collector */
  .mob-bowl-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-bottom: 10px;
  }

  .mob-bowl-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 5px;
    font-weight: 700;
  }

  .mob-progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .mob-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a00, #ffb049);
    transition: width 0.3s ease;
  }

  .mob-btn-collect {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 700;
  }

  /* Mobile Quick Stats */
  .mob-stats-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
  }

  .mob-stat-chip {
    flex: 1;
    background: rgba(25, 14, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 5px 6px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  .mob-stat-chip strong {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    margin-top: 1px;
  }

  /* Mobile Actions Row */
  .mob-actions-row {
    display: flex;
    gap: 6px;
  }

  .mob-actions-row button {
    flex: 1;
    padding: 7px 4px;
    font-size: 0.75rem;
  }

  /* Unclaimed Plot Onboarding Card on Mobile */
  .mob-onboarding-card {
    background: radial-gradient(circle at 50% 25%, #3d1b66 0%, #17072a 100%);
    border: 1.5px dashed var(--orange-primary);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    margin-bottom: 14px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  }

  .mob-onboarding-card h3 {
    color: #ffaa33;
    font-size: 1.05rem;
    margin: 8px 0 4px;
  }

  .mob-onboarding-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Mobile Street Header & Filters */
  .mob-street-header {
    margin-bottom: 12px;
  }

  .mob-street-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .mob-plot-count {
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
  }

  .mob-filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .mob-filter-chips::-webkit-scrollbar { display: none; }

  .filter-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
  }

  .filter-chip.active {
    background: var(--orange-primary);
    color: #120722;
    border-color: var(--orange-glow);
  }

  /* Mobile Street Plot Card List */
  .mob-plots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mob-plot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
  }

  .mob-plot-card.is-me {
    border: 1.5px solid #ffd54f;
    background: radial-gradient(circle at 50% 10%, #2f144d 0%, #160829 100%);
  }

  .mob-plot-card.is-empty {
    border: 1.5px dashed rgba(157, 78, 221, 0.4);
    background: rgba(18, 9, 34, 0.5);
  }

  .mob-plot-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mob-plot-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mob-plot-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
  }

  .mob-plot-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .mob-plot-svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .mob-plot-details {
    flex: 1;
    font-size: 0.76rem;
    color: var(--text-muted);
  }

  .mob-plot-actions {
    display: flex;
    gap: 6px;
  }

  .mob-plot-actions button {
    padding: 5px 10px;
    font-size: 0.74rem;
    min-height: 34px;
  }

  /* 3D Globe Overrides on Mobile */
  .district-banner {
    top: 6px;
    padding: 3px 8px;
    font-size: 0.7rem;
    gap: 6px;
    max-width: 95%;
  }

  .onboarding-banner {
    top: 42px;
    padding: 5px 12px;
    font-size: 0.75rem;
    max-width: 92%;
  }

  /* Mobile Map Floating Controls (Docked cleanly at bottom-right above the nav) */
  .map-controls {
    top: auto;
    bottom: 70px;
    right: 12px;
    gap: 6px;
    background: rgba(18, 10, 32, 0.8);
    padding: 5px;
    border-radius: 24px;
    border: 1px solid rgba(157, 78, 221, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .map-btn {
    width: 36px;
    height: 36px;
  }

  .map-btn .hs-icon {
    width: 17px;
    height: 17px;
  }

  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    height: 58px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    background: rgba(14, 7, 24, 0.98);
    border-top: 1px solid rgba(157, 78, 221, 0.35);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Mobile Action Drawer as Bottom Sheet */
  .action-drawer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 58px !important;
    width: 100% !important;
    max-height: 80vh !important;
    max-height: 80dvh !important;
    border-radius: 22px 22px 0 0 !important;
    border: 1.5px solid rgba(157, 78, 221, 0.5) !important;
    border-bottom: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85) !important;
    z-index: 120 !important;
    transform: translateY(110%) !important;
  }

  .action-drawer.open {
    transform: translateY(0) !important;
  }

  .drawer-drag-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 8px auto 4px;
    cursor: pointer;
  }

  .drawer-header {
    padding: 6px 14px 8px;
  }

  .drawer-content {
    max-height: calc(80vh - 60px) !important;
    max-height: calc(80dvh - 60px) !important;
    padding: 8px 12px 24px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  /* Mobile Modals (Bottom-sheet presentation) */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    border-radius: 22px 22px 0 0 !important;
    padding: 16px 14px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobileSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Prevent iOS automatic input zoom by ensuring font-size >= 16px */
  .form-input {
    font-size: 16px !important;
  }

  @keyframes mobileSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Tap targets for mobile */
  .btn-collect,
  .btn-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
