/* Layout: one-screen card table — score strip on top, felt with four compass seats, the player's fanned hand docked at the bottom */
:root{
  --rail:#0c1a14;
  --felt:#1e5c3b;
  --felt-deep:#154629;
  --ink:#f2eee1;
  --muted:#a8c2b0;
  --card:#fffdf6;
  --card-2:#f1ebdb;
  --card-ink:#1b1b1b;
  --red:#c4122f;
  --brass:#d9b25c;
  --brass-ink:#2a2108;
  --vul:#b8322a;
  --panel:#e8eee6;
  --panel-ink:#14281d;
  --sheet:#f6f4ec;
  --sheet-ink:#1d241f;
  --sheet-muted:#5d6a60;
  --pos:#1d6b3c;
  --neg:#b3261e;
  --f-ui:"Barlow Semi Condensed","Arial Narrow",system-ui,sans-serif;
  --f-card:"Bitter",Georgia,"Times New Roman",serif;
  --f-face:"Cinzel",Georgia,serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--rail);color:var(--ink);font-family:var(--f-ui);font-size:15px;-webkit-tap-highlight-color:transparent;overflow:hidden}
button{font-family:inherit;font-size:inherit;color:inherit;cursor:pointer}
button:focus-visible,[tabindex]:focus-visible,input:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
table{color:inherit;font:inherit}
#app{height:100%;max-width:980px;margin:0 auto;display:flex;flex-direction:column;padding-inline:16px;padding-block:8px;gap:8px}
.red{color:var(--red)}

