/* Table HUD, direction D: today's tray model at production polish.
   Phone 390x844 (html.phone) and desktop 1440x900 (html.desk). World anchors match the fallback crop set in table.js. */

:root {
  --wood-top: #e8ac70; --wood-mid: #d9965a; --wood-low: #c98549; --rim: #a86a3e; --groove: rgba(84, 42, 12, .2);
  --edge: #a86a3e; --edge-press: #6e3f1c; --gold-press: #8a5806;
  --sx: 195px; --sy: 448px; /* stump centre */
}
html.desk { --sx: 720px; --sy: 392px; }

/* ---------- world markers (where the live table puts each animal) ---------- */
.mk-l { left: 20px; top: 270px; width: 112px; height: 112px; }
.mk-t { left: 148px; top: 214px; width: 96px; height: 100px; }
.mk-r { left: 258px; top: 270px; width: 112px; height: 112px; }
.mk-you { left: 143px; top: 570px; width: 104px; height: 116px; }
html.desk .mk-l { left: 468px; top: 236px; width: 124px; height: 124px; }
html.desk .mk-t { left: 664px; top: 176px; width: 112px; height: 112px; }
html.desk .mk-r { left: 848px; top: 236px; width: 124px; height: 124px; }
html.desk .mk-you { left: 652px; top: 520px; width: 136px; height: 132px; }
html.phone body[data-state="lifted"] .mk-you { top: 522px; }

/* ---------- top chrome ---------- */
.key44 { position: absolute; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(#fffaf0, #f3e4c8); border: 3px solid var(--edge); color: var(--ink);
  box-shadow: 0 4px 0 var(--edge), 0 10px 16px -10px rgba(40, 20, 5, .6); transition: transform .08s var(--ease-out), box-shadow .08s; }
.key44:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-press); }
.key44 .i { width: 22px; height: 22px; }
.k-menu { left: 12px; }
.tb.chat .badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--dot); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
html.desk .key44 { top: 16px; } html.desk .k-menu { left: 16px; }
html.desk .key44 .key { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); }

