








@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/brygada-1918-700.woff2') format('woff2');
  unicode-range: U+20-7E, U+AB, U+B7, U+BB, U+C1, U+C9, U+CD, U+D3, U+D7, U+DA, U+DD, U+E1, U+E9, U+ED, U+F3, U+FA, U+FD,
    U+104-107, U+118-119, U+141-144, U+15A-15B, U+179-17C, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}


@font-face {
  font-family: 'PP Rank';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/pp-rank-900.woff') format('woff');
  unicode-range: U+30-39, U+41, U+45, U+4A, U+4B, U+4F, U+51, U+52;
}
:root, [data-deck="cobalt"] {

  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Brygada 1918', Georgia, 'Times New Roman', serif;
  --font-rank: 'PP Rank', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;


  --suit-red: #C8102E;
  --danger: #C8102E;
  --danger-rgb: 200, 16, 46;
  --danger-text: #FF9A9A;
  --stamp-bad: #FF7B7B;
  --success: #3FAE5A;
  --success-rgb: 63, 174, 90;
  --success-text: #7BE08B;
  --warn: #FFA31A;
  --alarm: #FF4545;
  --alarm-rgb: 255, 69, 69;
  --offline: #FF5A5A;
  --glow: #FFD36B;
  --glow-rgb: 255, 211, 107;
  --glow-bad: #FF8A8A;
  --glow-bad-rgb: 255, 110, 110;
  --on-light: #1B1B1B;
  --field: #FFFFFF;
  --field-text: #111111;
  --silver: #D4DBE0;
  --bronze: #C58B4F;
  --gold-dark: #B8892A;
  --gold-light: #FFF4CF;
  --chat-me: #8FE3B8;
  --banana: #FFE066;



  --panel-bg: rgba(255, 255, 255, .06);
  --panel-line: rgba(255, 255, 255, .10);
  --btn2-bg: rgba(255, 255, 255, .14);
  --btn2-line: rgba(255, 255, 255, .5);
  --btn-outline-line: rgba(255, 255, 255, .7);

  --lowicz-card: #FBF6EA;
  --lowicz-dark: #1C1624;
  --lowicz-heart: #E8558E;
  --lowicz-diamond: #F26B1D;
  --lowicz-spade: #10865A;
  --lowicz-club: #3F5FD0;
  --lowicz-dot: #F6C343;

  --bole-card: #FFFCF3;
  --bole-dark: #13265C;
  --bole-eye: #FFFCF3;
  --bole-honey: #D9A441;
  --bole-green: #2F7D5B;


  --deck-pattern: bole;
  --bg: #1B3270;
  --bg-page: radial-gradient(120% 70% at 50% 0%, #2A4A94 0%, #1B3270 55%, #12245A 100%);
  --sheet: #12245A;
  --table: radial-gradient(ellipse at 50% 40%, #FBF7EE 0%, #F2EAD8 65%, #E7DDC6 100%);
  --table-mid: #F2EAD8;
  --table-text: #13265C;
  --table-text-muted: #3D4E7E;
  --table-line: rgba(19, 38, 92, .4);
  --table-chip: rgba(19, 38, 92, .85);
  --table-highlight: #1F3A93;
  --rim: #1F3A93;
  --rim-line: #F7F2E6;
  --back: #1F3A93;
  --back-light: #2C4BAA;
  --back-rosette: #FFFCF3;
  --back-dot: #1F3A93;
  --back-frame: rgba(255, 252, 243, .9);
  --card: #FFFCF3;
  --suit-dark: #13265C;
  --paper: #FFFCF3;
  --action: #D9A441;
  --action-text: #13265C;
  --highlight: #D9A441;
  --highlight-rgb: 217, 164, 65;
  --highlight-text: #13265C;
  --selected: #F7F2E6;
  --selected-text: #13265C;
  --text: #F7F2E6;
  --text-muted: #C5D0EA;


  --felt: var(--bg);
  --ink: var(--text);
  --muted: var(--text-muted);
  --accent: var(--highlight);
  --red: var(--danger);
}

[data-deck="ruby"] {
  --deck-pattern: lowicz;



  --bg: #3A2E48;
  --bg-page: radial-gradient(120% 70% at 50% 0%, #4D3E5C 0%, #3A2E48 55%, #2A2238 100%);
  --sheet: #2A2238;
  --table: radial-gradient(ellipse at 50% 40%, #352A4C 0%, #282038 60%, #1E1829 100%);
  --table-mid: #282038;
  --table-text: #F7F0E4;
  --table-text-muted: #CFC4DA;
  --table-line: rgba(255, 255, 255, .35);
  --table-chip: rgba(255, 255, 255, .2);
  --table-highlight: #F6C343;
  --rim: #9A1B2A;
  --rim-line: #FBF6EA;
  --back: #C8263A;
  --back-light: #D63D50;
  --back-rosette: #FBF6EA;
  --back-dot: #C8263A;
  --back-frame: rgba(251, 246, 234, .82);
  --card: #FBF6EA;
  --suit-dark: #1C1624;
  --paper: #FBF6EA;
  --action: #F26B1D;
  --action-text: #1C1624;
  --highlight: #F6C343;
  --highlight-rgb: 246, 195, 67;
  --highlight-text: #1C1624;
  --selected: #F7F0E4;
  --selected-text: #1C1624;
  --text: #F7F0E4;
  --text-muted: #CFC4DA;
}

[data-deck="sky"] {
  --deck-pattern: lowicz;
  --bg: #574030;
  --bg-page: radial-gradient(120% 70% at 50% 0%, #6C5446 0%, #574030 55%, #3C2E21 100%);
  --sheet: #3C2E21;
  --btn2-bg: rgba(255, 255, 255, .05);
  --btn2-line: rgba(255, 255, 255, .6);
  --table: radial-gradient(ellipse at 50% 40%, #4E372B 0%, #3A291F 60%, #2A1D16 100%);
  --table-mid: #3A291F;
  --table-text: #F7F0E4;
  --table-text-muted: #DCCBBB;
  --table-line: rgba(255, 255, 255, .35);
  --table-chip: rgba(255, 255, 255, .2);
  --table-highlight: #F6C343;
  --rim: #170F0B;
  --rim-line: #8EC1EE;
  --back: #8EC1EE;
  --back-light: #A3CDF2;
  --back-rosette: #1C2D55;
  --back-dot: #C8263A;
  --back-frame: rgba(28, 45, 85, .6);
  --card: #FBF6EA;
  --suit-dark: #1C1624;
  --paper: #FBF6EA;
  --action: #8EC1EE;
  --action-text: #10213F;
  --highlight: #F6C343;
  --highlight-rgb: 246, 195, 67;
  --highlight-text: #241912;
  --selected: #F7F0E4;
  --selected-text: #241912;
  --text: #F7F0E4;
  --text-muted: #DCCBBB;
}

[data-deck="coral"] {
  --deck-pattern: bole;
  --bg: #1A484A;
  --bg-page: radial-gradient(120% 70% at 50% 0%, #24565A 0%, #1A484A 55%, #103436 100%);
  --sheet: #103436;
  --btn2-bg: rgba(255, 255, 255, .12);
  --table: radial-gradient(ellipse at 50% 40%, #1A5256 0%, #11393C 60%, #0B2A2D 100%);
  --table-mid: #11393C;
  --table-text: #F6F1E7;
  --table-text-muted: #C9D6D4;
  --table-line: rgba(255, 255, 255, .35);
  --table-chip: rgba(255, 255, 255, .2);
  --table-highlight: #E2B04A;
  --rim: #06191B;
  --rim-line: #F4A08F;
  --back: #F4A08F;
  --back-light: #F7B3A5;
  --back-rosette: #7A1730;
  --back-dot: #FFFCF3;
  --back-frame: #7A1730;
  --card: #FFFCF3;
  --suit-dark: #13265C;
  --paper: #FFFCF3;
  --action: #F4A08F;
  --action-text: #7A1730;
  --highlight: #E2B04A;
  --highlight-rgb: 226, 176, 74;
  --highlight-text: #0A2426;
  --selected: #F6F1E7;
  --selected-text: #0A2426;
  --text: #F6F1E7;
  --text-muted: #C9D6D4;
}



* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg-page) var(--bg);
  color: var(--text);
  min-height: 100vh;
}
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-family: var(--font-display); font-size: 1.6rem; margin: .4em 0; }
h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 1.2em 0 .5em; color: var(--highlight); }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--panel-bg); box-shadow: inset 0 0 0 1px var(--panel-line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
input, select, button { font: inherit; border-radius: 8px; border: 0; padding: .65em .9em; }
input, select { background: var(--field); color: var(--field-text); min-width: 0; }
select { max-width: 100%; }
button { background: var(--action); color: var(--action-text); font-weight: 700; cursor: pointer; }
button.secondary { background: rgba(255, 255, 255, .15); color: var(--text); font-weight: 600; }



button.secondary:where(:not(.on, .outline, .deck-tile, .icon-btn, .sound-btn, .raise-close, .tut-close, .chat-close, .chat-fold, .chat-head-btn)) {
  background: var(--btn2-bg); box-shadow: inset 0 0 0 1px var(--btn2-line);
}
button.danger { background: var(--danger); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
.big { font-size: 1.15rem; padding: .8em 1.4em; }
.grow { flex: 1; }

.pp-icon { display: inline-block; vertical-align: -.18em; flex: none; }
.pp-icon.lead { margin-right: .35em; }

:is(.icon-btn, .sound-btn, .raise-close, .chat-close, .chat-head-btn) { display: inline-flex; align-items: center; justify-content: center; }
#toasts { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 10; }
.toast { background: rgba(0, 0, 0, .8); padding: 8px 14px; border-radius: 20px; animation: fade 3.5s forwards; }
.toast.error { background: var(--danger); }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
details summary { cursor: pointer; font-weight: 600; }
details ol { margin: .6em 0 .4em 1.2em; padding: 0; line-height: 1.6; }
main a { color: var(--highlight); }
main ul { line-height: 1.6; }

@media (max-width: 480px) {
  main { padding: 12px; }
  h1 { font-size: 1.35rem; }
}

.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.seg button { flex: 1 1 140px; min-height: 44px; }
.seg button.on { background: var(--selected); color: var(--selected-text); }

.sound-btn { padding: .35em .6em; font-size: 1.05rem; line-height: 1; min-width: 40px; min-height: 36px; }
.linkish { background: none; border: 0; padding: 0; color: var(--highlight); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.head { flex-wrap: nowrap; }
.icon-btn { width: 38px; height: 38px; min-width: 38px; padding: 0; border-radius: 50%; font-size: 1.1rem; font-weight: 800; line-height: 1; flex: none; }
.head .sound-btn { flex: none; }
@media (max-width: 480px) {
  .head { flex-wrap: wrap; row-gap: 0; }
  .head .round-info { order: 5; flex-basis: 100%; margin-top: -6px; }
}
body.modal-open { overflow: hidden; }

.conn-lost { position: sticky; top: 8px; z-index: 15; background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.conn-lost b::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: conn-spin .9s linear infinite; }
@keyframes conn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .conn-lost b::before { animation: none; } }
body.offline .spread-card { cursor: default; }

#toasts { z-index: 25; pointer-events: none; }







.cards { display: flex; gap: 8px; flex-wrap: wrap; }


:root, [data-deck="cobalt"] {
  --card-l: none;
  --card-b: inline;
  --card-frame: rgba(19, 38, 92, .4);
  --card-edge: 0 0 0 1px rgba(19, 38, 92, .32), 0 2px 7px rgba(0, 0, 0, .3);
  --card-edge-sm: 0 0 0 1px rgba(19, 38, 92, .62), 0 1px 2px rgba(0, 0, 0, .3);

  --back-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M41.8 26a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM58.77 33.03a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM65.8 50a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM58.77 66.97a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM41.8 74a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM24.83 66.97a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM17.8 50a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM24.83 33.03a8.2 8.2 0 1 1 16.4 0a8.2 8.2 0 1 1 -16.4 0ZM61.69 12.12a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM83.88 34.31a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM83.88 65.69a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM61.69 87.88a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM30.31 87.88a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM8.12 65.69a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM8.12 34.31a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM30.31 12.12a4 4 0 1 1 8 0a4 4 0 1 1 -8 0ZM41 50a9 9 0 1 1 18 0a9 9 0 1 1 -18 0Z'/%3E%3C/svg%3E");
  --back-mask-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M40.4 24a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM58.78 31.62a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM66.4 50a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM58.78 68.38a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM40.4 76a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM22.02 68.38a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM14.4 50a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM22.02 31.62a9.6 9.6 0 1 1 19.2 0a9.6 9.6 0 1 1 -19.2 0ZM39.5 50a10.5 10.5 0 1 1 21 0a10.5 10.5 0 1 1 -21 0Z'/%3E%3C/svg%3E");
  --back-dot-r: 2.73cqw;

  --jk-r: var(--back); --jk-p: var(--bole-eye); --jk-g: var(--bole-green); --jk-y: var(--bole-honey); --jk-n: var(--bole-dark);
}
[data-deck="ruby"], [data-deck="sky"] {
  --card-l: inline;
  --card-b: none;
  --card-frame: rgba(28, 22, 36, .22);
  --card-edge: 0 1px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .4);
  --card-edge-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --back-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 7.5A14.58 7.92 -90 1 1 50 36.66A14.58 7.92 -90 1 1 50 7.5ZM80.05 19.95A14.58 7.92 -45 1 1 59.43 40.57A14.58 7.92 -45 1 1 80.05 19.95ZM92.5 50A14.58 7.92 0 1 1 63.34 50A14.58 7.92 0 1 1 92.5 50ZM80.05 80.05A14.58 7.92 45 1 1 59.43 59.43A14.58 7.92 45 1 1 80.05 80.05ZM50 92.5A14.58 7.92 90 1 1 50 63.34A14.58 7.92 90 1 1 50 92.5ZM19.95 80.05A14.58 7.92 135 1 1 40.57 59.43A14.58 7.92 135 1 1 19.95 80.05ZM7.5 50A14.58 7.92 180 1 1 36.66 50A14.58 7.92 180 1 1 7.5 50ZM19.95 19.95A14.58 7.92 225 1 1 40.57 40.57A14.58 7.92 225 1 1 19.95 19.95ZM38.33 50a11.67 11.67 0 1 1 23.34 0a11.67 11.67 0 1 1 -23.34 0Z'/%3E%3C/svg%3E");
  --back-mask-s: var(--back-mask-b);
  --back-dot-r: 3.1cqw;

  --jk-o: var(--lowicz-spade); --jk-a: var(--suit-red); --jk-b: var(--lowicz-diamond);
  --jk-c1: var(--lowicz-dot); --jk-c2: var(--lowicz-club); --jk-c3: var(--lowicz-card);
}

[data-deck="sky"] { --jk-o: var(--back-rosette); --jk-a: #3F6FC4; --jk-b: var(--back); --jk-c2: var(--back-rosette); }

[data-deck="coral"] {
  --card-frame: rgba(19, 38, 92, .3);
  --card-edge: 0 1px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .4);
  --card-edge-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --jk-r: var(--back-rosette); --jk-g: var(--back); --jk-y: var(--suit-red); --jk-n: var(--back-rosette);
}


.card {
  container: card / inline-size;
  position: relative; display: flex; flex: none; box-sizing: border-box;
  width: 60px; height: 84px; border-radius: 5px;
  background: var(--card); color: var(--suit-dark); box-shadow: var(--card-edge);
  font-family: var(--font-rank); font-weight: 900; line-height: 1;
}
.card.red { color: var(--suit-red); }
@media (max-width: 480px) {
  .card { width: 54px; height: 76px; }
}
.card.small {
  width: var(--cw, 30px); height: calc(var(--cw, 30px) * 1.43);
  border-radius: max(3px, calc(var(--cw, 30px) * .09)); box-shadow: var(--card-edge-sm);
}


.card:not(.back, .empty)::before {
  content: ''; position: absolute; inset: max(2px, 4.5cqw); border: 1px solid var(--card-frame);
  border-radius: max(2px, 6.75cqw); pointer-events: none;
}


.card .r {
  position: absolute; left: max(2.5px, 8.5cqw); top: max(1.5px, 5cqw); margin: 0;
  font: 900 calc(4px + 30cqw) / 1 var(--font-rank);
}
.card .rk { display: block; font: 900 calc(4px + 30cqw) / 1 var(--font-rank); font-variant-numeric: lining-nums; }
.card .rk.t10 { letter-spacing: -.06em; }
.card .s {
  position: absolute; left: 21cqw; top: calc(56.5% - 29cqw); width: 58cqw; height: 58cqw; margin: 0; overflow: visible;
}

.card.joker .s { left: 13cqw; top: calc(46% - 37cqw); width: 74cqw; height: 74cqw; }
.card.joker .r { left: 0; right: 0; top: auto; bottom: 7cqw; text-align: center; }
.card .jl {
  display: block; white-space: nowrap; color: var(--suit-dark);
  font: 900 max(7.5px, 10cqw) / 1 var(--font-rank); letter-spacing: .16em;
}


.card use.pl { display: var(--card-l, none); }
.card use.pb { display: var(--card-b, inline); }

@container card (width < 46px) {
  .card:not(.back, .empty)::before { content: none; }
  .card .s { left: 18cqw; top: auto; bottom: max(2.5px, 8cqw); width: 64cqw; height: 64cqw; }
  .card.joker .s { left: 15cqw; bottom: auto; top: calc((100% - 7px - max(2px, 6cqw)) / 2 + 1px - 35cqw); width: 70cqw; height: 70cqw; }
  .card.joker .r { bottom: max(2px, 6cqw); }
  .card .jl { font-size: 7px; letter-spacing: .02em; }
  .card use.lv-b { display: none; }
}
@container card (width >= 46px) {
  .card use:is(.lv-s, .lv-m, .lv-l) { display: none; }
}
@container card (width < 30px) {

  .card.joker .r { display: none; }
  .card.joker .s { left: 10cqw; top: calc(50% - 40cqw); width: 80cqw; height: 80cqw; }
}
@container card (width < 28px) {
  .card use.lv-m { display: none; }
}
@container card (width >= 28px) {
  .card use.lv-l { display: none; }
}
#card-art { position: absolute; width: 0; height: 0; overflow: hidden; }


.card.back { border: 0; padding: 0; min-height: 0; background: var(--back); color: inherit; }
.card.back::before {
  content: ''; position: absolute; inset: max(2px, 7cqw); border: 1.2px solid var(--back-frame);
  border-radius: max(2px, calc(9cqw - 2px)); pointer-events: none;
  background: radial-gradient(circle at 50% 45%, var(--back-light) 0%, var(--back) 70%);
}
.card.back::after {
  content: ''; position: absolute; left: 19cqw; top: calc(50% - 31cqw); width: 62cqw; height: 62cqw; pointer-events: none;
  background: radial-gradient(circle, var(--back-dot) var(--back-dot-r), var(--back-rosette) 0);
  -webkit-mask: var(--back-mask-b) center / 100% 100% no-repeat; mask: var(--back-mask-b) center / 100% 100% no-repeat;
}
@container card (width < 46px) {
  .card.back::after { -webkit-mask-image: var(--back-mask-s); mask-image: var(--back-mask-s); }
}





@supports not (container-type: inline-size) {
  .card:not(.back):not(.empty)::before { top: 4%; bottom: 4%; left: 4.5%; right: 4.5%; border-radius: 4px; }
  .card.small:not(.back):not(.empty)::before { content: none; }
  .card .r { left: 9%; top: 3.5%; font-size: 22px; line-height: 1; }
  .card.small .r { font-size: calc(4px + var(--cw, 30px) * .3); }
  .card .rk, .card .jl { font-size: inherit; }
  .card .s { left: 21%; top: auto; bottom: 23%; width: 58%; height: auto; }
  .card.small .s { left: 18%; bottom: 5.5%; width: 64%; }
  .card.joker .s { left: 13%; top: 19%; bottom: auto; width: 74%; }
  .card.joker .r { left: 0; right: 0; top: auto; bottom: 5%; font-size: 7.5px; letter-spacing: .16em; text-align: center; }
  .card.joker.small .r { display: none; }
  .card.joker.small .s { left: 10%; top: 22%; width: 80%; }
  .card use.lv-l, .card:not(.small) use.lv-s, .card:not(.small) use.lv-m, .card.small use.lv-b { display: none; }
  .card.back::before { top: 7%; bottom: 7%; left: 7.5%; right: 7.5%; border-radius: 3px; }
  .card.back::after { content: none; }
  @media (max-width: 480px) {
    .card:not(.small):not(.joker) .r { font-size: 20px; }
  }
}







:root {
  --rim-w: 11px;
  --rim-line-w: 3px;
  --rim-line-style: dotted;
  --rim-line-at: 4px;
  --rim-eyes: block;
  --table-inset: rgba(0, 0, 0, .1);
  --seat-pill: #0F1F4D;
  --seat-pill-border: rgba(247, 242, 230, .28);
  --seat-pill-text: #F7F2E6;
  --seat-c1: #2F7D5B; --seat-t1: #FFFFFF;
  --seat-c2: #D9A441; --seat-t2: #13265C;
  --seat-c3: #6E8FD8; --seat-t3: #13265C;
  --seat-c4: #C8102E; --seat-t4: #FFFFFF;
  --seat-c5: #8EC1EE; --seat-t5: #13265C;
  --seat-c6: #F7F2E6; --seat-t6: #13265C;
}
[data-deck="ruby"], [data-deck="sky"], [data-deck="coral"] {
  --rim-line-w: 1.5px;
  --rim-line-style: solid;
  --rim-eyes: none;
  --seat-pill: rgba(0, 0, 0, .42);
  --seat-pill-border: transparent;
  --seat-pill-text: var(--text);
}
[data-deck="ruby"], [data-deck="sky"] {
  --table-inset: rgba(0, 0, 0, .35);
  --seat-c1: #D6246E; --seat-t1: #FFFFFF;
  --seat-c2: #3F5FD0; --seat-t2: #FFFFFF;
  --seat-c3: #10865A; --seat-t3: #FFFFFF;
  --seat-c4: #F6C343; --seat-t4: #1C1624;
  --seat-c5: #F26B1D; --seat-t5: #1C1624;
  --seat-c6: #8EC1EE; --seat-t6: #1C1624;
}
[data-deck="sky"] { --table-inset: rgba(0, 0, 0, .3); --seat-pill: rgba(0, 0, 0, .38); --seat-c6: #F7F0E4; }
[data-deck="coral"] {
  --table-inset: rgba(0, 0, 0, .3);
  --seat-pill: rgba(0, 0, 0, .38);
  --seat-c1: #2F7D5B; --seat-t1: #FFFFFF;
  --seat-c2: #D9A441; --seat-t2: #13265C;
  --seat-c3: #6E8FD8; --seat-t3: #13265C;
  --seat-c4: #F4A08F; --seat-t4: #7A1730;
  --seat-c5: #8EC1EE; --seat-t5: #13265C;
  --seat-c6: #F6F1E7; --seat-t6: #0A2426;
}
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.history li:last-child { font-weight: 700; color: var(--highlight); }

.result { border-left: 4px solid var(--highlight); }
.result.lose { border-left-color: var(--danger); }

.table { position: relative; width: 100%; aspect-ratio: 16 / 11; margin: 8px 0 4px; }


.felt {
  position: absolute; inset: 10% 6%; border-radius: 50%; isolation: isolate;
  background: var(--table); border: var(--rim-w) solid var(--rim);
  box-shadow: inset 0 0 36px var(--table-inset), 0 14px 30px rgba(0, 0, 0, .32);
}
.felt::before {
  content: ''; position: absolute; inset: calc(var(--rim-line-at) - var(--rim-w)); border-radius: 50%;
  border: var(--rim-line-w) var(--rim-line-style) var(--rim-line);
}

.felt .eye {
  --off: calc(50% + var(--rim-w) / 2);
  display: var(--rim-eyes); position: absolute; z-index: 1; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--rim) 0 20%, var(--bole-honey) 21% 44%, var(--bole-green) 45% 71%, var(--rim-line) 72% 97%, transparent 100%);
}
.felt .eye:nth-child(1) { left: calc(50% + var(--off) * .8192); top: calc(50% + var(--off) * .5736); }
.felt .eye:nth-child(2) { left: calc(50% - var(--off) * .8192); top: calc(50% + var(--off) * .5736); }
.felt .eye:nth-child(3) { left: calc(50% - var(--off) * .8192); top: calc(50% - var(--off) * .5736); }
.felt .eye:nth-child(4) { left: calc(50% + var(--off) * .8192); top: calc(50% - var(--off) * .5736); }
.center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; z-index: 1; color: var(--table-text);
}
.center-label { font-size: .95rem; line-height: 1.25; max-width: 220px; }

.center .decl { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--table-text); }
.center-by { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.3; color: var(--table-text-muted); }
.center .card.cc { box-shadow: 0 0 0 3px var(--highlight), 0 4px 12px rgba(0, 0, 0, .3); }
.seat {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: max-content; max-width: 170px;
}


.seat { --av: 28px; max-width: 230px; }
.seat .name-row {
  padding: 3px 10px 3px 3px; gap: 6px; border-radius: 22px; isolation: isolate;
  background: var(--seat-pill); border: 1px solid var(--seat-pill-border); color: var(--seat-pill-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.seat .name {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.seat .nm { min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.av {
  flex: none; width: var(--av); height: var(--av); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--av) * .5); line-height: 1;
}
.av::before { content: attr(data-i); }
.av.bot::before { content: none; }
.av.bot { border-radius: 7px; }

.seat .av.bot { border-radius: 50%; }
.av.sc1 { background: var(--seat-c1); color: var(--seat-t1); }
.av.sc2 { background: var(--seat-c2); color: var(--seat-t2); }
.av.sc3 { background: var(--seat-c3); color: var(--seat-t3); }
.av.sc4 { background: var(--seat-c4); color: var(--seat-t4); }
.av.sc5 { background: var(--seat-c5); color: var(--seat-t5); }
.av.sc6 { background: var(--seat-c6); color: var(--seat-t6); }

.seat .host-crown {
  position: absolute; z-index: 1; left: calc(3px + var(--av) / 2); top: -10px; transform: translateX(-50%);
  font-size: 15px; line-height: 0; color: var(--highlight);
}
.seat .host-crown .pp-icon { fill: currentColor; stroke: var(--seat-pill-text); stroke-width: 1.6; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.seat .dot-off {
  position: absolute; z-index: 1; left: calc(var(--av) - 6px); top: calc(50% + var(--av) / 2 - 9px); margin: 0;
  width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--seat-pill-text);
}
.seat.turn .name-row { box-shadow: 0 0 0 2.5px var(--highlight), 0 0 14px 2px rgba(var(--highlight-rgb), .45); }
.seat.out { opacity: .4; }
.seat.loser .name-row { background: var(--danger); color: #fff; }

.seat .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.seat-out { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--seat-pill); color: var(--seat-pill-text); }
.seat .seat-kick { background: var(--seat-pill); color: var(--seat-pill-text); box-shadow: inset 0 0 0 1px var(--seat-pill-border); }
.seat-cards {
  --cw: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; width: max-content;
  max-width: calc(5 * var(--cw) + 4 * 3px); perspective: 400px;
}
.seat-cards.side { max-width: calc(3 * var(--cw) + 2 * 3px); }
.seat-cards.side[data-n="4"] { max-width: calc(2 * var(--cw) + 3px); }
.seat-cards.mine { max-width: none; gap: 6px; flex-wrap: nowrap; }
.seat-cards.flip .card { animation: flip .45s ease-out both; }
.seat-cards.flip .card:nth-child(2) { animation-delay: .08s; }
.seat-cards.flip .card:nth-child(3) { animation-delay: .16s; }
.seat-cards.flip .card:nth-child(4) { animation-delay: .24s; }
.seat-cards.flip .card:nth-child(5) { animation-delay: .32s; }
@keyframes flip {
  0% { transform: rotateY(90deg); background: var(--back); color: transparent; }
  49% { color: transparent; }
  100% { transform: rotateY(0); }
}
@media (prefers-reduced-motion: reduce) { .seat-cards.flip .card { animation: none; } }
.bubble {
  font-size: .72rem; background: var(--paper); color: var(--on-light); border-radius: 10px; padding: 2px 8px;
  white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.bubble.top { background: var(--highlight); color: var(--highlight-text); }
.status.mine { border-left: 4px solid var(--highlight); }
.status.lose { border-left: 4px solid var(--danger); }
@media (max-width: 480px) {
  .table { aspect-ratio: 3 / 4; }
  .felt { inset: 9% 3%; }
  .seat { max-width: 170px; --av: 24px; }
  .seat .name-row { padding: 2px 8px 2px 2px; gap: 5px; }
  .seat .name { font-size: .78rem; gap: 5px; }
  .seat .nm { max-width: 84px; }
  .seat .host-crown { left: calc(2px + var(--av) / 2); top: -9px; font-size: 13px; }
  .seat-cards { --cw: 26px; }
  .bubble { max-width: 104px; font-size: .75rem; line-height: 1.2; padding: 1px 7px; }
  .center-label { max-width: 132px; font-size: .85rem; }
  .center .decl { font-size: 1rem; }
  .center-by { font-size: .78rem; }
}
.dot-off { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--offline); margin-left: 2px; vertical-align: middle; }
.seat-cards { --cw: 36px; }
@media (max-width: 480px) {
  .seat-cards { --cw: 30px; }
}

.picker { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 10px; }
.pick-head { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.pick-title { font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.back { min-height: 44px; padding: .5em 1.1em; flex: none; }


.actions { display: flex; gap: 16px; margin-top: 18px; align-items: stretch; }
.actions button { padding: .9em 1em; font-size: 1.05rem; min-height: 52px; }
#call { flex: none; min-width: 120px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
#raise { flex: 1; background: var(--action); color: var(--action-text); }
#raise .what { font-weight: 600; }
#raise:disabled .what { font-weight: 400; }
@media (max-width: 480px) {
  #call { min-width: 96px; }
}


.quads {
  position: absolute; left: 0; top: 0; z-index: 3; padding: 2px 4px; border-radius: 5px;
  background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); font-size: .68rem; line-height: 1; letter-spacing: 1px; opacity: .85;
}

.dir-arrow {
  position: absolute; right: 0; top: 0; z-index: 3; width: 1.7em; height: 1.7em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; cursor: default;
  background: rgba(0, 0, 0, .35); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); opacity: .85;
}
.dir-arrow.ccw { color: var(--highlight); opacity: 1; }
.quads b { color: var(--suit-dark); }
.quads b.r { color: var(--suit-red); }
.toast.joke { background: var(--highlight); color: var(--highlight-text); font-weight: 700; width: min(88vw, 480px); text-align: center; animation-duration: 7.5s; }



.spread {
  --sw0: 40px; --sw: calc(var(--sw0) * var(--fit, 1)); position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 4;
  width: calc(var(--sw) * var(--pw)); height: calc(var(--sw) * var(--ph));
  pointer-events: none;
}
.spread-card {
  position: absolute; left: calc(50% + var(--sw) * (var(--x) - .5)); top: calc(50% + var(--sw) * (var(--y) - .715));
  width: var(--sw); height: calc(var(--sw) * 1.43); padding: 0; border-radius: 5px; font: inherit;
  transform: rotate(var(--r)); transition: transform .15s, box-shadow .15s; pointer-events: auto;
}
.spread-card.live { cursor: pointer; box-shadow: 0 0 0 2px rgba(var(--highlight-rgb), .55), 0 3px 8px rgba(0, 0, 0, .45); }
.spread-card.live:hover, .spread-card.live:focus-visible { transform: translateY(-10%) rotate(var(--r)) scale(1.08); outline: none; }
.spread-card:not(.live) { cursor: default; }
.spread-card.gone { visibility: hidden; }

.spread-card.taking { transform: translateY(-14%) rotate(var(--r)) scale(1.12); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); z-index: 2; pointer-events: none; }

.spread-card.wash { animation: wash .9s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--dl); }
@keyframes wash {
  0% { transform: translate(var(--cx), var(--cy)) rotate(0deg); }
  40% { transform: translate(calc(var(--cx) * .5), calc(var(--cy) * .5)) rotate(calc(var(--r) * 5)); }
  100% { transform: rotate(var(--r)); }
}



#fly { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 11; pointer-events: none; }
.fly-card { position: absolute; transform-style: preserve-3d; will-change: transform; }
.fly-card > .card { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; backface-visibility: hidden; }
.fly-card > .card.back { box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.fly-card > .fly-face { transform: rotateY(180deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.seat-cards .card.landing { visibility: hidden; }

.card.empty { background: transparent; border: 2px dashed var(--table-line); box-shadow: none; }

.seat-cards.mine .card.fresh { animation: flip .45s ease-out both; }

.center-cards { position: relative; display: flex; align-items: center; justify-content: center; }
.card.flip-in { animation: flip .5s ease-out both; }
.muck { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); width: 40px; height: 54px; }
.muck .card { position: absolute; left: 0; top: 0; --cw: 30px; }
.muck .card:nth-child(2) { left: 4px; top: -3px; transform: rotate(8deg); }
.muck .card:nth-child(3) { left: 8px; top: -6px; transform: rotate(-6deg); }
.muck.sweep { animation: sweep .7s ease-out both; }
@keyframes sweep { from { transform: translate(70px, -50%) scale(1.3); opacity: .2; } to { transform: translateY(-50%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .spread-card.wash, .spread-card.taking, .seat-cards.mine .card.fresh, .card.flip-in, .muck.sweep { animation: none; }
}
@media (max-width: 480px) {
  .spread { --sw0: 34px; }

  .spread.dense { --sw0: 27px; z-index: 1; }
  .muck { width: 34px; }
  .muck .card { --cw: 24px; }
}

.spread .card.small.spread-card { width: var(--sw); height: calc(var(--sw) * 1.43); }
.spread .spread-card.community { transform: none; box-shadow: 0 0 0 3px var(--highlight), 0 4px 10px rgba(0, 0, 0, .5); z-index: 1; }
.spread-card.flipping { transform: scale(1.12); box-shadow: 0 0 0 3px #fff; pointer-events: none; }

.controls.actions-only .actions { margin-top: 0; }
#raise { font-weight: 800; letter-spacing: .02em; }
.raise-overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .62);
  display: flex; align-items: flex-end; justify-content: center; padding: 10px;
}
.raise-overlay[hidden] { display: none; }
.raise-panel {
  width: min(480px, 100%); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: var(--sheet); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
}
.raise-panel:focus { outline: none; }
.raise-head { display: flex; align-items: center; gap: 10px; }
.raise-head h2 { margin: 0; color: var(--highlight); font-size: 1.25rem; }
.raise-close { padding: .25em .7em; font-size: 1.2rem; line-height: 1; }
.raise-panel .picker { background: transparent; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pick-list { display: flex; flex-direction: column; gap: 5px; }

.raise-panel .pick-list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.raise-panel .pick-head { margin-bottom: 4px; }
.pick-note { margin: 0 0 6px; }
.raise-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--text-muted); }
.rc-cards { display: inline-flex; gap: 3px; --cw: 24px; }
.rc-cards .card.small .r { font-size: .72rem; }
.rc-cards .card.small .s { font-size: .95rem; }
.pick-row {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; text-align: left;
  min-height: 44px; padding: .45em .7em; background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 600; border-radius: 8px;
}
.pick-row:not(:disabled):hover, .pick-row:not(:disabled):focus-visible { background: rgba(var(--highlight-rgb), .25); outline: none; }
.pick-row.low { opacity: .38; cursor: default; }


.pick-row.low.blocked { opacity: 1; }
.pick-row.blocked > :not(.pr-ex) { opacity: .38; }
.pick-row.blocked .pr-ex { font-style: italic; color: var(--text); }
.pr-num { color: var(--text-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pr-ex { color: var(--text-muted); font-size: .8rem; font-weight: 400; white-space: nowrap; }

.pick-row.val { grid-template-columns: 1fr auto; }
.pick-row.val.red .pr-name { color: var(--danger-text); }
.pick-row.val.on, .pick-row.val.on:hover, .pick-row.val.on:focus-visible { background: var(--selected); color: var(--selected-text); }
.pick-row.val.on .pr-ex { color: var(--selected-text); opacity: .7; }
.pick-row.val.on.red .pr-name { color: var(--suit-red); }
.raise-foot button { width: 100%; min-height: 52px; font-size: 1.05rem; }

#raise-go { background: var(--action); color: var(--action-text); }
@media (min-width: 700px) { .raise-overlay { align-items: center; } }

.host-crown { font-size: .85em; }



@media (max-width: 480px) {
  .table { aspect-ratio: auto; height: clamp(300px, calc(100vh - 250px), calc((100vw - 24px) * 4 / 3)); }
  .play-col > .controls { position: sticky; bottom: 0; z-index: 20; background: var(--sheet); box-shadow: 0 -6px 14px rgba(0, 0, 0, .3); }
}
@supports (height: 100dvh) {
  @media (max-width: 480px) {
    .table { height: clamp(300px, calc(100dvh - 250px - var(--hint-h, 0px)), calc((100vw - 24px) * 4 / 3)); }
  }
}
@media (max-width: 480px) { body:has(.play-col > .controls) #toasts { bottom: 100px; } }

.center-cap { display: block; font-size: .68rem; line-height: 1.2; color: var(--table-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.center-label .center-cap { margin-bottom: 1px; }
@media (max-width: 480px) { .center-cap { font-size: .6rem; } .center { gap: 3px; } .center-label { line-height: 1.15; } }





.play-col, .side-col { display: contents; }
@media (min-width: 900px) {

  body:has(#chat.open:not(.inline):not([hidden])) { padding-right: 340px; }
  #chat:not(.inline) .chat-panel {
    top: 0; right: 0; bottom: 0; width: 340px; height: auto; min-width: 0;
    border-radius: 0; border-width: 0 0 0 1px;
  }

  main:has(> .play-col) {
    max-width: 1140px; display: grid; column-gap: 20px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 330px; padding-top: 8px; padding-bottom: 8px;
  }
  main:has(> .play-col) > * { grid-column: 1 / -1; }
  main:has(> .play-col) > .conn-lost { grid-row: 1; margin: 0 0 8px; }
  main:has(> .play-col) > .head { grid-row: 2; }
  main:has(> .play-col) .head h1 { margin: .15em 0; }
  main:has(> .play-col) > .play-col { grid-column: 1; grid-row: 3; }
  main:has(> .play-col) > .side-col { grid-column: 2; grid-row: 3; display: block; }
  main:has(> .play-col) > p:last-child { grid-row: 4; margin-top: 4px !important; }


  .play-col {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: stretch;
    width: 100%; max-width: calc((100vh - 210px - var(--hint-h, 0px)) * 1.4545); justify-self: center;
  }
  .play-col > .table { grid-column: 1 / -1; margin: 4px 0 0; width: 100%; }
  .play-col > .status { margin: 10px 0 0; }
  .play-col > .status:last-child { grid-column: 1 / -1; }
  .play-col > .controls { margin: 10px 0 0; width: 290px; display: flex; align-items: center; }
  .play-col > .controls .actions { width: 100%; }
  .side-col > * { margin-top: 0; margin-bottom: 10px; }
  .side-col > .row[style] { margin-top: 0 !important; }
  .side-col .history { max-height: 150px; }
}

@media (min-width: 900px) and (max-width: 1259px) {
  body:has(#chat.open:not(.inline):not([hidden])) main:has(> .play-col) { display: block; max-width: 720px; }
  body:has(#chat.open:not(.inline):not([hidden])) .play-col { max-width: none; }
  body:has(#chat.open:not(.inline):not([hidden])) .side-col > :first-child { margin-top: 12px !important; }
}






@property --tl { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --tc { syntax: '<color>'; inherits: false; initial-value: #f4f1e8; }
@property --tk { syntax: '<length>'; inherits: false; initial-value: 3px; }
@property --tr { syntax: '<color>'; inherits: false; initial-value: rgba(0, 0, 0, .55); }
@keyframes tm-drain { from { --tl: 100%; } to { --tl: 0%; } }
@keyframes tm-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tm-warn { from, to { --tc: #ffa31a; --tk: 4px; } }
@keyframes tm-alarm { from, to { --tc: #ff4545; --tk: 5px; --tr: rgba(255, 69, 69, .6); } }
@keyframes tm-pulse { from { opacity: 1; } to { opacity: .5; } }
.name-row { position: relative; }
.tring {
  position: absolute; inset: -3px -4px; border-radius: 16px; padding: var(--tk); pointer-events: none;
  background: conic-gradient(var(--tc) var(--tl), var(--tr) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: tm-drain var(--tt) linear var(--td) forwards, tm-warn .01s linear var(--tw) forwards,
    tm-alarm .01s linear var(--ta) forwards, tm-pulse .45s ease-in-out var(--ta) infinite alternate;
}

.seat .tring {
  inset: auto; left: -1px; top: 50%; width: calc(var(--av) + 8px); height: calc(var(--av) + 8px);
  margin-top: calc((var(--av) + 8px) / -2); border-radius: 50%; z-index: 1;
}
@media (max-width: 480px) { .seat .tring { left: -2px; } }
.tring-off {
  position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); pointer-events: none;
  font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
  padding: 0 5px; border-radius: 6px; background: #3b3b3b; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.panel.timed { position: relative; }
.tbar {
  position: absolute; top: 2px; left: 12px; right: 12px; height: calc(var(--tk) * 2 - 1px); border-radius: 4px; overflow: hidden;
  background: var(--tr); pointer-events: none;
  animation: tm-warn .01s linear var(--tw) forwards, tm-alarm .01s linear var(--ta) forwards;
}
.tbar i {
  display: block; height: 100%; background: var(--tc); transform-origin: left center;
  animation: tm-shrink var(--tt) linear var(--td) forwards, tm-warn .01s linear var(--tw) forwards,
    tm-alarm .01s linear var(--ta) forwards, tm-pulse .45s ease-in-out var(--ta) infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .tring {
    animation: tm-drain var(--tt) steps(var(--ts), end) var(--td) forwards, tm-warn .01s linear var(--tw) forwards,
      tm-alarm .01s linear var(--ta) forwards;
  }
  .tbar i {
    animation: tm-shrink var(--tt) steps(var(--ts), end) var(--td) forwards, tm-warn .01s linear var(--tw) forwards,
      tm-alarm .01s linear var(--ta) forwards;
  }
}







.name-row { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; }


.cnt {
  flex: none; display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; line-height: 1;
  padding: 2px 0; border-radius: 8px; white-space: nowrap; --dot: 7px;
  --dot-on: var(--seat-pill-text); --dot-off: rgba(247, 242, 230, .5);
}
.cnt-dots { display: inline-flex; align-items: center; gap: 2px; }
.cnt-dots i { width: var(--dot); height: var(--dot); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--dot-off); }
.cnt-dots i.on { background: var(--dot-on); box-shadow: none; }
.cnt.danger { background: var(--danger); padding: 3px 4px; --dot-on: #fff; --dot-off: rgba(255, 255, 255, .6); }
.cnt-swap { display: inline-grid; position: relative; }
.cnt-swap .cnt { grid-area: 1 / 1; }

.plus1 {
  position: absolute; left: calc(100% - 4px); top: -13px; z-index: 2; pointer-events: none;
  font-size: .75rem; font-weight: 900; line-height: 1; padding: 2px 4px; border-radius: 6px;
  background: var(--danger); color: #fff; box-shadow: 0 0 0 1.5px var(--seat-pill-text), 0 2px 5px rgba(0, 0, 0, .4);
  animation: rv-plus .45s cubic-bezier(.2, 1.4, .4, 1) calc(var(--stamp, 0s) - var(--el, 0s)) both;
}
@keyframes rv-plus { from { opacity: 0; transform: translateY(8px) scale(.4); } }

.miss-cards {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; --cw: 34px;
  animation: rv-miss .4s ease-out calc(var(--hlat, 0s) - var(--el, 0s)) both;
}
.miss-cards .card.miss { border: 2px dashed var(--table-text-muted); color: var(--table-text); background: transparent; box-shadow: none; }
.miss-cards .card.miss .s { font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.miss-more { font-size: .85rem; font-weight: 800; color: var(--table-text); }
@keyframes rv-miss { from { opacity: 0; transform: scale(.6); } }

.status.v-bluff .rv-late > b:first-child { color: var(--stamp-bad); }
.status.v-exists .rv-late > b:first-child { color: var(--success-text); }




.card.rv::after {
  content: ''; position: absolute; inset: 0; box-sizing: border-box; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--back); border-width: max(2px, 7cqw); box-shadow: inset 0 0 0 1.2px var(--back-frame);
  background: radial-gradient(circle at 50% 45%, var(--back-light) 0%, var(--back) 70%) var(--back);
  animation: rv-cover .5s linear calc(var(--d, 0s) - var(--el, 0s)) both;
}
.card.small.rv::before {
  content: ''; position: absolute; z-index: 1; left: 19cqw; top: calc(50% - 31cqw); width: 62cqw; height: 62cqw;
  border: 0; border-radius: 0; pointer-events: none;
  background: radial-gradient(circle, var(--back-dot) var(--back-dot-r), var(--back-rosette) 0);
  -webkit-mask: var(--back-mask-b) center / 100% 100% no-repeat; mask: var(--back-mask-b) center / 100% 100% no-repeat;
  animation: rv-cover .5s linear calc(var(--d, 0s) - var(--el, 0s)) both;
}
@container card (width < 46px) {
  .card.small.rv::before { -webkit-mask-image: var(--back-mask-s); mask-image: var(--back-mask-s); }
}
.card.rv .r, .card.rv .s { animation: rv-text .5s linear calc(var(--d, 0s) - var(--el, 0s)) both; }
@keyframes rv-cover { 0% { transform: scaleX(1); opacity: 1; } 49.9% { transform: scaleX(0); opacity: 1; } 50%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes rv-text { 0%, 49.9% { opacity: 0; transform: scaleX(0); } 50% { opacity: 1; transform: scaleX(0); } 100% { opacity: 1; transform: scaleX(1); } }

.card.hl, .card.dim { animation-duration: .45s; animation-fill-mode: both; animation-delay: calc(var(--hlat, 0s) - var(--el, 0s)); }
.card.hl { animation-name: rv-hl; z-index: 1; transform: scale(1.07); box-shadow: 0 0 0 3px var(--glow), 0 0 16px 5px rgba(var(--glow-rgb), .8); }
.card.hl.bad { animation-name: rv-hl-bad; box-shadow: 0 0 0 3px var(--glow-bad), 0 0 14px 4px rgba(var(--glow-bad-rgb), .65); }
.card.dim { animation-name: rv-dim; opacity: .32; filter: grayscale(.7) brightness(.85); }
@keyframes rv-hl { from { transform: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); } }
@keyframes rv-hl-bad { from { transform: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); } }
@keyframes rv-dim { from { opacity: 1; filter: none; } }



.stamp {
  display: inline-block; margin-top: 8px; padding: 6px 16px 5px; border: 3px solid currentColor; border-radius: 6px; white-space: nowrap;
  outline: 1.5px solid currentColor; outline-offset: -7px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; letter-spacing: .05em;
  background: var(--paper); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: rotate(-7deg);
  animation: rv-slam .35s cubic-bezier(.2, 1.4, .4, 1) calc(var(--stamp, 0s) - var(--el, 0s)) both;
}
.stamp.bluff { color: var(--suit-red); }
.stamp.exists { color: var(--bole-green); }
@keyframes rv-slam { from { opacity: 0; transform: rotate(-7deg) scale(2.6); } 60% { opacity: 1; } }

.ko {
  position: absolute; left: 50%; top: 42%; z-index: 3; transform: translate(-50%, -50%) rotate(-10deg); pointer-events: none;
  font-weight: 900; font-size: 1.5rem; letter-spacing: .08em; color: #fff; background: var(--danger); border: 3px solid #fff;
  border-radius: 8px; padding: 0 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  animation: rv-ko .4s cubic-bezier(.2, 1.4, .4, 1) calc(var(--ko, 0s) - var(--el, 0s)) both;
}
@keyframes rv-ko { from { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(3); } }
.seat.ko-seat .seat-cards { animation: rv-shake .4s linear calc(var(--ko, 0s) - var(--el, 0s)) both; }
@keyframes rv-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }


.seat.loser-rv .name-row { color: #fff; }
.seat.loser-rv .name-row::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--danger);
  animation: rv-red .3s linear calc(var(--stamp, 0s) - var(--el, 0s)) both;
}
@keyframes rv-red { from { opacity: 0; } }
.cnt-swap .c-old { animation: rv-gone .01s linear calc(var(--stamp, 0s) - var(--el, 0s)) both; }
.cnt-swap .c-new { animation: rv-pop .4s cubic-bezier(.2, 1.4, .4, 1) calc(var(--stamp, 0s) - var(--el, 0s)) both; }
@keyframes rv-gone { to { opacity: 0; } }
@keyframes rv-pop { from { opacity: 0; transform: scale(2.2); } }
.status.rv-on .rv-late { animation: rv-late .3s linear calc(var(--stamp, 0s) - var(--el, 0s)) both; }
@keyframes rv-late { from { opacity: 0; } }

.status.lose.rv-on { animation: rv-lose .3s linear calc(var(--stamp, 0s) - var(--el, 0s)) both; }
@keyframes rv-lose { from { border-left-color: transparent; } }

@media (max-width: 480px) {
  .stamp { font-size: 1.3rem; padding: 5px 12px 4px; outline-offset: -6px; }
  .ko { font-size: 1.2rem; }
  .cnt { font-size: .75rem; --dot: 6px; }
  .table.rv-on .center-label { max-width: none; }
  .miss-cards { --cw: 28px; margin-left: 8px; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.rv::after { display: none; }
  .card.rv::before { display: none; }
  .card.rv .r, .card.rv .s, .card.hl, .card.dim, .stamp, .ko, .seat.ko-seat .seat-cards, .seat.loser-rv .name-row::before,
  .cnt-swap .cnt, .plus1, .miss-cards, .status.rv-on .rv-late, .status.lose.rv-on { animation: none; }
  .stamp { transform: rotate(-7deg); }
  .cnt-swap .c-old { display: none; }
}




.howto-row { margin: 14px 0 0; }
.tut-overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .62);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.tut-overlay[hidden] { display: none; }
body.tut-open { overflow: hidden; }
.tut-panel {
  width: min(460px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
}
.tut-head { display: flex; align-items: center; justify-content: space-between; }
.tut-close { padding: .25em .7em; font-size: 1.2rem; line-height: 1; }
.tut-panel h2 { color: var(--highlight); margin: .3em 0 .5em; font-size: 1.3rem; }

.tut-body { min-height: 220px; line-height: 1.5; flex-shrink: 0; }
.tut-body p { margin: .55em 0; }
.tut-cards { --cw: 36px; display: flex; gap: 5px; flex-wrap: wrap; margin: 4px 0 10px; }
.tut-example { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 6px; }
.tut-example > div { display: flex; flex-direction: column; gap: 3px; }
.tut-example .tut-cards { margin: 0; }
.tut-bids { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 10px; }
.tut-bids span { background: var(--paper); color: var(--on-light); border-radius: 10px; padding: 3px 9px; font-size: .85rem; font-weight: 600; }
.tut-bids span:last-of-type { background: var(--highlight); }
.tut-bids i { font-style: normal; color: var(--text-muted); }
.tut-rank { margin: .2em 0 .4em 1.3em; padding: 0; line-height: 1.55; font-size: .92rem; }
.tut-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tut-foot button { min-height: 44px; padding: .6em 1.1em; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.tut-dots i.on { background: var(--highlight); }
@media (max-width: 480px) {
  .tut-panel { padding: 12px 13px 14px; }
  .tut-body { min-height: 250px; font-size: .95rem; }
  .tut-cards { --cw: 32px; }
  .tut-dots { gap: 4px; }
}
.tut-more { margin: 10px 0 0; text-align: center; }




.tut-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tut-body .small { font-size: .85rem; }
.tut-tight { margin: .35em 0 !important; }
.tut-note { margin: 10px 0 0 !important; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--highlight) 13%, transparent); }
.tut-op { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--highlight); flex: none; }
.tut-st { font-family: var(--font-display); font-weight: 700; color: var(--highlight); }
.tut-body .card.tut-hit { box-shadow: 0 0 0 2px var(--glow), 0 0 10px 2px rgba(var(--glow-rgb), .55); }
.tut-body .card.tut-miss { opacity: .38; filter: grayscale(.7); }
.tut-body .card.tut-new { box-shadow: 0 0 0 2px var(--highlight); }


.tut-pool { --pool-cw: 36px; display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 8px; }
.tut-pool > .tut-op { margin-top: calc(var(--pool-cw) * .72 - .6em); }
.tut-pool-part { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; line-height: 1.2; color: var(--text-muted); text-align: center; }
.tut-pool-part .tut-cards { --cw: var(--pool-cw); margin: 0; flex-wrap: nowrap; }
.tut-pool-sum b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--highlight); color: var(--highlight-text); font-family: var(--font-display); font-size: 1.4rem;
}
.tut-pool-sum span { color: var(--text); font-weight: 700; }


.tut-steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: tut-step; }
.tut-steps > li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-bottom: 10px; counter-increment: tut-step; line-height: 1.4; }
.tut-steps > li:not(:last-child)::before {
  content: ''; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; border-radius: 1px;
  background: color-mix(in srgb, var(--highlight) 45%, transparent);
}
.tut-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--highlight); color: var(--highlight-text); font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.tut-num::before { content: counter(tut-step); }
.tut-steps > li.tut-call .tut-num { background: var(--danger); color: var(--text); }
.tut-steps .tut-bids, .tut-steps .tut-cards { margin: 5px 0 0; }


.tut-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.tut-verdict > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px 9px; border-radius: 10px;
  background: var(--paper); color: var(--on-light); font-size: .85rem; line-height: 1.3;
}
.tut-stamp {
  display: inline-block; padding: 0 6px; border: 2px solid; border-radius: 6px; transform: rotate(-3deg);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-transform: uppercase;
}
.tut-yes .tut-stamp { color: var(--bole-green); }
.tut-no .tut-stamp { color: var(--suit-red); }


.tut-loss { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 6px; margin: 8px 0 0; }
.tut-loss > .tut-op { align-self: center; }
.tut-plus, .tut-out { display: flex; flex-direction: column; gap: 5px; padding: 7px 9px; border-radius: 10px; font-size: .85rem; line-height: 1.3; }
.tut-plus { background: color-mix(in srgb, var(--text) 8%, transparent); }
.tut-plus .tut-cards { --cw: 26px; margin: 0; }
.tut-out { background: var(--danger); color: var(--text); }
.tut-out-tag { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; line-height: 1.1; }


.tut-limits { width: 100%; border-collapse: separate; border-spacing: 0 5px; margin: 0 0 4px; font-size: .9rem; }
.tut-limits thead th { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 0 10px; }
.tut-limits tbody th, .tut-limits td { padding: 8px 10px; background: color-mix(in srgb, var(--text) 8%, transparent); text-align: left; font-weight: 400; }
.tut-limits tbody th { border-radius: 10px 0 0 10px; }
.tut-limits td { border-radius: 0 10px 10px 0; white-space: nowrap; }
.tut-limits td b { font-family: var(--font-display); font-size: 1.2rem; color: var(--highlight); margin-right: 3px; }
.tut-people, .tut-pips { display: flex; gap: 2px; margin-bottom: 4px; }
.tut-people i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.tut-pips i { width: 7px; height: 10px; border-radius: 2px; background: var(--highlight); }


.tut-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.tut-chips span { padding: 1px 8px; border-radius: 8px; background: var(--danger); color: var(--text); font-size: .72rem; font-weight: 700; }
.tut-ladder-head { display: flex; justify-content: space-between; padding: 0 6px 2px 36px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.tut-ladder { list-style: none; margin: 0; padding: 0; }
.tut-ladder > li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  min-height: 25px; padding: 1px 6px; border-radius: 7px; line-height: 1.15;
}
.tut-ladder > li:nth-child(odd) { background: color-mix(in srgb, var(--text) 7%, transparent); }
.tut-lad-n {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--text) 40%, transparent); font-family: var(--font-display); font-weight: 700; font-size: .75rem;
}
.tut-ladder > li:nth-child(-n+3) .tut-lad-n { border: 0; background: var(--highlight); color: var(--highlight-text); }
.tut-lad-name b { font-family: var(--font-display); font-size: .95rem; }
.tut-lad-note { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.tut-lad-note.key { color: var(--highlight); font-weight: 700; }
.tut-lad-say, .tut-lad-ex { display: none; }
.tut-need { display: flex; align-items: center; gap: 5px; }
.tut-need .tut-pips { width: 43px; justify-content: flex-end; margin: 0; }
.tut-need .tut-pips i { width: 6px; height: 9px; border-radius: 1.5px; }
.tut-need b { font-family: var(--font-display); font-size: .95rem; min-width: .7em; text-align: right; }


.tut-stairs { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); align-items: end; gap: 5px; margin: 8px 0 4px; padding: 0; }

.tut-stairs { grid-template-rows: auto auto; row-gap: 4px; }
.tut-stairs > li { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.tut-stairs .tut-bar { align-self: end; }
.tut-bar {
  display: flex; justify-content: center; padding-top: 4px; box-sizing: border-box; border-radius: 8px 8px 3px 3px;
  height: calc(18px + var(--i) * 17px); color: var(--text);
  background: color-mix(in srgb, var(--highlight) calc(10% + var(--i) * 15%), var(--sheet));
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1;
}
.tut-stairs > li:nth-child(n+4) .tut-bar { color: var(--highlight-text); }
.tut-stairs > li.tut-here .tut-bar { outline: 2px solid var(--text); outline-offset: 2px; }
.tut-unlock { font-size: .7rem; line-height: 1.25; color: var(--text-muted); overflow-wrap: anywhere; hyphens: auto; }
.tut-stairs > li.tut-here .tut-unlock { color: var(--text); font-weight: 700; }


.tut-rule + .tut-rule { margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--text) 15%, transparent); }
.tut-rule .tut-bids, .tut-rule .tut-cards { margin: 5px 0 0; }
.tut-rule p { margin: .3em 0 0; }


@media (max-width: 480px) {
  .tut-body .tut-pool { --pool-cw: 30px; }
  .tut-body .tut-example .tut-cards { --cw: 30px; }
  .tut-foot button { padding: .6em .85em; white-space: nowrap; }
}
@media (max-width: 360px) {

  .tut-foot { gap: 6px; }
  .tut-foot button { padding: .6em .7em; }
  .tut-dots { gap: 2px; }
  .tut-dots i { width: 5px; height: 5px; }
  .tut-pool { gap: 6px; }
}
@media (max-height: 700px) {
  .tut-lad-note:not(.key) { display: none; }
  .tut-steps > li { padding-bottom: 7px; }
  .tut-body .small { font-size: .8rem; }
  .tut-body .tut-example .tut-cards { --cw: 24px; }
  .tut-example { gap: 10px; margin: 2px 0; }
  .tut-example .small { font-size: .72rem; }
  .tut-verdict, .tut-loss { margin-top: 6px; }
  .tut-verdict > div, .tut-plus, .tut-out { padding: 5px 8px; font-size: .78rem; line-height: 1.25; }
  .tut-stamp { font-size: .82rem; }
  .tut-plus .tut-cards { --cw: 20px; }
  .tut-out-tag { font-size: 1.05rem; }
}

@media (min-width: 720px) and (min-height: 740px) {
  .tut-panel { width: min(560px, 100%); }
  .tut-ladder > li { grid-template-columns: 20px minmax(0, 1fr) auto auto; min-height: 34px; }
  .tut-lad-say, .tut-lad-ex { display: block; }
}
.tut-sheet .tut-ladder > li { grid-template-columns: 20px minmax(0, 1fr) auto auto; min-height: 34px; }
.tut-sheet .tut-lad-say, .tut-sheet .tut-lad-ex { display: block; }
.tut-sheet .tut-online { display: none; }
.tut-lad-say { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.tut-lad-ex .tut-cards { --cw: 21px; gap: 2px; margin: 0; flex-wrap: nowrap; }

.pp-hint { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--on-light); border-radius: 12px; padding: 8px 8px 8px 12px; font-size: .9rem; line-height: 1.35; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); border-left: 5px solid var(--highlight); }
.pp-hint[hidden] { display: none; }
@media (min-width: 900px) { .play-col > .pp-hint { grid-column: 1 / -1; margin: 10px 0 0; } }

@media (max-width: 480px) {
  .play-col > .pp-hint { margin-top: 26px; }
  .play-col > .pp-hint.turn:not([hidden]) + .status.mine { display: none; }
}
.pp-hint-text { flex: 1; }
.pp-hint button { background: var(--bg); color: var(--text); border: 0; flex: none; padding: .35em .8em; min-height: 36px; }

.tut-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--highlight); color: var(--highlight-text); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-weight: 700; }
.tut-go span { flex: 1 1 180px; }
.tut-go button { background: var(--on-light); color: #fff; border: 0; min-height: 44px; padding: .4em .9em; font-weight: 700; }



.players { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.players li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.players li.turn { outline: 2px solid var(--highlight); }
.players li.out { opacity: .45; text-decoration: line-through; }
.backs { letter-spacing: 2px; color: var(--highlight); }
.tag { font-size: .75rem; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); }
.tag.off { background: var(--danger); }



.bot-block .label { font-size: .85rem; color: var(--text-muted); }
.bot-block .seg button { flex: 1 1 70px; }
#addbot { width: 100%; min-height: 44px; margin-top: 8px; }
.bot-block p { margin: .4em 0 0; }
.bot-block .bot-list { margin-top: 10px; }
.bot-list button { min-height: 44px; }
.button-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4em .9em; border-radius: 8px; background: var(--btn2-bg); box-shadow: inset 0 0 0 1px var(--btn2-line); color: var(--text); font-weight: 600; text-decoration: none; }




.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 14px 14px 16px; margin: 6px 0 12px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--highlight-rgb), .2), rgba(0, 0, 0, .18) 72%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.fan { position: relative; width: 220px; height: 84px; margin: 4px auto 20px; }
.fan .card {
  position: absolute; left: 50%; bottom: 0; width: 46px; height: 64px; margin-left: -23px; border-radius: 6px;
  transform-origin: 50% 100%; transform: translateX(calc(var(--i) * 27px)) translateY(calc(var(--i) * var(--i) * 3px)) rotate(calc(var(--i) * 10deg));
  animation: fan .7s cubic-bezier(.2, .8, .3, 1.25) calc(.1s + var(--k) * .07s) both;
}
@keyframes fan { from { transform: rotate(0) translateY(36px); opacity: 0; } }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--highlight); }
.winner-av {
  --av: 58px; margin: 10px auto 6px; box-shadow: 0 0 0 3px var(--highlight), 0 4px 14px rgba(0, 0, 0, .35);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.35) .2s both;
}
.winner-name {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1.1; margin: 0 0 6px;
  overflow-wrap: anywhere; color: var(--text); text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.35) .3s both;
}
.winner-name.long { font-size: clamp(1.6rem, 8vw, 2.3rem); }
.winner-name .wn-bot { color: var(--highlight); }

