:root {
  --ink: #f5efe3;
  --muted: rgba(245, 239, 227, .62);
  --faint: rgba(245, 239, 227, .36);
  --brass: #d9b878;
  --brass-hi: #f3dfb0;
  --brass-lo: #8f6d34;
  --red: #c8102e;
  --black: #141414;
  --danger: #ff9090;
  --font: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='120'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.004 .18' numOctaves='4' seed='3'/><feColorMatrix values='0 0 0 0 .22  0 0 0 0 .08  0 0 0 0 .02  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 30%, rgba(255, 200, 130, .14), transparent 70%),
    radial-gradient(ellipse at 50% 100%, #1a120c, #0b0806 70%);
  background-color: #0b0806;
  background-attachment: fixed;
  color: var(--ink);
  font: 400 15px/1.4 var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- карты ---------- */
.card {
  --w: 40px;
  position: relative; flex: none;
  width: var(--w); height: calc(var(--w) * 1.4);
  border-radius: calc(var(--w) * .08);
  background: linear-gradient(170deg, #ffffff 0%, #fbfaf6 50%, #eeebe3 100%);
  color: var(--black);
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.3),
    1px 2px 2px rgba(0,0,0,.25),
    3px 8px 14px -4px rgba(0,0,0,.5);
  font-family: var(--font);
  font-size: calc(var(--w) * .27);
  user-select: none;
}
.card.red { color: var(--red); }
.card .idx { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.card .idx b { font-size: 1em; font-weight: 700; letter-spacing: -.04em; }
.card .idx i { font-style: normal; font-size: .85em; }
.card .tl { top: .28em; left: .28em; }
.card .br { bottom: .28em; right: .28em; transform: rotate(180deg); }
.card .pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.15em; line-height: 1; }
.card .pip.face { font-size: 1.9em; font-weight: 800; letter-spacing: -.04em; flex-direction: column; }
.card .pip.face small { font-size: .5em; font-weight: 400; margin-top: .05em; }
.card .pip.face::before {
  content: ""; position: absolute; inset: 20% 18%; border-radius: .15em;
  border: 1.5px solid currentColor; opacity: .18;
}
.card.joker { color: var(--black); }
.card.joker .jx { position: absolute; top: .3em; left: .26em; writing-mode: vertical-rl; font-size: .5em; font-weight: 800; letter-spacing: .12em; }
.card.joker .jstar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.3em;
  background: linear-gradient(135deg, var(--red), #e88a1a 50%, #1e5fb8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .as { position: absolute; left: 0; right: 0; bottom: .2em; text-align: center; font-size: .6em; font-weight: 700; color: var(--black); }
.card .as.red { color: var(--red); }
.card .jidx b:first-child { color: #e88a1a; }
.card .jidx b, .card .jidx i { color: var(--black); }
.card .jidx.red b:not(:first-child), .card .jidx.red i { color: var(--red); }

.card.back {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.13) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 40%, #b3213a, #7d1023 75%);
  border: calc(var(--w) * .06) solid #fbfaf6;
}
.card.back::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.45); border-radius: calc(var(--w) * .04); }
.card.back .em {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center;
  font-size: .9em; font-weight: 800; color: #fff; background: #7d1023; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7);
}
.card.sm { --w: 38px; }
.card.sm .br { display: none; }
.card.sm .pip { font-size: 1.6em; padding-top: .55em; }
.card.sm .pip.face { font-size: 1.35em; }
.card.big { --w: 72px; }

