/* First-start questions (js/onboarding.js): full screen above the game library. */
body.onboarding-open{overflow:hidden}
.onboarding-layer{position:fixed;inset:0;z-index:9000;background:#f7fbff;display:flex;justify-content:center;overflow-y:auto;-webkit-overflow-scrolling:touch}
.onb-card{width:100%;max-width:520px;min-height:100%;display:flex;flex-direction:column;padding:calc(var(--sneey-safe-top,env(safe-area-inset-top,0px)) + 28px) 24px calc(var(--sneey-safe-bottom,env(safe-area-inset-bottom,0px)) + 22px);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#101927}
.onb-head{text-align:center}
.onb-logo{font-weight:900;font-size:24px;letter-spacing:.5px;color:#26313c}
.onb-bar{display:flex;gap:6px;justify-content:center;margin-top:6px}
.onb-bar i{display:block;width:70px;height:5px;border-radius:9px;background:#ff5757}
.onb-bar i+i{background:#10c8ef}
.onb-dots{display:flex;gap:8px;justify-content:center;margin-top:22px}
.onb-dots i{width:9px;height:9px;border-radius:9px;background:#cfd8e3;transition:width .2s}
.onb-dots i.on{width:26px;background:#26313c}
.onb-body{flex:1;display:flex;flex-direction:column;padding-top:18px}
.onb-emoji{font-size:54px;text-align:center;line-height:1.1}
.onb-body h2{margin:10px 0 0;font-size:clamp(24px,7vw,30px);font-weight:900;text-align:center;line-height:1.15}
.onb-sub{margin:8px 0 0;color:#5b6b7a;text-align:center;font-size:15px;line-height:1.4}
.onb-name{margin-top:26px;width:100%;background:#fff;border:3px solid #26313c;border-radius:18px;padding:16px 18px;font:800 22px/1.2 inherit;color:#101927;box-shadow:0 6px 0 #26313c;outline:none}
.onb-name:focus{border-color:#10c8ef;box-shadow:0 6px 0 #10c8ef}
.onb-note{margin:14px 0 0;font-size:12px;color:#7b8a98;text-align:center}
.onb-ages{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.onb-age{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:3px solid #dfe7ef;border-radius:18px;padding:15px 18px;color:#26313c;cursor:pointer;text-align:start}
.onb-age b{font-size:20px;font-weight:800}
.onb-age small{font-size:13px;color:#7b8a98;font-weight:700}
.onb-age.sel{border-color:#10c8ef;background:#e6f9ff;box-shadow:0 5px 0 #10c8ef}
.onb-games{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.onb-game{position:relative;padding:0;border:3px solid #fff;border-radius:16px;overflow:hidden;background:#26313c;box-shadow:0 3px 10px rgba(0,0,0,.08);cursor:pointer}
.onb-game img{display:block;width:100%;height:clamp(56px,15vw,84px);object-fit:cover}
.onb-game span{display:block;padding:6px 4px;font-size:12px;font-weight:900;color:#fff;letter-spacing:.3px}
.onb-game.sel{border-color:#ff5757;box-shadow:0 0 0 3px #ff5757}
.onb-game.sel::after{content:"✓";position:absolute;top:6px;inset-inline-end:6px;width:24px;height:24px;border-radius:50%;background:#ff5757;color:#fff;font-weight:900;font-size:14px;display:grid;place-items:center}
.onb-foot{display:flex;flex-direction:column;gap:10px;padding-top:18px}
.onb-next{border:0;border-radius:20px;padding:17px;background:#ffd11a;color:#101927;font-weight:900;font-size:21px;box-shadow:0 6px 0 #c9a200;cursor:pointer}
.onb-next:active{transform:translateY(3px);box-shadow:0 3px 0 #c9a200}
.onb-skip{border:0;background:none;color:#5b6b7a;font-weight:800;font-size:15px;padding:8px;cursor:pointer}
.onb-card button:focus-visible{outline:3px solid #10c8ef;outline-offset:3px}
@media(min-width:700px){.onb-games{grid-template-columns:repeat(4,1fr)}}

/* Home greeting with the player's name: may wrap to two lines instead of running under the decoration. */
.welcome-panel h1.has-player-name{white-space:normal;text-wrap:balance;overflow-wrap:anywhere;line-height:1.08;font-size:clamp(20px,5.2vw,40px);position:relative;z-index:1}