.winner-name .wn-emoji { -webkit-text-fill-color: initial; color: initial; background: none; }
@keyframes pop { from { transform: scale(.35); opacity: 0; } }
.winner-meta { font-weight: 700; }
.winner-you { margin-top: 2px; color: var(--highlight); font-weight: 600; }
.winner-last { margin: 8px auto 0; max-width: 520px; color: var(--text-muted); }
.rosettes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ros-defs { position: absolute; }
.ros {
  position: absolute; top: -2rem; left: var(--x); width: var(--s); height: var(--s); opacity: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); animation: fall var(--d) linear var(--delay) both;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(440px) rotate(var(--r)); opacity: 0; }
}
.hero.calm, .hero.calm * { animation: none !important; }
.hero.calm .rosettes { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero, .hero * { animation: none !important; }
  .rosettes { display: none; }
}

.end-actions { display: grid; gap: 12px; text-align: center; }
.end-actions .big { width: 100%; }
.waiting, .dl-challenge { margin: 0; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 600; }
.end-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.end-buttons button { min-height: 46px; padding: .55em .5em; }
.next-game { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-size: .85rem; }
.chip.off { outline: 1px dashed rgba(255, 90, 90, .7); }
.chip-x { padding: 0 6px; line-height: 1.3; border-radius: 10px; background: var(--danger); color: #fff; font-size: .85rem; }

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 14px 0 4px; }
.award { display: flex; gap: 10px; align-items: center; background: var(--panel-bg); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--panel-line); }

