*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:#07060d;color:#f4efff;font:15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}
#cv{position:fixed;inset:0;width:100%;height:100%;display:block}
button{font:inherit;color:inherit;cursor:pointer;border:0}
a{color:inherit}
[hidden]{display:none!important}

/* ---------- the HUD */
.hud{position:fixed;inset:0;touch-action:none}
.cross{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;pointer-events:none}
.cross::before,.cross::after{content:"";position:absolute;background:#fff;box-shadow:0 0 3px #000;border-radius:2px}
.cross::before{left:12px;top:2px;width:2px;height:22px}.cross::after{top:12px;left:2px;height:2px;width:22px}
.hitmark{position:absolute;inset:-4px;opacity:0;transition:opacity .15s}
.hitmark::before,.hitmark::after{content:"";position:absolute;left:50%;top:50%;width:30px;height:3px;margin:-1.5px 0 0 -15px;background:#ffd84d;transform:rotate(45deg);box-shadow:0 0 4px #000}
.hitmark::after{transform:rotate(-45deg)}
.hitmark.on{opacity:1;transition:none}.hitmark.big::before,.hitmark.big::after{background:#ff4fb8}
.flash{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px 30px rgba(255,60,120,.7);opacity:0;transition:opacity .35s}
.flash.on{opacity:1;transition:none}
.fog-tint{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle,rgba(120,40,200,.12),rgba(90,20,160,.55));opacity:0;transition:opacity .4s}
.fog-tint.on{opacity:1}

.tl{position:absolute;left:0;top:0;display:flex;gap:10px;align-items:flex-start;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 0 calc(10px + env(safe-area-inset-left,0px))}
.menu-btn{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.3)!important;background:rgba(12,8,24,.6);font-size:13px;letter-spacing:-2px;flex:0 0 auto}
.stats{display:flex;flex-direction:column;gap:6px}
.hp{position:relative;width:min(42vw,200px);height:20px;border-radius:999px;background:rgba(12,8,24,.7);border:2px solid rgba(255,255,255,.35);overflow:hidden}
.hp i{position:absolute;inset:0;width:100%;background:linear-gradient(90deg,#19d37a,#7dffb2);transition:width .2s}
.hp.low i{background:linear-gradient(90deg,#ff3b5c,#ff8a7a)}
.hp b{position:relative;display:block;text-align:center;font:900 12px/16px system-ui,sans-serif;text-shadow:0 1px 2px #000}
.chips{display:flex;gap:6px}
.chip{display:flex;align-items:center;gap:4px;padding:2px 9px 2px 4px;border-radius:999px;background:rgba(12,8,24,.65);font-weight:900;font-size:14px}
.ic{display:inline-block;width:20px;height:20px;background:center/contain no-repeat}
.ic-left{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='%23c9b3ff'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z' fill='%23c9b3ff'/%3E%3C/svg%3E")}
.ic-tags{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ffd84d' stroke-width='3'/%3E%3Ccircle cx='12' cy='12' r='3.5' fill='%23ffd84d'/%3E%3C/svg%3E")}
.ic-brick{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z' fill='%238b3dff'/%3E%3Cpath d='M12 2l9 5-9 5-9-5z' fill='%23c9a4ff'/%3E%3Cpath d='M12 12v10l9-5V7z' fill='%235a1fbf'/%3E%3C/svg%3E")}
.zone{position:absolute;left:50%;top:calc(10px + env(safe-area-inset-top,0px));transform:translateX(-50%);padding:5px 14px;border-radius:999px;background:rgba(12,8,24,.65);font-weight:900;font-size:13px;white-space:nowrap}
.zone.warn{background:rgba(120,30,200,.85);animation:pulse 1s infinite alternate}
@keyframes pulse{to{box-shadow:0 0 16px rgba(201,120,255,.9)}}
.feed{position:absolute;right:calc(10px + env(safe-area-inset-right,0px));top:calc(52px + env(safe-area-inset-top,0px));display:flex;flex-direction:column;gap:3px;align-items:flex-end;pointer-events:none}
.feed div{padding:2px 8px;border-radius:8px;background:rgba(12,8,24,.6);font-size:12px;font-weight:700}
.feed div b{color:#ffd84d}
.banner{position:absolute;left:50%;top:28%;transform:translateX(-50%);font:900 clamp(26px,7vw,48px)/1 system-ui,sans-serif;letter-spacing:.06em;text-align:center;text-shadow:0 3px 0 #3b1a5e,0 0 20px rgba(201,120,255,.8);pointer-events:none;white-space:nowrap}
.banner small{display:block;margin-top:8px;font-size:15px;letter-spacing:0;font-weight:800;text-shadow:0 1px 3px #000}
.dmg-nums{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.dmg-nums b{position:absolute;font:900 20px system-ui,sans-serif;color:#ffd84d;text-shadow:0 2px 0 #4a2a00,0 0 3px #000;animation:num .8s ease-out forwards}
.dmg-nums b.head{color:#ff4fb8;font-size:24px}
@keyframes num{0%{opacity:1;transform:translate(-50%,0) scale(1.2)}100%{opacity:0;transform:translate(-50%,-46px) scale(1)}}

.stick{position:absolute;left:calc(26px + env(safe-area-inset-left,0px));bottom:calc(34px + env(safe-area-inset-bottom,0px));width:112px;height:112px;border-radius:50%;background:rgba(255,255,255,.1);border:2px solid rgba(255,255,255,.3);display:none;pointer-events:none}
.hud.touch .stick{display:block}.stick.on{background:rgba(255,255,255,.16)}
.knob{position:absolute;left:32px;top:32px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.5)}
.slots{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));display:flex;gap:6px}
.slots button{position:relative;width:58px;height:44px;border-radius:12px;background:rgba(12,8,24,.7);border:2px solid var(--r,#555)!important;display:grid;place-items:center}
.slots button.on{background:rgba(70,30,130,.9);box-shadow:0 0 0 2px #fff}
.slots button i{width:40px;height:22px;border-radius:5px;background:var(--c,#3dd6ff);box-shadow:inset 0 -6px 0 rgba(0,0,0,.25);position:relative}
.slots button i::after{content:"";position:absolute;right:-6px;top:6px;width:8px;height:8px;border-radius:2px;background:#fff;opacity:.85}
.slots button.empty{opacity:.35}.slots button small{position:absolute;left:4px;top:1px;font-size:10px;font-weight:900;opacity:.8}
.build{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;gap:6px;align-items:center}
.bb{display:flex;flex-direction:column;align-items:center;gap:1px;width:62px;height:58px;padding-top:5px;border-radius:14px;background:linear-gradient(180deg,#5a2aa8,#3a1478);box-shadow:0 4px 0 #22094d;font:900 11px system-ui,sans-serif;letter-spacing:.04em}
.bb.down,.b.down{transform:translateY(3px);box-shadow:0 1px 0 #22094d}
.bb.off{opacity:.45}
.pc{width:30px;height:28px;background:center/contain no-repeat}
.pc-wall{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cg fill='%23c9a4ff' stroke='%233a1478' stroke-width='1.5'%3E%3Crect x='3' y='2' width='8' height='8'/%3E%3Crect x='11' y='2' width='8' height='8'/%3E%3Crect x='19' y='2' width='8' height='8'/%3E%3Crect x='3' y='10' width='8' height='8'/%3E%3Crect x='11' y='10' width='8' height='8'/%3E%3Crect x='19' y='10' width='8' height='8'/%3E%3Crect x='3' y='18' width='8' height='8'/%3E%3Crect x='11' y='18' width='8' height='8'/%3E%3Crect x='19' y='18' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E")}
.pc-ramp{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cg fill='%23c9a4ff' stroke='%233a1478' stroke-width='1.5'%3E%3Crect x='3' y='18' width='8' height='8'/%3E%3Crect x='11' y='18' width='8' height='8'/%3E%3Crect x='11' y='10' width='8' height='8'/%3E%3Crect x='19' y='18' width='8' height='8'/%3E%3Crect x='19' y='10' width='8' height='8'/%3E%3Crect x='19' y='2' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E")}
.pc-floor{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M2 16l13-7 13 7-13 7z' fill='%23c9a4ff' stroke='%233a1478' stroke-width='1.5'/%3E%3Cpath d='M2 16v4l13 7 13-7v-4l-13 7z' fill='%237a3ad6' stroke='%233a1478' stroke-width='1.5'/%3E%3C/svg%3E")}
/* Quick Chat */
.chat-btn{background:rgba(12,8,24,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v10H10l-5 4v-4H4z' fill='%23ffffff' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='8.5' cy='10' r='1.3' fill='%233a1478'/%3E%3Ccircle cx='12' cy='10' r='1.3' fill='%233a1478'/%3E%3Ccircle cx='15.5' cy='10' r='1.3' fill='%233a1478'/%3E%3C/svg%3E") center/22px no-repeat}
.chat-btn.on{background-color:#8b3dff}
.qchat{position:absolute;left:calc(10px + env(safe-area-inset-left,0px));top:calc(100px + env(safe-area-inset-top,0px));z-index:3;display:grid;grid-template-columns:repeat(4,auto);gap:6px;padding:8px;border-radius:14px;background:rgba(12,8,24,.88);border:1.5px solid rgba(183,123,255,.65)}
.qchat button{padding:9px 10px;border-radius:10px;background:#26173f;font:800 13px system-ui,sans-serif;white-space:nowrap}
.qchat button.emo{font-size:20px;padding:4px 8px}
.qchat button:active{background:#8b3dff}
.bubbles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.bubbles b{position:absolute;transform:translate(-50%,-100%);padding:5px 10px;border-radius:12px;background:#fff;color:#1d0f33;font:800 13px system-ui,sans-serif;white-space:nowrap;box-shadow:0 3px 0 rgba(0,0,0,.25);animation:pop .18s ease-out}
.bubbles b.emo{font-size:22px;padding:2px 8px}
.bubbles b::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-6px;border:6px solid transparent;border-top-color:#fff;border-bottom:0}
@keyframes pop{from{transform:translate(-50%,-100%) scale(.6)}to{transform:translate(-50%,-100%) scale(1)}}
.bricks{display:flex;align-items:center;gap:3px;padding:4px 10px 4px 6px;border-radius:999px;background:rgba(12,8,24,.7);font-weight:900;font-size:15px}
.btns{position:absolute;right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:auto auto;grid-template-areas:"open heal" "jump act";gap:10px;align-items:end;justify-items:end}
.b{border-radius:50%;font:900 13px system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 5px 0 rgba(0,0,0,.35)}
.b.act{grid-area:act;width:96px;height:96px;background:radial-gradient(circle at 35% 30%,#ff8ad8,#d6278f 70%);border:3px solid #fff!important;font-size:16px}
.b.jump{grid-area:jump;width:62px;height:62px;background:#8b3dff;font-size:20px}
.b.open{grid-area:open;width:auto;height:44px;padding:0 16px;border-radius:14px;background:linear-gradient(180deg,#ffe28a,#ffb020);color:#3a2400;animation:pulse 1s infinite alternate}
.b.heal{grid-area:heal;width:auto;height:44px;padding:0 14px;border-radius:14px;background:#19b37a}
.hud:not(.touch) .b.act,.hud:not(.touch) .b.jump{display:none}
.hud:not(.touch) .build .bb{width:70px}
.lockmsg{position:absolute;left:50%;top:60%;transform:translateX(-50%);padding:10px 16px;border-radius:12px;background:rgba(12,8,24,.8);font-weight:800;display:none}
.lockmsg.on{display:block}
@media (max-height:500px){.b.act{width:78px;height:78px}.bb{height:50px;width:56px}.slots{bottom:calc(70px + env(safe-area-inset-bottom,0px))}}

/* ---------- menus */
.overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;padding:16px;background:rgba(7,6,13,.7)}
.menu{background:#0b0820;padding:0}
.menu .art{position:absolute;inset:0;background:url(/assets/brawl/keyart-v.webp) center 30%/cover no-repeat}
@media (min-aspect-ratio:1/1){.menu .art{background-image:url(/assets/brawl/keyart-h.webp);background-position:center 40%}}
.menu .art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,8,32,.1) 0,rgba(11,8,32,0) 35%,rgba(11,8,32,.85) 70%,#0b0820)}
.menu-in{position:relative;align-self:end;width:min(460px,100%);padding:0 18px calc(22px + env(safe-area-inset-bottom,0px));text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}
.menu h1{font:italic 900 clamp(40px,12vw,64px)/.95 system-ui,sans-serif;letter-spacing:.02em;color:#fff;text-shadow:0 4px 0 #3b1a5e,0 0 28px rgba(201,120,255,.9)}
.menu h1 span{display:block;color:#ffd84d}
.tag{font-weight:700;font-size:14px;color:#e6dcff;text-shadow:0 1px 3px #000}
.levels{display:flex;gap:6px;align-items:center;padding:4px;border-radius:14px;background:rgba(12,8,24,.7)}
.levels span{padding:0 8px;font-weight:800;font-size:13px;color:#cbbcf0}
.levels button{padding:9px 14px;border-radius:10px;background:transparent;font-weight:800}
.levels button.on{background:#8b3dff}
.btn{display:block;width:min(320px,100%);padding:14px 18px;border-radius:16px;background:rgba(255,255,255,.12);font:900 16px system-ui,sans-serif;letter-spacing:.06em;text-align:center;text-decoration:none}
.btn.primary{background:linear-gradient(180deg,#ffe28a,#ffb020);color:#3a2400;box-shadow:0 5px 0 #a86a10;font-size:20px}
.btn.gold{background:linear-gradient(180deg,#ff8ad8,#d6278f);box-shadow:0 4px 0 #7a1458}
.keys{font-size:12px;color:#b8aadf;max-width:380px}
.back{font-weight:800;font-size:13px;color:#cbbcf0;text-decoration:none}
.panel{width:min(400px,100%);padding:20px;border-radius:24px;background:linear-gradient(180deg,#2a1450,#150a2c);border:2px solid #ffd84d;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.panel h2{font:italic 900 30px system-ui,sans-serif}
.end small{font:900 13px system-ui,sans-serif;letter-spacing:.2em;color:#ffd84d;text-transform:uppercase}
.end h2{font-size:clamp(30px,9vw,42px);background:linear-gradient(90deg,#fff,#ffd84d,#ff8ad8);-webkit-background-clip:text;background-clip:text;color:transparent}
.rewards{display:flex;gap:10px;justify-content:center}
.rewards span{display:flex;align-items:center;gap:5px;padding:8px 14px;border-radius:14px;background:rgba(0,0,0,.3);font-weight:900;font-size:18px}
.rewards img{width:24px;height:24px}
.banner{white-space:normal;width:max-content;max-width:92vw}
.banner small{max-width:86vw;margin-left:auto;margin-right:auto}
/* phones held upright: everything for the right thumb stacks on the right, the left thumb keeps the stick */
@media (max-width:560px){
  .btns{grid-template-columns:auto auto;grid-template-areas:"jump act";right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .b.open,.b.heal{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));right:auto}
  .b.open{bottom:calc(216px + env(safe-area-inset-bottom,0px))}.b.heal{bottom:calc(164px + env(safe-area-inset-bottom,0px))}
  .build{left:auto;right:calc(12px + env(safe-area-inset-right,0px));transform:none;bottom:calc(124px + env(safe-area-inset-bottom,0px));flex-wrap:wrap;justify-content:flex-end;width:200px;row-gap:6px}
  .build .bricks{order:-1;margin-left:auto}
  .bb{width:60px;height:56px}
  .slots{left:auto;right:calc(12px + env(safe-area-inset-right,0px));transform:none;bottom:calc(232px + env(safe-area-inset-bottom,0px))}
  .slots button{width:52px;height:40px}
  .stick{bottom:calc(40px + env(safe-area-inset-bottom,0px))}
}

/* 13+ look: dark glass and neon edges, nothing bubbly */
.b.act{background:radial-gradient(circle at 35% 30%,#4b2b8f,#170c2e 72%)!important;border:3px solid #b77bff!important;box-shadow:0 0 18px rgba(183,123,255,.55),0 5px 0 rgba(0,0,0,.4)!important;font-size:15px;letter-spacing:.12em}
.b.jump{background:linear-gradient(180deg,#2b1a4a,#160c29)!important;border:2px solid rgba(183,123,255,.7)!important}
.b.heal{background:linear-gradient(180deg,#0f6b55,#0a3b31)!important;border:1.5px solid #3df0b0!important;border-radius:10px}
.b.open{border-radius:10px;letter-spacing:.1em}
.bb{background:linear-gradient(180deg,#26173f,#140b26)!important;border:1.5px solid rgba(183,123,255,.65)!important;box-shadow:0 3px 0 #08040f!important;border-radius:10px}
.slots button{border-radius:8px}
.btn.gold{background:linear-gradient(180deg,#6a35d6,#3b1690)!important;box-shadow:0 4px 0 #1d0a4a!important}
.end h2{background:linear-gradient(90deg,#fff,#d7b8ff 60%,#9fe7ff)!important;-webkit-background-clip:text!important;background-clip:text!important}
.panel{background:linear-gradient(180deg,#1c1036,#0c0618)!important;border-color:#8b5cf6!important;border-radius:16px}
.menu h1{letter-spacing:.04em}
.dmg-nums b.head{color:#9fe7ff}
.hitmark.big::before,.hitmark.big::after{background:#9fe7ff}
.flash{box-shadow:inset 0 0 120px 30px rgba(200,40,60,.6)}

/* online: the menu's two ways to play and the lobby while a room fills */
.menu .sub{margin-top:-6px;font-size:13px;font-weight:700;color:#cbbcf0}
.practice{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%;padding-top:4px}
.btn.ghost{background:transparent;box-shadow:none;color:#cbbcf0;padding:8px}
.lobby .kick{font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:#ffd84d;font-size:12px}
.seats{display:grid;grid-template-columns:repeat(6,22px);gap:8px;margin:4px 0}
.seats i{width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
.seats i.on{background:linear-gradient(180deg,#c9a4ff,#8b3dff);border-color:#e6d6ff;box-shadow:0 0 10px rgba(139,61,255,.8)}
#lobby-sub,#pause-note{color:#d9cdf5;font-size:14px;line-height:1.4}

/* building: TURN shows which way the next piece faces; Sky Jump; the practice "get back on" offer */
.pc-turn{position:relative;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 4a10 10 0 1 1-9.4 6.6' fill='none' stroke='%23c9a4ff' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 6l4.5 5.5L11 6' fill='none' stroke='%23c9a4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.pc-turn::after{content:"";position:absolute;left:50%;top:50%;width:0;height:0;margin:-6px 0 0 -4px;border:4px solid transparent;border-bottom:9px solid #ffd84d;border-top:0;transform:rotate(var(--rot,0deg));transform-origin:4px 6px;transition:transform .15s}
.bb.turn span{color:#ffd84d}
.b.sky{grid-area:sky;width:auto;height:44px;padding:0 14px;border-radius:10px;background:linear-gradient(180deg,#2b6bff,#1a2f8a);border:1.5px solid #7fb2ff;font-weight:900;letter-spacing:.06em}
.btns{grid-template-areas:"sky sky" "open heal" "jump act"}
.panel .kick{font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:#ffd84d;font-size:12px}
.panel .note{color:#d9cdf5;font-size:14px;line-height:1.4}
@media (max-width:560px){
  .btns{grid-template-areas:"jump act"}
  .b.sky{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));right:auto;bottom:calc(268px + env(safe-area-inset-bottom,0px))}
}

/* the pause and chat buttons stack; on phones the zone timer sits on the right, under nothing, and the feed below it */
.tl-btns{display:flex;flex-direction:column;gap:6px}
.chat-btn[hidden]{display:none}
@media (max-width:560px){
  .zone{left:auto;right:calc(10px + env(safe-area-inset-right,0px));transform:none;top:calc(56px + env(safe-area-inset-top,0px));font-size:12px}
  .feed{top:calc(92px + env(safe-area-inset-top,0px))}
}
/* phones: the blaster slots clear the build buttons, and the small text is easier to read (tester Task 9) */
.slots button small{font-size:12px}
.feed div{font-size:13px}
@media (max-width:560px){
  .slots{bottom:calc(252px + env(safe-area-inset-bottom,0px))}
}
/* the slot number sits above the blaster picture on a small dark tab, readable in portrait too (tester Task 10) */
.slots button small{z-index:2;top:-7px;left:-5px;min-width:16px;height:16px;line-height:16px;padding:0 3px;border-radius:8px;background:#1a1030;border:1px solid var(--r,#777);opacity:1;text-align:center}
/* Play with friends */
.linkbtn{display:block;margin:10px auto 0;background:rgba(18,10,40,.78);border:2px solid #8b3dff;border-radius:999px;color:#fff;font:800 16px/1 system-ui,sans-serif;padding:11px 22px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.linkbtn:active{transform:translateY(1px)}
.friends{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:8px auto 4px;padding:10px;max-width:340px;border-radius:16px;background:rgba(14,8,32,.82);border:1px solid rgba(139,61,255,.55)}
.friends .btn{margin:0}
.friends .join{display:flex;gap:6px;align-items:center}
.friends input{width:124px;padding:10px 6px;border-radius:10px;border:2px solid #8b3dff;background:#120c26;color:#fff;font:900 18px/1 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;text-align:center}
.friends input::placeholder{letter-spacing:.06em;font-size:15px}
/* a phone held sideways: the menu scrolls, so Practice and Back stay reachable */
@media (orientation:landscape) and (max-height:560px){.menu{overflow-y:auto;-webkit-overflow-scrolling:touch}.menu-in{align-self:start;padding-top:14px;gap:9px}}
