:root{font-family:ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#edf5f8;background:#152d39;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:grid;place-items:center;background:radial-gradient(ellipse at 10% 20%,#345b6b,transparent 60%),linear-gradient(135deg,#152d39,#152327)}[hidden]{display:none!important}button,input,select{font:inherit}button{border:0;border-radius:14px;padding:14px 19px;background:#ffdc6a;color:#22343d;font-weight:750;cursor:pointer;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.08)}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffdc6a;outline-offset:3px}#canvas{position:fixed;width:100%;height:100%;inset:0;object-fit:contain;visibility:hidden;outline:0}.playing #canvas{visibility:visible}.panel{position:relative;width:min(440px,calc(100% - 32px));border:1px solid #ffffff24;border-radius:28px;padding:34px;background:#152d39e8;box-shadow:0 25px 80px #0005}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.22em;color:#adc6d1;margin:0 0 12px}h1{font-size:58px;line-height:.95;letter-spacing:-.065em;margin:0 0 18px}h1 span{font-size:25px;letter-spacing:.04em;color:#ffdc6a;margin-left:12px}#intro{color:#b8ccd4;line-height:1.6;margin:0 0 24px}label{display:block;color:#c9dae1;font-size:13px;font-weight:600;margin:15px 0}input:not([type=checkbox]),select{display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #6c899b66;border-radius:11px;color:#edf5f8;background:#0e2430;outline:0}input[type=range]{padding:0;accent-color:#ffdc6a}input[type=checkbox]{accent-color:#ffdc6a}.check{display:flex;gap:10px;align-items:center}form>button[type=submit],#settings form>button{width:100%;margin-top:9px}.tabs{display:flex;gap:7px;margin:20px 0}.tabs button{flex:1;font-size:12px;padding:12px;background:#ffffff0a;color:#afc5cf;border:1px solid transparent}.tabs button.selected{border-color:#ffdc6a70;background:#ffdc6a12;color:#ffdc6a}#play{display:flex;justify-content:space-between}#status{font-size:13px;color:#b8ccd4;min-height:20px;margin:19px 0 8px}.error{color:#ffb8ac!important}.footnote{font-size:11px;color:#87a8b8;margin:20px 0 0}progress{width:100%;height:6px;accent-color:#ffdc6a}#game-bar{position:fixed;z-index:5;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:16px;background:#102731c9;backdrop-filter:blur(10px);font-size:12px;max-width:720px;margin:auto}#lobby-title{font-weight:700;flex:1}#save-status{color:#c5dbc8}#game-bar button{font-size:11px;padding:8px 12px;background:#ffffff19;color:white;border-radius:10px}dialog{z-index:20;border:1px solid #ffffff26;border-radius:24px;color:#edf5f8;background:#152d39;padding:26px;width:min(410px,calc(100% - 24px));max-height:90vh;overflow:auto}dialog::backdrop{background:#04101acc}.dialog-title{display:flex;align-items:center;gap:20px}.dialog-title h2{font-size:21px;margin:0;flex:1}.dialog-title button{background:transparent;color:#afc5cf;padding:0;font-size:28px}.controls-help{line-height:1.9;font-size:11px;color:#a6c0cb}#metrics{font-size:11px;color:#adc6d1}.secondary{background:#ffffff0b;color:#adc6d1}#canvas{touch-action:none}#touch-controls{position:fixed;inset:0;z-index:4;touch-action:none;user-select:none;-webkit-user-select:none}#move-stick{position:absolute;width:116px;height:116px;margin:-58px;border:1px solid #ffffff55;border-radius:50%;background:#15344433;pointer-events:none}#stick-knob{position:absolute;left:34px;top:34px;width:48px;height:48px;border:2px solid #ffffff99;background:#ffffff29;border-radius:50%;pointer-events:none}#touch-controls button{position:absolute;width:58px;height:58px;border-radius:50%;border:1px solid #ffffff6b;color:#fff;background:#15344480;touch-action:none;padding:0;text-shadow:0 1px 2px #0005;backdrop-filter:blur(4px)}#touch-crouch{right:max(22px,env(safe-area-inset-right));bottom:calc(30px + env(safe-area-inset-bottom));font-size:22px}#touch-crouch span{display:block;font-size:8px;font-weight:500;line-height:1}#touch-center{left:max(22px,env(safe-area-inset-left));bottom:calc(30px + env(safe-area-inset-bottom));width:44px!important;height:44px!important}#gesture-hint{position:absolute;bottom:calc(26px + env(safe-area-inset-bottom));left:80px;right:90px;text-align:center;font-size:10px;line-height:1.7;color:#ffffffa0;text-shadow:0 1px 4px #000;pointer-events:none;transition:opacity 1s}.native-menu #touch-controls button,.native-menu #gesture-hint{visibility:hidden}.native-menu #canvas{cursor:default}#notice{position:fixed;z-index:30;left:50%;bottom:20px;transform:translateX(-50%);padding:12px 18px;border-radius:12px;background:#102731ed;color:white;font-size:12px;max-width:90%;text-align:center}@media(max-height:520px){.panel{padding:20px 28px;max-height:95vh;overflow:auto}h1{font-size:44px}#intro{margin-bottom:12px}.footnote{display:none}#game-bar{top:6px}#lobby-title{display:none}#touch-center{bottom:165px}}@media(max-width:520px){#save-status{font-size:10px}#game-bar{gap:7px}.panel{padding:28px}.controls-help{font-size:10px}}

@media(orientation:portrait){#game-bar{display:grid;grid-template-columns:1fr auto auto auto;gap:5px 8px}#lobby-title{grid-column:1 / 3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#players{grid-column:3 / 5;text-align:right}#save-status{grid-column:1}#game-bar button{min-height:36px;padding:6px 9px}#gesture-hint{bottom:calc(35px + env(safe-area-inset-bottom))}.panel{max-height:calc(100dvh - 24px);overflow:auto}#touch-crouch{bottom:calc(42px + env(safe-area-inset-bottom));width:64px;height:64px}#touch-center{bottom:calc(48px + env(safe-area-inset-bottom))}#notice{bottom:calc(135px + env(safe-area-inset-bottom))}}

#portrait-hud{display:none;pointer-events:none}.playing #portrait-hud{position:fixed;z-index:3;left:16px;right:16px;top:calc(94px + env(safe-area-inset-top));gap:7px;flex-wrap:wrap;color:white;text-shadow:0 1px 3px #000;font-size:12px;font-weight:700}#portrait-hud span{padding:6px 9px;background:#1027318c;border-radius:9px}#hud-coins,#hud-stars{color:#ffdc6a}#hud-health{color:#ffc0b8}@media(orientation:portrait){.playing #portrait-hud{display:flex}#canvas{top:calc(88px + env(safe-area-inset-top));height:calc(100% - 88px - env(safe-area-inset-top))}.native-menu #portrait-hud{visibility:hidden}}

#star-menu{position:fixed;z-index:6;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 130px);overflow:auto;padding:20px;border-radius:22px;border:1px solid #ffffff38;background:#152d39f5;box-shadow:0 20px 70px #0008}#star-menu h2{font-size:22px;margin:0 0 16px}#star-options{display:grid;gap:8px}#star-options button{min-height:48px;text-align:left;font-size:13px;line-height:1.4;background:#ffffff0d;border:2px solid transparent;color:#edf5f8}#star-options button.selected{border-color:#ffdc6a;color:#ffdc6a;background:#ffdc6a18}#star-options button:disabled{cursor:default}@media(orientation:landscape) and (max-height:520px){#star-options{grid-template-columns:1fr 1fr}#star-menu{width:min(680px,calc(100% - 32px));padding:14px}#star-menu h2{font-size:17px;margin-bottom:10px}}

#touch-kirby-jump,#touch-kirby-inhale{display:none}body.kirby-controls #touch-kirby-jump,body.kirby-controls #touch-kirby-inhale{display:block}#touch-kirby-inhale{right:max(22px,env(safe-area-inset-right));bottom:calc(116px + env(safe-area-inset-bottom));font-size:22px}#touch-kirby-jump{right:max(22px,env(safe-area-inset-right));bottom:calc(190px + env(safe-area-inset-bottom));font-size:22px}

/* Compact in-game chrome; safe areas apply once, independently of orientation. */
#game-bar{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;top:env(safe-area-inset-top,0px);left:0;right:0;max-width:none;height:56px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));border-radius:0;background:linear-gradient(#142c3aee,#142c3ac9);border-bottom:1px solid #ffffff1c}
#game-bar button{flex:1;max-width:160px;min-height:44px;font-size:13px;font-weight:750;border-radius:12px;background:#ffffff12;border:1px solid #ffffff15}
#canvas{top:calc(56px + env(safe-area-inset-top));height:calc(100% - 56px - env(safe-area-inset-top))}
.playing #portrait-hud{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:4px;top:calc(66px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));filter:drop-shadow(0 2px 2px #0009)}
#portrait-hud canvas{width:70px;height:25px;flex:none;image-rendering:pixelated}#portrait-hud #hud-health{width:48px;height:48px;margin-left:auto;margin-top:-3px}#portrait-hud span{padding:4px 7px;font-size:11px;background:#142c3a80;border-radius:8px}.native-menu #portrait-hud{visibility:hidden}
#coop-settings{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border-radius:22px;background:#172e3b;overscroll-behavior:contain;box-shadow:0 20px 80px #0008}
#coop-settings::backdrop{background:#08151deb;backdrop-filter:blur(8px)}.sheet-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#172e3bf5;border-bottom:1px solid #ffffff16}.sheet-header h2{margin:0;font-size:21px}.sheet-header button{min-height:44px;padding:10px 17px;border-radius:12px}
#coop-items{padding:8px 16px 20px;display:grid;gap:8px}.coop-action{min-height:52px;padding:14px 16px;text-align:left;border-radius:12px;background:#ffffff0b;color:#f5f8fc;border:1px solid #ffffff16;font-size:15px;white-space:pre-wrap}.coop-action:hover,.coop-action:focus-visible{background:#ffdb6822;border-color:#ffdb68;color:#ffdf7b}.coop-description{font-size:13px;line-height:1.55;color:#bfd0d9;margin:8px 2px;white-space:pre-wrap}.coop-description:first-child{font-size:18px;font-weight:800;color:#fff}.coop-control{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px;background:#ffffff08;border-radius:12px;min-height:56px}.coop-control>span{font-size:14px;color:#f2f6f9;line-height:1.4}.coop-control select,.coop-control input:not([type=checkbox]){margin:0;width:100%;min-height:44px}.coop-control input[type=checkbox]{width:25px;height:25px;margin:4px;accent-color:#ffdb68}.coop-control input[type=range]{height:36px;min-height:36px;touch-action:pan-x;accent-color:#ffdb68}.coop-control:has(input[type=checkbox]){flex-wrap:nowrap}
@media(orientation:portrait){#game-bar{display:flex;gap:6px}#game-bar button{padding:8px 12px;min-height:44px}#settings,#coop-settings{margin:auto;width:calc(100% - 20px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#settings .dialog-title button{min-width:44px;min-height:44px}.playing #portrait-hud{display:flex}}
@media(max-width:350px){#portrait-hud canvas{width:61px;height:22px}#portrait-hud #hud-health{width:43px;height:43px}#game-bar button{font-size:12px}}

.device-options{margin:14px 0;border-top:1px solid #ffffff18;padding-top:12px}.device-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}.device-options summary::before{content:"＋";margin-right:10px;color:#ffdb68}.device-options[open] summary::before{content:"−"}

.coop-control output{font-size:12px;font-variant-numeric:tabular-nums;color:#ffdf7b;margin-left:auto}

/* Lives doubles as an accessible quick character switch. */
.playing #portrait-hud{z-index:6}#character-switch{position:relative;pointer-events:auto;touch-action:manipulation;background:transparent;border:0;padding:0 10px 0 0;min-width:80px;height:44px;margin-top:-10px;display:flex;align-items:center;color:white;border-radius:10px}#character-switch:hover{background:#142c3a55}#portrait-hud .switch-chevron{position:absolute;right:2px;bottom:8px;padding:0;background:none;font-size:13px}#character-switch canvas{pointer-events:none}
#character-wheel{width:min(370px,calc(100% - 24px));padding:22px 12px 14px;text-align:center;overflow:auto;max-height:calc(100dvh - 24px);background:#172e3bf5}#character-wheel h2{font-size:20px;margin:0 0 6px}#character-wheel>p{font-size:12px;color:#bed0d9;margin:0}#character-wheel::backdrop{background:#071924b8;backdrop-filter:blur(5px)}.wheel-options{position:relative;width:300px;max-width:100%;height:286px;margin:12px auto 0;border-radius:50%;background:radial-gradient(circle at center,#ffdc6a12 0 28%,transparent 29% 50%,#ffffff08 51% 68%,transparent 69%)}.wheel-options>button[data-character]{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:98px;height:98px;padding:8px;border-radius:50%;background:#28414e;color:white;border:2px solid #ffffff28;font-size:12px;line-height:1.15}.wheel-options>button[aria-pressed=true]{border-color:#ffdc6a;background:#51462e;box-shadow:0 0 0 4px #ffdc6a22}.wheel-options>button:hover{border-color:#ffdc6a}.wheel-options canvas{width:38px;height:38px;image-rendering:pixelated}.wheel-options [data-character="0"]{left:calc(50% - 49px);top:0}.wheel-options [data-character="1"]{left:0;bottom:10px}.wheel-options [data-character="2"]{right:0;bottom:10px}#wheel-close{position:absolute;left:calc(50% - 24px);top:123px;width:48px;height:48px;padding:0;border-radius:50%;font-size:27px;background:#ffffff12;color:#fff}@media(max-height:450px){#character-wheel{width:430px;padding:12px}#character-wheel .wheel-options{width:390px;height:142px;margin-top:8px}.wheel-options [data-character="0"]{left:0;top:0}.wheel-options [data-character="1"]{left:calc(50% - 49px);top:0}.wheel-options [data-character="2"]{right:0;top:0}#wheel-close{top:104px;width:36px;height:36px;left:calc(50% - 18px)}}

/* Seven-character radial roster; compact grid on short landscape screens. */
#character-wheel .wheel-options{width:320px;height:320px;max-width:100%;--radius:112px}.wheel-options>button[data-character]{width:76px;height:76px;left:calc(50% - 38px + var(--x)*var(--radius));top:calc(50% - 38px + var(--y)*var(--radius));right:auto;bottom:auto}.wheel-options canvas{width:32px;height:32px}
.wheel-options [data-character="0"]{--x:0.0000;--y:-1.0000}.wheel-options [data-character="1"]{--x:0.7818;--y:-0.6235}.wheel-options [data-character="3"]{--x:0.9749;--y:0.2225}.wheel-options [data-character="4"]{--x:0.4339;--y:0.9010}.wheel-options [data-character="5"]{--x:-0.4339;--y:0.9010}.wheel-options [data-character="6"]{--x:-0.9749;--y:0.2225}.wheel-options [data-character="7"]{--x:-0.7818;--y:-0.6235}#wheel-close{left:calc(50% - 24px);top:calc(50% - 24px);width:48px;height:48px}@media(max-height:450px){#character-wheel{width:590px}#character-wheel .wheel-options{width:100%;height:auto;display:grid;grid-template-columns:repeat(var(--choice-count,7),1fr);gap:4px;background:none}.wheel-options>button[data-character]{position:static;width:100%;height:84px;border-radius:16px}.wheel-options #wheel-close{position:static;grid-column:1 / -1;justify-self:center;margin-top:4px}}@media(max-width:350px) and (orientation:portrait){#character-wheel .wheel-options{--radius:104px}}
#touch-pika-dash,#touch-pika-thunder,#touch-pika-attack{display:none}body.pikachu-controls #touch-pika-dash,body.pikachu-controls #touch-pika-thunder,body.pikachu-controls #touch-pika-attack{display:block;font-size:12px}#touch-pika-dash{right:max(22px,env(safe-area-inset-right));bottom:calc(190px + env(safe-area-inset-bottom))}#touch-pika-thunder{right:calc(96px + env(safe-area-inset-right));bottom:calc(116px + env(safe-area-inset-bottom))}#touch-pika-attack{right:max(22px,env(safe-area-inset-right));bottom:calc(116px + env(safe-area-inset-bottom))}


/* Larger native HUD sprites, with room for all counters on narrow phones. */
#portrait-hud canvas{width:96px;height:34px}
#portrait-hud #hud-health{width:64px;height:64px;margin-top:-2px}
#character-switch{min-width:106px;height:48px;margin-top:-7px}
@media(max-width:420px){#portrait-hud canvas{width:88px;height:31px}#character-switch{min-width:98px}#portrait-hud #hud-health{width:60px;height:60px}}
@media(max-width:350px){.playing #portrait-hud{left:8px;right:8px;gap:2px}#portrait-hud canvas{width:76px;height:27px}#character-switch{min-width:86px}#portrait-hud #hud-health{width:54px;height:54px}}
.wheel-pages{display:flex;gap:8px;justify-content:center;margin-top:12px}.wheel-pages button{min-height:44px;padding:8px 14px;background:#28414e;color:white;font-size:13px;border:1px solid #ffffff28}.wheel-pages button[aria-pressed=true]{background:#51462e;border-color:#ffdc6a}.wheel-options>button[data-character][hidden]{display:none}@media(max-height:450px){.wheel-pages{margin-top:6px}.wheel-pages button{padding:4px 12px}}
/* One shared-room launcher, sized for a phone without scrolling. */
#launcher{width:min(400px,calc(100% - 32px));padding:26px;border-radius:26px;background:linear-gradient(145deg,#213d4bed,#142c39f5)}.launcher-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}.launcher-header h1{font-size:44px;margin:0;line-height:1}.launcher-header h1 span{display:block;font-size:14px;letter-spacing:.2em;margin:8px 0 0 3px}.launcher-header button{min-height:44px;padding:10px 14px;font-size:13px;border:1px solid #ffffff20;color:#edf5f8}#lobby-stats{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #ffffff14;border-bottom:1px solid #ffffff14;color:#b9ced8;font-size:13px}#lobby-stats strong{font-weight:650;color:#edf5f8}#lobby-stats i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#91dbab;margin-right:7px}#lobby-form label{margin:24px 0 20px;font-size:14px}#character{min-height:52px;font-size:16px}#play{min-height:54px;align-items:center;font-size:17px;border-radius:14px}#status:empty{display:none}#status{margin-bottom:0}body:not(.playing) #settings-character,body:not(.playing) #settings label:has(#settings-character),body:not(.playing) #kirby-help,body:not(.playing) #pikachu-help,body:not(.playing) #metrics,body:not(.playing) #leave{display:none}#launcher-settings{flex-shrink:0}@media(max-height:500px){#launcher{padding:18px 24px;max-height:calc(100dvh - 20px);overflow:auto}.launcher-header{margin-bottom:14px}.launcher-header h1{font-size:32px}.launcher-header h1 span{font-size:11px}#lobby-stats{padding:10px 0}#lobby-form label{margin:12px 0}#character{min-height:44px;padding:10px 12px}#play{min-height:46px}}
#character,#settings select{-webkit-appearance:none;appearance:none;min-height:48px;padding-right:38px;background-image:linear-gradient(45deg,transparent 50%,#c9dae1 50%),linear-gradient(135deg,#c9dae1 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px;background-repeat:no-repeat}

/* Native HUD affordances remain large enough for a thumb. */
#portrait-hud .hud-button{pointer-events:auto;touch-action:manipulation;border:0;background:transparent;padding:0;min-height:48px;min-width:44px;display:flex;align-items:center;margin-top:-7px}
#portrait-hud .hud-button:hover{background:#142c3a55}#portrait-hud #power-pause{margin-left:auto;align-self:flex-start}#portrait-hud #hud-health{margin:0}
#portrait-hud #hud-coins{width:108px;height:28px}.playing #portrait-hud{flex-wrap:nowrap;align-items:flex-start;gap:2px}
@media(min-width:351px) and (max-width:420px){#portrait-hud canvas{width:88px;height:31px}#character-switch{min-width:98px}#portrait-hud #hud-coins{width:90px;height:28px}#portrait-hud #hud-health{width:60px;height:60px}}
@media(max-width:350px){#portrait-hud canvas{width:62px;height:23px}#character-switch{min-width:72px}#portrait-hud #hud-coins{width:82px;height:24px}#portrait-hud #hud-health{width:48px;height:48px}}
.wheel-pages{flex-wrap:wrap}.wheel-pages button{flex:1;white-space:nowrap}.wheel-options button:disabled{opacity:.45}
#pause-sheet{width:min(340px,calc(100vw - 32px));text-align:center}#pause-sheet>button{display:block;width:100%;min-height:48px;margin:12px 0}
#character-store{width:min(480px,calc(100vw - 24px));max-height:85dvh;overflow:auto}.store-wallet{color:#ffdc6a;font-size:22px;margin:12px 0}
#store-items{display:grid;gap:10px;margin-top:16px}.store-item{display:flex;align-items:center;gap:12px;padding:12px;background:#ffffff09;border:1px solid #ffffff20;border-radius:14px}.store-item canvas{width:40px;height:40px;image-rendering:pixelated}.store-item strong{flex:1}.store-item button{min-height:48px;min-width:100px;font-size:14px}.store-item button:disabled{opacity:.5}
#store-status,#pause-status{min-height:1.4em}#store-status{color:#ffdc6a}

.wheel-options button[data-locked=true]{opacity:.65}.wheel-options button[data-locked=true]::after{content:"🔒";position:absolute;right:3px;top:1px;font-size:13px}

#touch-kirby-lift{display:none;right:calc(96px + env(safe-area-inset-right));bottom:calc(116px + env(safe-area-inset-bottom));font-size:12px}body.kirby-controls #touch-kirby-lift{display:block}

/* Keep taps and holds in the game; preserve normal editing in text fields. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable]:not([contenteditable="false"]),[contenteditable]:not([contenteditable="false"]) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
button,select{touch-action:manipulation}
#touch-controls,#touch-controls button,#canvas{touch-action:none}

/* Full-screen play; optional menus live behind one quiet corner control. */
#canvas{inset:0;width:100%;height:100%}
.playing #portrait-hud{top:calc(12px + env(safe-area-inset-top))}
#game-tools{position:fixed;z-index:8;left:env(safe-area-inset-left,0px);bottom:env(safe-area-inset-bottom,0px);display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px}
#tools-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;color:#ffffffb8;background:#15344445;border:1px solid #ffffff30;backdrop-filter:blur(6px);touch-action:manipulation}
#tools-toggle:hover,#tools-toggle[aria-expanded=true]{color:#fff;background:#153444ad}
#tools-menu{display:grid;gap:4px;padding:6px;min-width:142px;background:#142c3af2;border:1px solid #ffffff24;border-radius:16px;box-shadow:0 8px 24px #0004;backdrop-filter:blur(12px)}
#tools-menu button{min-height:44px;text-align:left;padding:10px 14px;background:transparent;color:#edf5f8;font-size:14px}
#tools-menu button:hover{background:#ffffff10}
.discord-sign-in{display:flex;align-items:center;justify-content:center;min-height:54px;margin:22px 0 16px;padding:14px;border-radius:14px;background:#5865f2;color:white;text-decoration:none;font-size:16px;font-weight:750}
.discord-sign-in:hover{background:#4752c4}
.discord-sign-in:focus-visible{outline:3px solid #ffdc6a;outline-offset:3px}
#account-login{border-top:1px solid #ffffff20;padding-top:15px}
#account-login summary{color:#adc6d1;font-size:13px;cursor:pointer;padding:8px 0}
#account-login button{width:100%;margin-top:8px}

/* Native panels always fit inside the phone safe area, including first-run Language. */
#coop-settings[open]{position:fixed;top:calc(12px + env(safe-area-inset-top));bottom:calc(12px + env(safe-area-inset-bottom));left:env(safe-area-inset-left);right:env(safe-area-inset-right);margin:auto;width:min(520px,calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.coop-control>span{min-width:0;overflow-wrap:anywhere;flex:1}.native-menu #notice{visibility:hidden}
