:is(#booth,.bb-seat-host).bb-seat-host {
  position:fixed; inset:0; z-index:4; min-height:0; background:transparent;
  pointer-events:none; user-select:none; -webkit-user-select:none;
}
.bb-seat { color:#173e33; font:600 15px/1.35 "PingFang HK","Microsoft JhengHei",system-ui,sans-serif; }
.bb-seat button,.bb-seat dialog { pointer-events:auto; }
.bb-seat button { display:inline-flex; align-items:center; justify-content:center; gap:.48em; cursor:pointer; font:inherit; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.bb-seat button:disabled { opacity:.6; cursor:wait; }
.bb-seat button:focus-visible,.bb-seat input:focus-visible { outline:3px solid #ffba56; outline-offset:3px; }
.bb-seat svg { width:20px; height:20px; flex:none; }
.bb-seat__top { position:absolute; top:max(16px,env(safe-area-inset-top)); left:max(20px,env(safe-area-inset-left)); right:max(20px,env(safe-area-inset-right)); display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.bb-seat__ticket,.bb-seat__sound,.bb-seat__write { color:#fff2d5; background:#183e34f2; border:1px solid #e3d6ad; border-radius:5px; box-shadow:0 2px 6px #17271f40; }
.bb-seat__ticket { display:flex; align-items:center; gap:0; }
.bb-seat__leave { background:transparent; color:inherit; border:0; min-height:44px; padding:6px 12px; }
.bb-seat__name { border-left:1px solid #e4d8b56b; padding:0 12px; color:#f1d494; font-size:13px; letter-spacing:.06em; }
.bb-seat__sound { width:44px; height:44px; }
.bb-seat__actions { position:absolute; right:max(22px,env(safe-area-inset-right)); bottom:max(23px,env(safe-area-inset-bottom)); display:flex; align-items:flex-end; flex-direction:column; gap:9px; }
.bb-seat__hit { min-width:150px; min-height:52px; padding:10px 17px; background:#ffd178; color:#353a25; border:1px solid #70582e; border-radius:6px; box-shadow:0 3px 0 #6e512c,0 5px 12px #28302335; font-size:18px!important; }
.bb-seat__hit b { font-weight:800; }
.bb-seat__hit kbd { font:600 10px ui-monospace,monospace; padding:2px 4px; border:1px solid #938965; border-radius:3px; }
.bb-seat__hit:active { transform:translateY(2px); box-shadow:0 1px 0 #6e512c; }
.bb-seat__write { min-height:42px; padding:6px 13px; font-size:13px!important; }
.bb-seat__write svg { width:16px;height:16px; }
.bb-seat__impact { pointer-events:none; opacity:0; position:absolute; top:43%; left:56%; font:900 clamp(39px,5.5vw,88px)/1 "Songti TC","Songti SC",serif; color:#fff3be; -webkit-text-stroke:1.4px #713721; paint-order:stroke fill; text-shadow:2px 3px #63331e; }
.bb-seat__error { position:absolute; top:max(73px,calc(env(safe-area-inset-top) + 57px)); left:max(20px,env(safe-area-inset-left)); padding:8px 12px; background:#fff1d3; border:1px solid #846149; border-radius:4px; }
@media(max-width:650px),(pointer:coarse) {
  .bb-seat__top { top:max(10px,env(safe-area-inset-top)); left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right)); }
  .bb-seat__actions { right:max(12px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); }
  .bb-seat__hit { min-width:127px; }
  .bb-seat__hit kbd { display:none; }
}
@media(max-height:460px) { .bb-seat__actions { flex-direction:row-reverse; align-items:center; } }

.bb-seat__actions{display:grid;grid-template-columns:auto auto;justify-items:stretch}
.bb-seat__hit{grid-column:1/-1;justify-self:end}
.bb-seat__fresh{color:#533d24;background:#f3dba7;border:1px solid #796c4b;border-radius:5px;min-height:42px;padding:6px 12px;font-size:13px!important}
@media(max-width:650px){.bb-seat__name{font-size:11px;padding:0 8px}}
.bb-seat__touch-tip{grid-column:1/-1;justify-self:end;padding:2px 5px;background:#213a2fd9;color:#fff4d7;border-radius:3px;font-size:11px;letter-spacing:.04em}
.bb-seat__basin{grid-column:1/-1;justify-self:end;min-height:40px;padding:5px 13px;border:1px solid #897f68;border-radius:5px;background:#f3e6c8;color:#493e32;font-size:13px!important}
.bb-seat__basin.over,.bb-strike__basin.over{outline:3px solid #ffb942}
.bb-seat__hit{touch-action:none!important}.bb-seat__hit.is-held{background:#ffcd74;box-shadow:inset 0 -4px #876125;transform:translateY(calc(var(--height)*-5px))}
.bb-seat.is-burning .bb-seat__actions{pointer-events:none;opacity:.7}
.bb-drag-sheet:not([hidden]){position:fixed;display:grid;place-items:center;z-index:12;pointer-events:none;transform:translate(-50%,-65%) rotate(9deg);font:700 11px serif;color:#985132;border:1px solid #b59452;background:#ffdf8c;box-shadow:2px 3px 7px #372c2b55;width:37px;height:50px}
@media(max-height:460px){.bb-seat__actions{display:flex;gap:6px}.bb-seat__touch-tip{display:none}}

.bb-seat__basin {position:relative;touch-action:none!important;-webkit-touch-callout:none;user-select:none}
.bb-seat__basin[data-offering-state="hold"]::after {
  content:"";position:absolute;left:5px;right:5px;bottom:2px;height:3px;border-radius:2px;
  background:#a34d22;transform-origin:left;transform:scaleX(var(--offering-progress,0));pointer-events:none;
}

.bb-seat__tools {display:flex;align-items:center;gap:6px;flex:none}
.bb-seat__tools .bb-stall-language {width:44px;height:44px;padding:0;color:#fff2d5;background:#183e34f2;border:1px solid #e3d6ad;border-radius:5px;box-shadow:0 2px 6px #17271f40}
.bb-seat__ticket {min-width:0}
.bb-seat__ticket .bb-seat__leave {flex:none}
.bb-seat__name {overflow-wrap:anywhere}
.bb-seat__actions {max-width:calc(100% - 24px)}
