/* Smart panel: the game occupies the whole viewport. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{display:flex;flex-direction:column}body>header{padding:10px 20px;flex:none;height:64px}.brand{font-size:24px}.brandtag{display:none}main{width:100%;max-width:none;padding:10px 20px;flex:1;min-height:0;display:flex;flex-direction:column}.intro,.right,footer,.stats,.gamehead .eyebrow,.gamebottom>span{display:none}.layout{display:flex;flex:1;min-height:0}.play{width:100%;padding:14px;display:flex;flex-direction:column;min-height:0}.gamehead{height:40px;flex:none}.gamehead h2{margin:0;font-size:22px}#status{font-size:15px;min-height:32px;padding:5px}.team-boards{display:grid;grid-template-columns:repeat(var(--teams,2),minmax(0,1fr));gap:16px;flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}.team-board{border:2px solid hsl(var(--team-hue) 55% 65% / .5);border-radius:16px;background:#1b1634c9;padding:12px;display:flex;flex-direction:column;min-height:0;min-width:0}.team-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 0 8px}.team-head h3{margin:0;font-size:23px;color:hsl(var(--team-hue) 80% 85%)}.team-head strong{font-size:18px;white-space:nowrap}.team-members{font-size:11px;color:#b6acc8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}.team-board .grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr);gap:8px}.team-board .cell{aspect-ratio:auto;min-height:0;min-width:0;border-radius:10px;font-size:clamp(16px,2vw,32px);touch-action:manipulation}.team-board .cell .index{font-size:12px;top:5px;left:7px}.team-board .cell:disabled{opacity:1}.team-board .cell:disabled:not(.chosen):not(.lit):not(.good):not(.bad){opacity:.65}.team-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;font-size:15px}.primary,.quiet,.secondary{min-height:46px;touch-action:manipulation}.team-foot .primary{padding:8px 18px;font-size:15px}.gamebottom{margin-top:10px;justify-content:center;flex:none}.gamebottom .primary{min-width:230px;font-size:17px;padding:12px 24px}.settings{display:none;position:fixed;z-index:10;top:75px;left:20px;max-height:calc(100dvh - 90px);overflow:auto;width:300px;box-shadow:0 10px 80px #000a}.settings.is-open{display:block}.settings .rule,.settings .settingline{display:flex}.settings .sectionhead{align-items:center}.settings .modes{grid-template-columns:1fr}.number-dialog{width:350px}.number-dialog output{display:block;text-align:center;font-size:40px;padding:15px}.number-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.number-keys button{height:62px;font-size:25px;border:1px solid #b8a1ef60;border-radius:12px;background:#43315e;color:white;touch-action:manipulation}.number-dialog .secondary{margin-top:10px;justify-content:center}dialog label{font-size:14px}dialog input,dialog select{font-size:18px}.team-board .cell:hover{transform:none}#settingsClose{min-height:34px} @media(min-width:1800px){.team-head h3{font-size:32px}.team-head strong{font-size:25px}.team-foot{font-size:21px}.team-foot .primary{font-size:21px;min-height:55px}.team-board .cell .index{font-size:16px}.team-board .grid{gap:12px}.gamehead h2{font-size:29px}#status{font-size:20px;min-height:40px}.team-members{font-size:15px}}@media(max-width:700px){html,body{overflow:auto}main{min-height:calc(100dvh - 64px);padding:8px}.team-boards{grid-template-columns:1fr;grid-auto-rows:440px}.play{min-height:500px}.brand{font-size:16px}.quiet{padding:6px;font-size:10px}body>header{padding:8px}.team-head h3{font-size:20px}.team-board .cell .index{font-size:10px}.gamehead h2{font-size:16px}#status{font-size:12px}.gamebottom{position:sticky;bottom:0;background:#211c36;padding:8px;border-radius:10px}}

/* Keep large smart-panel gestures from resizing the game. */
@media(min-width:1600px){html,body{touch-action:pan-x pan-y}}
