@font-face{
  font-family:'Oswald';
  font-style:normal;
  font-weight:200 700;
  font-display:swap;
  src:url(fonts/oswald-cyr.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:'Oswald';
  font-style:normal;
  font-weight:200 700;
  font-display:swap;
  src:url(fonts/oswald-lat.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122;
}
@font-face{
  font-family:'PT Sans';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(fonts/ptsans-cyr.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:'PT Sans';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(fonts/ptsans-cyr-bold.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:'PT Sans';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(fonts/ptsans-lat.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122;
}
@font-face{
  font-family:'PT Sans';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(fonts/ptsans-lat-bold.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122;
}

:root{
  --felt:#22392b;
  --felt-deep:#14241b;
  --paper:#f1e4ca;
  --ink:#1a1614;
  --red:#b02a22;
  --brass:#c9922f;
  --slate:#46626d;
  --cw:clamp(56px,17vw,96px);
  --shadow:0 3px 8px rgba(8,14,10,.45);
  --shadow-soft:0 2px 5px rgba(8,14,10,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--felt-deep);
  color:var(--paper);
  font-family:'PT Sans',system-ui,sans-serif;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
button{font:inherit;color:inherit}
[hidden]{display:none !important}

.stage{position:fixed;inset:0;display:flex;justify-content:center}
.table{
  position:relative;
  width:100%;
  max-width:1560px;
  height:100%;
  display:grid;
  grid-template-columns:minmax(56px,15.5%) minmax(0,1fr) minmax(56px,15.5%);
  grid-template-rows:auto minmax(0,1fr) auto auto auto;
  grid-template-areas:
    "top top top"
    "left board right"
    "left board right"
    "auction auction auction"
    "status status status"
    "hand hand hand";
  gap:2px 4px;
  padding:7px 9px max(10px,env(safe-area-inset-bottom));
  overflow:hidden;
  isolation:isolate;
}
.cloth{
  position:absolute;inset:0;z-index:-3;
  background:url(assets/img/felt.jpg) center / cover;
  background-color:var(--felt);
}
.cloth::after{
  content:"";position:absolute;inset:0;
  background:rgba(34,57,43,.42);
}
.table::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(120% 85% at 50% 48%,rgba(255,255,255,0) 42%,rgba(8,16,11,.18) 76%,rgba(8,16,11,.5) 100%),
    linear-gradient(180deg,rgba(6,12,8,.16),rgba(6,12,8,0) 22%,rgba(6,12,8,0) 78%,rgba(6,12,8,.2));
}
.worn{
  position:absolute;left:50%;top:48%;width:68%;height:44%;z-index:-2;
  transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,rgba(214,232,210,.036),rgba(214,232,210,0));
  pointer-events:none;
}

/* ---------- header ---------- */
.top{
  grid-area:top;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:4px;
  min-height:calc(var(--cw)*1.9);
}

.bill{
  justify-self:start;
  width:calc(var(--cw)*1.68);
  min-width:104px;
  padding:5px 7px 6px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;
  color:var(--ink);
  border:1px solid rgba(26,22,20,.45);
  box-shadow:var(--shadow-soft);
  transform:rotate(-.5deg);
}
.bill__score{
  display:flex;align-items:baseline;justify-content:space-between;gap:2px;
  font-family:'Oswald',sans-serif;
}
.bill__team{
  font-size:8.5px;letter-spacing:.14em;font-weight:600;
  color:rgba(26,22,20,.82);
}
.bill__num{font-size:23px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.bill__dot{font-size:16px;color:rgba(26,22,20,.6);padding:0 1px}
.bill__meta{
  margin-top:4px;padding-top:4px;
  border-top:1px solid rgba(26,22,20,.25);
  display:flex;justify-content:space-between;gap:4px;
  font-family:'Oswald',sans-serif;font-size:8.5px;letter-spacing:.08em;
  color:rgba(26,22,20,.72);
}
.bill__meta b{font-weight:600}
.bill__trump i{font-style:normal;font-size:11px;margin-left:2px}

.trump-plate{
  justify-self:end;
  position:relative;
  width:calc(var(--cw)*.98);
  min-width:64px;
  min-height:calc(var(--cw)*.98);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;
  padding:8px 6px;
  background:url(assets/img/brass.jpg) center / cover;
  background-color:#c9922f;
  color:var(--ink);
  border:1px solid rgba(26,22,20,.55);
  box-shadow:var(--shadow-soft),inset 0 0 0 2px rgba(26,22,20,.14);
}
.trump-plate__label{
  font-family:'Oswald',sans-serif;font-size:9px;font-weight:600;
  letter-spacing:.18em;color:rgba(26,22,20,.78);
}
.trump-plate__suit{
  font-size:calc(var(--cw)*.34);line-height:1;
  color:rgba(26,22,20,.82);
  display:flex;align-items:center;justify-content:center;
  min-height:calc(var(--cw)*.34);
}
.trump-plate__suit svg{width:calc(var(--cw)*.34);height:calc(var(--cw)*.34);display:block}
.trump-plate__screw{
  position:absolute;width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#e5c887,#8a631c 70%,#5e4312);
  box-shadow:0 1px 1px rgba(0,0,0,.4);
}
.trump-plate__screw.tl{left:4px;top:4px}
.trump-plate__screw.tr{right:4px;top:4px}
.trump-plate__screw.bl{left:4px;bottom:4px}
.trump-plate__screw.br{right:4px;bottom:4px}

/* ---------- seats ---------- */
.seat{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:3px;
  min-width:0;
}
.seat--partner{
  grid-column:2;grid-row:1;
  align-self:start;
  z-index:2;
}
.seat--left{
  grid-area:left;
  justify-content:center;
  gap:4px;
}
.seat--right{
  grid-area:right;
  justify-content:center;
  gap:4px;
}
.seat__fan{
  display:flex;justify-content:center;align-items:flex-end;
  min-height:calc(var(--cw)*.62);
  width:100%;
}
.seat__fan--side{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:0;
  flex:0 0 auto;
}
.seat__meta{display:flex;align-items:center;gap:4px;min-width:0}
.seat--left .seat__meta,
.seat--right .seat__meta{flex-direction:column;gap:2px}

.seal{
  flex:0 0 auto;
  width:26px;height:26px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:'Oswald',sans-serif;font-size:8.5px;font-weight:600;letter-spacing:.06em;
  color:#f3e8d2;
  background:url(assets/img/seal_red.webp) center / 100% 100% no-repeat;
  filter:brightness(.9);
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}
.seal--them{
  background-image:url(assets/img/seal_slate.webp);
  filter:brightness(1.05);
}
.seal--them{color:#eef2f2}

.plate{
  display:inline-block;
  padding:3px 8px 4px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;
  color:var(--ink);
  border:1px solid rgba(26,22,20,.38);
  box-shadow:var(--shadow-soft);
  font-family:'Oswald',sans-serif;
  font-size:11px;font-weight:500;letter-spacing:.05em;
  white-space:nowrap;
  position:relative;
}
.seat__meta .plate{transform:rotate(-.4deg)}
.plate--me{min-width:62px;text-align:center}
.plate.is-active::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;
  background:var(--brass);
}
.count{
  font-family:'Oswald',sans-serif;font-size:10px;color:rgba(241,228,202,.72);
  font-variant-numeric:tabular-nums;
}

.ticks{display:flex;gap:2px;align-items:center;justify-content:center;height:8px}
.ticks span{
  width:2.5px;height:7px;
  background:rgba(201,146,47,.22);
  border-radius:.5px;
}
.ticks span.on{background:var(--brass)}

/* side fans */
.fan-card{
  width:calc(var(--cw)*.44);
  aspect-ratio:5/7;
  border-radius:3px;
  background:url(assets/img/cardback.webp) center / 100% 100% no-repeat;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(26,22,20,.4);
  flex:0 0 auto;
  transform-origin:50% 100%;
}
.seat__fan:not(.seat__fan--side) .fan-card{
  margin-left:calc(var(--cw)*-.27);
  transform:rotate(var(--rot,0deg)) translateY(var(--dy,0px));
}
.seat__fan:not(.seat__fan--side) .fan-card:first-child{margin-left:0}
.seat__fan--side .fan-card{
  width:calc(var(--cw)*.4);
  margin-top:calc(var(--cw)*-.27);
  transform:rotate(var(--rot,0deg));
}
.seat__fan--side .fan-card:first-child{margin-top:0}

/* ---------- board ---------- */
.board{
  grid-area:board;
  position:relative;
  min-height:0;
  display:flex;align-items:stretch;justify-content:center;
  padding:2px 0;
}
.trick{
  position:relative;
  width:100%;max-width:640px;
  height:100%;
  margin:0 auto;
}
.watermark{
  position:absolute;left:50%;top:44%;
  width:min(60vw,360px);height:min(60vw,360px);
  transform:translate(-50%,-50%) rotate(-8deg);
  z-index:0;pointer-events:none;
  color:rgba(222,238,218,.12);
  display:flex;align-items:center;justify-content:center;
}
.watermark svg{width:100%;height:100%;display:block;filter:blur(1.4px)}
.watermark::after{
  content:"";position:absolute;inset:-18%;
  background:radial-gradient(closest-side,rgba(222,238,218,.05),rgba(222,238,218,0));
}

.placard{
  position:absolute;left:50%;bottom:2px;z-index:4;
  transform:translateX(-50%) rotate(.6deg);
  width:calc(var(--cw)*1.06);
  aspect-ratio:5/7;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;
  border:1px solid rgba(26,22,20,.4);
  box-shadow:var(--shadow);
  color:var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;
  padding:8px 4px;
}
.placard__num{
  font-family:'Oswald',sans-serif;font-weight:600;font-size:calc(var(--cw)*.52);
  line-height:.9;font-variant-numeric:tabular-nums;
}
.placard__suit{
  display:flex;align-items:center;justify-content:center;
  font-size:calc(var(--cw)*.32);line-height:1;
}
.placard__suit svg{width:calc(var(--cw)*.34);height:calc(var(--cw)*.34)}


/* ---------- auction ---------- */
.auction{
  grid-area:auction;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;
  min-height:calc(var(--cw)*.62);
  padding:1px 0;
}
.bid-strip{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;
  gap:3px;
  min-height:28px;
  max-width:100%;
}
.tab{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  gap:3px;
  min-height:27px;
  padding:3px 8px 4px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;
  color:var(--ink);
  border:1px solid rgba(26,22,20,.38);
  box-shadow:var(--shadow-soft);
  font-family:'Oswald',sans-serif;font-size:13px;font-weight:500;
  line-height:1;letter-spacing:.02em;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .16s ease-out,box-shadow .16s ease-out;
  -webkit-user-select:none;user-select:none;
}
button.tab{appearance:none}
.tab:disabled{opacity:.32;cursor:default}
.tab:not(:disabled):active{transform:translateY(1px)}
.tab__dot{width:4px;height:4px;border-radius:50%;background:var(--red);flex:0 0 auto}
.tab__dot.them{background:var(--slate)}
.tab__suit{display:flex;align-items:center}
.tab__suit svg{width:12px;height:12px}
.tab--high::after{
  content:"";position:absolute;left:2px;right:2px;bottom:-2px;height:2px;
  background:var(--brass);
}
.tab--sel::after{
  content:"";position:absolute;left:2px;right:2px;bottom:-3px;height:2px;
  background:var(--brass);
}
.tab--sel{transform:translateY(-2px)}
.tab--pass{color:rgba(26,22,20,.78)}

.bid-controls{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%}
.bid-row{
  display:flex;align-items:stretch;justify-content:center;gap:4px;
  width:100%;max-width:430px;
}
.bid-row .tab{
  flex:1 1 0;min-width:0;padding:4px 2px 5px;font-size:14px;
}
.bid-row--suits .tab{font-size:15px}
.bid-row--suits .tab svg{width:17px;height:17px}
.tab--nt{
  font-size:8px;line-height:1.05;letter-spacing:.04em;text-align:center;
  flex:1.35 1 0;
}
.tab--nt span{display:block}

/* ---------- status ---------- */
.status{
  grid-area:status;
  display:flex;align-items:center;gap:7px;
  padding:1px 3px 2px;
  min-height:34px;
}
.status .plate{font-size:11.5px}
.prompt{
  margin:0 0 0 auto;
  font-family:'Oswald',sans-serif;
  font-size:14px;font-weight:400;letter-spacing:.06em;
  color:rgba(241,228,202,.9);
  text-align:right;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding-left:6px;
}

/* ---------- hand ---------- */
.hand{
  grid-area:hand;
  position:relative;
  height:calc(var(--cw)*1.5);
  margin-top:1px;
  min-height:0;
}
.hand .card{
  position:absolute;
  left:50%;bottom:0;
  width:var(--cw);
  transform:translate(calc(-50% + var(--x,0px)),var(--y,0px)) rotate(var(--r,0deg));
  transform-origin:50% 88%;
  transition:transform .18s ease-out,box-shadow .18s ease-out;
  cursor:default;
}
.hand .card.playable{cursor:pointer}
.hand .card.playable:hover,
.hand .card.playable:focus-visible{
  --lift:calc(var(--cw)*.14);
  transform:translate(calc(-50% + var(--x,0px)),calc(var(--y,0px) - var(--lift))) rotate(var(--r,0deg));
  box-shadow:0 9px 16px rgba(8,14,10,.5);
  outline:none;
  z-index:20;
}
.hand .card.dim{filter:brightness(.9) saturate(.95)}
.hand .card:focus-visible{
  outline:2px solid var(--brass);outline-offset:2px;
}

/* ---------- cards ---------- */
.card{
  position:relative;
  aspect-ratio:5/7;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:var(--paper);
  border:1px solid rgba(26,22,20,.55);
  border-radius:5px;
  box-shadow:var(--shadow);
  color:var(--ink);
  container-type:size;
  overflow:hidden;
  -webkit-user-select:none;user-select:none;
}
.card--red{color:var(--red)}
.card__rank{
  position:absolute;left:6cqw;top:3cqw;
  display:flex;flex-direction:column;align-items:center;line-height:.86;
  font-family:'Oswald',sans-serif;font-weight:600;
  font-size:31cqw;letter-spacing:-.01em;
}
.card__rank .pip{width:24cqw;height:24cqw;margin-top:1cqw}
.card__rank--br{
  left:auto;top:auto;right:6cqw;bottom:3cqw;
  transform:rotate(180deg);
}
.card__pip{
  position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);
  width:58cqw;height:58cqw;
  opacity:.96;
}
.card__court{
  position:absolute;left:50%;bottom:0;
  width:auto;height:97%;
  max-width:96%;
  transform:translateX(-50%);
  object-fit:contain;object-position:bottom center;
  pointer-events:none;
}
.card--back{
  background:url(assets/img/cardback.webp) center / 100% 100% no-repeat;
  border-color:rgba(26,22,20,.5);
}
.card.land{z-index:6}

.pip{display:inline-flex;align-items:center;justify-content:center}
.pip svg{width:100%;height:100%;display:block;fill:currentColor}

/* ---------- trick cards ---------- */
.trick .card{
  position:absolute;width:calc(var(--cw)*.96);
  transform:translate(-50%,-50%) rotate(var(--r,0deg));
  transform-origin:50% 60%;
}
.trick .card[data-seat="0"]{left:50%;top:72%}
.trick .card[data-seat="1"]{left:24%;top:44%}
.trick .card[data-seat="2"]{left:50%;top:20%}
.trick .card[data-seat="3"]{left:76%;top:41%}
.trick .card.winner{z-index:5}
.trick .card.sweep{z-index:7}

/* ---------- buttons, toast ---------- */
.rules-tab{
  position:absolute;right:2px;bottom:2px;
  padding:4px 7px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;color:var(--ink);
  border:1px solid rgba(26,22,20,.38);
  box-shadow:var(--shadow-soft);
  font-family:'Oswald',sans-serif;font-size:9px;letter-spacing:.1em;
  cursor:pointer;z-index:30;
  opacity:.82;
}
.toast{
  position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);
  z-index:50;
  padding:7px 13px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;color:var(--ink);
  border:1px solid rgba(26,22,20,.4);
  box-shadow:var(--shadow);
  font-family:'Oswald',sans-serif;font-size:14px;letter-spacing:.04em;
  white-space:nowrap;
}

/* ---------- round end ---------- */
.scrim{
  position:fixed;inset:0;z-index:100;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;
  padding:18px;
  background:rgba(9,17,12,.6);
  animation:fade .24s ease-out;
}
@keyframes fade{from{opacity:0}to{opacity:1}}
.roundcard{
  width:min(78vw,300px);
  aspect-ratio:5/7;
  padding:9% 8% 7%;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;
  color:var(--ink);
  border:1px solid rgba(26,22,20,.45);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
  display:flex;flex-direction:column;
  transform:rotate(-.8deg);
}
.roundcard__head{
  display:flex;align-items:baseline;justify-content:space-between;gap:6px;
  font-family:'Oswald',sans-serif;font-size:10px;letter-spacing:.14em;
  padding-bottom:5px;border-bottom:1px solid rgba(26,22,20,.4);
}
.roundcard__contract{font-size:9px;letter-spacing:.06em;color:rgba(26,22,20,.7)}
.roundcard__cols{
  display:grid;grid-template-columns:1fr 44px 44px;gap:2px;
  margin-top:7px;
  font-family:'Oswald',sans-serif;font-size:9px;letter-spacing:.12em;
  color:rgba(26,22,20,.65);
}
.roundcard__cols span:first-child{grid-column:1}
.roundcard__cols span:last-child{grid-column:3;text-align:right}
.roundcard__rows{display:flex;flex-direction:column;gap:3px;margin-top:6px}
.rrow{
  display:grid;grid-template-columns:1fr 44px 44px;gap:2px;
  font-family:'Oswald',sans-serif;
  font-size:11px;letter-spacing:.02em;
  padding-bottom:2px;border-bottom:1px solid rgba(26,22,20,.14);
}
.rrow__label{font-size:9.5px;letter-spacing:.09em;color:rgba(26,22,20,.78);align-self:center}
.rrow__v{text-align:right;font-variant-numeric:tabular-nums;font-size:14px;font-weight:500}
.rrow__v.lose{opacity:.45}
.roundcard__total{
  margin-top:auto;
  display:flex;align-items:baseline;justify-content:space-between;gap:4px;
  font-family:'Oswald',sans-serif;font-size:15px;letter-spacing:.03em;
  padding-top:6px;border-top:1px solid rgba(26,22,20,.4);
}
.roundcard__total b{font-size:34px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}
.roundcard__total .col{display:flex;flex-direction:column;align-items:center;gap:1px;flex:1}
.roundcard__total .col span{
  font-size:8.5px;letter-spacing:.14em;color:rgba(26,22,20,.65);
}
.roundcard__total .col.win b{border-bottom:2px solid var(--brass);padding-bottom:1px}
.roundcard__match{
  margin-top:6px;
  font-family:'Oswald',sans-serif;font-size:9px;letter-spacing:.1em;
  color:rgba(26,22,20,.7);text-align:center;
}
.paper-btn{
  min-width:190px;
  padding:11px 22px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;color:var(--ink);
  border:1px solid rgba(26,22,20,.45);
  box-shadow:var(--shadow);
  font-family:'Oswald',sans-serif;font-size:16px;font-weight:500;letter-spacing:.1em;
  cursor:pointer;
}
.paper-btn:active{transform:translateY(1px)}
.paper-btn:focus-visible{outline:2px solid var(--brass);outline-offset:3px}

/* rules */
.rulescard{
  width:min(88vw,410px);
  max-height:72vh;overflow:auto;
  padding:18px 18px 14px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;color:var(--ink);
  border:1px solid rgba(26,22,20,.45);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}
.rulescard__head{
  font-family:'Oswald',sans-serif;font-size:18px;letter-spacing:.16em;
  padding-bottom:7px;margin-bottom:8px;border-bottom:1px solid rgba(26,22,20,.35);
}
.rulescard p{
  margin:0 0 8px;font-size:14px;line-height:1.42;
  color:rgba(26,22,20,.9);
}

/* ---------- belote signature ---------- */
.belote-moment{
  position:fixed;inset:0;z-index:90;
  display:flex;align-items:center;justify-content:center;
  background:rgba(9,17,12,.42);
  pointer-events:none;
}
.belote-moment__pair{
  position:relative;
  width:calc(var(--cw)*3.2);
  height:calc(var(--cw)*2.5);
}
.belote-moment__pair .card{
  position:absolute;left:50%;top:50%;
  width:calc(var(--cw)*1.5);
  transform-origin:50% 60%;
  animation:beloteSlide .42s cubic-bezier(.2,.75,.3,1.08) both;
}
.belote-moment__pair .card:first-child{--a:0;margin-left:calc(var(--cw)*-.55);transform:translate(-50%,-50%) rotate(-7deg)}
.belote-moment__pair .card:last-child{--a:1;margin-left:calc(var(--cw)*.55);transform:translate(-50%,-50%) rotate(5deg)}
@keyframes beloteSlide{
  from{opacity:0}
  to{opacity:1}
}
.belote-moment__pin{
  position:absolute;left:50%;top:50%;
  width:calc(var(--cw)*2.9);height:4px;
  transform:translate(-50%,-50%) rotate(-6deg) scaleX(.2);
  background:linear-gradient(180deg,#e0bb6a,#a8751c 70%,#7d5612);
  border-radius:2px;
  box-shadow:0 1px 2px rgba(0,0,0,.5);
  animation:pinIn .3s .34s cubic-bezier(.2,.8,.3,1.1) both;
}
@keyframes pinIn{from{transform:translate(-50%,-50%) rotate(-6deg) scaleX(.2);opacity:0}
  to{transform:translate(-50%,-50%) rotate(-6deg) scaleX(1);opacity:1}}
.belote-moment__word{
  position:absolute;left:50%;top:calc(50% + var(--cw)*.86);
  transform:translate(-50%,-50%) rotate(-6deg) scale(1.45);
  font-family:'Oswald',sans-serif;font-weight:700;
  font-size:calc(var(--cw)*.72);line-height:1;letter-spacing:.05em;
  color:var(--ink);
  text-shadow:0 1px 0 rgba(241,228,202,.25);
  opacity:0;
  animation:stampIn .26s .54s cubic-bezier(.3,.8,.35,1) both;
  white-space:nowrap;
}
@keyframes stampIn{
  0%{opacity:0;transform:translate(-50%,-50%) rotate(-9deg) scale(1.7)}
  60%{opacity:.95;transform:translate(-50%,-50%) rotate(-5deg) scale(.97)}
  100%{opacity:.92;transform:translate(-50%,-50%) rotate(-6deg) scale(1)}
}
.belote-moment--re .belote-moment__word{
  font-size:calc(var(--cw)*.5);
  animation:stampInHard .28s .5s cubic-bezier(.3,.8,.35,1) both;
}
@keyframes stampInHard{
  0%{opacity:0;transform:translate(-50%,-50%) rotate(-12deg) scale(2.1)}
  55%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(.93)}
  100%{opacity:.95;transform:translate(-50%,-50%) rotate(-7deg) scale(1)}
}
.belote-stamp{
  position:absolute;left:50%;top:46%;
  transform:translate(-50%,-50%) rotate(-7deg);
  z-index:60;
  font-family:'Oswald',sans-serif;font-weight:700;
  font-size:calc(var(--cw)*.62);letter-spacing:.06em;
  color:rgba(241,228,202,.94);
  text-shadow:0 2px 3px rgba(0,0,0,.35);
  animation:smallStamp .3s cubic-bezier(.3,.8,.35,1) both;
  pointer-events:none;
}
@keyframes smallStamp{
  from{opacity:0;transform:translate(-50%,-50%) rotate(-11deg) scale(1.6)}
  to{opacity:1;transform:translate(-50%,-50%) rotate(-7deg) scale(1)}
}

/* ---------- wide ---------- */
@media (min-width:820px){
  .trick .card{width:calc(var(--cw)*1.12)}
  .placard{width:calc(var(--cw)*1.3)}
  .placard__num{font-size:calc(var(--cw)*.58)}
  .bid-row{max-width:680px}
  .seat__fan--side .fan-card{width:calc(var(--cw)*.46)}
  .fan-card{filter:brightness(1.1) saturate(1.1)}
  .table{
    grid-template-columns:minmax(150px,19%) minmax(0,1fr) minmax(150px,19%);
    grid-template-rows:auto minmax(0,1fr) auto auto auto;
    padding:16px 34px 18px;
    gap:6px 18px;
  }
  .bill{width:190px;padding:8px 11px 9px}
  .bill__num{font-size:32px}
  .bill__team{font-size:10px}
  .bill__meta{font-size:10px}
  .trump-plate{width:104px;min-height:96px}
  .trump-plate__label{font-size:10px}
  .top{min-height:118px}
  .seat--partner .seat__fan{min-height:64px}
  .seat--left,.seat--right{justify-content:center}
  .seat--left .seat__meta,.seat--right .seat__meta{flex-direction:row}
  .seat__fan--side .fan-card{width:calc(var(--cw)*.34)}
  .fan-card{width:calc(var(--cw)*.5)}
  .prompt{font-size:17px}
  .status{min-height:42px;padding:2px 8px}
  .status .seal{width:31px;height:31px;font-size:9px}
  .plate{font-size:13px;padding:4px 11px 5px}
  .hand{height:calc(var(--cw)*1.55)}
  .rules-tab{right:14px;bottom:10px;font-size:10px}
  .auction{min-height:84px}
  .bid-row{max-width:520px}
  .bid-row .tab{font-size:16px;min-height:32px}
  .bid-strip .tab{font-size:14px;min-height:30px}
}
@media (min-width:1200px){
  .table{grid-template-columns:minmax(190px,22%) minmax(0,1fr) minmax(190px,22%)}
  .watermark{width:min(44vw,430px);height:min(44vw,430px)}
  .trick .card{width:calc(var(--cw)*1.15)}
}
@media (max-height:700px){
  :root{--cw:clamp(44px,min(17vw,13.5vh),80px)}
  .top{min-height:calc(var(--cw)*1.7)}
  .status{min-height:30px}
  .auction{min-height:calc(var(--cw)*.5)}
  .hand{height:calc(var(--cw)*1.42)}
}
@media (max-height:560px){
  .bill__meta{display:none}
  .trump-plate__label{display:none}
  .seat__fan{min-height:calc(var(--cw)*.4)}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* ---------- additions ---------- */
.card__rank--ten{font-size:25cqw;letter-spacing:-.04em}
.plate .count{font-size:9px;color:rgba(26,22,20,.5);margin-left:2px;letter-spacing:0}
.tab__suit.red{color:var(--red)}
.tab__suit svg{fill:currentColor}
.tab--nt-inline{font-size:8px;letter-spacing:.04em;vertical-align:1px}
.bid-strip{
  overflow:visible;
  flex-wrap:wrap;
  justify-content:center;
  width:100%;
  padding:0 4px 3px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.bid-strip::-webkit-scrollbar{display:none}
.bid-controls .tab__suit svg{width:18px;height:18px}
.watermark{transition:opacity .35s ease}
.trump-band{
  position:absolute;left:0;top:50%;
  width:100%;height:34px;
  transform:translate(-110%,-50%);
  display:flex;align-items:center;justify-content:center;
  background:rgba(18,33,24,.92);
  border-top:2px solid var(--brass);
  border-bottom:2px solid var(--brass);
  color:var(--paper);
  font-family:'Oswald',sans-serif;font-size:12px;letter-spacing:.2em;
  z-index:8;pointer-events:none;
  white-space:nowrap;
}
.roundcard__total .col{min-width:0}
.roundcard__colon{font-family:'Oswald',sans-serif;font-size:30px;font-weight:500;line-height:1;align-self:flex-end;padding-bottom:2px;color:rgba(26,22,20,.7)}
@media (min-width:820px){
  .bid-strip{justify-content:center}
}
.seat__fan:not(.seat__fan--side) .fan-card{margin-left:calc(var(--cw)*-.13)}
.seat__fan--side .fan-card{margin-top:calc(var(--cw)*-.11)}
.rules-tab{left:9px;top:calc(var(--cw)*1.66);right:auto;bottom:auto}
@media (min-width:820px){.rules-tab{left:34px;top:146px}}
.watermark svg{fill:currentColor}
.tab--nt{flex-direction:column;justify-content:center;gap:0;line-height:1.15}
.plate.is-active::after{height:3px;bottom:-4px;left:-2px;right:-2px}
.ticks{height:6px;margin-top:2px}
.ticks span{width:2px;height:5px}
.status .ticks{margin-top:5px;margin-left:2px}
.sealbox{display:flex;flex-direction:column;align-items:center;gap:2px}
.seat__meta{gap:6px}
.seat--left .seat__meta,.seat--right .seat__meta{gap:4px}
.status .ticks{margin-top:0;margin-left:0}
.bid-strip{justify-content:center}
.rules-tab{font-size:10px;padding:6px 8px;min-height:32px}
@media (min-width:820px) and (max-height:800px){
  :root{--cw:86px}
  .top{min-height:96px}
  .bill{width:168px}
  .bill__num{font-size:28px}
  .trump-plate{width:88px;min-height:80px}
  .auction{min-height:72px}
  .hand{height:calc(var(--cw)*1.42)}
  .status{min-height:36px}
  .rules-tab{top:118px}
}
@media (max-height:620px){
  .roundcard{width:min(58vw,240px);aspect-ratio:auto;padding:14px 16px}
  .roundcard__total b{font-size:28px}
  .paper-btn{min-width:150px;padding:8px 16px;font-size:14px}
}
@media (max-height:520px){
  .table{padding-top:4px;padding-bottom:4px}
  .top{min-height:76px}
  .seat--partner .seat__meta{gap:3px}
  .seat--partner .plate{font-size:9px;padding:2px 6px}
  .seat--partner .seal{width:20px;height:20px;font-size:7px}
  .seat__fan{min-height:40px}
  .bill__meta{display:none}
  .auction{min-height:56px}
  .hand{height:calc(var(--cw)*1.32)}
  .status{min-height:28px}
  .status .plate{font-size:10px}
  .prompt{font-size:12px}
  .rules-tab{top:70px}
}
.top{display:flex;justify-content:space-between;align-items:flex-start;grid-template-columns:none}
@media (min-width:820px){
  .rules-tab{left:34px;bottom:12px;top:auto}
}
@media (max-height:520px){
  :root{--cw:clamp(40px,11.5vh,58px)}
  .bill{width:116px;padding:4px 6px 5px}
  .bill__num{font-size:20px}
  .bill__team{font-size:7.5px}
  .trump-plate{width:58px;min-height:56px;padding:4px}
  .trump-plate__label{display:none}
  .seat--partner .seat__fan{min-height:0}
  .seat--partner .seat__meta{gap:3px}
  .seat--partner .plate{font-size:9px;padding:2px 6px}
  .seat--partner .seal{width:19px;height:19px;font-size:6.5px}
  .seat--left .seat__meta,.seat--right .seat__meta{gap:2px}
  .seat--left .plate,.seat--right .plate{font-size:9px;padding:2px 5px}
  .seat--left .seal,.seat--right .seal{width:19px;height:19px;font-size:6.5px}
  .auction{min-height:44px}
  .bid-row{gap:3px}
  .bid-row .tab{min-height:24px;font-size:12px;padding:2px 2px 3px}
  .bid-strip .tab{min-height:22px;font-size:11px;padding:2px 5px 3px}
  .hand{height:calc(var(--cw)*1.38)}
  .status{min-height:26px;gap:5px}
  .status .plate{font-size:10px;padding:2px 6px}
  .prompt{font-size:12px}
  .rules-tab{top:62px;left:8px;bottom:auto;font-size:9px;padding:4px 6px;min-height:26px}
}
@media (max-height:520px){
  .top{min-height:50px}
  .trump-plate{width:52px;min-height:48px}
  .seat--partner .fan-card{width:calc(var(--cw)*.36)}
  .seat--partner .seat__fan{min-height:22px}
  .auction{min-height:50px}
  .hand{height:calc(var(--cw)*1.3)}
  .status{min-height:24px}
}
@media (min-width:640px) and (max-height:520px){
  .bid-controls{flex-direction:row;align-items:flex-end;gap:8px}
  .bid-row{max-width:none;flex:1}
  .bid-row .tab{min-height:26px;font-size:12px;padding:3px 2px 4px}
}
@media (max-height:520px){
  .status .seal{width:20px;height:20px;font-size:7px}
  .status{min-height:26px}
}

/* rules as a small pinned page, not a blocking modal */
.rules-pop{
  position:fixed;inset:0;z-index:100;
  display:flex;align-items:flex-start;justify-content:flex-start;
  padding:10px;
  pointer-events:none;
}
.rulescard{
  pointer-events:auto;
  width:min(86vw,390px);
  max-height:42vh;
  overflow:auto;
  padding:12px 14px 12px;
  background:url(assets/img/paper.jpg) center / cover;
  background-color:#f1e4ca;color:var(--ink);
  border:1px solid rgba(26,22,20,.5);
  box-shadow:0 10px 28px rgba(0,0,0,.45);
  animation:rulesIn .22s ease-out both;
}
@keyframes rulesIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.rulescard__head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-family:'Oswald',sans-serif;font-size:16px;letter-spacing:.16em;
  padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid rgba(26,22,20,.35);
}
.rulescard__x{
  appearance:none;background:none;border:1px solid rgba(26,22,20,.35);
  padding:3px 7px;font-family:'Oswald',sans-serif;font-size:9px;letter-spacing:.08em;
  color:rgba(26,22,20,.72);cursor:pointer;
}
.rulescard p{margin:0 0 7px;font-size:13px;line-height:1.38;color:rgba(26,22,20,.92)}
.rulescard__ok{width:100%;min-width:0;margin-top:3px;padding:7px 10px;font-size:12px;letter-spacing:.08em}
@media (min-width:820px){
  .rules-pop{padding:16px 34px}
  .rulescard{width:380px;max-height:58vh}
  .rulescard p{font-size:14px}
}
@media (max-height:520px){
  .rulescard{width:min(42vw,300px);max-height:46vh;padding:9px 11px}
  .rulescard p{font-size:11px;line-height:1.3;margin-bottom:4px}
  .rulescard__head{font-size:13px;padding-bottom:4px;margin-bottom:5px}
  .rulescard__ok{padding:5px 8px;font-size:11px}
}
/* full fan counts */
.seat__fan--side .fan-card{width:calc(var(--cw)*.34);margin-top:calc(var(--cw)*-.18)}
@media (min-width:820px){
  .seat__fan--side .fan-card{width:calc(var(--cw)*.34);margin-top:calc(var(--cw)*-.18)}
}
@media (max-height:520px){
  .seat__fan--side .fan-card{width:calc(var(--cw)*.32);margin-top:calc(var(--cw)*-.18)}
}
/* smaller rules page, clear of the trick centre */
.rulescard{width:min(64vw,320px);max-height:34vh;padding:10px 12px 10px}
.rulescard p{font-size:12.5px;line-height:1.32;margin-bottom:6px}
.rulescard__head{font-size:14px;padding-bottom:5px;margin-bottom:5px}
.rulescard__ok{padding:6px 9px;font-size:11.5px}
@media (min-width:820px){
  .rulescard{width:320px;max-height:46vh}
  .rulescard p{font-size:13px}
}
@media (max-width:819px){
  .bid-strip .tab{font-size:11.5px;padding:3px 5px 4px;min-height:24px;gap:2px}
  .bid-strip .tab__dot{width:3px;height:3px}
  .bid-strip .tab__suit svg{width:10px;height:10px}
  .bid-row .tab{min-height:33px;font-size:15px;padding:5px 2px 6px}
  .bid-row--suits .tab{min-height:38px}
  .bid-row--suits .tab svg{width:19px;height:19px}
  .tab--nt{font-size:8.5px}
}
/* compact centred trick diamond */
.board{overflow:visible}
.trick{
  position:absolute;left:50%;top:49%;
  width:min(calc(var(--cw)*3.4),100%);
  height:min(calc(var(--cw)*4.6),100%);
  transform:translate(-50%,-50%);
  margin:0;
}
.trick .card[data-seat="0"]{left:50%;top:74%}
.trick .card[data-seat="1"]{left:24%;top:50%}
.trick .card[data-seat="2"]{left:50%;top:24%}
.trick .card[data-seat="3"]{left:76%;top:47%}
.watermark{left:50%;top:49%;width:min(52vw,340px);height:min(52vw,340px)}
/* warmer, worn cloth */
.worn{
  background:
    radial-gradient(closest-side,rgba(255,231,186,.05),rgba(255,231,186,0) 72%),
    radial-gradient(closest-side,rgba(222,238,218,.03),rgba(222,238,218,0));
}
.table::before{
  background:
    radial-gradient(72% 52% at 50% 30%,rgba(255,224,168,.045),rgba(255,224,168,0) 62%),
    radial-gradient(120% 85% at 50% 48%,rgba(255,255,255,0) 42%,rgba(8,16,11,.18) 76%,rgba(8,16,11,.5) 100%),
    linear-gradient(180deg,rgba(6,12,8,.16),rgba(6,12,8,0) 22%,rgba(6,12,8,0) 78%,rgba(6,12,8,.2));
}
/* fanned side rails */
.seat__fan--side .fan-card{width:calc(var(--cw)*.38);margin-top:calc(var(--cw)*-.15);transform:translateX(var(--dx,0px)) rotate(var(--rot,0deg))}
/* no odd tab lift, keep underline */
.tab--sel{transform:none}
/* closer trump mark on the bill */
.bill__trump{display:inline-flex;align-items:center;gap:3px;border-bottom:1px solid rgba(201,146,47,.75);padding-bottom:1px}
.bill__trump i{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center}
.bill__trump i svg{width:14px;height:14px}

/* aged edges: paper objects and cards keep a soft worn lip, never a bevel */
.card{
  box-shadow:
    inset 0 0 0 1px rgba(26,22,20,.05),
    inset 0 0 11px rgba(92,62,30,.16),
    var(--shadow);
}
.bill,.plate,.tab,.placard,.toast{
  box-shadow:
    inset 0 0 9px rgba(92,62,30,.16),
    var(--shadow-soft);
}
.roundcard,.rulescard{
  box-shadow:
    inset 0 0 16px rgba(92,62,30,.2),
    0 16px 40px rgba(0,0,0,.5);
}
.paper-btn{
  box-shadow:
    inset 0 0 10px rgba(92,62,30,.18),
    var(--shadow);
}

/* central worn diamond motif from the reference cloth */
.table-mark{
  position:absolute;left:50%;top:49%;
  width:min(88vw,calc(var(--cw)*5.2));
  max-width:680px;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  background:url(assets/img/table_diamond.png) center / contain no-repeat;
  opacity:.5;
  mix-blend-mode:soft-light;
  z-index:-1;
  pointer-events:none;
}
@media (min-width:820px){
  .table-mark{top:50%;width:min(46vw,calc(var(--cw)*5.2));opacity:.55}
}

/* richer aged parchment for the paper panels (the cards keep the lighter card paper) */
.bill,.plate,.tab,.placard,.rules-tab,.toast,.roundcard,.rulescard,.paper-btn{
  background-image:url(assets/img/paper_panel.jpg);
}
.bill{border-radius:4px}
.plate{border-radius:3px}
.tab{border-radius:4px}
.placard{border-radius:5px}
.rules-tab{border-radius:3px}
.toast{border-radius:4px}
.roundcard{border-radius:6px}
.rulescard{border-radius:5px}
.paper-btn{border-radius:4px}
.bill{border-color:rgba(26,22,20,.52)}
.plate{border-color:rgba(26,22,20,.48)}
.tab{border-color:rgba(26,22,20,.47)}
.bill__meta{border-top-color:rgba(26,22,20,.34)}
.plate .count{font-size:10.5px;color:rgba(26,22,20,.78);font-weight:700;margin-left:3px;letter-spacing:0}
.seat--left .plate .count,.seat--right .plate .count{font-size:10px}

/* make the worn central diamond read as a faint lighter motif in the cloth */
.table-mark{opacity:.19;mix-blend-mode:normal;filter:blur(.9px)}
@media (min-width:820px){.table-mark{opacity:.24}}

/* ---------- reference pass: Russian table, aged paper, brass ---------- */
:root{
  --felt:#1e3124;
  --felt-deep:#0f1a13;
  --paper:#ecdcbe;
  --ink:#1a1614;
  --red:#b02a22;
  --brass:#c9922f;
  --slate:#46626d;
}
body{background:var(--felt-deep)}
.cloth{
  background-color:var(--felt);
  filter:saturate(.84) brightness(.8) contrast(1.03);
}
.cloth::after{background:rgba(16,29,20,.3)}
.table::before{
  background:
    radial-gradient(88% 62% at 50% 30%,rgba(220,234,206,.05),rgba(220,234,206,0) 60%),
    radial-gradient(120% 85% at 50% 48%,rgba(255,255,255,0) 34%,rgba(6,12,8,.24) 70%,rgba(5,10,7,.6) 100%),
    linear-gradient(180deg,rgba(4,9,6,.3),rgba(4,9,6,0) 20%,rgba(4,9,6,0) 76%,rgba(4,9,6,.34));
}
.worn{background:radial-gradient(closest-side,rgba(226,236,212,.05),rgba(226,236,212,0) 70%)}
.table-mark{opacity:.2;filter:blur(.35px)}

/* paper, warmed toward the reference cream */
.card{background-color:#faf0dc;background-blend-mode:multiply;border-color:rgba(26,22,20,.58)}
.bill,.plate,.tab,.placard,.rules-tab,.toast,.roundcard,.rulescard,.paper-btn{
  background-color:#f0e2c8;
  background-blend-mode:multiply;
  color:var(--ink);
}
.card--back{
  background-color:transparent;
  background-blend-mode:normal;
  filter:saturate(.72) brightness(.82) contrast(1.04);
}

/* scoreboard, as on the reference: one line of score, trump below */
.bill{
  width:calc(var(--cw)*2.02);
  min-width:118px;
  padding:6px 8px 7px;
  border-color:rgba(26,22,20,.55);
  transform:rotate(-.7deg);
}
.bill__score{display:flex;align-items:baseline;justify-content:space-between;gap:1px}
.bill__team{
  font-family:'Oswald',sans-serif;
  font-size:10px;letter-spacing:.04em;font-weight:700;
  color:#241c14;
}
.bill__num{font-size:calc(var(--cw)*.4);line-height:.96;font-weight:700;color:#241c14}
.bill__dot{font-size:19px;color:rgba(26,22,20,.7)}
.bill__meta{
  margin-top:3px;padding-top:4px;
  display:flex;align-items:center;justify-content:space-between;gap:4px;
  font-family:'Oswald',sans-serif;font-size:8.5px;letter-spacing:.05em;
  color:rgba(26,22,20,.78);
  border-top-color:rgba(26,22,20,.36);
}
.bill__trump{
  display:inline-flex;align-items:center;gap:3px;
  border-bottom:0;padding-bottom:0;
}
.bill__trump em{font-style:normal;font-weight:600;letter-spacing:.02em;color:rgba(26,22,20,.9)}
.bill__trump i{width:15px;height:15px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.bill__trump i svg{width:15px;height:15px}
.bill__to{white-space:nowrap;letter-spacing:.06em;color:rgba(26,22,20,.62);font-weight:600}

/* brass trump plaque, wider like the reference */
.trump-plate{
  width:calc(var(--cw)*1.5);
  min-width:92px;
  min-height:calc(var(--cw)*.98);
  padding:6px 7px;
  background-color:#b98833;
  background-blend-mode:multiply;
  border:1px solid rgba(26,22,20,.62);
  border-radius:3px;
  box-shadow:inset 0 0 0 2px rgba(26,22,20,.16),inset 0 0 16px rgba(60,36,6,.28),var(--shadow-soft);
}
.trump-plate__label{
  font-size:calc(var(--cw)*.16);
  letter-spacing:.08em;font-weight:700;
  color:rgba(22,17,12,.9);
}
.trump-plate__suit{min-height:calc(var(--cw)*.4);font-size:calc(var(--cw)*.46)}
.trump-plate__suit svg{width:calc(var(--cw)*.46);height:calc(var(--cw)*.46)}
.trump-plate__none{
  font-family:'Oswald',sans-serif;font-weight:600;line-height:1;
  font-size:calc(var(--cw)*.4);
  color:rgba(22,17,12,.72);
}

/* team seals, Cyrillic, heavier like wax */
.seal{
  width:30px;height:30px;
  font-family:'Oswald',sans-serif;font-weight:700;
  font-size:9.5px;letter-spacing:.01em;
  color:#f7ebd4;
  filter:none;
  text-shadow:0 1px 1px rgba(0,0,0,.45),0 -1px 0 rgba(255,255,255,.14);
}
.seal--them{color:#eff2ef}
.seal--us{color:#f9ead2}

/* name plates */
.plate{
  font-weight:600;font-size:12px;letter-spacing:.02em;
  color:#201811;
  padding:3px 9px 4px;
  border-color:rgba(26,22,20,.5);
}
.plate--me{min-width:70px}
.plate .count{
  font-size:10.5px;font-weight:600;
  color:rgba(26,22,20,.66);margin-left:3px;
}
.seat--left .plate .count,.seat--right .plate .count{font-size:10px}

/* prompt strip */
.prompt{
  font-weight:600;font-size:15px;letter-spacing:.03em;
  color:rgba(247,235,212,.97);
}

/* bids and buttons */
.tab{font-weight:600;letter-spacing:.01em}
.tab--nt{font-size:9px;line-height:1.05;letter-spacing:.02em}
.tab--nt-inline{font-size:8px;letter-spacing:.02em}
.tab__dot{width:4px;height:4px}

/* round card, Russian */
.roundcard__cols{font-weight:600;letter-spacing:.1em}
.rrow__label{letter-spacing:.06em}
.roundcard__total .col span{letter-spacing:.1em}

/* watermark suit over the cloth */
.watermark{color:rgba(222,238,218,.13);filter:none}
.watermark svg{filter:blur(.8px)}

@media (min-width:820px){
  .bill{width:calc(var(--cw)*2.2);padding:8px 11px 9px}
  .bill__team{font-size:11px}
  .bill__num{font-size:34px}
  .bill__meta{font-size:9.5px}
  .trump-plate{width:calc(var(--cw)*1.7);min-height:calc(var(--cw)*1.02)}
  .plate{font-size:13px}
  .prompt{font-size:17px}
}
@media (max-height:520px){
  .bill{width:132px;padding:4px 6px 5px}
  .bill__num{font-size:21px}
  .bill__team{font-size:8px}
  .bill__meta{font-size:7px;padding-top:2px;margin-top:2px}
  .trump-plate{width:78px;min-height:50px;padding:3px 4px}
  .trump-plate__label{font-size:8px}
  .trump-plate__suit{min-height:18px}
  .trump-plate__suit svg{width:19px;height:19px}
  .seal{width:21px;height:21px;font-size:7px}
  .plate{font-size:9.5px;padding:2px 5px}
  .prompt{font-size:12px}
}

/* keep the scorebill and brass plate above the partner fan */
.top{position:relative;z-index:6}
.seat--partner{z-index:1}
.seat--partner .fan-card{width:calc(var(--cw)*.4);margin-left:calc(var(--cw)*-.18)}
.seat--partner .fan-card:first-child{margin-left:0}
@media (max-width:819px){
  .seat--partner .fan-card{width:calc(var(--cw)*.38);margin-left:calc(var(--cw)*-.17)}
  .seat__fan:not(.seat__fan--side) .fan-card{margin-left:calc(var(--cw)*-.17)}
  .seat__fan:not(.seat__fan--side) .fan-card:first-child{margin-left:0}
}

/* scorebill clear of the partner seal */
.bill{width:calc(var(--cw)*1.8);min-width:112px;padding:5px 7px 6px}
.bill__num{font-size:calc(var(--cw)*.36)}
.bill__team{font-size:9px}
.bill__meta{font-size:8px;gap:3px}
.bill__trump i{width:13px;height:13px}
.bill__trump i svg{width:13px;height:13px}
.bill__to{font-size:7.5px}
.trump-plate{background-color:#d3a24a}
.card{background-color:#f2e8e4}
@media (min-width:820px){
  .bill{width:calc(var(--cw)*1.9)}
  .bill__num{font-size:30px}
}

.bill{width:calc(var(--cw)*1.72);min-width:108px}
.bill__num{font-size:calc(var(--cw)*.35)}
.watermark{
  width:min(30vw,240px);height:min(30vw,240px);
  color:rgba(219,238,214,.11);
}
.watermark svg{filter:blur(1.2px)}

/* room for three-digit scores; partner seal sits below the bill */
.bill{width:calc(var(--cw)*1.92);min-width:120px}
.seat--partner .seat__meta{position:relative;z-index:3;margin-top:12px}
.seat--partner .seat__fan{position:relative;z-index:1}

/* tone is baked into the assets, so no per-frame blending or full-screen filters */
.cloth{filter:none}
.card{background-blend-mode:normal}
.bill,.plate,.tab,.placard,.rules-tab,.toast,.roundcard,.rulescard,.paper-btn{background-blend-mode:normal}
.card--back{filter:none}
.watermark svg{filter:none}
.table-mark{filter:none}

/* the partner fan and plate sit just below the score row, as in the reference */
.seat--partner{transform:translateY(22px)}
.seat--partner .seat__meta{margin-top:6px}
@media (max-height:520px){
  .seat--partner{transform:translateY(14px)}
}
@media (max-width:340px){
  .seat--partner .fan-card{width:calc(var(--cw)*.34);margin-left:calc(var(--cw)*-.2)}
  .seat--partner .fan-card:first-child{margin-left:0}
}
