:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: #0b0d10;
  color: #eef0f4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 0, #22262d 0, #0b0d10 62%);
}

body { min-height: 100vh; padding: 20px; }

#gallery-shell { width: min(1600px, 100%); margin: 0 auto; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header { min-height: 62px; }

.eyebrow { color: #9299a5; font-size: 10px; letter-spacing: .18em; }

h1 { margin: 4px 0 12px; font-size: clamp(18px, 2vw, 27px); font-weight: 560; }

button {
  border: 1px solid #545b66;
  border-radius: 7px;
  padding: 9px 16px;
  background: #20242a;
  color: #f3f4f6;
  cursor: pointer;
}

button:hover { background: #30353e; }

#player-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #353a43;
  border-radius: 10px;
  background: #121318;
  box-shadow: 0 22px 64px #0009;
}

#unity-canvas { display: block; width: 100%; height: 100%; outline: none; }

#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: #111318;
}

#loading[hidden] { display: none; }

.loading-title { color: #c8ccd3; font-size: 14px; letter-spacing: .08em; }

.track { width: min(340px, 65vw); height: 4px; overflow: hidden; background: #2b3038; }

#progress { width: 0; height: 100%; background: #d7dbe2; transition: width .15s linear; }

#progress.indeterminate {
  width: 30%;
  animation: loading-slide 1.1s ease-in-out infinite;
}

@keyframes loading-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(345%); }
}

#progress-label { color: #727985; font-size: 11px; }

#unity-warning { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; }

.banner { margin-bottom: 6px; padding: 10px 14px; border-radius: 6px; background: #29313c; }
.banner.error { background: #7d2730; }
.banner.warning { background: #765d22; }

footer { padding: 13px 2px; color: #858c97; font-size: 11px; }
.credit { text-align: right; }

@media (max-width: 700px) {
  body { padding: 0; }
  header, footer { padding: 10px 12px; }
  #player-frame { border: 0; border-radius: 0; }
  footer { align-items: flex-start; flex-direction: column; }
  .credit { text-align: left; }
}
