/* SPDX-FileCopyrightText: 2026 Humaid Alqasimi */
html, body { margin: 0; height: 100%; overflow: hidden; }
/* What shows with no WebGL2 or no script: the dark page with a faint band of light. */
body { background: #1e1f29 linear-gradient(#1e1f29 6%, #1d2646 30%, #1e1f29 52%); }
canvas, i { position: fixed; inset: 0; width: 100%; height: 100%; }
canvas { display: block; touch-action: none; }
i { pointer-events: none; background: radial-gradient(125% 100% at 50% 40%, transparent 55%, rgba(15, 16, 22, 0.55)); }
#fps { position: fixed; top: 8px; left: 10px; font: 12px ui-monospace, monospace; color: #6272a4; }
/* Entering (enter.ts): one quiet button, and the prompt in the page's own dark,
   set in Spleen like the game (space/docs/rfd/0006, "Everything written") at
   16 and 32 pixels. The font is fetched only when the prompt first shows. */
@font-face { font-family: Spleen; src: url(spleen.woff2) format("woff2"); font-display: block; }
[hidden] { display: none !important; }
#enter { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 8px 22px; border: 1px solid rgba(248, 248, 242, 0.2); border-radius: 999px; background: rgba(30, 31, 41, 0.5); color: #f8f8f2; font: 15px/1.2 system-ui, sans-serif; letter-spacing: 0.02em; cursor: pointer; }
#enter:hover { background: rgba(30, 31, 41, 0.8); }
#enter:focus-visible, #prompt button:focus-visible { outline: 2px solid #bd93f9; outline-offset: 2px; }
#prompt { box-sizing: border-box; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 20px 18px; border: 1px solid #44475a; border-radius: 10px; background: #282a36; color: #f8f8f2; font: 16px/20px Spleen, ui-monospace, monospace; -webkit-font-smoothing: none; font-smooth: never; font-synthesis: none; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
#prompt::backdrop { background: rgba(15, 16, 22, 0.45); }
#prompt header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#prompt h1 { margin: 0; font-size: 32px; line-height: 32px; font-weight: normal; overflow-wrap: anywhere; }
#prompt :where(p) { margin: 0; }
#p-who, #prompt .hint, #p-size { color: #a3a7c0; }
#p-who { white-space: nowrap; }
/* The message of the day: plain text, its own lines kept. */
#p-motd { margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
#p-size { margin-top: 10px; }
#prompt progress { display: block; width: 100%; height: 3px; margin: 12px 0 0; border: 0; border-radius: 2px; background: #44475a; appearance: none; }
#prompt progress::-webkit-progress-bar { background: #44475a; border-radius: 2px; }
#prompt progress::-webkit-progress-value { background: #bd93f9; border-radius: 2px; }
#prompt progress::-moz-progress-bar { background: #bd93f9; border-radius: 2px; }
#p-note { margin-top: 12px; color: #c5c8da; }
#p-note.error { color: #ffb0b0; }
/* The ways in: wide, equal buttons stacked as the game's menus are
   (space/docs/rfd/0015, "The look"), the first filled; plain links under them. */
#p-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
#p-choices:empty { display: none; }
#prompt button { min-height: 40px; padding: 0 16px; border: 1px solid #44475a; border-radius: 6px; background: transparent; color: #f8f8f2; font: inherit; cursor: pointer; }
#prompt button.primary { border-color: #bd93f9; background: #bd93f9; color: #282a36; }
#prompt button:not(.link):hover:not(:disabled) { border-color: #6272a4; }
#prompt button.primary:hover:not(:disabled) { border-color: #caa9fa; background: #caa9fa; }
#prompt button.link { min-height: 40px; padding: 0 4px; border: 0; background: none; color: #a3a7c0; text-decoration: underline; text-underline-offset: 3px; }
#prompt button.link:hover:not(:disabled) { color: #f8f8f2; }
#prompt button:disabled { opacity: 0.5; cursor: default; }
#prompt .links { display: flex; justify-content: center; gap: 24px; margin-top: 2px; }
#prompt .links + .hint { margin-top: -6px; text-align: center; }
#prompt .create { display: flex; flex-direction: column; gap: 8px; }
#prompt label { color: #c5c8da; }
#prompt input { box-sizing: border-box; height: 40px; padding: 0 10px; border: 1px solid #44475a; border-radius: 6px; background: #1e1f29; color: #f8f8f2; font: inherit; }
#prompt input:focus-visible { outline: 2px solid #bd93f9; outline-offset: 1px; border-color: #bd93f9; }
#prompt .create .hint { margin-bottom: 4px; }
