/* PowerSuit WebGL template. Brand values mirror powersuit-site/src/styles/tokens.css. */
@font-face {
  font-family: "Handjet";
  src: url("handjet.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #120f20;        /* Purple Black */
  --surface: #202030;       /* Shadow Grey */
  --ink: #fffdee;           /* Stained White */
  --ink-muted: #7875b5;     /* Glaucous */
  --accent: #ee574f;        /* Cinnabar */
  --gold: #e0ca3c;          /* Cash for Gold */
  --green-deep: #004542;    /* Brunswick Green */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: "Handjet", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#ps-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
}

#unity-canvas {
  display: block;
  background: var(--ground);
  image-rendering: pixelated;
  outline: none;
}

/* Loader, mobile notice and link fallback share one centred card. */
#ps-loader, #ps-mobile, #ps-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  z-index: 10;
}
#ps-link { background: rgba(18, 15, 32, 0.92); }
[hidden] { display: none !important; }

.ps-loader-inner {
  width: min(32rem, 90vw);
  text-align: center;
}

.ps-title {
  font-family: "Handjet", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--accent);
  line-height: 1;
}

.ps-sub {
  font-family: "Handjet", system-ui, sans-serif;
  font-size: 1.5rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 1.5rem;
}

.ps-bar {
  height: 14px;
  border: 3px solid var(--ink);
  background: var(--surface);
  padding: 2px;
}
.ps-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.ps-tip {
  margin-top: 1.25rem;
  font-family: "Handjet", system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  min-height: 1.4em;
}

.ps-links { margin: 1rem 0 0; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.ps-btn {
  display: inline-block;
  font-family: "Handjet", system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent);
  border: 3px solid var(--ink);
  padding: 0.35rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ground);
}
.ps-btn-quiet { background: var(--surface); }

#ps-warning {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  display: none;
  z-index: 20;
}
.ps-banner { font-family: "Handjet", system-ui, sans-serif; font-size: 1.25rem; background: var(--surface); color: var(--ink); padding: 0.5rem 1rem; margin-bottom: 0.5rem; border: 2px solid var(--ink); }
.ps-banner.error { background: var(--accent); }
.ps-banner.warning { background: var(--gold); color: var(--ground); }

#ps-fullscreen {
  font-family: system-ui, sans-serif;   /* the ⛶ glyph; Handjet has no symbol range */
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 15;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  background: rgba(32, 32, 48, 0.85);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
}
#ps-fullscreen:hover { opacity: 1; }
#ps-fullscreen[hidden] { display: none; }
