/* Ouiwey Vision landing screen for Splat Island Siege (same layout as the site's other games). */
#ovl{--gold:#ffc34d;--ink:#06120c;--hero:#ffc34d;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);position:fixed;inset:0;z-index:900;display:flex;flex-direction:column;align-items:center;overflow-y:auto;padding:calc(var(--sat) + 12px) 16px calc(var(--sab) + 16px);color:#fff;font-family:Orbitron,system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(#06120cd9,#06120c55 32%,#06120ce6),url(assets/expedition/rainforest.webp) center/cover #06120c;-webkit-user-select:none;user-select:none}
#ovl[hidden]{display:none}
#ovl button{font-family:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#ovl .top{width:100%;max-width:440px;display:flex;justify-content:space-between;align-items:center}
#ovl .back{color:#fff;text-decoration:none;font-weight:700;font-size:11px;letter-spacing:.14em;padding:10px 12px;border-radius:99px;background:#0009;border:1px solid #ffffff2e}
#ovl .rnd{width:42px;height:42px;border-radius:50%;background:#0009;border:1px solid #ffffff2e;font-size:19px;line-height:1}
#ovl .rnd.off{opacity:.4;text-decoration:line-through}
#ovl .col{width:100%;max-width:440px;display:flex;flex-direction:column;align-items:center;flex:1 0 auto}
#ovl .logo{margin:4px 0 0;width:100%;text-align:center}
#ovl .logo img{width:min(96%,420px,calc(30vh*1.5));display:block;margin:0 auto;filter:drop-shadow(0 8px 20px #000c)}
#ovl .tag{margin:4px 0 0;font-weight:700;font-size:clamp(8px,2.5vw,10.5px);letter-spacing:.12em;white-space:nowrap;color:#e6ffe9;text-align:center;text-shadow:0 2px 6px #000}
#ovl .pill{margin-top:12px;padding:9px 16px;border-radius:99px;background:#0009;border:1px solid #ffc34d77;font-weight:700;font-size:10.5px;letter-spacing:.14em}
#ovl .pill b{color:var(--gold)}
#ovl .sel{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px}
#ovl .arw{width:48px;height:76px;font-size:38px;font-weight:900;background:none;border:0;color:var(--gold);text-shadow:0 0 12px #ffc34d88}
#ovl .arw:active{transform:scale(.85)}
#ovl .card{flex:0 1 220px;text-align:center;padding:8px 8px 10px;border-radius:18px;background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--hero) 32%,transparent),#0c1d14d9 70%);border:1.5px solid var(--hero);box-shadow:0 0 26px color-mix(in srgb,var(--hero) 45%,transparent);touch-action:pan-y}
#ovl .card img{height:clamp(84px,15vh,150px);display:block;margin:0 auto;animation:ovlbob 2.4s ease-in-out infinite;filter:drop-shadow(0 10px 16px #000b)}
#ovl .nm{font-weight:900;font-size:19px;letter-spacing:.1em;color:var(--hero);text-shadow:0 0 12px color-mix(in srgb,var(--hero) 60%,transparent)}
#ovl .ix{font:700 10px system-ui,sans-serif;letter-spacing:.24em;color:#d4f5dc;margin-top:3px}
#ovl .btns{width:100%;display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:14px}
#ovl .btn{width:min(100%,330px);padding:13px 14px;border-radius:99px;font-weight:900;letter-spacing:.14em;font-size:13px;background:#0c1d14d9;border:1.5px solid #ffc34d99}
#ovl .btn.pri{font-size:21px;padding:15px;color:#2a1200;border:0;background:linear-gradient(#ffe89a,#ffc34d 50%,#ff9a2d);box-shadow:0 5px 0 #a8500f,0 0 34px #ffc34d88;animation:ovlglow 1.6s ease-in-out infinite}
#ovl .btn.pri[disabled]{filter:saturate(.4) brightness(.8);animation:none}
#ovl .btn:active{transform:translateY(3px) scale(.98)}
#ovl .btn.sm{width:auto;padding:9px 16px;font-size:10.5px;border-color:#ffffff33;background:#0009}
#ovl .best{margin-top:12px;font-weight:700;font-size:11px;letter-spacing:.22em;color:var(--gold);text-shadow:0 2px 6px #000}
@keyframes ovlglow{50%{box-shadow:0 5px 0 #a8500f,0 0 52px #ffc34dcc}}
@keyframes ovlbob{50%{transform:translateY(-6px)}}
@media (max-height:700px){#ovl .logo img{width:min(80%,calc(24vh*1.5))}#ovl .card img{height:11vh}#ovl .btns{margin-top:10px}}
@media (prefers-reduced-motion:reduce){#ovl .card img,#ovl .btn.pri{animation:none}}
/* In-game: menu button on the game-over screen, music toggle beside SFX */
#ovlMenu{margin-top:8px}
#ovlMenu[hidden]{display:none}
/* keep the game's own h1/img/button rules out of the landing screen */
#ovl h1.logo{font-size:0;line-height:0;margin:2px 0 0;padding:0;max-width:none;letter-spacing:0}
#ovl .logo img{width:auto;height:auto;max-width:96%;max-height:min(30vh,280px);object-fit:contain}
#ovl .card img{width:auto;max-width:100%;object-fit:contain}
#ovl p{margin-left:0;margin-right:0;max-width:none}
@media (max-height:700px){#ovl .logo img{max-height:22vh}}
/* result of the last run, shown when the landing screen comes back after game over */
#ovl .res{margin-top:10px;padding:8px 18px;border-radius:14px;background:#000a;border:1px solid #ffc34d77;text-align:center;font-weight:700;font-size:11px;letter-spacing:.18em;color:#e6ffe9}
#ovl .res[hidden]{display:none}
#ovl .res b{display:block;margin-top:4px;font-size:15px;letter-spacing:.08em;color:var(--gold)}
