@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../assets/fonts/be-vietnam-pro-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../assets/fonts/be-vietnam-pro-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
* { box-sizing: border-box; }
:root { --header-height: 48px; color-scheme: dark; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  background: #101f27;
  color: #fafbf7;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
}
body.embedded { --header-height: 0px; }
.embedded .standalone-header { display: none; }
.embedded .game-viewport { grid-row: 2; }
a { color: inherit; text-underline-offset: 4px; }
.standalone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: #153f49;
  font-size: 11px;
}
.standalone-header a { text-decoration: none; }
.game-viewport { display: grid; place-items: center; min-height: 0; }
#unity-container {
  position: relative;
  width: min(100%, calc((100dvh - var(--header-height)) * 320 / 650));
  aspect-ratio: 320 / 650;
  overflow: hidden;
  background: #231f20;
}
.fit-screen #unity-container { width: 100%; height: 100%; aspect-ratio: auto; }
#unity-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#unity-canvas:focus-visible { outline: 2px solid #f57555; outline-offset: -2px; }
.player-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px;
  background: #153f49;
  text-align: center;
}
[hidden] { display: none !important; }
h1 { margin: 0; font-size: clamp(22px, 7vw, 32px); line-height: 1.25; letter-spacing: -1px; }
p { margin: 0; font-size: 12px; line-height: 1.8; max-width: 28ch; }
.loading-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #153f49;
  background: #f57555;
  border-radius: 18px;
  font-size: 38px;
  font-weight: 800;
  transform: rotate(-8deg);
}
progress { width: 100%; max-width: 220px; height: 7px; border: 0; border-radius: 6px; overflow: hidden; background: #46646b; accent-color: #f57555; }
progress::-webkit-progress-bar { background: #46646b; }
progress::-webkit-progress-value { background: #f57555; }
progress::-moz-progress-bar { background: #f57555; }
#loading-percent { font-size: 11px; color: #d4e2db; }
button { border: 0; border-radius: 8px; padding: 12px 22px; background: #f57555; color: #153f49; font: 800 13px "Be Vietnam Pro", sans-serif; cursor: pointer; }
#error-back { font-size: 11px; }
:focus-visible { outline: 3px solid #fafbf7; outline-offset: 4px; }
