/* Phone UI: play first; room tools open in bottom sheets. */
.phone-scores,.phone-tools,.hand-swipe-hint{display:none}
#room-sheet{width:min(100%,540px);max-width:100%;max-height:85dvh;margin:auto auto 0;padding:12px 18px max(22px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;border:1px solid #a882cf;background:#2b1c4d;overflow-y:auto;overscroll-behavior:contain}
.sheet-handle{width:40px;height:4px;border-radius:10px;background:#ab90cb70;margin:0 auto 16px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sheet-heading h2{font-size:24px;margin:0}.sheet-close{width:44px;height:44px;border:1px solid #ffffff25;border-radius:14px;background:#ffffff0b;color:white;font-size:26px}#room-sheet .voice-panel{margin:0}#room-sheet .activity{display:block!important}#room-sheet .table-drawer{border:0;padding:0}#room-sheet .table-drawer>summary{display:none}#room-sheet .panel{margin-top:10px}
@media(max-width:720px){
    body{overflow-x:clip}header{height:54px;margin:0 12px}.brand{font-size:33px}.brand span{font-size:6px;letter-spacing:1.3px}.icon{width:36px;height:36px}nav{gap:6px}.account-link{max-width:105px;overflow:hidden;text-overflow:ellipsis;font-size:10px;min-height:36px}#rules-button{min-width:30px;min-height:36px}
    #room{padding:6px 8px max(12px,env(safe-area-inset-bottom));max-width:100%}.room-heading{min-height:40px;margin:0 2px 5px;gap:5px}.room-heading>div:first-child{min-width:0}.room-heading .eyebrow{font-size:8px;letter-spacing:.6px;white-space:nowrap}.room-heading h2{font-size:16px!important;margin-top:4px}.room-tools{flex-direction:row;gap:5px;align-items:center}.room-tools .secondary,.room-tools .text{min-height:38px;min-width:45px;border-radius:11px;padding:8px;font-size:9px}.room-tools #invite{font-size:0;gap:0}.room-tools #invite:after{content:'Invite ↗';font-size:10px}.room-tools #leave{border:1px solid #ffffff20;background:#ffffff05;font-size:0}.room-tools #leave:after{content:'Leave';font-size:10px}
    body[data-in-game=true] .game-layout>aside:first-child{display:none}
    .phone-scores{display:block;margin:0 0 8px;padding:7px 10px 8px;border:1px solid #aa86d534;border-radius:14px;background:#34225595}
    .phone-match-meta{display:flex;justify-content:space-between;color:#c3a8e3;font-size:8px;letter-spacing:.7px;margin-bottom:5px;text-transform:uppercase}.phone-mode{font-size:7px}.phone-team-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.phone-team{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.phone-team+div{border-left:1px solid #ffffff20;padding-left:14px}.phone-team strong{font-size:11px;display:block;white-space:nowrap;color:#e9dafa}.phone-team .dot{width:6px;height:6px;margin-right:5px}.phone-team small{display:block;font-size:8px;color:#baa6d3;white-space:nowrap}.phone-team small span{color:#ffdf7c;font-size:10px;margin-left:2px}.phone-team b{font:500 28px 'Fredoka',sans-serif;color:#ffe18c;line-height:1}.phone-team.my-team strong{color:#b1f9df}
    body[data-in-game=false] .phone-scores{display:none}
    .table-trump{min-height:42px;margin:0 0 24px;padding:6px 11px;gap:9px;border-width:1px;border-radius:12px}.table-trump .trump-symbol{font-size:29px;width:30px}.table-trump .trump-caption{font-size:7px;letter-spacing:1px}.table-trump strong{font-size:19px;line-height:1.05}.table-trump.not-set strong{font-size:13px}.table-trump small{display:none}.table-trump .trump-lock{margin-left:auto;font-size:7px}.table-trump.not-set .trump-symbol{font-size:22px}
    .table{height:clamp(280px,calc(100svh - 390px),360px);margin:0 25px;border-radius:110px;border-width:6px}.table:before{inset:11px}.table-mark{font-size:65px}.table-mark small{font-size:6px}.seat.top{top:-19px}.seat.bottom{bottom:-19px}.seat.left{left:-31px}.seat.right{right:-31px}.avatar{width:35px;height:35px;font-size:23px}.seat .name{font-size:8px;padding:3px 6px;line-height:1.2;max-width:83px;margin-top:3px}.seat small{font-size:7px;line-height:1.2;margin-top:2px}.seat.active .avatar{outline-offset:2px}.center-cards.positioned-cards{height:190px;width:180px}.played-card{gap:3px}.played-card .played-by{max-width:78px;font-size:7px;padding:2px 4px}.captured-pile.top{top:13px;left:calc(50% + 45px)}.captured-pile.bottom{bottom:13px;left:calc(50% + 45px)}.captured-pile.left{top:calc(50% + 43px);left:3px}.captured-pile.right{top:calc(50% + 43px);right:3px}.captured-pile .pile-cards{height:43px}.capture-announcement{top:40%;font-size:9px}
    .hand-dock{margin:25px 0 0;padding:6px 5px 7px;border-radius:16px;background:#291c4eee;box-shadow:none;position:relative}.turn-bar{font-size:10px;line-height:1.3;min-height:16px;margin:0 0 2px;padding:0 3px}.hand{padding:9px 7px 5px;min-height:93px;width:100%;scroll-padding:8px;scrollbar-width:none}.hand::-webkit-scrollbar{display:none}.hand .card{margin-left:-23px}.hand .card:first-child{margin-left:0}.hand:focus-visible{outline:2px solid #b98cea;outline-offset:1px;border-radius:10px}.hand-swipe-hint{display:block;text-align:center;font-size:8px;color:#bca5d6;letter-spacing:.2px;line-height:1.2;margin:0 0 3px}.hand-swipe-hint[hidden]{display:none}.table-actions{margin:4px 0 0;gap:7px}.table-actions:empty{display:none}.table-actions button{padding:10px 12px;min-height:44px;font-size:11px}
    .phone-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.phone-tools button{min-height:43px;border:1px solid #9b77c650;border-radius:12px;background:#432b63;color:#ebddfa;font:800 11px 'Nunito',sans-serif}.phone-tools #phone-voice-count:not(:empty){display:inline-grid;place-items:center;background:#a5f3d6;color:#263e43;border-radius:50%;width:17px;height:17px;margin-left:5px;font-size:9px}.play-area>.voice-panel{display:none}#room>.game-layout>.activity{display:none!important}body[data-in-game=true]>footer{display:none}
    #room-sheet .voice-panel{display:block;padding:12px;border:0;background:#ffffff05}#room-sheet .voice-heading{flex-wrap:wrap}#room-sheet .voice-heading .primary{min-height:44px}#room-sheet #voice-controls button{min-height:44px;font-size:11px}.voice-person{font-size:11px;padding:8px 10px}#room-sheet .panel{font-size:12px}
    #home{padding-top:23px}.hero h1{font-size:58px;margin:16px 0}.hero>p{font-size:13px}.hero-actions{margin:20px 0 14px}.hero-art{min-height:250px;margin-top:8px}.hero-art .art-card{width:105px;height:150px}.hero-art .art-card strong{font-size:55px}.hero-art .art-card b{font-size:18px}.hero-art .orbit{width:225px;height:225px}.art-label{padding:10px;bottom:0;left:9%;right:9%}.art-label span{font-size:6px}.art-label strong{font-size:16px}.features{margin-top:17px}.customize-bar{margin-top:25px}.avatar-choice{min-height:44px}.deck-control select{min-height:44px}.hero .eyebrow{font-size:7px}dialog input,dialog select{font-size:16px}dialog{max-height:90dvh;overflow-y:auto;padding:30px 22px}.auth-layout{margin-top:22px}.auth-intro h1{font-size:39px}.auth-intro .avatar-parade{display:none}.auth-intro p{margin-bottom:10px}.auth-perks{font-size:9px}.auth-card{padding:23px 20px}
}
@media(max-width:370px){.room-heading .eyebrow{font-size:7px}.room-tools .secondary,.room-tools .text{min-width:40px;padding:6px}.center-cards.positioned-cards{width:162px}.captured-pile.top,.captured-pile.bottom{left:calc(50% + 35px)}.phone-team-row{gap:8px}.phone-team+div{padding-left:8px}.phone-team strong{font-size:10px}.phone-team small{font-size:7px}.phone-team small span{font-size:8px}.hero h1{font-size:51px}.brand span{max-width:64px}.account-link{max-width:78px}nav{gap:3px}.table{margin-left:23px;margin-right:23px}}
@media(max-width:720px){.seat.top{top:-29px}.table-trump{margin-bottom:30px}.hand-dock{padding-top:5px;margin-top:23px}.hand{min-height:90px;padding-top:7px}.seat small{pointer-events:none}}
@media(max-width:720px){#avatar-picker{display:grid;grid-template-columns:repeat(4,44px);gap:8px}.avatar-choice{width:44px;min-height:44px}body{padding-top:env(safe-area-inset-top)}#room{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}}
@media(max-width:720px) and (orientation:landscape){.table{height:280px;width:min(480px,calc(100% - 70px));margin-left:auto;margin-right:auto}.hand{justify-content:center}.phone-scores{max-width:540px;margin-left:auto;margin-right:auto}.table-trump{max-width:540px;margin-left:auto;margin-right:auto}.hand-dock,.phone-tools{max-width:600px;margin-left:auto;margin-right:auto}}
