/* Loading cover of the browser game (/play/). Own look: ink, yellow, pink. No inline styles needed. */
:root { --ink: #1a0f33; --cream: #fff4dc; --yellow: #ffe600; --pink: #ff3d9a; --cyan: #3de6ff; --violet: #2a1170; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--cream); }
#canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; outline: none; }
#shell { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: linear-gradient(180deg, #0a0840 0%, #2a1170 55%, #8a2fb0 85%, #ff5fa8 100%); transition: opacity .5s ease; z-index: 5; overflow: auto; touch-action: auto; }
#shell.done { opacity: 0; pointer-events: none; }
.glow { position: absolute; left: 50%; bottom: -30vmin; width: 90vmin; height: 90vmin; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffe600 0%, #ff8a5f 40%, rgba(255,95,168,0) 70%); opacity: .55; }
.card { position: relative; width: min(420px, 100%); text-align: center; padding: 18px 20px 16px; background: rgba(26,15,51,.86); border: 4px solid var(--cream); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.logo { margin: 0 0 14px; font-weight: 900; font-size: clamp(30px, 9vw, 52px); line-height: 1; letter-spacing: .01em; color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.bar { height: 20px; background: var(--ink); border: 3px solid var(--cream); border-radius: 12px; overflow: hidden; }
.fill { height: 100%; width: 3%; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan)); border-radius: 9px; transition: width .25s ease; }
.status { margin: 8px 0 0; font-size: 15px; opacity: .92; min-height: 1.4em; }
.age { margin: 10px 0 0; font-size: 12px; line-height: 1.4; opacity: .8; }
.age b { direction: ltr; unicode-bidi: isolate; display: inline-block; padding: 1px 6px; margin-inline-end: 4px; border: 2px solid var(--cream); border-radius: 6px; }
.err h2 { font-weight: 900; font-size: 22px; margin: 14px 0 6px; color: var(--pink); }
.err p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.btn { display: inline-block; margin: 4px; font-weight: 800; font-size: 17px; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 16px; text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } #shell { transition: none; } }
#rotate { position: fixed; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; padding: 24px; text-align: center; background: rgba(26,15,51,.94); touch-action: auto; }
@media (orientation: portrait) and (max-width: 700px) { #rotate:not([hidden]) { display: flex; } }
.rbox p { font-size: 18px; font-weight: 700; margin: 18px 0; }
.phone { width: 54px; height: 90px; margin: 0 auto; border: 4px solid var(--cream); border-radius: 10px; animation: turnp 2.4s ease-in-out infinite; }
@keyframes turnp { 0%, 25% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; transform: rotate(-90deg); } }
button.btn { font-family: inherit; cursor: pointer; }
