/* Kurage Studios WebGL template — dark, matches kuragestudios.com */

:root {
  --bg: #0b0d17;
  --panel: #131628;
  --text: #e6e8f0;
  --muted: #8b90a8;
  --accent: #21e6f5;
  --accent-2: #ff4fd8;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

#unity-canvas {
  display: block;
  background: var(--bg);
  outline: none;
  flex: 1 1 auto;
}

/* ---- loading overlay ---------------------------------------------------- */

#unity-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  transition: opacity 0.4s ease;
  z-index: 10;
}

#unity-loading.done {
  opacity: 0;
  pointer-events: none;
}

#unity-logo {
  width: min(70vw, 480px);
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 0 18px rgba(33, 230, 245, 0.35));
}

#unity-progress-bar-empty {
  width: min(60vw, 320px);
  height: 8px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid rgba(33, 230, 245, 0.35);
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

#unity-loading-text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- footer -------------------------------------------------------------- */

#unity-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

#unity-footer a {
  color: var(--accent);
  text-decoration: none;
}

#unity-footer small {
  opacity: 0.7;
}

#unity-footer-actions {
  display: flex;
  gap: 8px;
}

.footer-button {
  font: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-button:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

#unity-itch {
  border-color: var(--accent-2);
  color: var(--accent-2) !important;
}

#unity-itch:hover {
  background: var(--accent-2);
  color: var(--bg) !important;
}

/* phones: the game fills the screen, no footer (the in-game credits link back to us) */
body.mobile #unity-footer,
body.embedded #unity-footer,
:fullscreen #unity-footer {
  display: none;
}

/* ---- banners ------------------------------------------------------------- */

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  display: none;
  z-index: 20;
  max-width: 90vw;
}

#unity-warning div {
  padding: 10px 16px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--panel);
  color: var(--text);
}

#unity-warning .banner-warning {
  border-left: 4px solid #ffc857;
}

#unity-warning .banner-error {
  border-left: 4px solid #ff4f64;
}