/* header strip */
#bar{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.vulbox{width:52px;height:52px;position:relative;background:var(--panel);color:var(--panel-ink);border-radius:6px;display:grid;place-items:center;font-weight:700;font-size:22px;border:6px solid #f4f4f0;font-variant-numeric:tabular-nums}
.vulbox .dl{position:absolute;font-size:10px;font-weight:700;color:var(--panel-ink)}
.box{background:var(--panel);color:var(--panel-ink);border:0;border-radius:6px;padding:4px 8px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:64px;line-height:1.1;text-align:left}
button.box{box-shadow:inset 0 -2px 0 rgba(0,0,0,.15)}
.box small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.7}
.box b{font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap}
.box .sm{font-size:12px}
.box .tr{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.spacer{flex:1}
.tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.btn{background:#e9e9e4;color:#222;border:0;border-radius:6px;padding:8px 10px;font-weight:600;box-shadow:inset 0 -2px 0 rgba(0,0,0,.2)}
.btn:disabled{opacity:.45;cursor:default}
.btn.gold{background:var(--brass);color:var(--brass-ink)}
.btn.new{background:#2f6f4a;color:#fff}
.btn.new.warn{background:var(--vul)}

/* table */
#table{flex:1;min-height:0;background:radial-gradient(ellipse at 50% 40%,var(--felt) 0%,var(--felt-deep) 100%);border-radius:14px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;gap:6px;padding:8px;position:relative;box-shadow:inset 0 0 0 3px rgba(0,0,0,.25)}
#pos2{grid-column:1/4;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
#pos1{max-width:42vw;grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}
#pos3{max-width:42vw;grid-column:3;grid-row:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:4px;min-width:0}
#center{grid-column:2;grid-row:2;position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center}
#pos0{display:flex;flex-direction:column;align-items:center;gap:4px}
.lbl{display:inline-flex;align-items:center;gap:5px;background:rgba(0,0,0,.28);padding:3px 8px;border-radius:999px;font-weight:600;font-size:13px;white-space:nowrap}
.lbl .tag{background:var(--brass);color:var(--brass-ink);border-radius:4px;padding:0 4px;font-size:11px}
.lbl.turn{box-shadow:0 0 0 2px var(--brass);background:rgba(217,178,92,.25)}
.lbl .vn{color:#ff9b8f}

/* cards */
.fan{display:flex;justify-content:center;width:100%;padding-top:10px}
.card{--cw:56px;width:var(--cw);height:calc(var(--cw)*1.42);flex:none;margin-left:var(--ov,0px);position:relative;background:linear-gradient(155deg,var(--card) 0%,var(--card) 55%,var(--card-2) 100%);color:var(--card-ink);border-radius:calc(var(--cw)*.1);border:1px solid #c7bea6;box-shadow:-2px 1px 5px rgba(0,0,0,.28);font-family:var(--f-card);user-select:none;overflow:hidden;transition:transform .12s}
.fan .card{--cw:inherit}
.fan{--cw:56px}
.fan .card:first-child{margin-left:0}
.card.rd{color:var(--red)}
.card .ix{position:absolute;top:calc(var(--cw)*.05);left:calc(var(--cw)*.05);width:calc(var(--cw)*.36);display:flex;flex-direction:column;align-items:center;line-height:.92}
.card .ix b{font-size:calc(var(--cw)*.34);font-weight:700;letter-spacing:-.07em}
.card .ix i{font-style:normal;font-size:calc(var(--cw)*.34)}
.card .pip{position:absolute;right:calc(var(--cw)*.08);bottom:calc(var(--cw)*.07);font-size:calc(var(--cw)*.6);line-height:1;display:flex;flex-direction:column;align-items:center}
.card.face .pip{font-size:calc(var(--cw)*.26);border:1.5px solid currentColor;border-radius:calc(var(--cw)*.06);padding:calc(var(--cw)*.05) calc(var(--cw)*.08);background:rgba(217,178,92,.2);right:calc(var(--cw)*.1);bottom:calc(var(--cw)*.1)}
.card.face .pip em{font-style:normal;font-family:var(--f-face);font-weight:700;font-size:calc(var(--cw)*.42);line-height:1}
.card.play{cursor:pointer}
.card.play:hover{transform:translateY(-8px)}
.card.dim{filter:brightness(.6) saturate(.8)}
.card.hint{box-shadow:0 0 0 3px var(--brass);transform:translateY(-10px)}
.vh{display:flex;flex-direction:column;gap:3px}
.vh .row{display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.vh .sy{width:14px;font-size:15px;text-align:center}
.mini{display:inline-grid;place-items:center;min-width:23px;height:30px;padding:0 3px;background:linear-gradient(155deg,var(--card),var(--card-2));color:var(--card-ink);border:1px solid #c7bea6;border-radius:4px;font:700 14px var(--f-card);letter-spacing:-.05em}
.mini.rd{color:var(--red)}
.mini.play{cursor:pointer}
.mini.dim{filter:brightness(.6)}
.mini.hint{box-shadow:0 0 0 3px var(--brass)}
.backs{display:flex}
.backs i{width:13px;height:19px;border-radius:2px;background:repeating-linear-gradient(45deg,#7d1626 0 3px,#a3283a 3px 6px);border:1px solid #f1e9d6;margin-left:-6px}
.backs i:first-child{margin-left:0}

/* trick */
.trick{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100%,300px);height:min(100%,260px)}
.card.tc{--cw:clamp(44px,12vw,64px);position:absolute;margin:0;box-shadow:0 3px 8px rgba(0,0,0,.4)}
.tc.p0{left:50%;bottom:2%;transform:translateX(-50%)}
.tc.p2{left:50%;top:2%;transform:translateX(-50%)}
.tc.p1{left:4%;top:50%;transform:translateY(-50%)}
.tc.p3{right:4%;top:50%;transform:translateY(-50%)}
.tc.win{box-shadow:0 0 0 3px var(--brass),0 3px 8px rgba(0,0,0,.4)}
.donebox{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.donebox b{font-size:18px}

/* auction */
.auction{background:var(--panel);color:var(--panel-ink);border-radius:8px;overflow:auto;min-height:0;flex:0 1 auto;font-size:16px}
.auction table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--panel-ink)}
.auction th{font-weight:600;padding:4px 2px;background:#fff;color:var(--panel-ink);font-size:14px}
.auction th.v{background:var(--vul);color:#fff}
.auction th.me{text-decoration:underline;text-underline-offset:3px}
.auction td{text-align:center;padding:3px 2px;font-weight:600}
.auction td .c{display:inline-block;padding:1px 6px;border-radius:4px;cursor:pointer}
.auction td .c.cvb{border-bottom:2px dotted #8a6d22}
.auction td .c.sel{background:#d6c38e}
.expl{margin-top:6px;background:#ded7b8;color:#2a2410;border-radius:8px;padding:6px 8px;font-size:14px;min-height:40px;line-height:1.3;max-height:34vh;overflow:auto}
.expl b{font-size:15px}
.expl .cv{margin-top:4px;font-size:13px;color:#4a3f1c}
.expl .cv span{display:inline-block;background:#8a6d22;color:#fff;border-radius:4px;padding:0 5px;margin-right:5px;font-weight:600}

/* bidding box */
#bidbox{display:flex;flex-direction:column;gap:5px}
#bidbox .row{display:flex;gap:4px}
#bidbox button{flex:1;min-width:0;border:0;border-radius:6px;background:#f2f2ee;color:#1e1e1e;font-weight:700;font-size:20px;padding:7px 0;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
#bidbox button.sel{background:var(--brass)}
#bidbox button:disabled{opacity:.3;cursor:default}
#bidbox button.pass{background:#a9cc8e}
#bidbox button.dbl{background:#c8102e;color:#fff}
#bidbox button.rdbl{background:#2f5fa8;color:#fff}
#bidbox button.st.r{color:var(--red)}
#status{font-size:14px;color:var(--muted);text-align:center;min-height:18px}

/* overlays */
.ov{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:16px;z-index:10}
.sheet{background:var(--sheet);color:var(--sheet-ink);border-radius:12px;padding:16px;width:min(620px,100%);max-height:100%;overflow:auto;display:flex;flex-direction:column;gap:12px}
.sheet h2{margin:0;font-size:22px;text-wrap:balance}
.sheet .grp{display:flex;flex-direction:column;gap:6px}
.sheet .grp>span{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--sheet-muted)}
.sheet .expl{max-height:none}
.muted{color:var(--sheet-muted);font-size:13px}
.seg{display:flex;gap:4px;flex-wrap:wrap}
.seg button{flex:1;border:1px solid #c7c9bd;background:#fff;border-radius:6px;padding:8px 6px;font-weight:600;color:#222}
.seg button.on{background:var(--felt);color:#fff;border-color:var(--felt)}
.cvrow{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:8px}
.cvrow input{width:20px;height:20px;margin-top:2px;accent-color:var(--felt);flex:none}
.cvrow span{display:flex;flex-direction:column;gap:2px;min-width:0}
.cvrow small{color:var(--sheet-muted);font-size:12.5px;line-height:1.3}
.res{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}
.res th,.res td{padding:5px 4px;border-bottom:1px solid #ddd;text-align:left}
.res .n{text-align:right}
.score2{display:flex;gap:8px}
.score2 div{flex:1;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:6px 10px;display:flex;flex-direction:column}
.score2 div.on{border-color:var(--felt);box-shadow:inset 0 0 0 1px var(--felt)}
.score2 small{font-size:11px;letter-spacing:.07em;color:var(--sheet-muted)}
.score2 b{font-size:22px;font-variant-numeric:tabular-nums}
.pos{color:var(--pos)}.neg{color:var(--neg)}
.deal{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;font-family:var(--f-card);font-size:14px}
.deal .h{background:#fff;border-radius:6px;padding:6px;line-height:1.35;min-width:0}
.deal .h b{font-family:var(--f-ui);font-size:12px;display:block;color:var(--sheet-muted)}
.deal .n{grid-column:2}.deal .w{grid-column:1;grid-row:2}.deal .e{grid-column:3;grid-row:2}.deal .s{grid-column:2;grid-row:3}
.big{font-size:20px;font-weight:700}
.row2{display:flex;gap:8px;flex-wrap:wrap}
.row2 .btn{flex:1}
.toast{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--brass);color:var(--brass-ink);padding:10px 14px;border-radius:10px;font-weight:700;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.4);z-index:3;cursor:pointer;max-width:90%}
@media (max-width:560px){
  #app{gap:6px;padding-block:6px}
  .vulbox{width:44px;height:44px;font-size:18px;border-width:5px}
  .box b{font-size:16px}
  .btn{padding:7px 7px;font-size:13.5px}
  .tools{gap:4px}
  #bidbox button{font-size:18px;padding:6px 0}
}
@media (prefers-reduced-motion:reduce){.card{transition:none}}

/* large suit symbols in bids, auction and explanations */
.sym{font-size:1.35em;line-height:1;vertical-align:-.1em;font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2",sans-serif}
.auction{font-size:19px}
.auction td .c{padding:2px 8px}
.expl{font-size:15px}
#bidbox button.st{font-size:30px;line-height:1;padding:6px 0}
#bidbox button.st.nt{font-size:22px}
.deal .sym{font-size:1.2em}
/* during the auction the bidding table uses the full felt width */
#table.bidding #pos1,#table.bidding #pos3{display:none}
#table.bidding #center{grid-column:1/4}
#table.bidding .auction,#table.bidding .expl{width:min(100%,560px);align-self:center}
.tok{flex:2;min-width:0;border:1px solid #c7c9bd;border-radius:6px;padding:8px;font:inherit;background:#fff;color:#222}
/* short screens: keep the table usable and let the page scroll */
#table{min-height:250px}
@media (max-height:640px){body{overflow-y:auto}}
/* compact table: partner's/dummy's cards, the trick and your hand sit close together near the bottom of the screen */
#table{flex:1 1 auto;margin-top:0;grid-template-rows:auto minmax(0,1fr)}   /* the table always fills the height: North at the top, your hand at the bottom */
#center{min-height:190px}
.trick{height:min(100%,200px);width:min(100%,280px)}
.card.tc{--cw:clamp(42px,11vw,58px)}
.fan{padding-top:6px}

/* ---- card face v2: big clear corner index, clean overlaps ---- */
.card{background:linear-gradient(170deg,#ffffff 0%,#fbf8f0 60%,#f1ebdb 100%);border:1px solid #b9b09a;border-radius:calc(var(--cw)*.09);box-shadow:-3px 0 6px rgba(0,0,0,.22)}
.card .ix{top:calc(var(--cw)*.05);left:calc(var(--cw)*.04);width:calc(var(--cw)*.42)}
.card .ix b{font-size:calc(var(--cw)*.44);letter-spacing:-.08em;font-weight:700}
.card .ix i{font-size:calc(var(--cw)*.42);margin-top:-.06em}
.fan .card:not(:last-child) .pip{display:none}
.card.face .pip{background:linear-gradient(160deg,rgba(217,178,92,.28),rgba(217,178,92,.08))}
/* playable cards rise, others stay calm instead of turning grey */
.fan .card.play{transform:translateY(-7px)}
.fan .card.play:hover{transform:translateY(-12px)}
.fan .card.dim{filter:none;opacity:.78}
.fan .card.dim .ix{opacity:.7}
.card.hint{transform:translateY(-14px)!important}
/* side dummy: small overlapping real cards */
.vh .row{flex-wrap:nowrap}
.vh .sy{width:16px;font-size:17px}
.mini{min-width:26px;height:38px;padding:3px 4px 0;place-items:start center;font:700 16px var(--f-card);border:1px solid #b9b09a;border-radius:4px;background:linear-gradient(170deg,#fff,#f1ebdb);box-shadow:-2px 0 4px rgba(0,0,0,.22);margin-left:-9px}
.vh .row .sy+.mini{margin-left:2px}
.mini.play{transform:translateY(-4px)}
.mini.dim{filter:none;opacity:.75}
.fan{padding-top:14px}
.fan .card.dim{opacity:1;filter:brightness(.9) saturate(.55)}
.fan .card.dim .ix{opacity:1}
.mini.dim{opacity:1;filter:brightness(.9) saturate(.55)}
.sel{border:1px solid #c7c9bd;border-radius:6px;padding:8px;font:inherit;background:#fff;color:#222}
.tok.wide{width:100%;flex:none;font-family:ui-monospace,Consolas,monospace;font-size:14px}
.err{background:#fde8e6;color:#8c1d14;border-radius:6px;padding:8px;font-size:14px}
.xo{font-style:normal;font-size:11.5px;color:#8a6d22}
.muted.tap{color:var(--muted);text-align:center;margin-top:6px;font-size:13px}
#dExpl{cursor:pointer}
/* larger score strip */
.vulbox{width:62px;height:62px;font-size:26px}
.vulbox .dl{font-size:12px}
.box{padding:6px 12px;min-width:84px;gap:1px}
.box small{font-size:13px}
.box b{font-size:23px}
.box .sm{font-size:14px}
.box .tr{font-size:15px}
@media (max-width:560px){
  .vulbox{width:56px;height:56px;font-size:23px}
  .box{padding:5px 10px;min-width:76px}
  .box small{font-size:12px}
  .box b{font-size:20px}
  .box .tr{font-size:14px}
}

/* ================= Classic look (default): flat tiles like club bridge apps ================= */
body.classic{background:#000;font-family:Roboto,"Segoe UI",Arial,sans-serif}
body.classic #app{padding-inline:2px;gap:4px}
body.classic #table{background:#1f7a2e;border-radius:0;box-shadow:none;padding:4px 0;gap:4px}
body.classic .lbl{background:rgba(0,0,0,.35);font-size:12px}
/* score strip */
body.classic .vulbox{background:#9fd3d6;color:#10292b;border-radius:8px}
body.classic .box{background:#9fd3d6;color:#10292b;border-radius:4px}
body.classic .box small{opacity:.8}
body.classic .btn{background:linear-gradient(#f4f4f4,#d9d9d9);color:#111;border:1px solid #9a9a9a;border-radius:3px;box-shadow:none}
body.classic .btn.gold{background:linear-gradient(#ffe27a,#f2c230);border-color:#b8901a}
body.classic .btn.new{background:linear-gradient(#5fbf6a,#2e8b3a);color:#fff;border-color:#226b2c}
/* card tiles */
body.classic .card{border-radius:3px;border:1px solid #8c8c8c;background:#fff;box-shadow:none;height:calc(var(--cw)*1.78);font-family:Roboto,"Arial Narrow",Arial,sans-serif;color:#000}
body.classic .card.rd{color:#d0021b}
body.classic .card .pip{display:none}
body.classic .card .ix{position:static;width:auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%;padding-top:calc(var(--cw)*.06);line-height:1}
body.classic .card .ix b{font-size:calc(var(--cw)*.82);font-weight:700;letter-spacing:-.06em}
body.classic .card .ix i{font-size:calc(var(--cw)*.9);margin-top:calc(var(--cw)*.04)}
body.classic .card.face{background:#fff}
body.classic .fan{padding-top:10px}
body.classic .fan .card{margin-left:1px}
body.classic .fan .card:first-child{margin-left:0}
body.classic .fan .card.play{transform:translateY(-6px)}
body.classic .fan .card.dim{filter:none;background:#e6e6e6}
body.classic .card.tc{--cw:clamp(40px,11vw,58px);border:1px solid #666}
/* side hands: one row of small tiles per suit */
body.classic .vh{gap:2px}
body.classic .vh .sy{display:none}
body.classic .mini{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;width:26px;height:46px;padding:2px 0 0;margin-left:-6px;border:1px solid #8c8c8c;border-radius:3px;background:#fff;box-shadow:-1px 0 2px rgba(0,0,0,.25);font:700 19px/1 Roboto,Arial,sans-serif;color:#000;letter-spacing:-.06em}
body.classic .vh .row .mini:first-of-type{margin-left:0}
body.classic .mini.rd{color:#d0021b}
body.classic .mini i{font-style:normal;font-size:19px;margin-top:2px}
body.classic .mini.dim{filter:none;background:#e6e6e6}
/* end of board: yellow banner over the open deal */
body.classic .donebox,.donebanner{background:linear-gradient(#ffd84a,#f2b705);color:#111;border:2px solid #8a6a00;border-radius:6px;padding:10px 14px;text-align:center;font:700 20px/1.25 Roboto,Arial,sans-serif;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.4);max-width:92%;align-self:center}
.donebanner small{display:block;font-size:14px;font-weight:600;margin-top:4px}
.donebanner .pos{color:#0b5d1e}.donebanner .neg{color:#9b0d0d}
body:not(.classic) .mini i{display:none}
body.classic .card{height:calc(var(--cw)*1.95)}
.donebanner{font-size:17px;border:2px solid #8a6a00}
@media (max-width:560px){.donebanner{font-size:15px;padding:8px 10px}}
.okmsg{background:#e3f4e6;color:#14532d;border-radius:6px;padding:8px;font-size:14px}
#status .sig{margin-top:3px;background:#fff6cf;color:#3d2f00;border-radius:6px;padding:4px 8px;font-size:14px;display:inline-block}
.btn.guide{display:block;text-align:center;text-decoration:none}
.helprow{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:8px 10px}
.helprow span{flex:1}
.helprow .btn{text-decoration:none}
.seg2{display:flex;gap:4px;flex-wrap:wrap}
.seg2 button{flex:1;border:1px solid #c7c9bd;background:#fff;border-radius:6px;padding:8px 6px;font-weight:600;color:#222}
.seg2 button.on{background:var(--felt);color:#fff;border-color:var(--felt)}
.bigcode{font:700 34px/1.1 ui-monospace,Consolas,monospace;letter-spacing:.18em;color:#14532d}
.chatlist{max-height:46vh;min-height:120px;overflow:auto;display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:8px}
.cm{background:#eef3ec;border-radius:10px;padding:6px 10px;max-width:85%;align-self:flex-start;font-size:15px;line-height:1.3;word-break:break-word}
.cm.me{background:#d9f0d3;align-self:flex-end}
.cm.sys{background:none;color:#5d6a60;font-style:italic;font-size:13px;align-self:center;text-align:center}
.cm small{display:block;font-size:11px;color:#7a857c;margin-top:2px}
.quick{display:flex;flex-wrap:wrap;gap:6px}
.quick button{border:1px solid #c7c9bd;background:#fff;border-radius:999px;padding:5px 10px;font-size:14px;color:#222}
#nMsg{flex:3}
.resscroll{overflow-x:auto}
#center{cursor:pointer}
.trick.lasttrick .card.tc{filter:saturate(.85);box-shadow:0 0 0 2px rgba(255,255,255,.5),0 3px 8px rgba(0,0,0,.4)}
.trick.lasttrick .card.tc.win{box-shadow:0 0 0 3px var(--brass),0 3px 8px rgba(0,0,0,.4)}
.lastlbl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.6);color:#fff;font-weight:700;font-size:13px;padding:4px 10px;border-radius:999px;white-space:nowrap}
.lasthint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:rgba(255,255,255,.55);font-size:12px;white-space:nowrap;pointer-events:none}

/* iPhone / Safari: size the app to the visible screen (toolbars included), keep clear of the notch and the
   home indicator, and let the page scroll if something still does not fit */
body{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:none;-webkit-text-size-adjust:100%}
#app{height:100%;height:100dvh;min-height:0;padding-top:calc(8px + env(safe-area-inset-top,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
body.classic #app{padding-left:max(2px,env(safe-area-inset-left,0px));padding-right:max(2px,env(safe-area-inset-right,0px))}
@supports not (height:100dvh){#app{height:auto;min-height:100%}}

/* phones: everything needed to bid (auction, bidding box, own hand) fits on one screen without scrolling.
   The app grows instead of clipping, the felt shrinks to the auction while bidding, and the tool buttons
   sit in a single sideways-scrolling row. */
#app{height:auto;min-height:100%;min-height:100dvh}
#table.bidding{min-height:0;grid-template-rows:auto auto}
#table.bidding #center{min-height:0}
@media (max-width:560px){
  #bar{gap:6px;row-gap:4px}
  #bar .tools{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;gap:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  #bar .tools::-webkit-scrollbar{display:none}
  #bar .tools .btn{flex:none;padding:6px 9px;font-size:13.5px}
  #bar .spacer{display:none}
  .vulbox{width:48px;height:48px;font-size:20px;border-width:5px}
  .box{padding:3px 8px;min-width:70px}
  .box b{font-size:18px}
  .box .tr{font-size:13px}
  #table{min-height:0}
  #table.bidding .auction{font-size:17px}
  #bidbox{gap:4px}
  #bidbox button{padding:5px 0}
  #bidbox button.st{font-size:26px;padding:4px 0}
}

/* online waiting room: the felt shows the seats instead of cards until the host presses Start */
#table.lobby #pos1,#table.lobby #pos2,#table.lobby #pos3{display:none}
#table.lobby #center{grid-column:1/4;cursor:default}
body.inlobby #pos0{display:none}
.lobby{background:var(--sheet,#f6f3e8);color:var(--sheet-ink,#222);border-radius:10px;padding:12px;width:min(100%,440px);align-self:center;display:flex;flex-direction:column;gap:8px}
.lobby h3{margin:0;font-size:18px}
.lseat{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:8px 10px;min-height:44px}
.lseat b{width:52px;flex:none}
.lseat span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lseat.me{border-color:var(--brass,#c9a227);box-shadow:inset 0 0 0 1px var(--brass,#c9a227)}
.lseat .btn{flex:none;padding:6px 10px}
.lobby .row2 .btn{font-size:16px;padding:10px}
.lseat.req{background:#fff6d6;border-color:var(--brass,#c9a227)}
.lseat.req .btn{padding:6px 10px}

/* Results: tap a board to look back at it */
tr.rev{cursor:pointer}
tr.rev:hover td,tr.rev:active td{background:#f3efdd}
.res.play td,.res.play th{text-align:center;padding:4px 6px}
.res.play td.win{font-weight:800;background:#fff3c4}
.res.play td.lead{text-decoration:underline;text-underline-offset:3px}
.res.play .sym{font-size:1.15em}
/* replay of a finished board: hands round the table, the trick in the middle */
.deal.replay{align-items:stretch}
.deal.replay .h.turn{box-shadow:0 0 0 2px var(--brass,#c9a227)}
.rtrick{grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;place-items:center;background:#1f7a2e;border-radius:8px;min-height:120px;cursor:pointer;padding:4px}
.rtrick .rc{background:#fff;color:#111;border:1px solid #9a9a9a;border-radius:4px;padding:3px 6px;font-weight:800;font-size:17px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.rtrick .rc.n{grid-column:2;grid-row:1}.rtrick .rc.w{grid-column:1;grid-row:2}.rtrick .rc.e{grid-column:3;grid-row:2}.rtrick .rc.s{grid-column:2;grid-row:3}
.rtrick .rc.win{background:#fff3c4;box-shadow:0 0 0 2px var(--brass,#c9a227)}
.rstat{text-align:center;font-weight:700;margin:6px 0 4px}
.rctl{display:flex;gap:6px;justify-content:center}
.rctl .btn{min-width:46px;font-size:17px}
/* phones: tool buttons wrap onto a second row instead of scrolling sideways, and the table sits right
   under the top bar (no empty space above it) while bidding and while playing */
@media (max-width:560px){
  #bar .tools{flex-wrap:wrap;overflow-x:visible}
  #bar .tools .btn{flex:1 0 auto;padding:7px 8px}
  #table{margin-top:0}
}
.tables{display:flex;flex-direction:column;gap:6px}
.tables .lseat b{width:auto;min-width:52px}
.lobby .helprow{display:flex;justify-content:space-between;align-items:center;gap:8px}

/* lobby and waiting room: each table drawn as a small card table with the players round it */
.tbls{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.tbl{display:grid;grid-template-columns:1fr 1.25fr 1fr;grid-template-rows:auto auto auto;gap:6px;align-items:center;justify-items:center;background:#0f3d18;border-radius:12px;padding:8px}
.tbl .tseat{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;color:#fff;min-width:0;max-width:100%;font-size:14px;line-height:1.2}
.tbl .tseat small{font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
.tbl .tseat b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.tbl .tseat i{opacity:.75}
.tbl .tseat em{font-size:11px;font-style:normal;color:#ffd76a}
.tbl .tseat .btn{padding:4px 8px;font-size:12.5px;margin-top:2px}
.tbl .tseat.n{grid-column:2;grid-row:1}.tbl .tseat.w{grid-column:1;grid-row:2}.tbl .tseat.e{grid-column:3;grid-row:2}.tbl .tseat.s{grid-column:2;grid-row:3}
.tbl .tmid{grid-column:2;grid-row:2;background:#1f7a2e;border-radius:10px;min-height:96px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;text-align:center;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.12)}
.tbl .tmid .tname{font-weight:800}
.tbl .tmid .tstate{font-size:12px;opacity:.85}
.tbl .tmid .muted{color:#e7efe5}
.tbl .tmid .btn{padding:6px 10px}

/* ================= home page ================= */
body.athome #bar,body.athome #table,body.athome #status,body.athome #bidbox,body.athome #pos0{display:none!important}
body.athome #app{max-width:1180px}
#home{flex:1;min-height:0}
.home{display:flex;flex-direction:column;gap:12px;height:100%}
.hhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:4px 2px}
.brand{font-family:Cinzel,serif;font-weight:700;font-size:26px;color:#f3e7c4;letter-spacing:.04em;display:flex;align-items:center;gap:10px}
.brand .suits{font-family:"Segoe UI Symbol","Apple Symbols",sans-serif;font-size:22px;letter-spacing:.08em;color:#fff}
.brand .suits i{font-style:normal;color:#e0475b}
.hhead .seg{margin:0}
.hgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start;flex:1;min-height:0}
.hmain{display:flex;flex-direction:column;gap:12px;min-width:0}
.hcard{background:var(--sheet,#f6f3e8);color:var(--sheet-ink,#222);border-radius:14px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.hcard h3{margin:0 0 8px;font-size:17px}
.hcard .grp{margin:0}
.hero{background:linear-gradient(160deg,#fbf6e6,#efe5c6)}
.hname{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-weight:600}
.hname .tok{flex:1;max-width:260px}
.hbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.hbtns .btn{font-size:18px;padding:13px 10px;border-radius:10px}
.hlinks{display:flex;gap:6px;flex-wrap:wrap}
.hlinks .btn{flex:1 0 auto}
.hstats{margin-top:8px;font-size:13.5px;color:#5b5a50;background:none;border:0;padding:0;text-align:left;cursor:pointer;font:inherit;font-size:13.5px;text-decoration:underline dotted;text-underline-offset:2px}
.hchat{position:sticky;top:8px;display:flex;flex-direction:column;height:calc(100dvh - 120px);min-height:360px}
.hchat h3 small{font-weight:500;color:#6d6c62;font-size:12.5px}
.lmsgs{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #dcdccf;border-radius:10px;padding:8px;margin-bottom:8px}
.lmsgs .cm{background:#eef3ec;border-radius:10px;padding:6px 10px;max-width:92%;align-self:flex-start;font-size:14.5px;line-height:1.3;word-break:break-word}
.lmsgs .cm.me{align-self:flex-end;background:#fff3c4}
.lmsgs .cm small{display:block;font-size:11px;color:#7c7b70;margin-top:2px}
#hConvBox summary{cursor:pointer;font-weight:700;font-size:17px}
.convs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cvchip{display:inline-flex;align-items:center;gap:6px;border:1px solid #c9c4ad;border-radius:999px;padding:5px 11px;font-size:13.5px;cursor:pointer;background:#fff;user-select:none}
.cvchip input{width:16px;height:16px;margin:0;accent-color:#2f6f4a}
.cvchip.on{background:#e3f0e4;border-color:#2f6f4a;font-weight:600}
@media (max-width:820px){
  .hgrid{grid-template-columns:1fr}
  .hchat{position:static;height:auto;min-height:0}
  .lmsgs{max-height:46vh;min-height:160px}
  .brand{font-size:21px}
}
/* player profile badge, tournaments */
.pb{display:inline-block;font-size:11px;font-weight:600;background:rgba(201,162,39,.18);color:#6b5a14;border-radius:999px;padding:1px 7px;margin-left:5px;white-space:nowrap}
.tbl .pb{background:rgba(255,215,106,.18);color:#ffd76a;margin:0}
.tourrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e3dfcd}
.tourrow small{display:block;color:#6d6c62;font-size:12.5px;margin-top:2px}
.tourrow .tbtns{display:flex;gap:6px;flex:none}
.tnew{margin-top:10px}
.tnew .sel{flex:0 0 auto;width:auto}
tr.meRow td{background:#fff3c4;font-weight:700}
/* lobby chat: a column on a computer, a pop-up behind a button on a phone; tournament set-up */
.mini-btn{float:right;padding:2px 8px;font-size:13px;margin-left:6px}
.lchatfab{display:none}
.lmsgs.pop{max-height:55vh;min-height:220px;flex:none}
@media (max-width:820px){
  .hchat{display:none}
  .lchatfab{display:flex;align-items:center;gap:6px;position:fixed;right:max(14px,env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:20;border:0;border-radius:999px;padding:12px 18px;background:#c9a227;color:#1d1a0f;font-weight:800;font-size:15px;box-shadow:0 6px 18px rgba(0,0,0,.45)}
}
.invlist{display:flex;flex-direction:column;gap:4px;max-height:40vh;overflow:auto;margin-bottom:8px}
.invrow{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:7px 10px;cursor:pointer}
.invrow input{width:18px;height:18px;accent-color:#2f6f4a}
.invrow b{flex:1}
.ok{color:#2f6f4a;font-weight:700}.no{color:#b3261e;font-weight:700}.wait{color:#8a6d22;font-weight:600}
b.inv{color:#b3261e}
.hbtns .hopen{grid-column:1/-1;background:#1f5f8b;color:#fff;font-size:17px}
/* home: section buttons (tournaments, our card, players, chat on a phone), table choice, players */
.hsecs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 8px}
.hsec{flex:1 1 auto;border:1px solid #c9c4ad;background:#fff;border-radius:10px;padding:9px 12px;font-weight:700;font-size:14.5px;cursor:pointer;color:#2a2a24}
.hsec.on{background:#2f6f4a;color:#fff;border-color:#2f6f4a}
.hsec.phoneonly{display:none}
.lchatfab{display:none!important}
.pchat .lmsgs{max-height:42vh;min-height:150px}
.hcard h3 .mini-btn{margin-left:6px}
.choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:14px;width:100%;font-size:17px}
.choice small{font-weight:500;font-size:13.5px;opacity:.85}
.people{display:flex;flex-direction:column;gap:6px}
.person{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #dcdccf;border-radius:8px;padding:7px 10px}
@media (max-width:820px){ .hsec.phoneonly{display:block} }
/* chat panel from the bottom of the screen (phones and narrow windows); private messages; tournament set-up */
#hSheet .pchat{position:fixed;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:30;max-height:62vh;display:flex;flex-direction:column;box-shadow:0 -6px 24px rgba(0,0,0,.5);margin:0}
#hSheet .pchat .lmsgs{flex:1;min-height:120px;max-height:none}
.pbtns{display:flex;gap:6px;flex:none}
.badge{display:inline-block;background:#b3261e;color:#fff;border-radius:999px;font-size:11px;padding:0 6px;margin-left:3px}
.tsetrow{display:grid;grid-template-columns:auto repeat(4,minmax(0,1fr));gap:6px;align-items:end;margin-top:6px}
.tsetrow b{font-size:13px;white-space:nowrap}
.tsetrow label{display:flex;flex-direction:column;gap:2px;min-width:0}
.tsetrow label small{font-size:11px;color:#6d6c62}
.tsetrow .tok{width:100%;min-width:0;padding:6px}
@media (max-width:560px){ .tsetrow{grid-template-columns:repeat(2,minmax(0,1fr))} .tsetrow b{grid-column:1/-1} }
/* chat while playing: right column on a wide screen, bottom panel on a phone or narrow window */
#dock[hidden]{display:none!important}
#dock{display:flex;flex-direction:column;gap:6px;background:var(--sheet,#f6f3e8);color:var(--sheet-ink,#222);border-radius:12px;padding:10px;box-shadow:0 6px 24px rgba(0,0,0,.45);z-index:40}
#dock .dhead{display:flex;align-items:center;justify-content:space-between;gap:6px}
#dock .dtabs{display:flex;gap:4px}
#dock .dtabs button{border:1px solid #c9c4ad;background:#fff;border-radius:8px;padding:5px 10px;font-weight:700;cursor:pointer}
#dock .dtabs button.on{background:#2f6f4a;color:#fff;border-color:#2f6f4a}
#dock .lmsgs{flex:1;min-height:0;overflow:auto;margin:0}
#dock .quick{display:flex;flex-wrap:wrap;gap:4px}
#dock .quick button{border:1px solid #dcdccf;background:#fff;border-radius:999px;padding:3px 9px;font-size:12.5px;cursor:pointer}
@media (min-width:1100px){
  #dock{position:fixed;right:10px;top:10px;bottom:10px;width:310px}
  #dock .dclose{display:none}
  body.withdock #app{margin:0 340px 0 auto}
}
@media (max-width:1099px){
  #dock{position:fixed;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));max-height:58vh}
  #dock .lmsgs{max-height:34vh;min-height:110px}
}
/* phones: the lobby chat shows on the home page itself (below the tables) */
@media (max-width:820px){
  .hchat{display:flex!important;position:static;height:auto;min-height:0}
  .hchat .lmsgs{max-height:40vh;min-height:150px}
}
/* who is in the lobby (above the chat) */
.who{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:6px}
.who>small{flex:none;white-space:nowrap}
.who small{color:#6d6c62;font-size:12px;margin-right:2px}
.whob{flex:none;white-space:nowrap;border:1px solid #c9c4ad;background:#fff;border-radius:999px;padding:3px 9px;font-size:12.5px;cursor:pointer;color:#2a2a24}
.whob:hover{background:#eef3ec}
.claimn{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.claimn .btn{min-width:48px;font-size:17px}
/* phones: a small chat button of fixed size under your cards (the one in the top bar is hidden) */
.chatbtn[hidden]{display:none!important}
.chatbtn{align-self:flex-end;flex:none;width:auto;border:0;border-radius:999px;padding:6px 14px;font-weight:800;font-size:14px;background:#c9a227;color:#1d1a0f;box-shadow:0 2px 8px rgba(0,0,0,.35);margin-top:4px}
/* phones: the chat button sits in the top bar next to ☰ (a small icon with the number of new messages) */
@media (max-width:1099px){ #chatBtn{display:none!important} }
@media (min-width:1100px){ #bar .narrowonly{display:none} }   /* the chat panel is always open on a wide screen */
#bChat{position:relative}
#bChat .cbn{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#c62828;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center}
.sysseg{flex-wrap:wrap}
.sysseg button{flex:1 1 auto}
/* phones: the chat panel stays in the free space under the cards instead of covering the table */
@media (max-width:1099px){
  #dock{max-height:33vh;padding:8px}
  #dock .lmsgs{max-height:none;min-height:70px}
  #dock .who{flex:none;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:2px}
}
.hname .sel{flex:1;max-width:260px}
.hrow{flex-wrap:wrap;gap:6px 14px}
.hrow label{display:flex;align-items:center;gap:8px;flex:1 1 150px;min-width:0}
.hrow .tok,.hrow .sel{flex:1;min-width:0;max-width:200px}
.tmid .ttour{font-size:12px;font-weight:700;color:#f3d77e;margin:2px 0}
.ov .deal{margin-top:8px}
#dock .who{flex:none}
/* a claim asked on the table: a small box in the middle with Accept / Decline */
.askbox{background:rgba(246,243,232,.96);color:#222;border-radius:10px;padding:6px 8px;font-size:13px;font-weight:700;text-align:center;max-width:220px;margin:auto;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.askbox .row2{gap:6px;margin-top:6px}
.askbox .btn{padding:5px 10px;font-size:13px;min-height:0}
#dock .dbtns{display:flex;gap:4px}
.tbtns .tdel{padding:4px 9px;min-width:0;opacity:.8}
.pname[data-who]{cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
/* whose turn it is: that player's name label lights up yellow */
.lbl.turn,body.classic .lbl.turn{background:#f2c94c;color:#1d1a0f;box-shadow:0 0 0 2px #f2c94c,0 0 14px rgba(242,201,76,.75);animation:turnglow 1.6s ease-in-out infinite}
.lbl.turn .vn{color:#b3261e}
.lbl.turn .pname{color:#1d1a0f}
@keyframes turnglow{50%{box-shadow:0 0 0 2px #f2c94c,0 0 4px rgba(242,201,76,.3)}}
@media (prefers-reduced-motion:reduce){.lbl.turn{animation:none}}
/* the tricks taken, large in the contract box */
.box .tr .tk{font-size:17px;font-weight:800;color:inherit}
/* the cards of the trick a little larger */
.card.tc{--cw:clamp(50px,13.5vw,74px)}
.tbds{flex-wrap:wrap}.tbds button{flex:0 0 auto;min-width:34px}.tbds button.dim{opacity:.45}
/* alerts: the alert row in the bidding box, alerted calls in the auction, the alert in the explanation */
.auction .c.alrt{background:#fff1b8;color:#5a4300;border-radius:4px;padding:0 3px}
.expl .al{background:#c9a227;color:#1d1a0f;border-radius:4px;padding:0 5px;font-size:12px;font-weight:800}
/* ===== table look: a calmer bar, a richer felt, name plates and card backs ===== */
/* the ☰ menu holds the less used buttons */
.menuwrap{position:relative;display:inline-flex}
.menuwrap .menu{position:absolute;right:0;top:calc(100% + 6px);z-index:60;display:flex;flex-direction:column;gap:4px;min-width:200px;padding:8px;background:#f6f3e8;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.menuwrap .menu .btn{width:100%;text-align:left;justify-content:flex-start}
#bar .tools .menuwrap .menu .btn{flex:none}
@media (max-width:1099px){ .menuwrap .menu{position:fixed;right:8px;top:auto;margin-top:6px} }
/* the felt: a lighter centre, a darker rail round the edge */
#table,body.classic #table{border-radius:10px;background:radial-gradient(ellipse at 50% 45%,#2f8a52 0%,#1f6b3d 55%,#164f2d 100%);box-shadow:inset 0 0 0 4px #0e3d22,inset 0 0 0 6px rgba(255,255,255,.08),inset 0 0 50px rgba(0,0,0,.35)}
/* name plates: dark blue with the seat letter in a white tab (red when vulnerable) */
.lbl,body.classic .lbl{background:#1b2a4e;color:#fff;border-radius:6px;padding:3px 9px 3px 3px;font-size:13px;box-shadow:0 2px 6px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.15)}
.lbl>span:first-child{background:#fff;color:#1b2a4e;border-radius:4px;padding:1px 6px;font-weight:800}
.lbl>span.vn:first-child,.lbl>span:first-child.vn{background:#c62828;color:#fff}
.lbl .tag{background:#f2c94c;color:#1d1a0f}
.lbl.turn>span:first-child{background:#1b2a4e;color:#f2c94c}
/* card backs: blue, a little larger, fanned */
.backs i{width:17px;height:25px;border-radius:3px;background:repeating-linear-gradient(45deg,#1f4fa0 0 3px,#2b63c2 3px 6px);border:1.5px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.35);margin-left:-11px}
.backs i:first-child{margin-left:0}
/* the cards of the trick: a soft shadow and a clear winner */
.card.tc{box-shadow:0 4px 12px rgba(0,0,0,.45)}
.tc.win{box-shadow:0 0 0 3px #f2c94c,0 4px 12px rgba(0,0,0,.45)}
/* the auction: a white sheet like a bidding pad */
#center .auction table{background:#fff;color:#1d1d1d;border-radius:8px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.35)}
#center .auction th{background:#e9edf5;color:#1b2a4e}
#center .auction th.v{background:#c62828;color:#fff}
/* the bidding box: white keys on a light tray (disabled keys fade into the tray instead of going dark) */
#bidbox{background:#dfe5ef;padding:6px;border-radius:12px;box-shadow:0 3px 12px rgba(0,0,0,.35)}
#bidbox button{background:#fff;color:#1b2a4e;border:1px solid #c3cbd9;box-shadow:0 2px 0 #b7c0d0}
#bidbox button:disabled{opacity:.35;box-shadow:none}
#bidbox button.sel{background:#f2c94c;border-color:#c9a227}
#bidbox button.pass{background:#2e8b57;color:#fff;border-color:#256f46}
#bidbox button.dbl{background:#c62828;color:#fff;border-color:#9e1f1f}
#bidbox button.rdbl{background:#1f4fa0;color:#fff;border-color:#183e7d}
#bidbox button.st{color:#1d1d1d}
#bidbox button.st.r{color:#c62828}
#bidbox button.st.nt{color:#1b2a4e}
/* dummy opposite you: one column per suit, the cards stacked so each index shows (as on a real table) */
.dcols{display:flex;justify-content:center;gap:clamp(4px,1.5vw,10px);padding-top:6px}
.dcol{display:flex;flex-direction:column;align-items:center;min-width:calc(var(--dw)*1px)}
.dcols{--dw:52}
.card.dc,body.classic .card.dc{--cw:calc(var(--dw)*1px);margin:0;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.card.dc{height:calc(var(--cw)*1.3)}
.card.dc+.card.dc{margin-top:calc(var(--dw)*-0.8px)}
body.classic .card.dc{height:calc(var(--cw)*1.3)}
body.classic .card.dc+.card.dc{margin-top:calc(var(--dw)*-0.8px)}
.card.dc.play{cursor:pointer}
.card.dc.play:hover{transform:translateY(-4px)}
@media (max-width:600px){ .dcols{--dw:40} }
/* in the dummy columns each card shows its rank and suit side by side in the strip that stays visible */
.card.dc .ix,body.classic .card.dc .ix{position:absolute;top:calc(var(--cw)*.04);left:calc(var(--cw)*.07);width:auto;height:auto;padding:0;flex-direction:row;align-items:baseline;gap:calc(var(--cw)*.03)}
.card.dc .ix b,body.classic .card.dc .ix b{font-size:calc(var(--cw)*.44)}
.card.dc .ix i,body.classic .card.dc .ix i{font-size:calc(var(--cw)*.4);margin:0}
.card.dc:not(:last-child) .pip{display:none}
/* the card just played slides in from its player's side */
.tc.p0{--fa:flyS}.tc.p1{--fa:flyW}.tc.p2{--fa:flyN}.tc.p3{--fa:flyE}
.tc.fly{animation:var(--fa) .28s ease-out}
@keyframes flyS{from{translate:0 140px;opacity:.6}}
@keyframes flyN{from{translate:0 -140px;opacity:.6}}
@keyframes flyW{from{translate:-160px 0;opacity:.6}}
@keyframes flyE{from{translate:160px 0;opacity:.6}}
/* a full trick slides to the side that won it */
.tc.g0{--ga:toS}.tc.g1{--ga:toW}.tc.g2{--ga:toN}.tc.g3{--ga:toE}
.tc.gather{animation:var(--ga) .32s ease-in .38s forwards}
.tc.fly.gather{animation:var(--fa) .28s ease-out,var(--ga) .32s ease-in .38s forwards}
@keyframes toS{to{translate:0 160px;opacity:0}}
@keyframes toN{to{translate:0 -160px;opacity:0}}
@keyframes toW{to{translate:-200px 0;opacity:0}}
@keyframes toE{to{translate:200px 0;opacity:0}}
@media (prefers-reduced-motion:reduce){.tc.fly,.tc.gather{animation:none}}
/* cards: rounded corners and a soft shadow (classic look) */
body.classic .card{border-radius:6px;border-color:#9a9a9a;box-shadow:0 1px 3px rgba(0,0,0,.25)}
body.classic .card.tc{border-radius:7px;box-shadow:0 4px 12px rgba(0,0,0,.45)}
/* tall phones: the table takes the free height (no empty band under the hand), the trick gets more room */
@media (max-width:820px) and (min-height:700px){
  #table,body.classic #table{flex:1 1 auto;margin-top:0;grid-template-rows:auto 1fr}
  .trick{height:min(100%,260px)}
  .card.tc,body.classic .card.tc{--cw:clamp(52px,15vw,70px)}
}
.hbtns .hwatch{grid-column:1/-1}
/* the home page: Watch a table, Settings and Help on one row */
.hbtns .hrow3{grid-column:1/-1;display:flex;gap:8px}
.hbtns .hrow3 .btn{flex:1 1 0;min-width:0;white-space:nowrap;font-size:15px;padding-left:4px;padding-right:4px;overflow:hidden;text-overflow:ellipsis}
.hbtns .hrow3 .hwatch{flex:1.5 1 0}
/* the home page: Play with robots and Open an online table side by side, Seat me under them */
.hbtns .hopen{grid-column:auto}
.hbtns .htour{font-size:17px}
.hbtns .htour.on{background:#2f6f4a;color:#fff}
/* the home page: each main action has its own colour */
.hbtns .btn.hopen{background:#1f5f8b;color:#fff;border-color:#174a6d}
.hbtns .btn.htour{background:#6a3fa0;color:#fff;border-color:#55308a}
.hbtns .btn.htour.on{background:#55308a;box-shadow:inset 0 0 0 3px #f2c94c}
.hbtns .btn.hconv.on{box-shadow:inset 0 0 0 3px #2f6f4a}
.hbtns .hrow3 .hwatch,.hbtns .hrow3 .hconv{flex:1 1 0}
/* Settings and Help: small round buttons next to the languages */
.hhr{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hico{width:38px;height:38px;border-radius:50%;border:1px solid #c9c4ad;background:#fff;font-size:18px;line-height:1;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}
.hico:hover{background:#eef3ec}
.hico{color:#1b2a4e;font-weight:800;font-size:20px;background:#f6f3e8;border-color:#b9b39a}
.hlang{display:inline-flex;align-items:center;gap:6px;color:#f6f3e8;font-size:18px}
.hlang .sel{font-size:15px;padding:6px 8px;border-radius:8px}
@media (max-width:600px){ #bar .lbt{display:none} }
@media (max-width:600px){ #bar .tools{flex-wrap:nowrap;gap:4px} #bar .tools>.btn{flex:1 1 auto;min-width:0;font-size:13px;padding:7px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} #bar .tools>#bHome,#bar .tools>#bChat,#bar .tools>#bLeave,#bar .tools>#nLeave,#bar .tools>#nStop{flex:none} #bar .menuwrap{flex:none} }
/* Watch a table (teal) and the Convention card (amber brown): their own colours, apart from the four main actions */
.hbtns .btn.hwatch{background:#12808a;color:#fff;border-color:#0d636b}
.hbtns .btn.hconv{background:#b5651d;color:#fff;border-color:#8f4f16}
.hbtns .btn.hconv.on{background:#8f4f16;box-shadow:inset 0 0 0 3px #f2c94c}
/* Players in the lobby: on the row of your name and system, to the right */
.hrow .hpeople{flex:0 1 auto;white-space:nowrap;font-size:14px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #c9c4ad;color:#2a2a24;font-weight:700}
.hrow .hpeople.on{background:#2f6f4a;color:#fff;border-color:#2f6f4a}
@media (max-width:600px){ .hrow .hpeople .hpl{display:none} .hrow .hpeople{padding:8px 8px} .hrow label{flex:1 1 120px} }
/* the player card (tap a name in the lobby) */
.pcard{display:flex;flex-direction:column;gap:8px}
.phead{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#1b2a4e,#2b4a86);color:#fff;border-radius:12px;padding:12px}
.pav{flex:none;width:52px;height:52px;border-radius:50%;background:#f2c94c;color:#1b2a4e;font-size:26px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px rgba(255,255,255,.35)}
.pmain{min-width:0}
.pnm{font-size:20px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pflag{font-size:20px}
.pstar{color:#f2c94c}
.psub{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;font-size:13px}
.plvl{border-radius:999px;padding:1px 9px;font-weight:700;background:#fff;color:#1b2a4e}
.plvl.l-beg{background:#d8f0d2;color:#24572a}.plvl.l-int{background:#d6e7fb;color:#1d4c8a}.plvl.l-adv{background:#fde9c2;color:#7a4a00}.plvl.l-exp{background:#f8d0d4;color:#8a1d2b}.plvl.l-wc{background:#f2c94c;color:#3a2a00}
.pwhere{color:#bfe8c6}
.pabout{font-style:italic;background:#f6f3e8;border-left:4px solid #c9a227;border-radius:6px;padding:6px 10px}
.pinfo{font-size:14px;color:#3a3a32}
.pedit{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;background:#f6f3e8;border-radius:10px;padding:8px}
.pedit label{display:flex;flex-direction:column;gap:2px;font-size:12.5px;font-weight:700;color:#5b5a50;min-width:0}
.pedit .pab{grid-column:1/-1}
.pedit .sel,.pedit .tok{width:100%;min-width:0}
/* the player card's fields (as on a profile page) and the convention line */
.pfields{width:100%;border-collapse:collapse;font-size:14.5px}
.pfields th{text-align:left;font-weight:600;color:#6d6c62;padding:5px 8px 5px 0;width:42%;vertical-align:top}
.pfields td{padding:5px 0;font-weight:600}
.pfields tr+tr th,.pfields tr+tr td{border-top:1px solid #e6e2d2}
.pconv{background:#f6f3e8;border-left:4px solid #1b2a4e;border-radius:6px;padding:7px 10px;font-size:13.5px;line-height:1.45}
.ptot{margin-top:2px}
/* Players in the lobby: side by side when the list is long */
.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.person{min-width:0}
.person .pname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pedit .pedh{grid-column:1/-1;font-weight:800;color:#1b2a4e;font-size:14px}
.pedit .pconvb{grid-column:1/-1;background:#b5651d;color:#fff;border-color:#8f4f16}
/* the tournament list: tabs and a table (on phones each tournament becomes a small card) */
.ttabs{flex-wrap:wrap;margin-bottom:6px}
.ttabs button small{opacity:.7;font-weight:600}
.ttwrap{overflow-x:auto;flex-shrink:0}
.ttab{width:100%;border-collapse:collapse;font-size:14px}
.ttab th{background:#1b2a4e;color:#fff;text-align:left;padding:6px 8px;font-weight:700;white-space:nowrap}
.ttab th:first-child{border-radius:8px 0 0 0}.ttab th:last-child{border-radius:0 8px 0 0}
.ttab td{padding:7px 8px;border-bottom:1px solid #e3dfcd;vertical-align:middle}
.ttab tbody tr:nth-child(even){background:#faf8f0}
.ttab td small{display:block;color:#6d6c62;font-size:12px}
.ttab .n{text-align:right}
.ttab .tact{white-space:nowrap}
.ttab .tact .btn{padding:6px 10px;margin:2px 0 2px 4px}
.tst{border-radius:999px;padding:2px 9px;font-weight:700;font-size:12.5px;white-space:nowrap}
.tst.reg{background:#fde9c2;color:#7a4a00}.tst.run{background:#d8f0d2;color:#24572a}
.tnote{color:#1b2a4e!important;font-weight:600}
@media (max-width:700px){
  .ttab thead{display:none}
  .ttab,.ttab tbody,.ttab tr{display:block}
  .ttab tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2px 8px;border:1px solid #e3dfcd;border-radius:10px;padding:8px;margin-bottom:8px;background:#fff!important}
  .ttab td{border:0;padding:2px 0;font-size:13px}
  .ttab td:first-child,.ttab td.tact{grid-column:1/-1}
  .ttab td.n{text-align:left}
  .ttab td[data-l]:not([data-l=""])::before{content:attr(data-l);display:block;color:#6d6c62;font-size:11px;font-weight:600}
  .ttab .tact .btn{margin:4px 6px 0 0}
}
.hnamebtn{text-align:left;cursor:pointer;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hnamebtn i{color:#9a988a;font-weight:400}
/* tournament types and the team match score */
.tkinds{flex-wrap:wrap}
.tkinds button{flex:1 1 30%;min-width:0}
.teams .tscore{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1b2a4e;color:#fff;border-radius:10px;padding:10px 12px;margin:6px 0}
.teams .tscore>div:not(.tsn){flex:1;font-size:13px}
.teams .tscore>div:last-child{text-align:right}
.teams .tsn{font-size:24px;font-weight:800;color:#f2c94c;white-space:nowrap}
/* the "edit my card" block, compact: small labels beside low fields, two per row */
.pedit{grid-template-columns:1fr 1fr;gap:4px 8px;padding:6px 8px}
.pedit .pedh{font-size:12px;margin-bottom:0}
.pedit label{flex-direction:row;align-items:center;gap:6px;font-size:11.5px}
.pedit label span{flex:none;width:58px;line-height:1.1}
.pedit .sel,.pedit .tok{padding:4px 6px;font-size:13px;height:30px;border-radius:6px}
.pedit .pconvb{padding:5px 8px;font-size:13px;min-height:0}
@media (max-width:420px){ .pedit label span{width:48px;font-size:11px} }
.pnm .pctry{font-size:14px;font-weight:600;opacity:.9;white-space:nowrap}
/* open tournaments at the top of Open tables */
.otours{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.otour{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f3eefc;border:1px solid #d4c6ef;border-left:4px solid #6a3fa0;border-radius:10px;padding:8px 10px}
.otour small{display:block;color:#6d6c62;font-size:12.5px;margin-top:2px}
.otour .otb{flex:none}
.pclin{width:100%;font:inherit;font-size:13.5px;line-height:1.45;resize:vertical;min-height:62px;background:#fff;border:1px solid #c9c4ad;border-left:4px solid #1b2a4e}
/* the daily tournament line on the home page */
.hdaily{display:block;width:100%;margin-top:10px;padding:9px 12px;border-radius:10px;border:1px solid #c9b6e8;background:linear-gradient(90deg,#f3ecff,#fbf8ff);color:#3d2a66;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.hdaily:empty{display:none}
.hdaily b{color:#5b3aa0}
.hdaily:hover{background:#ece2ff}
.prt{color:#1f6f3a;font-size:16px}
.anarow{padding:4px 0;border-bottom:1px dashed #e2e0d4}.anarow b.pos{color:#1f7a2e}
/* ---- dark screens (Settings → Screen): the pages, sheets and lists; the green table stays as it is ---- */
:root[data-theme="dark"]{--sheet:#1e2421;--sheet-ink:#e8ece4;--sheet-muted:#9db0a2;color-scheme:dark}
:root[data-theme="dark"] [class="btn"],:root[data-theme="dark"] .btn.mini-btn,:root[data-theme="dark"] .seg button,:root[data-theme="dark"] .seg2 button,:root[data-theme="dark"] .quick button,:root[data-theme="dark"] .dtabs button{background:#323b36;color:#e8ece4;box-shadow:inset 0 -2px 0 rgba(0,0,0,.35)}
:root[data-theme="dark"] .seg button.on,:root[data-theme="dark"] .seg2 button.on{background:#d9b25c;color:#1b1b1b}
:root[data-theme="dark"] .tok,:root[data-theme="dark"] .sel,:root[data-theme="dark"] .pclin,:root[data-theme="dark"] .pconv{background:#2a312d;color:#e8ece4;border-color:#4a564f}
:root[data-theme="dark"] .res th,:root[data-theme="dark"] .res td{border-bottom-color:#3a443e}
:root[data-theme="dark"] .auction th,:root[data-theme="dark"] .ttab tbody tr:nth-child(even) td{background:#29302c}
:root[data-theme="dark"] tr.meRow td{background:#3b3a22}
:root[data-theme="dark"] tr.rev:hover td{background:#2f3833}
:root[data-theme="dark"] .deal .h,:root[data-theme="dark"] .helprow,:root[data-theme="dark"] .person,:root[data-theme="dark"] .cvrow,:root[data-theme="dark"] .cvchip,:root[data-theme="dark"] .pedit,:root[data-theme="dark"] .hsec,:root[data-theme="dark"] .invrow,:root[data-theme="dark"] .otour,:root[data-theme="dark"] .score2 div,:root[data-theme="dark"] .rtrick .rc,:root[data-theme="dark"] .pabout,:root[data-theme="dark"] .menu{background:#262d29;color:#e8ece4;border-color:#3e4a43}
:root[data-theme="dark"] .cvchip.on{background:#2f4a36}
:root[data-theme="dark"] .lmsgs,:root[data-theme="dark"] .chatlist{background:#1a1f1c}
:root[data-theme="dark"] .lmsgs .cm,:root[data-theme="dark"] .chatlist .cm{background:#2a312d;color:#e8ece4}
:root[data-theme="dark"] .lmsgs .cm.me{background:#2f4a36}
:root[data-theme="dark"] .okmsg{background:#1f3a27;color:#bfe8c9}
:root[data-theme="dark"] .err{background:#4a1f22;color:#ffd0d0}
:root[data-theme="dark"] .hdaily{background:linear-gradient(90deg,#2d2440,#241f30);border-color:#4c3d6e;color:#e4dafa}
:root[data-theme="dark"] .hdaily b{color:#c9b2ff}
:root[data-theme="dark"] .hstats{color:#b9c6bd}
:root[data-theme="dark"] .hico{background:#2a312d;color:#e8ece4}
:root[data-theme="dark"] .anarow{border-bottom-color:#3a443e}
:root[data-theme="dark"] .sheet .sym.red,:root[data-theme="dark"] .hcard .sym.red{color:#ff6b7f}
/* larger cards (Settings → Card size): the cards on the table too */
body.bigcards .card.tc{--cw:clamp(58px,16vw,90px)}
body.bigcards .mini{transform:scale(1.15);transform-origin:bottom}
:root[data-theme="dark"] .hero{background:linear-gradient(160deg,#252c28,#1d2320)}
:root[data-theme="dark"] .hname label>span,:root[data-theme="dark"] .hero .muted{color:#b9c6bd}
:root[data-theme="dark"] .hsec{background:#2a312d;color:#e8ece4}
:root[data-theme="dark"] .hrow .hpeople:not(.on){background:#2a312d;color:#e8ece4;border-color:#4a564f}
/* ---- the lobby chat with the players beside it (a third of the width) ---- */
@media (min-width:901px){ .hgrid{grid-template-columns:minmax(0,1fr) 470px} }
.lsplit{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px;flex:1;min-height:0}
.lcol{display:flex;flex-direction:column;min-height:0;min-width:0}
.lplayers{overflow:auto;min-height:0;background:#fff;border:1px solid #dcdccf;border-radius:10px;padding:6px;font-size:13.5px;margin-bottom:8px}
.pchat .lsplit{max-height:46vh}
#hSheet .pchat .lsplit{max-height:none;height:52vh}
.lcount{display:flex;gap:8px;justify-content:space-between;font-weight:700;font-size:12.5px;padding:2px 2px 6px;border-bottom:1px solid #e3e1d4;margin-bottom:4px}
.ladmin{font-size:12.5px;background:#fff6d6;border:1px solid #e6cf7a;border-radius:6px;padding:3px 6px;margin-bottom:4px}
.lph{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#7c7b70;margin:6px 2px 2px}
.lp{display:flex;align-items:center;gap:2px}
.lp .lpn{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;text-align:left;background:none;border:0;padding:4px 3px;border-radius:6px;font:inherit;color:inherit;cursor:pointer}
.lp .lpn:hover{background:#eef3ec}
.lp .lpn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-weight:600}
.lp .lpn small{flex-basis:100%;padding-left:14px;color:#7c7b70;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp .lpi{flex:none;background:none;border:0;color:#7c7b70;font-size:13px;padding:2px 4px;cursor:pointer;border-radius:5px}
.lp .lpi:hover{background:#eef3ec;color:#222}
.lp .dot{width:8px;height:8px;border-radius:50%;flex:none;background:#2fa84f}
.lp.st-play .dot{background:#e0a400}
.lp.st-off .dot{background:#bdbdb4}
.lp.st-off .lpn span{color:#8a897f;font-weight:500}
.lplead{margin-top:8px;width:100%}
.pmto:empty{display:none}
.pmto{display:flex;align-items:center;gap:6px;font-size:13px;background:#ece4ff;color:#3d2a66;border-radius:8px;padding:4px 8px;margin-bottom:6px}
.lmsgs .cm.pm{background:#ece4ff;color:#3d2a66;cursor:pointer}
.lmsgs .cm.pm.me{background:#dcd0fb}
:root[data-theme="dark"] .lplayers{background:#1a1f1c;border-color:#3a443e}
:root[data-theme="dark"] .lp .lpn:hover,:root[data-theme="dark"] .lp .lpi:hover{background:#2a312d;color:#e8ece4}
:root[data-theme="dark"] .lmsgs .cm.pm,:root[data-theme="dark"] .pmto{background:#3a2f57;color:#e8defd}
:root[data-theme="dark"] .lmsgs .cm.pm.me{background:#463a68}
:root[data-theme="dark"] .ladmin{background:#3b3a22;border-color:#6b6230;color:#f3e7b0}
:root[data-theme="dark"] .lcount{border-bottom-color:#3a443e}
.tinfo{background:none;border:0;color:#7c7b70;font-size:12.5px;padding:0 3px;margin-left:2px;cursor:pointer;border-radius:4px}.tinfo:hover{background:#eef3ec;color:#222}:root[data-theme="dark"] .tinfo:hover{background:#2a312d;color:#e8ece4}
/* the chat panel at the table: the players beside the lobby chat */
#dock .dbody,#dock .dsplit{flex:1;min-height:0;display:flex;flex-direction:column}
#dock .dsplit{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:6px}
#dock .dsplit .lplayers{margin:0;font-size:12.5px}
#dock .lcol{gap:6px}
@media (min-width:1100px){ #dock{width:420px} body.withdock #app{margin:0 450px 0 auto} }
/* a player card or private chat during a game: a small window that can be dragged aside */
.ov.float{background:none;pointer-events:none;display:block;padding:0}
.ov.float .sheet{pointer-events:auto;position:fixed;right:24px;top:70px;width:min(380px,92vw);max-height:80vh;box-shadow:0 12px 34px rgba(0,0,0,.55)}
.fbar{display:flex;justify-content:space-between;align-items:center;cursor:move;margin:-8px -8px 0;padding:4px 8px;border-radius:8px;background:rgba(0,0,0,.07);user-select:none;touch-action:none;font-size:15px;color:#7c7b70}
.fbar .mini-btn{float:none}
:root[data-theme="dark"] .fbar{background:rgba(255,255,255,.07)}
/* the player card, compact: small header, the details in two columns, the convention line shortened (tap to open) */
.sheet:has(.pcard){width:min(400px,100%);padding:12px;gap:8px}
.pcard{gap:6px;font-size:13.5px}
.phead{padding:8px 10px;gap:10px;border-radius:10px}
.pav{width:38px;height:38px;font-size:19px}
.pnm{font-size:17px}
.pnm .pctry{font-size:12.5px}
.psub{font-size:12px;margin-top:2px}
.pfields{font-size:13px}
.pfields tbody{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.pfields tr{display:flex;flex-direction:column;border:0}
.pfields th{width:auto;padding:0;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.pfields td{padding:0 0 2px}
.pfields tr+tr th,.pfields tr+tr td{border-top:0}
div.pconv{font-size:12.5px;padding:5px 8px;max-height:4.7em;overflow:hidden;cursor:pointer;position:relative}
div.pconv.open{max-height:none}
textarea.pconv{font-size:12.5px;min-height:0}
.pcard .res{font-size:12.5px}
.pcard .res th,.pcard .res td{padding:3px 4px}
.pcard .row2{gap:6px;flex-wrap:wrap}
.pcard .row2 .btn{padding:6px 9px;font-size:13px}
.pcard .row2 .btn{flex:1 1 auto;white-space:nowrap}
/* ---- windows you can resize: drag the edge of the lobby chat or of the chat panel at the table, the line between
   the players and the messages, or the lower right corner of a card window ---- */
:root{--chatw:470px;--dockw:420px;--plw:33%}
@media (min-width:901px){ .hgrid{grid-template-columns:minmax(0,1fr) var(--chatw)} }
@media (min-width:1100px){ #dock{width:var(--dockw)} body.withdock #app{margin:0 calc(var(--dockw) + 30px) 0 auto} }
.grip{touch-action:none;user-select:none}
.grip.gripx{position:absolute;left:-7px;top:12px;bottom:12px;width:12px;cursor:ew-resize;z-index:5;border-radius:6px}
.grip.gripc{cursor:col-resize;border-radius:4px;align-self:stretch;margin-bottom:8px}
.grip:hover,.grip.drag{background:rgba(201,162,39,.45)}
.lsplit,#dock .dsplit{grid-template-columns:minmax(80px,min(var(--plw),45%)) 8px minmax(0,1fr);gap:0}
#dock .dsplit .grip.gripc{margin-bottom:0}
@media (max-width:900px){ .hchat .gripx{display:none} }
@media (max-width:1099px){ #dock .gripx{display:none} }
.ov.float .sheet{resize:both;overflow:auto;min-width:260px;min-height:160px;max-height:none;max-width:90vw}
/* pop-up windows: compact (the wide ones with tables keep more room) */
.sheet:not(.wide){width:min(460px,100%);padding:12px 14px;gap:9px;font-size:14px}
.sheet:not(.wide) h2{font-size:18px}
.sheet:not(.wide) .grp{gap:4px}
.sheet:not(.wide) .btn{padding:7px 10px;font-size:14px}
.sheet:not(.wide) .helprow{padding:5px 8px;font-size:13.5px}
.sheet:not(.wide) .muted{font-size:12.5px}
.sheet:not(.wide) .tok,.sheet:not(.wide) .sel{padding:6px 8px;font-size:14px}
.ov.float .sheet:not(.wide){width:min(420px,92vw)}
.grp.seats{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.grp.seats>span{grid-column:1/-1}
.grp.seats .helprow{padding:4px 8px}
.sheet[data-ov="net"] .muted{font-size:12px;line-height:1.35}
/* a small window opens beside the chat panel, never on top of it */
@media (min-width:1100px){ body.withdock .ov.float .sheet{right:calc(var(--dockw) + 34px)} }
/* ---- short screens (a phone held sideways, a small or half window): everything a bit smaller so the game fits
   without scrolling ---- */
@media (max-height:600px){
  #app{gap:4px;padding-block:4px}
  .vulbox{width:44px;height:44px;font-size:18px;border-width:4px}
  .box{padding:2px 8px;min-width:60px}
  .box b{font-size:15px}
  #bar .btn{padding:5px 8px;font-size:13px}
  #table,body.classic #table{grid-template-rows:auto minmax(0,1fr)!important;min-height:0!important;padding:3px 0;gap:3px}
  #center{min-height:100px!important}
  .trick{height:min(100%,150px)!important}
  .card.tc,body.classic .card.tc{--cw:clamp(30px,8vh,46px)}
  #bidbox{gap:3px;padding:4px}
  #bidbox button{font-size:15px;padding:3px 0}
  #bidbox button.st{font-size:20px;padding:2px 0}
  #bidbox button.st.nt{font-size:15px}
  .lbl{font-size:11.5px;padding:2px 6px}
  #status{font-size:12px;min-height:0}
  .vh .mini,body.classic .mini{height:34px;width:20px}
}
@media (max-height:440px){
  #status{display:none}
  #center{min-height:80px!important}
}
@media (max-height:600px){
  .fan,body.classic .fan{padding-top:4px}
  .vh .mini,body.classic .mini{height:26px;width:18px;font-size:12px}
  body.classic .mini i{font-size:13px;margin-top:0}
  .vh{gap:1px}
  #pos0 .lbl,#pos2 .lbl{margin-top:1px}
  .donebanner{font-size:15px!important;padding:6px 10px!important}
}
@media (max-height:450px){
  .lbl{font-size:11px;padding:1px 6px;line-height:1.3}
  .lbl .tag{font-size:10px;padding:0 4px}
  .vulbox{width:40px;height:40px;font-size:16px}
  .box{padding:1px 7px}
  .box small{font-size:10px}
  #bar .btn{padding:4px 7px;font-size:12.5px}
  #bidbox button{padding:2px 0}
}
/* a small window always stays inside the screen */
.ov.float .sheet{max-height:calc(100dvh - 90px)}
@media (max-height:600px){ .ov.float .sheet{top:8px;max-height:calc(100dvh - 16px)} }
@media (max-height:450px){
  .vh .mini,body.classic .mini{height:22px;width:16px;font-size:11px}
  body.classic .mini i{font-size:11px}
  #center{min-height:60px!important}
}
/* on a computer every pop-up window can be made bigger or smaller from its lower right corner */
@media (min-width:900px) and (pointer:fine){ .ov .sheet{resize:both;overflow:auto;min-width:300px;min-height:160px;max-width:96vw;max-height:96vh} }
@media (min-width:1100px){ body.withdock .ov:not(.float){padding-right:calc(var(--dockw) + 30px)} }
/* the administrator's visitor statistics */
.res.stats td{padding:5px 4px}
.res.stats .sbar{width:40%}
.res.stats .sbar i{display:block;height:10px;border-radius:5px;background:linear-gradient(90deg,#5b3aa0,#9b7be0)}
.hadm,.ladmin{cursor:pointer}
.hadm{color:#7a5a00;font-weight:700}
:root[data-theme="dark"] .hadm{color:#f3d36b}
/* computers and tablets: the table takes the whole height — North at the top, your hand at the bottom, the trick in
   the middle with room to spare (the cards of North and South never meet); East and West cards bigger */
@media (min-width:821px) and (min-height:601px){
  #table,body.classic #table{flex:1 1 auto;margin-top:0;grid-template-rows:auto 1fr}
  #center{min-height:200px}
  .trick{height:min(100%,330px);width:min(100%,400px)}
  .card.tc,body.classic .card.tc{--cw:clamp(52px,8vh,80px)}
  body.classic .mini{width:32px;height:54px;margin-left:-8px;font-size:18px}
  body.classic .mini i{font-size:21px}
  .vh{gap:3px}
}
/* big screens: East and West cards bigger still */
@media (min-width:1200px) and (min-height:800px){
  body.classic .mini{width:40px;height:66px;margin-left:-10px;font-size:22px}
  body.classic .mini i{font-size:25px}
}
/* a wide but not very tall window (a computer with the screen enlarged in Windows): East and West cards stay readable */
@media (max-height:600px) and (min-height:451px) and (min-width:1000px){
  .vh .mini,body.classic .mini{width:29px;height:46px;font-size:17px;margin-left:-7px}
  body.classic .mini i{font-size:19px}
}
/* the trick cards take their size from the room in the middle of the table (set by fitTable) */
#center .card.tc,body.classic #center .card.tc{--cw:var(--tcw,58px)}
#center .trick{height:calc(100% - 4px)!important}
/* ==== the table as on the big bridge sites ====
   short cards with the rank and suit at the top; the name plate covers the lower part of a hand; the four cards of
   the trick lie together in a small cross in the middle; the same card size for the hands and the trick */
body.classic .card{height:calc(var(--cw)*1.5)}
body.classic .card .ix{padding-top:calc(var(--cw)*.04)}
body.classic .card .ix b{font-size:calc(var(--cw)*.66);letter-spacing:-.06em}
body.classic .card .ix i{font-size:calc(var(--cw)*.6);margin-top:0}
body.classic #pos0 .lbl{position:relative;z-index:3;margin-top:calc(var(--fcw,50px)*-.26)}
body.classic #pos2:has(.fan) .lbl{order:2;position:relative;z-index:3;margin-top:calc(var(--fcw,50px)*-.26)}
body.classic #pos0,body.classic #pos2{gap:0}
/* the trick: a small cross around the middle of the table (North above, South below, West left, East right) */
#center .trick{left:50%!important;top:50%!important;width:0!important;height:0!important;transform:none!important}
#center .card.tc{position:absolute;left:0!important;top:0!important;right:auto!important;bottom:auto!important}
#center .tc.p2{transform:translate(-62%,-104%)}
#center .tc.p0{transform:translate(-38%,-2%)}
#center .tc.p1{transform:translate(-130%,-56%)}
#center .tc.p3{transform:translate(30%,-46%)}
#center .tc.p0{z-index:4}#center .tc.p1{z-index:2}#center .tc.p2{z-index:1}#center .tc.p3{z-index:3}
/* the bidding box: two rows, narrow, under the table */
#bidbox{max-width:640px;width:100%;margin:0 auto;gap:4px;padding:5px}
#bidbox .row{gap:3px}
#bidbox .r1 button{font-size:17px;padding:6px 0}
#bidbox .r1 .pass{flex:2.2;font-size:15px}
#bidbox .r1 .dbl,#bidbox .r1 .rdbl{flex:1.1;font-size:15px}
#bidbox .r2 button.st{font-size:22px;padding:3px 0}
#bidbox .r2 button.st.nt{font-size:17px}
@media (max-height:600px){ #bidbox .r1 button{padding:3px 0;font-size:15px} #bidbox .r2 button.st{padding:1px 0;font-size:18px} }
/* who the message goes to (beside the message box) and its menu */
.rcpt{flex:none;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#1f6b3d!important;color:#f2d27a!important;border:1px solid #c9a227!important;border-radius:999px!important;font-size:14px;padding:5px 10px}
.rcptmenu{position:fixed;z-index:60;width:210px;max-height:50vh;overflow:auto;background:var(--sheet,#f6f3e8);color:var(--sheet-ink,#222);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.45);padding:4px;display:flex;flex-direction:column;gap:2px}
.rcptmenu button{text-align:left;background:none;border:0;border-radius:6px;padding:7px 9px;font:inherit;font-size:14px;color:inherit;cursor:pointer}
.rcptmenu button:hover{background:rgba(31,107,61,.18)}
/* under the players list */
.lpfoot{display:flex;flex-direction:column;gap:5px;margin-top:8px;padding-top:6px;border-top:1px solid #e3e1d4;font-size:12.5px}
.lpoff{display:flex;align-items:center;gap:6px;cursor:pointer}
.lpadd{display:flex;gap:4px}
.lpadd .tok{flex:1;min-width:0;padding:4px 6px;font-size:12.5px}
:root[data-theme="dark"] .lpfoot{border-top-color:#3a443e}
.row2 .rcpt,#dock .rcpt{flex:0 0 auto!important;min-width:min(max-content,45%)}
/* overlapping cards (narrow screens): the rank and suit at the left edge, like a hand held in the fingers */
body.classic .fan.ovl .card{margin-left:var(--ov)}
body.classic .fan.ovl .card:first-child{margin-left:0}
body.classic .fan.ovl .card .ix{align-items:flex-start;padding-left:calc(var(--cw)*.07)}
body.classic .fan.ovl .card .ix b{font-size:calc(var(--cw)*.5)}
body.classic .fan.ovl .card .ix i{font-size:calc(var(--cw)*.48)}
/* the cards sliding in and out of the trick stay inside the felt (no moment of scrolling) */
#table,body.classic #table{overflow:hidden}
/* the send button: an arrow in the table's green and gold, like the button for who gets the message */
.sendb{flex:none!important;width:44px;padding:5px 0!important;font-size:18px;line-height:1;background:#1f6b3d!important;color:#f2d27a!important;border:1px solid #c9a227!important;border-radius:999px!important;box-shadow:none!important}
.sendb:hover{background:#26834a!important}
/* the message bar: one rounded bar under the whole chat — who gets it, the message (grows to three lines), send */
.composer{display:flex;align-items:flex-end;gap:6px;background:#fff;border:1.5px solid #c9a227;border-radius:22px;padding:4px;margin-top:6px;flex:none}
.composer:focus-within{box-shadow:0 0 0 3px rgba(201,162,39,.3)}
.composer .cmsg{flex:1;min-width:0;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit;font-size:15px;line-height:1.35;padding:7px 4px;height:34px;max-height:96px;overflow-y:auto}
.composer .rcpt,.composer .sendb{height:34px;align-self:flex-end;margin:0}
.composer .rcpt{max-width:40%}
.composer .sendb{width:38px}
:root[data-theme="dark"] .composer{background:#2a312d;border-color:#8a7020}
#dock .composer{margin-top:4px}
.gsug{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}.gsug .mini-btn{float:none;margin:0}.gmode button{font-size:14px}
/* four-colour deck (Settings → Deck): clubs green, diamonds orange */
body.four .card.s0,body.four .mini.s0,body.four .sym.s0,body.four .sy.s0,body.four #bidbox .st.s0{color:#1a8a3a!important}
body.four .card.s1,body.four .mini.s1,body.four .sym.s1,body.four .sy.s1,body.four #bidbox .st.s1{color:#e07000!important}
/* vulnerability on the name plates: the seat in red when vulnerable, in green when not */
.lbl>span:first-child,body.classic .lbl>span:first-child{background:#2e7d32;color:#fff}
.lbl>span.vn:first-child,body.classic .lbl>span.vn:first-child,.lbl.turn>span.vn:first-child{background:#c62828;color:#fff}
.lbl.turn>span:first-child{color:#fff}
/* ==== our own card face: warm ivory, a fine gold line inside the edge, the rank in a serif type ==== */
body.classic .card{background:linear-gradient(170deg,#fffdf7 0%,#fbf6e8 100%);border:1px solid #b9ad8f;border-radius:7px}
body.classic .card::after{content:"";position:absolute;inset:2px;border:1px solid rgba(201,162,39,.35);border-radius:5px;pointer-events:none}
body.classic .card .ix b{font-family:Bitter,Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:-.04em}
body.classic .card.dim{filter:none;background:linear-gradient(170deg,#ecebe4,#e2e0d6)}
/* card backs (Settings → Card back) */
.backs i{background:repeating-linear-gradient(45deg,#1f4fa0 0 3px,#2b63c2 3px 6px)}
body.back-green .backs i{background:radial-gradient(circle at 50% 50%,#2f8a52 0 25%,transparent 26%) 0 0/6px 6px,#1b5e3a}
body.back-red .backs i{background:repeating-linear-gradient(-45deg,#8e1b2c 0 3px,#b72c40 3px 6px)}
body.back-navy .backs i{background:linear-gradient(135deg,transparent 40%,#d9b25c 40% 60%,transparent 60%) 0 0/7px 7px,#14213d}
/* table cloth (Settings → Table) */
body.felt-blue #table,body.felt-blue.classic #table{background:radial-gradient(ellipse at 50% 45%,#2d6aa8 0%,#1c4f84 55%,#123760 100%)!important}
body.felt-wood #table,body.felt-wood.classic #table{background:radial-gradient(ellipse at 50% 45%,rgba(255,255,255,.08),transparent 60%),repeating-linear-gradient(92deg,#7a4a24 0 14px,#83512a 14px 22px,#6e4220 22px 34px)!important}
body.felt-dark #table,body.felt-dark.classic #table{background:radial-gradient(ellipse at 50% 45%,#3a3f44 0%,#26292d 60%,#1a1c1f 100%)!important}
body.felt-red #table,body.felt-red.classic #table{background:radial-gradient(ellipse at 50% 45%,#9c2a35 0%,#7a1e28 55%,#58141c 100%)!important}
.bkx{display:inline-block;width:18px;height:26px;border-radius:3px;border:1.5px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.35);vertical-align:middle}
/* the card picked with the arrow keys */
.card.kb{outline:3px solid #2f8ae0;outline-offset:1px;transform:translateY(-10px)!important}
/* animations: the deal, the newest call, the result */
body.dealing .fan .card{animation:dealIn .42s cubic-bezier(.2,.8,.3,1) both}
@keyframes dealIn{from{opacity:0;transform:translateY(-60px) rotate(-8deg) scale(.7)}}
body.dealing .fan .card:nth-child(1){animation-delay:0ms}
body.dealing .fan .card:nth-child(2){animation-delay:45ms}
body.dealing .fan .card:nth-child(3){animation-delay:90ms}
body.dealing .fan .card:nth-child(4){animation-delay:135ms}
body.dealing .fan .card:nth-child(5){animation-delay:180ms}
body.dealing .fan .card:nth-child(6){animation-delay:225ms}
body.dealing .fan .card:nth-child(7){animation-delay:270ms}
body.dealing .fan .card:nth-child(8){animation-delay:315ms}
body.dealing .fan .card:nth-child(9){animation-delay:360ms}
body.dealing .fan .card:nth-child(10){animation-delay:405ms}
body.dealing .fan .card:nth-child(11){animation-delay:450ms}
body.dealing .fan .card:nth-child(12){animation-delay:495ms}
body.dealing .fan .card:nth-child(13){animation-delay:540ms}
#center .auction .c.newc{animation:callIn .35s cubic-bezier(.2,.8,.3,1.3) both}
@keyframes callIn{from{opacity:0;transform:translateY(-14px) scale(1.5)}}
.donebanner.good{animation:goodGlow 1.4s ease-out 1}
@keyframes goodGlow{0%{box-shadow:0 0 0 0 rgba(242,201,76,.9)}50%{box-shadow:0 0 30px 12px rgba(242,201,76,.6)}100%{box-shadow:0 0 0 0 rgba(242,201,76,0)}}
.donebanner.bad{animation:badShake .5s ease-in-out 1}
@keyframes badShake{0%,100%{translate:0}20%{translate:-8px}40%{translate:7px}60%{translate:-5px}80%{translate:3px}}
@media (prefers-reduced-motion:reduce){body.dealing .fan .card,#center .auction .c.newc,.donebanner.good,.donebanner.bad{animation:none}}
/* player pictures */
.pav.emo{background:#fff8e1;font-size:24px}
.pavpick{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;color:#5b5a50}
.pavpick>div{display:flex;flex-wrap:wrap;gap:3px}
.pavpick button{width:30px;height:30px;border:1px solid #d6d2c0;border-radius:8px;background:#fff;font-size:17px;line-height:1;cursor:pointer;padding:0}
.pavpick button.on{border-color:#c9a227;box-shadow:0 0 0 2px #c9a227;background:#fff8e1}
:root[data-theme="dark"] .pavpick button{background:#2a312d;border-color:#4a564f}

/* the problem of the day */
.pzbox{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-start;margin:8px 0}
.pzhand{font-size:1.15em;line-height:1.45;font-weight:600;padding:6px 10px;border-radius:10px;background:var(--panel2,rgba(0,0,0,.06))}
.pzhand small{display:block;font-weight:400;opacity:.7;font-size:.75em}
.pzbox .auction{flex:1 1 100%;min-width:0;overflow:hidden;font-size:16px}
.pzbox .auction th:not(.v){background:rgba(0,0,0,.07)!important}
.pzbids{display:flex;flex-direction:column;gap:4px;margin:6px 0}
.pzrow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.pzrow:first-child{grid-template-columns:2fr 1fr 2fr}
.pzbids button,.pzcards button{padding:5px 2px;border-radius:8px;border:1px solid #bbb;background:#fff;color:#111;font:inherit;font-weight:700;cursor:pointer;min-height:32px}
.pzbids button.pass{background:#2f8f4e;color:#fff;border-color:#2f8f4e}
.pzbids button:hover,.pzcards button:hover{outline:2px solid var(--gold,#d4a017)}
.pzcards{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
.pzcards button{min-width:44px;color:#111;background:#fff}
.pzcards button.rd{color:#c0262d}
body.four .pzcards button.s0{color:#16803c}body.four .pzcards button.s1{color:#e06a00}
.sheet[data-ov="puzzle"] .okmsg,.sheet[data-ov="puzzle"] .err{font-weight:700;margin:8px 0 4px}
.hpuzzle{border-color:#e8d39a;background:linear-gradient(90deg,#fff6dc,#fffbef);color:#5a4200}
.hpuzzle b{color:#8a5d00}
:root[data-theme="dark"] .hpuzzle{background:#3a3220;color:#f3e2b0;border-color:#6b5a2c}
:root[data-theme="dark"] .hpuzzle b{color:#ffd770}
.pzvals{margin:6px 0;display:flex;flex-direction:column;gap:3px}
.pzvals div{padding:3px 8px;border-radius:6px;background:rgba(127,127,127,.12)}
.pzvals div.best{background:rgba(47,143,78,.22)}
.pzvals b{display:inline-block;min-width:76px}
.tclub{font-size:12px;padding:1px 6px;border-radius:8px;background:#efe3c2;color:#6b4c00;white-space:nowrap}
:root[data-theme="dark"] .tclub{background:#4a3d1c;color:#ffe199}
[data-lscope]{margin-bottom:8px}
/* narrow phones: the open side hands wrap, so the middle keeps room for the result */
@media (max-width:430px){#table{grid-template-columns:minmax(0,auto) minmax(112px,1fr) minmax(0,auto)}#pos1,#pos3{min-width:0}#pos1 .vh .row,#pos3 .vh .row{flex-wrap:wrap;row-gap:2px}}
/* wider screens: the players beside you stay at the table during the auction (name and cards face down) */
@media (min-width:700px){#table.bidding #pos1,#table.bidding #pos3{display:flex}#table.bidding #center{grid-column:2}}
/* the auction header: each seat with its player under it; the seat to call is lit */
.auction th small{display:block;font-weight:500;font-size:11px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auction th.turn{box-shadow:inset 0 -3px 0 #f4c430;background:#fff3c4!important;color:#3a2a00!important}
.auction th.turn.v{background:#ffd27a!important}
.kickx{margin-left:4px;border:0;border-radius:50%;width:18px;height:18px;line-height:16px;padding:0;font-size:11px;background:rgba(255,255,255,.25);color:#fff;cursor:pointer}
.kickx:hover{background:#c62828}

/* ── Practise conventions: the heart of the home page ── */
.hcard.prac{background:radial-gradient(ellipse at 20% 0%,#2f8a58 0%,#1f6440 55%,#174d31 100%);color:#f4efe0;border:1px solid #0f3b25;box-shadow:0 10px 30px rgba(15,59,37,.25);padding:18px 18px 14px}
.prac .prhead{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:6px}
.prac .ptitle{flex:1 1 280px;min-width:0}
.prac h2{margin:0 0 4px;font-family:var(--f-title,Georgia,serif);font-size:clamp(22px,4.6vw,30px);color:#f2c94c;letter-spacing:.3px}
.prac .ptitle p{margin:0;font-size:14.5px;line-height:1.45;color:#e3dcc5;max-width:640px}
.prac .pcont{flex:0 0 auto;font-size:15px;padding:10px 14px;border-radius:10px;white-space:nowrap;box-shadow:0 0 0 3px rgba(242,201,76,.35)}
.prac .pgroup{margin-top:12px}
.prac .pgroup h4{margin:0 0 6px;font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:#bcd9c4;font-weight:700}
.prac .ptiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.prac .ptile{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(170deg,#fbf6e6,#efe5c6);color:#2b2a22;font:inherit;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;min-height:76px}
.prac .ptile:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.25)}
.prac .ptile:active{transform:translateY(0)}
.prac .ptile b{font-size:15.5px;color:#1f4f33}
.prac .ptile small{font-size:12.5px;line-height:1.35;color:#5b5a50;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prac .ptile em{font-style:normal;font-size:11.5px;font-weight:700;color:#2f7a4f;margin-top:auto}
.prac .ptile.on{box-shadow:0 0 0 3px #f2c94c;background:linear-gradient(170deg,#fff7d6,#f2e2a8)}
.prac .ptile .sym.red{color:#c0262d}
@media (max-width:520px){.hcard.prac{padding:14px 12px 10px}.prac .ptiles{grid-template-columns:1fr 1fr;gap:6px}.prac .ptile{padding:8px 9px;min-height:68px}.prac .ptile b{font-size:14px}.prac .ptile small{font-size:11.5px}.prac .pcont{width:100%}}
:root[data-theme="dark"] .prac .ptile{background:linear-gradient(170deg,#2b3a31,#22302a);color:#e8efe9;border-color:#3d5246}
:root[data-theme="dark"] .prac .ptile b{color:#f2c94c}
:root[data-theme="dark"] .prac .ptile small{color:#b9c6bd}
:root[data-theme="dark"] .prac .ptile em{color:#8fd1a6}
:root[data-theme="dark"] .prac .ptile.on{background:linear-gradient(170deg,#3b3a22,#2e2d1b)}
/* the other ways to play: a quiet row of small buttons under it */
.hero.hsmall{background:var(--card-bg,#fbf8ef);padding:12px 14px}
.hsmall .hbtns{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 4px}
.hsmall .hbtns .btn,.hsmall .hbtns .hrow3 .btn{font-size:13.5px;padding:8px 6px;border-radius:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsmall .hbtns .hopen,.hsmall .hbtns .hwatch{grid-column:auto}
.hsmall .hbtns .hrow3{grid-column:auto/span 2;gap:6px}
.hsmall .hname{font-size:13px}
.hsmall > .muted{font-size:13px}
@media (max-width:520px){.hsmall .hbtns{grid-template-columns:1fr 1fr}.hsmall .hbtns .hrow3{grid-column:1/-1}}
:root[data-theme="dark"] .hero.hsmall{background:var(--panel2,#1f2a24)}
/* the bar while practising: the convention, tap to stop */
.box.prbox{border:2px solid #f2c94c;background:linear-gradient(170deg,#fff7d6,#f2e2a8);cursor:pointer;text-align:left;font:inherit;color:#2b2a22}
.box.prbox b{color:#1f4f33}
@media (min-width:901px){ .hgrid{grid-template-columns:minmax(0,1fr) min(var(--chatw),40%)} }   /* practising conventions keeps most of the width */
/* practise conventions: a title with the choice beside it, then what the convention is */
.hcard.prac{padding:14px 16px}
.prac .prhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
.prac .prhead h2{margin:0;font-size:clamp(20px,3.6vw,26px);flex:0 1 auto}
.prac .prsel{flex:1 1 220px;min-width:0;max-width:420px;font-size:16px;font-weight:600;padding:9px 10px;border-radius:10px;border:2px solid #f2c94c;background:#fffaf0;color:#1f4f33}
.prac .prinfo{margin-top:10px;font-size:14px;line-height:1.45;color:#f4efe0;background:rgba(0,0,0,.18);border-radius:10px;padding:9px 11px}
.prac .prinfo b{color:#f2c94c}
.prac .prinfo .sym.red{color:#ff8a8a}
.prac .prnote{margin-top:8px;font-size:13px;color:#cfe3d5}
:root[data-theme="dark"] .prac .prsel{background:#22302a;color:#f2c94c}
.prac > .prsel{display:block;width:100%;max-width:420px}
/* the convention choice: a big, glowing golden picker */
.prac .prpick{display:block;max-width:460px;margin-top:2px;cursor:pointer}
.prac .prlab{display:block;font-size:11.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#f2c94c;margin:0 0 6px 4px}
.prac .prbox{position:relative;display:flex;align-items:center;border-radius:16px;padding:3px;background:linear-gradient(135deg,#f7dc7a,#d4a62a 45%,#f7dc7a 70%,#b8891c);box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 0 0 rgba(242,201,76,.55);transition:transform .15s ease,box-shadow .2s ease}
.prac .prpick:not(.on) .prbox{animation:prglow 2.4s ease-in-out infinite}
@keyframes prglow{0%,100%{box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 0 0 rgba(242,201,76,.5)}50%{box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 0 9px rgba(242,201,76,0)}}
.prac .prbox:hover{transform:translateY(-2px)}
.prac .pric{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:22px;pointer-events:none;z-index:1}
.prac .prpick.on .pric{color:#fff;background:#2f8a58;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:17px;font-weight:800;left:13px}
.prac .prbox .prsel{appearance:none;-webkit-appearance:none;width:100%;max-width:none;margin:0;border:0;border-radius:13px;padding:15px 48px 15px 52px;font:inherit;font-size:18px;font-weight:800;letter-spacing:.2px;color:#173d27;cursor:pointer;
  background:#fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23b8891c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center;box-shadow:inset 0 2px 6px rgba(0,0,0,.08)}
.prac .prbox .prsel:focus{outline:none;box-shadow:inset 0 0 0 2px #2f8a58}
.prac .prpick.on .prsel{background-color:#f3fbf5;color:#1f6440}
.prac .prsel option{font-size:16px;font-weight:600;color:#173d27;background:#fffaf0}
:root[data-theme="dark"] .prac .prbox .prsel{background-color:#1d2a23;color:#f2c94c}
:root[data-theme="dark"] .prac .prpick.on .prsel{background-color:#1f3a2a;color:#9fe0b4}
:root[data-theme="dark"] .prac .prsel option{background:#1d2a23;color:#f2e9cc}
@media (max-width:520px){.prac .prbox .prsel{font-size:16.5px;padding:14px 44px 14px 50px}}
@media (prefers-reduced-motion:reduce){.prac .prpick:not(.on) .prbox{animation:none}}
/* practise conventions, compact: the title and the choice side by side (the choice as in Settings) */
.hcard.prac{padding:12px 14px}
.prac .prrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.prac .prrow h2{margin:0;font-size:15px;font-weight:800;color:#f2c94c;white-space:nowrap;font-family:inherit;letter-spacing:0}
.prac .prrow .sel{flex:1 1 200px;min-width:0;max-width:340px;font-size:15px}
.prac .prask{background:none;border:1px dashed rgba(242,201,76,.7);color:#f2c94c;border-radius:8px;padding:6px 10px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.prac .prask:hover{background:rgba(242,201,76,.12)}
.prac .praskrow{display:flex;gap:8px;flex-wrap:wrap}
.cvreq{border:1px solid var(--line,#ddd);border-radius:10px;padding:9px 11px;margin:8px 0;background:rgba(127,127,127,.06)}
.cvreq .cvh{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.cvreq .cvh small{color:#888}
.cvreq .cvb{margin:6px 0;white-space:pre-wrap;font-size:14px;line-height:1.4}
.cvreq .cvx{font-family:monospace;font-size:13px;color:#555;margin-bottom:6px}
.cvreq .mini-btn{float:none}
.prac .prrow{flex-wrap:nowrap}.prac .prrow .sel{flex:1 1 0;width:0}
/* base system and the conventions within it, inside the practice card: a light panel */
.prac .prsys{background:#fbf6e6;color:#2b2a22;border-radius:12px;padding:10px 12px;margin:4px 0 10px}
.prac .prsys .grp{margin:0 0 8px}
.prac .prsys .grp:last-child{margin-bottom:0}
.prac .prsys .grp > span{color:#1f4f33}
.prac .prsys .muted{color:#5b5a50}
:root[data-theme="dark"] .prac .prsys{background:#1d2a23;color:#e8efe9}
:root[data-theme="dark"] .prac .prsys .grp > span{color:#f2c94c}
:root[data-theme="dark"] .prac .prsys .muted{color:#b9c6bd}
/* your name beside the title at the top */
.hhead .hdrname{font-size:15px;font-weight:700;padding:5px 10px;border-radius:20px;margin-left:10px;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
/* the title opens the base system and the conventions */
.prac .prtoggle{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left;flex:0 0 auto}
.prac .prtoggle:hover h2{text-decoration:underline;text-underline-offset:3px}
.prac .prchev{display:inline-block;margin-left:4px;font-size:13px;color:#f2c94c}
.prac .prsum{display:block;width:100%;text-align:left;margin:0 0 10px;padding:9px 12px;border-radius:10px;border:1px solid rgba(242,201,76,.5);background:#fbf6e6;color:#2b2a22;font:inherit;font-size:14px;cursor:pointer}
.prac .prsum span{color:#1f4f33;font-weight:600}
.prac .prsum b{color:#1f4f33}
.prac .prsum:hover{box-shadow:0 0 0 2px #f2c94c}
:root[data-theme="dark"] .prac .prsum{background:#1d2a23;color:#e8efe9}
:root[data-theme="dark"] .prac .prsum span,:root[data-theme="dark"] .prac .prsum b{color:#f2c94c}
/* the practice choice beside the title: gold and cream while off, green while a convention is practised */
.prac .prrow .prpicksel{appearance:none;-webkit-appearance:none;border:2px solid #f2c94c;border-radius:10px;padding:8px 32px 8px 11px;font:inherit;font-size:14.5px;font-weight:800;color:#1f4f33;cursor:pointer;
  background:linear-gradient(170deg,#fffaf0,#f6e7b8) padding-box;box-shadow:0 2px 8px rgba(0,0,0,.18);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8891c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),linear-gradient(170deg,#fffaf0,#f6e7b8);background-repeat:no-repeat;background-position:right 9px center,0 0}
.prac .prrow .prpicksel:hover{box-shadow:0 0 0 3px rgba(242,201,76,.45),0 2px 8px rgba(0,0,0,.18)}
.prac .prrow .prpicksel.on{color:#fff;border-color:#f2c94c;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f2c94c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),linear-gradient(170deg,#3a9a63,#24704a)}
.prac .prrow .prpicksel option,.prac .prrow .prpicksel optgroup{color:#1f2a22;background:#fffaf0;font-weight:600}
/* practise conventions: the title, then the base system and the convention choice side by side */
.prac .prtitle{margin:0 0 8px;font-size:16px;font-weight:800;color:#f2c94c;font-family:inherit;letter-spacing:0}
.prac .prrow2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.prac .prf{display:flex;flex-direction:column;gap:4px;min-width:0}
.prac .prf > span{font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#cfe3d5}
.prac .prpicksel{width:100%;min-width:0;appearance:none;-webkit-appearance:none;border:2px solid #f2c94c;border-radius:10px;padding:9px 30px 9px 10px;font:inherit;font-size:14.5px;font-weight:800;color:#1f4f33;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.18);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8891c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),linear-gradient(170deg,#fffaf0,#f6e7b8);background-repeat:no-repeat;background-position:right 8px center,0 0}
.prac .prpicksel:hover{box-shadow:0 0 0 3px rgba(242,201,76,.45),0 2px 8px rgba(0,0,0,.18)}
.prac .prpicksel.sys{color:#5a3d00;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8891c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),linear-gradient(170deg,#ffe9a8,#f2c94c)}
.prac .prpicksel.on{color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f2c94c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),linear-gradient(170deg,#3a9a63,#24704a)}
.prac .prpicksel option,.prac .prpicksel optgroup{color:#1f2a22;background:#fffaf0;font-weight:600}
@media (max-width:380px){.prac .prpicksel{font-size:13.5px;padding:8px 26px 8px 8px}}
/* practise conventions: the explanation beside the title */
.prac .prtop{display:flex;align-items:baseline;gap:4px 14px;flex-wrap:wrap;margin-bottom:10px}
.prac .prtop .prtitle{margin:0;white-space:nowrap}
/* two drop-down buttons with a down arrow; under each, what is chosen */
.prac .prf{position:relative}
.prac .prdrop{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;border:2px solid #f2c94c;border-radius:10px;padding:9px 12px;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer;color:#1f4f33;background:linear-gradient(170deg,#fffaf0,#f6e7b8);box-shadow:0 2px 8px rgba(0,0,0,.18);text-align:left}
.prac .prdrop i{font-style:normal;color:#b8891c;font-size:15px}
.prac .prdrop.sys{color:#5a3d00;background:linear-gradient(170deg,#ffe9a8,#f2c94c)}
.prac .prdrop.on{color:#fff;background:linear-gradient(170deg,#3a9a63,#24704a)}
.prac .prdrop.on i{color:#f2c94c}
.prac .prdrop:hover,.prac .prdrop[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(242,201,76,.45),0 2px 8px rgba(0,0,0,.18)}
.prac .prval{margin:6px 2px 0;font-size:14px;font-weight:700;color:#fff;line-height:1.35;word-break:break-word}
/* the list that drops down: tick boxes */
.prac .pdpanel{position:absolute;top:48px;left:0;z-index:30;min-width:100%;max-height:min(60vh,420px);overflow-y:auto;background:#fffdf6;color:#1f2a22;border:2px solid #f2c94c;border-radius:12px;padding:6px;box-shadow:0 14px 34px rgba(0,0,0,.35)}
.prac .pdpanel.wide{width:min(320px,88vw);left:auto;right:0}
.prac .pdi{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;cursor:pointer;font-size:14.5px;font-weight:600}
.prac .pdi:hover{background:#f6edd0}
.prac .pdi.on{background:#e6f4ea;color:#1f6440}
.prac .pdi input{width:18px;height:18px;accent-color:#2f8a58;flex:0 0 auto;margin:0}
.prac .pdh{font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#8a6d22;margin:8px 9px 2px}
.prac .pddone{position:sticky;bottom:0;width:100%;margin-top:6px}
:root[data-theme="dark"] .prac .pdpanel{background:#1d2a23;color:#e8efe9}
:root[data-theme="dark"] .prac .pdi:hover{background:#2a3a31}
:root[data-theme="dark"] .prac .pdi.on{background:#1f3a2a;color:#9fe0b4}
:root[data-theme="dark"] .prac .pdh{color:#f2c94c}
@media (max-width:420px){.prac .prdrop{font-size:13.5px;padding:8px 9px}.prac .pdpanel.wide{right:0}}
/* practise conventions on top of the page: royal navy and wine with a gold rim, so it stands out from the green table */
.hcard.prac{position:relative;overflow:visible;background:linear-gradient(135deg,#1b2a6b 0%,#3a2470 45%,#7a1f45 100%);border:2px solid #f2c94c;box-shadow:0 12px 32px rgba(58,36,112,.38),inset 0 1px 0 rgba(255,255,255,.18)}
.hcard.prac::before{content:"♠ ♥ ♦ ♣";position:absolute;right:14px;bottom:6px;font-size:44px;letter-spacing:6px;color:rgba(255,255,255,.07);pointer-events:none;white-space:nowrap}
.prac .prtop .prtitle{font-size:19px;color:#ffd966;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.prac .prdrop.on{color:#fff;background:linear-gradient(170deg,#ff9a4d,#e8463a);border-color:#ffd966}
.prac .prdrop.on i{color:#fff}
.prac .prdrop:not(.on):not(.sys){animation:prpulse 2.2s ease-in-out infinite}
@keyframes prpulse{0%,100%{box-shadow:0 2px 8px rgba(0,0,0,.25),0 0 0 0 rgba(255,217,102,.6)}50%{box-shadow:0 2px 8px rgba(0,0,0,.25),0 0 0 7px rgba(255,217,102,0)}}
.prac .prval{color:#ffe9a8}
.prac .pdi.on{background:#fff1d6;color:#8a3b12}
.prac .pdi input{accent-color:#e8463a}
.prac .prplay,body.classic .prac .prplay{display:block;width:100%;margin:12px 0 8px;padding:12px;font-size:16.5px;font-weight:800;color:#3b2600;border:0;border-radius:12px;background:linear-gradient(170deg,#ffe58a,#f2b82c);box-shadow:0 6px 18px rgba(0,0,0,.3);cursor:pointer}
.prac .prplay:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.35)}
.prac .prask{color:#ffd966;border-color:rgba(255,217,102,.7)}
:root[data-theme="dark"] .hcard.prac{background:linear-gradient(135deg,#141f52 0%,#2c1b57 45%,#5c1735 100%)}
:root[data-theme="dark"] .prac .pdi.on{background:#3a2a1a;color:#ffc48a}
@media (prefers-reduced-motion:reduce){.prac .prdrop{animation:none!important}}
/* the convention button: white with royal-purple text while off, bright sky blue once chosen (stands apart from the gold system button and the purple card) */
.prac .prdrop:not(.sys){color:#4b2a9b;background:linear-gradient(170deg,#ffffff,#ece6ff);border-color:#ffd966}
.prac .prdrop:not(.sys) i{color:#7b5cd6}
.prac .prdrop.on{color:#fff;background:linear-gradient(170deg,#5fd0ff,#2a7de1);border-color:#ffd966;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.prac .prdrop.on i{color:#fff}
.prac .pdi.on{background:#e3f3ff;color:#1d5fae}
.prac .pdi input{accent-color:#2a7de1}
:root[data-theme="dark"] .prac .pdi.on{background:#1b3350;color:#9fd4ff}
.prac .pdpanel{color-scheme:light}
:root[data-theme="dark"] .prac .pdpanel{color-scheme:dark}
/* practise conventions: a white card; the base system green and the convention button blue like the play buttons below, the deal button gold */
.hcard.prac{background:#fff;color:#1f2a22;border:2px solid #f2c94c;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.hcard.prac::before{color:rgba(31,42,34,.06)}
.prac .prtop .prtitle{color:#1f4f33;text-shadow:none}
.prac .prdrop.sys{color:#fff;background:linear-gradient(#5fbf6a,#2e8b3a);border-color:#226b2c;text-shadow:0 1px 1px rgba(0,0,0,.2)}
.prac .prdrop.sys i{color:#fff}
.prac .prdrop:not(.sys),.prac .prdrop.on{color:#fff;background:#1f5f8b;border-color:#174a6d;text-shadow:0 1px 1px rgba(0,0,0,.2)}
.prac .prdrop:not(.sys) i,.prac .prdrop.on i{color:#fff}
.prac .prdrop.on{box-shadow:0 0 0 3px #f2c94c,0 2px 8px rgba(0,0,0,.18)}
.prac .prval{color:#1f2a22}
.prac .prask{color:#1f5f8b;border-color:rgba(31,95,139,.5)}
.prac .prask:hover{background:rgba(31,95,139,.08)}
@keyframes prpulse{0%,100%{box-shadow:0 2px 8px rgba(0,0,0,.18),0 0 0 0 rgba(31,95,139,.5)}50%{box-shadow:0 2px 8px rgba(0,0,0,.18),0 0 0 7px rgba(31,95,139,0)}}
:root[data-theme="dark"] .hcard.prac{background:#1f2622;color:#e8efe9}
:root[data-theme="dark"] .hcard.prac::before{color:rgba(255,255,255,.05)}
:root[data-theme="dark"] .prac .prtop .prtitle{color:#f2c94c}
:root[data-theme="dark"] .prac .prval{color:#e8efe9}
:root[data-theme="dark"] .prac .prask{color:#8fc3ea;border-color:rgba(143,195,234,.5)}
/* the explanation beside the title: a little larger and darker */
/* the title with the gold "Deal practice" button on its right; the explanation under them */
.prac .prtop{display:block}
.prac .prhd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.prac .prhd .prtitle{margin:0;white-space:nowrap}
.prac .prhd .prplay,body.classic .prac .prhd .prplay{display:inline-block;width:auto;margin:0;padding:8px 14px;font-size:15px;white-space:nowrap;flex:0 0 auto}
@media (max-width:380px){.prac .prhd .prtitle{font-size:16px}.prac .prhd .prplay{padding:7px 10px;font-size:14px}}
/* practice: the review at the end of a board, and the progress per convention on the home page */
.donebanner .prvsum{font-weight:700;color:#ffe9a8}
.prv{border-left:4px solid #2e8b3a;background:rgba(46,139,58,.08);border-radius:8px;padding:7px 10px;margin:6px 0;font-size:14px;line-height:1.4}
.prv.no{border-left-color:#d0453b;background:rgba(208,69,59,.08)}
.prv b{display:block;margin-bottom:2px}
.prv.ok b{color:#2e8b3a}.prv.no b{color:#c0392b}
.prv .prvfix{margin-top:3px;font-weight:600}
.prac .prprog{margin:12px 0 8px;padding:10px 12px;border-radius:12px;background:#f6f8fb;border:1px solid #e3e8ef}
.prac .prph{font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#1f5f8b;margin-bottom:6px}
.prac .prpr{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) 42px;align-items:center;gap:2px 10px;padding:4px 0}
.prac .prpn{font-weight:700;font-size:14px;color:#1f2a22;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prac .prpbar{height:9px;border-radius:5px;background:#e3e8ef;overflow:hidden}
.prac .prpbar i{display:block;height:100%;border-radius:5px}
.prac .prpbar i.g{background:#2e8b3a}.prac .prpbar i.m{background:#e2a32b}.prac .prpbar i.b{background:#d0453b}
.prac .prpv{font-weight:800;font-size:14px;text-align:right;color:#1f2a22}
.prac .prpr small{grid-column:1/-1;font-size:12px;color:#6b6f66;margin-top:-2px}
:root[data-theme="dark"] .prac .prprog{background:#18201c;border-color:#2c3a32}
:root[data-theme="dark"] .prac .prpn,:root[data-theme="dark"] .prac .prpv{color:#e8efe9}
:root[data-theme="dark"] .prac .prph{color:#8fc3ea}
:root[data-theme="dark"] .prac .prpbar{background:#2c3a32}
.prv.ok,.prv.no{color:inherit;font-weight:400}.prv .prvfix{font-weight:700}
/* practice: the warning when a convention does not come up in the base system, the weak-spots button, the replay button */
.prac .prwarn{margin:10px 0 0;padding:8px 11px;border-radius:10px;background:#fff4e0;border:1px solid #f0c27a;color:#7a4a00;font-size:13.5px;line-height:1.4;font-weight:600}
:root[data-theme="dark"] .prac .prwarn{background:#3a2c14;border-color:#7a5a20;color:#ffd38a}
.prac .prph{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.prac .prweak{border:0;border-radius:8px;padding:6px 10px;font:inherit;font-size:12.5px;font-weight:800;letter-spacing:0;text-transform:none;color:#fff;background:#d0453b;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.prac .prweak:hover{filter:brightness(1.08)}
.prretry{display:block;width:100%;margin-top:8px}
.prv.pd{border-left-color:#1f5f8b;background:rgba(31,95,139,.08)}
.prv.pd b{color:#1f5f8b}
.prv .prvd{margin-top:3px;font-size:13px;opacity:.85}
:root[data-theme="dark"] .prv.pd b{color:#8fc3ea}
/* practice: the switch for the chance sign, and the sign over the bidding box */
.prac .prhintsw{display:flex;align-items:center;gap:8px;margin:12px 2px 0;font-size:14px;font-weight:600;color:#1f2a22;cursor:pointer}
.prac .prhintsw input{width:18px;height:18px;accent-color:#1f5f8b;margin:0}
:root[data-theme="dark"] .prac .prhintsw{color:#e8efe9}
.prhint{margin:0 0 6px;padding:6px 10px;border-radius:8px;background:#fff4c4;color:#5a3d00;font-weight:700;font-size:13.5px;text-align:center;animation:prhintIn .3s ease-out}
@keyframes prhintIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
/* progress: closed it is one line, a tap opens the list */
.prac .prptog{display:flex;align-items:baseline;gap:6px;background:none;border:0;padding:0;margin:0;font:inherit;font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#1f5f8b;cursor:pointer}
.prac .prptog i{font-style:normal;font-size:12px}
.prac .prptog small{font-size:12px;letter-spacing:0;text-transform:none;font-weight:700;color:#6b6f66}
.prac .prprog:not(.open){padding:8px 12px}
.prac .prprog:not(.open) .prph{margin-bottom:0}
:root[data-theme="dark"] .prac .prptog{color:#8fc3ea}
/* home page: the play buttons on the left, the open tables on the right (one above the other on a phone) */
.hpair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;align-items:start}
.hpair > .hcard{min-width:0}
/* administrator statistics: online now and activity */
.sth{margin:16px 0 6px;font-size:15px}
.stact{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;margin-bottom:6px}
.stcv{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 8px;font-size:13px}
.stcv span{background:rgba(31,95,139,.1);border-radius:999px;padding:2px 9px}
/* writing to the administrator: the thread, the inbox and the notice on the home page */
.supmsgs{display:flex;flex-direction:column;gap:8px;max-height:min(50vh,420px);overflow-y:auto;padding:4px 2px;margin:10px 0}
.supm{max-width:85%;align-self:flex-start;background:#eef2f7;color:#1f2a22;border-radius:12px 12px 12px 3px;padding:8px 11px;font-size:14px;line-height:1.4}
.supm.own{align-self:flex-end;background:#dff3e4;border-radius:12px 12px 3px 12px}
.supm.auto{background:#fff6d8;font-style:italic}
.supm small{display:block;margin-top:3px;font-size:11px;opacity:.6}
.supth{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;text-align:left;background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:9px 12px;margin:6px 0;font:inherit;cursor:pointer;color:#1f2a22}
.supth span{grid-column:1/-1;font-size:13px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supth small{grid-row:1;grid-column:2;font-size:11.5px;opacity:.6}
.supth.new{border-color:#1f5f8b;box-shadow:0 0 0 2px rgba(31,95,139,.2)}
.hcard.supnew{display:block;width:100%;text-align:center;font:inherit;font-size:16px;font-weight:800;color:#fff;background:linear-gradient(170deg,#3a7bd5,#1f5f8b);border:0;cursor:pointer;animation:prpulse 2.2s ease-in-out infinite}
.supc{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#d0453b;color:#fff;font-size:11.5px;text-align:center}
:root[data-theme="dark"] .supm{background:#26323b;color:#e8efe9}
:root[data-theme="dark"] .supm.own{background:#1f3a2a}
:root[data-theme="dark"] .supm.auto{background:#3a3420}
:root[data-theme="dark"] .supth{background:#1d2a23;border-color:#2c3a32;color:#e8efe9}
/* the database cannot be reached: a notice on the home page; in the statistics, players seen only in the lobby */
.hcard.cloudbad{background:#fff1e0;color:#6a3c00;border:1px solid #f0b46a}
.hcard.cloudbad b{display:block;margin-bottom:4px}
.hcard.cloudbad small{font-size:13px}
:root[data-theme="dark"] .hcard.cloudbad{background:#3a2a14;color:#ffd38a;border-color:#7a5a20}
.stdirect{font-size:11.5px;color:#b5651d;font-weight:700}
/* install as an app: a slim card at the top of the home page */
.hcard.hinst{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;background:#eaf3ff;color:#16324f;border:1px solid #b9d4f2}
.hinsti{font-size:26px}
.hinstt{flex:1 1 180px;min-width:0}
.hinstt b{display:block;font-size:15px}
.hinstt small{font-size:12.5px;opacity:.8}
.hinst .btn.new{padding:8px 16px}
.hinstx{background:none;border:0;font:inherit;font-size:13px;color:#4a6a8a;cursor:pointer;text-decoration:underline}
:root[data-theme="dark"] .hcard.hinst{background:#16263a;color:#d8e8fb;border-color:#2c4a6e}
:root[data-theme="dark"] .hinstx{color:#9fc0e3}
.inststeps{line-height:1.7;padding-left:22px}
/* install as an app: a small button in the top bar */
.hinstb{border:0;border-radius:999px;padding:6px 12px;font:inherit;font-size:13.5px;font-weight:800;color:#fff;background:linear-gradient(170deg,#3a7bd5,#1f5f8b);cursor:pointer;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.25);animation:prpulse 2.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.hinstb{animation:none}}
/* the welcome window: practising first and large, the other ways to play under it */
.welh{font-size:20px}
.welh i{font-style:normal;color:#c0262d}
.welmain,.welrow{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:10px 12px;margin:8px 0}
.welmain{background:linear-gradient(135deg,#fff7d6,#ffe9a8);border:2px solid #f2c94c;color:#3b2600}
.welrow{background:rgba(31,95,139,.07);color:inherit}
.welmain span,.welrow span{font-size:26px;line-height:1}
.welmain b{font-size:17px}
.welmain b,.welrow b{display:block}
.welmain small,.welrow small{display:block;font-size:13.5px;line-height:1.4;opacity:.85;margin-top:2px}
.welno{display:flex;align-items:center;gap:8px;margin:12px 2px 4px;font-size:13.5px;cursor:pointer}
.welno input{width:17px;height:17px;margin:0}
:root[data-theme="dark"] .welmain{background:linear-gradient(135deg,#3b3216,#2e2710);color:#ffe9a8;border-color:#b8891c}
/* the welcome: only the practising card, larger */
.welmain{padding:16px 16px;gap:14px;box-shadow:0 6px 18px rgba(184,137,28,.25)}
.welmain span{font-size:40px}
.welmain b{font-size:22px;margin-bottom:4px}
.welmain small{font-size:15.5px;line-height:1.5;opacity:1}
.welh{font-size:22px;text-align:center}
/* the administrator's list of players */
.pllist{max-height:min(55vh,460px);overflow-y:auto;margin:8px 0;display:flex;flex-direction:column;gap:4px}
.plrow{display:grid;grid-template-columns:auto 1fr;gap:0 10px;align-items:center;padding:7px 10px;border-radius:8px;background:rgba(0,0,0,.03);cursor:pointer}
.plrow.on{background:rgba(208,69,59,.1);outline:1px solid rgba(208,69,59,.4)}
.plrow input{grid-row:1/3;width:18px;height:18px;margin:0}
.plrow small{font-size:12px;opacity:.7}
.btn.bad{background:#d0453b;color:#fff;border-color:#a8342c}
.btn.bad:disabled{opacity:.45}
body.classic .btn.bad,.btn.bad{background:#d0453b;color:#fff;border-color:#a8342c}
/* social bridge */
.sbgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;margin:8px 0}
.sbb{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border:1px solid #c7c9bd;border-radius:8px;background:#fff;color:#222;cursor:pointer}
.sbb b{font-size:18px}.sbb small{font-size:11px;color:#777}
.sbb.some{border-color:#1e5c3b}
.sbb.me{background:#e3f1e8;border-color:#1e5c3b}
.sbb.me small{color:#1e5c3b;font-weight:700}
.sbtab tr.me td{background:#fff6d6}
.sbtab .red,.sbform .red,.sbprev .red,h3 .red{color:#c0282d}
.sbtrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e3dfcd}
.sbtrow span{flex:1}.sbtrow small{color:#777}
.sbsend{display:inline-flex;gap:4px}.sbsend .sbwa{background:#25d366;color:#fff;border-color:#25d366}
.sblk{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}.sblt{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 8px;border:1px solid #e3dfcd;border-radius:8px}.sblt.all{grid-column:1/-1}.sblt b{font-size:14px}
:root[data-theme="dark"] .sblt{border-color:#3a4a40}
.sbprev{margin:8px 0;padding:8px 10px;border-radius:8px;background:#eef3ee;font-size:16px}
.sbcode{letter-spacing:2px}
.sbme .seg button{flex:0 0 auto;min-width:38px}
:root[data-theme="dark"] .sbb{background:#323b36;color:#e8ece4;border-color:#4a554f}
:root[data-theme="dark"] .sbb.me{background:#24452f}
:root[data-theme="dark"] .sbtab tr.me td{background:#3a3520}
:root[data-theme="dark"] .sbprev{background:#26302a}
.sbwait{padding:10px 12px;border-radius:8px;background:#fff6d6;color:#6b5200;font-weight:600}
:root[data-theme="dark"] .sbwait{background:#3a3520;color:#f0d98a}
/* the contract double dummy, shown large */
.ddbox{border:2px solid #2f6db5;border-radius:12px;padding:10px 14px;background:#eaf2fc;color:#13284a}
.ddhd{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#2f6db5;margin-bottom:4px}
.ddrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:18px}
.ddc{font-weight:800;font-size:20px}
.ddn{font-size:30px;line-height:1;font-weight:900}
.ddres{font-weight:600}
.ddchip{padding:3px 10px;border-radius:999px;font-weight:800;font-size:15px;color:#fff}
.ddchip.ok{background:#1e8a4c}.ddchip.no{background:#c0392b}
:root[data-theme="dark"] .ddbox{background:#1d2b3d;color:#e3ecf8;border-color:#5b8fd0}
:root[data-theme="dark"] .ddhd{color:#8fb6e6}
.hico.hwa{color:#fff;background:#25d366;border-color:#1ea952}
.hico.hwa:hover{background:#1ebe5a}
.tgate{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid rgba(0,0,0,.12)}
.tgatebtn{text-align:center;text-decoration:none;font-size:1.05rem;padding:12px}
.tonh{margin:4px 0 8px;font-size:1rem}
.hbtns a.btn{text-decoration:none;display:flex;align-items:center;justify-content:center}
/* Social bridge: the score entry looks like a BridgeScore (as BridgeGate's table screen) */
.bm3{max-width:440px;margin:0 auto;padding:30px 10px 14px;background:#111;border-radius:30px;box-shadow:0 10px 30px rgba(0,0,0,.45),inset 0 0 0 2px #2a2a2a;position:relative;}
.bm3::before{content:'BridgePlay';position:absolute;top:7px;left:50%;transform:translateX(-50%);color:#fff;font:800 .82rem/1 'DM Sans',sans-serif;letter-spacing:.3px;background:#111;padding:2px 10px;border-radius:5px;box-shadow:inset 0 0 0 1px #3a3a3a;}
.bm3-screen{background:#fff;border-radius:12px;overflow:hidden;color:#1b1b1b;font-family:'DM Sans',system-ui,sans-serif;}
.bm3-bar{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;background:#1f5d36;color:#fff;padding:8px 10px;font-size:.78rem;}
.bm3-bar .td{background:#2e7a4b;border-radius:6px;padding:4px 8px;font-weight:700;font-size:.72rem;white-space:nowrap}
.bm3-bar .ev{text-align:center;line-height:1.3}.bm3-bar .ev b{display:block;font-size:.8rem}
.bm3-vul{padding:2px 8px;border-radius:6px;font-size:.72rem;font-weight:800;}
.bm3-vul.ns,.bm3-vul.ew,.bm3-vul.both{background:#d32f2f;color:#fff}.bm3-vul.none{background:#e8efe9;color:#1f5d36}
.bm3-head{display:flex;align-items:center;gap:12px;padding:12px 12px 0;}
.bm3-board{display:flex;flex-direction:column;align-items:flex-start;}
.bm3-board small{font-size:.68rem;color:#6d6d6d}.bm3-board b{font-size:1.5rem;line-height:1.1}
.bm3-pairs{font-size:.9rem;font-weight:700;line-height:1.6;margin-left:auto;text-align:right}.bm3-pairs i{font-style:normal;color:#6d6d6d;font-weight:600;margin-right:4px}
.bm3-edit{font-size:.72rem;color:#a15c00;background:#fff3d6;border-radius:6px;padding:2px 8px}
.bm3-display{margin:10px 12px;background:#eef3f7;border-radius:10px;padding:10px 14px;display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center}
.bm3-contract{font-size:1.9rem;font-weight:800;letter-spacing:.5px}.bm3-contract .red{color:#d32f2f}
.bm3-sub{grid-column:1/2;display:flex;gap:14px;font-size:.8rem;color:#55606b}
.bm3-score{grid-row:1/3;grid-column:2;text-align:right}.bm3-score small{display:block;font-size:.68rem;color:#55606b}.bm3-score b{font-size:1.5rem}.bm3-score b.pos{color:#1f7a3d}.bm3-score b.neg{color:#c62828}
.bm3-step{padding:10px 12px 5px;font-size:.78rem;font-weight:700;color:#1f5d36}.bm3-step small{font-weight:600;color:#6d6d6d}
.bm3-keys{display:grid;gap:6px;padding:0 12px}.bm3-keys.k3{grid-template-columns:repeat(3,1fr);margin-top:6px}.bm3-keys.k4{grid-template-columns:repeat(4,1fr)}.bm3-keys.k5{grid-template-columns:repeat(5,1fr);margin-top:6px}.bm3-keys.k7{grid-template-columns:repeat(7,1fr);margin-top:6px}
.bm3-key{min-height:50px;border:1px solid #d9dee3;border-radius:8px;background:#fff;color:#1b1b1b;font-size:1.25rem;font-weight:800;cursor:pointer;touch-action:manipulation}
.bm3-keys.small .bm3-key{min-height:40px;font-size:1rem}
.bm3-key:active{background:#eef3f7}
.bm3-key.suit{font-size:1.6rem}.bm3-key.red{color:#d32f2f}.bm3-key.pass{font-size:.95rem;color:#1f5d36}.bm3-key.dbl{color:#c62828}
.bm3-key.res{font-size:1.05rem;min-height:44px}.bm3-key.res.made{color:#1f7a3d}.bm3-key.res.over{color:#2a6fd6}.bm3-key.res.down{color:#c62828}
.bm3-key.active{background:#2a7de1;border-color:#2a7de1;color:#fff!important}
.bm3-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px;padding:14px 12px 14px}
.bm3-ok,.bm3-cancel{min-height:54px;border:0;border-radius:10px;font-size:1.1rem;font-weight:800;cursor:pointer}
.bm3-ok{background:#2a7de1;color:#fff}.bm3-cancel{background:#eef1f4;color:#3c4650;border:1px solid #d9dee3}
.bm3-ok:disabled{opacity:.45;cursor:default}
.ov .bm3{margin:4px auto 8px;box-sizing:border-box;width:100%;padding-left:6px;padding-right:6px}
.ov .bm3-key{min-width:0;padding:0 2px}.ov .bm3-keys{padding:0 8px;gap:5px}.ov .bm3-bar .ev{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the WhatsApp logo / SMS bubble inside a button */
.ico{width:1.2em;height:1.2em;vertical-align:-0.25em;display:inline-block;flex:none}
.btn.wa{background:#25d366;color:#fff;border-color:#25d366}
/* Social bridge: the players' seats drawn as the table */
.sbc-table{display:grid;grid-template-columns:1fr 1.1fr 1fr;grid-template-areas:'. n .' 'w m e' '. s .';gap:8px;align-items:center;max-width:380px;margin:6px auto}
.sbc-pos{min-height:70px;padding:8px 6px;border:1px solid #d9d4c3;border-radius:12px;background:#fff;color:inherit;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.sbc-pos small{font-size:12px;color:#1f5d36;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.sbc-pos b{font-size:15px;line-height:1.2;word-break:break-word}
.sbc-n{grid-area:n}.sbc-s{grid-area:s}.sbc-w{grid-area:w}.sbc-e{grid-area:e}
.sbc-mid{grid-area:m;aspect-ratio:1;border-radius:14px;background:#1f5d36;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;text-align:center}
.sbc-edit{max-width:380px;margin:6px auto}.sbc-head{text-align:center;margin-bottom:10px}
.sbc-input{width:100%;box-sizing:border-box;padding:12px;font-size:18px;text-align:center;border:2px solid #d9d4c3;border-radius:10px;font-family:inherit}
.sbc-found{min-height:1.4em;margin-top:8px;font-weight:700;text-align:center}.sbc-found.ok{color:#1f7a3d}.sbc-found.no{color:#c0282d}
:root[data-theme="dark"] .sbc-pos{background:#26302a;border-color:#3a4a40}:root[data-theme="dark"] .sbc-pos small{color:#8fd19e}:root[data-theme="dark"] .sbc-input{background:#26302a;color:inherit;border-color:#3a4a40}
.ico{width:1.35em;height:1.35em}
.sbsend .btn.sbwa,.btn.sbwa,.btn.wa{background:#25d366!important;color:#fff!important;border-color:#25d366!important}
.sbsend .btn.sbsms,.btn.sms{background:#1e88e5!important;color:#fff!important;border-color:#1e88e5!important}
.sbsend .btn{min-width:46px;min-height:36px;padding:4px 10px}
/* Social bridge for a player: the whole screen */
#ov:has(.sheet.sbfull){padding:0}
.sheet.sbfull{width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
/* the table this player sits at, and Change table */
.sbchg{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#1f5d36;color:#fff}
.sbchg .sbtno{font-size:22px;font-weight:800}
.sbchg .btn{font-size:16px;font-weight:700;padding:10px 14px}
/* Social bridge for a player: a BridgeScore — green bar, white screen; a device on a computer */
.sheet.sbfull{background:#fff;color:#1b1b1b;padding:0 12px 12px}
.sbbar{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;background:#1f5d36;color:#fff;padding:10px 12px;margin:0 -12px;font-size:13px;position:sticky;top:0;z-index:2}
.sbbar .td{background:#2e7a4b;border-radius:6px;padding:4px 8px}.sbbar .ev{text-align:center;line-height:1.3}.sbbar .ev b{display:block;font-size:14px}
.sheet.sbfull .bm3{background:none;box-shadow:none;padding:0;border-radius:0;max-width:none}
.sheet.sbfull .bm3::before{display:none}
.sheet.sbfull .bm3 .bm3-bar{display:none}
@media (min-width:700px){
  #ov:has(.sheet.sbfull){padding:20px;background:rgba(12,26,20,.92)}
  .sheet.sbfull{width:440px;height:min(880px,calc(100vh - 40px));border:12px solid #111;border-radius:30px;position:relative;padding-top:0}
}
.sbentry{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #d9d4c3;border-radius:12px}.sbentry>b{font-size:17px}.sbentry>small{color:#777;margin-top:-6px}:root[data-theme="dark"] .sbentry{border-color:#3a4a40}
/* on a phone "Add a convention" and "Write to the administrator" share one line with short labels (same size) */
.prac .prask .sh{display:none}
@media (max-width:600px){
  .prac .prask .lg{display:none}.prac .prask .sh{display:inline}
  .prac .praskrow:not(:has(#hConvReq)){flex-wrap:nowrap}
  .prac .praskrow:not(:has(#hConvReq)) .prask{white-space:nowrap;flex:1 1 0}
}
/* on a phone there is room to spare in the middle: my cards and my partner's are a little taller */
@media (max-width:700px){ #pos0 .fan .card,#pos2 .fan .card,body.classic #pos0 .fan .card,body.classic #pos2 .fan .card{height:calc(var(--cw)*1.85)} }
/* the open tables as a list: open ones green, closed ones grey */
.otour.otbl.op{background:#eef7f0;border-color:#bcdcc5;border-left-color:#1f7a3f}
.otour.otbl.cl{background:#f2f2ef;border-color:#d6d6cf;border-left-color:#8a8a80}
.otour.otbl .ostat{font-weight:700}.otour.otbl.op .ostat{color:#1f7a3f}.otour.otbl.cl .ostat{color:#6d6c62}
.otour.otbl .otb{display:flex;flex-direction:column;gap:4px}.otour.otbl .otb .btn{padding:6px 10px;font-size:13px}
.otour.otbl .pname{cursor:pointer;text-decoration:underline dotted}
:root[data-theme="dark"] .otour.otbl.op{background:#1f3326;border-color:#2f5a3c}:root[data-theme="dark"] .otour.otbl.cl{background:#2a2a27;border-color:#45453f}
/* Social bridge beside Tournaments; the Convention card button beside "Notify me" in the practice box */
.hbtns .btn.hwatch.hsb{grid-column:auto}
.prac .prhintrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 2px 0}
.prac .prhintrow .prhintsw{margin:0}
.prac .prconv{flex:none;background:#b5651d;color:#fff;border:1px solid #8f4f16;border-radius:10px;font-size:14px;font-weight:700;padding:7px 12px}
.prac .prconv.on{background:#8f4f16;box-shadow:inset 0 0 0 3px #f2c94c}
/* colours: Play offline blue and Open an online table green (swapped); Social bridge yellow like Deal practice; the
   Convention card green like Basic system */
.hbtns #bGo,body.classic .hbtns #bGo{background:#1f5f8b;color:#fff;border-color:#174a6d}
.hbtns .btn.hopen,body.classic .hbtns .btn.hopen{background:linear-gradient(#5fbf6a,#2e8b3a);color:#fff;border-color:#226b2c}
.hbtns .btn.hwatch.hsb,body.classic .hbtns .btn.hwatch.hsb{background:linear-gradient(170deg,#ffe58a,#f2b82c);color:#3b2600;border-color:#d9a92a}
.prac .prconv,body.classic .prac .prconv{background:linear-gradient(#5fbf6a,#2e8b3a);color:#fff;border-color:#226b2c;text-shadow:0 1px 1px rgba(0,0,0,.2)}
.prac .prconv.on,body.classic .prac .prconv.on{background:linear-gradient(#4aa857,#24702f);box-shadow:inset 0 0 0 3px #f2c94c}
.hbtns .btn.hwatch.hsb,body.classic .hbtns .btn.hwatch.hsb{font-weight:800}
.hbtns .btn.hwatch.hsb,body.classic .hbtns .btn.hwatch.hsb{font-size:20px}
.hsmall .hbtns .btn.hwatch.hsb,body.classic .hsmall .hbtns .btn.hwatch.hsb{font-size:15.5px}
/* the strip while a robot's card waits for you */
#status .fixbar{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 4px;max-width:420px;background:#fff1c2;color:#5a3d00;border:1px solid #f0c96a;border-radius:8px;padding:5px 8px;font-size:14px;font-weight:700}
#status .fixbar .btn{padding:3px 10px;font-size:13px}
/* the meanings of the calls before one is made, under the bidding box */
#bidbox .bpeek{display:flex;flex-direction:column;gap:1px;background:#fffbe8;color:#2b2410;border:1px solid #ecd9a0;border-radius:8px;padding:4px 8px;font-size:13px;line-height:1.35}
#bidbox .bpeek[hidden]{display:none}
#bidbox .bpk{line-height:1.3}
#bidbox .bpk b{display:inline-block;min-width:2.4em}
:root[data-theme="dark"] #bidbox .bpeek{background:#2e2a1c;color:#f1e8c8;border-color:#5a4c22}
/* the meaning of the call under the mouse floats above the bidding box: the buttons never move under the mouse */
#bidbox{position:relative}
#bidbox #bidHover{position:absolute;left:0;right:0;bottom:calc(100% + 4px);z-index:20;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.25)}
/* Results: a tournament board's name under its date */
.res .rtn{display:block;font-size:11px;color:var(--muted);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* a new player's own card, step 1: the systems with a few words each */
.cardsys{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.cardsys .btn{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:2px;padding:8px 10px}
.cardsys .btn small{font-weight:400;font-size:12px;opacity:.85}
/* ==================== home page, new look (October 2026): the club room ====================
   The page is the green baize of a card room; on it lie paper cards (one look for all of them: cream paper, a fine
   edge, one shadow). Brass is the only accent and marks the one thing to press first (Play); suit red and black are
   the only other colours. Layout: you strip, Play card (a fan of four cards), three tiles, practice box, open tables;
   on a wide screen the lobby stands beside them. Everything is scoped to body.homev2, so Settings > Home page >
   Classic brings the old page back untouched. */
body.homev2{
  --h2-baize:#175236;--h2-baize-deep:#0c311f;--h2-paper:#f8f4e8;--h2-paper-2:#efe8d6;--h2-ink:#1b241e;--h2-muted:#5c6a60;
  --h2-line:rgba(27,36,30,.14);--h2-brass:#d9b25c;--h2-brass-2:#b88d2e;--h2-brass-ink:#2a2108;--h2-red:#c4122f;
  --h2-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 10px 28px -12px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.18);
}
:root[data-theme="dark"] body.homev2{
  --h2-baize:#0f3a26;--h2-baize-deep:#071a10;--h2-paper:#18221c;--h2-paper-2:#202c25;--h2-ink:#ece6d4;--h2-muted:#9fb3a6;
  --h2-line:rgba(236,230,212,.12);--h2-red:#ff6b7f;
  --h2-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 12px 30px -12px rgba(0,0,0,.8),0 2px 6px rgba(0,0,0,.35);
}
body.athome.homev2{background:
  radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.10),transparent 60%),
  repeating-linear-gradient(45deg,rgba(255,255,255,.022) 0 1px,transparent 1px 4px),
  repeating-linear-gradient(-45deg,rgba(0,0,0,.05) 0 1px,transparent 1px 4px),
  linear-gradient(180deg,var(--h2-baize),var(--h2-baize-deep));background-attachment:fixed}
body.homev2 .home.v2{gap:14px;padding-bottom:18px}
/* the head: the name of the room, and the tools as quiet round buttons */
body.homev2 .h2head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 2px 0}
body.homev2 .h2head .brand{font-size:clamp(21px,5.6vw,28px);color:#f6ecd0;text-shadow:0 1px 0 rgba(0,0,0,.35)}
body.homev2 .h2head .brand .suits{color:#f6ecd0}
body.homev2 .h2head .brand .suits i{color:#ff8a98}
body.homev2 .h2tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.homev2 .h2tools .hlang{color:#f6ecd0;font-size:16px;gap:4px}
body.homev2 .h2tools .hlang .sel{background:rgba(0,0,0,.22);color:#f6ecd0;border:1px solid rgba(246,236,208,.28);border-radius:999px;padding:6px 10px;font-size:14px;max-width:118px}
body.homev2 .h2tools .hlang .sel option{color:#1b241e;background:#fff}
body.homev2 .h2tools .hico{width:36px;height:36px;background:rgba(0,0,0,.22);color:#f6ecd0;border:1px solid rgba(246,236,208,.28);font-size:17px;box-shadow:none}
body.homev2 .h2tools .hico:hover{background:rgba(0,0,0,.36)}
body.homev2 .h2tools .hico:focus-visible,body.homev2 .h2tile:focus-visible,body.homev2 .h2go:focus-visible,body.homev2 .h2name:focus-visible{outline:3px solid var(--h2-brass);outline-offset:2px}
body.homev2 .h2tools .hico.hwa{background:#25d366;border-color:#1ea952;color:#fff}
/* every card on the table: the same paper, edge and shadow */
body.homev2 .home.v2 .hcard,body.homev2 .h2me,body.homev2 .h2play,body.homev2 .h2tile{background:var(--h2-paper);color:var(--h2-ink);border:1px solid var(--h2-line);border-radius:16px;box-shadow:var(--h2-shadow)}
body.homev2 .home.v2 .hcard h3{font-family:var(--f-face);font-size:16px;letter-spacing:.02em;color:var(--h2-ink)}
body.homev2 .home.v2 .muted,body.homev2 .home.v2 .hchat h3 small{color:var(--h2-muted)}
/* you: picture or initial, the greeting, rating and measured level, today */
body.homev2 .h2me{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"av greet" "av chips" "stats stats";column-gap:12px;row-gap:4px;align-items:center;padding:12px 14px}
body.homev2 .h2name{grid-area:av;border:0;background:none;padding:0;cursor:pointer}
body.homev2 .h2av{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:linear-gradient(145deg,var(--h2-brass),var(--h2-brass-2));color:var(--h2-brass-ink);font:700 24px/1 var(--f-face);box-shadow:0 0 0 3px var(--h2-paper),0 0 0 4px var(--h2-line)}
body.homev2 .h2greet{grid-area:greet;font:700 clamp(17px,4.6vw,21px)/1.15 var(--f-face);letter-spacing:.01em;min-width:0;overflow-wrap:anywhere}
body.homev2 .h2chips{grid-area:chips;display:flex;flex-wrap:wrap;gap:6px}
body.homev2 .h2chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:var(--h2-paper-2);border:1px solid var(--h2-line);font-size:13.5px;font-variant-numeric:tabular-nums}
body.homev2 .h2chip small{color:var(--h2-muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
body.homev2 .h2chip b{font-size:15px}
body.homev2 .h2chip .plvl{padding:0 8px;font-size:12.5px}
body.homev2 .h2me .hstats{grid-area:stats;margin:6px 0 0;padding-top:8px;border-top:1px dashed var(--h2-line);color:var(--h2-muted);font-size:13px;text-decoration:none;width:100%}
/* Play: the biggest card, with four cards fanned on it */
body.homev2 .h2play{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(10px,3vw,20px);padding:clamp(10px,2.6vw,16px) clamp(12px,3vw,18px);overflow:hidden;
  background:radial-gradient(130% 120% at 0% 0%,#2e7c53 0%,#1d5e3d 45%,#123f29 100%);color:#f6ecd0;border-color:rgba(0,0,0,.35)}
body.homev2 .h2play::after{content:"";position:absolute;inset:8px;border:1px solid rgba(246,236,208,.18);border-radius:11px;pointer-events:none}
body.homev2 .h2fan{position:relative;width:clamp(78px,19vw,106px);height:clamp(66px,16vw,88px)}
body.homev2 .h2c{--w:clamp(36px,9vw,48px);position:absolute;left:calc(50% - var(--w)/2);bottom:0;width:var(--w);height:calc(var(--w)*1.4);border-radius:7px;background:#fffdf6;color:#1b1b1b;
  box-shadow:0 6px 14px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:flex-start;padding:4px 5px;font-family:var(--f-card);line-height:1;
  transform-origin:50% 115%;transform:rotate(calc((var(--i) - 1.5)*15deg)) translateX(calc((var(--i) - 1.5)*4px));animation:h2deal .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i)*90ms)}
body.homev2 .h2c b{font-size:calc(var(--w)*.34);font-weight:700}
body.homev2 .h2c i{font-style:normal;font-size:calc(var(--w)*.3)}
body.homev2 .h2c.rd{color:#c4122f}
@keyframes h2deal{from{transform:rotate(0) translateY(40px);opacity:0}to{opacity:1}}
body.homev2 .h2ptx{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
body.homev2 .h2ptx h2{margin:0;font:700 clamp(18px,4.8vw,23px)/1.1 var(--f-face);letter-spacing:.02em;color:#fff6dc;text-wrap:balance}
body.homev2 .h2ptx p{margin:0;color:rgba(246,236,208,.82);font-size:13.5px;line-height:1.3;max-width:38ch}
body.homev2 .h2go{margin-top:2px;background:linear-gradient(180deg,#ecc874,var(--h2-brass) 55%,var(--h2-brass-2));color:var(--h2-brass-ink);border:1px solid #8a6a1c;border-radius:10px;
  font:700 clamp(15px,4vw,17px)/1 var(--f-ui);padding:10px 18px;box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 6px 16px rgba(0,0,0,.35);cursor:pointer}
body.homev2 .h2go:hover{filter:brightness(1.05)}
body.homev2 .h2go:active{transform:translateY(1px)}
/* the three other ways to play */
body.homev2 .h2tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.homev2 .h2tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 12px 13px;text-align:left;cursor:pointer;text-decoration:none;font:inherit;min-width:0;transition:transform .15s ease,box-shadow .15s ease}
body.homev2 .h2tile:hover{transform:translateY(-2px)}
body.homev2 .h2ti{font-size:22px;line-height:1;margin-bottom:4px}
body.homev2 .h2tile b{font-size:16px;line-height:1.15;color:var(--h2-ink)}
body.homev2 .h2tile small{font-size:12.5px;line-height:1.3;color:var(--h2-muted)}
/* the practice box and the open tables: paper like the rest (the practice box keeps its own inside) */
body.homev2 .home.v2 .hcard.prac{background:var(--h2-paper);color:var(--h2-ink);border:1px solid var(--h2-line);box-shadow:var(--h2-shadow)}
body.homev2 .home.v2 .hcard.prac::before{content:none}
body.homev2 .home.v2 .hcard.prac .prtitle{font-family:var(--f-face);color:var(--h2-ink)}
body.homev2 .home.v2 .htables h3{margin-bottom:6px}
body.homev2 .home.v2 .htables .muted{font-size:14px}
@media (max-width:640px){
  /* a phone: the three ways to play side by side as small squares (picture and name; the sentence shows on a wider screen) */
  body.homev2 .h2tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body.homev2 .h2tile{align-items:center;text-align:center;justify-content:center;gap:4px;padding:10px 6px}
  body.homev2 .h2ti{margin:0;font-size:22px}
  body.homev2 .h2tile b{font-size:13.5px;line-height:1.15}
  body.homev2 .h2tile small{display:none}
}
@media (max-width:420px){ body.homev2 .h2ptx p{font-size:12.5px} body.homev2 .h2go{padding:9px 14px} }
@media (prefers-reduced-motion:reduce){ body.homev2 .h2c{animation:none} body.homev2 .h2tile{transition:none} }
/* the practice box on the new page: quiet paper controls; the felt-green "Deal practice" is its one strong button, and
   the title and that button wrap instead of pushing out of the box on a narrow phone */
body.homev2 .home.v2 .prac .prhd{flex-wrap:wrap;row-gap:8px}
body.homev2 .home.v2 .prac .prhd .prtitle{white-space:normal;font-size:18px;color:var(--h2-ink);text-shadow:none}
body.homev2 .home.v2 .prac .prhd .prplay,body.homev2.classic .home.v2 .prac .prhd .prplay{background:linear-gradient(180deg,#2a7a50,#1b5a39);color:#f6ecd0;border:1px solid #124229;border-radius:10px;box-shadow:0 4px 10px -4px rgba(0,0,0,.5);text-shadow:none;margin-left:auto}
body.homev2 .home.v2 .prac .prdrop,body.homev2 .home.v2 .prac .prdrop.sys,body.homev2 .home.v2 .prac .prdrop:not(.sys){background:var(--h2-paper-2);color:var(--h2-ink);border:1px solid var(--h2-line);border-radius:10px;text-shadow:none;animation:none;box-shadow:none}
body.homev2 .home.v2 .prac .prdrop i,body.homev2 .home.v2 .prac .prdrop:not(.sys) i{color:var(--h2-muted)}
body.homev2 .home.v2 .prac .prdrop.on{background:var(--h2-paper-2);color:var(--h2-ink);box-shadow:inset 0 0 0 2px var(--h2-brass)}
body.homev2 .home.v2 .prac .prdrop:hover,body.homev2 .home.v2 .prac .prdrop[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--h2-brass)}
body.homev2 .home.v2 .prac .prval{color:var(--h2-ink)}
body.homev2 .home.v2 .prac .prconv,body.homev2.classic .home.v2 .prac .prconv{background:transparent;color:var(--h2-ink);border:1px solid var(--h2-line);text-shadow:none;box-shadow:none}
body.homev2 .home.v2 .prac .prconv.on{box-shadow:inset 0 0 0 2px var(--h2-brass)}
body.homev2 .home.v2 .prac .prask{color:var(--h2-muted);border:1px dashed var(--h2-line)}
body.homev2 .home.v2 .prac .prask:hover{background:var(--h2-paper-2);color:var(--h2-ink)}
:root[data-theme="dark"] body.homev2 .home.v2 .prac .prask{color:var(--h2-muted);border-color:var(--h2-line)}
:root[data-theme="dark"] body.homev2 .home.v2 .prac .prtop .prtitle{color:var(--h2-ink)}
/* the new page fits more on one screen: tighter gaps, a smaller you strip, and the open tables (now under the ways to
   play) take one line when there is no table: the title, the note and a small refresh button side by side */
body.homev2 .home.v2,body.homev2 .home.v2 .hmain{gap:10px}
body.homev2 .h2me{padding:9px 12px;row-gap:2px}
body.homev2 .h2av{width:42px;height:42px;font-size:20px}
body.homev2 .h2me .hstats{margin-top:4px;padding-top:6px}
body.homev2 .home.v2 .htables{padding:10px 12px}
body.homev2 .home.v2 .htables:has(.tables > .muted){display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
body.homev2 .home.v2 .htables:has(.tables > .muted) h3{margin:0;font-size:15px}
body.homev2 .home.v2 .htables:has(.tables > .muted) #hTables{flex:1 1 220px;min-width:0}
body.homev2 .home.v2 .htables:has(.ctcard) #hTables,body.homev2 .home.v2 .htables:has(.tables > .muted):has(.ctcard) #hTables{flex:1 1 100%}
body.homev2 .home.v2 .htables .ctcard{box-shadow:none;transform:none}
body.homev2 .home.v2 .htables .tables:has(> .muted){display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
body.homev2 .home.v2 .htables .tables > .muted{margin:0;font-size:13.5px;flex:1 1 auto;text-align:left}
body.homev2 .home.v2 .htables .tables > #nFind{margin:0;padding:6px 12px;font-size:13.5px;width:auto;background:var(--h2-paper-2);color:var(--h2-ink);border:1px solid var(--h2-line);border-radius:999px;box-shadow:none}
/* the new page without the lobby beside it: one column on a phone; on a wide screen two (the ways to play left, the
   practice box right). The lobby opens from the Lobby button as a panel (on a wide screen at the right, not the whole
   width). The you strip has no greeting: the picture, the chips and today. */
body.homev2 .home.v2 .hgrid{grid-template-columns:minmax(0,1fr)}
body.homev2 .home.v2 .hmain{display:flex;flex-direction:column;gap:10px}
body.homev2 .h2cola,body.homev2 .h2colb{display:flex;flex-direction:column;gap:10px;min-width:0}
@media (min-width:900px){
  body.homev2 .home.v2 .hmain{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px}
}
body.homev2 .h2me{grid-template-areas:"av chips" "av stats"}
body.homev2 .h2me .hstats{margin-top:2px;padding-top:4px;border-top:0}
body.homev2 .h2lobby{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:var(--h2-brass);color:var(--h2-brass-ink);border:1px solid #8a6a1c;font:700 15px/1 var(--f-ui);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3)}
body.homev2 .h2lobby small{min-width:20px;padding:2px 6px;border-radius:999px;background:rgba(42,33,8,.14);font-size:12.5px;text-align:center;font-variant-numeric:tabular-nums}
body.homev2 .h2lobby .h2unr:empty{display:none}
body.homev2 .h2lobby .h2unr{color:#8a1020}
body.homev2 .h2lobby.on{box-shadow:inset 0 0 0 2px #fff6dc}
body.homev2 .h2lobby:focus-visible{outline:3px solid #fff6dc;outline-offset:2px}
body.homev2 #hSheet .pchat{background:var(--h2-paper);color:var(--h2-ink);border:1px solid var(--h2-line);border-radius:16px;box-shadow:0 20px 50px -10px rgba(0,0,0,.6)}
@media (min-width:900px){ body.homev2 #hSheet .pchat{left:auto;width:min(560px,calc(100vw - 32px));max-height:76vh} body.homev2 #hSheet .pchat .lsplit{height:58vh} }
/* the head: the name of the room and the Lobby button on one line, the tools on the next on a phone (one line on a
   wide screen) */
body.homev2 .h2head .h2lobby{margin-left:auto}
@media (max-width:640px){
  body.homev2 .h2tools{flex-basis:100%;flex-wrap:nowrap;justify-content:space-between;gap:4px}
  body.homev2 .h2tools .hlang .sel{max-width:104px}
  body.homev2 .h2tools .hico{width:34px;height:34px;font-size:16px}
}
/* the Lobby button with a message waiting: a red count and a soft glow */
body.homev2 .h2lobby .h2unr{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c4122f;color:#fff;font-size:12px}
body.homev2 .h2lobby.unr{animation:h2glow 1.6s ease-in-out infinite}
@keyframes h2glow{0%,100%{box-shadow:0 2px 6px rgba(0,0,0,.3),0 0 0 0 rgba(255,214,120,.0)}50%{box-shadow:0 2px 6px rgba(0,0,0,.3),0 0 0 6px rgba(255,214,120,.45)}}
@media (prefers-reduced-motion:reduce){ body.homev2 .h2lobby.unr{animation:none;box-shadow:0 0 0 3px #fff6dc} }

/* the practice box on the new page, in the same hand as the left column: a title row with the one strong button,
   the two choices as rows (a small label over the value, like the you strip), the progress as a quiet band, and the
   smaller links at the foot. On a wide screen it is as tall as the left column. */
@media (min-width:900px){
  body.homev2 .home.v2 .hmain{align-items:stretch}
  body.homev2 .h2colb{height:100%}
  body.homev2 .h2colb .hcard.prac{flex:1;display:flex;flex-direction:column}
  body.homev2 .h2colb .hcard.prac .praskrow{margin-top:auto}
}
body.homev2 .home.v2 .hcard.prac{padding:14px 16px;gap:0}
body.homev2 .home.v2 .prac .prtop{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--h2-line)}
body.homev2 .home.v2 .prac .prhd{margin:0}
body.homev2 .home.v2 .prac .prhd .prtitle{font:700 clamp(17px,2vw,20px)/1.15 var(--f-face);letter-spacing:.02em}
body.homev2 .home.v2 .prac .prrow2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.homev2 .home.v2 .prac .prf{position:relative;display:grid;grid-template-columns:minmax(0,1fr);background:var(--h2-paper-2);border:1px solid var(--h2-line);border-radius:12px;padding:8px 12px 10px;transition:box-shadow .15s ease}
body.homev2 .home.v2 .prac .prf:hover{box-shadow:inset 0 0 0 1px var(--h2-brass)}
body.homev2 .home.v2 .prac .prf .prdrop,body.homev2 .home.v2 .prac .prf .prdrop.sys,body.homev2 .home.v2 .prac .prf .prdrop:not(.sys),body.homev2 .home.v2 .prac .prf .prdrop.on{background:none;border:0;box-shadow:none;padding:0;margin:0;width:100%;
  font:600 11.5px/1.2 var(--f-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--h2-muted);justify-content:space-between}
body.homev2 .home.v2 .prac .prf .prdrop::after{content:"";position:absolute;inset:0;border-radius:12px}   /* the whole row opens the list */
body.homev2 .home.v2 .prac .prf .prdrop i{font-size:14px;color:var(--h2-muted)}
body.homev2 .home.v2 .prac .prf .prval{margin:3px 0 0;font-size:15px;font-weight:700;color:var(--h2-ink);line-height:1.25;min-height:0}
body.homev2 .home.v2 .prac .prf .prdrop.on + .prval{color:#1d6b3c}
body.homev2 .home.v2 .prac .prf .pdpanel{z-index:5}
body.homev2 .home.v2 .prac .prhintrow{margin:10px 0 0;padding:0}
body.homev2 .home.v2 .prac .prhintsw{font-size:14px;color:var(--h2-ink)}
body.homev2 .home.v2 .prac .prprog{margin:10px 0 0;background:var(--h2-paper-2);border:1px solid var(--h2-line);border-radius:12px;padding:8px 12px}
body.homev2 .home.v2 .prac .prph,body.homev2 .home.v2 .prac .prptog{color:var(--h2-muted)}
body.homev2 .home.v2 .prac .prptog small{color:var(--h2-ink)}
body.homev2 .home.v2 .prac .prweak{background:transparent;color:var(--h2-ink);border:1px solid var(--h2-brass);box-shadow:none}
body.homev2 .home.v2 .prac .prweak:hover{background:rgba(217,178,92,.16);filter:none}
body.homev2 .home.v2 .prac .praskrow{margin-top:12px;padding-top:10px;border-top:1px solid var(--h2-line);gap:6px}
body.homev2 .home.v2 .prac .prask{border-style:solid;border-radius:999px;padding:5px 12px;font-size:13px}
:root[data-theme="dark"] body.homev2 .home.v2 .prac .prf .prdrop.on + .prval{color:#7fd09a}
:root[data-theme="dark"] body.homev2 .home.v2 .prac .prprog{background:var(--h2-paper-2);border-color:var(--h2-line)}
@media (max-width:420px){ body.homev2 .home.v2 .prac .prf{padding:7px 10px 8px} body.homev2 .home.v2 .prac .prf .prval{font-size:14px} body.homev2 .home.v2 .prac .prtop{margin-bottom:8px;padding-bottom:8px} }
/* the championship card beside the Play card: a gold-edged paper card (side by side on a wider screen) */
body.homev2 .h2pr{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@media (min-width:640px){ body.homev2 .h2pr{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)} }
body.homev2 .h2champ{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:16px;background:var(--h2-paper);color:var(--h2-ink);border:1px solid var(--h2-line);box-shadow:var(--h2-shadow),inset 0 0 0 2px var(--h2-brass);min-width:0}
body.homev2 .h2champ:empty{display:none}
body.homev2 .h2chh{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
body.homev2 .h2cht{font:700 clamp(17px,4.4vw,20px)/1.1 var(--f-face);letter-spacing:.02em}
body.homev2 .h2chh small,body.homev2 .h2chl small,body.homev2 .h2chm{color:var(--h2-muted);font-size:13px}
body.homev2 .h2chl{font-size:15px;min-width:0;overflow-wrap:anywhere}
body.homev2 .h2chb{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:2px}
body.homev2 .h2chb .h2go{margin:0;padding:9px 14px;font-size:15px}
body.homev2 .h2chb .h2chs{background:var(--h2-paper-2);color:var(--h2-ink);border:1px solid var(--h2-line);border-radius:10px;padding:8px 12px;font-size:14px;box-shadow:none}
/* the championship's months: golden names of last month's champions, the trophy cabinet, the new champions on the home card */
.champgold{color:#b8860b!important;font-weight:800;text-shadow:0 0 1px rgba(184,134,11,.25)}
:root[data-theme="dark"] .champgold{color:#f2c94c!important}
.trophies{margin:10px 0 4px;padding:10px 12px;border-radius:12px;background:linear-gradient(180deg,rgba(242,201,76,.16),rgba(242,201,76,.06));border:1px solid rgba(184,134,11,.35)}
.tropht{font-weight:800;margin-bottom:6px}
.troph{font-size:14px;line-height:1.5}.troph.p1{font-weight:800}
body.homev2 .h2chnew{font-size:13.5px;padding:6px 10px;border-radius:10px;background:rgba(242,201,76,.18);border:1px solid rgba(184,134,11,.35)}
.res tr.dim td{opacity:.6}
/* the rank card beside a name: a small playing card (suit colours of the four-colour deck); large on the player card */
.rkc,.rkbig{display:inline-flex;align-items:center;justify-content:center;font:700 12px/1 var(--f-card);padding:2px 4px;min-width:26px;border-radius:4px;background:#fffdf6;color:#1b1b1b;border:1px solid rgba(0,0,0,.25);box-shadow:0 1px 2px rgba(0,0,0,.2);vertical-align:middle;white-space:nowrap}
.rkc.s0,.rkbig.s0{color:#1a7a2e}.rkc.s1,.rkbig.s1{color:#d06a00}.rkc.s2,.rkbig.s2{color:#c4122f}.rkc.s3,.rkbig.s3{color:#1b1b1b}
.rkbig{font-size:22px;padding:6px 8px;min-width:48px;border-radius:7px;margin-right:4px}
:root[data-theme="dark"] .rkc,:root[data-theme="dark"] .rkbig{background:#fffdf6}
/* Play offline and the championship in one felt box, side by side on every screen (a thin line between them); on a
   phone the fan of cards and the sentence give way so both fit on one row */
body.homev2 .h2pr{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;border-radius:16px;overflow:hidden;
  background:radial-gradient(130% 120% at 0% 0%,#2e7c53 0%,#1d5e3d 45%,#123f29 100%);border:1px solid rgba(0,0,0,.35);box-shadow:var(--h2-shadow)}
body.homev2 .h2pr::after{content:"";position:absolute;inset:8px;border:1px solid rgba(246,236,208,.18);border-radius:11px;pointer-events:none}
body.homev2 .h2pr .h2play{background:none;border:0;box-shadow:none;border-radius:0}
body.homev2 .h2pr .h2play::after{content:none}
body.homev2 .h2pr .h2champ{background:none;border:0;box-shadow:none;border-radius:0;border-left:1px solid rgba(246,236,208,.22);color:#f6ecd0;justify-content:center;padding:clamp(10px,2.6vw,16px) clamp(12px,3vw,18px)}
body.homev2 .h2pr .h2cht{color:#fff6dc;font-size:clamp(18px,4.8vw,23px)}
body.homev2 .h2pr .h2champ small,body.homev2 .h2pr .h2chm{color:rgba(246,236,208,.8)}
body.homev2 .h2pr .h2chl{color:#fff6dc}
body.homev2 .h2pr .h2chb .h2chs{background:rgba(0,0,0,.22);color:#f6ecd0;border:1px solid rgba(246,236,208,.28)}
body.homev2 .h2pr .h2chnew{background:rgba(242,201,76,.2);border-color:rgba(242,201,76,.45);color:#fff6dc}
@media (max-width:640px){
  body.homev2 .h2pr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body.homev2 .h2pr .h2play{grid-template-columns:minmax(0,1fr);padding:12px}
  body.homev2 .h2pr .h2fan,body.homev2 .h2pr .h2ptx p,body.homev2 .h2pr .h2chh small,body.homev2 .h2pr .h2chm{display:none}
  body.homev2 .h2pr .h2ptx h2,body.homev2 .h2pr .h2cht{font-size:17px}
  body.homev2 .h2pr .h2champ{padding:12px;gap:5px}
  body.homev2 .h2pr .h2chl{font-size:13px}
  body.homev2 .h2pr .h2chb{gap:6px}
  body.homev2 .h2pr .h2go,body.homev2 .h2pr .h2chb .h2go{padding:9px 10px;font-size:14px}
  body.homev2 .h2pr .h2chb .h2chs{padding:7px 9px;font-size:13px}
}
/* the windows' plain buttons stand out from the paper; the rank card can be tapped */
.sheet .btn:not(.gold):not(.new):not(.bad):not(.mini-btn):not(.sms){background:#fff;color:#14281d;border:1px solid rgba(20,40,29,.35);font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.12)}
:root[data-theme="dark"] .sheet .btn:not(.gold):not(.new):not(.bad):not(.mini-btn):not(.sms){background:#2a3a31;color:#f2eee1;border-color:rgba(242,238,225,.3)}
.sheet .btn.gold{color:#2a2108;font-weight:800}
.rkc[data-rank]{cursor:pointer}
/* the championship: a line that makes you want to play, and a short introduction */
body.homev2 .h2chtag{font-size:13.5px;line-height:1.3;color:rgba(246,236,208,.92);font-style:italic}
.chintro{font-size:15px;line-height:1.45;padding:10px 12px;margin:4px 0 8px;border-radius:12px;background:rgba(242,201,76,.14);border:1px solid rgba(184,134,11,.3)}
/* the practice box's own buttons (add a convention, the administrator's lists) as clear pills */
body.homev2 .home.v2 .prac .praskrow{gap:8px}
body.homev2 .home.v2 .prac .prask{background:var(--h2-paper-2);color:var(--h2-ink);border:1px solid rgba(20,40,29,.22);border-radius:10px;padding:8px 12px;font-size:13.5px;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.08)}
body.homev2 .home.v2 .prac .prask:hover{background:#fff;border-color:var(--h2-brass)}
:root[data-theme="dark"] body.homev2 .home.v2 .prac .prask{color:var(--h2-ink);border-color:var(--h2-line)}
body.homev2 .home.v2 .prac .prask .supc{background:#c4122f;color:#fff;border-radius:999px;padding:0 6px;font-size:12px}
@media (max-width:640px){ body.homev2 .h2pr .h2chtag{font-size:12px} }
/* the team match: which table is which room, the team names two by two, a match's score */
.tmleg{display:grid;gap:6px;margin:6px 0}
.tmleg>div{padding:7px 10px;border-radius:10px;background:rgba(242,201,76,.12);border:1px solid rgba(184,134,11,.25)}
.tmleg small{display:block;opacity:.8;margin-top:2px}
.tmnames{display:grid;gap:6px}
.tmpair{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:6px}
.tmpair input{min-width:0;width:100%}
.tmpair small{opacity:.75;white-space:nowrap}
.teams .tscore small{display:block;color:#f2c94c;font-weight:700}
.teams .tmhead{font-weight:700;margin-top:8px}
.tmbd summary{cursor:pointer;font-weight:700;margin:4px 0}
.sbtrow b small,.sbtab td small{display:block;font-weight:400;opacity:.75;font-size:11px}
.sbtno small{font-weight:400;opacity:.8}
@media (max-width:480px){ .tmpair{grid-template-columns:1fr auto 1fr} .tmpair small{grid-column:1/-1} }
.res td small{display:block;opacity:.7;font-size:11px}
/* team match: seat requests */
.sbreqs{border:2px solid #e2a50b;border-radius:12px;padding:8px 10px;background:rgba(242,201,76,.14)}
.sbreq{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:6px;padding:6px 0;border-top:1px solid rgba(0,0,0,.08)}
.sbreq:first-of-type{border-top:0}
.sbreq b{grid-column:1}.sbreq small{grid-column:1;opacity:.8}
.sbreq .btn{grid-row:1/span 2}
.sbc-pos[disabled]{opacity:.55;cursor:default}
.bm3-hcp{background:#fff;color:#14281d;width:100%;box-sizing:border-box;font-size:26px;font-weight:800;text-align:center;padding:10px;border-radius:12px;border:2px solid #2f6fd6;margin:4px 0 8px}
.sbnext{font-size:18px;padding:12px 18px;width:100%}
.onetot td{border-top:2px solid rgba(0,0,0,.25)}
/* Clubs: the club tournaments inside BridgePlay */
#clubView{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;background:#0f0e0c}
#clubView[hidden]{display:none}
#clubView .cvbar{display:flex;align-items:center;gap:10px;padding:6px 10px;padding-top:max(6px,env(safe-area-inset-top));background:#14281d;color:#f6ecd0}
#clubView .cvbar b{font-size:16px}
#clubView .cvclubs{background:none;border:0;color:inherit;font:inherit;font-size:16px;font-weight:700;cursor:pointer;padding:6px 8px;border-radius:8px}#clubView .cvclubs:hover{background:rgba(255,255,255,.1)}
#clubView iframe{flex:1;width:100%;border:0;background:#0f0e0c}
body.clubsopen{overflow:hidden}
/* Clubs: the clubs playing now, a club's tables when its name is tapped */
.clubrow{border:1px solid rgba(0,0,0,.12);border-radius:12px;margin:6px 0;padding:4px 10px;background:rgba(255,255,255,.6)}
.clubrow .clubname{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;padding:8px 0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.clubrow .clubname b{font-size:17px}.clubrow .clubname small{opacity:.7}
.clubrow .clubarr{margin-left:auto;opacity:.6}
.clubnew{margin-top:12px}.clubnew #clubIdIn{flex:1;min-width:0}
:root[data-theme="dark"] .clubrow{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15)}
.clubrow.live{border-color:#2e7d4f;border-width:2px}
/* Clubs: each club a yellow card (as the gold buttons); a running tournament keeps its green edge */
.clubrow,:root[data-theme="dark"] .clubrow{background:linear-gradient(#ffe27a,#f2c230);border:1px solid #b8901a;color:#2a2108;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.clubrow .clubname small{opacity:.85}
.clubrow.live,:root[data-theme="dark"] .clubrow.live{border:3px solid #2e7d4f}
.clubrow .bm3-key{background:#fff;color:#1b1b1b}
.clubrow .muted{color:#4a3d10}
.bm3-keys.k2{grid-template-columns:repeat(2,1fr)}
/* team match: the round headings of a moving game, its movement, who a player is, the test game's robots */
.sbround{grid-column:1/-1;font-weight:700;color:#1e5c3b;margin-top:6px;border-bottom:1px solid #c7c9bd;padding-bottom:2px}
.sbrd{border:1px solid #e3dfcd;border-radius:8px;padding:6px 10px;margin:6px 0}.sbrd summary{cursor:pointer;font-weight:700}
.sbtrow.me{background:#e3f1e8;border-radius:6px;padding-left:6px}
.sbme{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.sbme .btn{flex:1 1 140px}
.sbtest{border:2px dashed #e2a50b;border-radius:10px;padding:8px}

/* the robots' table: the home card and the watching window */
.rtcard{padding:0;overflow:hidden}
.rtgo{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;width:100%;padding:12px 14px;text-align:left;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}
.rtgo b{font-size:15px}.rtgo small{flex-basis:100%;opacity:.8}
.rtlive{color:#e5484d;font-weight:700;font-size:12px;letter-spacing:.03em}
.rtwatch{margin-left:auto;font-weight:700}
.rtseg{margin:8px 0}
.rthd{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:8px 0 4px}
.rtpairs{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:13px}.rtpairs small{opacity:.7}
.rtcon{margin:6px 0;font-size:14px}
.rttrick{grid-column:2;grid-row:2;display:grid;grid-template-areas:". n ." "w . e" ". s .";place-items:center;font-size:17px;font-weight:700;min-height:84px}
.rttrick .rtn{grid-area:n}.rttrick .rte{grid-area:e}.rttrick .rts{grid-area:s}.rttrick .rtw{grid-area:w}
.rtrow{display:block;width:100%;text-align:left;padding:8px 10px;margin:4px 0;border-radius:8px;border:1px solid rgba(127,127,127,.3);background:transparent;color:inherit;font:inherit;cursor:pointer}
.rtrow span{display:block;font-size:13px;margin-top:2px}
.rttab{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0 12px}
.rttab td,.rttab th{padding:4px 6px;border-bottom:1px solid rgba(127,127,127,.25);text-align:left}
.auction td button.c{background:transparent;border:0;color:inherit;font:inherit;padding:0 2px;cursor:pointer}
.rtchips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.rtchip{padding:5px 10px;border-radius:999px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.rtchip.on{background:var(--brass,#c9a227);border-color:transparent;color:#1f2a22;font-weight:700}
.rtrows{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;padding:0 14px 14px}
.rtrow2{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;border-radius:8px;border:1px solid rgba(127,127,127,.3);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.rtrow2 small{opacity:.8;font-size:12px}
.rtsit{padding:0 5px;margin-left:4px;font-size:13px;line-height:1.4}
.rtcard .rtgo{cursor:default}
.rttrick .rtbid{font-size:15px;padding:1px 6px;border-radius:6px;background:rgba(255,255,255,.85);color:#1f2a22;min-width:30px;text-align:center}
.rttrick .rtbid:empty{background:transparent}
.rttrick .rtbid.new{box-shadow:0 0 0 2px var(--brass,#c9a227)}
.rtend{justify-content:center;margin-top:6px}
body.homev2 .h2ptx .h2conv{margin:8px 0 0;padding:11px 16px;font-size:clamp(15px,4vw,17px)}
@media (min-width:600px){body.homev2 .h2ptx .h2conv{margin-left:8px}}
.rtcard .rtgo{padding:10px 14px 6px}.rtcard .rtrows{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 12px}
/* the system table's six systems on the home card: gold buttons, as Start */
body.homev2 .rtcard .rtchip{background:linear-gradient(180deg,#ecc874,var(--h2-brass,#c9a227) 55%,var(--h2-brass-2,#a8841c));color:var(--h2-brass-ink,#2a1f05);border:1px solid #8a6a1c;border-radius:10px;font:700 14px/1 var(--f-ui);padding:9px 12px;box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 4px 10px rgba(0,0,0,.3);cursor:pointer}
body.homev2 .rtcard .rtchip:hover{filter:brightness(1.05)}
/* the system table's double-dummy table at the end of a board: the level each declarer makes in each strain */
.rtdd{margin:6px auto 2px;border-collapse:collapse;font-size:13px;background:rgba(255,255,255,.9);color:#1f2a22;border-radius:6px;overflow:hidden}
.rtdd th,.rtdd td{padding:3px 8px;text-align:center;border:1px solid rgba(0,0,0,.08)}
.rtdd td.ok{font-weight:700}.rtdd td.gm{font-weight:700;background:#f4e3a6}
/* Play offline: its title and the fan of cards start a board too */
body.homev2 .h2ptitle{background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;text-align:left}
body.homev2 .h2ptitle:hover{text-decoration:underline}
body.homev2 button.h2fango{display:block;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer}
/* a system table board over: the result and the double-dummy table in the middle of the table, larger */
#center .rtdone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:100%;padding:4px;text-align:center}
#center .rtres{background:rgba(255,255,255,.92);color:#1f2a22;border-radius:8px;padding:6px 12px;font-size:15px;line-height:1.3}
#center .rtres small{display:block;font-size:13px;opacity:.85}
#center .rtdd{font-size:17px;margin:0}
#center .rtdd th,#center .rtdd td{padding:5px 11px}
#center .rtend{margin:0}
@media (max-width:420px){#center .rtdd{font-size:15px}#center .rtdd th,#center .rtdd td{padding:4px 7px}}
/* the end of a board in every game: the result and the double-dummy table in the middle; a tap: the details */
#center .ddend{background:none;border:0;color:inherit;font:inherit;cursor:pointer;width:100%}
#center .ddend .rtres{display:block}
#center .ddtap{font-size:13px;color:#f4e3a6;opacity:.9}
#center .ddend{gap:3px;padding:2px}
#center .ddend .rtres{font-size:13px;padding:4px 8px}
#center .ddend .rtres small{font-size:11px}
#center .ddend .rtdd{font-size:13px}
#center .ddend .rtdd th,#center .ddend .rtdd td{padding:2px 6px}
@media (max-width:420px){#center .ddend .rtdd{font-size:11px}#center .ddend .rtdd th,#center .ddend .rtdd td{padding:1px 4px}#center .ddend .ddtap{font-size:11px}}
body.homev2 .h2mid{grid-area:chips;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.hpz{flex:none;background:linear-gradient(180deg,#ecc874,#d4a017 55%,#b8860b);color:#2a2108;border:1px solid #8a6a1c;border-radius:10px;padding:7px 12px;font:inherit;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap;box-shadow:0 2px 5px rgba(0,0,0,.25)}
.hpz:hover{filter:brightness(1.05)}
.pzdd{text-align:center;margin-top:8px}
.clubtools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}.clubtools .btn{padding:8px 4px;font-size:.9rem;white-space:normal;line-height:1.15;min-width:0;overflow-wrap:anywhere;hyphens:auto}
.plrow{position:relative}.plrow .pldet{margin-left:auto;background:none;border:1px solid var(--line,#c9b98f);border-radius:8px;padding:2px 10px;font-size:1rem;cursor:pointer;color:inherit}
.pldays{margin:2px 0 8px 28px;display:flex;flex-direction:column;gap:4px}
.plday{display:flex;flex-direction:column;gap:1px;padding:6px 8px;border-left:3px solid var(--brass,#d4a017);background:rgba(0,0,0,.04);border-radius:6px;font-size:.85rem}
.plday small{opacity:.75}
.pzline{margin:6px 0;font-size:.95rem}
.pzpair{display:flex;flex-direction:column;gap:2px}.pzpair small{opacity:.75;font-weight:700}

/* the practice box opens with 📚 Practise conventions; the robots' live table sits beside Play offline */
body.homev2 .hcard.prac:empty{display:none}
.prhd .prx{margin-left:6px}
body.homev2 .h2pr .h2rt{justify-content:flex-start;gap:8px}
body.homev2 .h2pr .h2rt .rtgo{padding:0;color:#f6ecd0}
body.homev2 .h2pr .h2rt .rtrows{display:flex;flex-wrap:wrap;gap:6px;padding:0}
body.homev2 .h2pr .h2rt .rtchip{padding:8px 10px;font-size:13px}

/* the home button in the bar: a big house with its name under it */
#bHome.hbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1;padding:3px 10px;min-width:52px}
#bHome.hbtn b{font-size:24px;line-height:.9;font-weight:400}
#bHome.hbtn small{font-size:11px;font-weight:700;white-space:nowrap}
@media (max-width:600px){ #bar .tools>#bHome.hbtn{padding:2px 6px;min-width:44px} #bHome.hbtn b{font-size:21px} #bHome.hbtn small{font-size:10px} }
/* the home page: Play offline fills its card; the robots' table is a card of its own */
body.homev2 .h2pr{grid-template-columns:1fr}
body.homev2 .h2pr .h2play{min-width:0}
body.homev2 .rtcard .rtrows{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:600px){ body.homev2 .rtcard .rtrows{display:grid;grid-template-columns:1fr 1fr;gap:6px} body.homev2 .rtcard .rtchip{width:100%;text-align:center} }
@media (min-width:900px){ body.homev2 .h2colb{height:auto} body.homev2 .h2colb .hcard.prac{flex:none} }
/* the tiles' pictures: larger, on a round brass badge so they stand out (the grey 🏛 of Clubs above all) */
body.homev2 .h2tile .h2ti{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;font-size:26px;background:radial-gradient(circle at 35% 30%,#f3d98f,var(--h2-brass,#c9a227) 60%,#9c7a1a);box-shadow:0 2px 6px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.5);margin-bottom:6px}
body.homev2 #hClubs .h2ti{font-size:28px}
@media (max-width:600px){ body.homev2 .h2tile .h2ti{width:40px;height:40px;font-size:24px;margin:0 0 4px} body.homev2 #hClubs .h2ti{font-size:26px} }
#clubView .cvclubs{font-size:18px}
#bHome.hbtn b{font-size:20px;line-height:1}
@media (max-width:600px){ #bHome.hbtn b{font-size:18px} }
/* Start and Practise conventions side by side, on a phone too */
body.homev2 .h2ptx .h2btns{display:flex;flex-wrap:nowrap;gap:8px;align-items:stretch;margin-top:4px}
body.homev2 .h2ptx .h2btns .h2go{margin:0;white-space:nowrap}
body.homev2 .h2ptx .h2btns .h2conv{margin:0}
@media (max-width:600px){ body.homev2 .h2ptx .h2btns .h2go{flex:1 1 auto;padding:10px 8px;font-size:14px} body.homev2 .h2ptx .h2btns #bGo{flex:0 0 auto} }
/* Clubs looks different from the other tiles: the green felt with a brass edge */
body.homev2 #hClubs.h2tile{background:linear-gradient(160deg,#1f5c3c,#123d27);border:2px solid var(--h2-brass,#c9a227);box-shadow:var(--h2-shadow),inset 0 0 0 1px rgba(255,230,160,.25)}
body.homev2 #hClubs.h2tile b{color:#f6e3a6}
body.homev2 #hClubs.h2tile small{color:rgba(246,236,208,.85)}
body.homev2 #hClubs.h2tile .h2ti{background:radial-gradient(circle at 35% 30%,#fff7dc,#f0dca0 60%,#c9a227)}

/* Home (and the system table's Tables) in the top row of the bar, as tall as the boxes */
#bar>#bHome.hbtn,#bar>#bRtList.hbtn{align-self:stretch;flex:none;padding:3px 10px;min-width:54px;border-radius:10px}
#bar>#bRtList.hbtn b{font-size:20px;line-height:1}
@media (max-width:600px){ #bar>#bHome.hbtn,#bar>#bRtList.hbtn{min-width:48px;padding:2px 6px} }
/* on a phone: Start / Continue and Practise conventions as two equal buttons across the card */
@media (max-width:600px){
  body.homev2 .h2ptx .h2btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  body.homev2 .h2ptx .h2btns .h2go,body.homev2 .h2ptx .h2btns #bGo{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.15;min-height:46px;padding:8px 8px;font-size:15px;width:100%;border-radius:12px}
}
#bRtList.hbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1}
#bRtList.hbtn small{font-size:11px;font-weight:700;white-space:nowrap}
@media (max-width:600px){ #bRtList.hbtn small{font-size:10px} #bar>#bRtList.hbtn b{font-size:18px} #bar:has(#bRtList){flex-wrap:nowrap} #bar:has(#bRtList)>.box{min-width:0;flex:1 1 auto} }

#bRtSit.hbtn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1}
#bRtSit.hbtn small{font-size:11px;font-weight:700;white-space:nowrap}
#bar>#bRtSit.hbtn{align-self:stretch;flex:none;padding:3px 10px;min-width:54px;border-radius:10px}
#bar>#bRtSit.hbtn b{font-size:20px;line-height:1}
@media (max-width:600px){ #bar>#bRtSit.hbtn{min-width:46px;padding:2px 5px} #bRtSit.hbtn small{font-size:10px} #bar>#bRtSit.hbtn b{font-size:18px} #bar:has(#bRtList){gap:5px} }

.rtseats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.rtseats .btn{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 8px;font-size:16px;font-weight:700}
.rtseats .btn small{font-size:12px;font-weight:500;opacity:.85}

/* the system table's Sit down: brass, so it shows on the green */
#bar>#bRtSit.hbtn{background:linear-gradient(180deg,#ffe9a8,#e0b84a 55%,#b8901f);color:#2a1f05;border:1px solid #8a6a1c;box-shadow:0 0 0 2px rgba(255,236,170,.55),0 3px 8px rgba(0,0,0,.35)}
/* the puzzle: Show all four hands as a button */
.pzdeal>summary.pzsum{display:inline-flex;align-items:center;gap:6px;margin:8px 0 4px;padding:9px 16px;border-radius:10px;background:linear-gradient(180deg,#ecc874,#c9a227 55%,#a8841c);color:#2a1f05;border:1px solid #8a6a1c;font-weight:700;font-size:15px;cursor:pointer;list-style:none;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.pzdeal>summary.pzsum::-webkit-details-marker{display:none}
.pzdeal[open]>summary.pzsum{filter:brightness(.95)}

/* the puzzle's progress: the rating and level, then Next puzzle or the wait */
.pzprog{margin:10px 0 4px;padding:8px 12px;border-radius:10px;background:rgba(201,162,39,.14);border:1px solid rgba(201,162,39,.45);font-size:14px}
.pzprog b{font-size:16px}
.pznext{margin:8px 0;padding:11px 18px;font-size:16px;font-weight:700}
.pzwait{margin:8px 0;font-weight:700}
.pzline .sym{font-weight:700}
/* the system table's bar: Home and Tables plain, Sit down in red so it cannot be mistaken */
#bar>#bRtList.hbtn{background:#f4f1e8;color:#1f2a22;border:1px solid rgba(0,0,0,.18);box-shadow:none}
#bar>#bRtSit.hbtn{background:linear-gradient(180deg,#e2384f,#b3122a);color:#fff;border:1px solid #7d0b1c;box-shadow:0 0 0 2px rgba(255,255,255,.55),0 3px 8px rgba(0,0,0,.35)}
#bar>#bRtSit.hbtn small{color:#fff}
/* Sit down: a calm blue, easy on the eye and unlike the other buttons */
#bar>#bRtSit.hbtn{background:linear-gradient(180deg,#5b9cf0,#2f6fd6);color:#fff;border:1px solid #1f4fa0;box-shadow:0 0 0 2px rgba(255,255,255,.6),0 3px 8px rgba(0,0,0,.3)}
/* Sit down: white with a dark green edge */
#bar>#bRtSit.hbtn{background:#fff;color:#123d27;border:2px solid #1f5c3c;box-shadow:0 2px 6px rgba(0,0,0,.3)}
#bar>#bRtSit.hbtn small{color:#123d27}

/* the administrator's messages: a row with Reply and a bin; the read ones below, dimmed */
.suprow{display:flex;align-items:stretch;gap:6px;margin:6px 0}
.suprow .supth{margin:0;flex:1;min-width:0}
.suprow .supdel{flex:none;align-self:center}
.suprow.read .supth{opacity:.6}
.supth .supgo{grid-column:1/-1;font-style:normal;font-weight:700;font-size:13px;color:#1f5f8b}
.supsep{margin:12px 0 4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.6}

/* the administrator's card on the home page */
.admcard>b{display:block;margin-bottom:6px}
.admcard .praskrow{display:flex;flex-wrap:wrap;gap:6px}
.admcard .prask{background:none;border:1px dashed rgba(31,95,139,.5);color:#1f5f8b;border-radius:8px;padding:6px 10px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}

/* the administrator's card: one line, opens like a menu */
.admcard{padding:6px 10px}
.admcard .admtog{background:none;border:0;font:inherit;font-weight:700;font-size:14px;cursor:pointer;padding:4px 2px;color:inherit;display:flex;align-items:center;gap:6px;width:100%;text-align:left}
.admcard .admtog i{margin-left:auto;font-style:normal;opacity:.6}
.admcard.open .praskrow{margin-top:6px}

/* 👑 the administrator's icon to the right of the puzzle; its menu */
#hAdm:empty{display:none}
.hadmb{position:relative;flex:none;margin-left:6px;background:linear-gradient(180deg,#fff,#efe6cf);border:1px solid #8a6a1c;border-radius:10px;padding:6px 9px;font-size:17px;line-height:1;cursor:pointer;box-shadow:0 2px 5px rgba(0,0,0,.25)}
.hadmb .supc{position:absolute;top:-7px;right:-7px;font-size:11px}
.admmenu{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.admmenu .btn{text-align:left}
body.homev2 .h2mid .hpz{margin-left:auto}
#hAdm{display:flex;flex:none}

.otour small.tby{display:block;opacity:.8}

/* the end of a board: Next deal under the result with the double dummy table */
.ddnext{display:block;margin:10px auto 0;font-size:17px;padding:10px 26px}

/* online club tournaments coming up (js/clubtour.js) */
#hClubT:empty{display:none}
#hClubT{display:flex;flex-direction:column;gap:8px}
.ctcard{display:flex;flex-direction:column;gap:3px;text-align:left;cursor:pointer;border:2px solid #1f7a2e;background:linear-gradient(180deg,#f4fbf2,#e3f2df);color:#17311d;font:inherit}
.ctcard b{font-size:15px}.ctcard span{font-size:13px}.ctcard small{font-size:13px;font-weight:700;color:#1f5f8b}
.ctcard.short .ctonl{display:inline-block;margin-left:8px;padding:2px 12px;border-radius:999px;background:#1f8a3a;color:#fff;font-weight:800;font-size:16px;letter-spacing:.4px;vertical-align:0}
.ctcard.short{width:100%;margin:0 0 8px;padding:8px 12px;gap:2px}.ctcard.short b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ctcard.short span{font-size:12.5px}.ctcard.short .ctmore{font-style:normal;font-weight:700;color:#1f5f8b;float:right;margin-left:8px}
.ctcard.reg{border-color:#d4a017;background:linear-gradient(180deg,#fffaf0,#f8ecc9)}

/* your turn: the hand to play from and the bidding box glow, the line under the table is a bright pill */
@keyframes turnGlow{0%,100%{box-shadow:0 0 0 2px rgba(255,213,74,.9),0 0 14px 2px rgba(255,213,74,.45)}50%{box-shadow:0 0 0 3px rgba(255,213,74,1),0 0 26px 8px rgba(255,213,74,.7)}}
body.mybid #bidbox{border-radius:14px;animation:turnGlow 1.6s ease-in-out infinite}
.turnme{border-radius:14px;animation:turnGlow 1.6s ease-in-out infinite}
#status .yourturn{display:inline-block;background:#ffd54a;color:#3a2a00;font-weight:800;padding:4px 14px;border-radius:999px;font-size:15px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
@media (prefers-reduced-motion:reduce){body.mybid #bidbox,.turnme{animation:none;box-shadow:0 0 0 3px rgba(255,213,74,1)}}

/* the Claude system's table on the home page: its own colour, the whole row, a line under its name */
.rtrows .rtclaude{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 14px;border-radius:14px;border:0;color:#fff;background:linear-gradient(120deg,#5b2a86 0%,#7b3fb0 45%,#c0623a 100%);box-shadow:0 3px 12px rgba(91,42,134,.35)}
.rtrows .rtclaude b{font-size:16px;letter-spacing:.3px}
.rtrows .rtclaude small{font-size:12.5px;line-height:1.35;opacity:.95;font-weight:500}
.rtrows .rtclaude:hover{filter:brightness(1.08)}
.rtrows .rtclaudeart{grid-column:1/-1;justify-self:end;font-size:13px;font-weight:700;color:#7b3fb0;text-decoration:none;margin:-2px 4px 2px}
.rtcard .rtrows .rtclaude,.rtcard .rtrows .rtclaudeart{flex-basis:100%}
body.homev2 .rtcard .rtchip.rtclaude,body.homev2 .h2pr .h2rt .rtchip.rtclaude{grid-column:1/-1;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 14px;border:0;color:#fff;background:linear-gradient(120deg,#5b2a86 0%,#7b3fb0 45%,#c0623a 100%);box-shadow:0 3px 12px rgba(91,42,134,.35);border-radius:14px}
body.homev2 .rtcard .rtrows .rtclaudeart{grid-column:1/-1;flex-basis:100%;text-align:right}

/* Claude's invitation on the home page */
.hcard.clinv{display:flex;flex-direction:column;gap:6px;color:#fff;background:linear-gradient(120deg,#5b2a86 0%,#7b3fb0 45%,#c0623a 100%);border:0;box-shadow:0 3px 12px rgba(91,42,134,.35)}
.hcard.clinv b{font-size:16px}.hcard.clinv small{font-size:13.5px;line-height:1.4;opacity:.95}
.hcard.clinv .row2{margin-top:2px}.hcard.clinv .btn:not(.gold){background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.35)}
body.homev2 .home.v2 .hcard.clinv,body .hcard.clinv{color:#fff;background:linear-gradient(120deg,#5b2a86 0%,#7b3fb0 45%,#c0623a 100%);border:0}
body.homev2 .home.v2 .hcard.clinv small{color:#f3e9ff}
body.homev2 .home.v2 .hcard.clinv .btn:not(.gold){background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.45)}

/* the Claude row in two: the system and the challenge, side by side, short */
.rtrows .rtclaudes,body.homev2 .rtcard .rtrows .rtclaudes{grid-column:1/-1;flex-basis:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}
body.homev2 .rtcard .rtchip.rtclaude,.rtrows .rtclaude{padding:7px 10px;border-radius:12px}
body.homev2 .rtcard .rtchip.rtclaude b,.rtrows .rtclaude b{font-size:14.5px}
body.homev2 .rtcard .rtchip.rtclaude small,.rtrows .rtclaude small{font-size:11.5px}
body.homev2 .rtcard .rtchip.rtduel,.rtrows .rtduel{background:linear-gradient(120deg,#8a2c2c 0%,#c0623a 60%,#e0a040 100%)}
body.homev2 .rtcard .rtchip.rtduel.on,.rtrows .rtduel.on{background:linear-gradient(120deg,#1f6b3a 0%,#2f8a52 100%);box-shadow:0 0 0 2px #ffd54a inset}
.rtrows .rtclaudes .rtclaude,body.homev2 .rtcard .rtrows .rtclaudes .rtchip.rtclaude{grid-column:auto;width:100%;min-width:0}
/* the robots' chat: 👍/👎 under an AI answer; the administrator's review list */
.cm .crate{display:inline-flex;gap:2px;margin-left:6px;vertical-align:middle}
.cm .crate button{border:0;background:transparent;padding:0 2px;font-size:13px;line-height:1;cursor:pointer;opacity:.45;filter:grayscale(.6)}
.cm .crate button:hover:not(:disabled){opacity:1;filter:none}
.cm .crate button.on{opacity:1;filter:none;cursor:default}
.brtabs{gap:6px}
.brlist{max-height:60vh;overflow:auto;display:flex;flex-direction:column;gap:6px;margin-top:6px}
.brrow{border:1px solid rgba(127,127,127,.3);border-left:4px solid rgba(127,127,127,.4);border-radius:8px;padding:6px 8px;font-size:14px;text-align:left}
.brrow.bad{border-left-color:#c62828}
.brrow.good{border-left-color:#2e7d32}
.brrow small{display:block;opacity:.7;margin-bottom:2px}
/* club pairings: a card for each table */
.ctcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin:8px 0}
.ctcardt{border:1px solid rgba(127,127,127,.35);border-radius:12px;padding:8px 10px;text-align:left;background:rgba(127,127,127,.06)}
.ctcardt.me{border:2px solid #d4a72c;background:rgba(212,167,44,.14)}
.ctcardt .cth{display:flex;justify-content:space-between;align-items:center;font-size:17px;margin-bottom:6px}
.ctcardt .ctp{cursor:pointer;padding:4px 6px;border-radius:8px;margin:3px 0;background:rgba(127,127,127,.1);font-weight:600}
.ctcardt .ctp:hover{background:rgba(127,127,127,.2)}
.ctcardt .ctp small{display:block;font-weight:400;opacity:.7;font-size:12px}
.ctcardt .ctb{margin-top:6px;font-size:14px}
.clubtools.ct2{grid-template-columns:repeat(2,minmax(0,1fr))}
.clubtools.ct4{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:420px){.clubtools.ct4{grid-template-columns:repeat(2,minmax(0,1fr))}}
#ov .ctbm3{margin:-4px auto 0}

/* BridgeScore step by step: the compass (who played), the result to confirm, the other tables; each step one screen */
.bm3w .bm3-body{flex:1;display:flex;flex-direction:column;min-height:0}
.bm3-compass{display:grid;grid-template-columns:1fr 1.2fr 1fr;grid-template-rows:repeat(3,minmax(64px,1fr));gap:8px;padding:6px 12px;flex:1;max-height:330px}
.bm3-seat{border:1px solid #d9dee3;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;color:#1b1b1b;font:inherit}
.bm3-seat b{font-size:1.7rem;line-height:1}.bm3-seat small{font-size:.78rem;color:#55606b;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.bm3-seat.ns b{color:#1f5d36}.bm3-seat.ew b{color:#a15c00}
.bm3-seat.active{background:#2a7de1;border-color:#2a7de1}.bm3-seat.active b,.bm3-seat.active small{color:#fff}
.bm3-tbl{display:flex;align-items:center;justify-content:center;background:#1f5d36;color:#fff;border-radius:10px;font-weight:800;font-size:1.1rem;text-align:center}
.bm3-tbl .red{color:#ff9a9a}
.bm3-sum{margin:4px 12px;display:flex;flex-direction:column;gap:6px}
.bm3-sum div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #eef0f2;padding:4px 2px;font-size:1rem}
.bm3-sum div span{color:#6d6d6d}.bm3-sum div.big b{font-size:1.8rem}
.bm3-others{margin:4px 12px;display:flex;flex-direction:column;gap:4px;overflow:auto}
.bm3-orow{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid #e3e7eb;border-radius:8px;padding:7px 10px;font-size:.95rem}
.bm3-orow.me{background:#e8f1fc;border-color:#2a7de1}
.bm3-key.res.made{color:#1f5d36}.bm3-key.res.down{color:#b3261e}
@media (max-height:640px){ .bm3w .bm3-key{min-height:42px} .bm3w .bm3-display{margin:6px 12px;padding:6px 10px} .bm3w .bm3-head{padding-top:6px} .bm3w .bm3-step{padding-top:6px} }
.bm3w .red,.bm3-sum .red{color:#d32f2f}
/* the BridgeScore's suits in their colours: spades black, hearts red, clubs and diamonds black and red (green and
   orange with the four-colour deck); a result key with its tricks under it */
.bmsy{font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2",sans-serif}
.bmsy.s3,.bmsy.s0{color:#111}.bmsy.s2,.bmsy.s1{color:#d32f2f}
body.four .bmsy.s0{color:#1a8a3a}body.four .bmsy.s1{color:#e07000}
.bm3-key.active .bmsy{color:#fff}
.bm3-tbl .bmsy{color:#fff}
.bm3-key.res{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.bm3-key.res small{font-size:.62em;font-weight:600;opacity:.6}

/* BridgeScore (online evening, Social Bridge) in the club's green; each suit its own colour: ♣ green, ♦ orange, ♥ red, ♠ navy */
.bmsy.s0,body.four .bmsy.s0{color:#0f7a37}.bmsy.s1,body.four .bmsy.s1{color:#e67e00}.bmsy.s2{color:#d32f2f}.bmsy.s3{color:#1b2a4a}
.bm3-key.active .bmsy,.bm3-tbl .bmsy{color:#fff!important}
.bm3-screen{background:#e3efe6}
.bm3-display{background:#fff}
.bm3-key,.bm3-seat{background:#fff;border-color:#c5d8ca}
.bm3-key.active,.bm3-seat.active{background:#1f5d36;border-color:#1f5d36}
.bm3-ok{background:#1f5d36}
.bm3-cancel{background:#fff;border-color:#c5d8ca}
.bm3-orow{background:#fff}.bm3-orow.me{background:#d4ead9;border-color:#1f5d36}
.bm3-sum div{border-bottom-color:#c5d8ca}
.rtgt td b{color:#3fb56f}
/* our own look, not a hardware device: no black case, no label on top; the screen is a plain green card */
.bm3{background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.bm3::before{display:none!important;content:none!important}
.bm3-screen{border-radius:14px;box-shadow:0 2px 14px rgba(0,0,0,.18)}
#panelContent > .bm3{padding:0!important}
@media (min-width:700px){
  body.bg-device .bm-devbar{border:0!important;border-radius:14px 14px 0 0!important;padding-top:10px!important}
  body.bg-device .bm-devbar::before{display:none!important;content:none!important}
  body.bg-device #panelContent{border:0!important;border-radius:0 0 14px 14px!important;box-shadow:0 6px 24px rgba(0,0,0,.22)}
  body.bg-device .login-box{border:0!important;border-radius:14px!important;box-shadow:0 6px 24px rgba(0,0,0,.22)}
}
/* Clubs opens full screen (its content in the middle on a wide screen) */
#ov:has(.sheet[data-ov="clubs"]){padding:0}
.sheet[data-ov="clubs"]{width:100%;max-width:none;height:100%;max-height:none;border-radius:0;box-sizing:border-box;padding:16px max(16px,calc((100% - 760px)/2)) 24px;overflow:auto}
.sheet[data-ov="clubs"] .fbar{display:none}
/* Clubs: the list of clubs fills the screen (more clubs, smaller rows); a club tapped fills it alone */
.sheet[data-ov="clubs"]{display:flex;flex-direction:column}
.clubsfs{flex:1;display:flex;flex-direction:column;gap:10px;min-height:0}
.clubsfs h2{margin:0}
.clubsfs .clubrow{margin:0}
.clubsfs.list .clubrow{flex:1 1 0;min-height:56px;max-height:220px;display:flex;align-items:stretch;padding:0 14px}
.clubsfs.list .clubname{flex:1;padding:0}
.clubsfs.list .clubname b{font-size:clamp(17px,min(calc(40vh / var(--n)),6vw),40px)}
.clubsfs.list .clubname small{font-size:clamp(12px,calc(16vh / var(--n)),18px)}
.clubsfs.one .clubrow{flex:1;display:flex;flex-direction:column;gap:12px;padding:12px 14px}
.clubsfs.one .clubname b{font-size:clamp(22px,4.5vh,36px)}
.clubsfs.one .clubrow > .row2 .btn{min-height:min(18vh,120px);font-size:clamp(18px,3vh,26px)}
.clubsfs.one .clubtools{flex:1;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:stretch;margin-top:0}
.clubsfs.one .clubtools .btn{min-height:min(16vh,120px);font-size:clamp(16px,2.6vh,22px)}
.clubsfs.one .clubarr{display:none}
.clubsfs .row2{margin-top:0}
/* Clubs: the bottom buttons larger, in the cards' colours (‹ Clubs green, Close white with a green edge) */
.clubsfs > .row2{gap:10px}
.clubsfs > .row2 .btn{min-height:58px;font-size:18px;font-weight:800;border-radius:14px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.clubsfs > .row2 .btn[data-clubopen]{background:#1f5d36!important;color:#fff!important;border:2px solid #174a2b!important}
.clubsfs > .row2 #oClose{background:#fff!important;color:#1f5d36!important;border:2px solid #1f5d36!important}
.clubsfs .clubrow > .row2 .btn[data-clubplay]{background:#1f5d36!important;color:#fff!important;border:2px solid #174a2b!important;border-radius:14px;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.18)}
/* each club its own colour */
.clubrow.cc0,:root[data-theme="dark"] .clubrow.cc0{background:linear-gradient(#ffe27a,#f2c230);border-color:#b8901a;color:#2a2108}
.clubrow.cc1,:root[data-theme="dark"] .clubrow.cc1{background:linear-gradient(#a8e0b8,#6fc48a);border-color:#2e7d4f;color:#10301c}
.clubrow.cc2,:root[data-theme="dark"] .clubrow.cc2{background:linear-gradient(#b9d7f7,#7fb2ea);border-color:#2f6fb3;color:#0e2742}
.clubrow.cc3,:root[data-theme="dark"] .clubrow.cc3{background:linear-gradient(#ffc9a8,#f59b6e);border-color:#b8582a;color:#3a1708}
.clubrow.cc4,:root[data-theme="dark"] .clubrow.cc4{background:linear-gradient(#d9c6f5,#b496e8);border-color:#6d48b0;color:#24113f}
.clubrow.cc5,:root[data-theme="dark"] .clubrow.cc5{background:linear-gradient(#a9e6e2,#62c7c0);border-color:#21837c;color:#0b2e2b}
.clubrow[class*="cc"] .muted{color:inherit;opacity:.8}
.clubrow.live,:root[data-theme="dark"] .clubrow.live{border:3px solid #1f5d36!important}

.clubsfs .clubsa{min-height:48px;border-radius:14px;background:#2a2108!important;color:#ffe27a!important;border:2px solid #b8901a!important;font-weight:800}

/* the online table's score: a scoreboard */
.tscore .tsb{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:8px;margin:4px 0 8px}
.tscore .tss{display:flex;flex-direction:column;align-items:center;padding:8px 6px 6px;border-radius:12px;background:rgba(0,0,0,.05);border:2px solid transparent}
.tscore .tss em{font-style:normal;font-weight:800;letter-spacing:.08em;font-size:13px;color:var(--sheet-muted)}
.tscore .tss em small{font-size:10px;letter-spacing:.04em;padding:1px 6px;border-radius:8px;background:var(--brass);color:var(--brass-ink);vertical-align:2px}
.tscore .tss b{font-family:var(--f-card);font-size:38px;line-height:1.1;color:var(--sheet-ink)}
.tscore .tss i{font-style:normal;font-size:11px;letter-spacing:.1em;color:var(--sheet-muted)}
.tscore .tss.me{border-color:var(--brass)}
.tscore .tss.lead{background:rgba(29,107,60,.12)}
.tscore .tss.lead b{color:var(--pos)}
.tscore .tsv{align-self:center;font-size:22px;color:var(--sheet-muted)}
.tscore .tsbar{height:10px;border-radius:6px;background:#c9a09a;overflow:hidden}
.tscore .tsbar i{display:block;height:100%;background:var(--pos);border-radius:6px 0 0 6px}
.tscore .tsl{display:flex;justify-content:space-between;align-items:baseline;margin-top:3px;font-size:14px;color:var(--sheet-ink)}
.tscore .tsl span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--sheet-muted)}
.tscore .tspt{margin-top:8px;padding-top:6px;border-top:1px solid rgba(0,0,0,.1)}
.tscore .tsf{text-align:center;font-size:12px;color:var(--sheet-muted);margin-top:6px}
:root[data-theme="dark"] .tscore .tss{background:rgba(255,255,255,.05)}
:root[data-theme="dark"] .tscore .tss.lead{background:rgba(80,190,120,.14)}
:root[data-theme="dark"] .tscore .tss.lead b{color:#7fd69d}
:root[data-theme="dark"] .tscore .tsbar{background:#6a3c38}
:root[data-theme="dark"] .tscore .tsbar i{background:#3f9e62}
:root[data-theme="dark"] .tscore .tspt{border-top-color:rgba(255,255,255,.12)}

/* the score boxes on the bar: a small table (title strip, label – value rows, a line under it) */
.box.sbox{padding:0 0 3px;min-width:150px;align-items:stretch;justify-content:flex-start;overflow:hidden;gap:0}
.box.sbox small{display:block;background:var(--felt-deep);color:var(--ink);opacity:1;text-align:center;padding:2px 8px;font-size:12px;font-weight:700;margin-bottom:2px}
.box.sbox .srow{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0 10px;font-size:18px;line-height:1.15}
.box.sbox .sl{font-size:13px;font-weight:700;letter-spacing:.04em;opacity:.65}
.box.sbox .sv{font-weight:800;font-variant-numeric:tabular-nums}
.box.sbox .sv.pos{color:var(--pos)}
.box.sbox .sv.neg{color:var(--neg)}
.box.sbox .sf{font-size:12px;padding:1px 10px 0;opacity:.7;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
@media (max-width:560px){.box.sbox{min-width:104px}.box.sbox small{font-size:10px;padding:1px 6px}.box.sbox .srow{font-size:13px;padding:0 6px;gap:6px}.box.sbox .sl{font-size:10px}.box.sbox .sf{font-size:10px;padding:0 6px}}

/* the contract box: the contract big, then the tricks of both sides (the declaring side with its target) */
.box.cbox{min-width:120px}
.box.cbox .cct{display:block;text-align:center;font-size:22px;font-weight:800;line-height:1.1;padding:1px 8px;white-space:nowrap}
.box.cbox .cct .sm{font-size:12px;font-weight:700;opacity:.65}
.box.cbox .ccs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:2px 6px 0}
.box.cbox .cc{display:flex;align-items:baseline;justify-content:center;gap:4px;border-radius:5px;background:rgba(0,0,0,.06);padding:0 4px}
.box.cbox .cc b{font-size:17px;font-variant-numeric:tabular-nums}
.box.cbox .cc i{font-style:normal;font-size:11px;opacity:.6}
.box.cbox .cc.dec{background:rgba(217,178,92,.35)}
.box.cbox .sl{font-size:11px}
@media (max-width:560px){.box.cbox{min-width:92px}.box.cbox .cct{font-size:16px}.box.cbox .cc b{font-size:13px}.box.cbox .sl,.box.cbox .cc i{font-size:9px}.box.cbox .ccs{padding:1px 3px 0;gap:2px}}

/* a compact bidding area: the auction pad and the bidding box no wider than they need (narrow screens: full width) */
#table.bidding .auction,#table.bidding .expl{width:min(100%,430px)}
#bidbox{max-width:480px}

/* a club's logo in Clubs: a small playing card before its name */
.clogo{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:1.4em;height:1.85em;border-radius:.16em;background:#fffdf6;color:#1b1b1b;border:1px solid rgba(0,0,0,.25);box-shadow:0 2px 4px rgba(0,0,0,.25);font-family:var(--f-card);line-height:.95;vertical-align:middle;margin-right:.25em}
.clogo .cr{font-size:.66em;font-weight:800}
.clogo .cs{font-size:.72em}
.clogo.r{color:#c4122f}

/* a club's logo as a picture (uploaded by its admin) */
.clogo.clogo-img{object-fit:contain;background:#fff;padding:1px;width:1.85em}

/* the lobby's robot in the lobby chat */
.cm.bot{background:rgba(217,178,92,.16);border-radius:8px;padding:2px 6px}

/* phones: the chat button stands out (bigger, its own colour), its count of new messages is not cut off, and it
   pulses while a message is unread */
@media (max-width:1099px){
  #bar .tools>#bChat{overflow:visible;font-size:19px;line-height:1;padding:6px 12px;background:#2f6fb0;color:#fff;border-color:#24578c;box-shadow:inset 0 -3px 0 rgba(0,0,0,.25)}
  #bar .tools>#bChat.gold{background:var(--brass);color:var(--brass-ink);animation:chatPulse 1.4s ease-in-out infinite}
  #bChat .cbn{top:-8px;right:-8px;min-width:20px;height:20px;line-height:20px;font-size:12px;box-shadow:0 0 0 2px #fff}
  #bar .menuwrap>#bMenu{overflow:visible;position:relative}
}
@keyframes chatPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,213,74,.9)}50%{box-shadow:0 0 0 6px rgba(255,213,74,0)}}
@media (prefers-reduced-motion:reduce){#bar .tools>#bChat.gold{animation:none}}

/* the system tables' bar: the chat button there too (phones); the system's name is under the table, so a phone leaves
   it out of the bar to make room */
#bar>#bChat.hbtn{position:relative;overflow:visible;background:#2f6fb0;color:#fff;border-color:#24578c}
#bar>#bChat.hbtn.gold{background:var(--brass);color:var(--brass-ink);animation:chatPulse 1.4s ease-in-out infinite}
@media (max-width:600px){ #bar>.box.rtsys{display:none} }

/* the administrator's list of the devices' errors */
.errlist{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto}
.errrow{background:rgba(0,0,0,.04);border-radius:8px;padding:6px 8px}
.errrow summary{cursor:pointer;display:flex;flex-direction:column;gap:2px}
.errrow summary small,.errrow>small{opacity:.7;font-size:12px;word-break:break-all}
.errrow pre{white-space:pre-wrap;font-size:11px;max-height:200px;overflow:auto;margin:6px 0}

/* your card: the privacy page and "delete my account" */
.pprivacy{margin-top:8px}
.pprivacy .btn{font-size:13px;text-decoration:none;text-align:center}

/* the coach: a summary of the play, and a tip under each mistake */
.coachsum{font-weight:700;margin:2px 0 6px}
.coachtip{font-size:13px;opacity:.85;margin:1px 0 4px 10px}

/* bidding practice with both hands */
.bphands{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.bphand{background:rgba(0,0,0,.04);border-radius:8px;padding:6px 8px;border:2px solid transparent;font-size:15px;line-height:1.45}
.bphand.turn{border-color:var(--brass)}
.bphand>b{display:block;font-size:13px;margin-bottom:2px}
.bpauc{width:100%;border-collapse:collapse;margin:6px 0;table-layout:fixed;font-size:15px}
.bpauc th,.bpauc td{text-align:center;padding:2px;border-bottom:1px solid rgba(0,0,0,.08)}
.bpauc th.us{color:var(--pos)}
.bpbox{display:flex;flex-direction:column;gap:3px;margin-top:6px}
.bpwho{font-weight:700;text-align:center}
.bprow{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}
.bprow .bpp{grid-column:1/-1}
.bpc{padding:5px 0;font-size:15px}
.bpc:disabled{opacity:.3}
.bpimp{font-size:20px;font-weight:800;margin-top:4px}

.bpchk{padding:3px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.bpchk small{display:block;opacity:.75;font-size:12px}
.bpchk.ok b:first-child{color:var(--pos)}

/* the system tables' card on a phone: short names, all six on one row */
.rtchip .rtshort{display:none}
@media (max-width:600px){
  body.homev2 .rtcard .rtrows{grid-template-columns:repeat(6,1fr);gap:4px}
  body.homev2 .rtcard .rtchip{padding:5px 2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rtchip .rtfull{display:none}.rtchip .rtshort{display:inline}
  .rtcard .rtgo{padding:8px 12px 4px}.rtcard .rtgo b{font-size:13.5px}
}

/* a window opened from the chat (the leaderboard, a player's card …) comes above the chat panel */
.ov{z-index:50}

/* the administrator's usage page */
.userow{margin:6px 0}
.userow>div:first-child{display:flex;justify-content:space-between;gap:8px}
.userow small{opacity:.7;font-size:12px}
.usebar{height:8px;border-radius:5px;background:rgba(0,0,0,.08);overflow:hidden;margin-top:3px}
.usebar i{display:block;height:100%;background:var(--pos)}
.usebar.warn i{background:#e0a040}
.usebar.bad i{background:var(--neg)}

/* the home page: the systems the robots play, as buttons beside the tiles (two tiles wide) */
body.homev2 .h2tile.h2sys{grid-column:span 2;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;cursor:default;align-items:stretch}
body.homev2 .h2tile.h2sys .rtchip{padding:6px 4px;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
/* the systems on the home page: the yellow (brass) buttons they always had */
body.homev2 .h2tile.h2sys .rtchip{background:linear-gradient(180deg,#ecc874,var(--h2-brass,#c9a227) 55%,var(--h2-brass-2,#a8841c));color:var(--h2-brass-ink,#2a1f05);border:1px solid #8a6a1c;border-radius:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 0 rgba(0,0,0,.18)}
body.homev2 .h2tile.h2sys .rtchip:hover{filter:brightness(1.05)}

/* the systems on the home page: on a wide screen the card in the right column (and the four tiles on one row on the
   left), on a narrow one the buttons beside the tiles */
@media (min-width:900px){
  body.homev2 .h2tile.h2sys{display:none}
  body.homev2 .h2tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:899px){ body.homev2 #hRobot{display:none} }
