﻿/* Profile and sound controls use the player's actual saved character. */
#profile-avatar{width:34px;height:34px;object-fit:cover;border-radius:50%;background:#fff8ee;border:1px solid #b08ac8}.profile-button{gap:7px;min-width:70px;padding:6px 10px}.profile-button>span{font-size:20px}.brandbar{padding-right:49px}.sound-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%);padding:8px;min-width:38px}.sound-toggle .icon{width:22px;height:22px}.sound-toggle.muted{opacity:.6}.sound-toggle.muted:after{content:'';position:absolute;width:25px;height:2px;background:#8b5a9f;rotate:-45deg}.avatar-upload-label{margin-top:7px;font-size:17px;padding:6px 10px;cursor:pointer}.profile-popover .card .b{font-size:16px}.profile-popover h3{font-size:23px;margin-bottom:10px}#avatar-upload-status{display:block;font-size:14px;color:#7b5492;margin-top:5px}.sound-settings{display:grid;gap:8px;font-size:16px;border-top:1px dashed #cdb0d9;margin-top:12px;padding-top:12px}.sound-settings label{display:flex;align-items:center;gap:8px}.sound-settings input{accent-color:#8650bd}
.room-nav #room-settings{display:inline-flex;gap:7px}.room-nav #room-settings .icon{width:25px;height:25px}
/* The settings are a sheet on desktop and a compact expandable drawer on phones. */
.rules-toggle{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;font:28px/1.15 'Patrick Hand',cursive;color:var(--ink);background:none;border:0;padding:0 0 14px;text-align:center}.rules-toggle>span:first-child{margin:auto}.rules-summary,.rules-chevron{display:none}.rules-fields{min-height:0}.party-rules{justify-content:center}
/* Full classic Paint toolbox and menus on larger screens. */
.paint-menu{display:flex;gap:0;background:#ece9d8;border-bottom:1px solid #aaa994;font:13px/1.2 'Segoe UI',Arial,sans-serif;flex:none;position:relative;z-index:3;color:#222}.paint-menu details{position:relative}.paint-menu summary{list-style:none;padding:4px 9px;cursor:pointer}.paint-menu summary::-webkit-details-marker{display:none}.paint-menu details[open]>summary,.paint-menu summary:hover{background:#c5ddf9}.paint-menu-items{position:absolute;top:100%;left:0;background:#f4f3ed;border:1px solid #aaa;box-shadow:2px 3px 6px #0003;min-width:150px;padding:3px;z-index:8}.paint-menu-items button{display:block;width:100%;border:0;background:transparent;text-align:left;font:13px/1.4 'Segoe UI',Arial,sans-serif;padding:5px 9px;white-space:nowrap;color:#222}.paint-menu-items button:hover{background:#c7e2fc}
#gtl .tl{grid-template-columns:repeat(2,28px);grid-auto-rows:29px;gap:2px;padding:5px 2px 0;align-content:start}#gtl .tl .tool-button .icon{stroke-width:1.5}.paint-workspace{grid-template-columns:65px minmax(0,1fr)}
#gtl .pal{display:grid;grid-template-columns:repeat(8,21px) 29px;grid-template-rows:repeat(2,20px);gap:3px;padding:6px 8px;justify-content:start;min-height:0}#gtl .color-swatch{width:21px;height:20px}#gtl .custom-ink{grid-column:9;grid-row:1/3;align-self:center;margin-left:5px}#gtl .custom-ink input{width:27px;height:29px;padding:0;border:1px solid #888;background:transparent;cursor:pointer}
#gtl .ac{padding-top:8px;border-top:1px solid #b6b1a3}#gtl .ac label{font-size:11px}#gtl .action-buttons{gap:2px}
.paint-text-entry{position:absolute;left:8px;right:8px;bottom:8px;padding:9px;background:#ece9d8;border:1px solid #8299b5;box-shadow:0 3px 12px #0002;font:13px 'Segoe UI',Arial,sans-serif;display:flex;align-items:end;gap:5px;z-index:4}.paint-text-entry label{display:grid;gap:3px;flex:1;min-width:0}.paint-text-entry input{width:100%;min-width:0;font:16px sans-serif;padding:5px}.paint-text-entry button{font:13px sans-serif;padding:6px}.canvas-paper{position:relative}.drawing-panel .canvas-paper.paint-zoomed{overflow:auto;display:block}.drawing-panel .canvas-paper.paint-zoomed canvas{max-width:none;flex:none}
#avt .tl{display:grid;grid-template-columns:repeat(8,32px);gap:3px}#avt .pal{gap:5px}#avt .custom-ink input{width:30px;height:28px}
/* Drawings and a compact podium take priority in the final gallery. */
.results-sheet{max-width:1400px;display:flex;flex-direction:column;overflow:hidden}.results-sheet>.tb{font-size:21px;flex:none;padding:9px 16px}.results-sheet>.body{padding:16px 24px;overflow:auto;min-height:0;display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.6fr);grid-template-rows:auto auto 1fr;gap:12px 28px;align-items:start}.results-heading{grid-column:1;grid-row:1;text-align:center}.results-heading h2{font-size:29px;line-height:1.15;margin:0 0 5px}.results-heading p{font-size:16px;margin:0;color:#8a679a}.winners-podium{grid-column:1;grid-row:2;display:flex;align-items:end;justify-content:center;gap:7px;padding-top:8px}.podium-place{display:flex;flex:1;max-width:120px;min-width:0;flex-direction:column;align-items:center;text-align:center;gap:3px}.podium-place img{width:54px;height:54px;border:2px solid #d0afd9;border-radius:50%;background:#fff8ec;object-fit:cover}.podium-place b{font-weight:400;font-size:17px;max-width:100%;overflow-wrap:anywhere;line-height:1.1}.podium-place>span{font-size:14px;color:#8d6e9d}.podium-step{width:100%;height:55px;background:#d8c0ef;border:1px solid #b99acb;border-radius:6px 6px 0 0;display:grid;place-items:center}.podium-step strong{font-weight:400;font-size:28px}.place-1 .podium-step{height:85px;background:#ffe7a1;border-color:#dfbf68}.place-1 img{width:64px;height:64px;border-color:#e2bb43}.place-3 .podium-step{height:39px;background:#f3c9b1;border-color:#d5a68b}.results-actions{grid-column:1;grid-row:3;display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.results-actions .b{font-size:18px;padding:7px 12px}.gallery-heading{grid-column:2;grid-row:1;font-size:23px;display:flex;justify-content:space-between;align-items:center;margin:0}.gallery-heading span{font-size:15px;color:#92719f}.results-gallery{grid-column:2;grid-row:2/5;display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:17px;padding:4px 0 12px;margin:0}.results-gallery .pol{padding:7px 7px 9px;box-shadow:1px 4px 7px #4b226c15}.results-gallery .pol:before{display:none}.results-gallery .pol img{width:100%;aspect-ratio:8/5;object-fit:contain;background:white}.results-gallery figcaption{font-size:16px;display:flex;justify-content:space-between;gap:6px;margin:5px 0}.results-gallery figcaption b{font-weight:400}.results-gallery figcaption span{font-size:14px;color:#916ea0}.drawing-save{font-size:13px;color:#8d60a6;text-underline-offset:3px}.remaining-scores{grid-column:1;font-size:15px}.remaining-scores li{padding:3px}.remaining-scores li b{float:right}.remaining-scores summary{cursor:pointer}
@media(min-width:701px) and (max-height:760px){#gtl .tl{grid-auto-rows:25px}#gtl .tl .tool-button{height:25px}#gtl .ac{padding:3px 2px}#gtl .ac input{height:14px}#gtl .ac label{font-size:10px}}
@media(max-width:700px){
 body{padding:0 8px max(7px,env(safe-area-inset-bottom))}main{grid-template-rows:52px minmax(0,1fr);gap:5px}.brandbar{padding-right:32px;gap:5px}.brand-logo{width:76px}.landing-nav{gap:5px}.landing-nav .nav-button{padding:7px;min-height:35px}.profile-button{min-width:42px;padding:4px 5px;gap:2px}.profile-button>span{display:none}#profile-avatar{width:28px;height:28px}.sound-toggle{padding:5px;min-width:28px;box-shadow:none}.sound-toggle .icon{width:18px;height:18px}.room-nav{gap:3px}.room-nav #room-settings{display:inline-flex;padding:5px}.room-nav #room-settings>span{display:none}.room-nav #room-settings .icon{width:19px;height:19px}.room-nav .nav-button .icon{width:19px;height:19px}.room-label{font-size:13px;padding:5px}.room-label b{font-size:13px}.count-badge{font-size:13px;padding:4px}.brandbar .room-nav .nav-button{padding:5px}.profile-popover{top:53px;right:0;width:min(330px,calc(100vw - 20px));max-height:calc(100dvh - 90px);font-size:17px;padding:15px}.profile-popover .stats b{font-size:25px}.avatar-presets{margin:10px 0}
 /* Keep conversation open; settings expand upwards only when requested. */
 .lob{grid-template-rows:minmax(0,1fr) 75px;padding:3px 0 4px;gap:10px}.lobby-social{grid-template-rows:102px minmax(0,1fr);gap:9px}.roster{display:flex;flex-direction:column;position:relative;min-height:0}.roster .tape-title{font-size:18px;line-height:1.1;margin:0 0 3px;padding:4px 10px;align-self:start}.roster #lpl{display:flex;flex:1;min-height:0;max-height:none;overflow:auto;gap:8px;padding:8px 4px 4px}.pc,.invite-card{width:82px;min-width:82px;min-height:0;font-size:13px;padding:7px 4px 4px;gap:1px;rotate:0}.pc:nth-child(even){rotate:0}.pc img{width:27px;height:27px;margin:0}.pc b{font-size:12px;margin:2px 0;line-height:1}.pc:before{width:12px;height:12px;top:-6px}.status-pill{font-size:10px;padding:1px 5px}.invite-card{font-size:12px;line-height:1}.invite-card .icon{width:21px;height:21px}.invite-card br{display:none}.crown{left:-5px;top:-9px}.crown .icon{width:23px;height:23px}.ready-button{position:absolute;top:0;right:0;margin:0;font-size:12px;padding:3px 7px;z-index:2}
 .lobby-chat{min-height:0}.lobby-chat .body{padding:6px 9px 9px}.lobby-chat .tb{font-size:18px;padding:6px 9px}.chat-empty h3{font-size:20px}.chat-empty small{font-size:14px}.quiet-cat{height:55px}.lobby-chat #lchat{min-height:0}.lobby-chat #lcf{gap:6px}.lobby-chat #lci{min-height:42px;font-size:16px;padding:8px}.lobby-chat #lcf .b{min-width:58px;font-size:17px;padding:7px}#lcstatus:empty{display:none}
 .party-rules{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;margin:0;border-radius:7px;isolation:auto;z-index:4}.party-rules:before,.party-rules:after,.party-rules .clip{display:none}.rules-toggle{grid-column:1;grid-row:1;padding:0;text-align:left;font-size:19px;display:grid;grid-template-columns:1fr auto;gap:3px}.rules-toggle>span:first-child{margin:0}.rules-summary{display:block;grid-column:1;font-size:12px;color:#8b6a55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rules-chevron{display:block;grid-column:2;grid-row:1/3;font-size:22px}.rules-open .rules-chevron{rotate:180deg}.rules-fields{display:none}.rules-open .rules-fields{display:block;position:absolute;bottom:calc(100% + 7px);left:0;right:0;padding:15px;background:#ffedb0;border:1px solid #d8b960;border-radius:9px;box-shadow:0 -6px 30px #51345b30;max-height:50dvh;overflow:auto}.rules-fields .room-invite{display:flex;margin-bottom:12px}.rules-fields .set{gap:9px}.rules-fields .set label{font-size:16px;padding:7px}.rules-fields .set select{width:70px;font-size:16px}.party-rules #start{grid-column:2;grid-row:1;margin:0;font-size:20px;padding:9px 13px;width:auto;min-width:143px;box-shadow:0 3px 0 #55267a}.party-rules #start:after{inset:3px}.party-rules .host-note,.party-rules #lv{display:none}
 /* One large canvas; just pencil, brush, eraser, fill, undo and color below it. */
 .gm{grid-template-rows:minmax(270px,1fr) 36px minmax(175px,.58fr);gap:8px;padding:0 0 2px}.drawing-panel{padding:2px}.paint-menu{display:none}.paint-title{min-height:22px;font-size:11px;padding:3px 5px}.drawing-panel .round-strip{padding:3px 5px}.drawing-panel .round-badge,.drawing-panel .timer-badge{font-size:13px}.drawing-panel .hint{font-size:18px}
 .paint-workspace{display:flex;flex-direction:column;min-height:0;gap:0}.drawing-panel .canvas-paper{order:0;flex:1;min-height:0;width:100%;border:0}
 #gtl{display:grid;order:1;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px 30px;gap:0;padding:3px 5px 4px;flex:none;background:#ece9d8;border:0;border-top:1px solid #aaa994;border-radius:0;min-height:0;width:100%}
 #gtl .tl{grid-column:1;grid-row:1;display:flex;gap:5px;align-items:center;justify-content:start;padding:0;border:0;background:none;min-width:0}#gtl .tl .tool-button{display:none}#gtl .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=eraser],[data-t=fill]){display:grid;width:32px;height:30px;padding:4px}#gtl .tl .tool-button .icon{width:23px;height:23px}
 #gtl .ac{grid-column:2;grid-row:1;display:flex;align-items:center;flex-direction:row;gap:3px;padding:0;border:0;position:static;align-self:center}#gtl .ac label{display:none}#gtl .action-buttons{position:static;display:flex;flex-direction:row;gap:2px;padding:0;border:0;background:none}#gtl .action-buttons .tool-button{width:29px;height:30px}#gtl .action-buttons .tool-button .icon{width:21px;height:21px}#gtl [data-a=r]{display:none}
 #gtl .pal{grid-column:1/3;grid-row:2;display:flex;justify-content:start;align-items:center;gap:7px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior:contain;padding:4px 2px;border:0;background:none;min-width:0;min-height:0;width:100%;max-width:none;scrollbar-width:none}#gtl .pal::-webkit-scrollbar{display:none}#gtl .color-swatch{width:23px;height:23px;min-width:23px;flex:none;border-radius:3px}#gtl .color-swatch:nth-child(-n+8){display:none}#gtl .custom-ink{display:block;flex:none;margin:0;padding:0}#gtl .custom-ink input{width:24px;height:24px}
 .practice-controls .b{font-size:12px;margin:2px 0;padding:3px 8px}.game-chat{padding:5px 8px 8px}.chat-tabs{margin-bottom:5px}.chat-tab{font-size:17px;padding:5px}.game-chat #gi{min-height:42px;font-size:16px;padding:9px}.game-chat #gf .b{min-width:44px}.players-panel #pls{padding:1px 2px}.pr{min-width:103px;padding:3px 5px}.pr b{font-size:13px}.pr img{width:23px;height:23px}
 /* Mobile results: winner and podium above the artwork grid. */
 .results-sheet>.tb{font-size:17px;padding:7px 10px}.results-sheet>.body{display:flex;flex-direction:column;gap:10px;padding:12px;align-items:stretch}.results-heading h2{font-size:25px}.results-heading p{font-size:14px}.winners-podium{padding-top:2px;gap:6px}.podium-place{max-width:100px}.podium-place img{width:40px;height:40px}.place-1 img{width:49px;height:49px}.podium-place b{font-size:14px}.podium-place>span{font-size:12px}.podium-step{height:33px}.place-1 .podium-step{height:53px}.place-3 .podium-step{height:25px}.podium-step strong{font-size:23px}.results-actions .b{font-size:16px;padding:6px 12px}.gallery-heading{font-size:20px;margin-top:5px}.gallery-heading span{font-size:13px}.results-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:0 0 9px}.results-gallery figcaption{display:block;font-size:14px}.results-gallery figcaption span{display:block;font-size:12px}.drawing-save{font-size:12px}.remaining-scores{font-size:14px}
 #avt .tl{grid-template-columns:repeat(6,30px)}#avt .tool-button{width:30px;height:30px}.avatar-editor .body{padding:10px}#avt .color-swatch{width:20px;height:20px}.avatar-editor .avc{max-width:220px}
}
@media(max-width:700px) and (max-height:710px){.gm{grid-template-rows:minmax(250px,1fr) 32px minmax(145px,.52fr);gap:6px}.paint-title{min-height:20px}.game-chat .chat-tab{padding:4px}.game-chat #gi{min-height:37px;padding:7px}.lob{grid-template-rows:minmax(0,1fr) 68px}.lobby-social{grid-template-rows:94px minmax(0,1fr)}.party-rules #start{font-size:18px;min-width:131px}}
@media(max-width:700px){
 .lobby-social,.roster,.lobby-chat,#lpl,.party-rules{min-width:0;max-width:100%}.lobby-social{grid-template-columns:minmax(0,1fr)}
 #gtl .color-swatch:nth-child(-n+8){display:block}#gtl .color-swatch:nth-child(n+2):nth-child(-n+8),#gtl .color-swatch:nth-child(10){display:none}
 #gtl .tl [data-t=pencil]{order:1}#gtl .tl [data-t=brush]{order:2}#gtl .tl [data-t=eraser]{order:3}#gtl .tl [data-t=fill]{order:4}
}
@media(max-width:700px){.lobby-social{grid-template-rows:118px minmax(0,1fr)}}
@media(max-width:700px) and (max-height:710px){.lobby-social{grid-template-rows:109px minmax(0,1fr)}}
.mobile-lobby-audio{display:none}
.game-rules-summary h3,.game-audio-controls h3{font-size:22px;margin:0 0 12px}.game-rules-summary p{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:18px;margin:0;padding:8px 0;border-bottom:1px dashed #cfb9d7}.game-rules-summary b{font-weight:400;text-transform:capitalize}.game-audio-controls{display:grid;gap:12px;margin-top:20px}.game-audio-controls h3{margin-bottom:0}.game-audio-controls label{display:flex;gap:10px;align-items:center;font-size:18px}.game-audio-controls input{width:18px;height:18px;accent-color:#8650bd}
@media(max-width:700px){
 body[data-view=lobby] #room-settings,body[data-view=lobby] #sound-toggle,body[data-view=game] #sound-toggle{display:none!important}
 body[data-view=lobby] #profile-toggle,body[data-view=game] #profile-toggle{display:none!important}
 body[data-view=lobby] .brandbar,body[data-view=game] .brandbar{padding-right:0}
 body[data-view=game] .room-nav #room-settings{display:inline-flex}
 .lob{grid-template-rows:minmax(0,1fr) 101px;gap:12px}
 .party-rules{padding:13px 11px;border:1px solid #d0ad55;box-shadow:0 3px 0 #d0ad5530;gap:10px}
 .rules-toggle{padding:7px 8px;border:1px solid #c7a258;border-radius:7px;background:#fff8df;box-shadow:0 2px 0 #cfad6140;min-height:61px;font-size:18px}
 .rules-toggle>span:first-child{display:flex;align-items:center;gap:5px;white-space:nowrap}.rules-toggle .icon{width:20px;height:20px}.rules-summary{font-size:12px}.rules-chevron{font-size:22px}
 .party-rules #start{min-width:135px;font-size:19px;padding:12px 10px;white-space:normal;text-align:center}
 .mobile-lobby-audio{display:block;border-top:1px dashed #cbae68;margin-top:14px;padding-top:10px}.mobile-lobby-audio .game-audio-controls{margin:0}.mobile-lobby-audio h3{font-size:18px}.mobile-lobby-audio label{font-size:16px}
}
@media(max-width:380px){.rules-toggle{font-size:16px;padding:7px 5px}.rules-toggle .icon{width:17px;height:17px}.rules-summary{font-size:11px}.party-rules #start{min-width:126px;font-size:18px}}
@media(max-width:700px) and (max-height:710px){.lob{grid-template-rows:minmax(0,1fr) 91px}.party-rules{padding:10px}.rules-toggle{min-height:58px}}
/* Header glyphs float directly on the paper. */
.brandbar .nav-button,.brandbar .profile-button,.brandbar .sound-toggle{border:0;background:transparent;border-radius:0;box-shadow:none!important}
.brandbar .nav-button:hover:enabled,.brandbar .profile-button:hover:enabled,.brandbar .sound-toggle:hover:enabled{background:transparent;box-shadow:none;translate:0 -1px}
.brandbar .profile-button{padding:5px}.brandbar #profile-avatar{border:0;background:none;border-radius:0;object-fit:contain}
body:not([data-view=land]) #help{display:none}
.brush-cursor{position:fixed;z-index:60;pointer-events:none;border:1px solid #24202b;box-shadow:0 0 0 1px #fff9;border-radius:50%;transform:translate(-50%,-50%);background:transparent}
.avatar-editor .avatar-actions{grid-column:1/-1;margin-top:0;justify-content:center}
.avatar-editor .avc{aspect-ratio:1;overflow:hidden}.avatar-editor #avc{display:block;width:100%;height:100%;aspect-ratio:1}
@media(max-width:700px){
 /* Reserve the true screen center for the room code, regardless of icon count. */
 body[data-view=lobby] .brandbar,body[data-view=game] .brandbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:3px}
 body[data-view=lobby] .brand,body[data-view=game] .brand{grid-column:1;grid-row:1;justify-self:start;min-width:0}
 .room-top{position:static;grid-column:2;grid-row:1;justify-self:center;left:auto;top:auto;translate:none;flex:none}
 .room-nav{grid-column:3;grid-row:1;justify-self:end;gap:4px}
 .room-label{rotate:0;font-size:14px;padding:5px 8px;box-shadow:none}.room-label b{font-size:14px;letter-spacing:.5px}
 .room-nav .count-badge{border:0;box-shadow:none;background:transparent;font-size:12px;padding:2px}
 .room-nav #room-settings,.room-nav #room-leave{padding:4px;min-height:32px;min-width:26px}
 .brandbar .nav-button .icon{width:24px;height:24px}.brandbar .landing-nav .nav-button{padding:6px;min-width:32px}
 body[data-view=avw]{overflow:hidden;overscroll-behavior:none}
 body[data-view=avw] main{height:calc(100dvh - max(8px,env(safe-area-inset-bottom)))}
 #avw.avatar-editor{height:100%;max-height:100%;width:100%;max-width:none;margin:0;display:flex;flex-direction:column;overflow:hidden;border-radius:8px}
 #avw>.tb{flex:none;padding:6px 10px;font-size:20px;min-height:34px}
 #avw .avatar-layout{display:grid;flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto 38px;gap:7px;padding:8px}
 #avw .avc{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;width:auto;max-width:100%;height:100%;max-height:100%;min-height:0;aspect-ratio:1;place-self:center;margin:0;padding:0;border-radius:5px;overflow:hidden}
 #avw #avc{display:block;width:100%;height:100%;aspect-ratio:1;max-width:none;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:none}
 #avw .avatar-controls{grid-column:1;grid-row:2;min-width:0}
 #avw #avt{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:31px auto 29px;gap:5px;padding:2px 0}
 #avw #avt .tl{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-evenly;gap:2px;width:100%;min-width:0}
 #avw #avt .tl .tool-button{display:none}
 #avw #avt .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=eraser],[data-t=fill],[data-t=pick],[data-t=line],[data-t=rect],[data-t=circle]){display:grid;width:30px;height:30px;flex:none;padding:4px}
 #avw #avt [data-t=pencil]{order:-5}#avw #avt [data-t=brush]{order:-4}#avw #avt [data-t=eraser]{order:-3}#avw #avt [data-t=fill]{order:-2}
 #avw #avt .tool-button .icon{width:23px;height:23px}
 #avw #avt .pal{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;width:100%;border:0;margin:0;padding:3px 2px;max-width:none}
 #avw #avt .color-swatch{width:20px;height:20px;flex:none;min-width:20px}.avatar-editor .custom-ink input{width:24px;height:23px}
 #avw #avt .ac{grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%}
 #avw #avt .ac label{font-size:13px;gap:6px}#avw #avt .ac input{width:85px}#avw #avt .action-buttons{gap:5px}#avw #avt .action-buttons .tool-button{width:29px;height:28px}
 #avw .avatar-actions{grid-column:1;grid-row:3;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px;margin:0;padding:0}
 #avw .avatar-actions .b{font-size:15px;padding:7px 9px;min-height:32px}#avw .avatar-actions .primary{font-size:16px;padding:7px 11px}
}
/* Bigger, free-floating touch targets and clearly framed player characters. */
.brandbar{padding-right:0}.brandbar #profile-avatar{width:42px;height:42px;border:2px solid #19131d;border-radius:50%;background:#fffaf1;object-fit:cover}
.brandbar .profile-button{min-width:48px;min-height:48px;padding:3px;gap:4px}.brandbar .profile-chevron{width:14px;height:14px}
.brandbar .nav-button{min-height:44px;min-width:44px}.brandbar .nav-button .icon{width:29px;height:29px}
.pc img,.pr img,.profile-popover #hav{border:1.5px solid #19131d;border-radius:50%;object-fit:cover;background:#fffaf1}
.pr img{width:42px;height:42px;flex:none}.pr{min-height:58px}.paint-title .paint-app-icon{width:17px;height:17px;stroke-width:1.6}.podium-step strong{display:flex;align-items:center;justify-content:center;gap:5px}.podium-step strong .icon{width:24px;height:24px}
#page-ink{z-index:2;pointer-events:none!important;display:block}.hero-art{touch-action:none;user-select:none;-webkit-user-select:none}
@media(max-width:700px){
 .brandbar .landing-nav{gap:9px}.brandbar .landing-nav .nav-button{width:44px;height:44px;padding:7px}.brandbar .landing-nav .nav-button .icon{width:29px;height:29px}
 .brandbar .profile-button{width:48px;height:48px;min-width:48px;padding:3px}.brandbar #profile-avatar{width:40px;height:40px}.brandbar .profile-chevron{display:none}
 .room-nav #room-settings,.room-nav #room-leave,.brandbar .room-nav .nav-button{min-width:43px;min-height:44px;padding:7px}.room-nav #room-settings .icon,.room-nav #room-leave .icon{width:28px;height:28px}.room-nav{gap:3px}.room-nav .count-badge{font-size:12px;padding:1px}
 .gm{grid-template-rows:minmax(250px,1fr) 52px minmax(175px,.58fr)}
 .players-panel #pls{padding:2px 2px 4px;gap:8px}.pr{min-width:133px;height:100%;min-height:44px;padding:3px 6px;gap:7px}.pr img{width:36px;height:36px}.pr b{font-size:14px;line-height:1.15}.pr .score{font-size:17px}
 .lobby-social{grid-template-rows:132px minmax(0,1fr)}.pc img{width:39px;height:39px}.pc,.invite-card{width:89px;min-width:89px}.pc b{font-size:13px;margin:3px 0}.status-pill{font-size:11px}
 .rules-chevron{width:20px;height:20px}
 #page-ink{display:block}.page-drawing-on main .hero-art{pointer-events:auto}
}
@media(max-width:700px) and (max-height:710px){.gm{grid-template-rows:minmax(235px,1fr) 52px minmax(145px,.52fr)}.lobby-social{grid-template-rows:123px minmax(0,1fr)}}
/* Full standings stay available in Room Info on every screen. */
.room-standings{margin:12px 0 18px}.room-standings h3{font-size:21px!important;margin:0 0 10px}#room-players{list-style:none;padding:0;margin:0;display:grid;gap:6px}#room-players li{display:flex;align-items:center;gap:8px;padding:7px 6px;background:#f0e8f6;border-radius:6px;min-width:0}#room-players li.is-me{background:#fff0bb}#room-players .standing-rank{font-size:15px;width:18px;flex:none;text-align:center;color:#9471a5}#room-players img{width:34px;height:34px;border:1px solid #251b2d;border-radius:50%;object-fit:cover;background:#fff8ee;flex:none}#room-players li>div{min-width:0;flex:1}#room-players b{font:18px/1.1 'Patrick Hand',cursive;display:block;overflow-wrap:anywhere}#room-players small{font-size:13px;display:block;color:#9872a6}#room-players strong{font-size:19px;font-weight:400;margin-left:auto;flex:none}
@media(max-width:700px){
 body:is([data-view=lobby],[data-view=game]) main{grid-template-rows:var(--room-header-height,64px) minmax(0,1fr)}
 body:is([data-view=lobby],[data-view=game]) .brandbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:5px;overflow:visible}
 .room-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;max-width:100%;width:max-content}
 .room-top .room-label{gap:4px;padding:4px 7px;min-height:29px;font-size:13px;max-width:100%;white-space:nowrap;line-height:1.1}.room-label b{font-size:14px;letter-spacing:.5px}.room-top .count-badge{display:flex;align-items:center;gap:4px;min-height:17px;line-height:1;font-size:12px;padding:0;border:0;box-shadow:none;background:none;white-space:nowrap}
 .room-top .count-badge .icon{display:block;width:15px;height:15px}.room-top .count-badge b{font-weight:400}.room-nav{gap:3px;min-width:0}
 body:is([data-view=lobby],[data-view=game]) .room-header-stacked{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:46px 35px;gap:2px 7px}
 .room-header-stacked .brand{grid-column:1;grid-row:1}.room-header-stacked .room-nav{grid-column:2;grid-row:1}.room-header-stacked .room-top{grid-column:1/-1;grid-row:2;flex-direction:row;gap:12px;justify-self:center}
 /* At most three leaders and the current player, with no sideways scrolling. */
 .players-panel #pls{display:grid;grid-template-columns:repeat(var(--compact-count,1),minmax(0,1fr));gap:6px;overflow:visible;padding:3px 2px;max-width:100%;width:100%;height:100%}
 #pls .phone-extra{display:none}#pls .pr{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:1fr 1fr;gap:0 4px;min-width:0;max-width:150px;width:100%;height:100%;min-height:0;padding:3px 4px;align-items:center;rotate:0}
 #pls .pr img{grid-column:1;grid-row:1/3;width:32px;height:32px}#pls .pr .pr-info{grid-column:2;grid-row:1;min-width:0}#pls .pr b{font-size:12px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}#pls .pr small{display:none}#pls .pr .score{grid-column:2;grid-row:2;margin:0;font-size:15px;line-height:1;justify-self:start}#pls .pr .crown{display:none}
 #round-info{overscroll-behavior:contain}#room-players b{font-size:16px}#room-players li{padding:6px}#room-players img{width:32px;height:32px}
}
@media(min-width:701px){.brandbar.room-header-flow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px}.room-header-flow .room-top{position:static;left:auto;translate:none;justify-self:center;min-width:0}.room-header-flow .room-label{font-size:21px;padding:7px 10px;gap:7px}.room-header-flow .room-label b{letter-spacing:1px}.room-header-flow .room-nav{justify-self:end}}
@media(max-width:700px){.room-nav #room-leave{display:inline-flex!important}.players-panel #pls .pr.phone-extra{display:none}}
@media(max-width:700px){#round-info>h3{font-size:20px;margin:2px 0 6px;line-height:1.1}#round-info #artist-info{font-size:15px;margin:0 0 8px}.room-standings{margin:8px 0 14px}.room-standings h3{font-size:18px!important;margin:0 0 7px}#room-players{gap:5px}#room-players li{padding:5px 6px}#room-players small{font-size:12px;line-height:1.1}}
/* Keep dynamic invite content inside its assigned grid area, including before fonts load. */
.brandbar{z-index:6}.land{min-height:0;align-items:stretch}.land .play-stack{height:100%;max-height:100%;min-height:0;align-self:stretch;display:flex;flex-direction:column;padding-top:13px;padding-bottom:8px;overflow:hidden}
.play-stack>.pin{top:0}.play-stack:before{inset:20px 0 3px 12px;rotate:0}.play-stack #play-notebook{flex:1;min-height:0;height:auto;max-height:100%;overflow:auto;overscroll-behavior:contain;rotate:0;scrollbar-width:thin}
#play-notebook>*{flex-shrink:0}.invite-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:16px;line-height:1.15;padding:8px;margin-top:12px;text-align:left}.invite-notice>span{flex:1;min-width:0}.invite-notice b{white-space:nowrap}.invite-notice .b{width:auto;min-width:0;margin:0;padding:7px 10px;flex:none;font-size:17px}
body[data-view=game] #room-leave{display:none!important}.game-setting-actions{margin-top:20px;padding-top:15px;border-top:1px dashed #cdb0d9}.leave-game-button{color:#963d63;border-color:#bd859a;font-size:18px}.leave-game-button .icon{width:22px;height:22px}
@media(min-width:701px){
 .lob{height:100%;min-height:0;grid-template-rows:minmax(0,1fr)}
 .party-rules{height:100%;max-height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto auto;align-content:stretch;align-items:start;justify-content:normal;gap:11px;rotate:0}
 .party-rules .rules-toggle{grid-row:1;min-height:0;padding:0;font-size:27px;align-self:center}
 .party-rules .rules-fields{grid-row:2;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;padding:2px 3px 5px;scrollbar-width:thin}
 .party-rules #start{grid-row:3;align-self:stretch;min-height:52px;margin:0;padding:10px 7px;font-size:27px}
 .party-rules #host-note{grid-row:4;margin:0;font-size:16px;line-height:1.2;text-align:center}.party-rules #lv{grid-row:5;margin:0 auto;font-size:15px;line-height:1.2;align-self:center}
 .party-rules .room-invite{margin-bottom:12px}.party-rules .set{gap:10px}
}
@media(max-width:700px){
 .land{grid-template-rows:minmax(85px,.65fr) minmax(0,1.4fr) 65px;gap:11px}
 .land .play-stack{padding-top:12px;padding-bottom:5px}.play-stack #play-notebook{padding-top:16px;padding-bottom:14px}
 .invite-notice{margin-top:9px;padding:7px;font-size:14px;gap:6px}.invite-notice .b{font-size:15px;padding:6px 8px;white-space:normal;max-width:115px}
 .land .party-hero .hero-art{max-height:100%;min-height:0;object-fit:contain}
}
/* No background ink or drawing gestures on phones. */
@media(max-width:700px){#page-ink{display:none!important}.hero-art{touch-action:auto}}
/* Fit the actual controls to the panel instead of introducing a scroll area. */
.land .play-stack{container-type:size}.play-stack #play-notebook{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto auto auto auto;gap:clamp(5px,1.4cqh,10px);align-content:center;padding:clamp(10px,2.3cqh,20px) clamp(12px,3cqw,24px) clamp(10px,2.3cqh,20px) clamp(33px,7cqw,58px);overflow:visible;scrollbar-width:none}
#play-notebook>*{min-width:0;margin:0}#play-notebook .play-heading{grid-column:1/3;grid-row:1;font-size:clamp(23px,6.5cqh,39px);line-height:1.1;margin:0 0 3px}#play-notebook .play-heading:before,#play-notebook .play-heading:after{font-size:clamp(19px,4cqh,32px);margin:0 5px}
#play-notebook .nickname-row{grid-column:1/3;grid-row:2;font-size:clamp(14px,3.7cqh,19px);gap:8px;margin:0}#play-notebook .nickname-row input{font-size:clamp(15px,3.8cqh,20px);padding:4px 8px;max-width:none}
#play-notebook #create{grid-column:1/3;grid-row:3}#play-notebook #join-focus{grid-column:1/3;grid-row:4}#play-notebook>.b.big{font-size:clamp(19px,5cqh,31px);line-height:1.1;padding:clamp(7px,1.7cqh,12px) 10px;min-height:0;gap:10px;margin:0}#play-notebook>.b.big .icon{width:clamp(22px,5cqh,31px);height:clamp(22px,5cqh,31px)}
 #play-notebook .or-divider{display:none}#play-notebook #join-form{grid-column:1/3;grid-row:5;gap:8px}#play-notebook #jc{font-size:clamp(15px,3.8cqh,21px);padding:6px 8px}#play-notebook #joinb{font-size:clamp(17px,4.1cqh,23px);padding:5px 12px}
#play-notebook #practice{grid-column:1;grid-row:6;justify-self:start;font-size:clamp(13px,3.2cqh,18px);padding:5px 9px;gap:5px}#play-notebook #practice .icon{width:20px;height:20px}#play-notebook #quick{grid-column:2;grid-row:6;justify-self:end;font-size:clamp(13px,3.2cqh,17px);line-height:1.1;padding:3px 0;white-space:normal}
#play-notebook #urlj{grid-column:1/3;grid-row:7;font-size:clamp(12px,3.1cqh,16px);padding:5px 7px;gap:5px;margin:0}#play-notebook #urlj .b{font-size:clamp(13px,3.2cqh,17px);padding:5px 7px}
@container (max-height:330px){#play-notebook #create{grid-column:1;grid-row:3}#play-notebook #join-focus{grid-column:2;grid-row:3}#play-notebook #join-form{grid-row:4}#play-notebook #practice,#play-notebook #quick{grid-row:5}#play-notebook #urlj{grid-row:6}#play-notebook .play-heading:before,#play-notebook .play-heading:after{display:none}#play-notebook>.b.big{font-size:17px;padding:7px 5px;gap:5px}#play-notebook>.b.big .icon{width:20px;height:20px}}
/* Small settings remain fully visible, with no field scrollbar. */
@media(min-width:701px){
 .party-rules{container-type:size;padding:clamp(12px,3cqh,24px) 16px;grid-template-rows:auto auto auto auto auto;align-content:space-between;gap:clamp(5px,1.3cqh,10px)}
 .party-rules .rules-toggle{font-size:clamp(22px,4.3cqh,28px)}.party-rules .rules-fields{overflow:visible;max-height:none;height:auto;padding:0}
 .party-rules .room-invite{margin-bottom:clamp(6px,1.4cqh,12px)}.party-rules .code{font-size:clamp(19px,3.8cqh,25px)}.party-rules .room-invite .b{font-size:14px;padding:5px 7px}
 .party-rules .set{gap:clamp(5px,1.3cqh,10px)}.party-rules .set label{font-size:clamp(14px,3.1cqh,20px);padding:clamp(4px,1.05cqh,8px) 8px;gap:7px;min-height:0}.party-rules .set label>.icon,.party-rules .aa-icon{width:clamp(20px,4cqh,27px);height:clamp(20px,4cqh,27px)}
 .party-rules .set select{font-size:clamp(14px,2.8cqh,19px);padding:3px 6px;width:83px}.party-rules #start{font-size:clamp(22px,4.3cqh,29px);min-height:0;padding:8px 7px}.party-rules #host-note{font-size:clamp(13px,2.5cqh,16px)}.party-rules #lv{font-size:14px}
}
@container (max-height:440px){.party-rules .set{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.party-rules .set label{font-size:13px;padding:5px;gap:4px;display:flex;flex-wrap:wrap}.party-rules .set label>.icon,.party-rules .aa-icon{display:none}.party-rules .set select{width:100%;font-size:14px}.party-rules .set label:last-child{grid-column:1/3}.party-rules .set label:last-child select{width:86px;margin-left:auto}}
/* Keep host crowns within the roster's padded scrolling bounds. */
#lpl{padding-top:20px;padding-left:8px}.pc>.crown{left:0;top:-10px;rotate:-16deg;z-index:2}.pc>.crown .icon{width:27px;height:27px}.pc img,.pr img,#profile-avatar,#hav,#room-players img,.podium-place img{padding:0!important;object-fit:cover}
@media(max-width:700px){
 .land{grid-template-rows:minmax(45px,1fr) minmax(0,410px) 56px;gap:10px}.land .play-stack{padding-top:12px;padding-bottom:5px}
 .rules-open .rules-fields{overflow:visible;max-height:none;padding:12px}.rules-fields .room-invite{margin-bottom:9px}.rules-fields .set{gap:6px}.rules-fields .set label{font-size:15px;padding:5px}.rules-fields .set select{font-size:15px;padding:3px}.mobile-lobby-audio{margin-top:9px;padding-top:8px}.mobile-lobby-audio .game-audio-controls{gap:8px}.mobile-lobby-audio .game-audio-controls h3{font-size:17px}.mobile-lobby-audio .game-audio-controls label{font-size:14px}
 .roster #lpl{padding-top:18px;padding-left:7px;padding-bottom:4px}.pc>.crown{left:0;top:-10px}.pc>.crown .icon{width:25px;height:25px}.lobby-social{grid-template-rows:142px minmax(0,1fr)}
}
/* Round and information popups are taped notes with compact typography. */
.info-note>.win{max-width:530px}.info-note .tb{font-size:27px;padding:12px 16px 7px}.info-note .body{font-size:18px;line-height:1.3;padding:10px 20px 17px}.info-note .instructions-list{gap:12px;margin:0 0 14px}.info-note .body>p:last-child{margin-bottom:0}
.round-note>.win{width:min(100%,560px);max-height:calc(100dvh - 50px);overflow:hidden;padding:22px 8px 8px;rotate:-1deg}.round-note .tb{font-size:23px;padding:10px 14px 5px}.round-note .body{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;font-size:16px;padding:8px 14px 12px;max-height:calc(100dvh - 140px);min-height:0}.round-reveal{text-align:center}.round-reveal>span{font-size:15px;color:#8d689b}.round-reveal h3{font-size:27px;margin:3px 0 0;line-height:1.1}.round-note .pv{margin:0!important;border:0;border-radius:4px;max-height:38dvh;object-fit:contain;background:#fffdf5}.round-scores{font-size:16px;max-height:16dvh;overflow:auto}.round-scores li{padding:5px 0}.round-next{font-size:14px;text-align:center;margin:0;color:#9673a3}
/* Every player's stats stay visible beside the podium and gallery. */
.results-stats{grid-column:1;grid-row:4;min-width:0}.results-stats h3{font-size:20px;margin:0 0 9px}.final-stats-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.final-player{display:flex;align-items:center;gap:7px;padding:6px 7px;border:1px solid #decae8;border-radius:5px;background:#f5edf8;min-width:0}.final-player.is-me{background:#fff0bf;border-color:#e3ca84}.final-rank{font-size:13px;color:#9473a4;flex:none;width:14px}.final-player>div{flex:1;min-width:0}.final-player b{display:block;font-size:16px;font-weight:400;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.final-player small{display:block;font-size:11px;line-height:1.2;color:#9473a4}.final-player strong{font-size:18px;font-weight:400;flex:none}
.results-sheet>.body{grid-template-rows:auto auto auto minmax(0,1fr)}.results-gallery{grid-row:2/5}
@media(max-width:700px){
 .round-note .body{padding:7px 10px 10px;gap:8px}.round-note .tb{font-size:21px}.round-reveal h3{font-size:24px}.round-note .pv{max-height:34dvh}.info-note .tb{font-size:23px}.info-note .body{font-size:17px;padding:9px 14px 14px}
 .results-sheet .results-stats{order:3}.results-sheet .results-heading{order:0}.results-sheet .winners-podium{order:1}.results-sheet .results-actions{order:2}.results-sheet .gallery-heading{order:4}.results-sheet .results-gallery{order:5}.results-stats h3{font-size:18px;margin-bottom:6px}.final-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.final-player{gap:4px;padding:5px;min-height:39px}.final-player b{font-size:13px}.final-player small{font-size:10px}.final-player strong{font-size:15px}.final-rank{font-size:11px;width:10px}
}
#play-notebook>.b.big{min-height:44px}
@container (max-height:330px){#play-notebook>.b.big{min-height:36px}}
@media(min-width:701px){.party-rules .set label{font-size:clamp(16px,3.4cqh,20px)}.party-rules .set select{font-size:clamp(15px,3cqh,19px)}}
.play-stack #play-notebook,.party-rules{rotate:none}
@media(min-width:701px){.party-rules{padding:clamp(10px,2cqh,18px) 14px;grid-template-rows:auto max-content auto auto auto}.party-rules #start .icon{width:25px;height:25px}}
@container (max-height:440px){
 .party-rules .set{gap:6px}.party-rules .set label{display:grid;grid-template-columns:minmax(0,1fr) auto;flex-wrap:nowrap;font-size:13px;line-height:1.1;padding:5px;gap:4px;min-height:35px}
 .party-rules .set select{width:59px;font-size:14px;padding:3px}.party-rules .set label:last-child select{width:75px}
 .party-rules .room-invite{margin-bottom:7px}.party-rules .code{font-size:18px}.party-rules .room-invite .b{font-size:12px;padding:4px 6px}
}
/* Spread controls through the panel instead of clustering them in its center. */
.play-stack #play-notebook{align-content:space-evenly}
@media(min-width:701px){
 .party-rules{grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:clamp(8px,1.7cqh,15px)}
 .party-rules .rules-fields{display:flex;flex-direction:column;min-height:0;height:100%;gap:clamp(8px,1.6cqh,14px)}
 .party-rules .room-invite{flex:none;margin-bottom:0}.party-rules .set{flex:1;min-height:0;grid-template-rows:repeat(5,minmax(0,1fr));gap:clamp(8px,1.6cqh,14px)}
 .party-rules .set label{align-self:stretch;min-height:0;align-items:center}
 #info-tab,#round-info{display:none!important}#guess-panel{display:flex!important}.game-chat .chat-tabs{max-width:none}.game-chat #guess-tab{flex:none;border:0;box-shadow:none;background:transparent;font-size:22px;padding:6px 2px;text-align:left}
}
@container (max-height:440px){.party-rules .set{grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}.party-rules .rules-fields{gap:6px}}
/* Editing controls belong to the homepage; the rest of the profile stays useful. */
body:not([data-view=land]) #goav,body:not([data-view=land]) .avatar-upload-label,body:not([data-view=land]) #avatar-upload-status,body:not([data-view=land]) .avatar-presets{display:none!important}
body:not([data-view=land]) #hav{pointer-events:none;cursor:default}
.profile-popover .card{gap:18px}.profile-popover .card #goav{margin-top:12px}.profile-popover .card .avatar-upload-label{margin-top:12px}.avatar-presets{margin:20px 0;gap:12px}
.quiet-frog{display:block;width:215px;height:75px;flex:none;margin:0 auto 4px}
/* The entire results sheet is one large taped sticky note. */
.results-sheet{position:relative;background:#fff0b7;border:0;border-radius:4px 7px 3px 5px;box-shadow:4px 8px 0 #70517c13,0 15px 30px #4b226c20;padding-top:14px;isolation:isolate}
.results-sheet:before{content:'';position:absolute;left:calc(50% - 62px);top:3px;width:124px;height:30px;background:#e3ba68b0;rotate:-5deg;z-index:3;pointer-events:none}
.results-sheet>.tb{background:transparent;color:var(--ink);border-radius:0;padding:20px 22px 7px;font-size:23px;justify-content:center;text-align:center}
.results-sheet>.body{background:transparent;padding-top:12px}.final-player{min-height:34px;padding:8px 10px;background:#fff9df;border-color:#dec783;gap:8px}.final-player.is-me{background:#ffe296;border-color:#cfae58}.final-player b{font-size:17px}.final-player strong{font-size:19px}.final-stats-grid{gap:8px}.results-stats h3{font-size:21px}.results-gallery .pol{background:#fffdf1}.results-actions{gap:15px}
@media(max-width:700px){
 .quiet-frog{height:55px;width:185px}.results-sheet{padding-top:12px}.results-sheet:before{height:25px;width:106px;left:calc(50% - 53px)}.results-sheet>.tb{font-size:17px;padding:19px 12px 6px}.results-sheet>.body{padding:12px;gap:12px}
 .final-player{min-height:33px;padding:7px}.final-player b{font-size:14px}.final-player strong{font-size:16px}.final-stats-grid{gap:7px}.results-stats h3{font-size:19px}
}
/* Restore full-width Create/Join controls, with one public matchmaking action. */
.play-stack #play-notebook{grid-template-rows:repeat(7,auto);gap:clamp(6px,1.7cqh,12px);align-content:space-evenly}
#play-notebook #create{grid-column:1/3;grid-row:3}#play-notebook #join-focus{grid-column:1/3;grid-row:4}
#play-notebook>.b.big{font-size:clamp(21px,5.5cqh,33px);padding:clamp(8px,1.9cqh,14px) 12px;min-height:44px;gap:12px}#play-notebook>.b.big .icon{width:clamp(24px,5.5cqh,34px);height:clamp(24px,5.5cqh,34px)}
#play-notebook .or-divider{display:flex;grid-column:1/3;grid-row:5;font-size:clamp(16px,3.5cqh,23px);line-height:1;margin:0;gap:15px}
#play-notebook #join-form{grid-column:1/3;grid-row:6}#play-notebook #jc{font-size:clamp(16px,4.2cqh,23px);padding:7px 9px}#play-notebook #joinb{font-size:clamp(18px,4.4cqh,25px);padding:6px 13px}
#play-notebook #quick{grid-column:1/3;grid-row:7;justify-self:center;min-width:170px;min-height:38px;font-size:clamp(16px,3.7cqh,21px);padding:7px 18px;background:#ecddf8;text-decoration:none;gap:8px}#play-notebook #quick .icon{width:24px;height:24px}
@container (max-height:330px){#play-notebook>.b.big{min-height:37px;font-size:19px;padding:6px}#play-notebook .play-heading{font-size:22px}#play-notebook #quick{min-height:32px;padding:5px 12px}}
.chat-title{font-size:22px;line-height:1.2;font-weight:400;margin:0;padding:5px 2px}.live-standings{display:none}
@media(min-width:701px){.party-rules{grid-template-rows:auto minmax(0,1fr) auto auto}}
@media(max-width:700px){
 /* Up to twelve player cards use a compact grid instead of a single scrolling row. */
 .lobby-social{grid-template-rows:var(--roster-height,112px) minmax(0,1fr)}
 .roster #lpl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:58px;align-content:start;overflow:visible;max-height:none;min-height:0;padding:18px 6px 4px;gap:6px;width:100%;min-width:0}
 #lpl .pc,#lpl .invite-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;height:58px;min-height:0;padding:3px;gap:0;rotate:none}
 #lpl .pc img{width:27px;height:27px;margin:0}#lpl .pc b{font-size:12px;line-height:1.05;margin:2px 0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#lpl .status-pill{font-size:9px;line-height:1.1;padding:1px 5px;margin:0}#lpl .invite-card{font-size:12px;line-height:1.1;gap:3px}#lpl .invite-card .icon{width:22px;height:22px}
 /* The lower game panel combines guesses and every player's live score. */
 .gm{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(280px,1.05fr) minmax(240px,1fr);gap:9px}
 .players-panel{display:none!important}.drawing-panel{grid-column:1;grid-row:1}.game-chat{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(115px,1fr);grid-template-rows:28px minmax(0,1fr) auto;gap:5px 8px;padding:7px 9px 9px;min-height:0;min-width:0}
 .game-chat .chat-tabs{grid-column:1;grid-row:1;display:block;margin:0;min-width:0}.chat-title{font-size:16px;padding:3px 0;white-space:nowrap}
 .game-chat #guess-panel{display:contents!important}.game-chat #chat{grid-column:1;grid-row:2;min-height:0;min-width:0;padding:2px 0 5px;overflow:auto}.game-chat #chat p{font-size:14px;padding:4px 0}.game-chat #chat .s{font-size:12px}.game-chat #chat .g{font-size:13px;padding:5px}
 .game-chat #gf{grid-column:1/3;grid-row:3;margin-top:3px;gap:7px}.game-chat #gi{font-size:16px;padding:9px;min-height:41px}.game-chat #gf .b{min-width:43px;padding:6px 8px}
 .game-chat .live-standings{display:flex;flex-direction:column;grid-column:2;grid-row:1/3;min-height:0;min-width:0;border-left:1px dashed #c8afd7;padding-left:8px}
 .live-standings h3{flex:none;font-size:16px;line-height:1.2;font-weight:400;margin:0;padding:3px 0 7px}.live-standings #room-players{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:1px;scrollbar-width:thin}
 .live-standings #room-players li{flex:none;min-height:22px;height:22px;padding:1px 2px;gap:3px;border-radius:3px}.live-standings #room-players li:nth-child(-n+3){background:#fff0b8}.live-standings #room-players li.is-me{background:#ead4f9;outline:1px solid #bc91d1;outline-offset:-1px}.live-standings #room-players img{width:18px;height:18px;border-width:1px}.live-standings #room-players .standing-rank{width:10px;font-size:10px}.live-standings #room-players b{font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-standings #room-players small{display:none}.live-standings #room-players strong{font-size:13px;line-height:1.1}
}
@media(min-width:480px) and (max-width:700px){.roster #lpl{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px) and (max-height:650px){
 .roster #lpl{grid-auto-rows:47px}#lpl .pc,#lpl .invite-card{height:47px;padding:2px}#lpl .pc img{width:22px;height:22px}#lpl .pc b{font-size:11px;margin:1px 0}#lpl .status-pill{font-size:9px;padding:0 4px}#lpl .invite-card{font-size:11px}.gm{grid-template-rows:minmax(245px,1.05fr) minmax(190px,1fr);gap:7px}.game-chat{padding:6px 7px 7px;gap:3px 6px}.game-chat #gi{min-height:37px;padding:7px}.live-standings #room-players li{height:22px}
}
@media(max-width:700px){.gm{grid-template-rows:minmax(280px,1.05fr) minmax(220px,var(--phone-chat-size,.65fr))}}
@media(max-width:700px) and (max-height:650px){.gm{grid-template-rows:minmax(245px,1.05fr) minmax(190px,var(--phone-chat-size,.65fr))}}
@media(max-width:700px){.live-standings #room-players{gap:0}}
.room-label{rotate:none}
@media(max-width:700px){.room-top{gap:3px}}
/* A small taped name tag makes the gamertag part of the notebook. */
#play-notebook .gamertag-tag{position:relative;display:block;width:100%;padding:8px 12px 7px;border:1px solid #be9fd0;border-radius:4px 6px 3px 5px;background:#fffaf0;box-shadow:1px 3px 0 #ab8bb72b;cursor:text;transition:border-color .15s,box-shadow .15s}
#play-notebook .gamertag-tag:before{content:'';position:absolute;left:17px;top:-6px;width:49px;height:12px;background:#d1afe3b8;rotate:-6deg;pointer-events:none}
#play-notebook .gamertag-caption{display:block;font-size:14px;line-height:1.1;color:#8d639e;margin:0 0 2px}
#play-notebook .gamertag-entry{display:flex;align-items:center;gap:8px;min-height:29px;min-width:0}
#play-notebook .gamertag-entry>.icon{width:21px;height:21px;color:#8750a5;flex:none}
#play-notebook .gamertag-tag #nm{display:block;flex:1;width:0;max-width:none;min-width:0;min-height:29px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:'Patrick Hand','Comic Sans MS',cursive;font-size:clamp(18px,4.3cqh,24px);line-height:1.2;color:var(--ink);outline:none}
#play-notebook .gamertag-tag:focus-within{border-color:#8750bd;box-shadow:0 0 0 2px #a374ce66,1px 3px 0 #ab8bb72b}
#lpl .player-gamertag{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.1}
@container (max-height:330px){#play-notebook .gamertag-tag{padding:6px 10px}#play-notebook .gamertag-caption{font-size:12px}#play-notebook .gamertag-tag #nm{min-height:26px;font-size:17px}#play-notebook .gamertag-entry{min-height:26px}}
@media(max-width:700px){
 .roster #lpl{grid-auto-rows:72px}
 #lpl .pc,#lpl .invite-card{height:72px}
 #lpl .pc b.player-gamertag{display:block;max-width:100%;width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:12px;line-height:1.1;margin:2px 0}
 #lpl .pc .status-pill{font-size:9px;line-height:1.1;white-space:nowrap;max-width:100%;flex:none}
}
@media(max-width:700px) and (max-height:650px){
 .roster #lpl{grid-auto-rows:60px}
 #lpl .pc,#lpl .invite-card{height:60px}
 #lpl .pc img{width:20px;height:20px}
 #lpl .pc b.player-gamertag{font-size:11px;line-height:1.1;margin:1px 0}
 #lpl .pc .status-pill{font-size:9px;line-height:1.1}
}
@media(prefers-reduced-motion:reduce){#play-notebook .gamertag-tag{transition:none}}
@media(max-width:700px){#lpl .pc{padding:2px}#lpl .pc img{flex:none}#lpl .pc b.player-gamertag{flex:none;margin:1px 0}}
@media(max-width:700px) and (max-height:650px){#lpl .pc b.player-gamertag{line-height:1}#lpl .pc .status-pill{line-height:1}}
@media(max-width:700px){#lpl .pc img{width:26px;height:26px}#lpl .pc b.player-gamertag{line-height:1.15}#lpl .pc .status-pill{padding:0 5px}}
@media(max-width:700px) and (max-height:650px){#lpl .pc img{width:20px;height:20px}#lpl .pc b.player-gamertag{line-height:1}}
/* Keep the empty-chat illustration from crowding input on very short phones. */
.lobby-chat{container-type:size}
@container (max-height:180px){.chat-empty .quiet-frog{display:none}.chat-empty h3{font-size:14px;line-height:1.1;margin:0}.chat-empty h3:after,.chat-empty small{display:none}}
@media(max-width:350px){#lpl .pc b.player-gamertag{font-size:11px;line-height:1.2}}
@media(max-width:350px) and (max-height:650px){#lpl .pc b.player-gamertag{line-height:1}}
/* Reserve real line-box space for descenders and allow narrow fallback fonts to fit. */
@media(max-width:700px){#lpl .pc{padding:1px 2px}#lpl .pc b.player-gamertag{line-height:1.2;margin:0;padding-bottom:2px}}
@media(max-width:700px) and (max-height:650px){#lpl .pc{padding:0 2px}#lpl .pc b.player-gamertag{line-height:1.2}}
#lchat{container-type:size}
@container (max-height:120px){.chat-empty .quiet-frog{display:block;height:34px;margin:0 auto 2px}.chat-empty h3{font-size:17px;line-height:1.1;margin:0}.chat-empty h3:after,.chat-empty small{display:none}}
@container (max-height:45px){.chat-empty .quiet-frog{display:none}.chat-empty h3{font-size:14px}}

/* Keep the homepage actions comfortably inset inside the notebook page. */
#play-notebook .gamertag-tag,#play-notebook>#create,#play-notebook>#join-focus,#play-notebook>#join-form{width:92%;justify-self:center}

/* Phone Paint: five essential tools, with larger edit controls anchored at bottom-right. */
@media(max-width:700px){
 #gtl{display:grid;grid-template-columns:minmax(0,1fr) 116px;grid-template-rows:35px 36px;min-height:75px;padding:2px 4px 3px}
 #gtl .tl{grid-column:1;grid-row:1;gap:3px;overflow:visible}
 #gtl .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=spray],[data-t=eraser],[data-t=fill]){display:grid;width:31px;height:32px;padding:4px}
 #gtl .tl [data-t=pencil]{order:1}#gtl .tl [data-t=brush]{order:2}#gtl .tl [data-t=spray]{order:3}#gtl .tl [data-t=eraser]{order:4}#gtl .tl [data-t=fill]{order:5}
 #gtl .pal{grid-column:1;grid-row:2;justify-content:start;padding:5px 3px;overflow-x:auto}
 #gtl .ac{grid-column:2;grid-row:1/3;align-self:stretch;display:block;position:relative;padding:0;border-left:1px solid #aaa994;background:#ece9d8}
 #gtl .action-buttons{position:absolute;top:0;right:1px;bottom:auto;left:auto;width:110px;height:38px;display:grid;grid-template-columns:repeat(3,36px);grid-template-rows:36px;justify-content:end;gap:1px;padding:0;border:0;background:none}
 #gtl .action-buttons .tool-button{display:grid!important;width:36px;height:36px;padding:5px}
 #gtl .action-buttons .tool-button .icon{width:25px;height:25px}
 #gtl .ac label{position:absolute;right:1px;bottom:0;width:112px;height:31px;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:5px;padding:0 2px;font-size:13px;white-space:nowrap}
 #gtl .ac input{display:block;width:76px;height:22px}
}
@media(max-width:350px){
 #gtl{grid-template-columns:minmax(0,1fr) 108px}
 #gtl .tl{gap:1px}#gtl .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=spray],[data-t=eraser],[data-t=fill]){width:29px}
 #gtl .action-buttons .tool-button{width:33px}
 #gtl .ac input{width:68px}
}

/* Paint edit controls occupy the lower-right corner on desktop too. */
.paint-workspace{position:relative}.canvas-paper,.canvas-paper canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media(min-width:701px){
 #gtl .pal{padding-right:285px}
 #gtl .ac{position:absolute;right:7px;bottom:4px;z-index:3;display:block;width:112px;height:34px;padding:0;border:0;background:#ece9d8}
 #gtl .action-buttons{display:grid;grid-template-columns:repeat(3,34px);gap:2px;justify-content:end}
 #gtl .action-buttons .tool-button{width:34px;height:32px;padding:4px}
 #gtl .action-buttons .tool-button .icon{width:24px;height:24px}
 .game-size-control{position:absolute;right:126px;bottom:5px;z-index:4;display:flex;align-items:center;gap:7px;width:145px;height:31px;padding:0 7px;background:#ece9d8;font:13px/1 'Segoe UI',Arial,sans-serif;color:#343434}
 .game-size-control input{width:105px;height:23px;accent-color:#286cc1}
}

/* Phone controls stay compact; brush size runs vertically beside the canvas. */
@media(max-width:700px){
 #gtl{grid-template-columns:minmax(0,1fr) 94px;grid-template-rows:32px 31px;min-height:68px;padding:2px 4px 3px}
 #gtl .tl{height:32px}#gtl .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=spray],[data-t=eraser],[data-t=fill]){width:29px;height:29px;padding:4px}
 #gtl .ac{grid-column:2;grid-row:1/3;width:auto;height:auto;position:relative}
 #gtl .action-buttons{top:1px;right:1px;width:91px;height:31px;grid-template-columns:repeat(3,29px);grid-template-rows:29px;gap:1px}
 #gtl .action-buttons .tool-button{width:29px;height:29px;padding:4px}
 #gtl .action-buttons .tool-button .icon{width:21px;height:21px}
 #gtl .pal{padding:4px 3px;min-height:0}
 .game-size-control{position:absolute;z-index:5;right:2px;top:5px;bottom:72px;width:27px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 1px;background:#ece9d8e8;border:1px solid #aaa994;border-radius:3px;font:10px/1 'Segoe UI',Arial,sans-serif;color:#343434;touch-action:manipulation}
 .game-size-control span{flex:none}.game-size-control input{flex:1;width:21px;height:100%;min-height:54px;margin:0;writing-mode:vertical-lr;direction:rtl;appearance:auto;accent-color:#286cc1}
 .drawing-panel .canvas-paper{padding-right:29px;background:#ece9d8}.drawing-panel .canvas-paper canvas{background:#fff}
}
@media(max-width:350px){#gtl{grid-template-columns:minmax(0,1fr) 91px}#gtl .tl .tool-button:is([data-t=pencil],[data-t=brush],[data-t=spray],[data-t=eraser],[data-t=fill]){width:27px}}

/* Keep canvas, guesses and live scores visible while the phone keyboard is open. */
@media(max-width:700px){
 body.keyboard-open{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;padding-bottom:0;touch-action:none}
 body.keyboard-open main{position:fixed;z-index:20;left:8px;right:8px;top:var(--visual-viewport-top,0);width:auto;height:var(--visual-viewport-height,100dvh);margin:0;overflow:hidden}
 body.keyboard-game[data-view=game] main{grid-template-rows:minmax(0,1fr);gap:0}
 body.keyboard-game[data-view=game] .brandbar{display:none}
 body.keyboard-game[data-view=game] .gm{height:100%;grid-template-rows:minmax(112px,.78fr) minmax(132px,1.22fr);gap:5px;padding:2px 0}
 body.keyboard-game[data-view=game] .paint-title,body.keyboard-game[data-view=game] #gtl,body.keyboard-game[data-view=game] .game-size-control,body.keyboard-game[data-view=game] .drawing-panel .sb{display:none!important}
 body.keyboard-game[data-view=game] .drawing-panel .canvas-paper{padding-right:0}
 body.keyboard-game[data-view=game] .drawing-panel .round-strip{padding:2px 4px}
 body.keyboard-game[data-view=game] .game-chat{grid-template-rows:23px minmax(0,1fr) auto;padding:4px 7px 5px}
 body.keyboard-game[data-view=game] .game-chat #gi{min-height:36px;padding:6px 8px}
 body.keyboard-game[data-view=game] .live-standings h3{padding:1px 0 3px}
 body.keyboard-land[data-view=land] main{grid-template-rows:48px minmax(0,1fr);gap:2px}
 body.keyboard-land[data-view=land] .brandbar{min-height:48px;height:48px;padding:2px 0}
 body.keyboard-land[data-view=land] .brand-logo{width:68px}
 body.keyboard-land[data-view=land] .landing-nav{transform:scale(.88);transform-origin:right center}
 body.keyboard-land[data-view=land] .land{display:block;width:min(100%,460px);height:100%;min-height:0;margin:0 auto;padding:1px 0 3px}
 body.keyboard-land[data-view=land] .party-hero,body.keyboard-land[data-view=land] .feature-notes{display:none!important}
 body.keyboard-land[data-view=land] .play-stack{height:100%;min-height:0;margin:0;padding:0 5px 4px}
 body.keyboard-land[data-view=land] #play-notebook{height:100%;min-height:0;max-height:none;overflow:hidden;padding-top:10px;padding-bottom:8px;align-content:space-evenly}
 body.keyboard-land[data-view=land] #play-notebook .play-heading{font-size:clamp(20px,6cqh,29px);margin:0}
 body.keyboard-land[data-view=land] #play-notebook .gamertag-tag{padding:5px 9px 4px}
 body.keyboard-land[data-view=land] #play-notebook>.b.big{min-height:34px;font-size:clamp(17px,5cqh,22px);padding:5px 8px}
 body.keyboard-land[data-view=land] #play-notebook .or-divider{font-size:15px}
 body.keyboard-land[data-view=land] #play-notebook #join-form{min-height:33px}
 body.keyboard-land[data-view=land] #play-notebook #quick{min-height:31px;font-size:15px;padding:4px 10px}
 body.keyboard-lobby[data-view=lobby] main{grid-template-rows:minmax(0,1fr);gap:0}
 body.keyboard-lobby[data-view=lobby] .brandbar,body.keyboard-lobby[data-view=lobby] .roster,body.keyboard-lobby[data-view=lobby] .party-rules,body.keyboard-lobby[data-view=lobby] .lobby-wordmark{display:none!important}
 body.keyboard-lobby[data-view=lobby] .lob{display:grid;height:100%;min-height:0;margin:0;padding:3px;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr);gap:0}
 body.keyboard-lobby[data-view=lobby] .lobby-social{display:grid;height:100%;min-height:0;grid-template-rows:minmax(0,1fr);gap:0}
 body.keyboard-lobby[data-view=lobby] .lobby-chat{height:100%;min-height:0}
 body.keyboard-editor[data-view=avw] main{grid-template-rows:minmax(0,1fr);gap:0}
 body.keyboard-editor[data-view=avw] .brandbar{display:none}
}

/* Compact phone edit cluster: Undo over Redo, with Delete alongside. */
@media(max-width:700px){
 #gtl{grid-template-columns:minmax(0,1fr) 64px}
 #gtl .ac{grid-column:2;width:64px;border-left:1px solid #aaa994}
 #gtl .action-buttons{top:4px;right:3px;width:58px;height:56px;display:grid;grid-template-columns:27px 30px;grid-template-rows:27px 27px;gap:1px}
 #gtl .action-buttons .tool-button{width:27px;height:27px;padding:3px}
 #gtl .action-buttons .tool-button .icon{width:21px;height:21px}
 #gtl .action-buttons [data-a=u]{grid-column:1;grid-row:1}
 #gtl .action-buttons [data-a=r]{grid-column:1;grid-row:2}
 #gtl .action-buttons [data-a=c]{grid-column:2;grid-row:1/3;align-self:center;width:30px;height:32px}
 #gtl .pal{padding-right:3px}
 .game-size-control{right:1px;top:7px;bottom:72px;width:24px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#342a3b;text-shadow:0 1px #fff}
 .game-size-control input{width:20px;min-height:58px}
 .drawing-panel .canvas-paper{padding-right:0;background:#fff}
}
@media(max-width:350px){#gtl{grid-template-columns:minmax(0,1fr) 62px}#gtl .ac{width:62px}}

/* A clearer hand-lettered body face keeps the scrapbook theme readable. */
body,button,input,select,textarea{font-family:'Comic Neue','Patrick Hand','Comic Sans MS',cursive}
.play-heading,.hint,.tape-title,.results-heading h2,.party-rules h2{font-family:'Kalam','Comic Neue',cursive}

/* Stronger room-code badge on phones without crowding the header. */
@media(max-width:700px){
 .room-label{min-height:40px;padding:6px 10px;background:#fffaf1f2;border:2px solid #9b65bb;box-shadow:0 3px 0 #7042882b;font-size:15px;gap:5px}
 #header-room-code{font-size:19px;font-weight:700;letter-spacing:1.2px;line-height:1}
 .room-prefix{font-size:13px}
 .room-label .icon{display:block;width:18px;height:18px}
}

/* Quick turn hand-off: blur the board and show the next player's card. */
.gm{transition:filter .12s ease,opacity .12s ease}.turn-intro-active .gm{filter:blur(3px);opacity:.72;pointer-events:none}
#turn-intro{position:fixed;inset:0;z-index:45;display:grid;place-items:center;pointer-events:none;background:#5a37631c;backdrop-filter:blur(1px)}
#turn-intro[hidden]{display:none!important}.turn-card{position:relative;display:grid;grid-template-columns:58px auto;grid-template-rows:auto auto auto;align-items:center;column-gap:12px;min-width:240px;max-width:min(360px,calc(100vw - 32px));padding:14px 22px 13px;background:#fff0ae;color:var(--ink);border:1px solid #d9b85c;box-shadow:4px 8px 0 #63436d1a,0 15px 35px #3c244833;clip-path:var(--cut);rotate:-1deg}
.turn-card:before{content:'';position:absolute;top:-7px;left:calc(50% - 42px);width:84px;height:18px;background:#d5a6e7b8;rotate:3deg}.turn-card img{grid-column:1;grid-row:1/4;width:58px;height:58px;border:2px solid #251b2d;border-radius:50%;object-fit:cover;background:#fff8e9}.turn-card>span{grid-column:2;font-size:14px;color:#8b6797;line-height:1}.turn-card b{grid-column:2;font-size:24px;line-height:1.05;overflow-wrap:anywhere}.turn-card small{grid-column:2;font-size:14px;color:#84668e}
@media(max-width:700px){.turn-card{grid-template-columns:50px auto;min-width:220px;padding:12px 18px}.turn-card img{width:50px;height:50px}.turn-card b{font-size:21px}}

/* Interface icons are SVGs on every viewport, including compact phone controls. */
.chat-greeting{display:inline-flex;align-items:center;gap:5px}.chat-greeting .icon{width:18px;height:18px;flex:none}
#lcf .b{display:inline-flex;align-items:center;justify-content:center;gap:6px}#lcf .b .icon{width:18px;height:18px;flex:none}
.dialog-close{display:grid;place-items:center}.dialog-close .icon{width:23px;height:23px}
.kick-button{display:grid;place-items:center}.kick-button .icon{width:14px;height:14px}
@media(max-width:700px){.chat-greeting .icon{width:17px;height:17px}#lcf .b .icon{width:20px;height:20px}.dialog-close .icon{width:25px;height:25px}}

.leave-confirmation{text-align:center;display:grid;justify-items:center;gap:13px;padding:5px 4px}.leave-confirmation>.icon{width:46px;height:46px;color:#a34665}.leave-confirmation p{margin:0;max-width:340px}.leave-confirmation-actions{width:100%;display:flex;justify-content:center;gap:12px;margin-top:5px}.leave-confirmation-actions .b{min-width:125px;justify-content:center}.leave-confirm-button{display:inline-flex;align-items:center;gap:7px;color:#923752;border-color:#bd7890;background:#ffe6eb}.leave-confirm-button .icon{width:21px;height:21px}
@media(max-width:420px){.leave-confirmation-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.leave-confirmation-actions .b{min-width:0;padding:8px 6px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.gm{transition:none}}

/* Keep every party-rule row on the same icon / label / control columns. */
.party-rules .set label{
 display:grid;
 grid-template-columns:32px minmax(0,1fr) auto;
 align-items:center;
 column-gap:10px;
}
.party-rules .set label>.icon,.party-rules .set label>.aa-icon{
 grid-column:1;
 justify-self:center;
 margin:0;
}
.party-rules .set label>span:not(.aa-icon){grid-column:2;min-width:0}
.party-rules .set label>select{grid-column:3;justify-self:end;margin:0}
@container (max-height:440px){
 .party-rules .set label{grid-template-columns:minmax(0,1fr) auto}
 .party-rules .set label>span:not(.aa-icon){grid-column:1}
 .party-rules .set label>select{grid-column:2}
}

/* Long presses should draw, not select Paint labels or browser callouts. */
@media(max-width:700px){
 .drawing-panel,.drawing-panel *{
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
 }
 .drawing-panel .paint-text-entry input{
  user-select:text;
  -webkit-user-select:text;
  -webkit-touch-callout:default;
 }
}
