@import url('./carte.css');
@import url('./counter.css');
.barTable{--bar-tool-height:53px;container-type:inline-size;background:#30242c;color:#fff6eb;max-width:540px;margin:auto;position:relative;isolation:isolate;box-sizing:border-box}
.btStage{isolation:isolate;position:relative;overflow:hidden;width:100%;height:min(73svh,740px);min-height:265px;background:#30242c url(/encounter/portrait/rooftop-table.webp) center/cover}
.btPartner,.btService{position:absolute;inset:0}
.btStage img{pointer-events:none;object-fit:contain;display:block;max-width:none}
.btStage [hidden],.barTable [hidden]{display:none!important}
.btDish,.btLeft,.btRight,.btGlass{position:absolute}
.btDish{width:23%;left:14%;top:65%;filter:drop-shadow(1px 4px 3px #35200a66)}
.btLeft,.btRight{display:block;width:clamp(90px,28%,170px);height:auto;bottom:-7%;left:1%;transform:rotate(12deg);transform-origin:50% 100%;pointer-events:none}
.btRight{left:auto;right:1%;transform:scaleX(-1) rotate(12deg)}
.btDuet{position:absolute;inset:0;z-index:3;overflow:hidden;background:#3c2a32 url('/bar/duet.webp') center/cover}
.btDuet canvas{width:100%;height:100%;display:block}
.btGlass{width:17%;height:18%;transform-origin:50% 70%}
.btNear{left:64%;top:70%;z-index:2}
.btFar{left:30%;top:53%;width:12%;height:12%;z-index:1}
.btGlass .btDrink{width:100%;height:100%;object-position:bottom center;position:absolute;bottom:0}
.btTop,.btLine{position:absolute;z-index:4;color:#fff5eb}
.btTop{top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.btTop a,.btTop b,.btService b{background:#30232de9;color:#fff1da;text-decoration:none;border:1px solid #ffffff36;border-radius:18px;padding:8px 12px;font-size:14px}
.btLine{bottom:10px;left:12px;right:12px;background:#382631ec;border:1px solid #ffffff36;border-radius:13px;padding:9px 12px;line-height:1.35;pointer-events:none}
.btLine strong,.btLine span{display:block}.btLine strong{font-size:12px;color:#f4d3bd}.btLine span{font-size:15px;margin-top:3px}
.btActions,.btChoices{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:8px}
.btActions button,.btChoices button{flex:1;white-space:nowrap;min-height:44px;border:1px solid #755b63;border-radius:10px;background:#49333e;color:#fff4e5;font:650 14px/1.3 inherit;cursor:pointer}
.btActions button:first-child{background:#f1cebc;color:#392b32}
.btChoices{position:absolute;bottom:58px;left:10px;right:10px;z-index:6;background:#372a32fa;border:1px solid #987885;border-radius:14px}
.btChoices b{width:100%;padding:4px 3px;font-size:14px}
.btService{z-index:3;container-type:size;background:#372329;overflow:hidden}
.btCounterCamera{
 position:absolute;left:50%;top:46%;width:max(250cqw,166.67cqh);aspect-ratio:2/3;
 transform:translate(-65%,-33.5%);background:url(/walk/rooms/almond-bar.webp) center/100% 100% no-repeat;
}
.btService b{position:absolute;left:50%;bottom:20%;transform:translateX(-50%);z-index:1}
body:has(.barTable) main>header{display:none}.pairLounge:has(.barTable){padding-bottom:70px}
.btHistory summary{cursor:pointer;padding:10px 0;color:#663d4c;font-weight:650}
.btHistory .messages,.btHistory .chatlog{max-height:23svh;overflow-y:auto}

.btChoices.btOrderChoices:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.btOrderChoices b{grid-column:1/-1}.btOrderChoices button{display:grid;justify-items:center;gap:3px;padding:5px 1px;font:600 13px/1.35 inherit}
.btSample{width:34px;height:37px;object-fit:contain}
.btStage{container-type:size;--table-edge:calc(50cqh + max(9.4cqh,14.1cqw))}
.btGlass{transform:translate(-50%,-100%);pointer-events:none}
.btGlass::before{content:"";position:absolute;bottom:-1%;left:50%;width:47%;height:6%;border-radius:50%;transform:translateX(-50%);background:radial-gradient(ellipse,#472b20a8,transparent 72%)}
.btNear{left:50%;top:calc(var(--table-edge) + 55cqw);height:calc(22cqw * var(--glass-scale,1));width:calc(14cqw * var(--glass-scale,1))}
.btFar{left:50%;top:calc(var(--table-edge) + 6.5cqw);height:calc(17cqw * var(--glass-scale,1));width:calc(10cqw * var(--glass-scale,1))}
.btLeft,.btRight{width:22cqw;bottom:-6cqw}.btLeft{left:-2%}.btRight{right:-2%}
.btDish{left:17%;width:20%;top:calc(var(--table-edge) + 10cqh)}
.btLine{top:55px;bottom:auto;left:12px;right:auto;border:0;padding:5px 9px;background:#35252cbd;max-width:84%;font-variant-numeric:tabular-nums}
.btLine span{display:none}
.btStage:has(.btService:not([hidden])) .btLine span,.btStage:has(.btDuet:not([hidden])) .btLine span{display:block}
.btBubbles{position:relative;z-index:4;display:flex;flex-direction:column;gap:5px;padding:8px 3%;background:#392b2b;pointer-events:none}.btBubbles:empty{padding:0}
.btBubbles *{pointer-events:none!important}
.btBubble{box-sizing:border-box;position:relative;width:max-content;max-width:78%;border-radius:13px;padding:5px 10px;border:1px solid #fff6e587;box-shadow:0 3px 12px #25172326;color:#231923;font:600 clamp(12px,3.5cqw,16px)/1.38 P,system-ui,sans-serif;backdrop-filter:blur(4px);overflow-wrap:anywhere;background:#fff2e2c4}
.btBubble.peer{align-self:flex-start;border-bottom-left-radius:3px}.btBubble.own{align-self:flex-end;background:#eee0eac7;border-bottom-right-radius:3px}
.btBubble small{display:block;font:650 10px/1.25 P,system-ui;color:#604d52}.btBubble span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.barTable:has(.btService:not([hidden])) .btBubbles,.barTable:has(.btDuet:not([hidden])) .btBubbles,.barTable:has(.btFloorService:not([hidden])) .btBubbles{visibility:hidden}
.btActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.btActions button{width:100%;font-family:inherit;font-size:14px}
body:has(.barTable) .inside{padding:8px 12px 12px}
.barCompose{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px}.barCompose input{min-width:0}
.btHistory summary{min-height:40px;cursor:pointer}
@media(max-height:630px){.btBubble{padding:3px 7px}.btBubble span{-webkit-line-clamp:1}.btStage{height:64svh}}
.btOlder{display:block;max-width:100%;min-height:34px;margin:4px auto;border:0;background:transparent;color:#783951;text-decoration:underline}
.btPlate{position:absolute;z-index:3;cursor:pointer;touch-action:manipulation}
.btTableTools{display:flex;justify-content:center;align-items:center;gap:10px;min-height:var(--bar-tool-height);padding:4px 12px;border-top:1px solid #735347;background:#392b2b;box-sizing:border-box}
.btTableToast,.btTableBook{display:inline-flex;flex:1;max-width:215px;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:44px;margin:0;padding:6px 22px;border:1px solid #b39771;border-radius:22px;background:#f3e7d1;color:#49352e;font:650 14px/1.4 P,system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.btTableToast svg,.btTableBook svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.btTableToast:focus-visible,.btTableBook:focus-visible{outline:3px solid #f7d38d;outline-offset:2px}.btTableToast:hover,.btTableBook:hover{background:#fff5e3}
.btPlate{box-sizing:border-box;padding:0!important;background:none!important;border:none!important;min-height:0!important;border-radius:0!important;line-height:0;filter:drop-shadow(0 2px 2px #49341a55)}
.btPlate::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}
/* Shared plates sit together in the centre, below the two separate drinks.
   The mild vertical foreshortening matches the tabletop camera. */
.btPlate{top:calc(var(--table-edge) + 11cqw);bottom:auto;width:26cqw;height:19.5cqw;transform:translateX(-50%);transition:left .36s ease}
.btPlate img{width:100%;height:100%;object-fit:fill;object-position:center bottom}
.myPlate{left:63.5%}.peerPlate{left:36.5%}
.btStage:has(.peerPlate[hidden]) .myPlate,.btStage:has(.myPlate[hidden]) .peerPlate{left:50%}
.btBusy .btTableBook{pointer-events:none;opacity:.45}.btBusy .btTableToast,.btBusy .btPlate{pointer-events:none}.btBusy .btTableToast{opacity:.45}
.btLine{pointer-events:none}.btNotice .btLine span{display:block}
.btToastMenu{color:#34251f;background:#faf2df;padding:0;width:min(92vw,460px);max-height:85dvh;border:1px solid #9f865c;border-radius:10px;box-shadow:0 12px 60px #251b2699;font-family:inherit}
.btToastMenu::backdrop{background:#21151ca8}
.btToastMenu button{min-height:41px;border:1px solid #cbb897;border-radius:7px;padding:6px 14px;background:#fffaf0;color:#49362b;font-family:inherit}
.btToastMenu{padding:18px;text-align:center}.btToastMenu h2{font-size:18px}.btToastMenu button{margin:3px}

/* Keep enough tabletop depth at every viewport ratio. All props and paws
   use the same width-based world scale; keyboard/landscape may scroll the scene
   instead of compressing objects onto the foreground hands. */
.btStage{height:clamp(440px,73svh,740px);min-height:145cqw}
@media(min-width:500px){.btBubble{font-size:15px}}
@media(prefers-reduced-motion:reduce){.btPlate{transition:none}}
