/* Last Card (static/js/games/lastcard.js): a round glass table — the others round its edge, the deck and the pile in
   the middle inside a glowing ring of the colour asked (its arrows turn the way the play goes), your cards fanned under
   it. Four tables (.lct-*) and four card backs (drawn in the js), each player may choose their own. */

/* ---------- the tables ---------- */
.lct-nebula { --f1: #3a2186; --f2: #150b3d; --f3: #08051c; --rim1: #8b6bff; --rim2: #2a1670; --glow: rgba(150,110,255,.35); }
.lct-ocean { --f1: #0f6b7c; --f2: #083a52; --f3: #031827; --rim1: #43e0d6; --rim2: #0b4a5c; --glow: rgba(67,224,214,.3); }
.lct-sunset { --f1: #a8324a; --f2: #4c1438; --f3: #1c0820; --rim1: #ffb35a; --rim2: #6b1d3a; --glow: rgba(255,150,90,.32); }
.lct-graphite { --f1: #3b4150; --f2: #1c2029; --f3: #0b0d12; --rim1: #c9d2e3; --rim2: #2b303c; --glow: rgba(200,215,235,.22); }
.c-r { --rc: #ff4d61; } .c-y { --rc: #ffcc2e; } .c-g { --rc: #2fcb78; } .c-b { --rc: #3a97ff; } .c-k { --rc: #c9c2ff; }

/* ---------- a card ---------- */
/* (the cards' shadows are box-shadows round their rounded corners, not drop-shadow filters: a filter was worked out
   again on every frame anything near it moved — measured, the table about four times lighter without them) */
.lcc { position: relative; display: block; width: var(--cw, 80px); aspect-ratio: 2 / 3; flex: none; border-radius: calc(var(--cw, 80px) * .13);
  box-shadow: 0 3px 5px rgba(0,0,0,.45); }
.lcc .lcsvg, .lc-hc .lcsvg { display: block; width: 100%; height: 100%; }
.lc-ghost { position: fixed; z-index: 95; pointer-events: none; will-change: transform; }
.lc-ghost .lcc { width: 100%; }

/* ---------- the page: the table on one screen, nothing scrolls ---------- */
html:has(body.game-lastcard[data-page="table"]) { overflow: hidden; }
body.game-lastcard[data-page="table"] .site-foot { display: none; }
body.game-lastcard[data-page="table"] .chat-fab { display: none !important; }
body.game-lastcard[data-page="table"] #table.page { max-width: none; height: calc(100dvh - var(--top)); box-sizing: border-box; overflow: hidden; padding: 10px 14px; }
body.game-fs .lc-wrap { height: 100%; }
.lc-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 100%; --cw: clamp(58px, 6.4vw, 96px); }

/* ---------- the round table ---------- */
.lc-felt { position: relative; min-height: 0; border-radius: 50% / 46%; isolation: isolate;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--f1), var(--f2) 62%, var(--f3));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.06), inset 0 0 0 10px var(--rim2), inset 0 0 0 12px var(--rim1), inset 0 0 70px rgba(0,0,0,.6),
              0 0 50px -8px var(--glow), 0 26px 50px -20px rgba(0,0,0,.9); }
.lc-felt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 40% 20% at 50% 8%, rgba(255,255,255,.12), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); }
.lc-tools { position: absolute; top: 4px; right: 4px; z-index: 30; display: flex; gap: 6px; }
.lc-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; padding: 0; border-radius: 12px;
  cursor: pointer; color: #f1ecff; font: 800 12.5px 'Inter', system-ui, sans-serif; background: rgba(10,8,30,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16); }
.lc-tool:hover { border-color: rgba(255,216,102,.55); }
.lc-tool svg.i { width: 17px; height: 17px; }
.lc-tool.wide { width: auto; padding: 0 13px; }
.lc-tool.hidden { display: none; }
.lc-tool > b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; display: grid; place-items: center;
  font-size: 10.5px; color: #fff; background: #ff4d6d; }
