/* 10 Phases: the page's own look (loaded only on its page, after app.css, cards.css and t21.css, whose panels,
   buttons and time bar it shares). The table is deep blue velvet with a wooden rim. */

/* ---------- top bar: two cards and the game's name ---------- */
.logo10 { position: relative; width: 40px; height: 40px; flex: none; }
.logo10 span { position: absolute; width: 24px; height: 33px; border-radius: 5px; display: grid; place-items: center; font: 900 12px 'Inter', system-ui, sans-serif;
  color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 1.5px #fff; }
.logo10 .l-b { left: 3px; top: 4px; transform: rotate(-14deg); background: linear-gradient(165deg, #2479ea, #0f3c8c); }
.logo10 .l-r { left: 14px; top: 2px; transform: rotate(12deg); background: linear-gradient(165deg, #e3263f, #8f0f22); }

/* ---------- home ---------- */
.hero10 .h10-art { position: relative; height: 150px; }
.hero10 .fan { position: absolute; left: 6px; top: 8px; width: 250px; height: 140px; }
.hero10 .fan .cd { --cw: 74px; position: absolute; left: 70px; top: 8px; transform-origin: 50% 125%;
  transform: rotate(calc(var(--i) * 13deg)) translateX(calc(var(--i) * 6px)); animation: fanIn .8s cubic-bezier(.3,1.4,.5,1) backwards;
  animation-delay: calc((var(--i) + 2) * .1s); }
.hero10 .fan-10 { position: absolute; left: auto; right: 9%; top: 16px; padding: 0 .14em 0 .04em; font-size: 80px; font-weight: 900; letter-spacing: -4px; line-height: 1;
  background: linear-gradient(180deg, #bdf6ff, #5fd1f0 55%, #2479ea); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); animation: in .8s .3s cubic-bezier(.2,.9,.3,1) backwards; }
@media (max-width: 520px) { .hero10 .fan { transform: scale(.82); transform-origin: left top; } .hero10 .fan-10 { right: 14%; top: 22px; font-size: 62px; } }
@media (max-width: 400px) { .hero10 .fan { transform: scale(.72); } .hero10 .fan-10 { right: 11%; top: 28px; font-size: 54px; } }

/* ---------- the table ---------- */
.p10-felt { position: relative; min-height: 640px; border-radius: 44px; padding: 26px 26px 22px; isolation: isolate; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(ellipse at 50% 38%, #3a4bb0 0%, #24327f 46%, #121a4c 100%);
  box-shadow: inset 0 0 0 12px #5a3418, inset 0 0 0 15px #3a200c, inset 0 0 0 17px #d9b46a, inset 0 0 0 20px #2a1606, inset 0 18px 50px rgba(0,0,0,.55),
    0 30px 60px -30px rgba(0,0,0,.9); }
.p10-felt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 5px 5px; }
.p10-felt::before { content: ''; position: absolute; left: 50%; top: 50%; width: 62%; height: 44%; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1.5px dashed rgba(217,180,106,.25); z-index: -1; pointer-events: none; }

/* the other players: their plate, their phase, how many cards they hold, what they laid down */
.p10-opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 4px 8px 0; }
.op { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; max-width: 220px; flex: 1 1 150px; transition: opacity .3s, filter .3s; }
.op.gone { opacity: .45; filter: grayscale(.7); }
.plate10 { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 999px; max-width: 100%;
  background: linear-gradient(160deg, rgba(36,30,80,.95), rgba(18,15,46,.95)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 24px -12px rgba(0,0,0,.9);
  transition: border-color .3s, box-shadow .3s; }
.op.turn .plate10, .me10.turn .plate10 { border-color: #a28dff; box-shadow: 0 0 0 3px rgba(162,141,255,.2), 0 0 28px rgba(162,141,255,.45); }
.plate10 .avw { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 3px; background: conic-gradient(#8a86b0, #d9d6ef, #5a567e, #8a86b0); }
.op.turn .avw { background: conic-gradient(from var(--a, 0deg), #a28dff, #fff, #5f3fe6, #a28dff); animation: rot21 1.6s linear infinite; }
.plate10 .av { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), transparent 42%), var(--bg); }
.plate10 .av svg.i { width: 20px; height: 20px; } .plate10 .av .ava-img { border-radius: 50%; }
.plate10 .pi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plate10 .nm { font-size: 13px; font-weight: 800; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate10 .row { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #c9c3ee; white-space: nowrap; }
.ph-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #10153a;
  background: linear-gradient(#bdf6ff, #5fd1f0); box-shadow: 0 1px 0 #1b6f91; white-space: nowrap; }
.ph-badge.ok { background: linear-gradient(#d9ffb8, #7fe25a); box-shadow: 0 1px 0 #3f8a24; }
.ph-badge.fin { background: linear-gradient(#ffe9a6, #ffcf4d); box-shadow: 0 1px 0 #7a4c10; }
.ncards { display: inline-flex; align-items: center; gap: 3px; }
.ncards i { width: 9px; height: 12px; border-radius: 2px; background: linear-gradient(160deg, #e6e9ff, #9aa4d8); box-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.skip-mark { display: none; position: absolute; right: -4px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.skip-mark svg { width: 100%; height: 100%; }
.op.skipped .skip-mark, .me10.skipped .skip-mark { display: block; animation: pop21 .35s cubic-bezier(.3,1.6,.5,1); }
.op.shake .plate10, .me10.shake .plate10 { animation: shake10 .5s; }
@keyframes shake10 { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* the groups laid down (a set, a run, a colour): small cards in a row, overlapping a little */
.p10-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 12px; }
.grp { display: inline-flex; align-items: flex-end; padding: 5px 7px; border-radius: 12px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(217,180,106,.25);
  transition: box-shadow .2s, background .2s, transform .2s; animation: grpIn .45s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: var(--d, 0ms); }
.grp .cd { --cw: 30px; font-size: 7px; }
.grp .cd + .cd { margin-left: -12px; }
.grp.can { cursor: pointer; background: rgba(162,141,255,.2); box-shadow: 0 0 0 2px #a28dff, 0 0 20px rgba(162,141,255,.55); }
.grp.can:hover { transform: translateY(-2px); }
@keyframes grpIn { from { transform: translateY(-14px) scale(.8); opacity: 0; } }
.p10-mine .grp .cd { --cw: 40px; }
.p10-mine .grp .cd + .cd { margin-left: -16px; }

/* the middle: the deck and the discard pile */
.p10-center { position: relative; flex: 1; min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 34px; }
.p10-pile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: default; }
.p10-pile .pile-cards { position: relative; width: 72px; height: 102px; }
.p10-pile .pile-cards .cd { --cw: 72px; position: absolute; left: 0; top: 0; }
#p10DeckCards .cd { left: calc(var(--i) * 1.5px); top: calc(var(--i) * -2px); }
.p10-pile small { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: rgba(217,180,106,.8); white-space: nowrap; }
.p10-pile.can { cursor: pointer; }
.p10-pile.can .pile-cards { filter: drop-shadow(0 0 14px rgba(162,141,255,.7)); }
.p10-pile.can:hover .pile-cards { transform: translateY(-3px); }
.p10-pile .tap-hint { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); display: flex; }
.p10-pile .tap-hint.hidden { display: none; }
.p10-pile.give #p10DeckCards .cd:last-child { animation: give21 .38s ease-out; }
.p10-pile.riffle #p10DeckCards .cd { animation: riffle21 .5s ease-in-out 3; }
.p10-pile.riffle #p10DeckCards .cd:nth-child(odd) { animation-name: riffle21b; }
.p10-banner { position: absolute; left: 50%; top: 50%; }

/* your phase: what it needs, then your groups */
.p10-mine { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px 4px; border-top: 1px dashed rgba(217,180,106,.22); }
.p10-goal { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #dfe4ff; text-align: center; }

/* the end of a hand: a card over the table */
.p10-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto;
  padding: 18px 20px; border-radius: 22px; background: rgba(12,10,32,.94); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  animation: banner21 .4s cubic-bezier(.3,1.5,.5,1); }
.p10-end h3 { margin: 0 0 12px; text-align: center; font-size: 18px; font-weight: 900; }
.p10-end .er { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.p10-end .er .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p10-end .er .left { display: flex; gap: 2px; flex-wrap: wrap; }
.p10-end .er .left .cd { --cw: 20px; font-size: 5px; }
.p10-end .er .pts { font-weight: 900; font-variant-numeric: tabular-nums; color: #ffb3bd; }
.p10-end .er .pts.zero { color: #c6ffa6; }
.p10-end .er .tot { font-size: 11px; color: var(--muted); text-align: right; }

/* your cards, in the bar under the table: tap to choose; the chosen ones stand up */
.p10-hand { display: flex; justify-content: center; align-items: flex-end; min-height: 108px; padding: 18px 4px 2px; margin-top: 8px; overflow-x: auto; overflow-y: visible; }
.p10-hand .cd { --cw: 64px; cursor: pointer; transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .18s; }
.p10-hand .cd + .cd { margin-left: -18px; }
.p10-hand .cd:hover { transform: translateY(-6px); }
.p10-hand .cd.sel { transform: translateY(-16px); box-shadow: 0 0 0 3px #ffd866, 0 14px 22px -8px rgba(0,0,0,.9); z-index: 2; }
.p10-hand .cd.new { animation: newIn10 .5s cubic-bezier(.3,1.4,.5,1) backwards; }
@keyframes newIn10 { from { transform: translateY(-40px) scale(.7); opacity: 0; } }
.p10-hand.off .cd { cursor: default; }
.p10-dock .dock-mid { min-width: 0; }
.p10-dock .dock-act { flex-wrap: wrap; justify-content: flex-end; }

/* the phases (side panel): yours is lit, done ones ticked */
.p10-phases { display: flex; flex-direction: column; gap: 4px; }
.p10-phases .ph { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 12.5px; color: var(--muted); }
.p10-phases .ph b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.07); color: #dfe4ff; font-size: 12px; }
.p10-phases .ph.done { color: #9adf7c; } .p10-phases .ph.done b { background: #2f6b1f; color: #d9ffb8; }
.p10-phases .ph.now { color: #fff; background: rgba(95,209,240,.12); box-shadow: inset 0 0 0 1px rgba(95,209,240,.35); font-weight: 700; }
.p10-phases .ph.now b { background: linear-gradient(#bdf6ff, #5fd1f0); color: #10153a; }
.p10-list li { padding: 2px 0; }

/* whom a Skip skips */
#p10SkipList .seat { cursor: pointer; }

/* ---------- smaller screens ---------- */
@media (max-width: 820px) {
  .p10-felt { min-height: 560px; padding: 20px 18px 18px; }
  .op { min-width: 130px; }
  .plate10 .avw { width: 38px; height: 38px; }
}
/* phones: the other players three by three, compact; the table and your cards on one screen; the bar under it stays */
@media (max-width: 620px) {
  .p10-felt { min-height: 0; border-radius: 26px; padding: 12px 8px 12px; gap: 8px;
    box-shadow: inset 0 0 0 6px #5a3418, inset 0 0 0 8px #d9b46a, inset 0 0 0 10px #2a1606, inset 0 12px 30px rgba(0,0,0,.55), 0 20px 40px -24px rgba(0,0,0,.9); }
  .p10-felt::before { display: none; }
  .p10-opps { gap: 6px; padding: 2px 0 0; }
  .op { flex: 0 0 calc((100% - 12px) / 3); min-width: 0; max-width: none; gap: 4px; }
  .plate10 { gap: 5px; padding: 3px 7px 3px 3px; }
  .plate10 .avw { width: 28px; height: 28px; padding: 2px; }
  .plate10 .av { font-size: 12px; } .plate10 .av svg.i { width: 14px; height: 14px; }
  .plate10 .nm { font-size: 11px; max-width: 64px; }
  .plate10 .row { font-size: 10px; gap: 4px; }
  .ph-badge { font-size: 9.5px; padding: 0 6px; }
  .ncards i { width: 7px; height: 9px; }
  .grp { padding: 3px 4px; border-radius: 9px; }
  .grp .cd { --cw: 20px; font-size: 5px; }
  .grp .cd + .cd { margin-left: -9px; }
  .p10-groups { gap: 4px; }
  .p10-center { min-height: 120px; gap: 22px; }
  .p10-pile .pile-cards { width: 52px; height: 74px; }
  .p10-pile .pile-cards .cd { --cw: 52px; }
  .p10-mine { padding: 6px 4px 2px; }
  .p10-mine .grp .cd { --cw: 30px; }
  .p10-mine .grp .cd + .cd { margin-left: -12px; }
  .p10-goal { font-size: 11.5px; gap: 6px; }
  .p10-hand { min-height: 84px; padding: 14px 0 0; margin-top: 6px; justify-content: flex-start; }
  .p10-hand .cd { --cw: 46px; }
  .p10-hand .cd + .cd { margin-left: -14px; }
  .p10-hand .cd.sel { transform: translateY(-12px); }
  .p10-end { padding: 14px; }
  .p10-end .er { gap: 6px; font-size: 12px; }
}

/* (a group already on the table does not come in again when the table is drawn anew) */
.grp.seen { animation: none; }
/* a card flying into its group: its place waits empty until it lands */
.grp .cd.inbound { visibility: hidden; }
/* the card you drew, from where it already is on its way: on to its place, no new deal (no fading in, no turning) */
.p10-hand .cd.p10-cont { animation: p10Cont .42s cubic-bezier(.25,.8,.3,1) backwards; }
@keyframes p10Cont { from { transform: translate(var(--fx), var(--fy)) scale(var(--fs, 1)); } }

/* ---------- your cards inside the table: a wooden rack at the bottom (nothing covers them) ---------- */
.p10-rack { position: relative; margin: 2px -6px -4px; padding: 8px 12px 10px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(122,76,37,.55), rgba(58,32,12,.75)); box-shadow: inset 0 1px 0 rgba(255,220,160,.25), inset 0 -3px 0 rgba(0,0,0,.35), 0 10px 22px -12px rgba(0,0,0,.8); }
.rack-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rack-sort { display: inline-flex; gap: 6px; }
.rk { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,230,190,.28);
  background: rgba(0,0,0,.28); color: #f3e3c4; font-size: 12px; font-weight: 800; letter-spacing: .3px; cursor: pointer; transition: background .15s, border-color .15s; }
.rk:hover { background: rgba(0,0,0,.4); }
.rk.on { background: linear-gradient(#ffe08a, #e5b13a); color: #3a2400; border-color: #ffe08a; }
.rk-dots { display: inline-grid; grid-template-columns: 6px 6px; gap: 2px; }
.rk-dots i { width: 6px; height: 6px; border-radius: 50%; } .rk-dots i:nth-child(1) { background: #e3263f; } .rk-dots i:nth-child(2) { background: #2479ea; }
.rk-dots i:nth-child(3) { background: #1db463; } .rk-dots i:nth-child(4) { background: #f6bd16; }
.rack-tip { font-size: 11.5px; color: rgba(243,227,196,.8); font-weight: 600; }
.p10-rack .p10-hand { margin: 0; padding: 20px 4px 2px; min-height: 124px; overflow: visible; }
.p10-rack .p10-hand .cd { --cw: 72px; touch-action: none; }
.p10-rack .p10-hand .cd + .cd { margin-left: -14px; }
.p10-hand .cd.dragging { opacity: .25; }
.cd.drag-ghost { position: fixed; z-index: 45; margin: 0 !important; pointer-events: none; transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 0 3px #ffd866, 0 22px 34px -10px rgba(0,0,0,.9); }

/* where a card can go: your phase (with its button), the discard pile, a group */
.p10-mine { position: relative; border-radius: 18px; transition: background .2s, box-shadow .2s; }
.p10-mine.drop, .p10-mine.drop-on { background: rgba(127,226,90,.1); box-shadow: 0 0 0 2px rgba(127,226,90,.6), 0 0 26px rgba(127,226,90,.35); cursor: pointer; }
.lay-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#b5f58f, #58c93a); color: #0f2b06; font-size: 12.5px; font-weight: 900; box-shadow: 0 3px 0 #2f7a1a, 0 8px 18px -6px rgba(88,201,58,.8);
  animation: layPulse 1.4s ease-in-out infinite; }
.lay-btn svg.i { width: 16px; height: 16px; }
@keyframes layPulse { 50% { transform: translateY(-2px); box-shadow: 0 5px 0 #2f7a1a, 0 12px 24px -6px rgba(88,201,58,.95); } }
.p10-pile.drop .pile-cards, .p10-pile.drop-on .pile-cards { filter: drop-shadow(0 0 16px rgba(255,216,102,.85)); }
.p10-pile.drop { cursor: pointer; }
.p10-pile .tap-hint { z-index: 6; }
.grp.drop-on { background: rgba(162,141,255,.3); box-shadow: 0 0 0 2px #a28dff, 0 0 24px rgba(162,141,255,.7); }

/* the bar under the table: only the message and the time (never over the cards) */
.p10-dock { grid-template-columns: auto minmax(0, 1fr) auto; }
.p10-dock .dock-act { margin-top: 0 !important; min-height: 0 !important; }

@media (max-width: 620px) {
  .p10-rack { margin: 0 -2px -2px; padding: 6px 6px 8px; border-radius: 16px; }
  .rk { height: 26px; padding: 0 9px; font-size: 11px; }
  .rack-tip { display: none; }
  .p10-rack .p10-hand { padding: 16px 0 0; min-height: 86px; justify-content: center; }
  .p10-rack .p10-hand .cd { --cw: 46px; }
  .p10-rack .p10-hand .cd + .cd { margin-left: -15px; }
  .lay-btn { height: 28px; padding: 0 10px; font-size: 11.5px; }
  /* (this game's bar stays in its place under the table: the cards are inside the table, nothing to keep in view) */
  .p10-dock { position: static; margin-top: 8px; }
  .p10-dock .dock-act:empty, .p10-dock .dock-act:has(> .hidden:only-child) { display: none; }
}
/* ================= your hand, the new way: on the table itself (no rack), room between the cards, a slight arc ===== */
.p10-felt { gap: 20px; }
.p10-rack { margin: 2px 0 0; padding: 12px 10px 4px; border-radius: 24px; background: radial-gradient(120% 100% at 50% 100%, rgba(255,255,255,.07), transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.rack-tools { justify-content: center; gap: 14px; }
.rk { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #dfe4ff; }
.rk:hover { background: rgba(255,255,255,.12); }
.rk.on { background: #fff; color: #1a2150; border-color: #fff; }
.rack-tip { color: rgba(223,228,255,.7); }
.p10-rack .p10-hand { --hcw: 70px; display: flex; justify-content: center; align-items: flex-end; padding: 30px 6px 10px; min-height: calc(var(--hcw) * 1.41 + 44px); }
/* each card in its own place: with room when there is room, closer when there is not; the chosen ones open a gap */
.p10-hand .slot { position: relative; flex: 0 1 calc(var(--hcw) + 10px); min-width: 0; display: flex; justify-content: center;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transform-origin: 50% 170%;
  transition: flex-basis .32s cubic-bezier(.2,.8,.2,1), margin .32s cubic-bezier(.2,.8,.2,1); }
.p10-hand .slot.on { flex-basis: calc(var(--hcw) + 30px); margin: 0 8px; z-index: 2; }
.p10-hand .slot:hover { z-index: 3; }
.p10-rack .p10-hand .cd { --cw: var(--hcw); flex: none; transition: transform .22s cubic-bezier(.3,1.4,.5,1), box-shadow .22s; }
/* (the card rises when its place is under the pointer — the place never moves, so the card never flickers at its edge) */
.p10-hand .cd:hover { transform: none; }
.p10-hand .slot:hover > .cd:not(.sel) { transform: translateY(-8px); }
.p10-hand .cd.sel { transform: translateY(-24px) scale(1.05); box-shadow: 0 0 0 3px #ffd866, 0 20px 28px -10px rgba(0,0,0,.9); }
/* your phase, found for you: its cards glow green; a card that fits the table: a small + */
.p10-hand .cd.ph { box-shadow: 0 0 0 3px #7fe25a, 0 0 18px rgba(127,226,90,.65), 0 12px 22px -8px rgba(0,0,0,.8); }
.p10-hand .cd.ph.sel { box-shadow: 0 0 0 3px #ffd866, 0 0 18px rgba(127,226,90,.65), 0 20px 28px -10px rgba(0,0,0,.9); }
.p10-hand .cd.fit::after { content: '+'; position: absolute; right: 5%; top: 4%; width: 17px; height: 17px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; font: 900 13px/1 'Inter', system-ui, sans-serif; color: #10153a; background: linear-gradient(#bdf6ff, #5fd1f0);
  box-shadow: 0 2px 6px rgba(0,0,0,.5); animation: pop21 .35s cubic-bezier(.3,1.6,.5,1); }
.lay-btn.hit-btn { background: linear-gradient(#bdf6ff, #5fd1f0); color: #0b2a3a; box-shadow: 0 3px 0 #1b6f91, 0 8px 18px -6px rgba(95,209,240,.8); animation: none; }
.p10-goal { flex-wrap: wrap; justify-content: center; }

/* the bar under the table: the message, the time, and a small pause (never on the time bar) */
.p10-dock { padding: 14px 18px 16px; }
.p10-dock .turnlbl { align-items: center; margin-bottom: 10px; }
.pause-mini { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #dfe4ff; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.pause-mini:hover { background: rgba(255,255,255,.12); }
.pause-mini svg.i { width: 14px; height: 14px; }

@media (max-width: 620px) {
  .p10-felt { gap: 12px; }
  .p10-rack { margin: 0; padding: 8px 2px 2px; }
  .p10-rack .p10-hand { --hcw: 46px; padding: 22px 0 6px; min-height: 104px; justify-content: center; }
  .p10-hand .slot { flex-basis: calc(var(--hcw) + 4px); }
  .p10-hand .slot.on { flex-basis: calc(var(--hcw) + 16px); margin: 0 4px; }
  .p10-hand .cd.sel { transform: translateY(-16px) scale(1.05); }
  .p10-hand .cd.fit::after { width: 13px; height: 13px; font-size: 10px; }
  .p10-dock { padding: 10px 12px 12px; }
  .p10-dock .turnlbl { margin-bottom: 8px; }
}
/* ================= the Skip: whom it skips (over the table, with its entrance), and its stamp on that player ===== */
.p10-skip { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; }
.p10-skip .sk-back { position: absolute; inset: 0; background: rgba(8,10,40,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.p10-skip.show .sk-back { animation: fade .25s ease; }
.sk-box { position: relative; width: min(460px, 100%); padding: 26px 22px 18px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(227,38,63,.28), transparent 60%), linear-gradient(160deg, rgba(36,30,80,.98), rgba(16,14,42,.98));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(227,38,63,.2), 0 0 60px -10px rgba(227,38,63,.45); }
.p10-skip.show .sk-box { animation: skIn .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes skIn { from { transform: translateY(24px) scale(.88); opacity: 0; } }
.sk-ico { position: absolute; left: 50%; top: -34px; width: 68px; height: 68px; transform: translateX(-50%); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(227,38,63,.25), 0 10px 26px rgba(0,0,0,.6); animation: skPulse 1.6s ease-in-out infinite; }
.sk-ico svg { width: 100%; height: 100%; display: block; }
@keyframes skPulse { 50% { box-shadow: 0 0 0 12px rgba(227,38,63,.12), 0 10px 26px rgba(0,0,0,.6); transform: translateX(-50%) rotate(-10deg) scale(1.05); } }
.sk-box h3 { margin: 22px 0 4px; font-size: 20px; font-weight: 900; }
.sk-box p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.sk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.sk-t { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; cursor: pointer; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .18s cubic-bezier(.3,1.4,.5,1), background .18s, box-shadow .18s, border-color .18s;
  animation: skT .45s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: calc(.12s + var(--i) * .07s); }
@keyframes skT { from { transform: translateY(16px) scale(.8); opacity: 0; } }
.sk-t:hover, .sk-t:focus-visible { transform: translateY(-4px) scale(1.04); background: rgba(227,38,63,.16); border-color: rgba(255,120,140,.7);
  box-shadow: 0 0 0 3px rgba(227,38,63,.25), 0 14px 26px -12px rgba(227,38,63,.8); outline: none; }
.sk-t:active { transform: scale(.96); }
.sk-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), transparent 42%), var(--bg); box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.5); }
.sk-av svg.i { width: 24px; height: 24px; } .sk-av .ava-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sk-t b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-t small { font-size: 11px; color: var(--muted); font-weight: 700; }
.sk-cancel { margin-top: 14px; height: 38px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #dfe4ff; font-weight: 800; cursor: pointer; }
.sk-cancel:hover { background: rgba(255,255,255,.12); }
.skip-stamp { position: fixed; width: 88px; height: 88px; margin: -44px 0 0 -44px; z-index: 35; pointer-events: none; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(227,38,63,.3), 0 14px 34px rgba(0,0,0,.6); animation: stamp10 1.3s cubic-bezier(.2,1.4,.4,1) forwards; }
.skip-stamp svg { width: 100%; height: 100%; display: block; }
@keyframes stamp10 { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 22% { transform: scale(.9) rotate(0); opacity: 1; } 32% { transform: scale(1.06); }
  75% { transform: scale(1); opacity: 1; } 100% { transform: scale(.55); opacity: 0; } }
@media (max-width: 620px) {
  .sk-box { padding: 24px 14px 14px; border-radius: 22px; }
  .sk-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sk-av { width: 44px; height: 44px; }
  .skip-stamp { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
/* ================= the places of your phase: empty cards to fill, glowing when you choose or drag a card ========= */
.p10-mine-acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.p10-mine-acts:empty { display: none; }
.ph-slots { --sw: 42px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ph-slot { position: relative; min-width: 150px; max-width: 100%; padding: 8px 10px 10px; border-radius: 16px; cursor: pointer;
  border: 2px dashed rgba(189,246,255,.32); background: rgba(10,14,50,.25); animation: grpIn .4s cubic-bezier(.3,1.4,.5,1) backwards;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.ph-slot.hot, .ph-slots.dragging .ph-slot:not(.ok) { border-color: #5fd1f0; background: rgba(95,209,240,.1);
  box-shadow: 0 0 0 3px rgba(95,209,240,.14), 0 0 24px rgba(95,209,240,.35); animation: slotPulse 1.4s ease-in-out infinite; }
.ph-slot.drop-on { transform: scale(1.04); border-color: #fff !important; background: rgba(255,255,255,.14) !important; }
.ph-slot.ok { border-style: solid; border-color: #7fe25a; background: rgba(127,226,90,.1); box-shadow: 0 0 20px rgba(127,226,90,.3); }
@keyframes slotPulse { 50% { box-shadow: 0 0 0 6px rgba(95,209,240,.08), 0 0 32px rgba(95,209,240,.5); } }
.ps-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11.5px; font-weight: 800; color: #dfe4ff; }
.ps-h span { color: rgba(223,228,255,.65); font-variant-numeric: tabular-nums; }
.ph-slot.ok .ps-h span { color: #9dff7a; font-size: 13px; }
.ps-cards { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: calc(var(--sw) * 1.41); }
.ps-cards .cd { --cw: var(--sw); cursor: pointer; animation: grpIn .35s cubic-bezier(.3,1.4,.5,1); }
.ps-cards .cd:hover { transform: translateY(-4px); }
.ps-empty { flex: none; width: var(--sw); height: calc(var(--sw) * 1.41); border-radius: 7px; border: 1.5px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
.ps-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--sw) * .5); text-align: center; pointer-events: none;
  font-size: 12.5px; font-weight: 900; letter-spacing: .3px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
/* a Skip aimed at a player: it says at whom, until you discard it */
.p10-hand .cd.armed { box-shadow: 0 0 0 3px #e3263f, 0 0 20px rgba(227,38,63,.6), 0 12px 22px -8px rgba(0,0,0,.8); }
.p10-hand .cd.armed::after { content: '→ ' attr(data-to); position: absolute; left: 5%; right: 5%; bottom: 7%; z-index: 2; padding: 2px 3px; border-radius: 6px;
  background: #e3263f; color: #fff; font: 800 10px/1.25 'Inter', system-ui, sans-serif; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) {
  .ph-slots { --sw: 26px; gap: 8px; }
  .ph-slot { min-width: 0; flex: 1 1 40%; padding: 6px 7px 8px; border-radius: 13px; }
  .ps-cards { gap: 3px; }
  .ps-h { font-size: 10.5px; margin-bottom: 5px; }
  .ps-hint { font-size: 11px; }
  .p10-hand .cd.armed::after { font-size: 8px; }
}
.sk-note { margin: -8px 0 14px !important; font-size: 12px !important; color: #ffb3bd !important; font-weight: 700; }

/* the cards of the players on the table: 10% bigger on a computer */
@media (min-width: 621px) {
  .op .grp .cd { --cw: 33px; }
  .op .grp .cd + .cd { margin-left: -13px; }
  .p10-mine .grp .cd { --cw: 44px; }
  .p10-mine .grp .cd + .cd { margin-left: -18px; }
}
/* phones: your hand keeps a little room at both ends (the last card is whole, never cut at the edge) */
@media (max-width: 620px) {
  .p10-rack .p10-hand { padding-left: 14px; padding-right: 14px; }
}

/* ================= a table that never changes size: every part has its own fixed place ================= */
/* (the column must be allowed to be narrower than all the cards side by side: on phones it was pushed wider than
   the screen, and the right part of the table — the last cards — went out of sight) */
.p10-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.p10-layout .t21-main { min-width: 0; }
@media (max-width: 1100px) { .p10-layout { grid-template-columns: minmax(0, 1fr); } }
.p10-felt { height: 790px; min-height: 0; display: grid; grid-template-rows: 150px minmax(0, 1fr) 160px 182px; gap: 12px; }
.p10-opps { align-content: flex-start; align-items: flex-start; min-height: 0; }
.p10-center { min-height: 0; }
.p10-mine { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px;
  align-content: start; min-height: 0; }
.p10-goal { grid-column: 1; grid-row: 1; justify-content: flex-start; }
.p10-mine-acts { grid-column: 2; grid-row: 1; }
.ph-slots, .p10-mine > .p10-groups { grid-column: 1 / -1; grid-row: 2; align-self: start; }
.p10-rack { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.p10-rack .p10-hand { flex: 1; min-height: 0; min-width: 0; }
@media (max-width: 820px) { .p10-felt { height: 760px; } }
@media (max-width: 620px) {
  .p10-felt { height: 600px; grid-template-rows: 160px minmax(0, 1fr) 122px 130px; gap: 8px; }
  /* the players' cards on the table: 10% bigger on phones too (the bots' as well) */
  .op .grp .cd { --cw: 22px; }
  .op .grp .cd + .cd { margin-left: -10px; }
  .p10-mine .grp .cd { --cw: 33px; }
  .p10-mine .grp .cd + .cd { margin-left: -13px; }
}

/* ================= the end of a hand / the winner: a card with the crown, every player, a bar to the next hand == */
.p10-end { width: min(560px, calc(100% - 28px)); padding: 0 0 16px; border-radius: 26px; overflow: hidden auto;
  background: linear-gradient(170deg, rgba(34,30,84,.97), rgba(13,12,38,.97)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,207,77,.12), 0 0 90px -20px rgba(255,207,77,.35);
  animation: heIn .55s cubic-bezier(.3,1.4,.5,1); }
@keyframes heIn { from { transform: translate(-50%, -44%) scale(.86); opacity: 0; } }
.he-top { position: relative; padding: 34px 20px 14px; text-align: center; background: radial-gradient(120% 100% at 50% 0%, rgba(255,207,77,.2), transparent 70%); }
.he-top.over { background: radial-gradient(130% 110% at 50% 0%, rgba(255,207,77,.38), transparent 72%); }
.he-hero { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from var(--a, 0deg), #ffcf4d, #fff3c4, #c98f1d, #ffcf4d); animation: rot21 4s linear infinite; box-shadow: 0 0 32px rgba(255,207,77,.55); }
.he-hav { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 26px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), transparent 42%), var(--bg); }
.he-hav svg.i { width: 30px; height: 30px; } .he-hav .ava-img { width: 100%; height: 100%; object-fit: cover; }
.he-crown { position: absolute; left: 50%; top: -26px; width: 40px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
  animation: crown10 2.4s ease-in-out infinite; }
.he-crown svg { display: block; width: 100%; }
@keyframes crown10 { 50% { transform: translateX(-50%) translateY(-4px) rotate(6deg); } }
.he-top h3 { margin: 12px 0 3px; font-size: 21px; font-weight: 900; background: linear-gradient(180deg, #fff, #ffe9a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.he-top small { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(223,228,255,.6); font-weight: 800; }
.he-fin { margin: 8px 0 0; font-size: 13px; color: #ffe08a; font-weight: 700; }
.he-rows { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 4px; }
.he-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); animation: heRow .45s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: calc(.2s + var(--i) * .08s); }
.he-row.out { background: rgba(255,207,77,.1); border-color: rgba(255,207,77,.35); }
.he-row.me { box-shadow: inset 3px 0 0 #a28dff; }
@keyframes heRow { from { transform: translateX(-16px); opacity: 0; } }
.he-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.5), transparent 42%), var(--bg); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.he-av svg.i { width: 18px; height: 18px; } .he-av .ava-img { width: 100%; height: 100%; object-fit: cover; }
.he-mid { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.he-mid b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-chip { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.he-chip.up { background: linear-gradient(#d9ffb8, #7fe25a); color: #153a08; }
.he-chip.again { background: rgba(255,255,255,.1); color: #c9c3ee; }
.he-chip.fin { background: linear-gradient(#ffe9a6, #ffcf4d); color: #3a2400; }
.he-left { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.he-cards { display: flex; } .he-cards .cd { --cw: 20px; font-size: 5px; } .he-cards .cd + .cd { margin-left: -8px; }
.he-left em { font-style: normal; font-size: 11px; font-weight: 800; color: #ffb3bd; white-space: nowrap; } .he-left em.zero { color: #9dff7a; }
.he-left .he-tot { font-size: 10.5px; font-weight: 700; color: rgba(223,228,255,.6); white-space: nowrap; }
/* what the cards left cost (charged at once) */
.he-pen { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; color: #fff;
  background: linear-gradient(#ff7a8a, #d9344a); box-shadow: 0 2px 0 #7a1424; font-variant-numeric: tabular-nums; }
.he-pen.zero { color: #0f2b06; background: linear-gradient(#b5f58f, #58c93a); box-shadow: 0 2px 0 #2f7a1a; }
.he-next { margin: 12px 16px 0; font-size: 11.5px; color: rgba(223,228,255,.65); text-align: center; }
.he-next i { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.he-next b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #5fd1f0, #a28dff); transform-origin: left; animation: heBar linear forwards; }
@keyframes heBar { from { transform: scaleX(0); } }
@media (max-width: 620px) {
  .he-top { padding: 30px 14px 10px; } .he-hero { width: 62px; height: 62px; } .he-top h3 { font-size: 18px; }
  .he-rows { padding: 4px 10px; } .he-row { gap: 8px; padding: 7px 9px; } .he-av { width: 32px; height: 32px; }
  .he-cards .cd { --cw: 15px; } .he-cards .cd + .cd { margin-left: -6px; }
}

/* ================= the phases (side panel): who is on each one, as little pictures ================= */
.p10-phases .ph { grid-template-columns: 26px minmax(0, 1fr) auto; }
.ph-who { display: flex; align-items: center; }
.ph-who .who { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-style: normal;
  font-size: 10px; font-weight: 900; color: #fff; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.5), transparent 42%), var(--bg);
  box-shadow: 0 0 0 2px #17153a; animation: pop21 .35s cubic-bezier(.3,1.6,.5,1); }
.ph-who .who:first-child { margin-left: 0; }
.ph-who .who.me { z-index: 1; box-shadow: 0 0 0 2px #17153a, 0 0 0 4px #a28dff; }
.ph-who .who svg.i { width: 12px; height: 12px; } .ph-who .who .ava-img { width: 100%; height: 100%; object-fit: cover; }
.p10-phases .ph.fin { color: #ffe08a; font-weight: 700; } .p10-phases .ph.fin b { background: linear-gradient(#ffe9a6, #ffcf4d); color: #3a2400; }
/* (a profile picture fills its own little circle only: every circle that can hold one keeps it inside) */
.ph-who .who, .sk-av, .he-av, .he-hav, .plate10 .av { position: relative; overflow: hidden; }
/* ================= computer: the whole table and the bar under it on one screen (no scrolling) ================= */
@media (min-width: 621px) {
  /* the height the screen leaves (top bar, the bar under the table), never taller than before, never too short;
     it stays the same while you play */
  .p10-felt { height: clamp(640px, calc(100dvh - var(--top) - 150px), 790px);
    grid-template-rows: minmax(130px, 150px) minmax(0, 1fr) minmax(140px, 160px) minmax(166px, 182px); }
  .p10-dock { margin-top: 10px; }
  /* the deck and the discard pile fit the room the middle has */
  .p10-center { container-type: size; }
  .p10-pile { --pw: clamp(46px, calc((100cqh - 34px) / 1.41), 72px); }
  .p10-pile .pile-cards { width: var(--pw); height: calc(var(--pw) * 1.41); }
  .p10-pile .pile-cards .cd { --cw: var(--pw); }
  /* the phases laid down on the table (sets, runs, one colour): a little bigger */
  .op .grp .cd { --cw: 38px; }
  .op .grp .cd + .cd { margin-left: -15px; }
  .p10-mine .grp .cd { --cw: 50px; }
  .p10-mine .grp .cd + .cd { margin-left: -20px; }
}
/* ================= the deck and the discard pile: a little lower ================= */
/* the cards just above the dashed line of your part of the table, their label (deck · N) just under it */
.p10-center { align-items: flex-end; }
.p10-center > .p10-pile { margin-bottom: -31px; }
@media (max-width: 620px) { .p10-center > .p10-pile { margin-bottom: -26px; }
  /* (phone: the white line of what to lay down goes a little lower, under the piles' label) */
  .p10-mine > .p10-goal { margin-top: 12px; } }
/* the short messages (your turn, skip, a phase laid down, shuffling): beside the piles, to the right — never over them */
.p10-center > .p10-banner { left: calc(50% + 104px); top: auto; bottom: 14px; max-width: calc(50% - 114px); transform: none;
  animation-name: banner10; }
@keyframes banner10 { from { transform: scale(.8); opacity: 0; } }
@media (max-width: 620px) {
  .p10-center > .p10-banner { left: calc(50% + 72px); bottom: 8px; max-width: calc(50% - 76px); padding: 7px 10px;
    border-radius: 12px; font-size: 12px; }
}/* phone: the chat button small, right at the bottom right corner (not over the table's buttons) */
@media (max-width: 620px) {
  body.game-phase10 .chat-fab { right: 8px; bottom: calc(8px + var(--kb, 0px) + env(safe-area-inset-bottom)); width: 38px; height: 38px; border-radius: 12px;
    box-shadow: 0 3px 0 #8a5a0a, 0 10px 20px -8px rgba(0,0,0,.8); }
  body.game-phase10 .chat-fab svg.i { width: 19px; height: 19px; }
  body.game-phase10 .chat-fab b { top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }
}

/* you were skipped: a red mark on your side of the table until the turn you lose has gone by */
.me-skip { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff;
  color: #c8102e; font-size: 12px; font-weight: 900; box-shadow: 0 0 0 2px #e3263f, 0 4px 12px -4px rgba(227,38,63,.7); animation: meSkip 1.8s ease-in-out infinite; }
.me-skip svg { width: 20px; height: 20px; flex: none; }
.me-skip.hidden { display: none; }
.p10-mine.skipped { box-shadow: inset 0 0 0 2px rgba(227,38,63,.55); }
@keyframes meSkip { 50% { box-shadow: 0 0 0 2px #e3263f, 0 0 18px 2px rgba(227,38,63,.6); } }
@media (prefers-reduced-motion: reduce) { .me-skip { animation: none; } }
/* "Undo" while putting cards in the places of the phase: small and quiet beside the main button, wood and gold */
.undo10 { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 800; color: #f3e2b8; background: rgba(20,14,8,.55); border: 1px solid rgba(217,180,106,.5);
  transition: background .2s, border-color .2s, transform .12s; animation: undoIn .3s cubic-bezier(.3,1.5,.5,1); }
.undo10 svg.i { width: 15px; height: 15px; }
.undo10:hover { background: rgba(217,180,106,.16); border-color: #d9b46a; }
.undo10:active { transform: translateY(1px); }
.undo10.hidden { display: none; }
@keyframes undoIn { from { opacity: 0; transform: scale(.8); } }
@media (max-width: 620px) { .undo10 { height: 28px; padding: 0 9px; font-size: 11.5px; } }
/* full screen: the button beside the pause; the table grows to the whole height of the screen */
.fs-mini { padding: 0 7px; }
.fs-mini + .pause-mini { margin-left: 6px; }
@media (min-width: 621px) {
  body.game-fs .p10-felt { height: clamp(640px, calc(100dvh - 120px), 1200px); }
}
/* ================= the cards fit the table on every screen (small, large, full screen) ================= */
/* The table is cut in shares of its height — the others, the piles, your phase, your hand — and each part measures
   itself to size its cards: the bigger the screen, the bigger every card, all together; never out of their place. */
@media (min-width: 621px) {
  /* (each part never smaller than it was: on a short screen the cards keep their size, on a taller one they grow) */
  .p10-felt { height: clamp(640px, calc(100dvh - var(--top) - 150px), 1100px); grid-template-rows: max(130px, 17%) minmax(0, 1fr) max(140px, 19%) max(170px, 25%); }
  body.game-fs .p10-felt { height: clamp(640px, calc(100dvh - 110px), 1600px); }
  /* the others: their laid-down cards from the room under their plates */
  .p10-opps { container-type: size; }
  .op .grp .cd { --cw: clamp(28px, calc((100cqh - 70px) / 1.41), 44px); }
  .op .grp .cd + .cd { margin-left: calc(var(--cw) * -.4); }
  /* your phase: the groups you laid down and the places to fill, from the room under the line of what to lay down */
  .p10-mine { container-type: size; }
  .p10-mine .grp .cd { --cw: clamp(36px, calc((100cqh - 46px) / 1.41), 62px); }
  .p10-mine .grp .cd + .cd { margin-left: calc(var(--cw) * -.4); }
  .ph-slots { --sw: clamp(30px, calc((100cqh - 92px) / 1.41), 64px); }
  /* your hand: as tall as its part of the table allows, and never wider than eleven cards side by side */
  .p10-rack { container-type: size; }
  .p10-rack .p10-hand { --hcw: clamp(56px, min(calc((100cqh - 52px) / 1.41), calc((100cqw - 24px) / 10.4)), 80px); min-height: 0; padding-top: 22px; }
  .p10-hand .cd.fit::after { width: calc(var(--hcw) * .24); height: calc(var(--hcw) * .24); font-size: calc(var(--hcw) * .18); }
}
/* phones: the table as tall as the screen leaves, your hand as big as its part and the screen's width allow */
@media (max-width: 620px) {
  .p10-felt { height: clamp(540px, calc(100dvh - var(--top) - 130px), 780px); grid-template-rows: 27% minmax(0, 1fr) 20% 22%; }
  body.game-fs .p10-felt { height: clamp(540px, calc(100dvh - 100px), 900px); }
  .p10-rack { container-type: size; }
  .p10-rack .p10-hand { --hcw: clamp(40px, min(calc((100cqh - 58px) / 1.41), calc((100cqw - 28px) / 7)), 72px); min-height: 0; }
  /* (your laid-down groups grow with the room they have) */
  .p10-mine { container-type: size; }
  .p10-mine .grp .cd { --cw: clamp(28px, calc((100cqh - 44px) / 1.41), 52px); }
  .p10-mine .grp .cd + .cd { margin-left: calc(var(--cw) * -.4); }
}
/* ================= full screen: the whole table and its bar on the screen, no scrolling ================= */
/* the table takes the height the bar under it leaves; the column on the right fits the same height: the phases and the
   table on top, "what happened" scrolls inside, "Leave the table" always in sight at the bottom */
body.game-fs .p10-layout { height: 100%; align-items: stretch; }
body.game-fs .p10-layout .t21-main { display: flex; flex-direction: column; min-height: 0; height: 100%; }
body.game-fs .p10-felt, body.game-fs[data-page] .p10-felt { flex: 1 1 auto; height: auto; min-height: 0; }
body.game-fs .p10-dock { flex: none; position: static; }
body.game-fs .p10-layout > .t21-side { position: static; height: 100%; min-height: 0; overflow: hidden; }
body.game-fs .p10-layout > .t21-side > .panel21 { flex: none; }
body.game-fs .p10-layout > .t21-side > .panel21:has(.p10-phases) { max-height: 46%; overflow: auto; }
body.game-fs .p10-layout > .t21-side > .panel21:has(.log21) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.game-fs .p10-layout > .t21-side .log21 { flex: 1 1 auto; min-height: 0; max-height: none; }
body.game-fs .p10-layout > .t21-side > .btn { flex: none; }
/* (one column — tablets, phones: the column on the right would go under the table; in full screen it is not shown) */
@media (max-width: 1100px) {
  body.game-fs .p10-layout > .t21-side { display: none; }
}
.p10-dock .fs-leave + .fs-mini { margin-left: 6px; }