:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f1f2f0;
  background: #121416;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #c3e9ce; outline-offset: 4px; }
button:disabled { opacity: .35; cursor: not-allowed; }
.player { width: min(100%, 1200px, calc(160vh - 184px)); width: min(100%, 1200px, calc(160dvh - 184px)); overflow: hidden; border: 1px solid #34383c; border-radius: 14px; background: #1b1e21; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 0; background: #0c0e10; }
#unity-canvas { display: block; width: 100%; height: 100%; visibility: hidden; outline: none; background: #0c0e10; }
#unity-canvas:focus-visible { outline: 2px solid #c3e9ce; outline-offset: -3px; }
.player.ready #unity-canvas { visibility: visible; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; align-items: safe center; padding: 24px; overflow: auto; background: radial-gradient(ellipse at 50% 15%, #262c2c, #111416 75%); }
.launch-panel { width: min(100%, 420px); text-align: center; }
.eyebrow { display: block; margin-bottom: 18px; color: #a6b4ad; font-size: 10px; font-weight: 650; letter-spacing: .22em; }
h1 { margin: 0 0 14px; overflow-wrap: anywhere; font-size: clamp(24px, 4.5vw, 42px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
#intro { margin: 0 0 30px; color: #b6bdbb; font-size: 14px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease; white-space: nowrap; }
.button svg { width: 20px; height: 20px; flex: none; }
.primary { min-height: 48px; padding: 0 25px; background: #d4e9da; color: #142019; font-size: 14px; font-weight: 650; }
.primary:hover { background: #e7f7eb; }
.secondary { padding: 0 12px; background: transparent; border-color: #3a4045; color: #d4d9d6; font-size: 12px; }
.secondary:not(:disabled):hover { background: #30363a; }
.icon-button { width: 40px; padding: 0; }
.status { margin: 22px 0 0; color: #939d99; font-size: 12px; line-height: 1.6; }
.loading { max-width: 300px; margin: 0 auto; }
.progress-caption { display: flex; justify-content: space-between; margin-bottom: 10px; color: #c1c9c5; font-size: 12px; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 20px; background: #353d38; overflow: hidden; }
progress::-webkit-progress-bar { background: #353d38; }
progress::-webkit-progress-value { background: #c3e9ce; border-radius: 20px; }
progress::-moz-progress-bar { background: #c3e9ce; border-radius: 20px; }
.error { color: #f1d0c9; font-size: 14px; line-height: 1.6; }
.error details { margin: 18px 0 22px; text-align: left; color: #b9c0bc; font-size: 12px; }
.error summary { cursor: pointer; }
.error pre { max-height: 120px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { position: absolute; bottom: 16px; left: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 10px 14px; border: 1px solid #515b55; border-radius: 7px; background: #1b211ff2; color: #e0e8e3; font-size: 12px; line-height: 1.5; pointer-events: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #34383c; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; color: #b4bbb7; font-size: 11px; line-height: 1.5; }
.controls span { white-space: nowrap; }
kbd { color: #e5e8e6; font: inherit; }
.toolbar-actions { display: flex; flex: none; gap: 8px; }
.portfolio-return { text-decoration: none; }
.embedded body { padding: 0; }
.embedded .player { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; }
.embedded .stage { aspect-ratio: auto; min-height: 0; }
.player:fullscreen { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; }
.player:fullscreen .stage { aspect-ratio: auto; min-height: 0; }
@media (max-width: 700px), (max-height: 500px) {
  body { padding: 12px; }
  .toolbar { align-items: flex-start; gap: 12px; padding: 12px; }
  .controls { gap: 6px 12px; }
  #focus { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
@media (max-width: 700px) { .player:not(.ready) .stage { min-height: min(380px, calc(100svh - 120px)); } }
