/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: var(--font-ui);
  background: linear-gradient(135deg, #fbebf2 0%, #f7d6e0 50%, #f3c4fb 100%);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}


/* Flex helper classes */
.flex-grow {
  flex-grow: 1;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

.hidden {
  display: none !important;
}

/* Loading Screen */
.game-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #fbebf2 0%, #f7d6e0 50%, #f3c4fb 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.game-loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 24px;
  border: var(--border-theme);
  box-shadow: var(--shadow-glass), 0 10px 30px rgba(255, 107, 157, 0.08);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 107, 157, 0.15);
  border-top-color: var(--accent-pink);
  border-right-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.1);
}

.loading-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