.award-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--highlight-rgb), .16); color: var(--highlight); }
.award-icon .pp-icon { width: 24px; height: 24px; }
.award-title { font-family: var(--font-display); font-weight: 700; color: var(--highlight); font-size: .95rem; }
.award-who { font-weight: 700; overflow-wrap: anywhere; }
.award-why { font-size: .78rem; color: var(--text-muted); }

.standings { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: -6px; }
.standings th { font-size: .75rem; color: var(--text-muted); font-weight: 600; padding: 0 6px; text-align: center; vertical-align: bottom; }
.standings th.who { text-align: left; }
.standings td { background: var(--panel-bg); padding: 9px 8px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.standings td:first-child { border-radius: 10px 0 0 10px; }
.standings td:last-child { border-radius: 0 10px 10px 0; }
.standings td.who { text-align: left; font-weight: 400; }
.standings tr.me td { background: rgba(var(--highlight-rgb), .16); }
.standings tr.gone td { opacity: .7; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.phrases { margin-top: 12px; justify-content: center; }
.phrases button { padding: .45em .8em; }
.place {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); font-weight: 800;
}
tr.p1 .place { background: var(--highlight); color: var(--highlight-text); }
tr.p2 .place { background: var(--silver); color: var(--on-light); }
tr.p3 .place { background: var(--bronze); color: var(--on-light); }
.how { font-size: .75rem; color: var(--text-muted); }
.how.left { color: var(--danger-text); }
.of { color: var(--text-muted); font-weight: 400; }
.stat-label { display: none; }
.show-table { margin-top: 10px; position: relative; z-index: 2; }


@media (max-width: 560px) {
  .standings thead { display: none; }
  .standings, .standings tbody { display: block; margin: 0; }
  .standings tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 8px; padding: 10px 12px;
    border-radius: 12px; background: var(--panel-bg); box-shadow: inset 0 0 0 1px var(--panel-line);
  }
  .standings tr.me { background: rgba(var(--highlight-rgb), .16); }
  .standings td, .standings tr.me td { background: none; padding: 0; border-radius: 0 !important; text-align: left; }
  .standings td.who { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .standings td:not(.who) { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
  .stat-label { display: inline; font-size: .78rem; font-weight: 400; color: var(--text-muted); }
  .end-buttons button { font-size: .92rem; }
}

.host-panel .setting { margin: 10px 0 0; }
.host-panel .setting:first-of-type { margin-top: 6px; }
.host-panel .label { font-size: .85rem; color: var(--text-muted); }
.host-panel .seg button { flex: 1 1 70px; }
.mute-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.mute-list li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.mute-list li span { flex: 1; overflow-wrap: anywhere; }
.mute-list button.on { background: var(--danger); color: #fff; }





.lobby-wrap .panel { border-radius: 12px; }
.lobby-wrap .players li { min-height: 46px; padding: 6px 8px 6px 6px; border-radius: 10px; background: var(--panel-bg); box-shadow: inset 0 0 0 1px var(--panel-line); }
.lobby-wrap .players .av { --av: 32px; }
.lobby-wrap .players .av.bot { border-radius: 9px; }
.lobby-wrap .players .grow { font-weight: 600; }
.lobby-wrap .players .grow > .bot-ico { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lobby-wrap .players .tag { font-weight: 700; }
.lobby-wrap #share, .lobby-wrap #start, .lobby-wrap #joinnext { width: 100%; min-height: 50px; border-radius: 12px; font-weight: 800; }
.lobby-wrap #link { min-height: 44px; }
.lobby-wrap #copy, .lobby-wrap #qr { min-height: 44px; border-radius: 10px; }
.deck-panel .deck-setting { margin: 0; }
.lobby-side > #leave { min-height: 44px; }

.host-panel > summary { display: flex; align-items: center; gap: 2px; min-height: 44px; font-size: 1rem; font-weight: 700; list-style: none; }
.host-panel > summary::-webkit-details-marker { display: none; }
.host-panel > summary::after {
  content: ''; width: 8px; height: 8px; margin: 0 6px 0 auto; border: solid var(--text-muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.host-panel[open] > summary::after { transform: rotate(225deg) translate(-2px, 0); }
@media (min-width: 900px) {
  main:has(> .lobby-wrap) { max-width: 1080px; }
  .lobby-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 28px; align-items: start; }
  .lobby-wrap > .head { grid-column: 1 / -1; }
  .lobby-side > :first-child { margin-top: 12px; }
}

.winner-match { margin-top: 6px; font-weight: 700; color: var(--highlight); }
.match-table .stat b { color: var(--highlight); }

.seg:has([data-match]) button { flex: 1 1 0; min-width: 0; padding: .55em .25em; }
#share { width: 100%; }


main:has(#start:not(:disabled), #joinnext) #share, #start:disabled { background: var(--btn2-bg); box-shadow: inset 0 0 0 1px var(--btn2-line); color: var(--text); }

.room-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; margin-left: 4px; }
.room-badges > span { font-size: .8rem; font-weight: 600; color: var(--text-muted); background: rgba(0, 0, 0, .25); border-radius: 999px; padding: .15em .6em; white-space: nowrap; }
.room-badges .badge-lock { color: var(--highlight); }
.panel.blocked { border-left: 4px solid var(--highlight); }
.panel.blocked .row { flex-wrap: wrap; gap: 8px; margin-top: 10px; }


.end-actions .share-result { width: 100%; min-height: 46px; }



.brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; }
.brand-mark svg { display: block; width: 54px; height: 54px; }
.brand-mark svg > rect { fill: transparent; }
.brand-title { margin: 0; font-size: 1.75rem; line-height: 1; }
.brand-sub { display: block; margin-top: 5px; font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--highlight); }
.brand-rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; }
.brand-rule i { width: 70px; height: 1px; background: var(--text-muted); opacity: .5; }
.brand-rule b { width: 5px; height: 5px; transform: rotate(45deg); background: var(--text-muted); opacity: .5; }
.brand-rule ellipse { fill: var(--suit-red); }
.brand-rule circle { fill: var(--highlight); }

.home-hero { display: flex; justify-content: center; align-items: flex-end; height: 104px; margin: 4px 0 0; }
.home-hero-card { position: relative; display: block; transform-origin: 50% 100%; animation: home-hero-deal .6s ease-out backwards; animation-delay: calc(var(--i) * 90ms); }
.home-hero-card:nth-child(1) { transform: rotate(-12deg) translate(12px, 8px); }
.home-hero-card:nth-child(2) { transform: translateY(-4px); z-index: 1; }
.home-hero-card:nth-child(3) { transform: rotate(12deg) translate(-12px, 8px); }
.home-hero-card .card.small { --cw: 58px; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
@keyframes home-hero-deal { from { opacity: 0; transform: translateY(-30px) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .home-hero-card { animation: none; } }
.tagline { text-align: center; font-size: 1.05rem; line-height: 1.4; margin: 14px 6px 6px; }
.home-hero-links { text-align: center; margin: 0 0 14px; }

.home-name label { display: block; margin: 0 2px 6px; }
.home-name input { display: block; width: 100%; min-height: 48px; border-radius: 14px; padding: 0 14px; font-size: 1rem; }



.home-modes { display: grid; gap: 12px; margin: 14px 0 12px; }
.home-mode { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: var(--panel-bg); border: 1px solid var(--panel-line); box-shadow: none; }
.mode-head { display: flex; align-items: center; gap: 10px; }
.mode-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.mode-ico.gold { background: rgba(var(--highlight-rgb), .16); color: var(--highlight); }
.mode-ico.square { border-radius: 11px; background: rgba(255, 255, 255, .12); color: var(--text); }
.mode-ico.red { background: rgba(var(--danger-rgb), .2); color: var(--danger-text); }
.home-mode h2 { margin: 0; font-size: 1.2rem; color: var(--text); }
.home-mode h2 .small { font-family: var(--font-ui); font-weight: 400; }
.home-mode .mode-desc { margin: 2px 0 0; line-height: 1.35; }
.home-mode > .big { width: 100%; margin-top: auto; min-height: 54px; border-radius: 16px; }
.home-mode #create { font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(0, 0, 0, .3); }
button.outline { background: transparent; border: 1.5px solid var(--btn-outline-line); color: var(--text); }
button.outline:hover { border-color: var(--text); }
.home-mode .practice-opts { margin: 0; }
.home-mode .practice-opt .seg button { min-height: 44px; border-radius: 12px; }
@media (min-width: 640px) and (max-width: 899px) {
  .home-modes { grid-template-columns: 1fr 1fr; }
  .home-daily { grid-column: 1 / -1; }
}
.home-code, .invite-panel { border-radius: 18px; border: 1px solid var(--panel-line); box-shadow: none; }
.invite-panel { padding: 16px; }
.invite-panel p { margin: 0 0 12px; line-height: 1.4; }
.invite-panel label { display: block; margin: 0 2px 6px; }
.invite-panel .row + p { margin: 10px 0 0; }
:is(.home-code, .invite-panel) input { min-height: 48px; border-radius: 14px; }
:is(.home-code, .invite-panel) button { min-height: 48px; border-radius: 14px; }

@media (min-width: 900px) {
  main:has(> .home) { max-width: 1080px; padding-top: 28px; }
  .home {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start;
    grid-template-areas: "intro modes" "name modes" "code modes" "rank rank" "foot foot"; grid-template-rows: auto auto 1fr auto auto;
  }
  .home-intro { grid-area: intro; }
  .home-name { grid-area: name; }
  .home-code { grid-area: code; }
  .home-modes { grid-area: modes; margin: 0; }
  .home > details { grid-area: rank; }
  .home > p:last-child { grid-area: foot; }
  .brand-mark svg { width: 64px; height: 64px; }
  .brand-title { font-size: 2.2rem; }
  .home-hero { height: 128px; }
  .home-hero .card.small { --cw: 72px; }
}

.practice-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.practice-opt { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; }
.practice-opt .seg { flex: 1; margin-top: 0; gap: 4px; flex-wrap: nowrap; }
.practice-opt .seg button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: .4em .2em; }
.practice-opt > span { min-width: 3em; }

body.practice .host-crown { display: none; }
.practice-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }

.end-actions .share-row { display: flex; gap: 8px; }
.end-actions .share-row .share-result { flex: 1; width: auto; }

.dl-head h1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }

.dl-back { color: var(--highlight); text-decoration: none; font-size: 1.8rem; line-height: 1; padding: 0 17px; margin: 0 -16px 0 -12px; }
.dl-tag { margin: 2px 0 8px; text-align: left; color: var(--highlight); font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.dl-dots { display: flex; gap: 6px; margin: 4px 0 8px; }
.dl-dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.dl-dot.now { box-shadow: 0 0 0 2px var(--highlight); }
.dl-dot.ok { background: var(--success); }
.dl-dot.bad { background: var(--danger); }

.dl-panel { padding: 12px; border-radius: 18px; border: 1px solid var(--panel-line); box-shadow: none; }
.dl-q { margin: 12px 0 4px; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.dl-table {
  --cw: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 8px;
  border-radius: 90px / 60px; background: var(--table); color: var(--table-text); box-shadow: inset 0 0 0 7px var(--rim), inset 0 0 18px var(--table-inset), 0 8px 20px rgba(0, 0, 0, .3);
  outline: 2px dotted var(--rim-line); outline-offset: -5px;
}
body.daily { overflow-x: hidden; }
.dl-opps { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dl-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.dl-name { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 4px; }
.dl-cards { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: calc(4 * var(--cw) + 12px); }
.dl-seat.mine .dl-cards { --cw: 50px; gap: 6px; max-width: none; }
.dl-cards.five { max-width: calc(3 * var(--cw) + 9px); }
.dl-count .dl-seat.mine .dl-cards { --cw: 40px; }
.dl-says {
  position: relative; margin-top: 4px; background: var(--paper); color: var(--on-light); font-weight: 700; font-size: .85rem; line-height: 1.25;
  padding: 4px 8px; border-radius: 8px; max-width: 170px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.dl-says::before { content: ''; position: absolute; left: 50%; top: -6px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--paper); }
.dl-center { display: flex; align-items: center; justify-content: center; gap: 22px; }
.dl-comm, .dl-inplay { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dl-comm .card.small { --cw: 44px; box-shadow: 0 0 0 3px var(--highlight), 0 4px 10px rgba(0, 0, 0, .5); }
.dl-inplay b { font-size: 2rem; line-height: 1; color: var(--table-highlight); }
.dl-table .muted { color: var(--table-text-muted); }
.dl-help { margin: 0 0 10px; }

.dl-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .dl-opts { grid-template-columns: 1fr 1fr; } .dl-order .dl-opts { grid-template-columns: 1fr; } }
.dl-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left;
  background: rgba(0, 0, 0, .22); color: inherit; border: 2px solid rgba(255, 255, 255, .16); border-radius: 14px; font-weight: 700;
}
.dl-opt:not([disabled]):hover { border-color: var(--highlight); }
.dl-opt[disabled] { opacity: 1; cursor: default; }
.dl-ot { flex: 1; }
.dl-nr {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); font-size: .85rem;
}
.dl-nr.empty { background: none; border: 2px dashed rgba(255, 255, 255, .3); }
.dl-opt.on { border-color: var(--highlight); }
.dl-opt.on .dl-nr { background: var(--highlight); color: var(--highlight-text); }
.dl-opt.right { border-color: var(--success); background: rgba(var(--success-rgb), .22); }
.dl-opt.right .dl-nr { background: var(--success); }
.dl-opt.wrong { border-color: var(--danger); background: rgba(var(--danger-rgb), .22); }
.dl-opt.wrong .dl-nr { background: var(--danger); }
.dl-opt.dim { opacity: .6; }
.dl-pct { flex: none; font-weight: 600; font-size: .85rem; opacity: .9; }
.dl-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dl-actions button { flex: 1 1 200px; min-height: 48px; border-radius: 14px; }
.dl-actions #dl-reset { flex: 0 1 120px; }
.dl-after { margin-top: 4px; }
.dl-why { line-height: 1.45; margin: 0; }
.dl-invite { margin: 0; }
.dl-challenge { margin: 10px 0; text-align: center; }
.invite-alt { display: block; margin-top: 8px; }
.invite-alt a { display: inline-block; padding: 8px 10px 8px 2px; white-space: nowrap; }
.dl-verdict { font-size: 1.25rem; font-weight: 800; margin: 12px 0 4px; }
.dl-verdict.ok { color: var(--success-text); }
.dl-verdict.bad { color: var(--danger-text); }
.dl-same { text-align: center; }
.dl-score { font-family: var(--font-display); font-size: 3rem; margin: 0; color: var(--highlight); line-height: 1.1; }
.dl-done { text-align: center; }

.dl-mark { display: inline-block; width: .9em; height: .9em; border-radius: 3px; vertical-align: -.1em; }
.dl-mark.ok { background: var(--success); }
.dl-mark.bad { background: var(--danger); }
.dl-list { text-align: left; list-style: none; padding: 0; margin: 10px auto; max-width: 480px; display: grid; gap: 4px; }
@media (max-width: 480px) {
  .dl-table { --cw: 34px; border-radius: 40px / 30px; padding: 12px 4px; gap: 10px; }
  .dl-seat.mine .dl-cards { --cw: 46px; }
  .dl-count .dl-seat.mine .dl-cards { --cw: 34px; }
  .dl-opps { gap: 8px; }
  .dl-seat { min-width: 60px; }
  .dl-says { font-size: .8rem; max-width: 130px; }
}

@media (max-width: 480px) {
  .dl-head h1 { margin-top: 0; }
  .dl-tag { margin: 0 0 4px; }
  .dl-dots { margin: 2px 0 6px; }
  .dl-dot { width: 18px; height: 18px; }
  .dl-panel { padding: 10px; margin-top: 8px; }
  .dl-table { --cw: 26px; gap: 6px; padding: 8px 4px; }
  .dl-seat.mine .dl-cards, .dl-count .dl-seat.mine .dl-cards { --cw: 36px; }
  .dl-comm .card.small { --cw: 32px; }
  .dl-center { gap: 16px; }
  .dl-inplay b { font-size: 1.5rem; }
  .dl-says { font-size: .75rem; max-width: 150px; padding: 2px 6px; }
  .dl-q { margin: 8px 0 4px; font-size: 1rem; line-height: 1.3; }
  .dl-opts { gap: 6px; }
  .dl-opt { min-height: 44px; padding: 6px 10px; }

  .dl-comm, .dl-seat.mine { flex-direction: row; gap: 8px; }
  .dl-comm .small { max-width: 5.5em; line-height: 1.2; text-align: left; }
  .dl-seat.mine { flex-direction: row-reverse; }
}


.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.page-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.page-brand img { display: block; border-radius: 10px; }
main.page .panel { border-radius: 18px; border: 1px solid var(--panel-line); box-shadow: none; }





.chat-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; border-radius: 24px; padding: .7em 1.1em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); display: inline-flex; align-items: center; gap: 6px;
}
.chat-badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .8rem; line-height: 1.5; }
.chat-badge:empty { display: none; }
.chat-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 21; width: min(360px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: var(--sheet); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .55); overflow: hidden;
}
#chat.open .chat-toggle { display: none; }
#chat:not(.open) .chat-panel { display: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: rgba(0, 0, 0, .25); }
.chat-head b { flex: 1; }
.chat-close { padding: .3em .7em; font-size: 1.1rem; line-height: 1; }
.chat-log { list-style: none; margin: 0; padding: 10px 12px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; overscroll-behavior: contain; }
.chat-log li { line-height: 1.35; overflow-wrap: anywhere; font-size: .92rem; }
.chat-log .time { color: var(--text-muted); font-size: .72rem; margin-right: 5px; font-variant-numeric: tabular-nums; }
.chat-log .who { font-weight: 700; color: var(--highlight); }
.chat-log .mine .who { color: var(--chat-me); }
.chat-log .watch { font-size: .72rem; color: var(--text-muted); font-weight: 400; }
.chat-log .ev { color: var(--text-muted); font-size: .84rem; font-style: italic; }
.chat-log .ev.hl { color: var(--highlight); font-style: normal; font-weight: 700; }
.chat-log .ev.bad { color: var(--danger-text); }
.chat-log .banana .text { font-weight: 900; color: var(--banana); letter-spacing: .06em; }
.chat-log .empty { color: var(--text-muted); font-style: italic; text-align: center; margin: auto 0; }
.chat-foot { padding: 8px; background: rgba(0, 0, 0, .25); display: grid; gap: 6px; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; }
.chat-form button { padding: .6em .9em; }

