/* Bridge's sunlit terrace. All gameplay stays in the existing Bridge engine. */
body.arcade {
  --ink:#402616; --dim:#6d4932; --faint:#7a5741; --gold:#955131;
  --bg:#f2dfbd; --s1:#fff0d8; --s2:#fff4de; --s3:#dec4a4; --line:#d8b48b; --line2:#cda37b;
  --blue:#146a96; --brand:#9b4229;
  color:#402616; background:#f2dfbd;
}
body.arcade .site-header, body.arcade #egm-play-header {
  background:#fff3db!important; color:#55351f!important;
  border-color:#d7b18a!important; backdrop-filter:none;
}
body.arcade #egm-play-header a, body.arcade #egm-play-header button,
body.arcade #egm-play-header .egm-play-title {color:#653923!important}
body.arcade #egm-play-header button {background:#fff6e6!important;border-color:#b58659!important}
body.arcade main.wrap {display:flex;flex-direction:column;max-width:1080px}
body.arcade main.wrap>.ac-layout {order:0;margin:0 auto 22px;width:100%;grid-template-columns:minmax(0,440px) 270px;justify-content:center;gap:22px}
body.arcade main.wrap>.ac-hero {order:2}
body.arcade main.wrap>.ac-prose {order:3}
body.arcade main.wrap>#egm-share {order:1}
body.arcade #br-stage.ac-stage {
  height:min(844px,calc(100svh - 56px));min-height:0!important;width:100%;
  margin:0;border:0;border-radius:18px;box-shadow:0 12px 32px #70412238;
  background:#edcf9f url('../assets/play/bridge/terrace.webp') center/100% 100% no-repeat;
  scroll-margin-top:48px;isolation:isolate;
}
body.arcade #br-stage::after {display:none}
.br-marquee {position:absolute;top:1%;left:4%;width:92%;height:17%;pointer-events:none;z-index:2;display:flex;align-items:center;justify-content:center}
.br-marquee img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #60301a4d)}
#br-stage #br-status.br-banner {
  position:absolute;top:18%;left:16%;width:68%;height:5.8%;z-index:2;
  display:flex;align-items:center;justify-content:center;padding:4px 13px 7px;
  background:url('../assets/play/bridge/button-blue.webp') center/100% 100% no-repeat;
  font:700 clamp(14px,4.6vw,20px) Georgia,serif;text-align:center;text-transform:uppercase;
  color:#fff9ea;text-shadow:0 2px 2px #124960;line-height:1.1;box-sizing:border-box;
  filter:drop-shadow(0 3px 2px #6b442b44);
}
#br-stage #br-canvas {position:absolute;top:24.5%;left:9%;width:82%;height:auto;touch-action:none;outline-offset:3px}
#br-stage:has(#br-setup:not([style*="display: none"]):not([style*="display:none"])) #br-canvas {visibility:hidden}
#br-stage #br-setup {
  inset:25% 12% 10%;padding:0;align-items:flex-start;background:none;backdrop-filter:none;overflow:visible;
}
#br-stage #br-setup .mg-panel {
  background:transparent!important;border:0;box-shadow:none;border-radius:0;padding:0;margin:0;
  max-height:none;overflow:visible;width:100%;color:#402616;
}
#br-stage #br-setup h2 {font:800 22px Georgia,serif;text-align:center;margin:0 0 8px;color:#62391f}
#br-stage #br-setup .br-sub {font-size:12px;line-height:1.48;color:#62432d;margin:0 0 12px}
#br-stage #br-setup .br-name {
  background:#fff6e5;border:1px solid #b58354;color:#56341f;box-shadow:inset 0 2px 3px #ad704327;
  height:40px;padding:8px 12px;margin:0 0 12px;font-size:13px;
}
#br-stage #br-setup .br-name::placeholder {color:#896346}
#br-stage #br-setup .br-lv {
  min-height:64px;margin:0 0 9px;border:0;padding:8px 17px 11px;gap:12px;
  background:transparent url('../assets/play/bridge/button-blue.webp') center/100% 100% no-repeat;
  color:#fff7e9;filter:drop-shadow(0 3px 2px #77503244);transition:filter .15s,transform .15s;
}
#br-stage #br-setup .br-lv:hover {filter:brightness(1.08) drop-shadow(0 3px 2px #77503244);transform:translateY(-1px)}
#br-stage #br-setup .br-lv:active {transform:translateY(1px)}
#br-stage #br-setup .br-lv .pip {
  background:url('../assets/play/bridge/card-face.webp') center/100% 100% no-repeat;
  color:#7d3b20;font:700 20px Georgia,serif;width:30px;min-width:30px;height:40px;line-height:36px;transform:rotate(-7deg);
}
#br-stage #br-setup .br-lv b {font:700 21px Georgia,serif;letter-spacing:.3px;text-shadow:0 1px 2px #1b5877}
#br-stage #br-setup .br-lv i {display:none}
#br-stage #br-setup .br-opts {display:grid;gap:10px;margin-top:14px;font-size:12px;color:#654329}
#br-stage #br-setup .br-opts label {display:flex;justify-content:space-between;gap:9px}
#br-stage #br-setup .br-opts select,#br-stage #br-setup .br-opts input {
  min-width:0;max-width:80%;background:#fff6e6;color:#55351f;border:1px solid #b58354;
  font-size:11px;padding:8px;height:36px;box-sizing:border-box;margin:0;
}
#br-stage #br-setup .br-opts input {width:80%;font-size:12px}
.br-scene-tools {position:absolute;bottom:3.3%;left:14%;right:14%;display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:3;color:#653a21}
#br-stage #br-resign {margin:0!important;font:700 11px system-ui,sans-serif;background:#fff3d8;border:1px solid #ad7950;color:#764327;min-height:30px;padding:5px 10px;box-shadow:0 2px 3px #5d351b25}
#br-stage .br-sound {display:flex;align-items:center;gap:4px;font-size:11px;margin:0 0 0 auto;padding:5px 8px;border-radius:9px;background:#fff1d9c9}
#br-stage #br-snd {accent-color:#287fa5;width:15px;height:15px;margin:0}
#br-stage #br-overbox {width:75%;max-width:330px;height:max-content;right:auto;bottom:auto;pointer-events:auto;overflow:visible;box-sizing:border-box;padding:25px 22px;background:#fff2d9 url('../assets/play/bridge/card-face.webp') center/100% 100% no-repeat;border:2px solid #a8683e;border-radius:22px;box-shadow:0 12px 40px #5b351a70;color:#402616}
#br-stage #br-overbox h3 {font:700 23px Georgia,serif;line-height:1.2}
#br-stage #br-overbox h3.good {color:#286235}
#br-stage #br-overbox h3.bad {color:#a12921}
#br-stage #br-overbox p {color:#65432b}
#br-stage #br-overbox .br-brk {color:#765235!important}
#br-stage .br-endbtns {display:grid;gap:8px}
#br-stage .br-endbtns button {min-height:42px;background:transparent url('../assets/play/bridge/button-blue.webp') center/100% 100% no-repeat;border:0;color:#fff7e6;font:700 16px Georgia,serif;padding:10px 14px 13px;text-shadow:0 1px 2px #20546f}
body.arcade .ac-rail {top:62px;padding:20px 0}
body.arcade .ac-panel {background:#fff3df;border:1px solid #d8b38a;box-shadow:0 4px 10px #6c3e1910}
body.arcade .ac-label {color:#9b5938}
body.arcade .ac-prose,body.arcade .ac-hero {color:#65442d}
body.arcade .ac-prose h2,body.arcade .ac-hero h1 {color:#4d2c18}
body.arcade .ac-prose a,body.arcade .ac-hero a,#br-deallink a {color:#216d90}
.br-notes {margin-top:22px}
.br-notes .br-honest,.br-notes .br-foot {font-size:13px;line-height:1.7;color:#6d4932}
.br-suit i.r {color:#af2925}.br-suit i.b {color:#453322}
body.arcade .egmh-card,body.arcade .egmh-toast {background:#fff0d8;box-shadow:0 10px 30px #65381855}
body.arcade .egmh-primary {background:#247da5;color:#fff8e9}
.br-auc th.me {color:#9b4229}.br-row b.good {color:#286235}.br-row b.bad {color:#a12921}
@media(min-width:721px) {
  #br-stage #br-setup .br-lv {position:relative}
  #br-stage #br-setup .br-lv i {display:block;position:absolute;left:0;right:0;top:100%;z-index:4;
    font:12px/1.4 system-ui,sans-serif;color:#55351f;background:#fff3df;border:1px solid #b58354;
    padding:8px 12px;border-radius:9px;visibility:hidden;pointer-events:none}
  #br-stage #br-setup .br-lv:hover i,#br-stage #br-setup .br-lv:focus-visible i {visibility:visible}
}
@media(max-width:720px) {
  body.arcade main.wrap {max-width:none;padding-left:0;padding-right:0}
  body.arcade main.wrap>.ac-layout {display:flex;flex-direction:column;margin:0;gap:0;width:100%}
  body.arcade #br-stage.ac-stage {height:calc(100svh - 44px);max-height:900px;width:100%;border-radius:0}
  body.arcade .ac-rail {width:100%;box-sizing:border-box;padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  body.arcade .ac-rail .ac-panel {min-width:0;padding:12px}
  body.arcade main.wrap>.ac-hero,body.arcade main.wrap>.ac-prose {padding:18px;margin:0}
}
@media(max-height:750px) {
  #br-stage #br-setup {top:24%;bottom:9%}
  #br-stage #br-setup h2 {font-size:18px;margin-bottom:6px}
  #br-stage #br-setup .br-sub {font-size:10.5px;line-height:1.35;margin-bottom:8px}
  #br-stage #br-setup .br-name {height:34px;margin-bottom:8px}
  #br-stage #br-setup .br-lv {min-height:49px;margin-bottom:6px;padding:5px 14px 8px}
  #br-stage #br-setup .br-lv b {font-size:19px}
  #br-stage #br-setup .br-lv .pip {height:32px;line-height:29px;width:25px;min-width:25px;font-size:17px}
  #br-stage #br-setup .br-opts {margin-top:8px;gap:6px}
  #br-stage #br-setup .br-opts select,#br-stage #br-setup .br-opts input {height:30px;padding:5px}
}
@media(prefers-reduced-motion:reduce) {#br-stage #br-setup .br-lv {transition:none}}
