/* Call-first phone interface: video is persistent, games are an overlay. */
.pip-host{display:none}
@media(max-width:750px){
 body.in-room{--ink:#392951;--coral:#ef927f;background:#d6c9c8;color:var(--ink);grid-template-rows:64px minmax(0,1fr);font-family:Arial,sans-serif}
 body.in-room>header{height:64px;background:#fff8efec;backdrop-filter:blur(24px);justify-content:center;padding:12px;z-index:15}
 body.in-room .brand{font-size:29px;color:var(--coral);letter-spacing:-1.5px;font-weight:800}body.in-room .brand span,body.in-room header>.pill{display:none}
 body.in-room main{padding:0;overflow:hidden}#room{display:block;position:relative;height:100%;gap:0}
 .roomheading{position:fixed;top:calc(var(--app-top,0px) + 12px);left:12px;right:12px;z-index:16;height:40px;pointer-events:none;justify-content:space-between}
 .roomheading button{pointer-events:auto!important;background:#fff!important;border:0!important;color:var(--ink)!important;border-radius:50%!important;min-height:40px!important;height:40px;padding:6px!important}
 .roomheading #mobilemore{margin:0 0 0 auto;width:40px;font-size:20px}.roomheading #invite{display:none}.roomheading #gameshome{width:60px;border-radius:22px!important;font-size:11px}
 body.in-room .layout,body.in-room.keyboard .layout{position:absolute;inset:0;display:block;height:100%;overflow:hidden}
 body.in-room .layout aside,body.in-room .layout.call-focus aside{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0;border-radius:0;box-shadow:none;cursor:default;touch-action:auto;z-index:0;display:flex;background:#b7a9af}
 body.in-room .layout aside .video.remote,body.in-room .layout aside .video.local,body.in-room .layout.call-focus aside .video.local{position:absolute;top:0;bottom:0;left:50%;right:0;width:50%;height:100%;border:0;border-radius:0;margin:0;box-shadow:none;background:linear-gradient(145deg,#c7bddb,#807e9e)}
 body.in-room .layout aside .video.local,body.in-room .layout.call-focus aside .video.local{left:0;right:50%;border-right:2px solid #fff9;background:linear-gradient(145deg,#f4d3bb,#a7969c)}
 body.in-room .layout aside video{object-fit:cover;object-position:50% 25%;height:100%;width:100%}
 body.in-room .layout aside .videolabel,body.in-room .layout aside .local .videolabel,body.in-room .layout aside .remote .videolabel{display:block;top:12px;bottom:auto;left:12px;font-size:11px;max-width:85%;padding:7px 12px;background:#392c455c;color:white;backdrop-filter:blur(10px)}
 body.in-room .layout aside .placeholder,body.in-room .layout aside .remote .placeholder,body.in-room .layout aside .local .placeholder{padding:0 12px;position:absolute;top:11%;height:120px;bottom:auto;gap:8px;width:100%}
 body.in-room .layout aside .placeholder span{font-size:40px;color:#fff9}body.in-room .layout aside .placeholder b,body.in-room .layout aside .local .placeholder b{display:block;font-size:12px;color:#fff;line-height:1.4;text-align:center}
 body.in-room .layout aside #hear{position:fixed;top:76px;left:50%;transform:translateX(-50%);width:140px;bottom:auto;max-width:none;font-size:11px;z-index:30}
 #pip-grip,.callhint{display:none!important}#pip-expand{position:fixed;top:auto;bottom:calc(100px + env(safe-area-inset-bottom));right:14px;z-index:18;width:32px;height:32px;border-radius:50%;background:#fff9;color:var(--ink)}
 body.in-room article,body.in-room .layout[data-pip-edge="bottom"] article{position:absolute;z-index:3;left:14px;bottom:calc(96px + env(safe-area-inset-bottom));width:calc(100% - 28px);height:49%;max-height:480px;min-height:0;padding:16px 14px 12px!important;border:1px solid #fff9;border-radius:26px;background:linear-gradient(130deg,#fffaf6ef,#eee7f6ed);box-shadow:0 10px 30px #30283c29,0 0 0 6px #fff3;backdrop-filter:blur(24px);overflow:visible;gap:8px;color:var(--ink)}
 body.in-room article.lobby{height:58%;max-height:510px}.gamebar,.hostsettings{display:none!important}
 .pip-host{display:flex;position:absolute;left:50%;top:-63px;transform:translateX(-50%);align-items:center;flex-direction:column;pointer-events:none;z-index:2}
 .pip-creature{position:relative;width:70px;height:57px;border-radius:49% 49% 42% 42%;background:radial-gradient(ellipse at 27% 66%,#ffbca788,transparent 19%),radial-gradient(ellipse at 78% 66%,#ffbca788,transparent 19%),linear-gradient(#fffef2,#f2dfc3);box-shadow:inset -3px -4px 5px #bca38233,0 3px 6px #47323a22;display:flex;justify-content:center;align-items:center;gap:20px}
 .pip-creature:before,.pip-creature:after{content:'';position:absolute;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#f8e9d4;box-shadow:0 2px 3px #0002}.pip-creature:before{left:-4px}.pip-creature:after{right:-4px}.pip-creature i{height:8px;width:6px;border-radius:50%;background:#45332e}.pip-creature b{position:absolute;top:28px;font-size:20px;font-weight:400}.pip-name{position:absolute;top:-12px;right:-16px;background:#baa8cc;color:white;border-radius:12px;padding:3px 8px;font-size:9px}
 .pip-speech{position:absolute;bottom:72px;background:#fff7fcf0;backdrop-filter:blur(12px);padding:10px 15px;border-radius:18px;color:#574168;font-size:12px;text-align:center;width:185px;box-shadow:0 5px 15px #24143212}.pip-speech:after{content:'';position:absolute;bottom:-6px;left:48%;border:7px solid transparent;border-bottom:0;border-top-color:#fff7fc}
 #stage{gap:7px}#stage h3{color:var(--ink);font-size:19px}#stage>.roundtag{font-size:8px}#stage>.muted{color:#85758d;font-size:11px}article.lobby #stage h3{font-size:22px}
 .gamecard{padding:12px;gap:6px;border-radius:18px}.gamecard .symbol{font-size:24px;width:38px;height:38px}.gamecard b{font-size:12px;color:var(--ink)}.gamecard small{font-size:9px}.gamecard.mint{background:#e3ecd9}.gamecard.peach{background:#f9dfd4}.gamecard.lilac{background:#e5daf3}
 .productslide{background:transparent;border:0;padding:3px 6px;gap:8px;justify-content:center;position:relative;box-shadow:none}.productslide h4{font-size:clamp(22px,6.8vw,31px);max-width:80%;line-height:1.08;color:var(--ink);letter-spacing:-.9px}.productslide .tagline{font-size:12px;max-width:88%;color:#685576}.productslide .roundtag{font-size:7px;letter-spacing:1px}.productslide .producticon{font-size:48px;right:2px;top:auto;bottom:18px;opacity:.9;max-width:60px}.productslide ul{max-width:83%}.productslide li{font-size:10px;margin:4px 0;line-height:1.2}.productslide .price{font-size:10px;border:0;padding-top:3px;max-width:80%}.productslide .slidefoot{display:none}.productslide .fakechart{max-height:55px}.productslide blockquote{font-size:16px}
 .turnbar{background:#fff8;border:0;border-radius:12px;padding:7px 9px;font-size:11px}.turnbar b{color:#655074}.turnbar #countdown{font-size:17px;color:#e28079}.turnactions button,#pitchtimer{min-height:36px!important;padding:8px!important;font-size:11px!important;background:#b09ac6!important;color:#fff!important;border:0!important;border-radius:13px!important}.twist{font-size:9px;padding:7px;background:#ffe9c6;border:0}.twist b{font-size:10px}
 #mobileactions:not([hidden]){align-items:center;min-height:22px;gap:10px}.deck-dots{display:flex;gap:7px;margin-left:6px}.deck-dots i{height:7px;width:7px;border-radius:50%;background:#d4c9df}.deck-dots i.active{background:var(--coral)}.deck-count{font-size:9px;color:#887597}#mobileactions button{min-height:34px;font-size:10px;background:#b39ac6;border:0}
 #mobiletabs:not([hidden]){height:29px;background:#dfd5e766}#mobiletabs button{color:#8d799e;font-size:10px}#mobiletabs button.active{color:var(--ink)}#answerform{gap:6px}#answerform textarea{background:#fff9;border-color:#ded4e5;min-height:42px}#answerform label{color:#776582;font-size:11px}.formnav button:not(.secondary),#answerform .lock{background:#b29ac7;min-height:35px;font-size:11px}.m-card{padding:12px;background:#fff9}.m-card.host{background:#e6ddf0}.m-card p{font-size:14px}
 #calldock{position:absolute;bottom:env(safe-area-inset-bottom,0px);left:12px;right:12px;height:80px;padding:9px 8px;margin:0 0 7px;z-index:12;border-radius:25px;background:#fff8;backdrop-filter:blur(25px);box-shadow:0 3px 18px #30283c12}
 #calldock .controls{display:flex;align-items:center;gap:8px;width:100%;height:100%}#calldock button{flex:1;background:transparent!important;color:#574269!important;min-width:0;border:0;font-size:9px;padding:0;min-height:58px;border-radius:20px}#calldock button:before{display:block!important;width:37px;height:37px;margin:0 auto 5px;border-radius:50%;background:#fff;color:#b39ac6;line-height:37px;font-size:23px;box-shadow:0 2px 10px #61497b14}#calldock #hangup:before{background:#fa938c;color:white}#calldock #camera:before{content:'▣'}#calldock #audioonly:before{content:'♫'}
 body.in-room.keyboard{grid-template-rows:0 minmax(0,1fr)}body.in-room.keyboard>header,.keyboard .roomheading{display:none!important}body.in-room.keyboard article{bottom:10px;height:calc(100% - 22px);max-height:none}.keyboard .pip-host,.keyboard #calldock,.keyboard #pip-expand{display:none!important}
 .layout.call-focus article{visibility:hidden}.layout.call-focus #pip-expand{background:#fff;bottom:110px}#toast{z-index:40}
 @media(max-height:720px){body.in-room article{height:52%;bottom:87px;padding:10px!important}body.in-room article.lobby{height:61%}.pip-speech{display:none}.pip-host{top:-53px;transform:translateX(-50%) scale(.83);transform-origin:bottom}.productslide{gap:4px}.productslide h4{font-size:23px}.productslide li{font-size:9px}.productslide .tagline{font-size:10px}.productslide .price{font-size:9px}.productslide .producticon{font-size:35px}.turnbar{padding:5px 8px}.turnactions button,#pitchtimer{min-height:30px!important;padding:6px!important}.gamecard{padding:8px;gap:4px}.gamecard .symbol{width:30px;height:30px;font-size:20px}#calldock{height:72px}.pip-creature{height:53px}#stage h3{font-size:16px}}
}
#quickreactions{display:none}
@media(max-width:750px){
 #quickreactions{display:block}#calldock #quickreactions:before{content:'☺'}#calldock #reconnect{display:none!important}
 .roomheading #pip-expand{position:static;display:block;width:40px;height:40px;margin:0;font-size:25px;pointer-events:auto;touch-action:auto}
 #mobilemenu{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;padding:24px 22px calc(24px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:#fff9f5;color:#49345d;box-shadow:0 -15px 60px #23142b22}
 #mobilemenu:before{content:'';display:block;width:32px;height:4px;border-radius:5px;background:#d6c8dc;position:absolute;top:9px;left:calc(50% - 16px)}#mobilemenu::backdrop{background:#30203c55;backdrop-filter:blur(7px)}
 #mobilemenu>button{width:100%;min-height:44px;margin-top:8px;background:#eee5f4;border:0;border-radius:14px;color:#665075}#mobilemenu>button[hidden]{display:none}.menureactions button{background:#f1e6ef}.menutitle button{border:0;background:#eee4f0;border-radius:50%}
 .layout.call-focus #pip-expand{position:static}.productslide,.gamecard,button{ -webkit-tap-highlight-color:transparent }button:active{filter:brightness(.95)}
}
@media(max-width:750px){
 body.in-room .layout aside video{height:64%;object-position:center 35%}
 body.in-room .layout.call-focus aside video{height:100%}
 .productslide{flex:1 1 auto;overflow:hidden}.productslide h4{flex-shrink:0}.productslide .producticon{bottom:28px;font-size:40px}.productslide .tagline,.productslide .price{max-width:84%;flex-shrink:0}
 .productslide:has(.fakechart) h4{font-size:24px}.productslide .roundtag{flex-shrink:0}
}
/* Real glass: both live camera surfaces continue behind every game panel. */
@media(max-width:750px){
 body.in-room .layout aside video{height:100%;object-fit:cover;object-position:center 30%}
 body.in-room article,body.in-room .layout[data-pip-edge="bottom"] article{background:linear-gradient(130deg,#fffaf682,#eee7f66b);backdrop-filter:blur(8px) saturate(1.15);-webkit-backdrop-filter:blur(8px) saturate(1.15);border-color:#ffffffa6;box-shadow:0 10px 30px #30283c20,0 0 0 5px #ffffff20}
 #calldock{background:#fff8f075;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
 body.in-room>header{background:#fff8efb0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
 .productslide h4,#stage h3,.productslide .tagline,.productslide .price{text-shadow:0 1px 8px #ffffffa8}
 .pip-speech{background:#fff7fcb8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
 .gamecard.mint{background:#e3ecd982}.gamecard.peach{background:#f9dfd482}.gamecard.lilac{background:#e5daf382}.gamecard:nth-child(4){background:#f9e8b782}
 .turnbar{background:#ffffff70}.m-card,.m-card.host{background:#fff8}.waiting{background:#fff6;color:#584666}#answerform textarea{background:#ffffff8c}
 #mobilemenu{background:#fff9f5c4;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
}
/* Compact camera row above a solid game panel. Never crop the camera feed. */
@media(max-width:750px){
 body.in-room{background:#fff5ed}
 body.in-room>header{background:#fff5ed;backdrop-filter:none;-webkit-backdrop-filter:none}
 body.in-room .layout,body.in-room.keyboard .layout{inset:0 12px calc(94px + env(safe-area-inset-bottom));height:auto;display:grid;grid-template-rows:minmax(120px,29%) minmax(0,1fr);gap:12px;overflow:hidden}
 body.in-room .layout aside,body.in-room .layout.call-focus aside{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0;background:transparent;display:block;border:0!important;border-radius:0!important}
 body.in-room .layout aside .video.remote,body.in-room .layout aside .video.local,body.in-room .layout.call-focus aside .video.local{top:0;bottom:0;height:100%;width:calc(50% - 4px);border:0;border-radius:18px;overflow:hidden;background:#2e2836}
 body.in-room .layout aside .video.local,body.in-room .layout.call-focus aside .video.local{left:0;right:auto}
 body.in-room .layout aside .video.remote{left:auto;right:0}
 body.in-room .layout aside video,body.in-room .layout.call-focus aside video{width:100%;height:100%;object-fit:contain;object-position:center;max-height:100%;transform:none}
 body.in-room .layout aside #local{transform:scaleX(-1)}
 body.in-room .layout aside .videolabel,body.in-room .layout aside .local .videolabel,body.in-room .layout aside .remote .videolabel{top:auto;bottom:7px;left:7px;padding:4px 8px;font-size:10px;background:#292432bd}
 body.in-room .layout aside .placeholder,body.in-room .layout aside .remote .placeholder,body.in-room .layout aside .local .placeholder{top:0;height:100%;padding:14px 9px 30px;justify-content:center;gap:7px}
 body.in-room .layout aside .placeholder span{font-size:30px}body.in-room .layout aside .placeholder b,body.in-room .layout aside .local .placeholder b{font-size:11px}
 body.in-room article,body.in-room article.lobby,body.in-room .layout[data-pip-edge="bottom"] article{position:relative;inset:auto;width:100%;height:100%;max-height:none;min-height:0;padding:14px!important;background:#f1eaf7;border:1px solid #e5dbea;border-radius:22px;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;overflow:hidden}
 .pip-host{display:none}
 .gamecard.mint{background:#e3ecd9}.gamecard.peach{background:#f9dfd4}.gamecard.lilac{background:#e5daf3}.gamecard:nth-child(4){background:#f9e8b7}
 .turnbar,.m-card,.m-card.host,.waiting,#answerform textarea{background:#fffaf7}.productslide h4,#stage h3,.productslide .tagline,.productslide .price{text-shadow:none}
 #calldock{background:#eee4ef;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
 #mobilemenu{background:#fff9f5;backdrop-filter:none;-webkit-backdrop-filter:none}
 body.in-room .layout.call-focus{grid-template-rows:minmax(0,1fr)}body.in-room .layout.call-focus article{display:none}
 body.in-room.keyboard .layout{inset:0 12px 8px;grid-template-rows:minmax(65px,20%) minmax(0,1fr);gap:8px}
 body.in-room.keyboard article{height:100%;bottom:auto}
 @media(max-height:720px){body.in-room .layout{bottom:calc(86px + env(safe-area-inset-bottom));grid-template-rows:minmax(112px,26%) minmax(0,1fr);gap:9px}body.in-room article{padding:11px!important}}
}
@media(max-width:750px){
 body.in-room{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;grid-template-rows:60px minmax(0,1fr);background:#faf7f5}
 body.in-room>header{height:60px;background:#faf7f5}
 body.in-room .brand{font-size:26px;letter-spacing:-1px;color:#db826f}
 .roomheading button{box-shadow:0 1px 3px #31274106}
 body.in-room article,body.in-room article.lobby{background:#f0ebf5;border-color:#e8e0ee;border-radius:24px}
 body.in-room .layout aside .video.remote,body.in-room .layout aside .video.local{border:1px solid #ffffff14;border-radius:20px;background:#302b35}
 .gamecard{border:1px solid #ffffff80;border-radius:18px;box-shadow:none}.gamecard:after{display:none}.gamecard .symbol{background:#ffffff65}.gamecard b{font-weight:650;letter-spacing:-.2px}
 #stage h3{font-family:inherit;letter-spacing:-.55px}.productslide h4{font-family:inherit;font-weight:750;letter-spacing:-1px}
 #mobiletabs:not([hidden]){background:#e5deec;border-radius:12px;padding:3px;height:34px}#mobiletabs button{border-radius:9px}
 #calldock{background:#f0eaf1;border:1px solid #e9e2ec;border-radius:23px}
 #calldock button{font-size:10px;font-weight:550;color:#675a71!important}
 #calldock button:before{font-size:21px;width:38px;height:38px;line-height:38px;box-shadow:none;color:#8c759f}
 #calldock #hangup:before{background:#ed8d85}
 #mobileactions button,.formnav button,#pitchtimer,.turnactions button{font-weight:600;letter-spacing:-.1px}
 button:focus-visible{outline:2px solid #a17bb9;outline-offset:3px}
}

@media(max-width:750px){
#calldock #mute:before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238c759f%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2M12%2019v3M8%2022h8%22%2F%3E%3C%2Fsvg%3E");background-size:21px;background-position:center;background-repeat:no-repeat}
#calldock #camoff:before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238c759f%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2213%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22m15%209%207-4v14l-7-4%22%2F%3E%3C%2Fsvg%3E");background-size:21px;background-position:center;background-repeat:no-repeat}
#calldock #hangup:before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2015v-4c5-6%2013-6%2018%200v4l-5-1v-3a12%2012%200%200%200-8%200v3z%22%2F%3E%3C%2Fsvg%3E");background-size:21px;background-position:center;background-repeat:no-repeat}
#calldock #camera:before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238c759f%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2213%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22m15%209%207-4v14l-7-4%22%2F%3E%3C%2Fsvg%3E");background-size:21px;background-position:center;background-repeat:no-repeat}
#calldock #audioonly:before{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238c759f%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2013v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2211%22%20width%3D%225%22%20height%3D%229%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2211%22%20width%3D%225%22%20height%3D%229%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E");background-size:21px;background-position:center;background-repeat:no-repeat}
}
