@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
  --bg-color: #0b0b0f;
  --cat-outline: rgba(255, 255, 255, 0.1);
  --cat-fill: #60a5fa;
  --text-color: #f8fafc;
  --accent-color: #3b82f6;
  --accent-glow: rgba(96, 165, 250, 0.4);
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--bg-color);
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
}

#unity-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 0;
  box-sizing: border-box;
}

/* --- Start Overlay (Mobile) --- */
#start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: none;
  /* Controlled by JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  gap: 2rem;
}

.start-btn {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-color), #60a5fa);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-btn:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px var(--accent-glow);
}

/* --- Floating Buttons --- */
.header-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
  border-color: var(--cat-fill);
}

.header-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .header-btn {
    display: flex;
  }
}

#unity-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: block;
}

/* --- Cat Loading Screen --- */
#unity-loading-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.cat-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.cat-fill {
  z-index: 2;
}

/* The ghost/outline cat */
.cat-bg {
  fill: var(--cat-outline);
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

/* The filling cat */
.cat-fill-path {
  fill: var(--cat-fill);
  filter: drop-shadow(0 0 10px var(--accent-glow));
  transition: clip-path 0.4s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

.loading-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#loading-percentage {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.loading-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

#unity-warning {
  position: absolute;
  top: 2rem;
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
}

/* Animation for the cat ears/tail slightly */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.cat-container {
  animation: float 4s ease-in-out infinite;
}