/* base.css
   Base tokens, reset, page chrome, and the Unity canvas frame. */

:root {
  color-scheme: dark;
  --ax-emerald: #034F84;
  --ax-slate: #121820;
  --ax-charcoal: #0b1017;
  --ax-accent: #38ffc7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(56, 255, 199, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--ax-charcoal) 0%, var(--ax-slate) 55%, #05090f 100%);
  color: #edf6ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(16px, 3vw, 48px) 20px;
}

header {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

header img {
  display: block;
  height: clamp(20.25px, 2.8125vw, 31.5px);
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(33, 225, 159, 0.25));
}

.unity-shell {
  width: 100%;
  max-width: 1280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(7, 12, 19, 0.85);
  border: 1px solid rgba(33, 225, 159, 0.18);
  border-radius: 24px;
  padding: clamp(12px, 2vw, 24px);
  box-shadow: 0 32px 80px rgba(5, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  position: relative;
}

.unity-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #10161f;
  border-radius: 0;
  overflow: hidden;
  contain: layout style paint;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  background: #231f20;
  display: block;
  outline: none;
  border-radius: 0;
  will-change: transform;
}

noscript {
  color: #ffb3b3;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 12px;
}
