/* Loading shell of the browser game (/play/): the site's sticker look. No inline styles (strict CSP). */
@font-face { font-family: "Bagel Fat One"; src: url("/fonts/bagel-latin.woff2") format("woff2"); font-display: swap; }
:root { --ink: #1b0b2c; --cream: #fff7e4; --yellow: #ffe14d; --pink: #ff4fa3; --cyan: #3fd8ff; --violet: #6a3dbf; --display: "Bagel Fat One", "Rubik", "Segoe UI", system-ui, sans-serif; }
* { 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: 16px; background: var(--ink); transition: opacity .5s ease; z-index: 5; overflow: auto; touch-action: auto; }
#shell.done { opacity: 0; pointer-events: none; }
.swirl { position: absolute; inset: -30%; background: conic-gradient(from 0deg, #ff4fa3, #ffe14d, #3fd8ff, #6a3dbf, #ff4fa3); opacity: .5; filter: blur(26px) saturate(1.2); animation: turn 40s linear infinite; }
.swirl::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(27,11,44,.55), rgba(27,11,44,.92) 70%); }
@keyframes turn { to { transform: rotate(360deg); } }
.card { position: relative; width: min(460px, 100%); text-align: center; padding: 28px 22px 22px; background: rgba(27,11,44,.82); border: 4px solid var(--cream); border-radius: 18px; box-shadow: 0 8px 0 var(--ink), 0 0 0 4px var(--ink); }
.logo { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 16vw, 92px); line-height: 1; letter-spacing: .02em; color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.tag { display: inline-block; margin: 14px 0 20px; padding: 6px 14px; font-family: var(--display); font-size: 15px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 8px; transform: rotate(-1.5deg); }
.bar { height: 22px; 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: 10px 0 0; font-size: 15px; opacity: .9; min-height: 1.4em; }
.age { margin: 16px 0 0; font-size: 13px; line-height: 1.4; opacity: .8; }
.age b { direction: ltr; unicode-bidi: isolate; display: inline-block; padding: 1px 7px; margin-inline-end: 4px; border: 2px solid var(--cream); border-radius: 6px; font-family: var(--display); font-weight: 400; }
.app { margin-top: 18px; padding-top: 16px; border-top: 2px dashed rgba(255,247,228,.35); }
.app p { margin: 0 0 10px; font-size: 15px; }
.gplay { display: inline-block; line-height: 0; border-radius: 12px; }
.gplay img { height: 56px; width: auto; }
.soon { margin: 10px 0 0 !important; font-size: 14px !important; opacity: .8; }
.soon i { font-style: normal; color: var(--yellow); }
.err h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 18px 0 8px; color: var(--pink); }
.err p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.btn { display: inline-block; margin: 4px; font-family: var(--display); font-size: 18px; color: var(--ink); background: var(--cream); border: 4px solid var(--ink); border-radius: 12px; padding: 10px 18px; text-decoration: none; box-shadow: 0 5px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
[hidden] { display: none !important; }
html[lang="he"] .logo, html[lang="ar"] .logo { direction: ltr; }
@media (prefers-reduced-motion: reduce) { .swirl { animation: none; } .fill { transition: none; } }
#appbar { position: fixed; z-index: 5; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(27,11,44,.94); color: var(--cream); font-size: 14px; line-height: 1.25; border-top: 3px solid var(--ink); }
#appbar .gplay img { height: 40px; width: auto; }
#appbar span { flex: 1; min-width: 0; }
#appbar button { flex: none; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: var(--cream); background: transparent; border: 0; cursor: pointer; }

/* Kaivo Kids loading page: the two-word logo is smaller so "KIDS" never touches the bar */
body[data-edition="kids"] .logo { font-size: clamp(40px, 11vw, 64px); line-height: 1.05; margin-bottom: 18px; }