.chat-toggle, .chat-form button { background: var(--selected); color: var(--selected-text); }
.chat-extra { display: flex; align-items: center; gap: 8px; }
.chat-banana { background: var(--banana); color: var(--on-light); padding: .35em .8em; font-size: .85rem; }
.chat-note { flex: 1; font-size: .78rem; color: var(--text-muted); text-align: right; }
.chat-note.warn { color: var(--danger-text); }

@media (max-width: 560px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(70vh, 520px); border-radius: 14px 14px 0 0; }
  .chat-toggle { right: 12px; bottom: 12px; }
}

body.has-chat main { padding-bottom: 88px; }
.chat-log .ev.round { font-style: normal; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 5px; margin-top: 3px; }
.chat-head b { flex: none; }
.chat-public { flex: 1; font-size: .7rem; line-height: 1.2; color: var(--text-muted); }

.chat-fold { display: none; padding: .3em .7em; font-size: 1.1rem; line-height: 1; min-width: 36px; }
.chat-new:empty { display: none; }
.chat-new { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 8px; font-size: .78rem; font-weight: 700; line-height: 1.6; }
#chat.inline { position: static; margin: 12px 0; }
#chat.inline .chat-toggle, #chat.inline .chat-close { display: none; }
#chat.inline .chat-fold { display: inline-block; }
#chat.inline .chat-panel, #chat.inline:not(.open) .chat-panel {
  position: static; display: flex; width: 100%; min-width: 0; height: auto; max-height: none;
  border-radius: var(--radius); box-shadow: none;
}
#chat.inline .chat-log { flex: none; min-height: 110px; max-height: 220px; }
#chat.inline:not(.open) .chat-log, #chat.inline:not(.open) .chat-foot, #chat.inline:not(.open) .chat-public { display: none; }
#chat.inline:not(.open) .chat-head { cursor: pointer; }
#chat.inline:not(.open) .chat-head b { flex: 1; }
@media (max-width: 480px) { #chat.inline .chat-log { max-height: 180px; } }

.chat-head-btn { display: none; position: relative; font-size: 1rem; }
.chat-head-btn .chat-badge { position: absolute; top: -5px; right: -7px; font-size: .7rem; padding: 0 5px; }
@media (max-width: 560px) {
  .chat-head-btn { display: inline-flex; align-items: center; justify-content: center; }
  body.chat-in-head #chat:not(.inline) .chat-toggle { display: none; }
  body.has-chat.chat-in-head main { padding-bottom: 12px; }
}

.chat-head-btn.in-seat {
  display: grid; place-items: center; position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
  width: 1.9em; height: 1.9em; min-height: 0; padding: 0; border-radius: 50%; font-size: .95rem; line-height: 1;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); color: var(--text); box-shadow: none; z-index: 3;
}
.chat-head-btn.in-seat::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.chat-head-btn.in-seat .chat-badge { top: -8px; right: -10px; }

