.kw-table {
  --felt-ink:#f7f2dc;
  --felt-soft:#c6d9c8;
  --brass:#dfbf81;
  --rack-ink:#20392e;
  margin:0 auto 24px;
  color:var(--rack-ink);
}
.kw-table .room-head {margin:0 0 14px;min-height:40px}
.kw-table .room-head button {min-height:42px}
.kw-table .kw-felt {
  isolation:isolate;position:relative;overflow:hidden;color:var(--felt-ink);
  padding:18px clamp(16px,3.3vw,44px) 10px;border:5px solid #293b32;border-bottom-color:#172b24;
  border-radius:28px 28px 21px 21px;background-color:#12594f;
  background-image:radial-gradient(ellipse at 50% 23%,#35847488,transparent 68%),
    repeating-linear-gradient(17deg,#d1e8c907 0 1px,transparent 1px 4px),
    repeating-linear-gradient(108deg,#041f1a11 0 1px,transparent 1px 4px),
    linear-gradient(125deg,#103e37,#1a685c 46%,#0b3b34);
  box-shadow:inset 0 0 0 2px #a39163,inset 0 0 0 5px #102e26,inset 0 0 42px #061e1b88,0 4px 0 #12291f,0 10px 23px #172b2420;
}
.kw-table .kw-felt::before {
  content:"";position:absolute;inset:9px;z-index:-1;pointer-events:none;border:1px solid #e1d8ad35;border-radius:15px;
}
.kw-table .kw-meta,.kw-table .kw-kicker,.kw-table .kw-wall,.kw-table .kw-log,
.kw-table .kw-o-head,.kw-table .kw-o-id>div,.kw-table .kw-my-id>div,
.kw-table .kw-exposed,.kw-table .kw-meld,.kw-table .kw-dock-head,.kw-table .kw-actions,
.kw-table .kw-wait-actions,.kw-table .kw-status {display:flex;align-items:center}
.kw-table .kw-meta {color:var(--felt-soft);gap:18px;font-size:13px;padding:0 0 9px;border-bottom:1px solid #c4d3aa36}
.kw-table .kw-round {font-size:14px;color:var(--brass);letter-spacing:.07em}
.kw-table .kw-round b {font:700 21px/1 var(--serif)}
.kw-table .kw-wall {gap:5px}.kw-table .kw-wall .icon {width:16px;color:#d5caa0}
.kw-table .kw-wall b {font-size:15px;color:#fff5d9;font-variant-numeric:tabular-nums}
.kw-table .kw-log {margin-left:auto;gap:6px;min-height:36px;padding:0 9px;color:#e8eddb;border-radius:7px}
.kw-table .kw-log:hover {background:#ffffff14}
.kw-table .kw-log .icon {width:16px}
.kw-table .kw-opponents {display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:15px 0 12px}
.kw-table .kw-opponent {max-width:100%;min-width:0;justify-self:start}
.kw-table .kw-opponent:last-child {justify-self:end}
.kw-table .kw-o-head {gap:8px;min-width:0}
.kw-table .kw-avatar,.kw-table .kw-seat-avatar {display:grid;place-items:center;flex:none}
.kw-table .kw-avatar {
  width:37px;height:37px;color:#ead5a1;border:1px solid #def0cd4f;border-radius:10px;
  background:linear-gradient(130deg,#345f50,#183e35);box-shadow:inset 0 0 0 3px #ffffff07;
}
.kw-table .kw-opponent.active .kw-avatar {border-color:#eacb82;box-shadow:0 0 0 2px #e1c2873d}
.kw-table .kw-o-id {min-width:0}.kw-table .kw-o-id>small,.kw-table .kw-my-id>small {
  display:block;font-size:11px;color:var(--felt-soft);letter-spacing:.06em;line-height:1.4;
}
.kw-table .kw-o-id>div,.kw-table .kw-my-id>div {gap:5px;min-width:0}
.kw-table .kw-o-id strong,.kw-table .kw-my-id b {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16ch;font-size:16px}
.kw-table .kw-badge {flex:none;display:inline-block;padding:1px 4px;line-height:1.4;border-radius:4px;font-size:11px;font-weight:700}
.kw-table .kw-badge.dealer {background:#ead4a0;color:#503b17}
.kw-table .kw-badge.reveal {background:#e8b79d;color:#582919}
.kw-table .kw-points {border-left:1px solid #a7c6b472;padding-left:9px;font:600 18px/1.2 var(--sans);color:#f4e4b7;white-space:nowrap}
.kw-table .kw-points small {font-size:10px}
.kw-table .kw-o-cards,.kw-table .kw-river-cards {display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap}
.kw-table .kw-o-cards {gap:2px;margin-top:9px;max-width:375px}
.kw-table .kw-opponent:last-child .kw-o-cards,.kw-table .kw-opponent:last-child .kw-exposed {justify-content:flex-end}
.kw-table .kw-back {
  display:inline-block;width:clamp(9px,1.15vw,15px);height:clamp(16px,1.65vw,23px);border:1px solid #abc4a5;border-radius:3px;
  background:repeating-linear-gradient(120deg,#557f6900 0 3px,#a6c3a32d 3px 4px),linear-gradient(135deg,#8fae88,#497a67);
  box-shadow:inset 0 0 0 1px #1a4a3c55,0 2px #d1c8a3,0 3px #263c2b;
}
.kw-table .kw-o-cards>.tile.tiny {width:20px;height:27px;font-size:10px}
.kw-table .kw-exposed {gap:8px;flex-wrap:wrap;margin-top:7px}
.kw-table .kw-meld {gap:1px;flex:none}
.kw-table .kw-meld>small {font-size:10px;margin-right:3px;opacity:.88}
.kw-table .kw-meld .tile.tiny {width:15px;height:22px;font-size:8px}
.kw-table .kw-o-waits {display:block;color:#ffdc98;font-size:12px;margin-top:5px}
.kw-table .kw-field {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,.72fr) minmax(0,1fr);
  grid-template-areas:"left last right" "mine mine mine";align-items:start;gap:11px clamp(12px,3vw,45px);
}
.kw-table .kw-river {min-width:0;background:#052e282a;border:1px solid #b4d2b238;border-radius:9px;padding:9px 11px}
.kw-table .kw-left {grid-area:left}.kw-table .kw-right {grid-area:right}
.kw-table .kw-self {grid-area:mine;justify-self:center;width:min(100%,580px);display:flex;gap:10px;align-items:flex-start}
.kw-table .kw-river-head {display:flex;align-items:center;gap:5px;font-size:11px;color:#c5daca;white-space:nowrap;letter-spacing:.05em}
.kw-table .kw-river-head b {font:600 10px/1.5 var(--sans);color:#e6e9d6;border:1px solid #c4ddba42;border-radius:4px;min-width:16px;text-align:center}
.kw-table .kw-river-cards {gap:4px 3px;min-height:55px;padding:6px 1px 4px;max-height:132px;overflow-y:auto;scrollbar-width:thin}
.kw-table .kw-river-cards .tile.tiny {width:20px;height:27px;font-size:10px}
.kw-table .kw-river .kw-recent {outline:2px solid #f4c26c;outline-offset:0;z-index:1}
.kw-table .kw-self .kw-river-cards {padding:0 1px 3px;min-height:19px;flex:1}
.kw-table .kw-center {
  grid-area:last;justify-self:center;align-self:center;position:relative;isolation:isolate;display:grid;
  justify-items:center;align-content:center;text-align:center;min-width:120px;min-height:123px;
}
.kw-table .kw-center::before,.kw-table .kw-center::after {
  content:"";position:absolute;z-index:-1;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);
  width:88px;height:88px;border:1px solid #cab78045;border-radius:17px;background:#173e3224;
}
.kw-table .kw-center::after {width:99px;height:99px;background:none;border-color:#ddc38a26}
.kw-table .kw-center>small {color:#e5d5aa;font-size:11px;letter-spacing:.12em;margin-bottom:5px}
.kw-table .kw-last-tile>.tile {width:44px;height:57px;font-size:20px;transform:rotate(-6deg);box-shadow:1px 2px #c3b58f,2px 4px #92a488,3px 6px #173c2e,6px 9px 8px #0b2a2666}
.kw-table .kw-center>b {font-size:13px;margin-top:8px}
.kw-table .kw-center>span {max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7e1d2;font-size:11px;line-height:1.6}
.kw-table .kw-deck {position:relative;width:50px;height:47px;margin:4px 0 8px}
.kw-table .kw-deck i {position:absolute;left:6px;top:0;width:27px;height:38px;transform:rotate(-13deg);border:2px solid #e4d9b6;border-radius:4px;background:repeating-linear-gradient(45deg,#7b9b7e 0 2px,#638f73 2px 4px);box-shadow:1px 3px #abb696,3px 5px #173d31}
.kw-table .kw-deck i+i {left:20px;top:6px;transform:rotate(12deg)}
.kw-table .kw-status-wrap {display:flex;justify-content:center;margin:10px 0 2px}
.kw-table .kw-status {gap:7px;max-width:100%;padding:5px 14px;background:#123e33;color:#e6ead6;border:1px solid #b3cba263;border-radius:20px;font-size:12px;font-weight:650}
.kw-table .kw-status i {width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.kw-table .kw-status.mine {background:#f3dea0;border-color:#f9e7ba;color:#473818;box-shadow:0 1px 7px #172f2140}
.kw-table .kw-dock {
  margin-top:13px;padding:16px clamp(15px,3vw,38px) 11px;border:1px solid #c6bea6;border-radius:17px;
  background:linear-gradient(145deg,#fffdf4,#f3f0df);box-shadow:0 4px 9px #2337290a;
}
.kw-table .kw-dock-head {gap:9px}
.kw-table .kw-dock .kw-avatar {width:34px;height:34px;color:#f7eaca;background:#325b49;border-color:#49694d}
.kw-table .kw-my-id {min-width:0}.kw-table .kw-my-id>small {color:#607361}
.kw-table .kw-my-score {padding-left:9px;border-left:1px solid #c7cdbb;font-size:17px;color:#2b5742;white-space:nowrap}
.kw-table .kw-my-score small {font-size:11px}
.kw-table .kw-hand-help {margin-left:auto;font-size:12px;text-align:right;color:#62715e}
.kw-table .kw-grip {
  display:grid;grid-template-columns:repeat(var(--kw-tiles),minmax(44px,55px));justify-content:center;gap:4px;
  align-items:end;margin:18px auto 5px;padding-bottom:5px;
}
.kw-table .kw-hand-btn {
  position:relative;display:grid;justify-items:center;align-content:end;gap:7px;min-width:44px;min-height:44px;
  padding:0;border-radius:6px;background:transparent;color:#344c3c;transition:transform .14s ease;
}
.kw-table .kw-hand-btn .tile {width:100%;height:auto;aspect-ratio:.745;font-size:clamp(20px,2.2vw,27px)}
.kw-table .kw-hand-btn small {font-size:10px;line-height:1;color:inherit}
.kw-table .kw-hand-btn:not(:disabled):hover {transform:translateY(-3px)}
.kw-table .kw-hand-btn.selected,.kw-table .kw-hand-btn.selected:hover {transform:translateY(-7px)}
.kw-table .kw-hand-btn.selected .tile {outline:3px solid #ac782c;outline-offset:1px}
.kw-table .kw-hand-btn.drawn::after {content:"摸";position:absolute;right:-1px;top:-7px;padding:0 3px;border-radius:3px;background:#245749;color:#fff5d7;font-size:9px;line-height:13px}
.kw-table .kw-grip.choosing .kw-hand-btn:disabled .tile {background:#d8d9ca;box-shadow:inset 0 0 0 1px #c6c6b6,0 2px #a7b19d,0 4px #7a8d75;filter:saturate(.6)}
.kw-table .kw-grip.choosing .kw-hand-btn:disabled small {color:#6e7467}
.kw-table .kw-actions,.kw-table .kw-wait-actions {justify-content:center;flex-wrap:wrap;gap:8px}
.kw-table .kw-actions:not(:empty) {padding:8px 0 4px}
.kw-table .kw-actions .btn,.kw-table .kw-wait-actions .btn {min-height:44px;border-radius:8px}
.kw-table .kw-actions .primary:not(:disabled) {background:#285d45}
.kw-table .kw-hints {margin-top:10px;border-top:1px solid #d6d8c6;padding-top:9px}
.kw-table .kw-hint-heading {display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.kw-table .kw-hint-heading strong {font-size:13px;white-space:nowrap;color:#2f513e}
.kw-table .kw-hint-heading span {font-size:11px;color:#657063}
.kw-table .kw-hints ul {display:flex;gap:7px;overflow-x:auto;list-style:none;margin:7px 0 0;padding:0 0 4px;scrollbar-width:thin}
.kw-table .kw-hints li {flex:none;display:flex;align-items:center;gap:7px;border:1px solid #ced5bd;border-radius:7px;background:#edf2e5;padding:6px 9px}
.kw-table .kw-hints li>.tile.tiny {width:21px;height:29px;font-size:10px}
.kw-table .kw-hints li strong {color:#2e4e3c;font-size:13px}
.kw-table .kw-hints li>div>span {font-size:10px;color:#5e715d;margin-left:6px}
.kw-table .kw-hints li small {display:block;margin-top:2px;font-size:10px;color:#435e48}
.kw-table .kw-result {display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:17px 22px;margin-top:15px;background:#f5ead0;border:1px solid #d8c39a;border-radius:12px}
.kw-table .kw-result h2 {font:700 24px var(--serif);margin:3px 0 6px;color:#514123}
.kw-table .kw-result small,.kw-table .kw-result p {color:#68593b;font-size:12px;line-height:1.65}
.kw-table .kw-deltas {display:flex;gap:15px;margin-left:auto}.kw-table .kw-deltas>span {font-size:12px}
.kw-table .kw-deltas b {display:block;font-size:19px;color:#345a40}
.kw-table .kw-wait {padding:clamp(32px,5vw,68px) 24px;text-align:center}
.kw-table .kw-wait-intro h2 {margin:12px 0 8px;font:700 clamp(29px,4vw,45px)/1.18 var(--serif);color:#f9edcb}
.kw-table .kw-wait-intro p {font-size:14px;color:#d4e2d0}
.kw-table .kw-kicker {justify-content:center;gap:7px;color:#efd89d;font-size:13px}
.kw-table .kw-kicker .icon {width:16px}
.kw-table .kw-seat-list {display:flex;justify-content:center;gap:clamp(8px,3vw,30px);margin:28px auto;max-width:660px}
.kw-table .kw-seat-card {flex:1;min-width:0;display:grid;justify-items:center;gap:5px;padding:18px 8px;border:1px dashed #a2bca399;border-radius:11px;background:#0a302920}
.kw-table .kw-seat-card.filled {border-style:solid;border-color:#ddd6a95c;background:#174a3c}
.kw-table .kw-seat-avatar {width:44px;height:44px;border-radius:11px;background:#dce6cb;color:#335642;margin-bottom:3px}
.kw-table .kw-seat-card:not(.filled) .kw-seat-avatar {color:#ccd9c7;background:#ffffff13}
.kw-table .kw-seat-card strong {max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px}
.kw-table .kw-seat-card small {color:#c9d6c3;font-size:12px}
.kw-table .kw-wait-actions .primary {background:linear-gradient(160deg,#f1dda7,#ddba79);color:#42371c}

/* Table text, public tile viewers and actions share the same reading scale. */
.kw-table .room-head {flex-wrap:wrap}
.kw-table .room-head button {min-height:44px;font-size:.95rem}
.kw-table .kw-meta {font-size:1rem}
.kw-table .kw-round,.kw-table .kw-wall b,.kw-table .kw-log {font-size:1.05rem}
.kw-table .kw-log {min-height:44px}
.kw-table .kw-o-id>small,.kw-table .kw-my-id>small,.kw-table .kw-o-waits {font-size:.875rem;letter-spacing:0}
.kw-table .kw-o-id strong,.kw-table .kw-my-id b {font-size:1.18rem}
.kw-table .kw-points,.kw-table .kw-my-score {font-size:1.25rem}
.kw-table .kw-points small,.kw-table .kw-my-score small,.kw-table .kw-badge {font-size:.8125rem}
.kw-table .kw-exposed .kw-meld small {font-size:.8125rem}
.kw-table .kw-river {padding:4px 7px 7px}
.kw-table .kw-river-head {
  width:100%;min-height:44px;gap:6px;padding:2px 1px;color:#fbfbe9;font-size:1rem;font-weight:650;
  text-align:start;letter-spacing:0;white-space:normal;line-height:1.25;
}
.kw-table .kw-river-head b {font:650 .8125rem/1.5 var(--sans);padding:0 3px;color:#eff7e8}
.kw-table .kw-zoom-label {
  margin-left:auto;color:#fbdfa1;text-decoration:underline;text-underline-offset:3px;
  font:.875rem/1.25 var(--sans);white-space:nowrap;
}
.kw-table .kw-river-zoom:hover .kw-zoom-label {color:white}
.kw-table .kw-river-zoom:focus-visible,.kw-table .kw-river-cards:focus-visible {
  outline:3px solid #ffe4a4;outline-offset:2px;border-radius:4px;
}
.kw-table .kw-river-item {flex:none;display:grid;justify-items:center;gap:3px;min-width:2rem}
.kw-table .kw-river-name {font:600 .8125rem/1.15 var(--sans);color:#ffffef;white-space:nowrap}
.kw-table .kw-river-cards {gap:7px 3px;padding-top:1px;max-height:160px}
.kw-table .kw-river-cards .tile.tiny {width:25px;height:34px;font-size:13px}
.kw-table .kw-self {align-items:center}
.kw-table .kw-self .kw-river-head {width:auto;flex:none;gap:7px}
.kw-table .kw-self .kw-river-cards {padding:2px 1px;min-width:0}
.kw-table .kw-center>small,.kw-table .kw-center>span {font-size:.9rem;color:#edf3e5;letter-spacing:0}
.kw-table .kw-center>b {font-size:1.25rem;color:#fff6d9}
.kw-table .kw-last-tile>.tile {width:62px;height:77px;font-size:28px;transform:rotate(-3deg)}
.kw-table .kw-status {font-size:1.05rem;line-height:1.35;text-align:center;color:#f6f7e9}
.kw-table .kw-status.mine {color:#3d2e13;background:#f9deb0;border-color:#ffedca}
.kw-table .kw-hand-help {font-size:1rem;color:#374f3e;line-height:1.35}
.kw-table .kw-grip {
  grid-template-columns:repeat(var(--kw-tiles),minmax(46px,68px));gap:5px;
  margin:22px auto 7px;align-items:start;
}
.kw-table .kw-hand-btn {
  min-width:0;gap:7px;min-height:48px;align-content:start;
  grid-template-columns:minmax(0,1fr);grid-template-areas:"face" "name";
}
.kw-table .kw-hand-btn.selected {grid-template-areas:"face" "name" "mark"}
.kw-table .kw-hand-btn small {
  grid-area:name;min-width:0;max-width:calc(100% - .25rem);font-size:1.125rem;line-height:1.25;
  font-weight:700;color:#18382a;white-space:normal;overflow-wrap:anywhere;text-align:center;position:relative;
}
.kw-table .kw-hand-btn .tile {
  grid-area:face;min-width:0;max-width:100%;overflow:hidden;aspect-ratio:.82;
  font-size:1.95rem;background:linear-gradient(135deg,#fffff8,#f8f1d8);
}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .tile-marks {inset:7% 7%}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .pips i {color:#173456}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .pips .green {color:#14563d}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .pips .red {color:#a12929}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .bamboos i {width:13.5%;min-width:3px;color:#144c36;background:#275e43}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .bamboos i.red {color:#982c27;background:#af3931}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .bamboos i::before,
.kw-table :is(.kw-hand-btn,.kw-last-tile) .bamboos i::after {background:#c3c49a;height:11%;width:100%;left:0}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .dragon {font-weight:850;color:#a82a29}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .dragon.green {color:#205c3c}
.kw-table :is(.kw-hand-btn,.kw-last-tile) .white-dragon {border:3px double #294666}
.kw-table .kw-hand-btn.selected,.kw-table .kw-hand-btn.selected:hover {transform:none}
.kw-table .kw-hand-btn.selected .tile {outline:3px solid #79501b;outline-offset:1px}
.kw-table .kw-hand-btn.drawn::after {font-size:.8125rem;line-height:1.25;font-weight:700;padding:1px 4px;top:1px;right:1px}
.kw-table .kw-hand-btn .kw-picked-mark {
  position:static;grid-area:mark;max-width:100%;margin-top:-3px;padding:1px 5px;border-radius:4px;
  color:#fff;background:#76450e;font:700 .8125rem/1.3 var(--sans);white-space:normal;overflow-wrap:anywhere;
  box-shadow:0 1px 3px #3a280e38;
}
.kw-table .kw-grip.choosing .kw-hand-btn:disabled small {color:#4f5e50}
.kw-table .kw-actions .btn,.kw-table .kw-wait-actions .btn,.kw-table .kw-result .btn {
  min-height:52px;min-width:64px;padding:10px 22px;font-size:1.125rem;font-weight:700;line-height:1.3;
}
.kw-table .kw-actions .primary:disabled {color:#50624e;background:#d9dfd0;border-color:#c7d0bd}
.kw-table .kw-hint-heading strong,.kw-table .kw-hints li strong {font-size:1.05rem;color:#244c35}
.kw-table .kw-hint-heading span,.kw-table .kw-hints li>div>span,.kw-table .kw-hints li small {font-size:.925rem;line-height:1.4;color:#384f3c}
.kw-table .kw-hints li>.tile.tiny {width:31px;height:42px;font-size:15px}
.kw-table .kw-hints li,.kw-table .kw-hints ul {gap:9px}
.kw-table .kw-result p,.kw-table .kw-result small,.kw-table .kw-deltas>span {font-size:1rem}
.kw-table .kw-result .kw-deltas b {font-size:1.35rem}
.kw-table .kw-wait-intro p,.kw-table .kw-kicker,.kw-table .kw-seat-card small {font-size:1rem}
.kw-table .kw-seat-card strong {font-size:1.2rem}

@media (max-width:980px) {
  .kw-table .kw-grip {grid-template-columns:repeat(7,minmax(0,74px));row-gap:12px}
  .kw-table .kw-field {column-gap:14px}
}
@media (max-width:650px) {
  .kw-table {margin-bottom:16px}
  .kw-table .room-head {gap:4px;margin-bottom:6px}
  .kw-table .room-head button {font-size:.875rem}
  .kw-table .room-head h1 {font-size:1.2rem}
  .kw-table .kw-felt {padding:6px 9px 5px;border:3px solid #263b31;border-radius:19px}
  .kw-table .kw-felt::before {inset:4px;border-radius:12px}
  .kw-table .kw-meta {gap:10px;padding:0;font-size:.925rem}
  .kw-table .kw-round,.kw-table .kw-wall b,.kw-table .kw-log {font-size:1rem}
  .kw-table .kw-round b {font-size:1.15rem}
  .kw-table .kw-log {padding:0 3px;min-height:44px}
  .kw-table .kw-opponents {gap:6px;margin:4px 0 2px}
  .kw-table .kw-o-head {gap:4px;flex-wrap:wrap}
  .kw-table .kw-o-head .kw-avatar {display:none}
  .kw-table .kw-o-id>small {font-size:.8125rem}
  .kw-table .kw-o-id strong {font-size:1rem;max-width:7ch}
  .kw-table .kw-o-id>div {gap:3px}
  .kw-table .kw-badge {font-size:.75rem;padding:0 3px}
  .kw-table .kw-points {font-size:.925rem;padding-left:5px}
  .kw-table .kw-o-cards {gap:2px;margin-top:2px;max-width:100%}
  .kw-table .kw-o-cards:has(>.kw-back) {display:block;color:#d6e5d4;font-size:.8125rem;line-height:1.25}
  .kw-table .kw-o-cards:has(>.kw-back)::after {content:attr(aria-label)}
  .kw-table .kw-back {display:none}
  .kw-table .kw-opponent:last-child .kw-o-cards:has(>.kw-back) {text-align:right}
  .kw-table .kw-o-cards>.tile.tiny {width:17px;height:23px;font-size:9px}
  .kw-table .kw-exposed {gap:3px;margin-top:3px}
  .kw-table .kw-meld .tile.tiny {width:15px;height:21px;font-size:8px}
  .kw-table .kw-o-waits {font-size:.85rem}
  .kw-table .kw-field {
    grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"last last last" "left mine right";
    gap:4px;align-items:stretch;
  }
  .kw-table .kw-center {
    display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;align-items:center;align-content:center;
    justify-content:center;justify-items:start;gap:1px 10px;width:100%;min-width:0;min-height:64px;
    padding:3px 0;text-align:start;
  }
  .kw-table .kw-center::before,.kw-table .kw-center::after {display:none}
  .kw-table .kw-center>small {grid-area:1/2;margin:0;align-self:end;font-size:.8125rem;line-height:1.3}
  .kw-table .kw-center>span {grid-area:2/2;align-self:start;font-size:.9rem;line-height:1.3;max-width:36vw}
  .kw-table .kw-center>b {grid-area:1/3/3/4;margin:0;font-size:1.2rem}
  .kw-table .kw-center>.kw-last-tile,.kw-table .kw-center>.kw-deck {grid-area:1/1/3/2}
  .kw-table .kw-last-tile>.tile {width:52px;height:64px;font-size:26px}
  .kw-table .kw-center>.kw-deck {margin:2px 0;transform:scale(.82)}
  .kw-table .kw-center:has(.kw-deck) {min-height:44px;padding:0}
  .kw-table .kw-river,.kw-table .kw-self {width:100%;min-width:0;display:block;padding:0 3px;border-radius:6px}
  .kw-table .kw-river-head,.kw-table .kw-self .kw-river-head {
    display:grid;grid-template-columns:auto auto;grid-template-areas:"seat seat" "count zoom";
    align-content:center;justify-content:center;justify-items:center;width:100%;gap:0 5px;
    text-align:center;min-height:44px;padding:3px 0;line-height:1.16;font-size:.9375rem;
  }
  .kw-table .kw-river-head>span:first-child {grid-area:seat}
  .kw-table .kw-river-head b {grid-area:count;font-size:.8125rem;border:0;padding:0}
  .kw-table .kw-zoom-label {grid-area:zoom;margin:0;font-size:.8125rem}
  .kw-table .kw-river-cards,.kw-table .kw-self .kw-river-cards {
    flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;min-height:0;gap:4px;padding:1px 1px 4px;
  }
  .kw-table .kw-river-cards:empty {display:none}
  .kw-table .kw-river-item {min-width:2rem;gap:3px}
  .kw-table .kw-river-name {font-size:.8125rem}
  .kw-table .kw-river-cards .tile.tiny {width:24px;height:31px;font-size:12px}
  .kw-table .kw-status-wrap {margin:4px 0 1px}
  .kw-table .kw-status {padding:3px 9px;font-size:1rem}
  .kw-table .kw-dock {margin-top:8px;padding:10px 7px 8px;border-radius:12px}
  .kw-table .kw-dock-head {gap:6px;flex-wrap:wrap}
  .kw-table .kw-dock .kw-avatar {width:28px;height:30px}
  .kw-table .kw-my-id>small {font-size:.8125rem}.kw-table .kw-my-id b {font-size:1rem}
  .kw-table .kw-my-score {font-size:1rem;padding-left:5px}.kw-table .kw-hand-help {font-size:.9rem}
  .kw-table .kw-grip {grid-template-columns:repeat(7,minmax(0,76px));gap:11px 4px;margin:16px auto 2px}
  .kw-table .kw-hand-btn {gap:6px;scroll-margin-block-end:88px}
  .kw-table .kw-hand-btn .tile {aspect-ratio:.93;font-size:1.85rem}
  .kw-table .kw-hand-btn small {font-size:1.125rem;line-height:1.25}
  .kw-table .kw-actions {gap:6px}
  .kw-table .kw-actions:not(:empty) {
    position:sticky;bottom:0;z-index:3;margin:0 -4px;background:#f7f4e8f7;
    border-top:1px solid #d3d6c1;padding:5px 4px max(5px,env(safe-area-inset-bottom));
  }
  .kw-table .kw-actions:has(>:nth-child(4)) {position:static}
  .kw-table .kw-actions .btn {font-size:1.125rem;min-height:52px;padding:9px 15px}
  .kw-table .kw-actions .kw-discard-confirm {min-width:min(100%,10.5rem)}
  .kw-table .kw-hints {margin-top:6px;padding-top:7px}
  .kw-table .kw-hint-heading {gap:3px 7px}
  .kw-table .kw-hint-heading strong {font-size:1rem}
  .kw-table .kw-hint-heading span {font-size:.925rem}
  .kw-table .kw-result {padding:12px;gap:10px}.kw-table .kw-result h2 {font-size:1.4rem}
  .kw-table .kw-wait {padding:28px 10px}.kw-table .kw-seat-list {gap:7px;margin:19px auto}
  .kw-table .kw-seat-card {padding:13px 2px}.kw-table .kw-seat-card strong {font-size:1rem}
  .kw-table .kw-seat-card small {font-size:.875rem}
}
@media (max-width:480px) {
  .kw-table .kw-grip {grid-template-columns:repeat(5,minmax(0,76px));gap:12px 5px}
  .kw-table .kw-actions:not(:empty) {column-gap:5px}
}
@media (max-height:520px) and (orientation:landscape) {
  .kw-table .kw-felt {padding-top:5px;padding-bottom:5px}
  .kw-table .kw-opponents {margin:4px 0}
  .kw-table .kw-center {min-height:78px}
  .kw-table .kw-river-cards {min-height:0;max-height:70px}
  .kw-table .kw-grip {grid-template-columns:repeat(7,minmax(0,70px));row-gap:8px}
  .kw-table .kw-actions:not(:empty) {position:static}
}
@media (prefers-reduced-motion:reduce) {
  .kw-table .kw-hand-btn {transition:none}
}
