:root {
  --paper: #110e1a;
  --ink: #f5f1ff;
  --muted: #afa6bf;
  --line: #332b42;
  --brand: #b192ff;
  --accent: #ff994f;
  color-scheme: dark;
  font-family: "Manrope Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); }
body #unity-canvas { display: block; position: fixed; inset: 0; width: 100% !important; height: 100% !important; outline: none; }
#studio-loading {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 40%, #251a39 0, transparent 60%), var(--paper);
  opacity: 1; transition: opacity .35s ease;
}
#studio-loading.is-ready { opacity: 0; pointer-events: none; }
[hidden] { display: none !important; }
.loading-center { width: min(100%, 360px); }
.brand { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 0 0 48px; }
.brand-mark { width: 78px; height: 66px; flex-shrink: 0; background: var(--brand); mask: url(mark.svg) center/contain no-repeat; -webkit-mask: url(mark.svg) center/contain no-repeat; }
.brand-type { font-size: 46px; font-weight: 850; letter-spacing: -2.5px; line-height: 1; }
.brand-type > span { font-weight: 500; }
.brand-type small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 2.1px; font-weight: 650; margin-top: 12px; }
.progress-caption, .download-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.progress-caption { font-size: 11px; min-height: 20px; }
#loading-percent { color: var(--brand); font-size: 11px; font-weight: 700; }
#loading-track { height: 4px; background: #332b4280; border-radius: 8px; overflow: hidden; margin: 13px 0 12px; }
#loading-fill { width: 0; height: 100%; border-radius: 8px; background: var(--brand); transition: width .12s linear; }
.download-meta { color: var(--muted); font-size: 10px; }
#loading-note { font-size: 9px; opacity: .72; }
#loading-retry { display: block; margin: 22px auto 0; border: 1px solid #ff994f55; border-radius: 99px; padding: 10px 20px; background: #ff994f14; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
#loading-retry:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.is-error #loading-fill { background: var(--accent); }
.is-error #loading-status { color: var(--accent); line-height: 1.7; }
noscript { position: fixed; bottom: 12px; z-index: 20; }
@media (max-width: 540px) {
  .brand { gap: 13px; margin-bottom: 40px; }
  .brand-mark { width: 62px; height: 54px; }
  .brand-type { font-size: 37px; }
  .brand-type small { font-size: 6px; letter-spacing: 1.8px; }
}
@media (max-height: 360px) {
  .brand { margin-bottom: 24px; }
  .brand-mark { width: 50px; height: 42px; }
  .brand-type { font-size: 30px; }
  .brand-type small { font-size: 6px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { #studio-loading, #loading-fill { transition: none; } }
