body.front-door-visible main{max-width:none;padding:0}
.front-door,.setup-scene{background:#d8e4da url('/assets/game-room.png') center/cover no-repeat;min-height:calc(100svh - 144px)}
.front-door{display:flex;align-items:center;padding:56px max(28px,7%);position:relative}
.front-door-copy{width:340px;max-width:100%;color:#082b22}
.front-door .eyebrow{color:#082b22;font-size:13px}
.front-door h1{font:700 68px/1.05 Georgia,serif;margin:16px 0 18px}
.lobby-greeting{font-size:17px;margin:0 0 28px;overflow-wrap:anywhere}
.lobby-actions{display:flex;flex-direction:column;gap:10px}
.lobby-actions button{min-height:52px;justify-content:flex-start;border-color:#d2ded7;background:#ffffffed;box-shadow:0 2px 8px #163a2420;font-weight:600;padding:12px 18px}
.lobby-actions button:first-child{min-height:64px;background:#ce3049;border-color:#ce3049;color:#fff}
.lobby-actions button:first-child:hover{background:#b9243c}
.lobby-actions button:first-child span{flex:1}
.lobby-actions svg{width:21px;height:21px}
.lobby-mode{font-size:13px;font-weight:600;margin-top:22px}
.setup-scene{padding:24px 20px;display:flex;justify-content:center;align-items:flex-start}
.setup-sheet{width:560px;max-width:100%;background:#fcfdfb;border:1px solid #c5d5cc;border-radius:8px;padding:22px;box-shadow:0 16px 54px #082e2940}
.setup-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}
.setup-heading h1{font:700 27px/1.2 Georgia,serif;margin:5px 0 8px}
.setup-heading button{width:42px;height:42px;padding:8px}
.setup-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #dce5df;border-bottom:1px solid #dce5df;padding:12px 0;margin:4px 0 14px}
.setup-facts span,.setup-facts strong{display:block}.setup-facts span{font-size:12px;color:#50695c}.setup-facts strong{font-size:15px;margin-top:3px}
.setup-field{border:0;margin:12px 0 0;padding:0;min-width:0}
.setup-field legend{font-size:14px;font-weight:650;padding:0;margin-bottom:8px}
.segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.segmented label,.tile-choices label{position:relative;margin:0;cursor:pointer;min-width:0}
.segmented input,.tile-choices input{position:absolute;opacity:0;width:1px;height:1px}
.segmented span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 4px;background:#edf2ef;border:1px solid #d0dcd4;border-radius:5px;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.segmented input:checked+span{background:#126748;color:#fff;border-color:#126748}
.segmented input:focus-visible+span,.tile-choices input:focus-visible+.tile-choice{outline:3px solid #c68a28;outline-offset:3px}
.setup-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.setup-columns label{font-size:14px;margin:12px 0 5px}
.tile-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tile-choice{display:flex;align-items:center;gap:12px;border:1px solid #cedbd2;background:#fff;padding:6px;border-radius:5px;min-height:62px;font-size:14px}
.tile-choices input:checked+.tile-choice{border:2px solid #126748;padding:5px;background:#eff7f1}
.tile-swatch{display:block;flex:0 0 36px;width:36px;height:48px;border:1px solid #c2c4b4;border-radius:3px;box-shadow:1px 2px 0 #d7dacb;background-color:#fffcf3;background-size:100% 100%}
.tile-swatch.original{background-image:url('/assets/starter-dot.png')}
.tile-swatch.drinkem{background-image:url('/assets/drinkem-faces.png');background-size:900% 500%;background-position:0 0}
.setup-field .tile-style-heading{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}
.tile-preview-command{font-size:12px;min-height:36px;margin:0;padding:4px 0;border:0;background:transparent}
html:has(#tile-gallery[open]){overflow:hidden}
#tile-gallery{width:min(700px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;background:#f6f8f7}
#tile-gallery[open]{display:flex;flex-direction:column}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:white}
.gallery-heading h2{margin:0;font:700 27px/1.2 Georgia,serif}
.gallery-heading h2{flex:1}
.gallery-heading button{width:44px;height:44px;padding:10px;flex-shrink:0}
#tile-gallery-filters{display:flex;flex-shrink:0;gap:4px;border:0;border-block:1px solid #d7e0dc;padding:8px 12px;margin:0;background:white}
#tile-gallery-filters label{flex:1;min-width:0;position:relative;margin:0;cursor:pointer}
#tile-gallery-filters input{position:absolute;opacity:0;width:1px;height:1px}
#tile-gallery-filters span{display:flex;justify-content:center;align-items:center;min-height:44px;border-radius:4px;font-size:13px}
#tile-gallery-filters input:checked+span{background:#173e35;color:white}
#tile-gallery-filters input:focus-visible+span{outline:3px solid #c68a28;outline-offset:1px}
.tile-gallery-faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px;overflow:auto;min-height:0;padding:22px;overscroll-behavior:contain}
.tile-gallery-faces figure{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px}
.gallery-tile{border:0;background:transparent;padding:0;min-height:0;max-width:100%;border-radius:6px}
.gallery-tile:hover{background:transparent}
.gallery-tile:hover .gallery-face{border-color:#38745c;box-shadow:0 4px 0 #86a995,0 7px 10px #163a2426}
.gallery-tile:focus-visible{outline:3px solid #c68a28;outline-offset:5px}
.gallery-face{display:block;width:108px;max-width:100%;aspect-ratio:3/4;background:#fffdf4 url('/assets/drinkem-faces.png') 0 0/900% 500%;border:1px solid #c8ceca;border-radius:6px;box-shadow:0 4px 0 #c8d1cb,0 7px 10px #163a241a}
.tile-gallery-faces figcaption{font-size:13px;text-align:center;overflow-wrap:anywhere}
.gallery-footer{display:flex;justify-content:flex-end;flex-shrink:0;padding:12px 16px;border-top:1px solid #d7e0dc;background:white}
.gallery-footer button{min-height:44px}
.tile-gallery-detail{min-height:0;padding:24px 16px;overflow:auto;overscroll-behavior:contain}
.gallery-detail-stage{display:flex;align-items:center;justify-content:center;gap:16px}
.gallery-detail-stage button{width:44px;height:44px;padding:10px;flex-shrink:0}
.gallery-detail-stage .gallery-face{width:min(240px,calc((100dvh - 250px) * .75),calc(100% - 120px));flex-shrink:0;max-width:none}
.gallery-detail-caption{display:flex;align-items:center;flex-direction:column;gap:3px;margin-top:18px;text-align:center}
.gallery-detail-caption strong{font-size:18px}
.gallery-detail-caption span{font-size:13px;color:#53675e}
@media(max-height:500px){.tile-gallery-detail{padding-block:12px}.gallery-detail-caption{margin-top:12px}}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:700px){.tile-gallery-faces{grid-template-columns:repeat(5,minmax(0,1fr))}.gallery-face{width:100px}}
@media(max-width:450px){.tile-gallery-faces{padding:16px 12px;gap:18px 10px}.gallery-face{width:84px}.gallery-heading h2{font-size:24px}}
@media(max-height:500px) and (min-width:600px){.tile-gallery-faces{grid-template-columns:repeat(5,minmax(0,1fr));padding:12px 20px}.gallery-face{width:72px}.gallery-heading{padding:6px 16px}#tile-gallery-filters{padding-block:4px}.gallery-footer{padding-block:8px}}
@media(max-height:500px) and (min-width:760px){#tile-gallery{width:min(1000px,calc(100% - 24px))}.tile-gallery-faces{grid-template-columns:repeat(9,minmax(0,1fr));gap:12px 8px}}
.setup-card{display:flex;align-items:center;gap:10px;border-top:1px solid #dce5df;margin-top:16px;padding-top:12px;font-size:13px}
.setup-card svg{color:#126748}.setup-card small{display:block;color:#5b6e63;font-size:12px;margin-top:2px}
.setup-sheet .setup-start{width:100%;min-height:52px;justify-content:space-between;margin-top:18px;font-weight:650}
@media(max-width:650px){
  .front-door{min-height:calc(100svh - 175px);padding:32px 22px 38px;align-items:flex-start;background-position:43% center}
  .front-door:before{content:"";position:absolute;inset:0;background:#eef5ed66}
  .front-door-copy{width:310px;position:relative}
  .front-door h1{font-size:46px;margin:12px 0}
  .lobby-greeting{font-size:15px;margin-bottom:20px}
  .lobby-mode{margin-bottom:0}
  .setup-scene{padding:16px 12px 28px;background-position:65% center}
  .setup-sheet{padding:20px 16px}
  .setup-heading h1{font-size:25px}
  .setup-columns{gap:12px}
}
@media(max-width:360px){.segmented span{font-size:11px;padding-inline:2px;white-space:nowrap}.tile-choice{gap:7px;font-size:13px}.setup-columns{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.lobby-actions button{transition:background-color .15s,box-shadow .15s}.lobby-actions button:hover{box-shadow:0 4px 14px #163a242b}}