@media (min-width: 900px) { body.has-chat:has(#chat.open:not(.inline):not([hidden])) main:has(> .play-col) { padding-bottom: 8px; } }






.emote-btn {
  position: relative; z-index: 3; width: 2.9em; height: 2.9em; min-height: 0; padding: 5px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); font-size: 1rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); flex: none;
}
.emote-btn.corner { position: absolute; right: 0; bottom: 0; }


.seat.me .name-row { position: relative; }
.emote-btn.in-seat {
  position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%);
  width: 1.75em; height: 1.75em; padding: 2px; font-size: .95rem; box-shadow: none;
}
.emote-btn .ico { width: 100%; height: 100%; transition: opacity .3s; }
.emote-btn:hover { border-color: var(--accent); }
.emote-btn .ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); pointer-events: none; }
.emote-btn .ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: 50% 50%; }
.emote-btn.cool .ico { opacity: .5; }
.emote-btn.cool .ring circle { animation: pp-cool 5s linear var(--cd, 0s) forwards; }
@keyframes pp-cool { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 151; } }
.emote-btn.off .ico { opacity: .45; filter: grayscale(1); }
.emote-btn.off::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 3px; background: var(--red); transform: rotate(-45deg); border-radius: 2px; }

.bucket-btn {
  position: absolute; right: 0; bottom: .15em; z-index: 3; display: flex; align-items: center; gap: 4px; min-height: 0;
  padding: 3px 10px 3px 4px; border-radius: 22px; background: var(--accent); color: #1b1b1b; font-size: .82rem; font-weight: 700;
  animation: pp-pulse 1.2s ease-out infinite;
}
.bucket-btn[hidden] { display: none; }
.bucket-btn .ico { width: 28px; height: 28px; }
@keyframes pp-pulse { from { box-shadow: 0 0 0 0 rgba(224, 184, 76, .7); } to { box-shadow: 0 0 0 12px rgba(224, 184, 76, 0); } }