.lc-tool > b.hidden { display: none; }
.lc-tool.lc-leave:hover { border-color: rgba(255,90,78,.6); color: #ffb3ab; }
.lc-mute .tv-snd-off { display: none; }
body.tv-muted .lc-mute .tv-snd-off { display: inline; } body.tv-muted .lc-mute .tv-snd-on { display: none; }

/* ---------- the others, round the edge ---------- */
.lc-opps { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.lc-opp { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; transition: left .4s, top .4s; }
.lc-av { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 3px; box-sizing: border-box; border-radius: 50%; }
.lc-av.sm { width: 30px; height: 30px; padding: 2px; }
.lc-tring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.14); }
.lc-opp.turn .lc-tring, .lc-dock.my-turn .lc-tring { background: conic-gradient(#ffd866 calc(var(--k, 1) * 360deg), rgba(255,255,255,.12) 0); }
.lc-avi { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 900; font-size: 17px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.5), transparent 42%), var(--bg); box-shadow: 0 0 0 2px #17153a; }
.lc-avi svg.i { width: 22px; height: 22px; } .lc-avi .ava-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-opp.turn .lc-av { box-shadow: 0 0 10px rgba(255,216,102,.65); }
.lc-on { display: grid; justify-items: center; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lc-on b { font-size: 12.5px; font-weight: 900; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-on small { font-size: 10.5px; color: rgba(255,255,255,.7); font-weight: 700; }
.lc-fan { position: relative; display: block; width: 74px; height: 34px; }
.lc-fan i { position: absolute; left: 50%; bottom: 0; width: 20px; height: 30px; margin-left: -10px; border-radius: 4px; transform-origin: 50% 120%;
  transform: rotate(calc(var(--k) * 9deg)) translateY(calc(var(--k) * var(--k) * .4px)); background: linear-gradient(150deg, #2b2752, #121026); border: 1.5px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.lc-fan i::after { content: ''; position: absolute; inset: 6px 4px; border-radius: 2px; background: conic-gradient(#ff4d61 0 25%, #3a97ff 0 50%, #2fcb78 0 75%, #ffcc2e 0); opacity: .85; }
.lc-fan em { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 900; color: #1a1300; background: #ffd866; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.lc-one { display: none; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 999px; color: #2a1d00; background: linear-gradient(180deg, #fff1b8, #ffd866); box-shadow: 0 0 14px rgba(255,216,102,.7); }
.lc-opp.one .lc-one { display: block; animation: lcOne 1.2s ease-in-out infinite; }
@keyframes lcOne { 50% { transform: scale(1.1); } }
.lc-pop { position: absolute; left: 50%; top: 0; z-index: 9; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; font-weight: 900; font-size: 13px;
  padding: 4px 10px; border-radius: 999px; animation: lcPop 1.6s ease-out forwards; }
.lc-pop.skip { font-size: 24px; color: #fff; background: #ff4d61; padding: 0 10px; }
.lc-pop.call { color: #2a1d00; background: linear-gradient(180deg, #fff1b8, #ffd866); box-shadow: 0 0 18px rgba(255,216,102,.8); }
@keyframes lcPop { 0% { transform: translate(-50%, -20%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -70%) scale(1.15); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -140%) scale(1); opacity: 0; } }

/* ---------- the middle: the ring of the colour asked, the deck, the pile ---------- */
.lc-center { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; justify-content: center;
  gap: calc(var(--cw) * .5); width: calc(var(--cw) * 3.2); height: calc(var(--cw) * 2.3); }
.lc-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 3.6); height: calc(var(--cw) * 3.6); margin: calc(var(--cw) * -1.8) 0 0 calc(var(--cw) * -1.8);
  border-radius: 50%; pointer-events: none; transition: --rc .4s;
  background: radial-gradient(circle, transparent 62%, color-mix(in srgb, var(--rc) 22%, transparent) 66%, transparent 71%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 70%, transparent), 0 0 36px -2px var(--rc), inset 0 0 40px -6px var(--rc);
  animation: lcSpin 10s linear infinite; }
.lc-ring.ccw { animation-direction: reverse; }
.lc-ring.flip { animation: lcSpin 10s linear infinite, lcFlip .7s ease-out; }
.lc-ring.ccw.flip { animation: lcSpin 10s linear infinite reverse, lcFlip .7s ease-out; }
@keyframes lcSpin { to { rotate: 360deg; } }
@keyframes lcFlip { 0% { scale: 1; } 40% { scale: 1.12; filter: brightness(1.6); } 100% { scale: 1; } }
.lc-arr { position: absolute; width: 0; height: 0; border: 9px solid transparent; border-left: 14px solid var(--rc); filter: drop-shadow(0 0 6px var(--rc)); }
.lc-arr.a1 { left: 50%; top: -9px; margin-left: -4px; }
.lc-arr.a2 { left: 50%; bottom: -9px; margin-left: -10px; transform: rotate(180deg); }
.lc-ring.ccw .lc-arr.a1 { transform: rotate(180deg); } .lc-ring.ccw .lc-arr.a2 { transform: none; }
.lc-deck { position: relative; width: var(--cw); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: default; }
.lc-deck .lc-stack { position: absolute; inset: 0; }
.lc-deck .lcc { position: absolute; inset: 0; width: 100%; }
.lc-deck .lcc.d1 { transform: translate(-4px, 4px) rotate(-3deg); } .lc-deck .lcc.d2 { transform: translate(-2px, 2px) rotate(-1deg); }
.lc-deck.can { cursor: pointer; }
.lc-deck.can .lcc.d3 { animation: lcCan 1.4s ease-in-out infinite; }
@keyframes lcCan { 50% { transform: translateY(-5px); } }
/* (its glow: drawn once, only its opacity breathes) */
.lc-deck.can .lcc.d3::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 12px rgba(255,216,102,.85);
  opacity: 0; animation: lcBreath 1.4s ease-in-out infinite; }
@keyframes lcBreath { 50% { opacity: 1; } }
.lc-deck-n { position: absolute; z-index: 3; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px;
  background: rgba(8,6,24,.85); border: 1px solid rgba(255,255,255,.2); }
.lc-pile { position: relative; width: var(--cw); aspect-ratio: 2 / 3; }
.lc-pile .lcc { position: absolute; inset: 0; width: 100%; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.lc-pile .lcc.land { animation: lcLand .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes lcLand { from { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.25); filter: brightness(1.4); box-shadow: 0 10px 18px rgba(0,0,0,.6); } }
.lc-felt > .lc-banner { position: absolute; left: 50%; top: 21%; z-index: 25; transform: translateX(-50%); width: max-content; max-width: min(90%, 520px); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.lc-felt > .lc-banner.blank { display: none; }
.lc-banner.col { border-color: var(--rc); box-shadow: 0 0 22px -4px var(--rc); }
.lc-felt > .paused21 { z-index: 26; }
.lc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; }

/* ---------- you: the dock and your hand ---------- */
.lc-me { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.lc-dock { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 12px; border-radius: 18px; min-width: 0; }
.lc-who { flex: none; }
.lc-dock-mid { flex: 1; min-width: 0; }
.lc-dock .turnlbl { margin-bottom: 6px; }
.lc-dock .turnlbl span { white-space: nowrap; }
.lc-dock .tbar { height: 9px; }
.lc-dock.my-turn { border-color: rgba(255,216,102,.55); }
.lc-acts { flex: none; display: flex; gap: 7px; }
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 13px; cursor: pointer;
  font: 900 13px 'Inter', system-ui, sans-serif; letter-spacing: .3px; color: #fff; border: 0; transition: transform .15s, filter .2s; }
.lc-btn:active { transform: translateY(1px) scale(.97); }
.lc-btn.hidden { display: none; }
.lc-btn.take { background: linear-gradient(180deg, #6fb8ff, #2f7fe0 50%, #1a4fa8); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 4px 0 #0e2f6a; }
.lc-btn.pass { background: linear-gradient(180deg, #8b88a8, #555273); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 4px 0 #2c2a42; }
.lc-btn.call { color: #2a1800; background: linear-gradient(180deg, #fff1b8, #ffd866 45%, #e5a92e); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 #7a4c10;
  animation: lcCall 1s ease-in-out infinite; }
.lc-btn.call.on { animation: none; color: #fff; background: linear-gradient(180deg, #7dffa8, #20b866 50%, #0f7a40); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 4px 0 #0a4d29, 0 0 22px rgba(125,255,168,.7); }
@keyframes lcCall { 50% { transform: scale(1.06); filter: brightness(1.12); } }
.lc-hand { display: flex; justify-content: safe center; align-items: flex-end; min-width: 0; padding: 30px 8px 4px; overflow: hidden; --ov: .1; }
.lc-hand::-webkit-scrollbar { display: none; }
.lc-hc { position: relative; flex: none; width: var(--cw); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer;
  margin-left: calc(var(--cw) * var(--ov) * -1); border-radius: calc(var(--cw) * .13);
  transform: translateY(calc(var(--d) * var(--d) * .6px)) rotate(calc(var(--d) * 1.6deg)); transform-origin: 50% 120%; transition: transform .18s, filter .2s, opacity .2s; }
/* (the shadow is on the picture: it rises with it under the pointer) */
.lc-hc .lcsvg { border-radius: calc(var(--cw) * .13); box-shadow: 0 4px 6px rgba(0,0,0,.5); }
.lc-hc:first-child { margin-left: 0; }
.lc-hc.no { opacity: .55; filter: saturate(.6); cursor: default; }
.lc-hc.ok { transform: translateY(calc(var(--d) * var(--d) * .6px - 12px)) rotate(calc(var(--d) * 1.6deg)); }
.lc-hc.ok .lcsvg { box-shadow: 0 0 10px rgba(255,216,102,.75), 0 6px 8px rgba(0,0,0,.5); }
/* (under the pointer only the picture rises and straightens: the card's place in the fan stays where it is, so neither
   its lower edge nor its sides move away from the pointer — no flicker) */
.lc-hc.ok:hover, .lc-hc.ok:focus-visible { z-index: 5; }
.lc-hc .lcsvg { transition: transform .18s, box-shadow .2s; }
.lc-hc.ok:hover .lcsvg, .lc-hc.ok:focus-visible .lcsvg { transform: translateY(-14px) rotate(calc(var(--d) * -1.6deg)) scale(1.06); }
/* (the space a risen card leaves below still counts as the card: it never flickers at its lower edge) */
.lc-hc.ok:hover::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 40px; }
/* (the card just drawn: a green glow breathing round it — drawn once, only its opacity changes; it rises with the
   picture under the pointer) */
.lc-hc.new::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 16px rgba(125,255,168,.95);
  opacity: 0; animation: lcBreath 1.1s ease-in-out infinite; transition: transform .18s; }
.lc-hc.new.ok:hover::after, .lc-hc.new.ok:focus-visible::after { transform: translateY(-14px) rotate(calc(var(--d) * -1.6deg)) scale(1.06); }
.lc-hc.came { animation: lcCame .45s cubic-bezier(.3,1.3,.5,1); }
@keyframes lcCame { from { transform: translateY(-60px) rotate(-12deg) scale(.7); opacity: 0; } }
.lc-hand.dealt .lc-hc { animation: lcDeal .5s cubic-bezier(.3,1.2,.5,1) backwards; animation-delay: calc(var(--i) * 70ms + .3s); }
@keyframes lcDeal { from { transform: translateY(-160px) rotateY(90deg) scale(.6); opacity: 0; } }
/* the deal: each of your cards waits hidden in its place, then turns up as its card lands there */
.lc-hc.wait { visibility: hidden; }
.lc-hc.flip { animation: lcFlip .45s cubic-bezier(.3,1.2,.5,1); }
@keyframes lcFlip { from { transform: rotateY(90deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .lc-hc.flip { animation: none !important; } }
.lc-hc.nope { animation: lcNope .35s; }
@keyframes lcNope { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

/* ---------- choosing a colour, a player ---------- */
.lc-pick { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4,3,14,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lc-pick.hidden { display: none; }
.lc-pick-in { width: min(380px, 100%); padding: 20px; border-radius: 24px; text-align: center; display: grid; gap: 14px;
  background: linear-gradient(165deg, rgba(42,31,100,.98), rgba(17,13,44,.98)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: lcIn .25s ease-out; }
@keyframes lcIn { from { transform: scale(.92); opacity: 0; } }
.lc-pick-in h3 { margin: 0; font-size: 18px; font-weight: 900; }
.lc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-col { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; cursor: pointer; color: #fff; font: 900 14px 'Inter', system-ui, sans-serif;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 85%, #fff), color-mix(in srgb, var(--rc) 70%, #000)); border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 18px -8px var(--rc); transition: transform .15s; }
.lc-col:hover { transform: translateY(-3px) scale(1.03); }
.lc-col i { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 8px var(--rc); }
.lc-col.c-y { color: #2a1d00; }
.lc-who-list { display: grid; gap: 8px; }
.lc-whob { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; cursor: pointer; color: var(--text); font: 800 14px 'Inter', system-ui, sans-serif;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.lc-whob:hover { border-color: #ffd866; }
.lc-whob b { flex: 1; text-align: left; } .lc-whob em { font-style: normal; color: #ffd866; font-weight: 900; }

/* ---------- the end of a hand ---------- */
.lc-res { position: absolute; left: 50%; top: 42%; z-index: 40; transform: translate(-50%, -50%); width: min(560px, 94%); }
.lc-res.hidden { display: none; }
.lc-res-in { padding: 16px; border-radius: 22px; background: linear-gradient(165deg, rgba(42,31,100,.97), rgba(17,13,44,.97)); border: 1px solid rgba(255,216,102,.4);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.95); animation: lcIn .3s ease-out; }
.lc-res-in h3 { margin: 0 0 10px; font-size: 17px; font-weight: 900; text-align: center; color: #ffe7a3; }
.lc-res-rows { display: grid; gap: 6px; }
.lc-rr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.lc-rr:has(.lc-rt) { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.lc-rr.win { box-shadow: inset 0 0 0 1px rgba(255,216,102,.6); background: rgba(255,216,102,.08); }
.lc-rr b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-rc { display: flex; align-items: center; grid-column: 2; grid-row: 2; }
.lc-rr .lc-rc { grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; gap: 2px; }
.lc-rc .lcc.mini { --cw: 22px; box-shadow: none; }
.lc-rc em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.lc-rp { font-weight: 900; color: #ffd866; font-variant-numeric: tabular-nums; }
.lc-rt { display: grid; justify-items: end; font-weight: 900; line-height: 1; } .lc-rt small { font-size: 9.5px; color: var(--muted); font-weight: 700; }
.lc-res-n { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- home: a fan of cards; my look ---------- */
.hero-lc .lc-art { position: relative; display: flex; justify-content: center; padding: 8px 0 18px; }
.lc-fanart { position: relative; height: 150px; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.lc-fanart .lcc.fa { --cw: 86px; position: absolute; bottom: 0; left: 50%; margin-left: -43px; transform-origin: 50% 130%; transform: rotate(calc(var(--i) * 13deg));
  animation: lcFan 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes lcFan { 50% { transform: rotate(calc(var(--i) * 15deg)) translateY(-6px); } }
.lc-target { display: grid; grid-template-columns: repeat(5, 1fr); }
.lc-target button { font-size: 12.5px; font-weight: 900; }
.lc-lk { position: relative; display: block; width: 100%; height: 100%; min-height: 60px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, var(--f1), var(--f2) 70%, var(--f3)); box-shadow: inset 0 0 0 2px var(--rim1); }
.lc-lk-c { position: absolute; top: 50%; width: 28%; max-width: 46px; aspect-ratio: 2 / 3; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.lc-lk-c .lcsvg { width: 100%; height: 100%; display: block; }
.lc-lk-c.b { left: 26%; transform: translate(-50%, -50%) rotate(-10deg); } .lc-lk-c.f { left: 62%; transform: translate(-50%, -50%) rotate(8deg); }
.logo-lc { width: 36px; height: 36px; flex: none; } .logo-lc svg { width: 36px; height: 36px; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }

@media (prefers-reduced-motion: reduce) {
  .lc-ring, .lc-deck.can .lcc.d3, .lc-btn.call, .lc-hc.new, .lc-opp.one .lc-one, .lc-fanart .lcc.fa,
  .lc-deck.can .lcc.d3::after, .lc-hc.new::after { animation: none !important; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 760px) {
  .lc-wrap { --cw: clamp(48px, 13vw, 66px); }
  .lc-felt { border-radius: 40% / 30%; }
  .lc-av { width: 40px; height: 40px; } .lc-on b { font-size: 11px; max-width: 80px; } .lc-fan { width: 54px; height: 26px; } .lc-fan i { width: 15px; height: 22px; margin-left: -7.5px; }
  .lc-dock { gap: 8px; padding: 7px 9px; } .lc-dock .lc-who { display: none; }
  .lc-btn { min-height: 38px; padding: 0 11px; font-size: 12px; }
  .lc-tool { width: 34px; height: 34px; }
}
/* a phone sideways: no site bar, the table and your cards on one screen */
@media (orientation: landscape) and (max-height: 520px) {
  body.game-lastcard[data-page="table"] .top { display: none; }
  body.game-lastcard[data-page="table"] #table.page { height: 100dvh; margin: 0; padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(2px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .lc-wrap { --cw: clamp(40px, 10.5vh, 56px); gap: 4px; }
  .lc-felt { border-radius: 50% / 46%; }
  .lc-av { width: 32px; height: 32px; padding: 2px; } .lc-on small { display: none; } .lc-fan { width: 46px; height: 20px; } .lc-fan i { width: 12px; height: 18px; margin-left: -6px; }
  .lc-dock { padding: 4px 8px; border-radius: 12px; } .lc-dock .turnlbl { font-size: 11.5px; margin-bottom: 3px; } .lc-dock .tbar { height: 6px; }
  .lc-btn { min-height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 10px; }
  .lc-hand { padding-top: 8px; }
  .lc-tool { width: 30px; height: 30px; border-radius: 10px; } .lc-tool svg.i { width: 15px; height: 15px; }
  .lc-felt > .lc-banner { top: 16%; font-size: 12px; }
}

/* (2026-10) the hand always fits the width (the overlap is measured: lastcard.js fitHand); the buttons fit a phone */
.lc-acts { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) {
  .lc-dock { flex-wrap: wrap; } .lc-dock-mid { flex: 1 1 100%; } .lc-acts { flex: 1 1 100%; justify-content: center; }
  .lc-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
}
@media (orientation: landscape) and (max-height: 520px) { .lc-hand { padding-top: 16px; } }
/* (2026-10) the time round the table's edge: a bar that empties, with its glow; gold on your turn, red at the end */
/* (the turn's line round the table: on its own layer — it changes every frame, the table under it is not drawn again;
   its glow is soft lines under it, not filters, which were worked out again every frame) */
.lc-timer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; will-change: transform; }
.lc-timer rect { fill: none; stroke-width: 6; }
.lc-timer .tr-bg { stroke: rgba(0,0,0,.35); }
.lc-timer .tr-fg { stroke: rgba(225,215,255,.75); stroke-linecap: round; stroke-dasharray: 100 100; transition: stroke .3s; }
.lc-timer.mine .tr-fg { stroke: #ffd866; }
.lc-timer.low .tr-fg { stroke: #ff5a6b; animation: lcLow .6s ease-in-out infinite alternate; }
.lc-timer.idle .tr-fg { opacity: 0; }
@keyframes lcLow { to { stroke-width: 8; } }
.lc-dock .tbar { display: none; }
.lc-dock .turnlbl { margin-bottom: 0; }
/* the buttons: pills with an icon, like the table */
.lc-btn { border-radius: 999px; padding: 0 18px 0 14px; gap: 8px; }
.lc-btn .lc-ico { width: 18px; height: 18px; flex: none; }
.lc-btn.take { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), linear-gradient(135deg, var(--rim1, #8b6bff), var(--f1, #3a2186));
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 16px -6px var(--rim1, #8b6bff), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.45); animation: lcTake 1.6s ease-in-out infinite; }
@keyframes lcTake { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 22px -4px var(--rim1, #8b6bff), inset 0 1px 0 rgba(255,255,255,.35); } }
.lc-btn.pass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
/* a phone: the table a rounded rectangle, not a long oval */
@media (max-width: 760px) and (orientation: portrait) {
  .lc-felt { border-radius: 46px; align-self: center; height: min(100%, 128vw); }
  .lc-center { top: 54%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .lc-felt { border-radius: 70px / 60px; }
  .lc-timer rect { stroke-width: 4.5; }
}

/* (2026-10, b) the buttons in a bar above the table (not on it); your move and its buttons in the middle of the dock,
   which keeps one height; the time round the table glows more, a light running at its head */
.lc-wrap { grid-template-rows: auto minmax(0, 1fr) auto; }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 6px 8px 6px 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(30,25,72,.92), rgba(14,12,38,.94)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 22px -14px rgba(0,0,0,.9); }
.lc-info { min-width: 0; font-size: 12.5px; font-weight: 800; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-top .lc-tools { position: static; flex: none; display: flex; gap: 6px; }
.lc-top .lc-tool { background: rgba(255,255,255,.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lc-dock { position: relative; display: block; padding: 8px 12px; text-align: center; }
.lc-dock .lc-who { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.lc-dock-mid { display: grid; justify-items: center; gap: 7px; min-width: 0; }
.lc-dock .turnlbl { justify-content: center; gap: 10px; max-width: 100%; margin: 0; }
.lc-dock .turnlbl b, .lc-dock .turnlbl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-dock .lc-acts { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; min-height: 42px; max-width: 100%; }
.lc-dock .lc-btn { flex: 0 1 auto; min-width: 0; }
.lc-dock .lc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-timer rect { stroke-width: 7; }
.lc-timer .tr-glow { stroke: rgba(225,215,255,.13); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 100 100; }
.lc-timer .tr-g1 { stroke: rgba(225,215,255,.26); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100 100; }
.lc-timer.mine .tr-glow { stroke: rgba(255,200,80,.2); } .lc-timer.low .tr-glow { stroke: rgba(255,80,100,.22); }
.lc-timer.mine .tr-g1 { stroke: rgba(255,216,102,.42); } .lc-timer.low .tr-g1 { stroke: rgba(255,90,107,.45); }
.lc-timer.idle .tr-glow, .lc-timer.idle .tr-g1, .lc-timer.idle .tr-head { opacity: 0; }
.lc-timer .tr-head { fill: #fff; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px rgba(225,215,255,.95)) drop-shadow(0 0 18px rgba(225,215,255,.7)); animation: lcHead .9s ease-in-out infinite alternate; }
.lc-timer.mine .tr-head { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ffd866) drop-shadow(0 0 20px rgba(255,190,60,.9)); }
.lc-timer.low .tr-head { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ff5a6b) drop-shadow(0 0 20px rgba(255,60,80,.9)); }
@keyframes lcHead { to { r: 7; } }
@media (max-width: 760px) {
  .lc-dock .lc-who { display: none; }
  .lc-dock .lc-acts { min-height: 38px; }
  .lc-hand { padding: 26px 8px calc(14px + env(safe-area-inset-bottom)); }
  .lc-top .lc-tool { width: 32px; height: 32px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .lc-dock { flex-wrap: nowrap; } .lc-dock-mid { flex: none; } .lc-acts { flex: none; }
  .lc-btn { flex: 0 1 auto; padding: 0 12px 0 10px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .lc-top { padding: 3px 6px 3px 10px; border-radius: 12px; } .lc-info { font-size: 11px; }
  .lc-dock { padding: 4px 8px; } .lc-dock-mid { gap: 4px; } .lc-dock .lc-acts { min-height: 30px; }
  .lc-hand { padding: 14px 8px calc(8px + env(safe-area-inset-bottom)); }
}

/* (2026-10, c) a computer: the buttons back on the table, top right, no bar; a phone keeps the bar above the table.
   The pause button (wide, with its word) keeps its own width */
@media (min-width: 761px) and (min-height: 521px) {
  .lc-wrap { grid-template-rows: minmax(0, 1fr) auto; }
  .lc-top { position: absolute; top: 4px; right: 4px; z-index: 30; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .lc-top .lc-info { display: none; }
  .lc-top .lc-tool { background: rgba(10,8,30,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.lc-top .lc-tool.wide { width: auto; padding: 0 12px; white-space: nowrap; flex: none; }
.lc-top .lc-tools { align-items: center; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 520px) {
  .lc-top .lc-tool.wide { height: 32px; padding: 0 10px; font-size: 11.5px; gap: 5px; }
  .lc-top .lc-tool.wide svg.i { width: 14px; height: 14px; }
}
/* (2026-10, d) the lengths wrap; whoever plays: a ring of orange into gold round them, glowing, white sparks running
   round it; many players: smaller seats round the sides too; the end of a hand: in the middle of the screen, whole */
.lc-target { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
.lc-opp.turn .lc-av, .lc-dock.my-turn .lc-av { transform: scale(1.08); transition: transform .3s; }
.lc-opp.turn .lc-tring, .lc-dock.my-turn .lc-tring { inset: -2px; background: conic-gradient(#ff7a1f, #ffb02e calc(var(--k, 1) * 180deg), #ffe066 calc(var(--k, 1) * 360deg), rgba(255,255,255,.1) 0);
  box-shadow: 0 0 5px rgba(255,160,40,.95), 0 0 14px rgba(255,200,60,.65); }
.lc-opp.turn .lc-av::after, .lc-dock.my-turn .lc-av::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(transparent 0 78%, rgba(255,255,255,.95) 84%, transparent 88%, transparent 0), conic-gradient(transparent 0 30%, rgba(255,255,255,.7) 33%, transparent 36%, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 65%, #000 72%, transparent 74%); mask: radial-gradient(circle, transparent 63%, #000 65%, #000 72%, transparent 74%);
  filter: drop-shadow(0 0 4px #fff); animation: lcSpark 1.3s linear infinite; }
@keyframes lcSpark { to { rotate: 360deg; } }
.lc-opps.many .lc-av { width: 40px; height: 40px; } .lc-opps.many .lc-on b { font-size: 11px; max-width: 76px; } .lc-opps.many .lc-on small { font-size: 9.5px; }
.lc-opps.many .lc-fan { width: 52px; height: 24px; } .lc-opps.many .lc-fan i { width: 14px; height: 20px; margin-left: -7px; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 520px) {
  .lc-opps.many .lc-av { width: 30px; height: 30px; padding: 2px; } .lc-opps.many .lc-on b { font-size: 10px; max-width: 58px; } .lc-opps.many .lc-on small { display: none; }
  .lc-opps.many .lc-fan { width: 40px; height: 18px; } .lc-opps.many .lc-fan i { width: 11px; height: 16px; margin-left: -5.5px; } .lc-opps.many .lc-fan em { min-width: 17px; height: 17px; font-size: 10px; }
}
.lc-res { position: fixed; inset: 0; left: 0; top: 0; z-index: 60; display: grid; place-items: center; width: auto; padding: 12px; transform: none; pointer-events: none; }
.lc-res.hidden { display: none; }
.lc-res-in { pointer-events: auto; width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; padding: 14px; }
.lc-rr { grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 5px 10px; gap: 10px; }
.lc-rr:has(.lc-rt) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.lc-rn { display: grid; gap: 3px; min-width: 0; }
.lc-rr .lc-rc { grid-column: auto; grid-row: auto; flex-wrap: nowrap; overflow: hidden; gap: 2px; }
.lc-rc .lcc.mini { --cw: 18px; }
@media (orientation: landscape) and (max-height: 520px) { .lc-res-in h3 { font-size: 14px; margin-bottom: 6px; } .lc-rr { padding: 3px 8px; } .lc-rc .lcc.mini { --cw: 14px; } }
@media (prefers-reduced-motion: reduce) { .lc-opp.turn .lc-av::after, .lc-dock.my-turn .lc-av::after { animation: none; } }

/* (2026-10, e) the button to take a card: always the same colour (violet into blue), whatever the table; the hand a
   little higher, so that the cards at the ends of its curve stay on the screen */
.lc-btn.take { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), linear-gradient(135deg, #8b6bff, #4a5bff 55%, #2f3fb8);
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 16px -6px #6b5bff, inset 0 1px 0 rgba(255,255,255,.35); }
@keyframes lcTake { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 22px -4px #7b6bff, inset 0 1px 0 rgba(255,255,255,.35); } }
.lc-hand { padding-bottom: calc(10px + env(safe-area-inset-bottom) + min(40px, var(--n, 7) * var(--n, 7) * .15px)); }
/* (2026-10, f) "Last card!" after the second-to-last card: bright, counting down */
.lc-btn.call.late { animation: lcCallNow .5s ease-in-out infinite alternate; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 #7a4c10, 0 0 22px rgba(255,216,102,.85); }
@keyframes lcCallNow { to { transform: scale(1.08); filter: brightness(1.15); } }

/* (2026-10, f) beside your own picture, like the others': your cards (a little fan and the number) and your points; a
   card you play leaves your hand at once; the time round the table a little thinner, and when a new turn fills it
   again it runs round smoothly with a flash of light */
.lc-dock .lc-who { display: flex; align-items: center; gap: 10px; }
.lc-mebadge { display: grid; justify-items: center; gap: 3px; }
.lc-mebadge em { position: relative; z-index: 1; margin-top: -14px; min-width: 22px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 900; color: #1a1300; background: #ffd866; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.lc-mebadge small { font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.75); white-space: nowrap; }
.lc-mefan { position: relative; display: block; width: 40px; height: 26px; }
.lc-mefan i { position: absolute; left: 50%; bottom: 0; width: 15px; height: 22px; margin-left: -7.5px; border-radius: 3px; transform-origin: 50% 120%;
  background: linear-gradient(150deg, #2b2752, #121026); border: 1.5px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.lc-mefan i:nth-child(1) { transform: rotate(-12deg); } .lc-mefan i:nth-child(3) { transform: rotate(12deg); }
.lc-mefan i::after { content: ''; position: absolute; inset: 4px 3px; border-radius: 2px; background: conic-gradient(#ff4d61 0 25%, #3a97ff 0 50%, #2fcb78 0 75%, #ffcc2e 0); opacity: .85; }
.lc-hc.gone { opacity: 0; transform: translateY(-20px) scale(.9); transition: opacity .12s, transform .12s; }
#lcTimer rect { stroke-width: 4.5; }
#lcTimer .tr-glow { stroke-width: 13; } #lcTimer .tr-g1 { stroke-width: 8; }
#lcTimer .tr-head { r: 4; animation-name: lcHeadS; }
#lcTimer.refill .tr-fg { animation: lcRefill .8s ease-out; }
#lcTimer.refill .tr-glow { animation: lcRefillG .8s ease-out; }
@keyframes lcRefill { 0% { stroke: #fff; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 22px rgba(255,216,102,.95)); } 100% { } }
@keyframes lcRefillG { 0% { stroke: rgba(255,255,255,.9); stroke-width: 22; } 100% { } }
@keyframes lcHeadS { to { r: 5.5; } }
@media (max-width: 760px) { #lcTimer rect { stroke-width: 3.2; } #lcTimer .tr-glow { stroke-width: 10; } #lcTimer .tr-g1 { stroke-width: 6; } }
@media (prefers-reduced-motion: reduce) { #lcTimer.refill .tr-fg, #lcTimer.refill .tr-glow { animation: none; } }

/* (2026-10, g) choosing the colour: the black card you play on top, four colours as polished stones (deep red, amber,
   emerald, royal blue — no toy colours), a small "Cancel" (back to your cards, nothing played); a quiet word when you
   have no card to play; the deck shuffled when the pile goes back into it */
.lc-pick-in.col { width: min(360px, 100%); padding: 18px 18px 14px; gap: 12px; background: linear-gradient(165deg, rgba(34,28,80,.97), rgba(12,10,32,.97));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.lc-pick-card { display: grid; place-items: center; margin-top: -4px; }
.lc-pick-card .lcc.mini { --cw: 44px; box-shadow: 0 6px 10px rgba(0,0,0,.5); }
.lc-pick-in.col h3 { font-size: 16px; color: #ece8ff; }
.lc-pick-in.col .lc-cols { gap: 10px; }
.lc-pick-in.col .lc-col { padding: 12px 8px 10px; gap: 7px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #ece8ff; font: 800 13px 'Inter', system-ui, sans-serif; box-shadow: none; transition: transform .15s, border-color .15s, background .15s; }
.lc-pick-in.col .lc-col:hover { transform: translateY(-2px); border-color: var(--rc); background: rgba(255,255,255,.08); }
.lc-pick-in.col .lc-col.c-y { color: #ece8ff; }
.lc-pick-in.col .gem { width: 42px; height: 42px; border-radius: 13px; transform: rotate(45deg) scale(.82);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.45), inset 0 -6px 10px rgba(0,0,0,.35), 0 6px 14px -4px rgba(0,0,0,.7), 0 0 16px -2px var(--rc); }
.lc-pick-in.col .c-r .gem { --rc: #e3344a; background: radial-gradient(circle at 32% 28%, #ff8a98, #d11f3a 45%, #7d0b1e); }
.lc-pick-in.col .c-y .gem { --rc: #f2b52a; background: radial-gradient(circle at 32% 28%, #ffe7a0, #e8a414 45%, #8a5a00); }
.lc-pick-in.col .c-g .gem { --rc: #22a866; background: radial-gradient(circle at 32% 28%, #8ff0c0, #17955a 45%, #075030); }
.lc-pick-in.col .c-b .gem { --rc: #3a7ee8; background: radial-gradient(circle at 32% 28%, #9cc4ff, #2a63c9 45%, #0f2f72); }
.lc-pick-x { justify-self: center; padding: 6px 14px; border-radius: 10px; cursor: pointer; background: none; border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.7); font: 700 12.5px 'Inter', system-ui, sans-serif; }
.lc-pick-x:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.lc-flash { position: absolute; left: 50%; top: 58%; z-index: 26; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px;
  border-radius: 14px; pointer-events: none; color: #f1ecff; font: 800 13.5px 'Inter', system-ui, sans-serif; white-space: nowrap;
  background: rgba(14,12,36,.82); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 12px 26px -10px rgba(0,0,0,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: lcFlashIn .4s cubic-bezier(.3,1.4,.5,1) backwards; }
.lc-flash i svg { width: 20px; height: 20px; fill: none; stroke: #ffb3bc; stroke-width: 1.8; stroke-linecap: round; display: block; }
.lc-flash.out { transition: opacity .35s, transform .35s; opacity: 0; transform: translate(-50%, -80%); }
@keyframes lcFlashIn { from { opacity: 0; transform: translate(-50%, -20%) scale(.92); } }
.lc-deck.shuffling .lc-stack .lcc.d1 { animation: lcRiffleA .5s ease-in-out 2; }
.lc-deck.shuffling .lc-stack .lcc.d2 { animation: lcRiffleB .5s ease-in-out 2; }
.lc-deck.shuffling .lc-stack .lcc.d3 { animation: lcRiffleC .5s ease-in-out 2; }
@keyframes lcRiffleA { 50% { transform: translate(-22px, -6px) rotate(-12deg); } }
@keyframes lcRiffleB { 50% { transform: translate(20px, -4px) rotate(10deg); } }
@keyframes lcRiffleC { 50% { transform: translate(0, -12px) rotate(2deg) scale(1.04); } }
.lc-hand { min-height: calc(var(--cw, 80px) * 1.5 + 30px); }
@media (prefers-reduced-motion: reduce) { .lc-flash, .lc-deck.shuffling .lcc { animation: none !important; } }

/* (2026-10-11) "take a card" pressed: it sinks, a ring of light runs out of it, then it rests dim until the card comes */
.lc-btn.pressed { pointer-events: none; filter: saturate(.55) brightness(.82); animation: lcPress .55s cubic-bezier(.2,.8,.2,1); }
@keyframes lcPress { 0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(160,140,255,.75); } 100% { transform: none; box-shadow: 0 0 0 18px rgba(160,140,255,0); } }
@media (prefers-reduced-motion: reduce) { .lc-btn.pressed { animation: none; } }

/* (2026-10-11) taking a card: at the press the deck's top card slides out a little and settles back — it gives a card */
.lc-deck.give .lc-stack .lcc.d3 { animation: lcGive .42s cubic-bezier(.3,1.3,.5,1) !important; }
@keyframes lcGive { 35% { transform: translate(8px, -12px) rotate(5deg); box-shadow: 0 8px 10px rgba(0,0,0,.45); } }
@media (prefers-reduced-motion: reduce) { .lc-deck.give .lc-stack .lcc.d3 { animation: none !important; } }
