* { box-sizing: border-box }
html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; font-family: "Inter", Arial, sans-serif; background: #070707; color: #f5f5f5 }
body {
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(230, 28, 28, 0.35), transparent 45%),
    radial-gradient(circle at 78% 85%, rgba(29, 108, 236, 0.2), transparent 40%),
    linear-gradient(145deg, #050505 0%, #171717 42%, #0a0a0a 100%);
}
.city-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.03) 27px 28px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  mix-blend-mode: screen;
}
#unity-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
}
#hud-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0.2rem;
}
#hud-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(237, 44, 44, 0.75);
}
#hud-subtitle {
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
#unity-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(240, 39, 39, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: #101010;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  border-radius: 0;
  border: none;
}
#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at 50% 50%, #1f1f1f 0%, #070707 100%);
}
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: min(85vw, 380px);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.84);
  backdrop-filter: blur(4px);
}
#unity-logo {
  width: 100%;
  height: 72px;
  background: url('unity-logo-light.png') no-repeat center;
  background-size: contain;
}
#loading-copy {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin: 0.3rem 0 0.5rem;
}
#unity-progress-bar-empty {
  width: 100%;
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f02a2a 0%, #f4c04f 95%);
  transition: width 0.2s ease-out;
}
#unity-footer {
  position: absolute;
  inset: auto 0 0 0;
  height: 52px;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0), rgba(0, 0, 0, 0.58));
}
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer {
  width: auto;
  height: auto;
  background: none;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
#unity-logo-title-footer::before { content: "Blinkbox" }
#unity-build-title {
  margin-left: auto;
  line-height: 1;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}
#unity-fullscreen-button {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    url('fullscreen-button.png') no-repeat center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
#unity-fullscreen-button:hover,
#unity-fullscreen-button:focus-visible {
  transform: scale(1.06);
  border-color: rgba(244, 192, 79, 0.95);
  outline: none;
}
#unity-warning {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translate(-50%);
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
  display: none;
  max-width: min(92vw, 640px);
}
@media (max-width: 900px) {
  #unity-shell { padding: 0.6rem; gap: 0.45rem }
  #hud-subtitle { display: none }
  #unity-container { border-radius: 10px }
}