/* «прилёт» новой карты (не мешает повороту карты) */
.card.enter { animation: land .45s cubic-bezier(.2,.8,.25,1) both; }
@keyframes land {
  from { opacity: 0; translate: 0 -38px; scale: 1.18; }
  60% { opacity: 1; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* ---------- вход ---------- */
.login { max-width: 380px; margin: 0 auto; padding: 56px 16px 32px; text-align: center; }
.logo { display: flex; justify-content: center; margin-bottom: 26px; }
.logo .card:first-child { transform: rotate(-12deg) translateX(12px); }
.logo .card:last-child { transform: rotate(9deg) translateX(-12px) translateY(5px); }
.login h1 { font-size: 40px; font-weight: 800; letter-spacing: -.035em; margin: 0; color: var(--ink); }
.login .sub { color: var(--muted); margin: 6px 0 32px; font-size: 15px; }
.login form { text-align: left; }
.login label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 500; }
.login input {
  display: block; width: 100%; margin-top: 7px; padding: 14px 16px; font: 500 17px var(--font);
  border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--ink);
}
.login input:focus { outline: none; border-color: var(--brass); }
.login .hint { color: var(--faint); font-size: 13px; margin-top: 22px; }
.view { text-align: left; }
.view h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; text-align: center; }
.btn.wide { display: block; width: 100%; padding: 15px; font-size: 16px; margin-bottom: 12px; }
.link { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px; }
.roomList { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 46vh; overflow-y: auto; }
.roomList .empty { color: var(--faint); text-align: center; padding: 20px 0; font-size: 14px; }
.roomItem { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--ink); }
.roomItem:hover { background: rgba(255,255,255,.08); }
.roomItem.active { border-color: var(--brass); background: rgba(217,184,120,.1); }
.roomItem .rn { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomItem .rm { color: var(--muted); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.roomItem .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fe08a; }
.joinForm { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(217,184,120,.3); }
.joinTitle { font-weight: 700; margin-bottom: 12px; }

.btn {
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--ink); transition: transform .12s, background .2s;
}
.btn:hover { background: rgba(255,255,255,.13); }
.btn:active { transform: scale(.97); }
.btn.primary { border-color: transparent; color: #2a1d06; font-weight: 700;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 60%, #c29d58);
  box-shadow: 0 6px 20px -6px rgba(217,184,120,.7), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:disabled { opacity: .4; cursor: default; }
.login .btn { width: 100%; padding: 15px; font-size: 16px; margin-top: 6px; }

/* ---------- стол ---------- */
.game { max-width: 1060px; margin: 0 auto; padding: 12px 6px 32px; position: relative; }
.menu { position: absolute; top: 20px; right: 16px; z-index: 6; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(20,12,6,.7); color: var(--ink); font-size: 18px; cursor: pointer; }
.table {
  position: relative;
  border: 22px solid transparent; border-radius: 60px;
  background:
    var(--noise) padding-box,
    radial-gradient(ellipse 65% 55% at 50% 45%, #2f9763 0%, #1f7a4c 38%, #155f3a 70%, #0e4429 100%) padding-box,
    /* дерево: блик, текстура волокон, базовый цвет */
    linear-gradient(180deg, rgba(255,235,200,.28) 0%, rgba(255,235,200,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%) border-box,
    var(--grain) border-box,
    linear-gradient(95deg, #5a250e, #7c3817 18%, #6b2d11 36%, #8a4320 58%, #6a2c10 80%, #57230c) border-box;
  background-size: auto, auto, auto, 600px 120px, auto;
  box-shadow:
    inset 0 0 0 1.5px rgba(30,10,0,.9),
    inset 0 0 0 3px rgba(217,184,120,.55),
    inset 0 0 0 4.5px rgba(30,10,0,.6),
    inset 0 16px 40px -10px rgba(0,0,0,.6),
    inset 0 0 70px rgba(0,0,0,.45),
    0 2px 0 rgba(255,220,170,.1),
    0 30px 60px -10px rgba(0,0,0,.85),
    0 60px 120px -30px rgba(0,0,0,.9);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.opponents { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }
.opponents .seat { flex: 1 1 280px; }
.seat { display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; position: relative; z-index: 1; }

.plate {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(18,10,4,.82), rgba(10,6,2,.75)); border: 1px solid rgba(217,184,120,.35);
  box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,230,190,.08); font-size: 14px; font-weight: 600; max-width: 100%;
  transition: box-shadow .3s, border-color .3s;
}
.plate .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--pc); color: #111; flex: none; box-shadow: inset 0 -2px 4px rgba(0,0,0,.25); }
.plate .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .nm small { color: var(--faint); font-weight: 400; }
.plate .pts { font-weight: 800; color: var(--brass-hi); font-variant-numeric: tabular-nums; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.14); }
.plate .chip { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #b00;
  background: radial-gradient(circle, #fff 0 52%, #c8102e 53% 100%); box-shadow: 0 0 0 2px #fff inset, 0 2px 4px rgba(0,0,0,.5); }
.plate .off { color: var(--danger); font-size: 11px; font-weight: 500; }
.plate.turn { border-color: var(--brass-hi); box-shadow: 0 0 0 2px rgba(217,184,120,.35), 0 0 26px rgba(243,223,176,.45); }
.plate.turn::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7dff9a; box-shadow: 0 0 10px #4cff7a; animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.backs { display: flex; justify-content: center; height: 44px; }
.backs .card { --w: 27px; margin-left: -18px; transform-origin: 50% 140%; box-shadow: 1px 2px 4px rgba(0,0,0,.5); }
.backs .card:first-child { margin-left: 0; }
.backs .card .em { display: none; }

/* зона игрока на сукне */
.zone { width: 100%; min-height: 80px; display: flex; flex-wrap: wrap; gap: 14px 10px; align-items: center; justify-content: center;
  padding: 12px 6px 10px; border-radius: 22px; position: relative; }
.zone::before { /* тонкая напечатанная линия на сукне, как разметка игрового стола */
  content: ""; position: absolute; inset: 0; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.12); pointer-events: none;
}
.zone-hint { color: rgba(255,255,255,.3); font-size: 12px; }
.meld { display: flex; align-items: flex-end; padding: 8px 10px 4px; border-radius: 14px; border: 1.5px solid transparent; transition: background .2s; }
.meld .card { transform-origin: 50% 210%; }
.meld .card + .card { margin-left: -20px; }
.meld .card.ghost { opacity: .4; box-shadow: inset 0 0 0 2px var(--lc); }
.lays { display: flex; gap: 0; align-items: center; padding-left: 6px; }
.layslot { position: relative; width: 53px; height: 53px; border-radius: 12px; border: 1.5px solid transparent; }
.layslot .card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(calc(90deg + var(--tilt, 0deg))); }
.target { border-color: var(--brass-hi) !important; background: rgba(243,223,176,.13); cursor: pointer; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { background: rgba(243,223,176,.28); } }
.meld .card:not(:last-child) .pip, .meld .card:not(:last-child) .as, .meld .card:not(:last-child) .jstar,
.pile .card:not(:last-child) .pip, .pile .card:not(:last-child) .jstar { visibility: hidden; }

/* центр стола */
.middle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 4px; min-height: 110px; position: relative; }
.middle::before { /* надпись, напечатанная на сукне */
  content: "СОБИРАЛКА"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 800 clamp(26px, 9vw, 64px)/1 var(--font); letter-spacing: .18em; color: rgba(255,255,255,.055); white-space: nowrap; pointer-events: none;
}
.middle::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 560px); aspect-ratio: 3.2;
  border: 1.5px solid rgba(255,255,255,.08); border-radius: 999px; pointer-events: none;
}
.middle > * { position: relative; z-index: 1; }
.deckWrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.deckWrap .card { --w: 54px; transform: rotate(-4deg);
  box-shadow: 1px 1px 0 #ddd8cc, 2px 2px 0 #a9a499, 3px 3px 0 #e6e1d5, 4px 4px 0 #9c978c, 5px 5px 0 #ddd8cc, 8px 12px 18px rgba(0,0,0,.5); }
.deckWrap .cnt, .pileWrap .lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.pileWrap { min-width: 0; flex: 0 1 auto; display: flex; flex-direction: column; gap: 10px; }
.pile { display: flex; flex-wrap: wrap; row-gap: 10px; padding-left: 20px; }
.pile .card { --w: 46px; margin-left: -20px; transition: translate .15s; }
.clickable { cursor: pointer; }
.deckWrap.can .card { outline: 2px solid var(--brass-hi); outline-offset: 4px; }
.pile.can { outline: 2px dashed rgba(243,223,176,.7); outline-offset: 8px; border-radius: 12px; }
.pile.can .card:hover { translate: 0 -10px; }

.panel { background: rgba(10,22,14,.84); border: 1px solid rgba(217,184,120,.35); border-radius: 20px; padding: 18px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel h2 { margin: 0 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-align: center; }
.panel .center { text-align: center; margin-top: 14px; }
.results { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.results th { font-weight: 500; color: var(--faint); font-size: 12px; }
.results th, .results td { padding: 8px 4px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.08); }
.results th:first-child, .results td:first-child { text-align: left; }
.revealed { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.pos { color: #8fe7a6; } .neg { color: var(--danger); }
.lobbyText { text-align: center; color: var(--muted); }
.lobbyText b { color: var(--ink); }

/* ---------- рука ---------- */
.dock { position: sticky; bottom: 0; z-index: 4; margin: 0 -6px; padding: 18px 6px max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,8,6,0) 0, rgba(11,8,6,.96) 16px, #0b0806); }
.dock:has(.hand:empty) { position: static; background: none; }
.status { text-align: center; margin: 12px 0 0; min-height: 22px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.status .hint { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.35; letter-spacing: 0; max-width: 540px; margin: 4px auto 0; }
.hand { --w: 62px; display: flex; justify-content: center; align-items: flex-start; padding: 24px 0 10px; min-height: 126px; }
.hand .card { --w: inherit; width: var(--w); transform-origin: 50% 130%; cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.3), -2px 4px 10px rgba(0,0,0,.45); }
.hand .card.sel { box-shadow: 0 0 0 2.5px var(--brass-hi), 0 0 22px rgba(243,223,176,.55), 0 16px 26px -8px rgba(0,0,0,.6); }
.hand .card.must::after { content: "со стола"; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--brass-hi); white-space: nowrap; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.actions .btn { padding: 10px 16px; font-size: 14px; }
.actions .btn.sort { padding: 10px 12px; color: var(--muted); }
.log { margin: 22px auto 0; font-size: 12px; color: var(--faint); max-width: 540px; text-align: center; }
.log div { padding: 2px 0; }
.log div:first-child { color: var(--muted); }
.logSide { display: none; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #1a130d; border: 1px solid rgba(217,184,120,.3); border-bottom: 0; width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; padding: 20px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
.sheet h3 { margin: 0 0 14px; font-size: 19px; font-weight: 700; }
.sheet .btn { display: block; width: 100%; margin-bottom: 8px; text-align: left; border-radius: 14px; padding: 14px 16px; }
.sheet .btn b { color: var(--brass-hi); }
.sheet .btn.cancel { background: transparent; border-color: transparent; text-align: center; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px);
  background: rgba(45,14,18,.94); color: #ffdcdc; border: 1px solid rgba(255,144,144,.5); padding: 12px 16px; border-radius: 14px; font-size: 14px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); }

@media (prefers-reduced-motion: reduce) { .card.enter { animation: none; } }

@media (min-width: 700px) {
  .game { padding-top: 24px; }
  /* игра ровно в высоту окна: стол сверху (прокручивается внутри), рука снизу */
  .game { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 12px 8px 0; }
  .table { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.35) transparent;
    padding: 16px 28px; border-width: 26px; border-radius: 120px; gap: 8px; }
  .menu { top: 20px; right: 20px; }
  .logBottom { display: none; }
  /* история слева, рука по центру, кнопки колонкой справа */
  .dock { position: static; flex: none; background: none; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 620px) minmax(190px, 1fr);
    grid-template-areas: "log status actions" "log hand actions"; align-items: center; column-gap: 20px; padding: 10px 6px 8px; margin: 0; }
  .logSide { grid-area: log; display: block; align-self: center; justify-self: end; margin: 0; text-align: right; max-width: 240px;
    max-height: 150px; overflow: hidden; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
  .status { grid-area: status; margin-top: 0; }
  .hand { grid-area: hand; width: 100%; padding: 22px 0 8px; min-height: 0; }
  .actions { grid-area: actions; flex-direction: column; align-items: stretch; justify-self: start; margin: 0; min-width: 190px; }
  .actions .btn { text-align: center; }
  .menu { top: 34px; right: 30px; }
  .card.sm { --w: 46px; }
  .meld .card + .card { margin-left: -24px; }
  .layslot { width: 64px; height: 64px; }
  .pile .card { --w: 56px; margin-left: -24px; }
  .pile { padding-left: 24px; }
  .deckWrap .card { --w: 64px; }
  .hand { --w: 76px; }
}
/* невысокие экраны ноутбуков: всё чуть компактнее */
@media (min-width: 700px) and (max-height: 820px) {
  .card.sm { --w: 40px; }
  .meld .card + .card { margin-left: -21px; }
  .layslot { width: 56px; height: 56px; }
  .pile .card { --w: 46px; margin-left: -20px; }
  .pile { padding-left: 20px; }
  .deckWrap .card { --w: 50px; }
  .hand { --w: 66px; padding-top: 16px; }
  .backs { height: 42px; }
  .backs .card { --w: 26px; margin-left: -18px; }
  .zone { min-height: 66px; padding: 8px 6px 6px; }
  .middle { min-height: 96px; padding: 4px; }
  .status .hint { display: none; }
  .table { padding: 8px 24px; border-width: 20px; gap: 4px; }
  .opponents .seat, .seat { gap: 4px; }
  .middle::after { display: none; }
  .backs { height: 52px; }
  .backs .card { --w: 32px; margin-left: -22px; }
}