/* MATCH POINT: a short red pennant, faces first */
.mp { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 22px 0 10px;
  background: linear-gradient(#e2554f, #c33a35); border: 3px solid #7c1f1c; border-radius: 10px; box-shadow: 0 3px 0 #7c1f1c, 0 10px 16px -10px rgba(60, 10, 5, .7);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.mp .faces { display: flex; }
.mp .faces .face { width: 26px; height: 26px; border: 2px solid #fff3dc; margin-right: -7px; position: relative; }
.mp .faces .you { position: relative; display: flex; }
.mp .faces .you::after { content: 'YOU'; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); font: 700 8.5px/1 'Fredoka'; padding: 1px 3px; border-radius: 4px; background: var(--gold); color: var(--ink); }
.mp .disp { font-size: 16px; -webkit-text-stroke-width: 3px; text-shadow: 0 2px 0 #5c1614; -webkit-text-stroke-color: #5c1614; margin-left: 8px; white-space: nowrap; }
html.desk .mp { top: 18px; }

/* ---------- seat tags over the animals ---------- */
.seat { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 14px;
  background: rgba(255, 248, 234, .96); border: 2.5px solid var(--edge); box-shadow: 0 3px 0 var(--edge), 0 8px 12px -8px rgba(40, 20, 5, .5); white-space: nowrap; font-size: 13px; font-weight: 700; }
.seat .nm { margin-right: 2px; }
.seat .st { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; }
.seat .st .i { width: 14px; height: 14px; }
.seat .fx { width: 18px; height: 18px; margin-left: 1px; }
.seat.turn { border-color: var(--turn); box-shadow: 0 3px 0 #a8501a, 0 0 0 4px rgba(224, 120, 46, .28); }
.seat.folded { opacity: .62; background: rgba(240, 228, 206, .9); box-shadow: none; transform: translate(-50%, -50%) translateY(3px); }
.seat.folded .fd { color: var(--muted); font-weight: 600; }
.seat.pick { border: 2.5px dashed var(--gold-dark); background: #fff7d6; box-shadow: 0 0 0 4px rgba(255, 210, 74, .45); }
.seat .next { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); color: var(--turn); }
.seat .next .i { width: 16px; height: 16px; }
.seat .mini-clock { width: 18px; height: 18px; margin-left: -3px; }
html.phone .s-l { left: 8px; top: 258px; transform: translateY(-50%); } .s-t { left: 195px; top: 202px; } html.phone .s-r { left: auto; right: 8px; top: 258px; transform: translateY(-50%); }
html.phone .seat.folded.s-t { transform: translate(-50%, -50%) translateY(3px); }
html.desk .s-l { left: 530px; top: 222px; } html.desk .s-t { left: 720px; top: 162px; } html.desk .s-r { left: 910px; top: 222px; }
html.desk .seat { height: 30px; font-size: 14px; }

/* target rings at the feet of animals you may pick */
.ring { position: absolute; border: 3px dashed var(--gold); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 210, 74, .25); animation: ringPulse 1.6s ease-in-out infinite; }
.ring.l { left: 26px; top: 360px; width: 100px; height: 30px; } .ring.r { left: 264px; top: 360px; width: 100px; height: 30px; }
html.desk .ring.l { left: 474px; top: 340px; width: 112px; height: 32px; } html.desk .ring.r { left: 854px; top: 340px; width: 112px; height: 32px; }
@keyframes ringPulse { 50% { transform: scale(1.06); opacity: .75; } }

/* ---------- 2D overlays on the stump (today's BoardOverlay) ---------- */
.stump { position: absolute; left: var(--sx); top: var(--sy); width: 0; height: 0; }
.stump > * { position: absolute; }
.prize { left: -27px; top: -50px; width: 54px; height: 76px; border-radius: 6px; box-shadow: 0 6px 10px -4px rgba(40, 20, 5, .55); transform: rotate(-2deg); }
.leader { left: 0; top: 34px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 6px; border-radius: 14px;
  background: var(--paper); border: 2.5px solid var(--gold-edge); box-shadow: 0 3px 0 var(--gold-edge); font-weight: 700; font-size: 14px; white-space: nowrap; }
.leader .face { width: 20px; height: 20px; } .leader .i { width: 16px; height: 16px; }
.stake { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px 0 4px; border-radius: 12px; transform: translate(-50%, -50%);
  background: rgba(255, 250, 240, .95); border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); font-weight: 700; font-size: 13px; }
.stake .i { width: 15px; height: 15px; }
.stake.l { left: -88px; top: -34px; } .stake.r { left: 88px; top: -34px; } .stake.you { left: -70px; top: 52px; }
.discard { left: 96px; top: 18px; width: 26px; height: 36px; border-radius: 4px; background: url(../assets/cards/card-back.png) center / cover; transform: rotate(8deg); box-shadow: 0 3px 6px -2px rgba(40, 20, 5, .5); }
.discard b { position: absolute; right: -9px; top: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; transform: rotate(-8deg); }
html.desk .prize { left: -32px; top: -58px; width: 64px; height: 90px; }
html.desk .leader { top: 40px; }
html.desk .stake.l { left: -108px; top: -40px; } html.desk .stake.r { left: 108px; top: -40px; } html.desk .stake.you { left: -92px; top: 58px; }
html.desk .discard { left: 120px; top: 20px; }

/* red edges in the last seconds */
.edges { position: absolute; inset: 0; pointer-events: none !important; box-shadow: inset 0 0 0 3px rgba(184, 50, 47, .55), inset 0 0 36px rgba(184, 50, 47, .35); animation: edgeBeat 1s ease-in-out infinite; }
@keyframes edgeBeat { 50% { opacity: .55; } }

/* ---------- the tray (phone): one wooden shelf, a row and a bar ---------- */
.tray { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 10px 10px; border-top: 3px solid var(--rim);
  background: linear-gradient(180deg, var(--wood-top), var(--wood-mid) 45%, var(--wood-low));
  box-shadow: 0 -6px 14px -10px rgba(40, 20, 5, .5), inset 0 2px 0 rgba(255, 228, 190, .55); }
.tray.turn { border-top-color: var(--turn); box-shadow: 0 -10px 22px -12px rgba(40, 20, 5, .55), 0 -4px 14px -4px rgba(224, 120, 46, .55), inset 0 2px 0 rgba(255, 228, 190, .55); }
.row { position: relative; height: 68px; display: flex; align-items: flex-end; gap: 10px; }
.bar { position: relative; height: 56px; margin-top: 10px; display: flex; align-items: flex-end; }

/* tabs on the tray's top edge: your purse (left) and the state with its clock (right). They never overlap a button. */
.tab { position: absolute; bottom: 100%; margin-bottom: -3px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px;
  background: var(--paper); border: 3px solid var(--rim); border-bottom: 0; border-radius: 11px 11px 0 0; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.tab::before { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--paper); }
.tab.purse { left: 8px; }
.tab.state { right: 8px; }
.tray.turn .tab.state { border-color: var(--turn); color: #8a3d0c; }
.tab .face { width: 24px; height: 24px; }
#ui .face { display: inline-block; }
.tab.purse::after { content: ''; position: absolute; left: 0; right: 0; top: -20px; bottom: 4px; } /* 44 px hit area that reaches up, not down onto the cards */
.tab .v { display: inline-flex; align-items: center; gap: 3px; }
.tab .v .i { width: 15px; height: 15px; }
.tab .after { color: var(--muted); font-weight: 600; font-size: 12px; }
.tab .fx { width: 18px; height: 18px; }
.tab.state .face { width: 22px; height: 22px; }

/* clock: a ring that drains, seconds inside. Always in the state tab, never on a button. */
.clock { position: relative; width: 24px; height: 24px; flex: none; }
.clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.clock b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock.low b { color: var(--danger); }

/* ---------- buttons: raised wood/gold with an under-edge; pressed sinks onto a darker edge; off is flat and flush ---------- */
.tb { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 46px; margin-bottom: 4px; padding: 0 14px;
  border-radius: 14px; border: 3px solid var(--edge); background: linear-gradient(#fffaf0, #f4e6cb); color: var(--ink); font-weight: 700; font-size: 17px;
  box-shadow: 0 4px 0 var(--edge), 0 10px 14px -10px rgba(40, 20, 5, .6); transition: transform .06s var(--ease-out), box-shadow .06s, background .06s; }
.tb::before { content: ''; position: absolute; left: 11px; right: 11px; top: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .9); }
.tb:active, .tb.pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-press); background: linear-gradient(#f1e2c6, #e8d4b0); }
.tb.gold { height: 52px; font-size: 19px; border-color: var(--gold-edge); background: linear-gradient(#ffe48a, var(--gold) 55%, #f6c23a);
  box-shadow: 0 4px 0 var(--gold-edge), 0 12px 18px -10px rgba(120, 70, 0, .7); }
.tb.gold:active, .tb.gold.pressed { box-shadow: 0 1px 0 var(--gold-press); background: linear-gradient(#f6cf52, #eab52c); }
.tb.coin { width: 48px; height: 48px; padding: 0; border-radius: 50%; border-color: var(--gold-edge); background: radial-gradient(circle at 50% 38%, #fff0b0, var(--gold) 58%, #eeb630);
  box-shadow: 0 4px 0 var(--gold-edge), 0 10px 14px -10px rgba(120, 70, 0, .7); }
.tb.coin::before { left: 13px; right: 13px; }
.tb.coin .i { width: 22px; height: 22px; }
.tb.coin:active, .tb.coin.pressed { box-shadow: 0 1px 0 var(--gold-press); background: radial-gradient(circle at 50% 38%, #f8de86, #f0c032 60%, #dfa522); }
.tb.off, .tb.off:active { transform: translateY(4px); box-shadow: none; background: #ead9bb; border-color: #c9ab83; color: #a48a68; cursor: default; }
.tb.off::before { display: none; }
.tb.glow { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 4px 0 var(--gold-edge), 0 0 0 5px rgba(255, 210, 74, .45), 0 12px 18px -10px rgba(120, 70, 0, .7); } }
.tb .sub { font-size: 12px; font-weight: 600; opacity: .8; }
.tb .key { margin-right: 2px; }
.b-fold { width: 72px; }
.b-minus { margin-left: 14px; } .b-plus { margin-left: 10px; }
.b-main { flex: 1; margin-left: 12px; }
.b-back { width: 118px; }

/* ---------- cards in the rack ---------- */
.card { position: relative; flex: 1; min-width: 0; height: 68px; padding: 3px 3px 0; border-radius: 9px; background: #fffaf0; border: 2.5px solid #4b2c17; text-align: center;
  box-shadow: 0 3px 0 #b88a5a, 0 8px 10px -6px rgba(40, 20, 5, .45); display: flex; flex-direction: column; transition: transform .14s var(--ease-out); }
.card .art { display: block; height: 36px; border-radius: 5px; background-repeat: no-repeat; flex: none; }
.card b { flex: 1; display: grid; place-items: center; font-size: 10.5px; line-height: 1.08; font-weight: 700; color: #4b2c17; padding: 0 1px; }
.card .cat { position: absolute; top: -2px; left: -2px; width: 13px; height: 13px; border-radius: 7px 3px 6px 3px; border: 2px solid #4b2c17; }
.card.up { transform: translateY(-3px); box-shadow: 0 3px 0 #b88a5a, 0 12px 14px -8px rgba(40, 20, 5, .55); }
.card.dim { filter: saturate(.35); opacity: .6; box-shadow: none; }
.card.ans { transform: translateY(-3px); border-color: #b97d14; box-shadow: 0 3px 0 #b97d14, 0 0 0 4px rgba(255, 210, 74, .65); }
.cat.grief { background: var(--c-grief); } .cat.chaos { background: var(--c-chaos); } .cat.nice { background: var(--c-nice); } .cat.defense { background: var(--c-defense); }
.card .num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.row.asleep .card { filter: grayscale(1); opacity: .45; box-shadow: none; }

/* lifted: the card comes out of the rack into a reader */
.row.reader { height: 116px; align-items: stretch; gap: 12px; }
.big { flex: none; width: 84px; padding: 4px 4px 0; border-radius: 11px; background: #fffaf0; border: 3px solid #b97d14; display: flex; flex-direction: column;
  box-shadow: 0 0 0 4px rgba(255, 210, 74, .55), 0 10px 14px -8px rgba(40, 20, 5, .55); transform: translateY(-8px) rotate(-2deg); animation: lift .3s var(--ease-pop); }
@keyframes lift { from { transform: translateY(30px) scale(.8); } }
.big .art { height: 70px; border-radius: 7px; background-repeat: no-repeat; }
.big b { flex: 1; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #4b2c17; }
.read { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.read h3 { font: 400 21px/1 'Lilita', sans-serif; letter-spacing: .01em; color: var(--ink); }
.read p { margin-top: 5px; font-size: 14px; line-height: 1.3; font-weight: 600; color: #4a2a14; }
.read .rest { margin-top: auto; display: flex; gap: 8px; }
.mini { width: 44px; height: 46px; padding: 2px 2px 0; border-radius: 7px; background: #fffaf0; border: 2px solid #4b2c17; box-shadow: 0 2px 0 #b88a5a; flex: none; }
.mini .art { display: block; height: 40px; border-radius: 4px; background-repeat: no-repeat; }

/* pickers (target, decision drawer): face buttons in the row */
.who { position: relative; flex: 1; min-width: 0; height: 64px; border-radius: 12px; background: linear-gradient(#fffaf0, #f4e6cb); border: 2.5px solid var(--edge);
  box-shadow: 0 4px 0 var(--edge), 0 10px 14px -10px rgba(40, 20, 5, .6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-bottom: 4px; }
.who .face { width: 34px; height: 34px; }
.who b { font-size: 13px; line-height: 1; } .who small { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1; }
.who:active, .who.pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-press); background: linear-gradient(#f1e2c6, #e8d4b0); }
.who.hot.pressed { box-shadow: 0 1px 0 var(--gold-press), 0 0 0 3px rgba(255, 210, 74, .5); background: linear-gradient(#ffe68f, #f8d45a); }
.who.off { transform: translateY(4px); box-shadow: none; background: #ead9bb; border-color: #c9ab83; }
.who.off .face { filter: grayscale(.8); opacity: .6; box-shadow: none; } .who.off b { color: #a48a68; }
.who.hot { border-color: var(--gold-edge); background: linear-gradient(#fff6cf, #ffe68f); box-shadow: 0 4px 0 var(--gold-edge), 0 0 0 3px rgba(255, 210, 74, .5); }
.for { flex: none; width: 50px; height: 68px; padding: 2px 2px 0; border-radius: 8px; background: #fffaf0; border: 2.5px solid #4b2c17; display: flex; flex-direction: column; }
.for .art { height: 40px; border-radius: 5px; background-repeat: no-repeat; }
.for b { flex: 1; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #4b2c17; }

/* reaction: the incoming card read in the tray, your answer card raised */
.row.react { gap: 10px; }
.incoming { flex: 1; min-width: 0; height: 68px; display: flex; gap: 10px; align-items: center; padding: 0 10px 0 6px; border-radius: 12px; background: var(--groove); }
.incoming .for { position: relative; transform: rotate(-3deg); border-color: var(--c-grief); }
.incoming .for .face { position: absolute; left: -5px; top: -9px; width: 24px; height: 24px; box-shadow: 0 0 0 2px #fff; }
.incoming h4 { font-size: 15px; font-weight: 700; line-height: 1; }
.incoming p { margin-top: 3px; font-size: 12px; line-height: 1.25; font-weight: 600; color: #4a2a14; }
.row.react .card { flex: none; width: 66px; }

/* round result in the tray */
.row.win { gap: 10px; align-items: center; }
.winner { position: relative; flex: none; width: 60px; height: 60px; }
.winner .face { display: block; width: 60px; height: 60px; box-shadow: 0 6px 12px -4px rgba(40, 20, 5, .5); border-radius: 50%; }
.winner .i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-8deg); width: 28px; height: 28px; }
.won { flex: 1; min-width: 0; }
.won h3 { font: 400 24px/1 'Lilita', sans-serif; letter-spacing: .01em; }
.won .paid { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.won .paid b { color: var(--ink); }
.won .paid .i { width: 16px; height: 16px; }
.prizewon { position: relative; flex: none; width: 46px; height: 64px; border-radius: 6px; background: center / cover; box-shadow: 0 6px 10px -4px rgba(40, 20, 5, .5); transform: rotate(4deg); animation: lift .5s var(--ease-pop); }
.prizewon .gain { position: absolute; left: -16px; top: -8px; padding: 2px 6px; border-radius: 8px; background: var(--leaf); color: #fff; font-size: 13px; font-weight: 700; border: 2px solid #fff; transform: rotate(-4deg); }
.stand { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-self: stretch; margin-bottom: 4px; }
.sd { border-radius: 10px; background: var(--groove); padding: 5px 6px 0; }
.sd.me { background: rgba(255, 243, 220, .55); box-shadow: inset 0 0 0 2px rgba(59, 42, 138, .35); }
.sd .top { display: flex; align-items: center; justify-content: space-between; }
.sd .face { width: 24px; height: 24px; }
.sd .top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.dots { margin-top: 5px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.dots i { height: 6px; border-radius: 3px; background: rgba(84, 42, 12, .18); }
.dots i.p { background: var(--gold-dark); } .dots i.n { background: var(--turn); box-shadow: 0 0 6px rgba(224, 120, 46, .9); }

/* away tray */
.awaynote { flex: 1; height: 46px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: var(--groove); font-size: 14px; font-weight: 700; line-height: 1.15; }
.awaynote svg { flex: none; }
.b-back2 { width: 140px; margin-left: 10px; }

/* the note that says why a control is grey: points at the control that was tapped */
.note { position: absolute; z-index: 3; max-width: 230px; padding: 8px 12px; border-radius: 12px; background: rgba(43, 26, 12, .94); color: #fff8ea; font-size: 13px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); animation: noteIn .25s var(--ease-out); }
.note::after { content: ''; position: absolute; bottom: -7px; right: var(--px, 40px); border: 7px solid transparent; border-bottom: 0; border-top-color: rgba(43, 26, 12, .94); }
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- desktop: same model, cards row + one control row, centred ---------- */
html.desk .tray { left: 50%; right: auto; width: 1010px; transform: translateX(-50%); padding: 0; border: 0; background: none; box-shadow: none; }
html.desk .tray .tab { display: none; }
html.desk .row { height: 156px; justify-content: center; gap: 14px; padding: 0 40px; }
html.desk .bar { width: max-content; margin-left: auto; margin-right: auto; height: 64px; margin-top: 12px; margin-bottom: 14px; padding: 6px 10px 2px 8px; border-radius: 18px; border: 3px solid var(--rim);
  background: linear-gradient(180deg, var(--wood-top), var(--wood-mid) 50%, var(--wood-low)); box-shadow: 0 10px 22px -12px rgba(40, 20, 5, .7), inset 0 2px 0 rgba(255, 228, 190, .55); align-items: center; }
html.desk .tray.turn .bar { border-color: var(--turn); box-shadow: 0 10px 22px -12px rgba(40, 20, 5, .7), 0 0 14px -2px rgba(224, 120, 46, .6), inset 0 2px 0 rgba(255, 228, 190, .55); }
html.desk .dk { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 5px; border-radius: 14px; background: var(--paper); border: 2.5px solid var(--rim); font-weight: 700; font-size: 15px; white-space: nowrap; flex: none; }
html.desk .dk .face { width: 32px; height: 32px; }
html.desk .dk .v { display: inline-flex; align-items: center; gap: 3px; } html.desk .dk .v .i { width: 17px; height: 17px; }
html.desk .dk .after { color: var(--muted); font-weight: 600; font-size: 13px; }
html.desk .dk .fx { width: 22px; height: 22px; }
html.desk .dk.st { margin-left: 10px; padding: 0 12px; }
html.desk .tray.turn .dk.st { border-color: var(--turn); color: #8a3d0c; }
html.desk .dk.st .face { width: 26px; height: 26px; }
html.desk .spacer { flex: none; width: 36px; }
html.desk .tb { height: 46px; margin: 0; } html.desk .tb.gold { height: 48px; } html.desk .tb.coin { width: 46px; height: 46px; }
html.desk .tb.off { transform: translateY(4px); }
html.desk .b-fold { width: auto; } html.desk .b-minus { margin-left: 22px; } html.desk .b-plus { margin-left: 10px; }
html.desk .b-main { flex: none; width: 210px; margin-left: 14px; }
html.desk .b-back { width: auto; } html.desk .b-back2 { width: auto; }
html.desk .tb.coin .key { position: absolute; right: -10px; bottom: -8px; margin: 0; min-width: 18px; height: 18px; font-size: 10px; }
html.desk .card { flex: none; width: 116px; height: 156px; padding: 4px 4px 0; border-radius: 12px; border-width: 3px; }
html.desk .card .art { height: 64px; border-radius: 7px; }
html.desk .card b { flex: none; display: block; margin-top: 6px; font-size: 14px; }
html.desk .card p { margin-top: 3px; padding: 0 3px; font-size: 11px; line-height: 1.24; font-weight: 600; color: #4b2c17; }
html.desk .card .cat { width: 16px; height: 16px; }
html.desk .card.up { transform: translateY(-8px); }
html.desk .card .num { top: -14px; }
html.desk .row.reader { height: 156px; gap: 22px; justify-content: center; }
html.desk .big { width: 132px; padding: 5px 5px 0; transform: translateY(-14px) rotate(-2deg); }
html.desk .big .art { height: 112px; } html.desk .big b { font-size: 16px; }
html.desk .read { flex: none; width: 420px; padding-top: 6px; }
html.desk .read h3 { font-size: 30px; } html.desk .read p { font-size: 17px; margin-top: 8px; }
html.desk .mini { width: 64px; height: 70px; } html.desk .mini .art { height: 62px; }
html.desk .read .rest { gap: 10px; }
html.desk .who { flex: none; width: 140px; height: 140px; border-radius: 16px; gap: 6px; }
html.desk .who .face { width: 72px; height: 72px; }
html.desk .who b { font-size: 17px; } html.desk .who small { font-size: 13px; }
html.desk .who .key { position: absolute; top: 8px; left: 8px; }
html.desk .for { width: 104px; height: 146px; padding: 4px 4px 0; border-radius: 12px; border-width: 3px; }
html.desk .for .art { height: 96px; } html.desk .for b { font-size: 15px; }
html.desk .row.react { gap: 18px; }
html.desk .incoming { flex: none; width: 540px; height: 150px; padding: 0 22px 0 18px; gap: 18px; border-radius: 18px; background: rgba(255, 243, 220, .9); border: 3px solid var(--rim); }
html.desk .incoming .for { height: 140px; width: 100px; } html.desk .incoming .for .art { height: 90px; }
html.desk .incoming .for .face { width: 34px; height: 34px; left: -12px; top: -14px; }
html.desk .incoming h4 { font-size: 22px; } html.desk .incoming p { font-size: 16px; margin-top: 6px; }
html.desk .row.react .card { width: 116px; }
html.desk .row.win { justify-content: center; gap: 22px; padding: 0; }
html.desk .wincard { display: flex; align-items: center; gap: 18px; height: 136px; padding: 0 26px 0 22px; border-radius: 18px; background: rgba(255, 243, 220, .94); border: 3px solid var(--rim); box-shadow: 0 10px 22px -12px rgba(40, 20, 5, .7); }
html.desk .winner { width: 84px; height: 84px; } html.desk .winner .face { width: 84px; height: 84px; }
html.desk .won h3 { font-size: 32px; } html.desk .won .paid { font-size: 16px; }
html.desk .prizewon { width: 64px; height: 90px; }
html.desk .stand { flex: none; width: 460px; grid-template-columns: 1fr 1fr; gap: 10px; align-self: center; margin: 0; padding: 14px; border-radius: 18px; background: rgba(255, 243, 220, .94); border: 3px solid var(--rim); box-shadow: 0 10px 22px -12px rgba(40, 20, 5, .7); }
html.desk .sd { padding: 8px 10px 9px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
html.desk .sd .top { display: contents; }
html.desk .sd .face { width: 30px; height: 30px; grid-column: 1; }
html.desk .sd .top b { grid-column: 3; font-size: 17px; }
html.desk .sd .dots { grid-column: 2; grid-row: 1; margin: 0; grid-template-columns: repeat(10, 1fr); }
html.desk .dots i { height: 9px; border-radius: 5px; }
html.desk .awaynote { flex: none; height: 44px; margin: 0 0 0 10px; background: var(--paper); border: 2.5px solid var(--rim); }
html.desk .note { max-width: 300px; }
html.desk .tab-desk-only { display: inline-flex; }

html.desk .tray.result .bar { width: max-content; margin-left: auto; margin-right: auto; padding-right: 8px; }
html.desk .tray.result .spacer { display: none; }
html.desk .bar .note { animation: none; }
html.desk .bar .note::after { bottom: auto; right: auto; top: 50%; left: -7px; margin-top: -7px; border: 7px solid transparent; border-left: 0; border-right-color: rgba(43, 26, 12, .94); }

/* chat key, docked in the tray's control row (first key, left thumb). 44 px, unread badge on its corner. */
.tb.chat { width: 44px; height: 44px; padding: 0; border-radius: 13px; margin-right: 10px; }
.tb.chat::before { left: 9px; right: 9px; }
.tb.chat .i { width: 22px; height: 22px; }
.tb.chat .badge { z-index: 1; }
html.phone .b-fold { width: 62px; }
html.phone .b-minus { margin-left: 12px; }
html.phone .tb.coin { width: 46px; height: 46px; }
html.phone .b-back { width: 104px; }
html.phone .b-back2 { width: 124px; }
html.phone .stand { gap: 6px; }
html.desk .tb.chat { margin-right: 10px; }
html.desk .tb.chat .key { position: absolute; right: -10px; bottom: -8px; margin: 0; min-width: 18px; height: 18px; font-size: 10px; }
