@font-face{font-family:Josefin;src:url('./vendor/josefin-sans.ttf')}@font-face{font-family:Bitter;src:url('./vendor/bitter.ttf')}
:root{--ink:#323335;--pink:#fdeeee;--rose:#fcb4ca;--teal:#158e89;--paper:#fffdfa;--line:#e8e1dc;--paint:#18a6a3}*{box-sizing:border-box}body{margin:0;background:#fffdfa;color:var(--ink);font-family:Bitter,Georgia,serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;font:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--teal);outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0;background:none}button:hover:not(:disabled){filter:brightness(.95)}.site-header{height:92px;padding:0 4.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:30px}.brand img{width:220px;height:auto;display:block}.site-header nav{display:flex;gap:32px;align-items:center;font-size:13px}.site-header nav span{border-bottom:2px solid var(--rose);padding:12px 0}.workshop-link{background:#323335;color:white;padding:15px 20px;font-size:12px;border-radius:3px}.workshop-link span{margin-left:20px}main{max-width:1550px;margin:auto;padding:0 4.5%}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px 0 28px}.eyebrow{font-family:Josefin,sans-serif;font-size:10px;font-weight:600;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow i{height:7px;width:7px;border-radius:50%;background:var(--teal)}h1,h2{font-family:Josefin,sans-serif;font-weight:600}h1{font-size:clamp(28px,3.2vw,46px);margin:16px 0 0;letter-spacing:-1.2px}h1 span{position:relative;white-space:nowrap}h1 span:after{content:'';position:absolute;background:var(--rose);opacity:.65;height:7px;bottom:1px;left:0;right:0;z-index:-1;transform:rotate(-1deg)}.page-intro>p{font-size:12px;line-height:1.9;color:#797471;margin-top:28px}.studio{border:1px solid #ded8d2;border-radius:9px;overflow:hidden;box-shadow:0 14px 40px #58493209;background:white}.game-toolbar{height:52px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.room-label{font-family:Josefin,sans-serif;font-size:11px;letter-spacing:1.5px;display:flex;align-items:center;gap:9px}.room-label i{width:8px;height:8px;border-radius:50%;background:#84b39a}.room-label small{font-family:Bitter,serif;letter-spacing:0;font-size:10px;color:#928a83;margin-left:15px}.game-toolbar>div{display:flex;align-items:center;gap:12px}.game-toolbar button{font:20px Arial;padding:7px;min-width:30px}.game-toolbar button span{font:11px Bitter;margin-left:5px}.viewport{height:clamp(380px,48vw,590px);position:relative;overflow:clip;background:#e9e2d9}#scene{width:100%;height:100%;display:block;touch-action:none;outline-offset:-4px;cursor:crosshair}.room-tag{position:absolute;left:22px;top:20px;padding:8px 12px;border:1px solid #ffffff90;background:#fffdfac9;border-radius:30px;font:10px Bitter;pointer-events:none;color:#756d63}.live-dot{display:inline-block;width:6px;height:6px;background:#6ba991;border-radius:50%;margin-right:6px}.welcome{position:absolute;left:5%;top:24%;padding:27px 32px 23px;max-width:325px;border:1px solid #ffffffad;background:#fffdfaeF;box-shadow:0 14px 60px #4c3b2420;border-radius:4px;transform:rotate(-1deg)}.handwritten{font:14px Josefin;color:#b45c70;display:block;transform:rotate(-3deg)}.welcome h2{font-size:42px;line-height:1.06;margin:20px 0 13px;letter-spacing:-1px}.welcome p{font-size:12px;line-height:1.8;color:#736d67}.primary{background:var(--ink);color:white;padding:15px 23px;border-radius:3px;font-size:12px}.welcome .primary{width:100%;display:flex;justify-content:space-between;margin:20px 0 12px}.welcome small{display:block;text-align:center;font-size:9px;color:#8c8178}.hand-brush{position:absolute;bottom:-45px;right:12%;height:240px;width:100px;transform:rotate(-25deg);pointer-events:none;filter:drop-shadow(5px 7px 6px #34291925);transform-origin:50% 95%}.hand-brush svg{width:100%;height:100%}.hand-brush.dipping{animation:dip .55s ease-in-out}@keyframes dip{50%{transform:translateY(170px) rotate(-5deg)}}.crosshair{position:absolute;width:14px;height:14px;border:1px solid white;border-radius:50%;box-shadow:0 0 0 1px #4c4a4680;pointer-events:none;transform:translate(-50%,-50%)}.paint-feedback{position:absolute;left:22px;bottom:22px;background:#fffdfaeb;padding:12px 15px;border-radius:5px;width:205px;pointer-events:none}#gesture{font:13px Josefin}.speed-track{height:3px;background:#e4dfd8;margin:9px 0 7px;overflow:hidden}.speed-track i{height:100%;width:0;display:block;background:var(--paint);transition:width .1s}.paint-feedback small{font-size:8px;color:#83786f;display:flex;justify-content:space-between}.toast{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);background:#323335eb;color:#fff;padding:11px 18px;border-radius:30px;font-size:11px;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90%;text-align:center}.toast.show{opacity:1}.loading{position:absolute;inset:0;display:grid;place-items:center;background:#ede8df;font:18px Josefin}.toolbox{padding:23px 25px 20px;display:grid;grid-template-columns:1fr 1.45fr .85fr;gap:28px;align-items:center}.tool-label{margin:0 0 16px;font:10px Josefin;letter-spacing:1px;color:#b4aaa2}.tool-label span{margin-left:7px;color:#655f59}.tool-label #colorName{float:right;font:10px Bitter;letter-spacing:0;color:#918780}.brush-section,.color-section{border-right:1px solid var(--line);padding-right:26px}.brush-options{display:flex;gap:7px}.brush-option{position:relative;display:flex;align-items:center;gap:7px;border:1px solid #e8e1dc;padding:9px 10px;border-radius:5px;font-size:10px;flex:1;justify-content:center;height:42px}.brush-option.selected{background:#fdeeee;border-color:#e4bdc6}.brush-icon{height:23px;width:4px;background:#b3895c;position:relative;display:block;transform:rotate(25deg);margin-right:5px;margin-top:6px;border-radius:2px}.brush-icon:before{content:'';background:#6c6054;position:absolute;width:7px;height:10px;top:-5px;left:-1.5px;border-radius:5px 5px 1px 1px;border-bottom:4px solid #aeb4b4}.brush-icon.flat:before{width:12px;left:-4px;border-radius:0}.brush-icon.fan:before{width:17px;height:13px;left:-6px;top:-7px;clip-path:polygon(0 0,100% 0,65% 100%,35% 100%);border-radius:10px 10px 0 0}.brush-option kbd{position:absolute;right:3px;top:3px;font:7px Arial;color:#a1968f}.colors{display:flex;gap:9px;align-items:center;justify-content:space-between}.color-pot{width:33px;height:33px;position:relative;border-radius:50%;background:var(--swatch);box-shadow:inset 0 3px 4px #0002,0 3px 0 #b9afa1;border:3px solid #f4eee6;transition:transform .15s}.color-pot:hover{transform:translateY(-3px)}.color-pot[aria-pressed=true]{outline:1.5px solid var(--ink);outline-offset:3px}.color-pot[aria-pressed=true]:after{content:'✓';color:white;text-shadow:0 1px 2px #0008;font:13px Arial;position:absolute;inset:0;display:grid;place-items:center}.fill-label{display:flex;justify-content:space-between;font-size:9px;gap:12px}.fill-label b{font-weight:400;color:#898078}.fill-track{height:5px;background:#eee8e1;border-radius:9px;margin:11px 0 8px;overflow:hidden}.fill-track i{display:block;height:100%;width:100%;background:var(--paint);transition:width .2s}#refill{font-size:9px;padding:3px 0;width:100%;text-align:left}#refill kbd{float:right;color:#8b827c;border:1px solid var(--line);padding:1px 4px;border-radius:3px;font:8px Arial}.game-footer{min-height:39px;background:#faf7f3;border-top:1px solid #eee8e1;display:flex;gap:24px;padding:10px 25px;align-items:center;font-size:9px;color:#898078}.game-footer b{font-weight:400;color:#534d47}.game-footer button{margin-left:auto;font-size:9px;padding:0}.below{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 2px 28px}.below p{font:17px Josefin}.below p span{font-size:27px;color:#dba24b;vertical-align:middle;margin-right:9px}.below>a{font-size:10px;color:#82766e}.below u{text-underline-offset:4px;color:#4c4440;margin-left:8px}.site-footer{padding:20px 4.5%;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#8d837c}.site-footer>div{display:flex;gap:24px}dialog{border:1px solid #e2d8cf;border-radius:8px;background:var(--paper);color:var(--ink);max-width:520px;width:calc(100% - 36px);padding:34px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#39352d65;backdrop-filter:blur(3px)}dialog h2{font-size:32px;line-height:1.15;margin:20px 0}dialog p,dialog li{font-size:12px;line-height:1.8}dialog ol{padding-left:19px}dialog li{padding:5px 0}.dialog-close:not(.primary){position:absolute;right:15px;top:10px;font-size:26px}.note{background:var(--pink);padding:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:25px}.touch-controls{display:none}.studio:fullscreen{display:flex;flex-direction:column;border-radius:0}.studio:fullscreen .viewport{height:auto;flex:1}.embed .site-header,.embed .page-intro,.embed .below,.embed .site-footer{display:none}.embed main{padding:0;max-width:none}.embed .studio{border:0;border-radius:0}.embed .viewport{height:calc(100dvh - 220px);min-height:320px}[hidden]{display:none!important}
@media(max-width:1050px){.site-header nav{gap:18px;font-size:11px}.brand img{width:185px}.toolbox{gap:16px;padding:20px 18px;grid-template-columns:1fr 1.25fr .8fr}.brush-section,.color-section{padding-right:16px}.brush-option{padding:8px;font-size:9px}.colors{gap:6px}.color-pot{width:28px;height:28px}.page-intro>p{font-size:11px}.below{align-items:flex-start}.below>a{max-width:280px;line-height:1.8}.below u{margin-left:0}.game-footer{gap:15px}}
@media(max-width:760px){.site-header{height:72px;padding:0 5%}.site-header nav{display:none}.brand img{width:175px}.workshop-link{font-size:10px;padding:12px}.workshop-link span{margin-left:8px}main{padding:0 4%}.page-intro{padding:26px 0 23px}.eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:30px;line-height:1.2}h1 span{display:block;width:max-content}.page-intro>p{display:none}.room-label small{display:none}.game-toolbar{padding:0 13px}.game-toolbar>div{gap:5px}.viewport{height:440px}.welcome{left:6%;top:23%;max-width:280px;padding:23px}.welcome h2{font-size:35px}.hand-brush{right:7%;height:210px}.toolbox{grid-template-columns:1fr 1fr;gap:20px;padding:20px 15px}.brush-section{padding-right:15px}.color-section{border:0;padding:0}.fill-section{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.fill-label{grid-column:1;grid-row:1}.fill-track{grid-column:1;grid-row:2;margin:4px 0}.fill-section #refill{grid-column:2;grid-row:1/3;align-self:center}.brush-option kbd{display:none}.brush-option{padding:7px 5px}.brush-options{gap:4px}.colors{flex-wrap:wrap;justify-content:flex-start;gap:8px}.color-pot{width:27px;height:27px}.tool-label{font-size:8px;letter-spacing:.5px;white-space:nowrap}.tool-label #colorName{display:none}.game-footer{flex-wrap:wrap;font-size:8px;padding:10px 14px;gap:10px}.below{display:block;padding:13px 0 22px}.below p{font-size:16px}.below>a{font-size:10px}.site-footer{font-size:8px;gap:15px}.paint-feedback{left:12px;bottom:15px;width:170px}.game-toolbar button span{display:none}.embed .viewport{height:calc(100dvh - 290px)}}
@media(pointer:coarse){.touch-controls{display:flex;gap:5px;position:absolute;right:12px;bottom:12px;align-items:center}.touch-controls button{border:1px solid #fff9;background:#fffdfadd;min-width:32px;height:36px;border-radius:5px;font-size:12px;touch-action:none}.touch-controls button[aria-pressed=true]{background:var(--pink)}.paint-feedback{bottom:60px}.game-footer>span{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Touch layout: independent thumbs, safe areas and a full landscape canvas. */
.rotate-hint{display:none}.touch-controls{display:none!important}
.touch-device .touch-controls{display:block!important;position:absolute;inset:0;pointer-events:none;user-select:none;-webkit-user-select:none}
.touch-device .joystick-area{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:13px;display:flex;flex-direction:column;align-items:center;gap:5px}
.joystick{position:relative;width:108px;height:108px;border:1px solid #fff9;border-radius:50%;background:#fffdfa55;box-shadow:inset 0 0 0 12px #ffffff20,0 3px 18px #35261d15;touch-action:none;pointer-events:auto}
.joystick-thumb{position:absolute;width:46px;height:46px;left:30px;top:30px;background:#fffdfadf;border:1px solid #fff;border-radius:50%;box-shadow:0 3px 10px #4a372c35;pointer-events:none}
.joystick.active .joystick-thumb{background:#fdeeee;border-color:#e4a9b9}.joystick-label{font:9px Josefin;letter-spacing:1.6px;color:#51473e;background:#fffdfabf;border-radius:20px;padding:4px 9px}
.joystick-arrows{position:absolute;inset:7px;text-align:center;line-height:44px;color:#63594f70;font:22px/42px Arial;pointer-events:none}
.touch-device #touchLook{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:21px;pointer-events:auto;touch-action:manipulation;background:#fffdfae8;border:1px solid white;border-radius:14px;min-width:120px;height:62px;padding:8px 12px;font-size:13px;box-shadow:0 4px 18px #35261d18}
#touchLook small{display:block;font:9px Bitter;margin-top:5px}#touchLook b{font-family:Josefin;font-weight:600}#touchLook[aria-pressed=true]{background:#fdeeee!important;border-color:#edafc0!important}
.touch-device .paint-feedback{top:13px;bottom:auto;left:auto;right:14px;width:170px;padding:9px 12px}.touch-device .toast{bottom:auto;top:65px}.touch-device .hand-brush{height:175px;bottom:-35px}.touch-device .game-footer>span{display:none}.touch-device .brush-option,.touch-device .color-pot{min-height:40px}.touch-device .color-pot{width:40px;flex-shrink:0}.touch-device .colors{gap:8px}.touch-device .crosshair{width:22px;height:22px}.touch-device .game-toolbar button{min-width:42px;min-height:42px}
.touch-device:not(.playing) .touch-controls{visibility:hidden}
@media (orientation:portrait){
  .touch-device .rotate-hint{display:flex;align-items:center;gap:10px;position:absolute;top:10px;left:12px;right:12px;border-radius:8px;padding:10px 14px;background:#fffdfae8;font:11px/1.5 Bitter;pointer-events:none}
  .touch-device .rotate-hint>span{font-size:26px}.touch-device .room-tag{display:none}.touch-device .paint-feedback{display:none}.touch-device .toolbox{grid-template-columns:1fr;gap:15px}.touch-device .brush-section{border:0;padding:0}.touch-device .fill-section{grid-column:auto}.touch-device .color-section{padding:0;border:0}.touch-device .colors{justify-content:space-between;gap:3px}.touch-device .color-pot{width:34px;min-height:34px}.touch-device .toast{top:70px}
}
@media (orientation:landscape) and (max-width:1400px){
  .touch-device{overflow:hidden;overscroll-behavior:none}
  .touch-device .site-header,.touch-device .page-intro,.touch-device .below,.touch-device .site-footer{display:none}
  .touch-device main{padding:0;max-width:none}
  .touch-device .studio{height:100vh;height:100dvh;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
  .touch-device .game-toolbar{flex:0 0 44px;height:44px;padding:0 12px}.touch-device .room-label small{display:none}.touch-device .game-toolbar>div{gap:3px}.touch-device .game-toolbar button span{display:none}
  .touch-device .viewport,.touch-device.embed .viewport{height:auto;min-height:0;flex:1}
  .touch-device .toolbox{flex:0 0 auto;display:grid;grid-template-columns:180px minmax(280px,1fr) 110px;gap:12px;padding:9px 12px;align-items:center}
  .touch-device .tool-label{display:none}.touch-device .brush-section,.touch-device .color-section{padding:0;border:0}.touch-device .brush-option{height:42px;font-size:10px;padding:5px}.touch-device .brush-option kbd{display:none}.touch-device .brush-options{gap:4px}
  .touch-device .colors{flex-wrap:nowrap;gap:4px}.touch-device .color-pot{width:36px;min-height:36px;height:36px}.touch-device .fill-section{display:block;grid-column:auto}.touch-device .fill-label{font-size:9px}.touch-device #refill{font-size:9px;min-height:24px}.touch-device #refill kbd{display:none}.touch-device .fill-track{margin:5px 0 1px}
  .touch-device .game-footer{position:absolute;right:194px;top:6px;z-index:2;background:none;border:0;padding:0;min-height:32px}.touch-device .game-footer button{font-size:10px;min-height:32px}
  .touch-device .welcome{left:50%;top:50%;transform:translate(-50%,-50%);width:350px;max-width:60%;padding:15px 24px;text-align:center}.touch-device .welcome h2{font-size:29px;margin:8px 0}.touch-device .welcome h2 br{display:none}.touch-device .welcome p{font-size:11px;line-height:1.6;margin:8px 0}.touch-device .welcome .primary{margin:12px 0 0;padding:12px 20px}.touch-device .welcome .desktop-tip{display:none}.touch-device .handwritten{font-size:12px}
  .touch-device .room-tag{top:12px;left:14px;font-size:9px;padding:7px 10px}
  .touch-device dialog{max-height:90dvh;overflow:auto;padding:22px 30px}.touch-device dialog h2{font-size:25px;margin:10px 0}
}
@media (orientation:landscape) and (max-width:740px){
  .touch-device .toolbox{grid-template-columns:145px minmax(240px,1fr) 88px;gap:8px;padding:7px 10px}.touch-device .color-pot{width:29px;min-height:32px;height:32px}.touch-device .brush-option{font-size:9px;gap:4px}.touch-device .brush-icon{margin-right:1px}.touch-device .joystick{width:94px;height:94px}.touch-device .joystick-thumb{left:23px;top:23px}.touch-device .joystick-area{bottom:8px}.touch-device .joystick-label{display:none}.touch-device .paint-feedback{display:none}.touch-device .room-tag{display:none}.touch-device .welcome{padding:12px 20px}.touch-device .welcome h2{font-size:25px}.touch-device .welcome p{font-size:10px}.touch-device .welcome .handwritten{display:none}.touch-device .game-footer{right:188px}
}

/* Keep the room centered; reserve notch space for controls, not the camera. */
.studio{position:relative;min-width:0}.viewport,.toolbox>div{min-width:0}
@media (orientation:landscape) and (max-width:1400px){
  .touch-device .studio{width:100%;padding-left:0;padding-right:0}
  .touch-device .toolbox{grid-template-columns:minmax(120px,180px) minmax(0,1fr) minmax(72px,110px);padding-inline:max(10px,env(safe-area-inset-left),env(safe-area-inset-right))}
  .touch-device .colors{justify-content:space-between;gap:2px}
  .touch-device .color-pot{flex:0 1 36px;min-width:20px}
}
/* Compact mobile fullscreen, including a browser-sized fallback on iPhone. */
.touch-device.immersive-active{overflow:hidden;overscroll-behavior:none}
.touch-device .studio.immersive{position:fixed;inset:0;z-index:100;width:100%;max-width:none;height:100dvh;margin:0;padding:0;display:flex;flex-direction:column;border:0;border-radius:0}
.touch-device .immersive .game-toolbar{position:absolute;inset:0 0 auto;height:0;min-height:0;padding:0;border:0;z-index:5;pointer-events:none}
.touch-device .immersive .game-toolbar .room-label,.touch-device .immersive .game-toolbar button:not(#fullscreen):not(#fullscreenMenuToggle),.touch-device .immersive .game-footer,.touch-device .immersive .room-tag,.touch-device .immersive .paint-feedback{display:none}
.touch-device .immersive #fullscreen{position:absolute;right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));width:40px;height:40px;min-height:40px;min-width:40px;padding:5px;border:1px solid #ffffffa0;border-radius:12px;background:#fffdfac9;box-shadow:0 2px 10px #35261d15;pointer-events:auto}
.touch-device .immersive .viewport{flex:1;min-height:0;height:auto;width:100%}
.touch-device .immersive .toolbox{flex:0 0 auto;grid-template-columns:140px minmax(0,1fr) 88px;gap:10px;padding:5px max(10px,env(safe-area-inset-left),env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom));display:grid}
.touch-device .immersive .tool-label{display:none}
.touch-device .immersive .brush-section,.touch-device .immersive .color-section{padding:0;border:0}
.touch-device .immersive .brush-options{gap:3px}
.touch-device .immersive .brush-option{height:34px;min-height:34px;font-size:9px;padding:4px;gap:3px}
.touch-device .immersive .brush-option kbd{display:none}
.touch-device .immersive .colors{flex-wrap:nowrap;justify-content:space-between;gap:3px}
.touch-device .immersive .color-pot{flex:0 1 30px;width:30px;min-width:18px;height:30px;min-height:30px}
.touch-device .immersive .fill-section{display:block;grid-column:auto}
.touch-device .immersive .fill-label{font-size:8px}
.touch-device .immersive .fill-track{margin:3px 0 0}
.touch-device .immersive #refill{font-size:8px;min-height:22px;padding:2px 0}
.touch-device .immersive #refill kbd{display:none}
.touch-device .immersive .joystick{width:80px;height:80px}
.touch-device .immersive .joystick-thumb{width:36px;height:36px;left:21px;top:21px}
.touch-device .immersive .joystick-arrows{font-size:17px;line-height:29px}
.touch-device .immersive .joystick-area{left:max(12px,env(safe-area-inset-left));bottom:10px}
.touch-device .immersive .joystick-label{display:none}
.touch-device .immersive #touchLook{right:max(12px,env(safe-area-inset-right));bottom:10px;min-width:92px;height:44px;padding:5px 9px;font-size:11px;border-radius:10px}
.touch-device .immersive #touchLook small{font-size:8px;margin-top:3px}
.touch-device .immersive .hand-brush{height:140px;right:16%;bottom:-35px}
.touch-device .immersive .toast{top:12px;max-width:65%;font-size:10px;padding:8px 12px}
@media (orientation:portrait){
  .touch-device .immersive .toolbox{grid-template-columns:1fr 88px;gap:5px 10px}
  .touch-device .immersive .color-section{grid-column:1/-1;grid-row:2}
  .touch-device .immersive .rotate-hint{right:58px}
}
.touch-device .immersive .fill-label{gap:2px;font-size:7px;white-space:nowrap}
.touch-device .immersive .brush-icon{height:18px;margin-right:2px}

/* Fullscreen actions stay tucked away next to the exit button. */
#fullscreenMenuToggle{display:none}
.immersive #fullscreenMenuToggle{display:inline-block}
.fullscreen-menu{position:absolute;right:max(8px,env(safe-area-inset-right));top:calc(max(8px,env(safe-area-inset-top)) + 46px);z-index:8;width:196px;padding:5px;background:#fffdfaf5;border:1px solid #e8e1dc;border-radius:12px;box-shadow:0 8px 28px #35261d26}
.fullscreen-menu button{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:9px 12px;text-align:left;font-size:12px;border-radius:7px}
.fullscreen-menu button span{font:20px Arial;width:20px;text-align:center}
.fullscreen-menu button:hover:not(:disabled){background:var(--pink)}
.touch-device .immersive .game-toolbar #fullscreenMenuToggle{display:block;position:absolute;right:calc(max(8px,env(safe-area-inset-right)) + 46px);top:max(8px,env(safe-area-inset-top));width:40px;height:40px;min-width:40px;min-height:40px;padding:5px;border:1px solid #ffffffa0;border-radius:12px;background:#fffdfac9;box-shadow:0 2px 10px #35261d15;pointer-events:auto;font:25px Arial}
#fullscreenMenuToggle[aria-expanded=true]{background:var(--pink)}
