/* ══════════════════════════════════════════════════════════════════════
   play-lobby.css — the ONE shared game lobby for every /play game.
   ----------------------------------------------------------------------
   Stage layout (cover + Play on one side, a mode rail with one-line
   descriptions on the other), on the locked Rocko's World brand, over a
   bright candy-pop backdrop. Glossy cards sit on a frosted panel so the
   art never fights the text. A Home ball is ALWAYS present (top-left) —
   that is the fix for the old "trapped lobby" (no way back before Play).

   HOW TO ADOPT (per game):
     1. <link rel="stylesheet" href="/play/_shared/play-lobby.css?v=b425bf9">
        (after the game's own inline <style>, so .rl wins the cascade)
     2. give the start overlay the class  rl  (keep its id + show/hide code)
     3. use the .rl-* markup — see rocko-blocks/index.html for the template.
   Every rule is scoped under .rl / .rl .rl-* so it beats a game's own
   start-screen rules without !important.

   SWAPPABLE ART: the backdrop below is a code-drawn candy-pop stand-in.
   To drop in a real DALL·E backdrop later, add class  has-art  and set
   --rl-art:url(/play/<game>/lobby.webp) on the overlay — no other change.
   ═══════════════════════════════════════════════════════════════════ */

.rl{position:fixed;inset:0;z-index:5;display:block;overflow-y:auto;overflow-x:hidden;padding:0;text-align:left;
  -webkit-backdrop-filter:none;backdrop-filter:none;-webkit-overflow-scrolling:touch;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(1000px 540px at 50% 122%, #7fe08c 0%, #7fe08c 20%, transparent 56%),
    radial-gradient(240px 240px at 81% 13%, #ffd84d 0%, #ffcf3a 55%, transparent 62%),
    radial-gradient(520px 320px at 16% 22%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(180deg,#79d6ff 0%,#bfeaff 38%,#ffd4ee 100%);}
.rl.has-art{background-image:var(--rl-art);background-size:cover;background-position:center;}
.rl::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.5) 2px, transparent 3px);background-size:30px 30px;
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 52%);mask-image:linear-gradient(180deg,#000,transparent 52%);}

/* Home — always present (kills the trapped-lobby bug) */
.rl .rl-home{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:12px;z-index:9;
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#2a1510;
  border:3px solid #241019;text-decoration:none;
  background:linear-gradient(180deg,#ffe49a,#ffc93c 55%,#e0a21f);
  box-shadow:0 4px 0 #241019,inset 0 2px 0 rgba(255,255,255,.6);}
.rl .rl-home:active{transform:translateY(2px);box-shadow:0 2px 0 #241019;}
.rl .rl-home svg{width:24px;height:24px;fill:currentColor;}

/* frosted content panel */
.rl .rl-panel{position:relative;z-index:1;max-width:560px;
  margin-block:calc(env(safe-area-inset-top,0px) + 64px) calc(env(safe-area-inset-bottom,0px) + 22px);
  margin-inline:12px;border-radius:26px;padding:16px 16px 18px;
  background:rgba(255,255,255,.76);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:3px solid rgba(255,255,255,.85);
  box-shadow:0 20px 44px rgba(90,45,85,.24),inset 0 2px 0 rgba(255,255,255,.9);}
@media(min-width:720px){.rl .rl-panel{margin-inline:auto;}}

/* Stage: hero + rail (stacks on phone, splits on desktop) */
.rl .rl-stage{display:flex;flex-direction:column;gap:14px;}
.rl .rl-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;}
.rl .rl-cover{width:min(188px,56%);aspect-ratio:1;border-radius:20px;overflow:hidden;border:4px solid #241019;
  display:grid;place-items:center;background:linear-gradient(150deg,#3a0b5e,#9a3ec8 60%,#ff9ec9);
  box-shadow:0 8px 0 #241019,0 16px 28px rgba(0,0,0,.3),inset 0 3px 0 rgba(255,255,255,.18);}
.rl .rl-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.rl .rl-cover .rl-mono{font-family:'Luckiest Guy','Lilita One',system-ui,sans-serif;color:#fff;font-size:2.2rem;
  -webkit-text-stroke:2px rgba(0,0,0,.35);paint-order:stroke fill;}
.rl .rl-kick{font-family:'Lilita One',system-ui,sans-serif;font-size:.66rem;letter-spacing:.14em;
  text-transform:uppercase;color:#d9449b;margin-top:10px;}
.rl .rl-title{font-family:'Luckiest Guy','Lilita One',system-ui,sans-serif;font-weight:400;line-height:.92;margin:3px 0 0;
  font-size:2rem;color:#2a1630;-webkit-text-stroke:2px #fff;paint-order:stroke fill;
  text-shadow:0 3px 0 rgba(90,45,85,.18);text-transform:none;background:none;-webkit-background-clip:border-box;letter-spacing:.5px;}
.rl .rl-play{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;margin-top:13px;
  font-family:'Lilita One',system-ui,sans-serif;font-weight:400;letter-spacing:.5px;color:#fff;border:4px solid #241019;
  border-radius:999px;padding:13px 30px;font-size:1.1rem;-webkit-text-stroke:.6px #241019;paint-order:stroke fill;
  width:100%;max-width:300px;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 46%),linear-gradient(180deg,#ff9166 0%,#ef4330 46%,#c62716 100%);
  box-shadow:0 7px 0 #241019,0 14px 22px rgba(198,39,22,.4),inset 0 3px 0 rgba(255,255,255,.5),inset 0 -5px 0 rgba(0,0,0,.22);}
.rl .rl-play:active{transform:translateY(5px);box-shadow:0 2px 0 #241019,inset 0 3px 0 rgba(255,255,255,.4);}
.rl .rl-play svg{width:20px;height:20px;fill:#fff;}
.rl .rl-psub{color:#7c5a88;font-size:.84rem;font-weight:800;margin-top:7px;}

.rl .rl-railwrap{min-width:0;}
.rl .rl-rail{display:flex;flex-direction:column;gap:8px;}
.rl .rl-sec{font-family:'Lilita One',system-ui,sans-serif;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;
  color:#8a5a86;margin:10px 2px 2px;display:flex;align-items:center;gap:8px;}
.rl .rl-sec::after{content:"";flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(138,90,134,.4),transparent);}
.rl .rl-mode{display:flex;align-items:center;gap:11px;cursor:pointer;width:100%;text-align:left;
  padding:10px 12px;border-radius:14px;background:rgba(90,45,85,.06);border:2px solid rgba(90,45,85,.14);
  font-family:inherit;transition:border-color .14s,background .14s,transform .08s;}
.rl .rl-mode:hover{border-color:#ff6fb0;background:rgba(255,111,176,.1);}
.rl .rl-mode:active{transform:translateY(1px);}
.rl .rl-mt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.rl .rl-mt b{font-family:'Lilita One',system-ui,sans-serif;font-weight:400;font-size:.98rem;letter-spacing:.2px;color:#2a1630;}
.rl .rl-md{font-size:.76rem;font-weight:700;line-height:1.3;color:#7c5a88;}
.rl .rl-go{width:26px;height:26px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  background:rgba(255,111,176,.16);border:2px solid rgba(255,111,176,.42);}
.rl .rl-go svg{width:13px;height:13px;fill:#e0458f;}

/* glossy icon bubbles */
.rl .rl-bub{position:relative;flex:0 0 auto;width:40px;height:40px;border-radius:999px;display:grid;place-items:center;
  border:3px solid #241019;box-shadow:0 3px 0 #241019,inset 0 2px 0 rgba(255,255,255,.55);
  background:linear-gradient(180deg,#ffe49a,#ffc93c 55%,#e0a21f);}
.rl .rl-bub svg{position:relative;z-index:1;width:21px;height:21px;fill:#fff;filter:drop-shadow(0 1px 0 rgba(0,0,0,.3));}
.rl .rl-bub.b-sky{background:linear-gradient(180deg,#a7e8ff,#3bb4ef 50%,#1d7cc6);}
.rl .rl-bub.b-red{background:linear-gradient(180deg,#ff9166,#ef4330 50%,#c62716);}
.rl .rl-bub.b-grape{background:linear-gradient(180deg,#cdb6ff,#8a7bff 50%,#6a4de0);}
.rl .rl-bub.b-lime{background:linear-gradient(180deg,#d8f29e,#9ad54f 50%,#5fae2f);}
.rl .rl-bub.b-amber{background:linear-gradient(180deg,#ffd49a,#ff9e2c 50%,#e07a1f);}

/* opt-in toggle (checkbox) */
.rl .rl-opt{display:flex;align-items:center;gap:11px;cursor:pointer;margin-top:4px;padding:10px 12px;border-radius:14px;
  background:rgba(185,140,255,.12);border:2px solid rgba(185,140,255,.3);color:#2a1630;font-size:.8rem;font-weight:700;line-height:1.3;}
.rl .rl-opt input{width:20px;height:20px;flex:0 0 auto;accent-color:#9a5bff;cursor:pointer;margin:0;}
.rl .rl-opt b{color:#7a3ad0;}

/* how-to + controls */
.rl .rl-how{display:inline-flex;align-items:center;gap:8px;cursor:pointer;align-self:flex-start;
  font-family:'Lilita One',system-ui,sans-serif;font-size:.82rem;letter-spacing:.3px;color:#0f6c8a;
  background:rgba(15,108,138,.1);border:2px solid rgba(15,108,138,.34);border-radius:999px;padding:9px 18px;}
.rl .rl-how svg{width:16px;height:16px;fill:#0f6c8a;}
.rl .rl-controls{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px;}
.rl .rl-ctag{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:800;color:#7c5a88;
  background:rgba(90,45,85,.06);border:2px solid rgba(90,45,85,.14);border-radius:9px;padding:5px 10px;}
.rl .rl-ctag svg{width:13px;height:13px;fill:#d9449b;flex:0 0 auto;}
.rl .rl-status{margin-top:10px;font-size:.8rem;font-weight:700;color:#7c5a88;line-height:1.4;}
.rl .rl-status b{color:#c2366b;}

/* desktop: Stage splits cover | rail */
@media(min-width:720px){
  .rl .rl-panel{max-width:860px;padding:22px 24px;}
  .rl .rl-stage{flex-direction:row;align-items:flex-start;gap:26px;}
  .rl .rl-hero{flex:0 0 42%;position:sticky;top:0;}
  .rl .rl-railwrap{flex:1;}
  .rl .rl-cover{width:min(230px,80%);}
  .rl .rl-title{font-size:2.4rem;}
  .rl .rl-how{align-self:flex-start;}
}
