/* VAR Moments in the browser (VH-901): the game's navy, yellow and Lilita One, as the loading screen of VH-603b. */
@font-face { font-family: "Lilita One"; src: url("LilitaOne-Regular.ttf") format("truetype"); font-display: block; }
:root { --navy: #12234a; --deep: #0a1428; --yellow: #ffcb2f; --ink: #0d1b33; --red: #ff4b5c; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--deep); color: #fff; overflow: hidden;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

#phone { position: relative; overflow: hidden; background: var(--deep); }
#unity-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; background: var(--deep); }

/* on a phone the game is the whole page */
.on-phone #phone { position: fixed; inset: 0; }
.on-phone #beside { display: none; }

/* on a computer: a phone in the middle of the window */
.on-computer body { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1d3a78 0%, var(--navy) 45%, var(--deep) 100%); }
.on-computer #phone { height: min(calc(100vh - 88px), 932px); aspect-ratio: 390 / 844; border-radius: 34px;
  box-shadow: 0 0 0 10px #050b17, 0 24px 60px rgba(0, 0, 0, 0.55); }
#beside { margin-top: 18px; text-align: center; font-size: 13px; color: #b3c2df; }
#beside p { margin: 2px 0; }
#beside a { color: var(--yellow); }

/* loading screen: the 2010 final under the floodlights, the logo, a yellow bar */
#loading, #problem { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: 0 24px 12%; text-align: center;
  background: linear-gradient(to bottom, rgba(10, 20, 40, 0) 30%, rgba(10, 20, 40, 0.85) 100%),
    url("loading.jpg") center / cover no-repeat, var(--deep); transition: opacity 0.4s; }
#loading.done { opacity: 0; pointer-events: none; }
.logo { display: flex; flex-direction: column; align-items: center; transform: rotate(-4deg);
  font-family: "Lilita One", sans-serif; line-height: 0.92; -webkit-text-stroke: 0.035em var(--ink);
  paint-order: stroke fill; text-shadow: 0 0.04em 0 var(--ink); }
.logo .var { font-size: min(26vmin, 120px); color: #fff; }
.logo .moments { font-size: min(17.5vmin, 82px); color: var(--yellow); }
.on-computer .logo .var { font-size: min(11vh, 110px); }
.on-computer .logo .moments { font-size: min(7.4vh, 75px); }
.logo.small .var { font-size: 64px; }
.logo.small .moments { font-size: 43px; }
.tag { margin-top: 6%; padding: 6px 18px; border-radius: 10px; background: var(--red); transform: rotate(-2deg);
  font: min(18px, 4.4vmin) "Lilita One", sans-serif; letter-spacing: 0.5px; white-space: nowrap; }
.on-computer .tag { font-size: min(18px, 2.1vh); }
.bar { width: min(70%, 300px); height: 12px; margin-top: 9%; border-radius: 6px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.bar .fill { width: 0; height: 100%; border-radius: 6px; background: var(--yellow); transition: width 0.2s; }
.status { margin-top: 10px; font-size: 14px; color: #dbe4f5; }
#problem { justify-content: center; }
#problem p { max-width: 320px; margin-top: 28px; font-size: 17px; }
#notice { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 5; padding: 12px 14px;
  border-radius: 12px; background: rgba(10, 20, 40, 0.92); color: #fff; font-size: 14px; line-height: 1.35; text-align: center; }
#notice[hidden] { display: none; }
#problem button { margin-top: 24px; padding: 14px 36px; border: 0; border-radius: 12px; font: inherit; font-weight: 700;
  background: var(--yellow); color: #0a1428; }

/* a phone held sideways: the game is portrait only */
#upright { display: none; }
@media (orientation: landscape) and (max-height: 540px) {
  .on-phone #upright { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: var(--deep); font-size: 18px; }
  .turn { width: 44px; height: 76px; border: 5px solid var(--yellow); border-radius: 10px; transform: rotate(90deg); margin-bottom: 26px; }
}