.seat.throwable { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.seat.throwable .name-row { cursor: pointer; }
.seat.throwable .name-row:hover .name, .seat.throwable .name-row:focus-visible .name { box-shadow: 0 0 0 2px var(--accent); }
.seat.throwable .name-row:focus-visible { outline: none; }
.emote-muted { margin-left: 4px; font-size: .75em; }


#fx { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 12; }
#fx .fx { position: absolute; pointer-events: none; line-height: 1; }
#fx .ico { display: block; width: 36px; height: 36px; }
#fx .ico.sm { width: 20px; height: 20px; }
#fx .ico.xs { width: 14px; height: 14px; }
#fx .ico.wide { width: 70px; height: 52px; }
#fx .ico.flip { transform: scaleX(-1); }
.emote-menu, .emote-reply {
  position: absolute; z-index: 1; background: var(--card); color: #1b1b1b; border-radius: 14px; padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); width: max-content; max-width: calc(100vw - 16px);
}
.emote-menu { animation: pp-menu-in .15s ease-out; }
@keyframes pp-menu-in { from { opacity: 0; transform: translateY(4px); } }
.emote-menu .emote-grid { display: grid; grid-template-columns: repeat(4, 46px); gap: 2px; }
.emote-menu .emote-grid.items { grid-template-columns: repeat(3, 54px); }
.emote-menu button, .emote-wheel button { min-height: 0; padding: 5px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.emote-menu .emote-grid button { width: 46px; height: 46px; }
.emote-menu .emote-grid.items button { width: 54px; height: 50px; }
.emote-menu .emote-grid button .ico, .emote-suggest button .ico { width: 34px; height: 34px; }
.emote-menu button:hover, .emote-menu button:focus-visible { background: #f0e6c8; outline: none; }
.emote-suggest { display: flex; align-items: center; gap: 2px; padding: 0 0 4px; margin-bottom: 4px; border-bottom: 1px solid #e6dcc0; }
.emote-suggest span { font-size: .7rem; font-weight: 700; color: #7a6420; text-transform: uppercase; letter-spacing: .04em; margin: 0 4px; }
.emote-suggest button { width: 44px; height: 44px; }
.emote-menu .emote-title { font-size: .8rem; color: #555; text-align: center; padding: 2px 4px 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emote-menu p { margin: 4px 6px 6px; max-width: 190px; color: #333; }
.emote-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: #555; padding: 6px 6px 2px; border-top: 1px solid #e6dcc0; margin-top: 4px; }
.emote-foot label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.emote-foot input { width: auto; margin: 0; padding: 0; }
.emote-menu .linkish { padding: 2px 0; color: #8a5a00; font-weight: 700; text-decoration: underline; display: inline; }

.emote-wheel { position: absolute; z-index: 2; width: 0; height: 0; }
.emote-wheel .hub { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .5); border: 2px dashed rgba(255, 255, 255, .55); }
.emote-wheel button { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--card); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); padding: 7px; animation: pp-pop .18s ease-out backwards; }
.emote-wheel button:focus-visible { outline: 3px solid var(--accent); }
.emote-wheel .ico { width: 34px; height: 34px; }
@keyframes pp-pop { from { transform: scale(.2); opacity: 0; } }

.emote-reply { display: flex; gap: 6px; padding: 5px 5px 8px; transform: translate(-100%, -50%); background: rgba(0, 0, 0, .78); }
.emote-reply button { display: flex; align-items: center; gap: 4px; min-height: 38px; padding: 4px 9px 4px 5px; border-radius: 10px; background: var(--card); color: #1b1b1b; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.emote-reply .ico { width: 26px; height: 26px; }
.emote-reply.compact button { padding: 4px 5px; }
.emote-reply.compact .lbl { display: none; }
.emote-reply.right { transform: translate(0, -50%); }
.emote-reply .timer { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; background: var(--accent); border-radius: 2px; transform-origin: left; animation: pp-shrink 4s linear forwards; }
@keyframes pp-shrink { to { transform: scaleX(0); } }

.fx-bubble { transform: translate(0, -50%); }
.fx-bubble.left { transform: translate(-100%, -50%); }
.fx-bubble .in { display: block; background: var(--card); border-radius: 18px; padding: 4px 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); animation: pp-bubble 3s ease-out forwards; }
.fx-bubble .in.wiggle .ico { animation: pp-wiggle .5s ease-in-out 2; }
@keyframes pp-bubble { 0% { opacity: 0; transform: scale(.3); } 10% { opacity: 1; transform: scale(1.2); } 18% { transform: scale(1); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes pp-wiggle { 50% { transform: rotate(-12deg) scale(1.1); } }

.fx-fly span { display: block; }
.fx-hit { transform: translate(-50%, -50%); animation: pp-hit-out 2.4s forwards; }
.fx-hit.fx-bucket { animation-duration: 2.6s; }
@keyframes pp-hit-out { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.fx-hit > span { display: block; }
.fx-hit .splat, .fx-hit .squash { animation: pp-squash .35s ease-out; }
@keyframes pp-squash { from { transform: scale(.2, .6); } 60% { transform: scale(1.2, .85); } to { transform: scale(1); } }
.fx-hit .drip { position: absolute; left: 47%; top: 72%; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: #f5b51c; animation: pp-drip 2s ease-in .3s forwards; }
@keyframes pp-drip { to { transform: translateY(16px); } }
.fx-hit .spin { animation: pp-spin .9s ease-out; }
@keyframes pp-spin { from { transform: rotate(0) translateX(-14px); } to { transform: rotate(720deg) translateX(0); } }
.fx-hit .hop { animation: pp-hop .6s ease-out; }
@keyframes pp-hop { 0% { transform: scale(.4); } 50% { transform: scale(1.25) translateY(-6px); } 100% { transform: scale(1); } }
.fx-hit .rise { position: absolute; left: 62%; top: -40%; animation: pp-rise 1.8s ease-out .2s both; }
.fx-hit .rise.b { left: 8%; animation-delay: .45s; }
@keyframes pp-rise { from { opacity: 0; transform: translateY(6px) scale(.6); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(-30px); } }
.fx-hit .steam { position: absolute; left: 50%; top: -24px; width: 40px; margin-left: -20px; }
.fx-hit .steam path { stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; fill: none; stroke-linecap: round; animation: pp-steam 1.6s ease-out infinite; }
.fx-hit .steam path:nth-child(2) { animation-delay: .3s; }
.fx-hit .steam path:nth-child(3) { animation-delay: .6s; }
@keyframes pp-steam { from { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
.fx-hit .clink { display: flex; }
#fx .fx-hit .clink .ico { width: 32px; height: 32px; }
.fx-hit .clink .ico:first-child { animation: pp-tl .5s ease-out 2 alternate; transform-origin: 80% 90%; }
.fx-hit .clink .ico.flip { animation: pp-tr .5s ease-out 2 alternate; transform-origin: 20% 90%; }
@keyframes pp-tl { to { transform: rotate(18deg) translateX(4px); } }
@keyframes pp-tr { to { transform: scaleX(-1) rotate(18deg) translateX(4px); } }
.fx-hit .water { display: block; animation: pp-pour .5s ease-in; transform-origin: 50% 0; }
@keyframes pp-pour { from { transform: translateY(-40px) scaleY(.3); opacity: .3; } }
.fx-combo { transform: translate(-50%, -100%); }
.fx-combo span { display: block; white-space: nowrap; font-weight: 800; font-size: 1rem; color: #1b1b1b; background: var(--accent); padding: 2px 10px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); animation: pp-combo 1.6s ease-out forwards; }
@keyframes pp-combo { 0% { transform: scale(.4); } 15% { transform: scale(1.25) translateY(-6px); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@media (max-width: 480px) {
  .emote-btn { font-size: .92rem; }
  #fx .fx-fly .ico, #fx .fx-hit > span > .ico, #fx .fx-bubble .ico { width: 30px; height: 30px; }
  #fx .fx-hit .ico.wide { width: 58px; height: 43px; }
  .emote-menu .emote-grid { grid-template-columns: repeat(4, 44px); }
  .emote-menu .emote-grid button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .emote-menu, .emote-wheel button, .bucket-btn, .fx-hit .spin, .fx-hit .hop, .fx-hit .splat, .fx-hit .squash, .fx-hit .drip,
  .fx-hit .steam path, .fx-hit .clink .ico, .fx-hit .water, .fx-bubble .in.wiggle .ico { animation: none; }
  .fx-bubble .in { animation: pp-fade 3s forwards; }
  .fx-hit .rise { animation: pp-fade 1.8s .3s both; }
  .fx-combo span { animation: pp-fade 1.6s forwards; }
}
@keyframes pp-fade { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }






.deck-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.deck-setting.end .deck-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
button.deck-tile {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0;
  padding: 7px 7px 9px; border: 2px solid transparent; border-radius: 12px; text-align: left; font-weight: 400;
  background: rgba(255, 255, 255, .07); color: var(--text);
}
.deck-tile.on { border-color: var(--highlight); background: rgba(255, 255, 255, .12); }
.deck-prev {
  --cw: 30px;
  display: flex; justify-content: center; align-items: center; gap: 7px; padding: 9px 6px; margin-bottom: 5px;
  border-radius: 8px; background: var(--table); border: 2px solid var(--rim); box-shadow: inset 0 0 0 1px var(--rim-line);
}
.deck-prev .card.small { box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.deck-name { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.deck-name b { font-weight: 700; }
.deck-name .muted { font-weight: 400; }
.deck-sub { font-size: .8rem; line-height: 1.25; color: var(--text-muted); }

.deck-tile.on::after {
  content: ''; position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--highlight); box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.deck-tile.on::before {
  content: ''; position: absolute; z-index: 1; top: -1px; right: 2px; width: 5px; height: 10px;
  border: solid var(--highlight-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

.deck-setting.end .deck-tile { padding: 4px 4px 6px; align-items: center; text-align: center; border-radius: 10px; }
.deck-setting.end .deck-prev { --cw: 22px; gap: 4px; padding: 6px 4px; margin-bottom: 3px; align-self: stretch; }
.deck-setting.end .deck-name { font-size: .82rem; }
.deck-setting.end .deck-tile.on::after { width: 20px; height: 20px; top: -6px; right: -6px; }
.deck-setting.end .deck-tile.on::before { top: -1px; right: 1px; width: 4px; height: 8px; border-width: 0 2px 2px 0; }
.deck-setting .label b { color: var(--text); }
@media (min-width: 600px) {
  .deck-prev { --cw: 36px; }
  .deck-setting.end .deck-prev { --cw: 26px; }
}






:is(.raise-close, .tut-close, .chat-close, .chat-fold, .icon-btn, .sound-btn, [data-phrase], .seg button, .pp-hint button,
  .chat-banana, .linkish, .dl-back, .players button) { position: relative; }
:is(.raise-close, .tut-close, .chat-close, .chat-fold, .icon-btn, .sound-btn, [data-phrase], .seg button, .pp-hint button,
  .chat-banana, .linkish, .dl-back, .players button)::after { content: ''; position: absolute; inset: min(0px, calc(50% - 22px)); }
.emote-menu .linkish::after { content: none; }
.emote-btn.in-seat::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }


.chat-banana, [data-phrase] { min-height: 36px; }


@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  body:has(main > .play-col)::before {
    content: '↻ Rotate your phone upright – the table needs a tall screen.'; display: block; position: sticky; top: 0; z-index: 16;
    padding: 8px 12px; background: var(--highlight); color: var(--highlight-text); font-weight: 700; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  }

  .tut-body { min-height: 0; flex: none; }
  .tut-foot { position: sticky; bottom: -16px; margin: 8px -16px -16px; padding: 8px 16px 12px; background: var(--sheet); }
}
