@font-face { font-family: "Racers Menu"; src: url("assets/RacersFont.otf") format("opentype"); font-display: swap; }
:root { color-scheme: dark; font-family: "MS Sans Serif", Tahoma, Arial, sans-serif; background: #000; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; }
.desktop { position: fixed; inset: 0; z-index: -1; --lr-studs-pitch: calc(100vmin / 9); --lr-studs-tile: url("stud-tile.png"); transition: opacity .55s ease; }
#stage { --cover-width: min(1040px, calc(100vw - 40px), calc((100svh - 40px) * 4 / 3)); position: relative; width: var(--cover-width); height: calc(var(--cover-width) * 3 / 4); overflow: hidden; background: #000; box-shadow: 0 0 0 1px #343840, 0 22px 90px #000; transition: width .55s cubic-bezier(.2,.7,.3,1), height .55s cubic-bezier(.2,.7,.3,1); }
body.game-expanded #stage { width: 100vw; height: 100svh; box-shadow: none; }
body.game-expanded .desktop { opacity: 0; }
#canvas { display: block; width: 100%; height: 100%; outline: none; }
#launcher { position: absolute; inset: 0; background: #000; }
.crt-glass { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0003 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #ff000009 0 1px, #00ff0007 1px 2px, #0000ff09 2px 3px); box-shadow: inset 0 0 90px 25px #0009, inset 0 0 5px 2px #000; }
body.game-expanded .crt-glass { display: none; }
.artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.masthead { position: absolute; top: 64%; left: 5%; width: 85%; }
.logo-wrap { position: relative; width: 100%; aspect-ratio: 949 / 254; }
#logo, #logo-still { position: absolute; inset: 0; width: 100%; height: 100%; }
#logo { opacity: 0; }
#logo.drawn { opacity: 1; }
/* Over the CRT glass, which comes after it: the glass is the picture's, and the controls are in front of the set. */
.start-panel { position: absolute; z-index: 1; right: 2%; bottom: 2%; width: min(240px, 85%); text-align: right; color-scheme: light; }
button { color: #111; background: #c0c0c0; font: 14px/1.3 "MS Sans Serif", Tahoma, Arial, sans-serif; border: 2px solid; border-color: #fff #555 #555 #fff; border-radius: 0; cursor: pointer; min-height: 30px; padding: 4px 12px; }
button:active:not(:disabled) { border-color: #555 #fff #fff #555; }
button:focus-visible { outline: 1px dotted currentColor; outline-offset: -5px; }
button:disabled { cursor: default; color: #777; text-shadow: 1px 1px #fff; }
.racers-button { min-width: 128px; min-height: 52px; padding: 7px 22px 9px; font: 36px/1 "Racers Menu", sans-serif; color: #ffed00; background: linear-gradient(#122776e8, #061349f2); border: 2px solid #6885d3; border-radius: 7px; text-shadow: 2px 3px 0 #000; box-shadow: 0 3px 0 #01071e, 0 5px 16px #0008; transition: color .12s, border-color .12s, background .12s, transform .12s; }
.racers-button:hover:not(:disabled) { color: #fff65c; border-color: #ffed00; background: linear-gradient(#254bbd, #112577); transform: translateY(-2px); }
.racers-button:focus-visible { outline: 3px solid #ffed00; outline-offset: 4px; border-color: #fff; }
.racers-button:active:not(:disabled) { transform: translateY(2px); border-color: #ffed00; box-shadow: 0 1px 0 #01071e; }
.racers-button:disabled { color: #94969f; border-color: #3e4d7c; text-shadow: 2px 2px #000; opacity: .75; }
/* Play and Skip are not there until they can be pressed, and then come in with a quick fade. */
#play, #skip { transition: color .12s, border-color .12s, background .12s, transform .12s, opacity .2s ease-out; }
#play:disabled, #skip:disabled { opacity: 0; visibility: hidden; }
#install-ios { display:block; margin:8px 0 0 auto; font-size:20px; min-height:44px; padding:7px 12px; }
#install-help { margin-top:8px; padding:8px 12px; background:#07123cee; color:#ffed11; border:1px solid #6885d3; font:17px/1.25 "Racers Menu",sans-serif; text-align:left; }
#install-help p { margin:0 0 6px; }
#install-help p:last-child { margin:0; }
#install-help svg { display:inline-block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; vertical-align:middle; }
#loading { margin-top: 10px; padding: 8px; font-size: 12px; background: #c0c0c0; color: #111; border: 2px inset #ddd; }
#loading-label { display: block; margin-bottom: 5px; }
progress { appearance: none; display: block; width: 100%; height: 15px; border: 2px solid; border-color: #777 #fff #fff #777; padding: 1px; background: #d5d5d5; }
progress::-webkit-progress-bar { background: #d5d5d5; }
progress::-webkit-progress-value { background: repeating-linear-gradient(90deg, #000080 0 9px, transparent 9px 12px); }
progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, #000080 0 9px, transparent 9px 12px); }
#error { font-size: 13px; line-height: 1.4; margin: 8px 0; padding: 8px; color: #111; background: #c0c0c0; }
#retry { width: 100%; }
#intro { position: absolute; inset: 0; background: #000; }
#movie { width: 100%; height: 100%; object-fit: contain; outline: none; }
#skip { position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 5; }
#menu-curtain { position: absolute; inset: 0; z-index: 6; background: #000; opacity: 0; }
#resume-video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#game-error, .no-script { position: absolute; left: 10%; right: 10%; top: 10%; padding: 16px; background: #c0c0c0; color: #111; font-size: 16px; line-height: 1.5; z-index: 6; }
#fullscreen { position: fixed; top: max(4px, env(safe-area-inset-top)); right: max(4px, env(safe-area-inset-right)); z-index: 10; width: min(32px, 6svh); height: min(32px, 6svh); min-height: 0; padding: 3px; color: #ffed00; background: transparent; border: 0; border-radius: 5px; transition: background .15s; }
#fullscreen svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: round; filter: drop-shadow(1px 1px 0 #000); }
#fullscreen:hover { background: #0003; }
#fullscreen g { transition: transform .15s ease-out; }
#fullscreen:hover .north-west { transform: translate(-1.5px, -1.5px); }
#fullscreen:hover .north-east { transform: translate(1.5px, -1.5px); }
#fullscreen:hover .south-west { transform: translate(-1.5px, 1.5px); }
#fullscreen:hover .south-east { transform: translate(1.5px, 1.5px); }
#fullscreen:focus-visible { outline: 2px solid #ffed00; outline-offset: 2px; }
#fullscreen:active { background: #0005; }
#fullscreen .contract, #fullscreen[aria-pressed="true"] .expand { display: none; }
#fullscreen[aria-pressed="true"] .contract { display: block; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  #stage { --cover-width: min(calc(100vw - 16px), calc((100svh - 16px) * 4 / 3)); }

}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Credits stay below the cover in their own row, including when text is enlarged. */
body { height: 100svh; grid-template-rows: minmax(180px, 1fr) auto; }
.launcher-window { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; container-type: size; }
#stage { --cover-width: min(1040px, calc(100cqw - 40px), calc((100cqh - 40px) * 4 / 3)); }
.project-note { width: 100%; padding: 10px max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); color: #edf1fa; background: rgb(2 8 23 / 76%); font: .8125rem/1.6 Tahoma, Arial, sans-serif; text-align: center; }
.project-note p { max-width: 1100px; margin: 0 auto; }
.project-note .pitch { margin-bottom: 4px; font-size: 1rem; }
.project-note .pitch strong { font: 1.25rem/1 "Racers Menu", sans-serif; color: #ffed00; letter-spacing: .02em; }
.project-note a, .project-note button, #credits a { color: #fff3a6; text-decoration: underline; text-underline-offset: .18em; }
.project-note button { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; color-scheme: dark; background: none; box-shadow: none; font: inherit; cursor: pointer; }
.project-note a:hover, .project-note button:hover, #credits a:hover { color: #fff; }
.project-note :focus-visible, #credits :focus-visible { outline: 2px solid #ffed00; outline-offset: 3px; }
body.game-expanded { grid-template-rows: minmax(0, 1fr); }
body.game-expanded .project-note { display: none; }
#credits { width: min(44rem, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 3px solid; border-color: #758dd8 #020a27 #020a27 #758dd8; border-radius: 0; color: #edf1fa; background: #0a1736; font: 1rem/1.65 Tahoma, Arial, sans-serif; box-shadow: 0 0 0 1px #000, 8px 8px 0 #0006; overflow-y: auto; overscroll-behavior: contain; }
#credits::backdrop { background: #000b; }
.credits-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 16px 24px; border-bottom: 3px solid #ffdb27; background: #122b78; }
.credits-heading h2 { margin: 0; font: 2rem/1.2 "Racers Menu", Tahoma, sans-serif; color: #ffed00; text-shadow: 2px 2px 0 #020b28; }
.credits-heading button { flex-shrink: 0; min-height: 40px; padding: 4px 14px; border: 2px solid; border-color: #b7c8ff #07102f #07102f #b7c8ff; border-radius: 0; color: #ffed00; background: #294493; font: 1.375rem/1.2 "Racers Menu", Tahoma, sans-serif; }
.credits-heading button:hover { color: #fff; background: #3b5cb8; }
.credits-heading button:active { border-color: #07102f #b7c8ff #b7c8ff #07102f; }
.credits-content { padding: 20px 24px 24px; overflow-wrap: anywhere; }
.credits-content p { margin: 0; }
.credits-content ul { margin: 0; padding-left: 1.2em; }
.credits-content li { padding-left: .35em; margin: 0 0 20px; }
.credits-content li::marker { color: #ffed00; }
.credits-ownership { border-top: 1px solid #536586; padding-top: 20px; }
@media (max-width: 600px) {
  #stage { --cover-width: min(calc(100cqw - 16px), calc((100cqh - 16px) * 4 / 3)); }
  .credits-heading { padding: 12px 16px; }
  .credits-content { padding: 16px; }
}
