/* PRESENTATION LAB: landing card (welcome popup). Title panel above, a calm panel below with three small animated pictures and one button. Lab only. */
body.labwel header.top,body.labwel #hud2,body.labwel #hudBar{opacity:0!important;pointer-events:none!important}
#ov.labwel{position:fixed!important;inset:0;z-index:30;flex:none!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:calc(env(safe-area-inset-top,0px) + 76px) 20px 150px;background:linear-gradient(rgba(6,10,18,.18),rgba(6,10,18,.5));-webkit-backdrop-filter:none;backdrop-filter:none}
#ov.labwel .card,#labTitle{width:min(100%,350px);max-width:350px;box-sizing:border-box;border-radius:20px;background:rgba(8,12,20,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 10px 40px rgba(0,0,0,.35);color:#fff;overflow:visible}
#ov.labwel .card{flex:none!important;min-height:0;height:auto;padding:20px 18px 18px;max-height:none!important;display:block}
#ov.labwel #ovB{display:block;overflow:visible}
#ov:not(.labwel) #labTitle{display:none}
#labTitle{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 18px;font-family:"Zilla Slab",Georgia,serif;font-weight:700;font-size:2rem;letter-spacing:-.01em;line-height:1;flex:none}
#labTitle svg{width:48px;height:29px;color:#ffb560;flex:none}
#ov.labwel .wlogo{display:flex;justify-content:center;align-items:center;gap:12px;font-size:2.7rem;color:#ffb560;margin:2px 0 4px}
#ov.labwel .wlogo svg{width:64px;height:39px}
#ov.labwel .wlogo span{color:#fff}
#ov.labwel .card p{color:rgba(255,255,255,.75)}
#ov.labwel .card p.whello{margin:14px 0 0;font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:rgba(255,255,255,.65)}
#ov.labwel .card .wsimple p.wpeak{margin:8px 0 0;color:#fff;font-size:1.7rem}
#ov.labwel .card .wsimple p.wsub{margin:4px 0 0;font-size:.95rem;color:rgba(255,255,255,.8)}
#ov.labwel .card .wsimple p.wline{display:none}
#ov.labwel .btns button{background:#d9812c;border:1px solid #e6963f;color:#1b1206;font-weight:700;letter-spacing:.1em;text-transform:uppercase;border-radius:14px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
#ov.labwel .btns button.alt2{background:rgba(255,159,67,.14);border-color:rgba(255,190,110,.5);color:#fff}
/* the two pictures: 1 SPELL (letters in a row), 2 CLIMB then SUMMIT (one mountain, the caption swaps) */
.lsteps{display:flex;gap:4px;margin:22px 0 6px}
.lsteps>.c1{flex:1.6 1 0}.lsteps>.c2{flex:1 1 0}
.lsteps>div{min-width:0;text-align:center}
.lsteps svg{width:100%;height:auto;display:block;overflow:visible}
.lsteps .cap{display:grid;margin-top:8px}
.lsteps .cap>div{grid-area:1/1}
.lsteps b{display:block;font:700 .78rem system-ui,sans-serif;letter-spacing:.14em;color:#fff}
.lsteps span{display:block;margin-top:2px;font:.74rem system-ui,sans-serif;color:#ffcf6b;min-height:2.4em;line-height:1.2}
.lsteps>i{flex:none;align-self:center;font-style:normal;color:rgba(255,255,255,.35);font-size:1.2rem;margin-top:-34px}
.lsteps .c1,.lsteps .c2{opacity:0;animation-duration:10s;animation-iteration-count:infinite;animation-timing-function:ease}
.lsteps .c1{animation-name:lsC1}.lsteps .c2{animation-name:lsC2}
@keyframes lsC1{0%{opacity:0}3%,94%{opacity:1}98%,100%{opacity:0}}
@keyframes lsC2{0%,26%{opacity:0}30%,94%{opacity:1}98%,100%{opacity:0}}
/* SPELL: C, A and T appear together, then the line is traced through them */
.lsteps .tl{transform-box:fill-box;transform-origin:center;animation:lsPop 10s infinite}
@keyframes lsPop{0%,3%{transform:scale(.4);opacity:0}9%{transform:scale(1.08);opacity:1}12%,100%{transform:scale(1);opacity:1}}
.lsteps .trace{stroke-dasharray:140;stroke-dashoffset:140;animation:lsTrace 10s infinite}
@keyframes lsTrace{0%,14%{stroke-dashoffset:140}26%,100%{stroke-dashoffset:0}}
/* CLIMB: the dot walks up the side; the caption swaps to SUMMIT; the dot carries on to the top; the flag appears */
.lsteps .dot{animation:lsDot 10s infinite}
@keyframes lsDot{0%,31%{transform:translate(0,0);opacity:1}50%,54%{transform:translate(28.4px,-33.6px);opacity:1}68%,72%{transform:translate(43.1px,-51px);opacity:1}76%,100%{transform:translate(43.1px,-51px);opacity:0}}
.lsteps .cl{animation:lsCl 10s infinite}.lsteps .sm{opacity:0;animation:lsSm 10s infinite}
@keyframes lsCl{0%,50%{opacity:1}54%,100%{opacity:0}}
@keyframes lsSm{0%,50%{opacity:0}54%,96%{opacity:1}100%{opacity:0}}
.lsteps .pole,.lsteps .cloth{transform-box:fill-box;animation-duration:10s;animation-iteration-count:infinite;transform:scale(0)}
.lsteps .pole{transform-origin:50% 100%;animation-name:lsPole}
.lsteps .cloth{transform-origin:0 50%;animation-name:lsCloth}
@keyframes lsPole{0%,72%{transform:scaleY(0)}78%,100%{transform:scaleY(1)}}
@keyframes lsCloth{0%,78%{transform:scaleX(0)}84%,100%{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.lsteps .c1,.lsteps .c2{animation:none;opacity:1}.lsteps .tl,.lsteps .dot,.lsteps .cl{animation:none}.lsteps .sm{display:none;animation:none}.lsteps .trace{animation:none;stroke-dashoffset:0}.lsteps .dot{opacity:0}.lsteps .pole,.lsteps .cloth{animation:none;transform:none}}

/* above and below the card: profile, streak and date on top; leaderboard, friends, badges, options below; ad banner space at the very bottom */
#labTop,#labDock{display:none}
#ov.labdock #labTop{display:flex;position:absolute;left:14px;right:14px;top:calc(env(safe-area-inset-top,0px) + 14px);align-items:center;gap:8px;z-index:2}
#labTop .lgrow{flex:1}
#labTop .lprof,#labTop .lchip{background:rgba(8,12,20,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:999px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);color:#fff;border:0;font:inherit}
#labTop .lprof{display:flex;align-items:center;gap:8px;padding:4px 14px 4px 4px;text-align:left;cursor:pointer;max-width:55%;min-width:0}
#labTop .lprof .pn{display:block;min-width:0;line-height:1.15}
#labTop .lprof .pn b{display:block;font-weight:600;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#labTop .lprof .pn small{display:block;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:#ffcf6b}
#labTop .lprof .vtag{font-size:.6rem;font-weight:700;color:#1b1206;background:#ffcf6b;border-radius:6px;padding:1px 5px}
#labTop .lchip{display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
#labTop .ldate{cursor:default}
#ov.labdock #labDock{display:flex;position:absolute;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 16px);width:min(calc(100% - 40px),350px);box-sizing:border-box;gap:4px;padding:14px 10px 10px;border-radius:20px;background:rgba(8,12,20,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 10px 40px rgba(0,0,0,.35);z-index:2}
#labDock button{flex:1;background:none!important;border:0!important;box-shadow:none!important;margin:0;color:rgba(255,255,255,.78);font:.62rem system-ui,sans-serif;letter-spacing:.12em;cursor:pointer;padding:0;min-width:0}
#labDock button i{position:relative;display:flex;width:42px;height:42px;margin:0 auto 6px;border-radius:14px;background:rgba(255,255,255,.09);align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);color:#fff;font-style:normal}
#labDock button i svg{width:22px;height:22px}
#labDock button i u{display:none;position:absolute;right:5px;top:5px;width:9px;height:9px;border-radius:50%;background:#ff9f43;text-decoration:none}
/* the ad banner sits under everything, as in the game; the dock and card make room for it when it is showing */
#ov.labdock #adWelcome{position:absolute;left:0;right:0;bottom:0;margin:0;z-index:1}
#ov.labwel:has(#adWelcome:not([hidden])){padding-bottom:236px}
#ov.labdock:has(#adWelcome:not([hidden])) #labDock{bottom:calc(env(safe-area-inset-bottom,0px) + 90px)}
@media (max-height:700px){#ov.labwel{padding-top:calc(env(safe-area-inset-top,0px) + 62px);padding-bottom:132px}#labDock button i{width:38px;height:38px;margin-bottom:3px}#ov.labwel .wlogo{font-size:2.2rem}}

/* the icon row stays on screen while Ranks, Badges, Friends or Options is open; the card makes room for it */
#ov.labpanel.labdock{padding-top:calc(env(safe-area-inset-top,0px) + 70px);padding-bottom:150px}
#ov.labpanel.labdock .card{max-height:calc(100vh - 70px - 150px)!important}
#ov.labpanel.labdock:has(#adWelcome:not([hidden])){padding-bottom:236px}
#labDock button.on{color:#ffcf6b}
#labDock button.on i{background:rgba(255,159,67,.25);box-shadow:inset 0 0 0 1.5px #ffb560}
@media (max-height:700px){#ov.labpanel.labdock{padding-bottom:132px}#ov.labpanel.labdock .card{max-height:calc(100vh - 70px - 132px)!important}}
/* on wide windows the game is a 480px column: keep every landing/panel layer (profile, date, card, icon row, ad space) inside that frame */
#ov.labwel,#ov.labpanel{left:50%!important;right:auto!important;width:min(100%,480px)!important;transform:translateX(-50%)}

/* landing card: no scrolling, gap kept above the icon row, ad centred */
#ov.labwel .card,#ov.labwel #ovB{overflow:hidden!important}
#ov.labdock #adWelcome{left:50%!important;right:auto!important;transform:translateX(-50%);width:320px;max-width:100%;bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important;text-align:center}
#ov.labdock:has(#adWelcome:not([hidden])) #labDock{bottom:calc(env(safe-area-inset-bottom,0px) + 94px)}
#ov.labwel .card.lw1 .lsteps{margin:10px 0 2px}
#ov.labwel .card.lw1 .lsteps svg{max-height:62px}
#ov.labwel .card.lw1 .wlogo{font-size:2.2rem;margin:0}
#ov.labwel .card.lw1 p.whello{margin:8px 0 0}
#ov.labwel .card.lw1 .wsimple p.wpeak{font-size:1.45rem;margin:4px 0 0}
#ov.labwel .card.lw2 .lsteps span{display:none}
#ov.labwel .card.lw2 .lsteps{margin:6px 0 0}
#ov.labwel .card.lw2 .wlogo svg{width:48px;height:29px}
#ov.labwel .card.lw3 .lsteps{display:none}
/* the end-of-climb banner belongs to the end panel only: never show it behind the home screen or any card */
body.ovopen #adEnd,body.labwel #adEnd{display:none!important}
