/* Large cream picker uses the existing Baloo lettering and sticker palette. */
.game-category-open{position:absolute;z-index:12;top:.8%;left:21%;width:58%;min-height:44px;padding:6px 12px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e8d6b5;border-radius:24px;background:#fff9edf0;box-shadow:0 3px 0 #b67f2220;color:#63351f;font:800 clamp(12px,3.8cqw,18px)/1.1 "Baloo 2","Nunito",sans-serif;touch-action:manipulation;}
#game-category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.game-category-open:disabled{opacity:.6;}
.game-category-open:focus-visible,.game-category-dialog button:focus-visible{outline:3px solid #438ca1;outline-offset:3px;}
#screen-game.is-choosing-words #pause-overlay{display:none!important;}
.game-category-dialog{width:min(680px,calc(100vw - 24px));height:min(850px,calc(100dvh - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:3px solid #dec59e;border-radius:30px;background:#fff9ed;color:#63351f;box-shadow:0 10px 45px #44240940;font-family:"Nunito",sans-serif;overflow:hidden;}
.game-category-dialog::backdrop{background:#27464066;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
.game-category-shell{height:100%;display:flex;flex-direction:column;}
.game-category-header{flex:none;padding:22px 18px 16px;text-align:center;background:linear-gradient(#fff5d9,#fff9ed);}
.game-category-header h2{font:800 clamp(29px,7.5vw,42px)/1.05 "Baloo 2","Nunito",sans-serif;letter-spacing:-.02em;margin:0 0 10px;}
.game-category-header h2 span{-webkit-text-stroke:.4px #fff9ed;paint-order:stroke fill;}
.game-category-header p{margin:0;font-size:15px;line-height:1.4;}
.game-category-options{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:8px 16px 16px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#cfb48b transparent;scrollbar-width:thin;}
.game-category-choice{position:relative;display:flex;align-items:center;gap:8px;min-height:83px;padding:10px 8px;border:2px solid #e8d6b5;border-radius:22px;background:var(--category-tile,#fff5d9);box-shadow:0 3px 0 #b67f221a;text-align:left;touch-action:pan-y;}
.game-category-choice[aria-pressed=true]{border-color:#be8535;box-shadow:0 0 0 2px #ffd653,0 4px 0 #b67f2224;}
.game-category-choice[aria-pressed=true]::after{content:'✓';position:absolute;right:6px;top:4px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#ffdf72;color:#795329;font-size:14px;font-weight:900;}
.game-category-choice:disabled{opacity:.5;}
.game-category-choice-art{width:40px;height:44px;flex:none;display:grid;place-items:center;}
.game-category-choice-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px #54351f18);pointer-events:none;}
.game-category-choice-art svg{width:32px;height:32px;fill:none;stroke:#ba8242;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;}
.game-category-choice-copy{min-width:0;display:flex;flex-direction:column;gap:4px;}
.game-category-choice-copy strong{font:800 15px/1.05 "Baloo 2","Nunito",sans-serif;overflow-wrap:anywhere;}
.game-category-choice-copy small{font-size:11px;line-height:1.1;color:#856449;}
.game-category-footer{flex:none;padding:12px 16px 18px;border-top:1px solid #e8d6b5;background:#fff5df;box-shadow:0 -4px 12px #63351f08;}
#game-category-error{color:#a52520;font-size:14px;margin:0 0 10px;}
#game-category-error:empty{display:none;}
.game-category-actions{display:flex;gap:10px;}
.game-category-actions button{min-height:54px;padding:10px 14px;border-radius:26px;font:800 17px/1.1 "Baloo 2","Nunito",sans-serif;color:#63351f;background:#f0e2ce;box-shadow:0 3px 0 #b67f2226;touch-action:manipulation;}
#game-category-start{flex:1;display:flex;justify-content:center;align-items:center;gap:12px;background:linear-gradient(#ffec86,#ffd442);box-shadow:inset 0 0 0 1.5px #d59b31,inset 0 2px #fff9c7,0 4px 0 #b67f2233;}
#game-category-start span{font-size:28px;line-height:1;}
#game-category-start:disabled{opacity:.55;}
@media(min-width:650px){.game-category-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:12px 24px 24px;}.game-category-choice{min-height:96px;padding:12px;}.game-category-header{padding:28px 24px 20px;}.game-category-footer{padding:18px 24px 24px;}.game-category-choice-copy strong{font-size:17px;}}
@media(max-height:600px){.game-category-header{padding:12px 16px 10px;}.game-category-header h2{font-size:28px;margin-bottom:6px;}.game-category-header p{font-size:13px;}.game-category-footer{padding:10px 16px 14px;}}
@media(max-width:360px){.game-category-actions{gap:8px;}.game-category-actions button{padding:10px;font-size:15px;}#game-category-start{gap:8px;}#game-category-start span{font-size:24px;}.game-category-options{gap:10px;padding-left:12px;padding-right:12px;}.game-category-choice{gap:6px;}.game-category-choice-art{width:34px;}}
