/* Start screen styles load independently of JavaScript and game startup. */
@font-face { font-family: Outfit; src: url('/fonts/outfit-latin-variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: optional; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #030712; color: #f8fafc; font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.welcome-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; background: rgba(3,7,18,.85); z-index: 200; }
.welcome-card { position: relative; isolation: isolate; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; background: rgba(15,23,42,.96); border: 1px solid #38bdf859; border-radius: 22px; padding: 28px 24px; text-align: center; }
.welcome-card > *:not(.welcome-shooting-stars) { position: relative; z-index: 1; flex-shrink: 0; }
.welcome-shooting-stars { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.welcome-title { font-size: 1.9rem; font-weight: 900; letter-spacing: 1px; margin: 0; color: #b9f3ff; }
.welcome-icon img { width: 76px; height: 76px; border-radius: 18px; }
.welcome-creator { color: #94a3b8; font-size: .85rem; }
.welcome-library-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 7px; margin-top: -6px; font-size: .72rem; line-height: 1.4; color: #64748b; }
.welcome-library-nav a { color: #94a3b8; text-decoration: none; transition: color .2s ease; }
.welcome-library-nav a:hover, .welcome-library-nav a:focus-visible { color: #bae6fd; text-decoration: underline; }
.guide-error { max-width: 620px; margin: 12vh auto; padding: 28px; line-height: 1.7; }
.guide-error a { color: #7dd3fc; }
@media(max-width:500px) { .welcome-overlay { padding: 10px; } .welcome-card { max-height: calc(100dvh - 24px); padding: 20px 16px; gap: 12px; } }
@media(prefers-reduced-motion:reduce) { .welcome-card { animation: none!important; } }
