
            .cc-card {
                --cc-ink: #09090b;
                position: relative;
                display: inline-block;
                vertical-align: middle;
                flex-shrink: 0;
                width: 46px;
                height: 64px;                                   /* 2.5 : 3.5 */
                border-radius: 9% / 6.43%;                      /* one circular radius at any size */
                overflow: hidden;
                font-size: 0;
                background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 52%, #f4f1ea 100%);
                border: 1px solid rgba(212, 212, 216, 0.4);
                box-shadow:
                    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
                    inset 0 -3px 5px -2px rgba(120, 96, 48, 0.2),
                    0 8px 20px rgba(0, 0, 0, 0.45),
                    0 2px 4px rgba(0, 0, 0, 0.2);
                rotate: var(--cc-tilt, 0deg);
                user-select: none;
                transition: width .2s ease, height .2s ease, translate .25s ease, box-shadow .25s ease;
            }
            /* Linen cardstock, under the art. */
            .cc-card::before {
                content: ''; position: absolute; inset: 0; pointer-events: none;
                background:
                    repeating-linear-gradient(0deg, rgba(90, 70, 40, .025) 0 1px, transparent 1px 3px),
                    repeating-linear-gradient(90deg, rgba(90, 70, 40, .02) 0 1px, transparent 1px 3px);
            }
            /* Lamination gloss, over the art. */
            .cc-card::after {
                content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
                background: linear-gradient(135deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%);
            }
            .cc-card + .cc-card { margin-left: -18px; }
            .cc-face { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; overflow: visible; }
            .cc-bk { position: absolute; inset: 0; z-index: 2; display: none; }
            .cc-bk svg { display: block; width: 100%; height: 100%; }
            .cc-card.cc-back { background: #0b0c10; border-color: rgba(0, 0, 0, .55); }
            .cc-card.cc-back::before { display: none; }
            .cc-card.cc-back .cc-face { display: none; }
            .cc-card.cc-back .cc-bk { display: block; }
            .cc-card.cc-back::after { background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 34%); }
            /* Landing moments (card_anim.js adds .cc-landed for ~1 s when a face-down card lands; never a loop). */
            .cc-bk { overflow: hidden; border-radius: inherit; }
            .cc-bk::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
            .cc-landed[data-land="glint"] .cc-bk::after { opacity: 1; background: linear-gradient(105deg, transparent 35%, rgba(255,246,214,.75) 48%, rgba(255,255,255,.95) 50%, rgba(255,236,170,.6) 53%, transparent 66%);
                background-size: 260% 100%; animation: ccGlint .8s cubic-bezier(.3,.1,.3,1) forwards; }
            @keyframes ccGlint { from { background-position: 120% 0; } to { background-position: -40% 0; } }
            /* Obsidian Gold: the glass catches the light as the glint crosses it - its conchoidal ripples brighten (--cc-og,
               read by the drawing's inline styles through the <use>) and fade. Reduce flashing: a third of the light. */
            @property --cc-og { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="glint"] .cc-bk svg { animation: ccObsLight 1s ease-out forwards; }
            @keyframes ccObsLight { 0% { --cc-og: 0; } 30% { --cc-og: 1; } 100% { --cc-og: 0; } }
            html.calm-flash .cc-landed[data-land="glint"] .cc-bk svg { animation-name: ccObsLightCalm; }
            @keyframes ccObsLightCalm { 0% { --cc-og: 0; } 40% { --cc-og: .3; } 100% { --cc-og: 0; } }
            html.calm-flash .cc-landed[data-land="glint"] .cc-bk::after { opacity: .4; }
            html.calm-motion .cc-landed[data-land="glint"] .cc-bk svg, html.calm-motion .cc-landed[data-land="glint"] .cc-bk::after { animation: none !important; opacity: 0; }
            /* Founder's Deck (stars): the twelve founding stars light one after another round the seal (--cc-st runs 0..1,
               each star's light reads its own step of it), the wax seal warms (--cc-sg), then the light goes out
               (--cc-sa). Reduce flashing: the stars only glow at a third, the seal barely warms. */
            @property --cc-st { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-sa { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-sg { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="stars"] .cc-bk svg { animation: ccStars 1.4s linear forwards; }
            @keyframes ccStars {
                0% { --cc-st: 0; --cc-sa: 1; --cc-sg: 0; animation-timing-function: cubic-bezier(.3,.2,.6,1); }
                62% { --cc-st: 1; --cc-sa: 1; --cc-sg: 0; animation-timing-function: ease-out; }
                76% { --cc-sg: .85; --cc-sa: .9; }
                100% { --cc-st: 1; --cc-sa: 0; --cc-sg: 0; }
            }
            html.calm-flash .cc-landed[data-land="stars"] .cc-bk svg { animation-name: ccStarsCalm; }
            @keyframes ccStarsCalm { 0% { --cc-st: 0; --cc-sa: .35; --cc-sg: 0; } 65% { --cc-st: 1; --cc-sa: .35; --cc-sg: .2; } 100% { --cc-st: 1; --cc-sa: 0; --cc-sg: 0; } }
            html.calm-motion .cc-landed[data-land="stars"] .cc-bk svg { animation: none !important; }
            /* Dragon Court: the pearl flares (::before), then an ember rises off it while a glint runs over the gold (::after). */
            .cc-bk::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
            .cc-landed[data-land="ember"] .cc-bk::before { background: radial-gradient(circle at 50% 50%, rgba(255,250,224,.95) 0, rgba(255,196,96,.75) 5%,
                rgba(47,191,138,.3) 11%, rgba(255,138,42,.12) 19%, transparent 27%); animation: ccPearl .9s ease-out forwards; }
            @keyframes ccPearl { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
            .cc-landed[data-land="ember"] .cc-bk::after { opacity: 1;
                background: radial-gradient(circle at 50% 50%, #fff3c4 0, #fb923c 22%, rgba(234,88,12,0) 50%) no-repeat,
                    linear-gradient(105deg, transparent 38%, rgba(255,236,180,.5) 48%, rgba(255,255,255,.75) 50%, rgba(255,220,140,.4) 52%, transparent 62%) no-repeat;
                background-size: 16% 11%, 260% 100%; animation: ccEmber 1.1s ease-out forwards; }
            @keyframes ccEmber { 0% { background-position: 50% 52%, 120% 0; opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { background-position: 63% 2%, -40% 0; opacity: 0; } }
            html.calm-flash .cc-landed[data-land="ember"] .cc-bk::before { animation-name: ccPearlCalm; animation-duration: 1.1s; }
            /* ... and a burst of embers flies off the pearl (the drawing's motes, --cc-ep / --cc-ea through the <use>). */
            @property --cc-ep { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ea { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="ember"] .cc-bk svg { animation: ccEmbers 1.3s linear forwards; }
            @keyframes ccEmbers {
                0% { --cc-ep: 0; --cc-ea: 0; animation-timing-function: cubic-bezier(.15,.75,.35,1); }
                10% { --cc-ea: 1; }
                65% { --cc-ea: .8; }
                100% { --cc-ep: 1; --cc-ea: 0; }
            }
            html.calm-flash .cc-landed[data-land="ember"] .cc-bk svg { animation-name: ccEmbersCalm; }
            @keyframes ccEmbersCalm { 0% { --cc-ep: 0; --cc-ea: 0; animation-timing-function: ease-out; } 30% { --cc-ea: .45; } 100% { --cc-ep: .7; --cc-ea: 0; } }
            html.calm-motion .cc-landed[data-land="ember"] .cc-bk svg { animation: none !important; }
            /* The Rival (impact): an impact star bursts from the slash and swells (--cc-rb, read by the drawing's inline styles
               through the <use>), heavy focus lines slam in on it (--cc-rf) and the sun flares (::before), then it all lifts.
               Reduce flashing: the star and the lines rise to a third, the sun warms gently. */
            @property --cc-rb { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-rf { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="impact"] .cc-bk svg { animation: ccRival 1.1s linear forwards; }
            @keyframes ccRival {
                0% { --cc-rb: 0; --cc-rf: 0; animation-timing-function: cubic-bezier(.2,.9,.3,1); }
                12% { --cc-rb: 1; --cc-rf: 1; }
                70% { --cc-rb: .85; --cc-rf: .45; animation-timing-function: ease-in; }
                100% { --cc-rb: 0; --cc-rf: 0; }
            }
            .cc-landed[data-land="impact"] .cc-bk::before { background: radial-gradient(circle at 50% 50%, rgba(255,243,220,.9) 0, rgba(255,177,92,.6) 12%,
                rgba(255,106,19,.25) 24%, transparent 36%); animation: ccPearl .9s ease-out .08s both; }
            html.calm-flash .cc-landed[data-land="impact"] .cc-bk svg { animation-name: ccRivalCalm; }
            @keyframes ccRivalCalm { 0% { --cc-rb: 0; --cc-rf: 0; } 40%, 65% { --cc-rb: .35; --cc-rf: .3; } 100% { --cc-rb: 0; --cc-rf: 0; } }
            html.calm-flash .cc-landed[data-land="impact"] .cc-bk::before { animation-name: ccPearlCalm; }
            html.calm-motion .cc-landed[data-land="impact"] .cc-bk svg, html.calm-motion .cc-landed[data-land="impact"] .cc-bk::before { animation: none !important; }
            /* Rain on Glass (run): a bead high on the glass breaks loose and runs down, its trail opening behind it (--cc-rn,
               read by the drawing through the <use>), while the street's light crosses the wet glass (::after, a soft silver
               sheen). Nothing flashes; reduce flashing still drops the sheen. */
            @property --cc-rn { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="run"] .cc-bk svg { animation: ccRun 1.05s cubic-bezier(.5,0,.6,1) forwards; }
            @keyframes ccRun { 0%, 8% { --cc-rn: 0; } 100% { --cc-rn: 1; } }
            .cc-landed[data-land="run"] .cc-bk::after { background: linear-gradient(170deg, transparent 30%, rgba(230,231,234,.14) 46%, rgba(255,255,255,.22) 50%, rgba(230,231,234,.12) 54%, transparent 70%);
                background-size: 100% 260%; animation: ccRunSheen 1.05s ease-out forwards; }
            @keyframes ccRunSheen { 0% { opacity: 0; background-position: 0 120%; } 25% { opacity: 1; } 100% { opacity: 0; background-position: 0 -40%; } }
            html.calm-flash .cc-landed[data-land="run"] .cc-bk::after { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="run"] .cc-bk svg, html.calm-motion .cc-landed[data-land="run"] .cc-bk::after { animation: none !important; }
            /* Wanted (tack): the sun catches the poster's tin tacks one after another (::before, four glints over the tacks)
               while a gust lifts the dust off the paper - a pale haze sweeping across the card (::after). Reduce flashing:
               the tacks only warm; calm motion: nothing. */
            .cc-landed[data-land="tack"] .cc-bk::before { opacity: 1;
                background: radial-gradient(circle at 18.8% 13.4%, rgba(255,252,236,.95) 0 1.6%, rgba(255,236,190,.5) 3.4%, transparent 6%),
                    radial-gradient(circle at 81.2% 13.4%, rgba(255,252,236,.95) 0 1.6%, rgba(255,236,190,.5) 3.4%, transparent 6%),
                    radial-gradient(circle at 81.2% 86.6%, rgba(255,252,236,.95) 0 1.6%, rgba(255,236,190,.5) 3.4%, transparent 6%),
                    radial-gradient(circle at 18.8% 86.6%, rgba(255,252,236,.95) 0 1.6%, rgba(255,236,190,.5) 3.4%, transparent 6%);
                background-size: 100% 100%; animation: ccTacks 1.1s ease-out forwards; }
            @keyframes ccTacks { 0% { opacity: 0; } 18% { opacity: 1; } 55% { opacity: .8; } 100% { opacity: 0; } }
            .cc-landed[data-land="tack"] .cc-bk::after { opacity: 1;
                background: linear-gradient(100deg, transparent 30%, rgba(236,214,170,.12) 40%, rgba(248,232,196,.38) 50%, rgba(236,214,170,.12) 60%, transparent 70%);
                background-size: 260% 100%; animation: ccDust 1.1s cubic-bezier(.3,.1,.4,1) forwards; }
            @keyframes ccDust { from { background-position: 130% 0; opacity: 1; } 80% { opacity: .9; } to { background-position: -40% 0; opacity: 0; } }
            html.calm-flash .cc-landed[data-land="tack"] .cc-bk::before { animation-name: ccTacksCalm; }
            @keyframes ccTacksCalm { 0% { opacity: 0; } 40% { opacity: .4; } 100% { opacity: 0; } }
            html.calm-motion .cc-landed[data-land="tack"] .cc-bk::before, html.calm-motion .cc-landed[data-land="tack"] .cc-bk::after { animation: none !important; opacity: 0; }
            /* Frosted Pane (breath): someone breathes on the cold glass - a soft pale fog blooms over the middle of the
               window and clears again from its edges (::before), and the frost catches the firelight from the room as it
               does (::after, a faint warm sheen across the panes). Nothing flashes; reduce flashing keeps only the fog. */
            .cc-landed[data-land="breath"] .cc-bk::before { opacity: 0;
                background: radial-gradient(ellipse 46% 34% at 50% 50%, rgba(240,246,250,.78) 0, rgba(226,236,244,.5) 45%, rgba(220,232,242,0) 100%);
                animation: ccBreath 1.15s ease-out forwards; }
            @keyframes ccBreath { 0% { opacity: 0; transform: scale(.55); } 28% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
            .cc-landed[data-land="breath"] .cc-bk::after { opacity: 1;
                background: linear-gradient(115deg, transparent 30%, rgba(255,214,150,.1) 44%, rgba(255,228,180,.26) 50%, rgba(255,214,150,.1) 56%, transparent 70%);
                background-size: 260% 100%; animation: ccPaneGlow 1.15s ease-in-out forwards; }
            @keyframes ccPaneGlow { from { background-position: 130% 0; opacity: 1; } 80% { opacity: .9; } to { background-position: -40% 0; opacity: 0; } }
            html.calm-flash .cc-landed[data-land="breath"] .cc-bk::after { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="breath"] .cc-bk::before, html.calm-motion .cc-landed[data-land="breath"] .cc-bk::after { animation: none !important; opacity: 0; }
            /* Dawn Launch (ignition): the engines light - the flame drops from the nozzles and steam billows out along the pad
               (--cc-ig runs 0..1, read by the drawing's inline styles through the <use>, so the lagoon's reflection lights
               too), sparks spray off the pad (--cc-ia their light) and the dawn glows warm round it (::after). Reduce
               flashing: the sparks and the glow at a third, nothing bright; calm motion: none. */
            @property --cc-ig { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ia { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="ignition"] .cc-bk svg { animation: ccIgnition 1.3s linear forwards; }
            @keyframes ccIgnition {
                0% { --cc-ig: 0; --cc-ia: 0; animation-timing-function: cubic-bezier(.2,.7,.35,1); }
                12% { --cc-ia: 1; }
                70% { --cc-ia: .75; }
                100% { --cc-ig: 1; --cc-ia: 0; }
            }
            .cc-landed[data-land="ignition"] .cc-bk::after { background: radial-gradient(ellipse 46% 16% at 50% 47%, rgba(255,226,168,.6) 0, rgba(242,98,31,.22) 45%, transparent 100%),
                radial-gradient(ellipse 46% 16% at 50% 53%, rgba(255,226,168,.42) 0, rgba(242,98,31,.16) 45%, transparent 100%);
                animation: ccIgniteGlow 1.3s ease-out forwards; }
            @keyframes ccIgniteGlow { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
            html.calm-flash .cc-landed[data-land="ignition"] .cc-bk svg { animation-name: ccIgnitionCalm; }
            @keyframes ccIgnitionCalm { 0% { --cc-ig: 0; --cc-ia: 0; animation-timing-function: ease-out; } 30% { --cc-ia: .33; } 100% { --cc-ig: 1; --cc-ia: 0; } }
            html.calm-flash .cc-landed[data-land="ignition"] .cc-bk::after { animation-name: ccChartGlowCalm; }
            html.calm-motion .cc-landed[data-land="ignition"] .cc-bk svg { animation: none !important; }
            html.calm-motion .cc-landed[data-land="ignition"] .cc-bk::after { animation: none !important; opacity: 0; }
            /* Low graphics: a Legendary back's particles stay out (every mote's light is multiplied by --cc-pk). */
            @property --cc-pk { syntax: '<number>'; inherits: true; initial-value: 1; }
            html.gfx-low .cc-bk { --cc-pk: 0; }
            /* Raster backs (rasterBacks(): a page with dozens of face-down cards on one plane, the Lounge's solitaires): the
               viewer's own back is one bitmap, not a live SVG per card; its landing moment still plays on the SVG. */
            html.cc-raster .cc-card:not([data-skin]) > .cc-bk { background: var(--cc-back-bitmap, var(--cc-back-tone, #0b0c10)) center / 100% 100% no-repeat; }
            html.cc-raster .cc-card:not([data-skin]):not(.cc-landed) > .cc-bk > svg { visibility: hidden; }
            /* Crimson Velvet (bloom): the light runs down the velvet's nap (--cc-vn / --cc-vo), the rose opens and glows between
               its crowns (--cc-vb), and a glint crosses the gilding. */
            @property --cc-vn { syntax: '<length>'; inherits: true; initial-value: 0px; }
            @property --cc-vo { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-vb { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="bloom"] .cc-bk svg { animation: ccBloom 1.3s linear forwards; }
            @keyframes ccBloom {
                0% { --cc-vn: -210px; --cc-vo: 0; --cc-vb: 0; animation-timing-function: ease-out; }
                15% { --cc-vo: 1; }
                45% { --cc-vb: 1; }
                70% { --cc-vo: .8; animation-timing-function: ease-in; }
                100% { --cc-vn: 210px; --cc-vo: 0; --cc-vb: 0; }
            }
            .cc-landed[data-land="bloom"] .cc-bk::after { background: linear-gradient(105deg, transparent 35%, rgba(255,240,210,.5) 48%, rgba(255,255,255,.75) 50%, rgba(255,232,170,.4) 53%, transparent 66%);
                background-size: 260% 100%; animation: ccGildGlint 1.3s cubic-bezier(.3,.1,.3,1) forwards; }
            html.calm-flash .cc-landed[data-land="bloom"] .cc-bk svg { animation-name: ccBloomCalm; }
            @keyframes ccBloomCalm { 0% { --cc-vn: -120px; --cc-vo: 0; --cc-vb: 0; } 50% { --cc-vo: .5; --cc-vb: .5; } 100% { --cc-vn: 120px; --cc-vo: 0; --cc-vb: 0; } }
            html.calm-flash .cc-landed[data-land="bloom"] .cc-bk::after { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="bloom"] .cc-bk svg { animation: none !important; }
            /* Country Line (ripple): a breath of wind crosses the paddy - a ripple runs out through the reflection (--cc-rp,
               the rings widening across the water and the light streaks sliding, read by the drawing's inline styles through
               the <use>) and the train's windows glow warmer (--cc-wl), then the water settles. Gentle at any setting (an
               Epic); reduce flashing: the windows warm to half. */
            @property --cc-rp { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-wl { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="ripple"] .cc-bk svg { animation: ccRipple 1.1s linear forwards; }
            @keyframes ccRipple {
                0% { --cc-rp: 0; --cc-wl: 0; animation-timing-function: cubic-bezier(.25,.6,.4,1); }
                35% { --cc-wl: 1; }
                100% { --cc-rp: 1; --cc-wl: 0; }
            }
            html.calm-flash .cc-landed[data-land="ripple"] .cc-bk svg { animation-name: ccRippleCalm; }
            @keyframes ccRippleCalm { 0% { --cc-rp: 0; --cc-wl: 0; } 45% { --cc-wl: .5; } 100% { --cc-rp: 1; --cc-wl: 0; } }
            html.calm-motion .cc-landed[data-land="ripple"] .cc-bk svg { animation: none !important; }
            @keyframes ccPearlCalm { 0% { opacity: 0; transform: scale(.9); } 40% { opacity: .3; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }
            /* Miami Nights: the back stutters on like a sign (::after, a dark veil with two strikes through it), then the
               sun blooms (::before, a warm glow over the sun that swells and settles). */
            .cc-landed[data-land="power"] .cc-bk::after { background: #12062e; animation: ccPower .7s steps(1) forwards; }
            @keyframes ccPower { 0% { opacity: .8; } 18% { opacity: .1; } 30% { opacity: .62; } 44% { opacity: 0; } 58% { opacity: .35; } 70%, 100% { opacity: 0; } }
            .cc-landed[data-land="power"] .cc-bk::before { background:
                radial-gradient(circle at 50% 31%, rgba(255,246,190,.85) 0, rgba(255,211,25,.5) 9%, rgba(255,60,172,.28) 18%, transparent 30%),
                radial-gradient(circle at 50% 69%, rgba(255,246,190,.85) 0, rgba(255,211,25,.5) 9%, rgba(255,60,172,.28) 18%, transparent 30%); animation: ccSun .75s ease-out .35s both; }
            @keyframes ccSun { 0% { opacity: 0; transform: scale(.7); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
            html.calm-flash .cc-landed[data-land="power"] .cc-bk::before { animation-name: ccPearlCalm; }
            /* Constellation (chart): Orion's lines draw in star to star (--cc-draw, read by the drawing's inline styles through
               the <use>), the stars flare (--cc-flare) and a soft starlight blooms round the medallion. */
            @property --cc-draw { syntax: '<number>'; inherits: true; initial-value: 1; }
            @property --cc-flare { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="chart"] .cc-bk svg { animation: ccChart 1.4s linear forwards; }
            @keyframes ccChart {
                0% { --cc-draw: 0; --cc-flare: 0; animation-timing-function: cubic-bezier(.3,.1,.5,1); }
                72% { --cc-draw: 1; --cc-flare: .25; }
                84% { --cc-flare: 1; animation-timing-function: ease-out; }
                100% { --cc-draw: 1; --cc-flare: 0; }
            }
            .cc-landed[data-land="chart"] .cc-bk::after { background: radial-gradient(circle at 50% 50%, rgba(255,246,220,.55) 0, rgba(233,196,106,.22) 14%, transparent 34%);
                animation: ccChartGlow 1.4s ease-out forwards; }
            @keyframes ccChartGlow { 0%, 55% { opacity: 0; } 80% { opacity: 1; } 100% { opacity: 0; } }
            html.calm-flash .cc-landed[data-land="chart"] .cc-bk svg { animation-name: ccChartCalm; }
            @keyframes ccChartCalm { 0% { --cc-draw: 0; --cc-flare: 0; } 72% { --cc-draw: 1; } 88% { --cc-flare: .3; } 100% { --cc-draw: 1; --cc-flare: 0; } }
            html.calm-flash .cc-landed[data-land="chart"] .cc-bk::after { animation-name: ccChartGlowCalm; }
            @keyframes ccChartGlowCalm { 0%, 50% { opacity: 0; } 80% { opacity: .35; } 100% { opacity: 0; } }
            html.calm-motion .cc-landed[data-land="chart"] .cc-bk svg { animation: none !important; }
            /* Cat's Eye (shell): the white dwarf pulses (--cc-ce) as a new shell of light blows out of it and fades (--cc-cs runs
               0..1 as the ring grows, --cc-ca is its light), the nebula's glow lifting behind it (::after). Reduce flashing: the
               pulse is a third, the ring softer. */
            @property --cc-ce { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-cs { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ca { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="shell"] .cc-bk svg { animation: ccShell 1.1s linear forwards; }
            @keyframes ccShell {
                0% { --cc-ce: 0; --cc-cs: 0; --cc-ca: 0; animation-timing-function: ease-out; }
                14% { --cc-ce: 1; --cc-cs: .05; --cc-ca: 1; animation-timing-function: cubic-bezier(.2,.6,.35,1); }
                100% { --cc-ce: 0; --cc-cs: 1; --cc-ca: 1; }
            }
            .cc-landed[data-land="shell"] .cc-bk::after { background: radial-gradient(circle at 50% 50%, rgba(165,243,252,.35) 0, rgba(139,92,246,.18) 22%, transparent 46%);
                animation: ccChartGlow 1.1s ease-out forwards; }
            html.calm-flash .cc-landed[data-land="shell"] .cc-bk svg { animation-name: ccShellCalm; }
            @keyframes ccShellCalm { 0% { --cc-ce: 0; --cc-cs: 0; --cc-ca: 0; } 30% { --cc-ce: .3; --cc-cs: .25; --cc-ca: .45; } 100% { --cc-ce: 0; --cc-cs: 1; --cc-ca: .45; } }
            html.calm-flash .cc-landed[data-land="shell"] .cc-bk::after { animation-name: ccChartGlowCalm; }
            html.calm-motion .cc-landed[data-land="shell"] .cc-bk svg { animation: none !important; }
            /* Reduce flashing: the powered-down back lights up in one smooth fade, no flicker. */
            html.calm-flash .cc-landed[data-land="power"] .cc-bk::after { animation-name: ccPowerCalm; animation-timing-function: ease-out; }
            @keyframes ccPowerCalm { 0% { opacity: .78; } 70%, 100% { opacity: 0; } }
            /* Midas Foil (gild): molten gold runs out along the cracks from the coin (--cc-gd draws them, --cc-go is their light,
               read by the drawing's inline styles through the <use>), the coin flares (--cc-gf), then a glint crosses the gold. */
            @property --cc-gd { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-go { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-gf { syntax: '<number>'; inherits: true; initial-value: 0; }
            /* ... with gold dust thrown off the coin (the drawing's motes, --cc-gp / --cc-ga). */
            @property --cc-gp { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ga { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="gild"] .cc-bk svg { animation: ccGild 1.4s linear forwards, ccDust 1.4s linear forwards; }
            @keyframes ccDust {
                0%, 8% { --cc-gp: 0; --cc-ga: 0; animation-timing-function: cubic-bezier(.15,.7,.35,1); }
                20% { --cc-ga: 1; }
                70% { --cc-ga: .75; }
                100% { --cc-gp: 1; --cc-ga: 0; }
            }
            @keyframes ccDustCalm { 0% { --cc-gp: 0; --cc-ga: 0; animation-timing-function: ease-out; } 35% { --cc-ga: .4; } 100% { --cc-gp: .7; --cc-ga: 0; } }
            @keyframes ccGild {
                0% { --cc-gd: 0; --cc-go: 1; --cc-gf: 0; animation-timing-function: ease-out; }
                18% { --cc-gf: 1; }
                60% { --cc-gd: 1; --cc-go: 1; --cc-gf: .35; animation-timing-function: ease-in; }
                100% { --cc-gd: 1; --cc-go: 0; --cc-gf: 0; }
            }
            .cc-landed[data-land="gild"] .cc-bk::after { background: linear-gradient(105deg, transparent 35%, rgba(255,246,214,.6) 48%, rgba(255,255,255,.85) 50%, rgba(255,236,170,.5) 53%, transparent 66%);
                background-size: 260% 100%; animation: ccGildGlint 1.4s cubic-bezier(.3,.1,.3,1) forwards; }
            @keyframes ccGildGlint { 0%, 50% { opacity: 0; background-position: 120% 0; } 56% { opacity: 1; } 100% { opacity: 1; background-position: -40% 0; } }
            /* Reduce flashing: the gold runs out at half its light and the coin only warms; no glint. */
            html.calm-flash .cc-landed[data-land="gild"] .cc-bk svg { animation-name: ccGildCalm, ccDustCalm; }
            @keyframes ccGildCalm { 0% { --cc-gd: 0; --cc-go: .5; --cc-gf: 0; } 30% { --cc-gf: .3; } 65% { --cc-gd: 1; --cc-go: .5; } 100% { --cc-gd: 1; --cc-go: 0; --cc-gf: 0; } }
            html.calm-flash .cc-landed[data-land="gild"] .cc-bk::after { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="gild"] .cc-bk svg { animation: none !important; }
            /* Emerald Club (lamp): the banker's lamp swings its warm light across the card (--cc-lx / --cc-lo), the brass
               catching it, then a glint runs over the frame. */
            @property --cc-lx { syntax: '<length>'; inherits: true; initial-value: 0px; }
            @property --cc-lo { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="lamp"] .cc-bk svg { animation: ccLamp 1.3s linear forwards; }
            @keyframes ccLamp {
                0% { --cc-lx: -150px; --cc-lo: 0; animation-timing-function: ease-out; }
                25% { --cc-lo: 1; }
                60% { --cc-lx: 0px; --cc-lo: .9; animation-timing-function: ease-in; }
                100% { --cc-lx: 30px; --cc-lo: 0; }
            }
            .cc-landed[data-land="lamp"] .cc-bk::after { background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.55) 48%, rgba(255,255,255,.8) 50%, rgba(255,232,170,.45) 53%, transparent 66%);
                background-size: 260% 100%; animation: ccGildGlint 1.3s cubic-bezier(.3,.1,.3,1) forwards; }
            html.calm-flash .cc-landed[data-land="lamp"] .cc-bk svg { animation-name: ccLampCalm; }
            @keyframes ccLampCalm { 0% { --cc-lx: -60px; --cc-lo: 0; } 50% { --cc-lx: 0px; --cc-lo: .45; } 100% { --cc-lx: 20px; --cc-lo: 0; } }
            html.calm-flash .cc-landed[data-land="lamp"] .cc-bk::after { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="lamp"] .cc-bk svg { animation: none !important; }
            /* The Manor Gate (ghostlight): the ghost-light beyond the gates swells through the bars and lights their edges
               (--cc-gl), the ravens' eyes catch it a beat later (--cc-ge), and a cold breath of light rises over the card
               (::after). Reduce flashing: the light rises to a third and the eyes only warm. */
            @property --cc-gl { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ge { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="ghostlight"] .cc-bk svg { animation: ccGhost 1.1s linear forwards; }
            @keyframes ccGhost {
                0% { --cc-gl: 0; --cc-ge: 0; animation-timing-function: ease-out; }
                35% { --cc-gl: 1; --cc-ge: 0; }
                55% { --cc-gl: .85; --cc-ge: 1; animation-timing-function: ease-in; }
                100% { --cc-gl: 0; --cc-ge: 0; }
            }
            .cc-landed[data-land="ghostlight"] .cc-bk::after { background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(168,240,216,.22), transparent 70%);
                animation: ccPearl 1.1s ease-out forwards; }
            html.calm-flash .cc-landed[data-land="ghostlight"] .cc-bk svg { animation-name: ccGhostCalm; }
            @keyframes ccGhostCalm { 0% { --cc-gl: 0; --cc-ge: 0; } 45%, 60% { --cc-gl: .33; --cc-ge: .3; } 100% { --cc-gl: 0; --cc-ge: 0; } }
            html.calm-flash .cc-landed[data-land="ghostlight"] .cc-bk::after { animation-name: ccPearlCalm; }
            html.calm-motion .cc-landed[data-land="ghostlight"] .cc-bk svg, html.calm-motion .cc-landed[data-land="ghostlight"] .cc-bk::after { animation: none !important; }
            /* Syzygy (totality): the drawing's moving parts read these inherited properties (see the skin). The card lands,
               the moon is knocked back off the sun towards the lower left (the bright crescent rises over 0.35 s, the
               corona dims), then slides home; as the last sliver closes the diamond ring catches on the upper-right rim,
               and the corona blooms back to totality. Runs once (card_anim.js LAND_MS), ends exactly as drawn. */
            @property --cc-mx { syntax: '<length>'; inherits: true; initial-value: 0px; }
            @property --cc-my { syntax: '<length>'; inherits: true; initial-value: 0px; }
            @property --cc-co { syntax: '<number>'; inherits: true; initial-value: 1; }
            @property --cc-dr { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="totality"] .cc-bk svg { animation: ccTotality 1.5s linear forwards; }
            @keyframes ccTotality {
                0% { --cc-mx: 0px; --cc-my: 0px; --cc-co: 1; --cc-dr: 0; animation-timing-function: cubic-bezier(.2,.7,.3,1); }
                23% { --cc-mx: -20px; --cc-my: 13px; --cc-co: .32; --cc-dr: 0; animation-timing-function: cubic-bezier(.45,0,.6,1); }
                52% { --cc-mx: -2.4px; --cc-my: 1.6px; --cc-co: .4; --cc-dr: .25; animation-timing-function: ease-out; }
                58% { --cc-mx: 0px; --cc-my: 0px; --cc-co: .5; --cc-dr: 1; animation-timing-function: ease-in-out; }
                74% { --cc-co: 1; --cc-dr: .45; }
                100% { --cc-mx: 0px; --cc-my: 0px; --cc-co: 1; --cc-dr: 0; }
            }
            /* Reduce flashing: the moon drifts back less, and the ring rises over 0.4 s to a third of its light, no strike. */
            html.calm-flash .cc-landed[data-land="totality"] .cc-bk svg { animation-name: ccTotalityCalm; }
            @keyframes ccTotalityCalm {
                0% { --cc-mx: 0px; --cc-my: 0px; --cc-co: 1; --cc-dr: 0; animation-timing-function: ease-in-out; }
                30% { --cc-mx: -9px; --cc-my: 6px; --cc-co: .7; --cc-dr: 0; animation-timing-function: ease-in-out; }
                62% { --cc-mx: 0px; --cc-my: 0px; --cc-co: .85; --cc-dr: .3; animation-timing-function: ease-in-out; }
                100% { --cc-mx: 0px; --cc-my: 0px; --cc-co: 1; --cc-dr: 0; }
            }
            html.calm-motion .cc-landed .cc-bk::after, html.calm-motion .cc-landed .cc-bk::before { animation: none !important; opacity: 0 !important; }
            html.calm-motion .cc-landed[data-land="totality"] .cc-bk svg { animation: none !important; }
            /* Rota Fortunae (rota): the wheel turns a quarter (--cc-rw 0 -> 1, read through the <use>; eight spokes, so it rests
               as drawn), easing in like a heavy wheel and settling with a little rock, while the light runs round the crowns
               and wells up in the nave (--cc-rl) and a gilt bloom rises from the centre (::before). Reduce flashing: the wheel
               still turns, the crowns warm to a third and there is no bloom. */
            @property --cc-rw { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-rl { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="rota"] .cc-bk svg { animation: ccRota 1.05s linear forwards; }
            @keyframes ccRota {
                0% { --cc-rw: 0; --cc-rl: 0; animation-timing-function: cubic-bezier(.45,0,.3,1); }
                30% { --cc-rl: 1; }
                78% { --cc-rw: 1.04; --cc-rl: .7; animation-timing-function: ease-in-out; }
                100% { --cc-rw: 1; --cc-rl: 0; }
            }
            .cc-landed[data-land="rota"] .cc-bk::before { background: radial-gradient(circle at 50% 50%, rgba(255,243,207,.8) 0, rgba(242,211,138,.42) 12%,
                rgba(212,166,74,.14) 26%, transparent 40%); animation: ccPearl .95s ease-out .1s both; }
            html.calm-flash .cc-landed[data-land="rota"] .cc-bk svg { animation-name: ccRotaCalm; }
            @keyframes ccRotaCalm {
                0% { --cc-rw: 0; --cc-rl: 0; animation-timing-function: ease-in-out; }
                40% { --cc-rl: .33; }
                100% { --cc-rw: 1; --cc-rl: 0; }
            }
            html.calm-flash .cc-landed[data-land="rota"] .cc-bk::before { animation: none; opacity: 0; }
            html.calm-motion .cc-landed[data-land="rota"] .cc-bk svg { animation: none !important; }
            /* Miami Nights' neon tube glows past its edge. */
            html[data-cc-back="miami_nights"] .cc-card.cc-back:not([data-skin]), .cc-card.cc-back[data-skin="miami_nights"] {
                box-shadow: 0 0 12px rgba(255, 60, 172, .5), 0 8px 20px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .2);
            }
            /* Holo Ad (glitch): the signal drops. The picture jumps sideways in steps (the svg, transform only) while a veil
               of torn bands - black, cyan and red noise at two scales - shifts over it (::after), then it locks back in and a
               cyan bloom spreads from the medallion (::before). Reduce flashing: one smooth slip and a faint veil, no
               stepped flicker. */
            .cc-landed[data-land="glitch"] .cc-bk svg { animation: ccGlitch .9s steps(1, end) forwards; }
            @keyframes ccGlitch {
                0% { transform: translateX(-7%); opacity: .4; } 8% { transform: translateX(5%); opacity: .9; } 16% { transform: translate(-3%, 1%); opacity: .25; }
                24% { transform: translateX(2%); opacity: 1; } 34% { transform: translateX(-9%); opacity: .7; } 40% { transform: translateX(3%); opacity: 1; }
                50% { transform: translateX(-1.5%); } 58%, 100% { transform: none; opacity: 1; }
            }
            .cc-landed[data-land="glitch"] .cc-bk::after { background:
                repeating-linear-gradient(180deg, rgba(5,7,10,.92) 0 7%, transparent 7% 11%, rgba(0,240,255,.45) 11% 12.5%, transparent 12.5% 19%,
                    rgba(255,42,60,.5) 19% 21%, transparent 21% 33%),
                repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,.12) 2px 3px);
                animation: ccTear .9s steps(1, end) forwards; }
            @keyframes ccTear {
                0% { opacity: 1; transform: translateY(0) scaleX(1.1); } 12% { opacity: .85; transform: translateY(14%) scaleX(1); }
                22% { opacity: 1; transform: translateY(-9%) translateX(-4%); } 32% { opacity: .55; transform: translateY(31%); }
                44% { opacity: .3; transform: translateY(5%) translateX(3%); } 56%, 100% { opacity: 0; transform: none; }
            }
            .cc-landed[data-land="glitch"] .cc-bk::before { background: radial-gradient(circle at 50% 50%, rgba(220,255,255,.85) 0, rgba(0,240,255,.45) 12%,
                rgba(0,240,255,.12) 30%, transparent 50%); animation: ccSun .6s ease-out .5s both; }
            html.calm-flash .cc-landed[data-land="glitch"] .cc-bk svg { animation: ccGlitchCalm .9s ease-out forwards; }
            @keyframes ccGlitchCalm { 0% { transform: translateX(-3%); opacity: .6; } 60%, 100% { transform: none; opacity: 1; } }
            html.calm-flash .cc-landed[data-land="glitch"] .cc-bk::after { animation: ccPowerCalm .9s ease-out forwards; }
            html.calm-flash .cc-landed[data-land="glitch"] .cc-bk::before { animation-name: ccPearlCalm; }
            html.calm-motion .cc-landed[data-land="glitch"] .cc-bk svg { animation: none !important; }
            /* ... and its projector glass glows cyan past the frame. */
            html[data-cc-back="holo_ad"] .cc-card.cc-back:not([data-skin]), .cc-card.cc-back[data-skin="holo_ad"] {
                box-shadow: 0 0 10px rgba(0, 240, 255, .4), 0 8px 20px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .2);
            }

            /* Angler's Vigil (lure): both anglers' lures light (--cc-al), then the crown jelly's ring in the porthole
               answers (--cc-ap). Both inherit through the <use> into the half-turned half, so the landing is the same
               either way up. Once, inside the 1.1 s landing, back to the dim resting light. Reduce flashing: a third of
               the light, slower; calm motion: the still card; low graphics: no halo outside the drawing. */
            @property --cc-al { syntax: '<number>'; inherits: true; initial-value: 0; }
            @property --cc-ap { syntax: '<number>'; inherits: true; initial-value: 0; }
            .cc-landed[data-land="lure"] .cc-bk svg { animation: ccLure 1.05s linear forwards; }
            @keyframes ccLure {
                0% { --cc-al: 0; --cc-ap: 0; animation-timing-function: ease-out; }
                30% { --cc-al: 1; --cc-ap: 0; }
                60% { --cc-al: .8; --cc-ap: 1; animation-timing-function: ease-in; }
                100% { --cc-al: 0; --cc-ap: 0; }
            }
            .cc-landed[data-land="lure"] .cc-bk::before {
                background: radial-gradient(circle at 53% 19.7%, rgba(204,255,247,.6) 0, rgba(79,240,220,.2) 6%, transparent 18%),
                    radial-gradient(circle at 47% 80.3%, rgba(204,255,247,.6) 0, rgba(79,240,220,.2) 6%, transparent 18%),
                    radial-gradient(circle at 50% 50%, rgba(157,134,255,.3) 0, transparent 24%);
                animation: ccLureGlow 1.05s ease-out forwards;
            }
            @keyframes ccLureGlow { 0% { opacity: 0; } 32% { opacity: .7; } 62% { opacity: .45; } 100% { opacity: 0; } }
            html.calm-flash .cc-landed[data-land="lure"] .cc-bk svg { animation-name: ccLureCalm; }
            @keyframes ccLureCalm {
                0% { --cc-al: 0; --cc-ap: 0; }
                42%, 62% { --cc-al: .33; --cc-ap: .3; }
                100% { --cc-al: 0; --cc-ap: 0; }
            }
            html.calm-flash .cc-landed[data-land="lure"] .cc-bk::before { animation-name: ccLureGlowCalm; }
            @keyframes ccLureGlowCalm { 0% { opacity: 0; } 45%, 60% { opacity: .22; } 100% { opacity: 0; } }
            html.calm-motion .cc-landed[data-land="lure"] .cc-bk svg { animation: none !important; }
            html.calm-motion .cc-landed[data-land="lure"] .cc-bk::before { animation: none !important; opacity: 0; }
            html.gfx-low .cc-landed[data-land="lure"] .cc-bk::before { display: none; }

            /* Suit inks. */
            .cc-card.cc-S, .cc-card.cc-C { --cc-ink: #09090b; }
            .cc-card.cc-H, .cc-card.cc-D { --cc-ink: #e11d48; }
            html.cc-hc .cc-card.cc-C:not(.cc-std), .cc-card.cc-C.cc-hcf { --cc-ink: #059669; }
            html.cc-hc .cc-card.cc-H:not(.cc-std), .cc-card.cc-H.cc-hcf { --cc-ink: #e11d48; }
            html.cc-hc .cc-card.cc-D:not(.cc-std), .cc-card.cc-D.cc-hcf { --cc-ink: #2563eb; }
            html.cc-hc .cc-card:not(.cc-std) .cc-pip, .cc-card.cc-hcf .cc-pip { fill: var(--cc-ink); }
            .cc-rank { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 900; fill: var(--cc-ink); }
            .cc-card.cc-red { color: #e11d48; }                 /* legacy hooks, kept for callers that read them */
            .cc-card.cc-black { color: #09090b; }

            /* Dealer variance: each position in a hand lands a few degrees off true, the same every render. */
            .cc-card:nth-child(5n+1) { --cc-tilt: -2.2deg; }
            .cc-card:nth-child(5n+2) { --cc-tilt: 2deg; }
            .cc-card:nth-child(5n+3) { --cc-tilt: -2.8deg; }
            .cc-card:nth-child(5n+4) { --cc-tilt: 2.6deg; }
            .cc-card:nth-child(5n+5) { --cc-tilt: -2deg; }
            .cc-card.cc-still, .cc-card.cc-fly { --cc-tilt: 0deg; }

            /* A deck on the felt (data-house-pile): its last layer is a real House Deck back (dressPiles). */
            [data-house-pile] > i.cc-pile-top { background: none !important; border: 0 !important; box-shadow: none !important; }
            [data-house-pile] > i.cc-pile-top > .cc-card { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
                box-shadow: 0 3px 5px rgba(0, 0, 0, .5); }

            /* Interactive cards (showcase, pickers) lift on hover. */
            .cc-card.cc-lift { cursor: pointer; }
            .cc-card.cc-lift:hover, .cc-flip:hover .cc-card {
                translate: 0 -8px;
                box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 15px 30px rgba(0, 0, 0, .6), 0 4px 8px rgba(0, 0, 0, .3);
            }

            /* Click-to-flip container (previews only - tables flip through card_anim.js). */
            .cc-flip { display: inline-block; perspective: 1000px; cursor: pointer; user-select: none; }
            .cc-flip-inner { position: relative; display: block; transform-style: preserve-3d;
                             transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
            .cc-flip.flipped .cc-flip-inner { transform: rotateY(180deg); }
            .cc-flip .cc-card { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; margin: 0; }
            .cc-flip .cc-card + .cc-card { position: absolute; inset: 0; margin: 0; transform: rotateY(180deg); }

            .cc-hand { display: flex; align-items: center; flex-wrap: wrap; }
            /* Scale-down hooks so a seat with multiple hands (splits) stays inside its zone. */
            [data-hand-count="3"] .cc-card { width: 38px; height: 53px; }
            [data-hand-count="3"] .cc-card + .cc-card { margin-left: -15px; }
            [data-hand-count="4"] .cc-card { width: 32px; height: 45px; }
            [data-hand-count="4"] .cc-card + .cc-card { margin-left: -13px; }
            html.calm-motion .cc-flip-inner { transition: none; }
        