
.ins-title { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px 0 4px; border-radius: 999px;
    font: 800 11px/1 'Inter', system-ui, sans-serif; letter-spacing: .05em; white-space: nowrap; color: #e4e4e7; isolation: isolate;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); }
.ins-title > i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: rgba(0,0,0,.45); }
.ins-title > b { position: relative; font-weight: inherit; }
.ins-title.ins-compact:not(.ins-plate):not(.ins-career) { height: auto; padding: 0; gap: 0; border: 0; background: none; box-shadow: none; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; }
.ins-title.ins-compact > i { display: none; }

/* Standard (the free plate, Common; a store title worn with no plate bought): smoked gunmetal enamel - a lit top edge, an
   engraved hairline keyline inside the rim and a pewter stud for the icon; the letters sit pressed in with a dark lip.
   At the seat it stays plain text (the compact rule below), the quietest look on the table. */
.ins-standard { color: #f4f4f5; border-color: rgba(212,212,216,.34);
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 48%, rgba(0,0,0,.2)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #2c2c31, #1a1a1d 58%, #111113);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 0 2.6px rgba(212,212,216,.14), 0 1px 2px rgba(0,0,0,.6); }
.ins-standard > b { text-shadow: 0 1px 0 rgba(0,0,0,.85); }
.ins-standard > i { color: #e4e4e7; background: radial-gradient(circle at 38% 30%, #8a8a93, #3f3f46 45%, #18181b 80%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 1px 1px rgba(0,0,0,.7); }
.ins-standard.ins-compact { color: #d4d4d8; }
/* Prestige (500 B): metallic dual-tone lettering in a gold-rimmed pill. */
.ins-prestige { font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 800; letter-spacing: .08em; border-color: rgba(212,175,55,.75);
    background: linear-gradient(180deg, rgba(38,33,22,.95), rgba(12,10,6,.95)); box-shadow: inset 0 1px 0 rgba(255,236,170,.25), 0 0 0 1px rgba(0,0,0,.6), 0 0 10px rgba(212,175,55,.2); }
.ins-prestige > b { background: linear-gradient(180deg, #fff7d6 0%, #f2cf6b 48%, #a8741a 52%, #f2cf6b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-prestige > i { background: linear-gradient(180deg, #3a2f14, #0c0a05); color: #f2cf6b; box-shadow: inset 0 0 0 1px rgba(242,207,107,.5); }

/* The beta's Founding Member title: gold capitals on a wax-red plate (kept in the compact seat form). */
.ins-founder { font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 800; letter-spacing: .08em; color: #f8e7b0; border-color: rgba(201,150,47,.8);
    background: linear-gradient(180deg, rgba(127,29,29,.92), rgba(42,8,8,.95)); box-shadow: inset 0 1px 0 rgba(248,231,176,.2), 0 0 10px rgba(159,29,29,.35); }
.ins-founder > i { background: linear-gradient(180deg, #5b1010, #1a0606); color: #f2cf6b; box-shadow: inset 0 0 0 1px rgba(242,207,107,.5); }
.ins-title.ins-compact.ins-founder { color: #f2cf6b; }

/* Career titles take their achievement tier. */
.ins-bronze { color: #fed7aa; border-color: rgba(194,120,62,.7); background: linear-gradient(180deg, rgba(180,83,9,.28), rgba(67,20,7,.35)); }
.ins-silver { color: #f1f5f9; border-color: rgba(203,213,225,.6); background: linear-gradient(180deg, rgba(148,163,184,.25), rgba(30,41,59,.4)); }
.ins-gold { color: #fef3c7; border-color: rgba(250,204,21,.75); background: linear-gradient(180deg, rgba(234,179,8,.3), rgba(120,53,15,.35)); box-shadow: 0 0 10px rgba(250,204,21,.25); }
.ins-signature { color: #f5d0fe; border-color: rgba(232,121,249,.6); background: linear-gradient(180deg, rgba(168,85,247,.25), rgba(59,7,100,.4)); box-shadow: 0 0 12px rgba(217,70,239,.3); }
.ins-prismatic { border-color: rgba(253,230,138,.9); background: linear-gradient(180deg, rgba(120,53,15,.5), rgba(24,16,4,.7)); box-shadow: 0 0 14px rgba(253,230,138,.45); }
.ins-prismatic > b { font-weight: 900; background: linear-gradient(90deg, #fde68a, #fff7d6, #f59e0b, #f0abfc, #a5f3fc, #fde68a); background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: ins-flow 4s linear infinite; }
/* The Black Sun (Totality's career title, style 'eclipse'): black lettering on a razor white-gold rim under a slowly
   turning, uneven corona glow, a small black sun for its icon, on an umbral sky. (paint-order puts the stroke under the
   fill, so only its outer half shows: a hairline rim that never eats the letters.) */
.ins-eclipse { font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 900; letter-spacing: .1em; border-color: rgba(253,230,138,.85);
    background: radial-gradient(70% 170% at 50% 50%, rgba(245,158,11,.2), transparent 70%), linear-gradient(180deg, #120a1f, #05030a 60%, #0b0716);
    box-shadow: inset 0 1px 0 rgba(255,247,214,.25), inset 0 0 6px rgba(0,0,0,.9), 0 0 12px rgba(245,158,11,.4), 0 0 2px rgba(253,230,138,.6); }
.ins-eclipse > b { color: #050403; -webkit-text-stroke: 1.3px #fff3c4; paint-order: stroke fill;
    filter: drop-shadow(0 0 .6px #fffdf2) drop-shadow(0 0 2.5px rgba(253,230,138,.8)) drop-shadow(-2px -1px 3px rgba(245,158,11,.6)) drop-shadow(2.5px 1px 4px rgba(180,83,9,.5));
    animation: ins-corona-turn 14s linear infinite; }
.ins-eclipse > i { font-size: 0; color: transparent; background: radial-gradient(circle, #000 0 5px, #fffdf2 5.6px, #fde68a 6.4px, rgba(245,158,11,.55) 7.4px, transparent 9px); }
.ins-title.ins-compact.ins-career.ins-eclipse > b { -webkit-text-stroke-width: 1.1px; }
@keyframes ins-corona-turn {
    0%, 100% { filter: drop-shadow(0 0 .6px #fffdf2) drop-shadow(0 0 2.5px rgba(253,230,138,.8)) drop-shadow(-2px -1px 3px rgba(245,158,11,.6)) drop-shadow(2.5px 1px 4px rgba(180,83,9,.5)); }
    25% { filter: drop-shadow(0 0 .6px #fffdf2) drop-shadow(0 0 3px rgba(253,230,138,.85)) drop-shadow(1px -2px 2.5px rgba(245,158,11,.6)) drop-shadow(-1px 2.5px 4.5px rgba(180,83,9,.5)); }
    50% { filter: drop-shadow(0 0 .6px #fffdf2) drop-shadow(0 0 2.5px rgba(253,230,138,.8)) drop-shadow(2px 1px 3.5px rgba(245,158,11,.6)) drop-shadow(-2.5px -1px 3.5px rgba(180,83,9,.5)); }
    75% { filter: drop-shadow(0 0 .6px #fffdf2) drop-shadow(0 0 2px rgba(253,230,138,.75)) drop-shadow(-1px 2px 3px rgba(245,158,11,.6)) drop-shadow(1px -2.5px 4px rgba(180,83,9,.5)); } }
/* Fortuna's Chosen (the Rites of Fortuna's capstone, style 'fortuna'; static/js/fortuna_art.js's palette): the title cut
   in gilt Trajan capitals on a polished porphyry pill - the stone's deep red with its white flecks and a lit crown - inside
   a gilt bronze rim, a gilt boss for its icon. A slow sheen of gilt light passes through the letters (--fs, its strength).
   Grand, but never prismatic and never a corona: The Black Sun (eclipse) stays above it. Reduce flashing: the sheen is
   half as bright; calm motion: still (the letters' loop stops with every title's); low graphics: no glow, no sheen. */
.ins-fortuna { --fs: .9; font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #f2d38a; border: 1px solid transparent;
    background: radial-gradient(circle, rgba(243,230,224,.6) 0 .45px, transparent .9px) 3px 2px / 11px 7px padding-box,
        radial-gradient(circle, rgba(243,230,224,.35) 0 .4px, transparent .85px) 8px 5px / 17px 9px padding-box,
        radial-gradient(circle, rgba(26,5,11,.65) 0 .5px, transparent 1px) 5px 6px / 13px 11px padding-box,
        radial-gradient(90% 150% at 36% 18%, #93304a, #6a1f33 42%, #4a1426 72%, #2e0a16) padding-box,
        linear-gradient(180deg, #f2d38a, #d4a64a 38%, #a8741c 58%, #d4a64a 80%, #6e4a10) border-box;
    box-shadow: inset 0 1px 0 rgba(255,232,214,.25), inset 0 0 0 1px rgba(46,10,22,.75), inset 0 -2px 4px rgba(20,2,8,.55), 0 0 0 1px rgba(20,2,8,.65), 0 0 9px rgba(212,166,74,.32); }
.ins-fortuna > b { font-weight: 900;
    background: linear-gradient(100deg, rgba(255,248,226,0) 40%, rgba(255,248,226,var(--fs)) 50%, rgba(255,248,226,0) 60%),
        linear-gradient(180deg, #fff3cf 0%, #f2d38a 28%, #d4a64a 50%, #a8741c 55%, #e2b85e 76%, #f2d38a 100%);
    background-size: 280% 100%, 100% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(20,2,8,.9)); animation: ins-fortuna-sheen 8s ease-in-out infinite; }
@keyframes ins-fortuna-sheen { 0%, 45% { background-position: 150% 0, 0 0; } 90%, 100% { background-position: -60% 0, 0 0; } }
.ins-fortuna > i { color: #4a1426; background: radial-gradient(circle at 38% 30%, #fff3cf, #f2d38a 28%, #d4a64a 58%, #a8741c 86%, #6e4a10);
    box-shadow: inset 0 0 0 1px rgba(110,74,16,.9), inset 0 0 0 2.2px rgba(242,211,138,.35), 0 1px 1px rgba(20,2,8,.8); }
.ins-title.ins-compact.ins-career.ins-fortuna { letter-spacing: .1em; }
html.calm-flash .ins-fortuna { --fs: .45; }
html.gfx-low .ins-fortuna { box-shadow: inset 0 0 0 1px rgba(46,10,22,.75), 0 0 0 1px rgba(20,2,8,.65); }
html.gfx-low .ins-fortuna > b { animation: none; }
/* The career plates (worn automatically on the Standard plate): a compact chip of their own at the seats. */
.ins-title.ins-compact.ins-career { height: 17px; padding: 0 7px; gap: 0; border-radius: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Shader plates (the Collections' Star Chart and Blazing Ember). The key is the class; app/services/insignia.VFX_SHADERS
   lists the same two. ---- */
.ins-mythic { font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 900; letter-spacing: .09em; }
.ins-mythic > b { -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-motes { position: absolute; inset: -6px -4px; pointer-events: none; z-index: 1; overflow: visible; }
.ins-motes > i { position: absolute; left: var(--x); bottom: 30%; width: var(--sz, 3px); height: var(--sz, 3px); border-radius: 50%; opacity: 0;
    animation: ins-rise var(--d, 2.4s) ease-out infinite; animation-delay: var(--dl, 0s); }
@keyframes ins-flow { to { background-position: 300% 0; } }
@keyframes ins-rise { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0px), -16px) scale(1); } }

/* Star Chart (Celestial; static/js/star_art.js's sky): a lapis tablet ruled with a star chart's fine gold graticule and a
   faint asterism printed across it, a gold keyline; the title engraved in gold leaf with a slow glint passing through it,
   and stars twinkling in place along the plate (the motes, as four-point sparkles). On any winning round (data-reacts win)
   a constellation draws itself across the plate, star to star, and the tablet glows (.tp-flare). No blur filters. */
.vfx-star-chart { color: #f3d58a; border-color: rgba(233,196,106,.92); border-radius: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24'%3E%3Cpath d='M4 17L15 9L27 13L38 5L51 11L60 7' fill='none' stroke='%23e9c46a' stroke-opacity='.16' stroke-width='.7'/%3E%3Cg fill='%23fff6dc' fill-opacity='.38'%3E%3Ccircle cx='4' cy='17' r='.8'/%3E%3Ccircle cx='15' cy='9' r='.6'/%3E%3Ccircle cx='27' cy='13' r='.9'/%3E%3Ccircle cx='38' cy='5' r='.6'/%3E%3Ccircle cx='51' cy='11' r='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 100%,
        repeating-linear-gradient(90deg, rgba(233,196,106,.13) 0 1px, transparent 1px 16px),
        linear-gradient(180deg, transparent calc(50% - .5px), rgba(233,196,106,.18) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
        radial-gradient(120% 140% at 50% 0%, #1d3184, #0b1640 55%, #050a24);
    box-shadow: inset 0 0 0 1px rgba(5,10,36,.9), inset 0 0 0 2px rgba(233,196,106,.4), inset 0 -3px 6px rgba(0,0,0,.4), 0 0 12px rgba(233,196,106,.28); }
.vfx-star-chart > i { background: radial-gradient(circle at 40% 35%, #1d3184, #050a24); color: #fff1c4; box-shadow: 0 0 0 1px rgba(233,196,106,.85); }
.vfx-star-chart > b { background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 48%, transparent 58%),
    linear-gradient(180deg, #fff1c4 0%, #f3d58a 35%, #c9a24a 62%, #8a6420 100%);
    background-size: 280% 100%, 100% 100%; background-repeat: no-repeat; animation: ins-glint 5.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 0 rgba(5,10,36,.9)); }
.vfx-star-chart .ins-motes > i { --sz: 6px; bottom: auto; top: var(--y, 30%); border-radius: 0; background: #fff6dc;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation-name: ins-twinkle; }
@keyframes ins-twinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1); } 60% { opacity: .8; transform: scale(.75); } }
.tp-star_chart::after { content: ''; position: absolute; inset: 2px 4px; pointer-events: none; opacity: 0; z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 15L14 6L27 11L41 3L55 9L68 4L82 12L98 7' fill='none' stroke='%23fff1c4' stroke-width='.9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.tp-star_chart.tp-flare::after { animation: tp-chart-draw 1.3s ease-out 1; }
.tp-star_chart.tp-flare { animation: tp-chart-glow 1.3s ease-out 1; }
@keyframes tp-chart-draw { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 60% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes tp-chart-glow { 50% { box-shadow: inset 0 0 0 1px rgba(5,10,36,.9), inset 0 0 0 2px rgba(255,241,196,.8), inset 0 -3px 6px rgba(0,0,0,.3), 0 0 20px rgba(255,231,160,.7); } }
html.calm-flash .tp-star_chart.tp-flare { animation: none; }
.ins-plate.ins-compact.vfx-star-chart { border-radius: 3px; }

/* Blazing Ember (Dragon Court): a vermilion lacquer tablet with the dragon's scales in its lacquer and a gold keyline,
   a crown of fire standing on its top edge (::before, flickering from its foot), the title in molten gold whose heat rolls
   through the letters, and embers rising off it. On any winning round (data-reacts win) the fire roars up and the tablet
   glows (.tp-flare). No blur filters: the glow is a box-shadow, the embers are dots. */
.vfx-blazing-ember { color: #ffd27a; border-color: rgba(242,193,78,.92); border-radius: 4px;
    background: radial-gradient(circle at 50% 100%, transparent 0 3.2px, rgba(242,193,78,.2) 3.6px, transparent 4.2px) 0 0 / 8px 5px,
        radial-gradient(circle at 50% 100%, transparent 0 3.2px, rgba(0,0,0,.28) 3.8px, transparent 4.6px) 4px 2.5px / 8px 5px,
        linear-gradient(180deg, #b8230f, #7a120c 55%, #3a0604);
    box-shadow: inset 0 1px 0 rgba(255,220,160,.4), inset 0 -3px 6px rgba(0,0,0,.45), 0 0 10px rgba(255,90,20,.35); }
.vfx-blazing-ember > i { background: radial-gradient(circle at 40% 35%, #b7f7d4, #2fbf8a 45%, #05553a); color: #fff1b8; box-shadow: 0 0 0 1px rgba(242,193,78,.85); }
.vfx-blazing-ember > b { background-image: linear-gradient(0deg, #8f1a0c 0%, #f26a1b 30%, #ffd27a 48%, #fff4cf 56%, #ffc35a 68%, #e0561a 100%);
    background-size: 100% 260%; background-position: 0 40%; animation: ins-ember 2.6s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,106,26,.7)); }
@keyframes ins-ember { 0%, 100% { background-position: 0 85%; } 50% { background-position: 0 15%; } }
.tp-blazing_ember::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: calc(100% - 4px); height: 14px; z-index: -1; pointer-events: none;
    transform-origin: 50% 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ff5a12'/%3E%3Cstop offset='.35' stop-color='%23ffb347'/%3E%3Cstop offset='.7' stop-color='%23ffe08a' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23fff1b8' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23f)' d='M0 20C2 15 1 11 4 7C4 12 7 14 8 20ZM7 20C8 13 11 9 11 2C14 8 16 13 15 20ZM14 20C16 15 18 13 18 9C20 13 22 16 21 20ZM20 20C22 12 26 8 25 0C29 7 31 13 29 20ZM28 20C30 16 32 14 33 10C34 14 36 16 35 20ZM34 20C36 13 39 9 40 3C42 9 44 14 42 20ZM41 20C43 15 45 13 46 8C47 13 49 16 48 20ZM47 20C49 12 53 7 52 0C56 7 58 13 56 20ZM55 20C57 16 59 14 60 9C61 14 63 16 62 20ZM61 20C63 13 66 9 67 3C69 9 71 14 69 20ZM68 20C70 15 72 13 73 9C74 13 76 16 75 20ZM74 20C76 12 80 8 79 1C83 7 85 13 83 20ZM82 20C84 15 86 13 87 8C88 13 90 16 89 20ZM88 20C90 14 92 10 94 5C95 11 97 15 96 20ZM95 20C96 16 98 14 100 11L100 20Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat;
    animation: tp-fire 1.5s ease-in-out infinite alternate; }
@keyframes tp-fire { 0% { transform: scale(1, .8); opacity: .85; } 40% { transform: scale(1.03, 1.08); opacity: 1; } 100% { transform: scale(.98, .9) skewX(3deg); opacity: .9; } }
.vfx-blazing-ember .ins-motes > i { background: radial-gradient(circle, #fff6d0 0 25%, #ffb347 50%, rgba(255,106,26,0) 72%); --sz: 3px; }
.tp-blazing_ember.tp-flare::before { animation: tp-fire-roar 1.1s ease-out 1; }
.tp-blazing_ember.tp-flare { animation: tp-ember-glow 1.1s ease-out 1; }
@keyframes tp-fire-roar { 0% { transform: scale(1, .9); } 25% { transform: scale(1.12, 2.1); opacity: 1; } 100% { transform: scale(1, 1); opacity: .9; } }
@keyframes tp-ember-glow { 30% { box-shadow: inset 0 1px 0 rgba(255,220,160,.6), inset 0 -3px 6px rgba(0,0,0,.3), 0 0 22px rgba(255,120,30,.85); } }
html.calm-flash .tp-blazing_ember.tp-flare { animation: none; }
html.calm-flash .tp-blazing_ember.tp-flare::before { animation: tp-fire-roar-calm 1.1s ease-in-out 1; }
@keyframes tp-fire-roar-calm { 50% { transform: scale(1.04, 1.35); } }
html.gfx-low .tp-blazing_ember::before { animation: none; }
.ins-compact.tp-blazing_ember::before { height: 9px; }

/* HUD Tag (Chrome Rain, Legendary; static/js/chrome_art.js's colours): the title as a heads-up readout - an angular frame
   with two corners cut (::before, acid yellow, clip-path) over smoked glass ruled with scanlines (::after, the same cut
   inset), the title in acid-yellow Chakra Petch with a block cursor blinking after it, a red alert edge of hazard
   chevrons at its left (.tp-hud-alert) and a cyan two-digit counter at its right (.tp-hud-ct, its digits a CSS counter of
   --hud). A scan line sweeps the glass now and then (.tp-hud-scan, one transform). On any winning round (data-reacts win,
   .tp-flare) the HUD flags it: the frame strobes white and red, the readout jolts in split channels, the counter rolls up
   to 99 and the alert chevrons pulse (plate_hud). Reduce flashing: the frame only warms, the counter still rolls. Calm
   motion: still. The compact (seat) form keeps the frame, the glass and the alert edge. */
@property --hud { syntax: '<integer>'; inherits: true; initial-value: 7; }
.ins-plate.tp-hud_tag { font-family: 'Chakra Petch', 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #f4ff2a; border: 0; border-radius: 0; background: none; padding: 0 30px 0 17px; overflow: visible; --hud: 7;
    --cut: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    --cut-in: polygon(7.6px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 1.5px) calc(100% - 7.6px), calc(100% - 7.6px) calc(100% - 1.5px), 1.5px calc(100% - 1.5px), 1.5px 7.6px);
    filter: drop-shadow(0 0 4px rgba(244,255,42,.3)) drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.tp-hud_tag::before, .tp-hud_tag::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.tp-hud_tag::before { z-index: 0; clip-path: var(--cut); background: linear-gradient(90deg, #f4ff2a, #f4ff2a 70%, #d8c400); }
.tp-hud_tag::after { z-index: 1; clip-path: var(--cut-in);
    background: repeating-linear-gradient(0deg, rgba(244,255,42,.06) 0 1px, transparent 1px 3px),
        radial-gradient(120% 140% at 20% 0%, rgba(0,240,255,.14), transparent 60%), linear-gradient(180deg, rgba(22,30,38,.96), rgba(5,7,10,.97)); }
.tp-hud_tag > i { display: none; }
.tp-hud_tag > b { z-index: 3; color: #f4ff2a; text-shadow: 0 0 2px rgba(244,255,42,.9), 0 0 7px rgba(244,255,42,.4); }
.tp-hud_tag > b::after { content: ''; display: inline-block; width: .5em; height: .82em; margin-left: .2em; vertical-align: -.06em;
    background: #f4ff2a; box-shadow: 0 0 4px rgba(244,255,42,.8); animation: tp-hud-cursor 1.1s steps(1) infinite; }
@keyframes tp-hud-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.tp-hud_tag > .tp-hud-alert { position: absolute; z-index: 2; left: 4px; top: 7px; bottom: 3.5px; width: 7px; pointer-events: none;
    background: repeating-linear-gradient(-45deg, #ff2a3c 0 2px, #3a0008 2px 4px); box-shadow: 0 0 5px rgba(255,42,60,.7); clip-path: polygon(0 0, 100% 3px, 100% 100%, 0 100%); }
.tp-hud_tag > .tp-hud-ct { position: absolute; z-index: 2; right: 5px; top: 50%; transform: translateY(-50%); pointer-events: none; counter-reset: hud var(--hud);
    font: 700 8px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; color: #00f0ff; text-shadow: 0 0 4px rgba(0,240,255,.8);
    padding: 2px 2px 2px 4px; border-left: 1px solid rgba(0,240,255,.45); }
.tp-hud_tag > .tp-hud-ct::after { content: counter(hud, decimal-leading-zero); }
.tp-hud_tag > .tp-hud-scan { position: absolute; z-index: 2; inset: 1.5px; overflow: hidden; pointer-events: none; clip-path: var(--cut-in); }
.tp-hud_tag > .tp-hud-scan::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; opacity: 0;
    background: linear-gradient(90deg, transparent 0 calc(100% - 26px), rgba(0,240,255,.0) calc(100% - 26px), rgba(0,240,255,.35) calc(100% - 4px), #e9ffff calc(100% - 2px), transparent);
    animation: tp-hud-scan 4.6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes tp-hud-scan { 0%, 52% { transform: translateX(-100%); opacity: 0; } 54% { opacity: 1; } 84% { transform: translateX(8%); opacity: 1; } 86%, 100% { transform: translateX(8%); opacity: 0; } }
.tp-hud_tag.tp-flare::before { animation: tp-hud-frame 1.2s steps(1) 1; }
.tp-hud_tag.tp-flare > b { animation: tp-hud-jolt 1.2s steps(1) 1; }
.tp-hud_tag.tp-flare > .tp-hud-alert { animation: tp-hud-alert .3s steps(1) 4; }
.tp-hud_tag.tp-flare > .tp-hud-ct { animation: tp-hud-count .9s cubic-bezier(.2,.6,.4,1) 1 forwards; }
.tp-hud_tag.tp-flare > .tp-hud-scan::before { animation: tp-hud-scan-fast .5s linear 2; }
@keyframes tp-hud-frame { 0% { background: #fff; } 10% { background: #ff2a3c; } 20% { background: #fff; } 30% { background: #ff2a3c; }
    42% { background: #f4ff2a; filter: brightness(1.3); } 100% { background: linear-gradient(90deg, #f4ff2a, #f4ff2a 70%, #d8c400); } }
@keyframes tp-hud-jolt { 0% { transform: translateX(2px); text-shadow: 2px 0 0 #ff2a3c, -2px 0 0 #00f0ff; } 12% { transform: translateX(-2px) skewX(-10deg); color: #fff; text-shadow: -3px 0 0 #ff2a3c, 3px 0 0 #00f0ff; }
    24% { transform: translateX(1px); color: #f4ff2a; text-shadow: 3px 0 0 #ff2a3c, -1px 0 0 #00f0ff; } 36% { transform: none; color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px rgba(244,255,42,.9); }
    60%, 100% { transform: none; color: #f4ff2a; text-shadow: 0 0 2px rgba(244,255,42,.9), 0 0 7px rgba(244,255,42,.4); } }
@keyframes tp-hud-alert { 0% { opacity: 1; filter: brightness(1.6); } 50% { opacity: .25; filter: none; } }
@keyframes tp-hud-count { from { --hud: 0; } to { --hud: 99; } }
@keyframes tp-hud-scan-fast { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(8%); opacity: 1; } }
html.calm-flash .tp-hud_tag.tp-flare::before { animation: tp-hud-frame-calm 1.2s ease-in-out 1; }
@keyframes tp-hud-frame-calm { 50% { filter: brightness(1.25); } }
html.calm-flash .tp-hud_tag.tp-flare > b { animation: none; }
html.calm-flash .tp-hud_tag.tp-flare > .tp-hud-alert { animation: none; }
html.calm-flash .tp-hud_tag > b::after { animation: none; }
html.calm-motion .tp-hud_tag > b::after, html.calm-motion .tp-hud_tag > .tp-hud-scan::before, html.calm-motion .tp-hud_tag > span { animation: none !important; }
html.gfx-low .tp-hud_tag { filter: none; }
html.gfx-low .tp-hud_tag > .tp-hud-scan { display: none; }
.ins-plate.tp-hud_tag.ins-compact { padding: 0 8px 0 15px; letter-spacing: .1em; --cut: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    --cut-in: polygon(5.5px 1.2px, calc(100% - 1.2px) 1.2px, calc(100% - 1.2px) calc(100% - 5.5px), calc(100% - 5.5px) calc(100% - 1.2px), 1.2px calc(100% - 1.2px), 1.2px 5.5px); }
.tp-hud_tag.ins-compact > .tp-hud-ct { display: none; }
.tp-hud_tag.ins-compact > .tp-hud-alert { left: 3px; top: 5px; bottom: 2.5px; width: 5px; }
.tp-hud_tag.ins-compact > b::after { width: .45em; }
/* Redshift (Deep Field; static/js/space_art.js's palette): the title on a strip of starlight spread into its spectrum,
   violet through blue, teal and green to yellow and red, dark at its top and bottom edges as a spectrograph's strip is,
   in a thin glass rim lit violet at one end and red at the other. Fine dark absorption lines (the elements' fingerprints,
   one close pair among them) cross it on their own layer (.tp-spec > s) and drift slowly toward the red: the universe
   expanding. On any winning round (data-reacts win, .tp-flare) the lines race across toward the red and the strip
   flares white from the violet end; reduce flashing: the lines still race, the strip only swells softly. Motion is
   transform / opacity only. */
.tp-redshift { color: #fff; border-color: rgba(224,242,254,.55); border-radius: 3px; padding: 0 12px 0 4px; overflow: visible;
    background: linear-gradient(180deg, rgba(1,2,8,.82) 0%, rgba(1,2,8,.18) 26%, rgba(1,2,8,.1) 50%, rgba(1,2,8,.18) 74%, rgba(1,2,8,.85) 100%),
        linear-gradient(90deg, #3b0a7a 0%, #6d28d9 9%, #3b5bdb 22%, #0ea5c6 34%, #1fae6a 47%, #a3c218 58%, #f2c94c 67%, #f28c28 78%, #d9301c 90%, #6b0f0f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(1,2,8,.6), -5px 0 12px -4px rgba(139,92,246,.6), 5px 0 12px -4px rgba(239,68,68,.55), 0 1px 3px rgba(0,0,0,.6); }
.tp-redshift > i { position: relative; z-index: 2; color: transparent; font-size: 0;
    background: radial-gradient(circle, #fff 0 1.6px, #e0f2fe 2.2px, rgba(125,211,252,.55) 3.4px, transparent 5px), radial-gradient(circle at 40% 35%, #1b1846, #010208 70%);
    box-shadow: 0 0 0 1px rgba(224,242,254,.6), 0 0 6px rgba(167,139,250,.6); }
.tp-redshift > b { z-index: 2; font-weight: 900; letter-spacing: .1em; color: #fff;
    text-shadow: 0 0 2px rgba(1,2,8,.95), 0 1px 0 rgba(1,2,8,.95), 0 0 6px rgba(1,2,8,.7); }
.tp-spec { position: absolute; inset: 1px; z-index: 1; overflow: hidden; border-radius: 2px; pointer-events: none; }
.tp-spec > s { position: absolute; top: 0; bottom: 0; left: -160px; width: calc(100% + 320px); will-change: transform;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='10' preserveAspectRatio='none'%3E%3Cg fill='%2301020a'%3E%3Crect x='9' width='1.6' height='10' opacity='.85'/%3E%3Crect x='14' width='.8' height='10' opacity='.6'/%3E%3Crect x='37' width='2.2' height='10' opacity='.9'/%3E%3Crect x='58' width='.7' height='10' opacity='.5'/%3E%3Crect x='71' width='1.2' height='10' opacity='.75'/%3E%3Crect x='96' width='.9' height='10' opacity='.6'/%3E%3Crect x='98.4' width='.9' height='10' opacity='.6'/%3E%3Crect x='118' width='1.4' height='10' opacity='.7'/%3E%3Crect x='139' width='2.6' height='10' opacity='.92'/%3E%3Crect x='151' width='.6' height='10' opacity='.45'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 100% repeat-x;
    animation: tp-rs-drift 16s linear infinite; }
.tp-spec > u { position: absolute; inset: 0; opacity: 0; text-decoration: none;
    background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(224,242,254,.75) 35%, rgba(255,255,255,0) 70%); }
@keyframes tp-rs-drift { from { transform: translateX(0); } to { transform: translateX(160px); } }
.tp-redshift.tp-flare .tp-spec > s { animation: tp-rs-race 1.4s cubic-bezier(.55,0,.25,1) 1; }
@keyframes tp-rs-race { from { transform: translateX(0); } to { transform: translateX(160px); } }
.tp-redshift.tp-flare .tp-spec > u { animation: tp-rs-flare 1.4s ease-out 1; }
@keyframes tp-rs-flare { 0% { opacity: 0; transform: translateX(-100%); } 25% { opacity: .95; } 55% { opacity: .6; transform: translateX(10%); } 100% { opacity: 0; transform: translateX(60%); } }
.tp-redshift.tp-flare { animation: tp-rs-glow 1.4s ease-out 1; }
@keyframes tp-rs-glow { 35% { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(1,2,8,.4), -8px 0 18px -2px rgba(167,139,250,.9), 8px 0 18px -2px rgba(248,113,113,.85), 0 0 14px rgba(224,242,254,.5); } }
html.calm-flash .tp-redshift.tp-flare, html.calm-flash .tp-redshift.tp-flare .tp-spec > u { animation: none; }
html.calm-flash .tp-redshift.tp-flare .tp-spec > u { opacity: 0; }
html.calm-flash .tp-redshift.tp-flare .tp-spec { animation: tp-rs-swell 1.4s ease-in-out 1; }
@keyframes tp-rs-swell { 50% { opacity: .75; } }
html.calm-motion .tp-spec > s, html.gfx-low .tp-spec > s { animation: none; }
.tp-redshift.ins-compact { border-radius: 2px; padding: 0 8px 0 3px; }
.tp-redshift.ins-compact > i { display: none; }
/* The Shout (Final Form, static/js/ink_art.js): the title yelled in a jagged manga balloon - heavy slanted Overpass in ink
   on paper white, the balloon (InkArt.shout, stretched to the title) trembling on its spikes with a blaze-orange offset
   shadow, and a blaze-orange speed line under it. On a winning round (data-reacts win, .tp-flare, sound plate_shout) it
   is yelled again: the balloon bursts bigger, focus lines flash out round it and the letters shake. Reduce flashing: the
   balloon only swells, no focus lines; calm motion / low graphics: no tremble. */
.ins-plate.tp-shout { overflow: visible; border: 0; background: none; box-shadow: none; padding: 0 14px; color: #0b0b0d;
    font-family: 'Overpass', 'Inter', system-ui, sans-serif; font-weight: 900; font-style: italic; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; }
.tp-shout > i { display: none; }
.tp-shout > b { display: inline-block; transform: skewX(-6deg); }
.tp-shout > .tp-ballo, .tp-shout > .tp-focus { position: absolute; pointer-events: none; }
.tp-shout > .tp-ballo { left: -2px; right: -2px; top: -5px; bottom: -5px; z-index: 1; animation: tp-tremble .3s steps(1) infinite; }
.tp-shout > .tp-ballo svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(1.5px 1.5px 0 #ff6a13); }
.ins-plate.tp-shout:not(:has(.tp-ballo svg)) { background: #fffdf6; border-radius: 10px; box-shadow: 1.5px 1.5px 0 #ff6a13; }
.tp-shout > .tp-focus { left: -26px; right: -26px; top: -16px; bottom: -16px; z-index: 0; opacity: 0; }
.tp-shout > .tp-focus svg { display: block; width: 100%; height: 100%; }
.tp-shout::after { content: ''; position: absolute; left: 18%; right: -10px; bottom: -8px; height: 3px; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,106,19,0), #ff6a13 35%, #ffb15c 85%, rgba(255,177,92,0)); clip-path: polygon(0 60%, 100% 0, 100% 100%); }
@keyframes tp-tremble { 0% { transform: translate(0, 0); } 33% { transform: translate(.5px, -.4px) rotate(.4deg); } 66% { transform: translate(-.4px, .3px) rotate(-.3deg); } }
.tp-shout.tp-flare > .tp-ballo { animation: tp-shout-burst 1.1s cubic-bezier(.2,.8,.3,1) 1; }
.tp-shout.tp-flare > b { animation: tp-shout-shake .7s linear 1; }
.tp-shout.tp-flare > .tp-focus { animation: tp-shout-focus 1s ease-out 1; }
@keyframes tp-shout-burst { 0% { transform: scale(1); } 12% { transform: scale(1.32, 1.45); } 30% { transform: scale(1.12, 1.18); } 100% { transform: scale(1); } }
@keyframes tp-shout-shake { 0%, 100% { transform: skewX(-6deg) translate(0, 0); } 10% { transform: skewX(-6deg) translate(-1.5px, .8px) scale(1.12); }
    20% { transform: skewX(-6deg) translate(1.4px, -.8px) scale(1.1); } 30% { transform: skewX(-6deg) translate(-1px, -.6px) scale(1.06); }
    40% { transform: skewX(-6deg) translate(1px, .6px) scale(1.04); } 55% { transform: skewX(-6deg) translate(-.5px, 0); } 70% { transform: skewX(-6deg) translate(.4px, 0); } }
@keyframes tp-shout-focus { 0% { opacity: 0; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.2); } }
html.calm-flash .tp-shout.tp-flare > .tp-ballo { animation: tp-shout-swell 1.1s ease-in-out 1; }
@keyframes tp-shout-swell { 50% { transform: scale(1.1, 1.15); } }
html.calm-flash .tp-shout > .tp-focus { display: none; }
html.calm-motion .tp-shout > .tp-ballo, html.gfx-low .tp-shout > .tp-ballo { animation: none; }
.ins-plate.tp-shout.ins-compact { padding: 0 10px; border-radius: 0; font-size: 9.5px; letter-spacing: .03em; }
.tp-shout.ins-compact > .tp-ballo { top: -3px; bottom: -3px; }
.tp-shout.ins-compact::after { bottom: -5px; height: 2px; }
/* Typewritten (Noir, Epic; static/js/noir_art.js's greys): the title typed on a strip of onionskin by an office
   typewriter - thin ivory paper with its laid lines and a soft fold shadow, a little darker where it was handled, the
   strip cut slightly off square; the letters in a typewriter face (a Courier stack), ribbon ink that is never even (each
   letter its own weight of ink, --k, and a hair off the line, --y). Motion "type" (.tp-tw > s, --d each): the keys strike
   the title in letter by letter, each letter landing with a jolt of the type bar, it holds a long while, then the line
   lifts off in the same order and is typed again (a 15 s cycle). Calm motion (and a still list, .np-still): typed, still. */
.ins-plate.tp-typewritten { border: 0; border-radius: 1px; padding: 0 12px; color: #1b1d21; overflow: hidden;
    font-family: 'Courier Prime', 'Courier New', Courier, 'Nimbus Mono PS', 'Liberation Mono', 'FreeMono', monospace;
    font-weight: 700; font-size: 12px; letter-spacing: .02em;
    background: repeating-linear-gradient(0deg, rgba(110,113,120,.07) 0 1px, transparent 1px 3px),
        linear-gradient(90deg, rgba(12,13,15,.1), transparent 9%, transparent 88%, rgba(12,13,15,.12)),
        linear-gradient(180deg, #f1efe8 0%, #e9e6dc 48%, #dcd8cc 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -1px 0 rgba(110,113,120,.25) inset, 0 1px 2px rgba(0,0,0,.55);
    clip-path: polygon(0 4%, 100% 0, 99.4% 100%, .5% 96%); }
.tp-typewritten > i { display: none; }
.tp-typewritten::after { content: ''; position: absolute; top: 0; bottom: 0; left: 62%; width: 1px; pointer-events: none;
    background: linear-gradient(180deg, rgba(110,113,120,.25), rgba(255,255,255,.4) 50%, rgba(110,113,120,.2)); }
.tp-typewritten > b { text-shadow: 0 0 .4px rgba(27,29,33,.55); }
.tp-tw > s { display: inline-block; text-decoration: none; opacity: var(--k); transform: translateY(var(--y));
    animation: tp-tw-type 15s linear var(--d) infinite both; }
@keyframes tp-tw-type { 0% { opacity: 0; transform: translateY(calc(var(--y) - .9px)) scale(1.08); }
    .6% { opacity: calc(var(--k) + .1); transform: translateY(calc(var(--y) + .5px)) scale(1); }
    1.4%, 82% { opacity: var(--k); transform: translateY(var(--y)); } 84%, 100% { opacity: 0; transform: translateY(calc(var(--y) - 1.5px)); } }
html.calm-motion .tp-tw > s, html.gfx-low .tp-tw > s { animation: none; }
.ins-plate.tp-typewritten.ins-compact { padding: 0 8px; font-size: 9.5px; letter-spacing: .04em; }

@keyframes ins-glint { 0%, 30% { background-position: 150% 0, 0 0; } 70%, 100% { background-position: -60% 0, 0 0; } }

.ins-compact.ins-mythic:not(.ins-plate) { background: none; border: 0; box-shadow: none; }
.ins-compact .ins-motes { inset: -4px -2px; }

/* ---- Title plates (cosmetics slot title_plate). One class per key: .tp-<key>. Full form 24px, compact (seat) 17px. ---- */
.ins-plate { font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 800; letter-spacing: .07em; overflow: hidden; }
.ins-plate.ins-compact { height: 17px; padding: 0 7px; gap: 4px; border-radius: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ins-plate.ins-compact > i { display: none; }
.ins-plate > b, .ins-plate > i { z-index: 2; }
/* Engraved Brass (Emerald Club, Rare, static): a card room's brass door plaque - lit brass with a fine horizontal
   brushing, a bevel (a bright inner edge above, a shadow below), an engraved double border line, a slotted screw at
   each end and the title cut into the metal (dark letters with the light catching their lower lip). */
.tp-engraved_brass { border-radius: 3px; padding: 0 19px; color: #2e1d04; border-color: #4a3410;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 1px, transparent 1px 2px, rgba(0,0,0,.06) 2px 3px),
        linear-gradient(180deg, #f6e2b4 0%, #d8b878 22%, #b08d57 48%, #c9a45c 62%, #e6c99a 82%, #8a6a32 100%);
    box-shadow: inset 0 1px 0 rgba(255,248,226,.85), inset 0 -1px 0 rgba(60,40,8,.6), inset 0 0 0 3px rgba(0,0,0,0),
        inset 0 0 0 3.5px rgba(74,52,16,.55), inset 0 0 0 4.2px rgba(255,240,200,.4), 0 1px 2px rgba(0,0,0,.65); }
.tp-engraved_brass > b { text-shadow: 0 1px 0 rgba(255,244,214,.8), 0 -1px 0 rgba(40,24,0,.35); }
.tp-engraved_brass > i { display: none; }
.tp-engraved_brass::before, .tp-engraved_brass::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: linear-gradient(var(--slot, 35deg), transparent 42%, #3a2404 43% 57%, transparent 58%),
        radial-gradient(circle at 35% 30%, #fff1cc, #c9a45c 50%, #5a4119 92%);
    box-shadow: 0 0 0 .7px rgba(40,24,0,.6), 0 .6px 0 rgba(255,240,200,.5); }
.tp-engraved_brass::before { left: 6px; } .tp-engraved_brass::after { right: 6px; --slot: 118deg; }
.tp-engraved_brass.ins-compact { padding: 0 13px; box-shadow: inset 0 1px 0 rgba(255,248,226,.85), inset 0 -1px 0 rgba(60,40,8,.6),
    inset 0 0 0 2.2px rgba(0,0,0,0), inset 0 0 0 2.7px rgba(74,52,16,.5), 0 1px 2px rgba(0,0,0,.65); }
.tp-engraved_brass.ins-compact::before, .tp-engraved_brass.ins-compact::after { width: 5px; height: 5px; margin-top: -2.5px; }
.tp-engraved_brass.ins-compact::before { left: 4px; } .tp-engraved_brass.ins-compact::after { right: 4px; }
/* Washi Tape (Pastel Pop, Rare, static): the title on a strip of washi tape stuck across the page - mint paper printed with
   tiny strawberries and butter stars, the paper's fibres showing through (fine streaks along the strip), both ends torn
   ragged (the clip-path) and the top right corner lifting off the page (::after: the tape's paler underside and the shadow
   under it); the title in a deep berry ink, rounded letters on a clearer band through the middle so it reads at 17px. */
.tp-washi_tape { border: 0; border-radius: 0; padding: 0 16px; color: #6b2347;
    font-family: 'Righteous', 'Inter', sans-serif; font-weight: 400; letter-spacing: .05em;
    background: linear-gradient(180deg, rgba(220,250,238,0) 18%, rgba(220,250,238,.72) 34% 66%, rgba(220,250,238,0) 82%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 5px, rgba(60,140,110,.07) 5px 6px, transparent 6px 9px),
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 26 16%22 width=%2226%22 height=%2216%22%3E%3Cpath d=%22M5 4.2C3.4 4.2 2.6 5.6 3 7.2C3.4 8.8 4.4 10 5 10.4C5.6 10 6.6 8.8 7 7.2C7.4 5.6 6.6 4.2 5 4.2Z%22 fill=%22%23f47aa0%22/%3E%3Cpath d=%22M3.4 4.4L5 3.2L6.6 4.4L5 5Z%22 fill=%22%234fb98e%22/%3E%3Ccircle cx=%224.4%22 cy=%226.4%22 r=%22.35%22 fill=%22%23fff6d0%22/%3E%3Ccircle cx=%225.6%22 cy=%227.6%22 r=%22.35%22 fill=%22%23fff6d0%22/%3E%3Cpath d=%22M18 9.2L18.9 11L20.8 11.2L19.4 12.5L19.8 14.4L18 13.4L16.2 14.4L16.6 12.5L15.2 11.2L17.1 11Z%22 fill=%22%23f6c64a%22/%3E%3Ccircle cx=%2212%22 cy=%223%22 r=%22.7%22 fill=%22%23fff%22 fill-opacity=%22.8%22/%3E%3Ccircle cx=%2223.4%22 cy=%224.4%22 r=%22.6%22 fill=%22%239a86e0%22/%3E%3Ccircle cx=%2210.4%22 cy=%2213%22 r=%22.6%22 fill=%22%23f47aa0%22/%3E%3C/svg%3E") 0 0 / 26px 16px,
        linear-gradient(180deg, #c6f1df, #a8e6cf 55%, #93dcc0);
    clip-path: polygon(0 8%, 3px 0, calc(100% - 4px) 0, calc(100% - 1px) 12%, 100% 26%, calc(100% - 3px) 38%, calc(100% - .5px) 52%, calc(100% - 3.5px) 64%, calc(100% - 1px) 78%, calc(100% - 2.5px) 90%, calc(100% - 4px) 100%, 3px 100%, .5px 88%, 3px 74%, 0 60%, 2.5px 46%, .5px 33%, 3.5px 20%); }
.tp-washi_tape > b { text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.tp-washi_tape > i { display: none; }
.tp-washi_tape::after { content: ''; position: absolute; right: 2px; top: 0; width: 9px; height: 7px; pointer-events: none;
    background: linear-gradient(225deg, #0c0e14 0 46%, rgba(30,30,40,.5) 48%, #e6fbf2 52%, #c4eedc 100%); }
.tp-washi_tape.ins-compact { padding: 0 10px; font-size: 9.5px; letter-spacing: .06em;
    background: linear-gradient(180deg, rgba(220,250,238,0) 10%, rgba(220,250,238,.78) 28% 72%, rgba(220,250,238,0) 90%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 5px, rgba(60,140,110,.07) 5px 6px, transparent 6px 9px),
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 26 16%22 width=%2226%22 height=%2216%22%3E%3Cpath d=%22M5 4.2C3.4 4.2 2.6 5.6 3 7.2C3.4 8.8 4.4 10 5 10.4C5.6 10 6.6 8.8 7 7.2C7.4 5.6 6.6 4.2 5 4.2Z%22 fill=%22%23f47aa0%22/%3E%3Cpath d=%22M3.4 4.4L5 3.2L6.6 4.4L5 5Z%22 fill=%22%234fb98e%22/%3E%3Ccircle cx=%224.4%22 cy=%226.4%22 r=%22.35%22 fill=%22%23fff6d0%22/%3E%3Ccircle cx=%225.6%22 cy=%227.6%22 r=%22.35%22 fill=%22%23fff6d0%22/%3E%3Cpath d=%22M18 9.2L18.9 11L20.8 11.2L19.4 12.5L19.8 14.4L18 13.4L16.2 14.4L16.6 12.5L15.2 11.2L17.1 11Z%22 fill=%22%23f6c64a%22/%3E%3Ccircle cx=%2212%22 cy=%223%22 r=%22.7%22 fill=%22%23fff%22 fill-opacity=%22.8%22/%3E%3Ccircle cx=%2223.4%22 cy=%224.4%22 r=%22.6%22 fill=%22%239a86e0%22/%3E%3Ccircle cx=%2210.4%22 cy=%2213%22 r=%22.6%22 fill=%22%23f47aa0%22/%3E%3C/svg%3E") 0 0 / 20px 12.3px,
        linear-gradient(180deg, #c6f1df, #a8e6cf 55%, #93dcc0); }
.tp-washi_tape.ins-compact::after { width: 6px; height: 5px; right: 1px; }
/* Letter Board (Fifties Diner, Rare, static): the title spelled out on the diner's menu board - white push-in letters
   (Inter, upper case, spaced as a board's slots space them) on black felt grooved in fine horizontal lines, a cherry-red
   header strip along the top (::before), a polished chrome frame (inset bands) and its two corner screws (::after). */
.tp-letter_board { border: 0; border-radius: 3px; padding: 3px 14px 0; color: #f4f1ea;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
    background: repeating-linear-gradient(180deg, #121216 0 2px, #26262c 2px 3px), #16161a;
    box-shadow: inset 0 0 0 1px #4d5762, inset 0 0 0 2.5px #f4f6f8, inset 0 0 0 3.5px #8d98a3, inset 0 0 0 4.2px #3f4852, 0 1px 2px rgba(0,0,0,.7); }
.tp-letter_board > b { text-shadow: 0 1px 0 rgba(0,0,0,.85), 0 0 1px rgba(255,255,255,.4); }
.tp-letter_board > i { display: none; }
.tp-letter_board::before { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; height: 3px; pointer-events: none;
    background: linear-gradient(180deg, #ef5361, #d62839 60%, #6e0f1b); }
.tp-letter_board::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 6px 50%, #fff 0 .8px, #8d98a3 1.4px, transparent 1.8px),
        radial-gradient(circle at calc(100% - 6px) 50%, #fff 0 .8px, #8d98a3 1.4px, transparent 1.8px); }
.tp-letter_board.ins-compact { padding: 2px 10px 0; font-size: 9.5px; letter-spacing: .12em; }
.tp-letter_board.ins-compact::before { height: 2px; top: 3px; left: 3px; right: 3px; }
/* Surfboard (Summer Beach, Rare, static; static/js/beach_art.js's colours): the title painted along a longboard laid on the
   sand - a sun-bleached cream deck with a squared-off tail on the left and a long rounded nose on the right (the radii),
   a turquoise pinline round its rails, the wax's faint swirls on the deck and a coral fin peeking out under its tail
   (::after); the title in the sea's deep teal, rounded letters. Compact: the pinline and the fin only. */
.tp-surfboard { border: 0; border-radius: 6px 999px 999px 6px / 6px 50% 50% 6px; padding: 0 20px 0 13px; color: #0e5f73; overflow: visible; margin-bottom: 3px;
    font-family: 'Righteous', 'Inter', sans-serif; font-weight: 400; letter-spacing: .06em;
    background: radial-gradient(ellipse 14px 6px at 30% 40%, transparent 60%, rgba(214,190,140,.22) 70%, transparent 80%),
        radial-gradient(ellipse 12px 5px at 62% 62%, transparent 60%, rgba(214,190,140,.2) 70%, transparent 80%),
        linear-gradient(180deg, rgba(255,255,255,.55) 0 18%, rgba(255,255,255,0) 40%),
        linear-gradient(180deg, #fffaf0, #fbf3df 55%, #ecdcb8);
    box-shadow: inset 0 0 0 1.5px #fbf3df, inset 0 0 0 3px #2ec4c0, inset 0 -1px 0 3px rgba(14,95,115,.15), 0 2px 3px rgba(8,50,60,.5); }
.tp-surfboard > b { text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.tp-surfboard > i { display: none; }
.tp-surfboard::after { content: ''; position: absolute; z-index: 1; left: 9px; bottom: -5px; width: 9px; height: 6px; pointer-events: none;
    border-radius: 1px 6px 0 0; background: linear-gradient(180deg, #ff9a8a, #d9473a); clip-path: polygon(0 0, 100% 0, 30% 100%, 0 100%); }
.tp-surfboard.ins-compact { padding: 0 12px 0 8px; font-size: 9.5px; margin-bottom: 2px;
    background: linear-gradient(180deg, #fffaf0, #fbf3df 55%, #ecdcb8);
    box-shadow: inset 0 0 0 1px #fbf3df, inset 0 0 0 2px #2ec4c0, 0 1px 2px rgba(8,50,60,.5); }
.tp-surfboard.ins-compact::after { left: 6px; bottom: -3px; width: 6px; height: 4px; }
/* Station Sign (Golden Hour, Epic, motion dusk; static/js/dusk_art.js's palette): the title on the name board of a little
   country station - white enamel (a faint grain, a soft shadow where its edge is turned) on two wooden posts
   (::before / ::after), a dusk-blue band along its foot with a small arrow to the stop either side, the title in a plain
   dark-navy sans like a painted station name. A generic board: no railway company's colours or marks. The evening moves
   over it on a slow 12 s loop: a band of low sun slants across the enamel (.tp-eve), the whole board warms honey gold
   (.tp-warm) and its little lamp over the name comes on at dusk (.tp-lamp), then the light cools again. Nothing flashes;
   calm motion: the board held in its warm evening light; low graphics: no slanting light. */
.tp-station_sign { border: 0; border-radius: 1.5px; padding: 0 17px 4px; color: #2e3468;
    font-family: 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: .1em;
    background:
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 6%22%3E%3Cpath d=%22M7 1L2 3L7 5Z%22 fill=%22%23fff4de%22/%3E%3C/svg%3E") 6px calc(100% - .5px) / 6px 4.5px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 6%22%3E%3Cpath d=%22M1 1L6 3L1 5Z%22 fill=%22%23fff4de%22/%3E%3C/svg%3E") calc(100% - 6px) calc(100% - .5px) / 6px 4.5px no-repeat,
        linear-gradient(180deg, transparent calc(100% - 6px), #4f5a9c calc(100% - 6px), #3e4888) 0 0 / 100% 100% no-repeat,
        repeating-linear-gradient(90deg, rgba(120,110,140,.035) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #ffffff 0%, #fbf8f1 60%, #efe9dc 100%);
    box-shadow: inset 0 0 0 1px rgba(61,54,86,.35), inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(20,16,40,.55); }
.tp-station_sign > b { text-shadow: 0 .5px 0 rgba(255,255,255,.8); }
.tp-station_sign > i { display: none; }
.tp-station_sign::before, .tp-station_sign::after { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; z-index: 3;
    background: linear-gradient(90deg, #5e3e2e, #a8774f 45%, #8a5f43 70%, #4a3022);
    box-shadow: 0 0 0 .5px rgba(40,24,16,.6); }
.tp-station_sign::before { left: 3px; } .tp-station_sign::after { right: 3px; }
.tp-station_sign > .tp-warm, .tp-station_sign > .tp-eve, .tp-station_sign > .tp-lamp { position: absolute; pointer-events: none; z-index: 1; }
.tp-station_sign > .tp-warm { inset: 0; background: linear-gradient(100deg, rgba(255,215,143,0), rgba(246,178,78,.34) 55%, rgba(232,144,154,.3));
    mix-blend-mode: multiply; opacity: 0; animation: tp-ss-warm 12s ease-in-out infinite; }
.tp-station_sign > .tp-eve { top: -20%; bottom: -20%; left: -40%; width: 38%;
    background: linear-gradient(100deg, transparent, rgba(255,226,160,.55) 45%, rgba(255,246,214,.7) 52%, rgba(255,226,160,.4) 60%, transparent);
    transform: skewX(-18deg); opacity: 0; animation: tp-ss-eve 12s cubic-bezier(.45,.05,.55,.95) infinite; }
.tp-station_sign > .tp-lamp { left: 50%; top: 0; width: 7px; height: 2.5px; margin-left: -3.5px; border-radius: 0 0 3px 3px;
    background: #8a8396; box-shadow: 0 0 0 .5px rgba(40,30,60,.5); z-index: 2; }
.tp-station_sign > .tp-lamp::after { content: ''; position: absolute; left: -7px; right: -7px; top: 1px; height: 10px; opacity: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 0, rgba(255,246,214,.95), rgba(255,230,163,.55) 40%, transparent 75%);
    animation: tp-ss-lamp 12s ease-in-out infinite; }
@keyframes tp-ss-warm { 0%, 10% { opacity: 0; } 50%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tp-ss-eve { 0%, 6% { transform: translateX(0) skewX(-18deg); opacity: 0; } 14% { opacity: 1; } 50% { opacity: .9; } 62%, 100% { transform: translateX(420%) skewX(-18deg); opacity: 0; } }
@keyframes tp-ss-lamp { 0%, 52% { opacity: 0; } 62%, 86% { opacity: 1; } 100% { opacity: 0; } }
html.calm-motion .tp-station_sign > .tp-warm, html.calm-motion .tp-station_sign > .tp-lamp::after { animation: none; opacity: .7; }
html.calm-motion .tp-station_sign > .tp-eve, html.gfx-low .tp-station_sign > .tp-eve { display: none; }
.tp-station_sign.ins-compact { padding: 0 11px 3px; border-radius: 1px; font-size: 8.5px; letter-spacing: .09em;
    background:
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 6%22%3E%3Cpath d=%22M7 1L2 3L7 5Z%22 fill=%22%23fff4de%22/%3E%3C/svg%3E") 4.5px calc(100% - .3px) / 4.5px 3.4px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 6%22%3E%3Cpath d=%22M1 1L6 3L1 5Z%22 fill=%22%23fff4de%22/%3E%3C/svg%3E") calc(100% - 4.5px) calc(100% - .3px) / 4.5px 3.4px no-repeat,
        linear-gradient(180deg, transparent calc(100% - 4.5px), #4f5a9c calc(100% - 4.5px), #3e4888) 0 0 / 100% 100% no-repeat,
        linear-gradient(180deg, #ffffff 0%, #fbf8f1 60%, #efe9dc 100%); }
.tp-station_sign.ins-compact::before, .tp-station_sign.ins-compact::after { width: 3px; }
.tp-station_sign.ins-compact::before { left: 2px; } .tp-station_sign.ins-compact::after { right: 2px; }
/* Saloon Sign (Frontier Saloon, Epic): the title hand-painted in cream on a weathered sign of two boards (their seam, the
   grain, a darker weathering at the ends, the paint cracked), corners worn round, hung from two short chains (::before /
   ::after over its top edge). It sways gently on its chains (the plate turns about a point above it), out of step with any
   other sign. Calm motion: still. */
.tp-saloon_sign { border: 0; border-radius: 5px; padding: 0 15px; color: #f6e7c4; overflow: visible; margin-top: 4px;
    font-family: 'Rye', Georgia, serif; font-weight: 400; letter-spacing: .06em;
    background: linear-gradient(180deg, transparent 48.5%, rgba(20,8,2,.6) 48.5% 52%, rgba(255,214,168,.12) 52% 54%, transparent 54%),
        linear-gradient(90deg, rgba(20,8,2,.42), transparent 14% 86%, rgba(20,8,2,.42)),
        repeating-linear-gradient(178deg, rgba(20,8,2,.16) 0 1px, transparent 1px 4px, rgba(255,220,180,.06) 4px 5px, transparent 5px 7px),
        linear-gradient(180deg, #96623a, #6e4426 55%, #4c2c16);
    box-shadow: inset 0 1px 0 rgba(255,220,180,.3), inset 0 -1px 0 rgba(20,8,2,.6), 0 2px 3px rgba(0,0,0,.6);
    transform-origin: 50% -9px; animation: tp-swing 4.6s ease-in-out infinite alternate; }
.tp-saloon_sign > b { text-shadow: 0 1px 0 rgba(30,12,2,.9), 0 0 3px rgba(30,12,2,.5); }
.tp-saloon_sign > i { display: none; }
.tp-saloon_sign::before, .tp-saloon_sign::after { content: ''; position: absolute; top: -7px; width: 3px; height: 8px; border-radius: 1.5px;
    background: repeating-linear-gradient(180deg, #d4d0c2 0 2px, #4a463c 2px 2.6px, #8d897d 2.6px 4px); box-shadow: 0 0 0 .5px rgba(0,0,0,.5); }
.tp-saloon_sign::before { left: 16%; } .tp-saloon_sign::after { right: 16%; }
@keyframes tp-swing { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.tp-saloon_sign.ins-compact { padding: 0 10px; border-radius: 4px; font-size: 9.5px; margin-top: 3px; transform-origin: 50% -6px; }
.tp-saloon_sign.ins-compact::before, .tp-saloon_sign.ins-compact::after { top: -5px; width: 2px; height: 6px; }
html.calm-motion .tp-saloon_sign { animation: none; }
/* Trail Sign (Winter Lodge, Epic): the title carved into a wooden trail sign on the path to the lodge - a weathered spruce
   board, its grain running along it, the letters cut in and darkened, a pointed end (::after, the board's own wood cut to a
   point) - with a cap of fresh snow along its top edge (.tp-snowcap) and a little snow on the point. Now and then a pinch
   of snow slides off the point and falls (.tp-snowpuff), and a few flakes drift past (.tp-snowfall). Calm motion: still. */
.tp-trail_sign { border: 0; border-radius: 3px 0 0 3px; padding: 0 12px 0 14px; margin-right: 10px; color: #3a2414; overflow: visible; margin-top: 4px;
    font-family: 'Playfair Display', Georgia, serif; font-weight: 800; letter-spacing: .08em;
    background: linear-gradient(90deg, rgba(30,16,6,.35), transparent 10%),
        repeating-linear-gradient(181deg, rgba(30,16,6,.14) 0 1px, transparent 1px 3.5px, rgba(255,226,190,.07) 3.5px 4.5px, transparent 4.5px 6px),
        linear-gradient(180deg, #c99a64, #a8763f 55%, #7e5434);
    box-shadow: inset 0 1px 0 rgba(255,226,190,.35), inset 0 -1px 0 rgba(30,16,6,.5), 0 2px 3px rgba(0,0,0,.55); }
.tp-trail_sign > b { text-shadow: 0 1px 0 rgba(255,230,196,.45), 0 -.5px 0 rgba(30,16,6,.4); }
.tp-trail_sign > i { display: none; }
.tp-trail_sign::after { content: ''; position: absolute; top: 0; bottom: 0; right: -10px; width: 11px; clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: repeating-linear-gradient(181deg, rgba(30,16,6,.14) 0 1px, transparent 1px 3.5px), linear-gradient(180deg, #c99a64, #a8763f 55%, #7e5434); }
.tp-trail_sign .tp-snowcap { position: absolute; z-index: 3; left: -3px; right: -10px; top: -5px; height: 9px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 10%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 10Q1 4 7 4.6Q13 .8 21 3.4Q29 1.6 37 3.8Q45 .4 55 3.2Q63 1.6 71 4Q80 .8 89 3.4Q96 2.4 100 7V10Z%22 fill=%22%23fff%22/%3E%3Cpath d=%22M0 10Q30 7.6 60 8.6Q82 9.2 100 8.4V10Z%22 fill=%22%23a7c2d8%22 fill-opacity=%22.75%22/%3E%3Cpath d=%22M14 3.6Q18 2.2 22 3.2M48 2Q52 1 56 2.4M80 2.2Q84 1.4 88 2.8%22 fill=%22none%22 stroke=%22%23dbe9f4%22 stroke-width=%22.7%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.tp-trail_sign .tp-snowpuff { position: absolute; z-index: 3; right: -9px; top: 1px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none;
    box-shadow: -3px 2px 0 -1px #fff, 2px 4px 0 -1px #eef5fb; animation: tp-snowpuff 7s ease-in infinite; }
@keyframes tp-snowpuff { 0%, 76% { opacity: 0; transform: translate(0, 0); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(2px, 18px); } }
.tp-trail_sign .tp-snowfall { position: absolute; z-index: 3; inset: -10px 0 -6px; pointer-events: none; opacity: .85;
    background: radial-gradient(circle at 18% 20%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 52% 8%, #fff 0 .9px, transparent 1.5px),
        radial-gradient(circle at 80% 30%, #fff 0 1.1px, transparent 1.7px), radial-gradient(circle at 36% 60%, #fff 0 .8px, transparent 1.4px);
    animation: tp-snowfall 5.5s linear infinite; }
@keyframes tp-snowfall { 0% { opacity: 0; transform: translateY(-6px); } 20%, 75% { opacity: .85; } 100% { opacity: 0; transform: translateY(10px); } }
.tp-trail_sign.ins-compact { padding: 0 8px 0 9px; margin-right: 7px; font-size: 9.5px; margin-top: 3px; }
.tp-trail_sign.ins-compact::after { right: -7px; width: 8px; }
.tp-trail_sign.ins-compact .tp-snowcap { top: -3px; height: 6px; right: -7px; }
.tp-trail_sign.ins-compact .tp-snowfall { display: none; }
html.calm-motion .tp-trail_sign .tp-snowpuff, html.calm-motion .tp-trail_sign .tp-snowfall { animation: none; opacity: 0; }
/* T-Minus (Ad Astra, Legendary; static/js/mission_art.js's palette): the title in clean wide cream capitals
   (Syncopate) on the launch countdown board - a deep navy panel lit a little lighter at its top in agency blue, a crimson
   keyline, a screw in each corner - with a column of four status lamps at its left
   (.tp-tm-lamps, gold, the last one blinking) and the countdown clock at its right (.tp-tm-clock: seven-segment DSEG7
   digits in a recessed window, the unlit segments faint behind them, the last digit flicking down 9 to 0 once a second -
   a strip of digits moved on transform in steps). Any winning round (data-reacts win, .tp-flare): the clock drops to
   zero, the lamps go green down the line one after another and LIFTOFF lights over the clock (.tp-tm-go), to the
   console's beeps (plate_t_minus). Reduce flashing: nothing blinks, the lamps and LIFTOFF fade up softly; calm motion
   and low graphics: the clock stands still. At a seat (compact) the lamps go, the clock shows its last digit and a win lights GO. */
.ins-plate.tp-t_minus { border: 1px solid #d0352b; border-radius: 2px; padding: 0 5px 0 5px; gap: 6px; color: #fbf4e2; overflow: visible;
    font-family: 'Syncopate', 'Overpass', 'Arial', sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
    background: radial-gradient(circle at 3px 3px, #a7bcd8 0 .9px, #0a1530 1.3px, transparent 1.7px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at calc(100% - 3px) 3px, #a7bcd8 0 .9px, #0a1530 1.3px, transparent 1.7px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 3px calc(100% - 3px), #a7bcd8 0 .9px, #0a1530 1.3px, transparent 1.7px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), #a7bcd8 0 .9px, #0a1530 1.3px, transparent 1.7px) 0 0 / 100% 100% no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #26437c 0%, #13284f 45%, #0b1730 100%);
    box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(8,18,40,.6), 0 2px 4px rgba(0,0,0,.6); }
.tp-t_minus > i { display: none; }
.tp-t_minus > b { z-index: 2; text-shadow: 0 1px 0 #050a18, 0 0 4px rgba(251,244,226,.25); }
.tp-t_minus .tp-tm-lamps { order: -1; display: grid; grid-template-columns: 4px 4px; gap: 2px; padding-left: 4px; }
.tp-t_minus .tp-tm-lamps > s { width: 4px; height: 4px; border-radius: 1px; background: #f2b53e; box-shadow: 0 0 3px rgba(242,181,62,.75), inset 0 -1px 0 rgba(0,0,0,.35); }
.tp-t_minus .tp-tm-lamps > s:nth-child(4) { animation: tp-tm-blink 1s steps(1) infinite; }
@keyframes tp-tm-blink { 50% { background: #5a4214; box-shadow: none; } }
.tp-t_minus .tp-tm-clock { position: relative; display: inline-flex; align-items: center; height: 14px; padding: 0 3px; border-radius: 1px; overflow: hidden;
    font: 400 8.5px/1 'DSEG7 Classic', 'JetBrains Mono', monospace; letter-spacing: 0; color: #ec5b47; text-shadow: 0 0 3px rgba(208,53,43,.8);
    background: #050816; box-shadow: inset 0 1px 2px #000, 0 0 0 1px #3d5a8c; }
.tp-t_minus .tp-tm-clock > em { position: relative; font-style: normal; }
.tp-t_minus .tp-tm-clock > em::before { content: attr(data-off); position: absolute; left: 0; color: #3a0e0a; text-shadow: none; }
.tp-t_minus .tp-tm-clock > em > span { position: relative; }
.tp-t_minus .tp-tm-clock > u { position: relative; display: inline-block; width: 1ch; height: 1em; overflow: hidden; text-decoration: none; }
.tp-t_minus .tp-tm-clock > u::before { content: '8'; position: absolute; left: 0; top: 0; color: #3a0e0a; text-shadow: none; }
.tp-t_minus .tp-tm-clock > u > s { position: absolute; left: 0; top: 0; width: 1ch; text-decoration: none; white-space: normal; word-break: break-all; line-height: 1em;
    will-change: transform; animation: tp-tm-count 10s steps(10, end) infinite; }
@keyframes tp-tm-count { from { transform: translateY(0); } to { transform: translateY(-10em); } }
.tp-t_minus .tp-tm-go { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: #050816;
    font: 800 8.5px/1 'Overpass', 'Barlow Condensed', sans-serif; letter-spacing: .14em; color: #7ee0a0; text-shadow: 0 0 4px rgba(126,224,160,.9); }
.tp-t_minus.tp-flare .tp-tm-clock > u > s { animation: none; transform: translateY(-9em); }
.tp-t_minus.tp-flare .tp-tm-lamps > s { animation: tp-tm-go 1.5s steps(1) 1 both; }
.tp-t_minus.tp-flare .tp-tm-lamps > s:nth-child(2) { animation-delay: .12s; }
.tp-t_minus.tp-flare .tp-tm-lamps > s:nth-child(3) { animation-delay: .24s; }
.tp-t_minus.tp-flare .tp-tm-lamps > s:nth-child(4) { animation-delay: .36s; }
@keyframes tp-tm-go { 0%, 100% { background: #7ee0a0; box-shadow: 0 0 4px rgba(126,224,160,.95); } }
.tp-t_minus.tp-flare .tp-tm-go { animation: tp-tm-liftoff 1.5s ease-out .45s 1 both; }
@keyframes tp-tm-liftoff { 0% { opacity: 0; } 8%, 22% { opacity: 1; } 15% { opacity: .35; } 80% { opacity: 1; } 100% { opacity: 0; } }
.tp-t_minus.tp-flare { animation: tp-tm-glow 1.5s ease-out 1; }
@keyframes tp-tm-glow { 30% { box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(8,18,40,.6), 0 0 10px rgba(126,224,160,.45), 0 2px 4px rgba(0,0,0,.6); } }
html.calm-flash .tp-t_minus .tp-tm-lamps > s:nth-child(4) { animation: none; }
html.calm-flash .tp-t_minus.tp-flare .tp-tm-lamps > s { animation: tp-tm-go-calm 1.5s ease-in-out 1 both; }
@keyframes tp-tm-go-calm { 0% { background: #f2b53e; } 30%, 80% { background: #7ee0a0; box-shadow: 0 0 2px rgba(126,224,160,.6); } 100% { background: #f2b53e; } }
html.calm-flash .tp-t_minus.tp-flare .tp-tm-go { animation: tp-tm-liftoff-calm 1.5s ease-in-out .3s 1 both; }
@keyframes tp-tm-liftoff-calm { 0%, 100% { opacity: 0; } 35%, 75% { opacity: .9; } }
html.calm-flash .tp-t_minus.tp-flare { animation: none; }
html.calm-motion .tp-t_minus .tp-tm-clock > u > s, html.gfx-low .tp-t_minus .tp-tm-clock > u > s,
html.calm-motion .tp-t_minus .tp-tm-lamps > s, html.gfx-low .tp-t_minus .tp-tm-lamps > s:nth-child(4) { animation: none; }
.ins-plate.tp-t_minus.ins-compact { padding: 0 3px 0 6px; gap: 4px; font-size: 8px; letter-spacing: .06em; border-radius: 2px; }
.tp-t_minus.ins-compact .tp-tm-lamps { display: none; }
.tp-t_minus.ins-compact .tp-tm-clock { height: 11px; padding: 0 2px; font-size: 7px; }
.tp-t_minus.ins-compact .tp-tm-clock > em > span, .tp-t_minus.ins-compact .tp-tm-clock > em::before { display: none; }
.tp-t_minus.ins-compact .tp-tm-go { font-size: 0; }
.tp-t_minus.ins-compact .tp-tm-go::after { content: 'GO'; font-size: 7px; letter-spacing: .08em; }
/* Velvet Rope (Royal Velvet, Epic): the title on a burgundy velvet band (its pile catching the light above)
   held between two polished brass stanchions with crowned caps (::before / ::after), a twisted velvet rope (.tp-rope)
   strung along its top and bottom edges post to post. It moves as velvet does under the house lights: a soft band of
   light runs slowly across the pile (.tp-pile, the nap turning pink where it passes), and each crowned cap catches it in
   turn, left then right. Calm motion: still; low graphics: the caps only. */
.tp-velvet_rope { border-radius: 3px; padding: 0 20px; color: #fde7c8; border-color: rgba(40,4,10,.9);
    background: radial-gradient(120% 90% at 40% 0%, rgba(255,170,190,.22), transparent 60%),
        repeating-radial-gradient(circle at 37% 41%, rgba(255,255,255,.04) 0 1px, transparent 1px 2.5px),
        linear-gradient(180deg, #8f1a30, #5e0b1b 55%, #2e040c);
    box-shadow: inset 0 0 6px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.7); }
.tp-velvet_rope > b { text-shadow: 0 1px 1px rgba(0,0,0,.8), 0 0 6px rgba(242,207,107,.25); color: #fbe3b8; }
.tp-velvet_rope > i { display: none; }
.tp-velvet_rope > .tp-rope { position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; z-index: 1; pointer-events: none;
    background:
        repeating-linear-gradient(118deg, #e0566e 0 1.4px, #8a1428 1.4px 2.8px, #3a0610 2.8px 3.6px) 0 0 / 100% 3.6px no-repeat,
        repeating-linear-gradient(118deg, #e0566e 0 1.4px, #8a1428 1.4px 2.8px, #3a0610 2.8px 3.6px) 0 100% / 100% 3.6px no-repeat; }
.tp-velvet_rope::before, .tp-velvet_rope::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8px; z-index: 2;
    background:
        radial-gradient(circle at 50% 3.2px, #fff6d6 0 .8px, #f2cf6b 1.4px, #8a5a12 3.1px, transparent 3.4px),
        linear-gradient(180deg, transparent 6px, #3a2404 6px 7px, transparent 7px),
        linear-gradient(90deg, #6b4410, #f6dd95 35%, #fff6d6 45%, #c9952a 70%, #5a3a08) 50% 0 / 4px 100% no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.tp-velvet_rope::before { left: 1px; } .tp-velvet_rope::after { right: 1px; }
.tp-velvet_rope > .tp-pile { position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 0, rgba(255,170,190,.1) 25%, rgba(255,206,218,.42) 50%, rgba(255,170,190,.1) 75%, transparent 100%);
    animation: tp-pile 7s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes tp-pile { 0%, 8% { transform: translateX(0); } 72%, 100% { transform: translateX(330%); } }
.tp-velvet_rope::before { animation: tp-cap 7s ease-in-out infinite; }
.tp-velvet_rope::after { animation: tp-cap 7s ease-in-out 3.4s infinite; }
@keyframes tp-cap { 0%, 14%, 34%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
    22% { filter: brightness(1.55) drop-shadow(0 0 2.5px rgba(255,236,170,.85)) drop-shadow(0 1px 1px rgba(0,0,0,.6)); } }
html.calm-flash .tp-velvet_rope::before, html.calm-flash .tp-velvet_rope::after { animation-name: tp-cap-calm; }
@keyframes tp-cap-calm { 0%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); } 22% { filter: brightness(1.2) drop-shadow(0 1px 1px rgba(0,0,0,.6)); } }
html.gfx-low .tp-velvet_rope > .tp-pile { display: none; }
.tp-velvet_rope.ins-compact { padding: 0 13px; border-radius: 2px; }
.tp-velvet_rope.ins-compact > .tp-rope { left: 4px; right: 4px; background-size: 100% 2.6px, 100% 2.6px; }
.tp-velvet_rope.ins-compact::before, .tp-velvet_rope.ins-compact::after { width: 6px;
    background: radial-gradient(circle at 50% 2.4px, #fff6d6 0 .6px, #f2cf6b 1px, #8a5a12 2.3px, transparent 2.6px),
        linear-gradient(90deg, #6b4410, #f6dd95 35%, #fff6d6 45%, #c9952a 70%, #5a3a08) 50% 0 / 3px 100% no-repeat; }
/* Playing Card (Rare, static): the top card of a fresh deck turned on its side - linen-finish ivory stock (a fine
   cross-weave embossed in it), the printer's double border (a red hairline inside a white margin), the corner indices
   stacked rank over suit as a real card's are (the Ace of Spades at the left, the Ace of Hearts at the right turned
   upside down) and the title letterpressed in black between them; the deck's edge shows under it, card on card. */
.tp-playing_card { border-radius: 4px; padding: 0 20px; color: #17120e; border: 0;
    font-family: 'Playfair Display', Georgia, serif; font-weight: 800; letter-spacing: .03em;
    background: repeating-linear-gradient(0deg, rgba(126,104,70,.075) 0 1px, transparent 1px 2px),
        repeating-linear-gradient(90deg, rgba(126,104,70,.06) 0 1px, transparent 1px 2px),
        radial-gradient(130% 170% at 28% 0%, #fffef9, #f7f1e3 55%, #e9dfc8);
    box-shadow: inset 0 0 0 1.6px #fffdf6, inset 0 0 0 2.2px rgba(166,20,28,.6), inset 0 0 0 3px #fffdf6,
        0 0 0 .6px rgba(70,50,25,.55), 0 1px 0 #d9ceb5, 0 1.6px 0 rgba(70,50,25,.5), 0 2.4px 0 #cbbd9e, 0 3px 0 rgba(70,50,25,.45), 0 4px 4px rgba(0,0,0,.55); }
.tp-playing_card > i { display: none; }
.tp-playing_card > b { text-shadow: 0 .6px 0 rgba(255,255,255,.85), 0 -.4px 0 rgba(0,0,0,.18); }
.tp-playing_card::before, .tp-playing_card::after { position: absolute; top: 50%; white-space: pre; text-align: center; z-index: 2;
    font: 900 8.5px/.9 'Playfair Display', Georgia, serif; letter-spacing: 0; color: #17120e; }
.tp-playing_card::before { content: 'A\A\2660'; left: 6px; transform: translateY(-50%); }
.tp-playing_card::after { content: 'A\A\2665'; right: 6px; transform: translateY(-50%) rotate(180deg); color: #b0121c; }
.tp-playing_card.ins-compact { padding: 0 14px; border-radius: 3px; font-family: 'Playfair Display', Georgia, serif; letter-spacing: .05em;
    box-shadow: inset 0 0 0 1.2px #fffdf6, inset 0 0 0 1.7px rgba(166,20,28,.6), 0 0 0 .5px rgba(70,50,25,.55), 0 1px 0 #cbbd9e, 0 1.6px 2px rgba(0,0,0,.6); }
.tp-playing_card.ins-compact::before, .tp-playing_card.ins-compact::after { font-size: 6.5px; }
.tp-playing_card.ins-compact::before { left: 3.5px; } .tp-playing_card.ins-compact::after { right: 3.5px; }
/* Neon Sign (Synthwave, Legendary): an Ocean Drive motel sign - a violet deco board edged in an aqua glass tube, chrome
   deco fans at its ends (::before / ::after), the title in slanted hot-pink tube lettering (white-hot core, pink glow)
   over an aqua underline. It strikes on when it first appears (you sit down), then hums. On a winning round (data-reacts
   win) the sign surges: the power dips, then the tubes blaze white-pink, the board's aqua edge flares and sparks spit off
   the tube (.tp-sparks), pink and aqua, with the neon's transformer buzz. Reduce flashing: no dip, a soft swell and no
   sparks; low graphics: no sparks. */
.tp-neon_sign { font-family: 'Righteous', 'Inter', system-ui, sans-serif; font-weight: 400; font-style: italic; letter-spacing: .06em; color: #fff0f8;
    border-radius: 7px; padding: 0 18px; border: 1.5px solid #2de2e6;
    background: linear-gradient(90deg, transparent 16%, rgba(45,226,230,.85) 16.5% 83.5%, transparent 84%) 0 84% / 100% 1.5px no-repeat,
        linear-gradient(90deg, transparent 14%, rgba(45,226,230,.22) 18% 82%, transparent 86%) 0 86% / 100% 5px no-repeat,
        repeating-conic-gradient(from 0deg at 50% 120%, rgba(255,60,172,.07) 0 4deg, transparent 4deg 9deg),
        linear-gradient(180deg, #2b0f54, #1a0838 60%, #12062e);
    box-shadow: 0 0 7px rgba(45,226,230,.55), inset 0 0 6px rgba(45,226,230,.3), inset 0 0 0 2.5px rgba(18,6,46,.9), inset 0 0 0 3.2px rgba(232,251,255,.35); }
.tp-neon_sign > i { display: none; }
.tp-neon_sign > b { text-shadow: 0 0 1px #fff, 0 0 3px #ff3cac, 0 0 7px #ff3cac, 0 0 13px rgba(255,42,109,.7);
    animation: tp-neon-on 1.3s steps(1, end) 1, tp-hum 6s 1.3s linear infinite; }
.tp-neon_sign::before, .tp-neon_sign::after { content: ''; position: absolute; top: 3px; bottom: 3px; width: 13px; pointer-events: none;
    background: repeating-radial-gradient(circle at var(--fx, 0%) 50%, #f4feff 0 1px, #8fa6d6 1px 2px, transparent 2px 4px); opacity: .85;
    -webkit-mask: radial-gradient(circle at var(--fx, 0%) 50%, #000 0 11px, transparent 11.5px); mask: radial-gradient(circle at var(--fx, 0%) 50%, #000 0 11px, transparent 11.5px); }
.tp-neon_sign::before { left: 3px; --fx: 0%; } .tp-neon_sign::after { right: 3px; --fx: 100%; }
.tp-neon_sign { overflow: visible; }
.tp-neon_sign > .tp-sparks { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.tp-neon_sign > .tp-sparks > i { position: absolute; left: var(--sx, 0); top: 0; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 25%, #ff3cac 55%, rgba(255,60,172,0) 75%); }
.tp-neon_sign > .tp-sparks > i:nth-child(2n) { background: radial-gradient(circle, #f4feff 0 25%, #2de2e6 55%, rgba(45,226,230,0) 75%); }
.tp-neon_sign.tp-surge > .tp-sparks > i { animation: tp-dust .8s cubic-bezier(.2,.7,.3,1) 1; animation-delay: calc(.32s + var(--dl, 0s)); }
.tp-neon_sign.tp-surge > b { animation: tp-neon-surge 1.3s linear 1; }
.tp-neon_sign.tp-surge { animation: tp-neon-board 1.3s ease-out 1; }
@keyframes tp-neon-surge { 0% { opacity: 1; } 8% { opacity: .15; } 16% { opacity: .9; } 22% { opacity: .25; }
    30% { opacity: 1; text-shadow: 0 0 1px #fff, 0 0 4px #fff, 0 0 9px #ff3cac, 0 0 18px #ff3cac, 0 0 28px rgba(255,42,109,.9); }
    100% { opacity: 1; } }
@keyframes tp-neon-board { 0%, 24% { filter: none; } 32% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(45,226,230,.9)); } 100% { filter: none; } }
html.calm-flash .tp-neon_sign.tp-surge > b { animation: none; }
html.calm-flash .tp-neon_sign.tp-surge { animation: tp-neon-board-calm 1.3s ease-in-out 1; }
@keyframes tp-neon-board-calm { 0%, 100% { filter: none; } 45% { filter: brightness(1.15) drop-shadow(0 0 3px rgba(45,226,230,.6)); } }
html.calm-flash .tp-neon_sign > .tp-sparks, html.gfx-low .tp-neon_sign > .tp-sparks { display: none; }
.tp-neon_sign.ins-compact { padding: 0 13px; font-style: italic; }
.tp-neon_sign.ins-compact::before, .tp-neon_sign.ins-compact::after { width: 8px; top: 2px; bottom: 2px; }
@keyframes tp-neon-on { 0% { opacity: .1; } 10% { opacity: 1; } 18% { opacity: .2; } 30% { opacity: 1; } 38% { opacity: .35; } 46%, 100% { opacity: 1; } }
@keyframes tp-hum { 0%, 91%, 95%, 100% { opacity: 1; } 93% { opacity: .55; } 97% { opacity: .8; } }
/* Ticker Tape (Epic): the exchange floor's LED board - a black anodised bezel round a field of dim amber LEDs (every dot of
   the matrix shows, unlit), the title lit in them with its glow, a green up-tick lit at the left. The title rides in from
   the right, holds still to be read, and runs out to the left (.tp-tick: the motion is one transform). A sheet of glass
   over the dots catches the light along its top. Calm motion: the title stands still; low graphics: no scroll either. */
.tp-ticker_tape { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; color: #ffb52e; border-radius: 3px;
    padding: 0 9px 0 17px; border: 0;
    background: radial-gradient(circle, rgba(255,170,40,.16) 0 .6px, transparent 1px) 0 0 / 2px 2px, linear-gradient(180deg, #0c0a07, #050403);
    box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #3c3c43, inset 0 0 0 2.6px #121214, inset 0 3px 6px rgba(0,0,0,.85),
        0 0 0 1px #5b5b64, 0 -1px 0 1px #2a2a2f, 0 1px 3px rgba(0,0,0,.7); }
.tp-ticker_tape > i { display: none; }
.tp-ticker_tape > b { display: inline-block; white-space: nowrap; color: #ffc857; text-shadow: 0 0 2px #ffd36b, 0 0 5px rgba(255,170,40,.9), 0 0 9px rgba(255,120,20,.5);
    animation: tp-tick var(--tick, 9s) cubic-bezier(.3,0,.7,1) infinite; }
.tp-ticker_tape::before { content: '\25B2'; position: absolute; left: 6px; top: 50%; z-index: 2; transform: translateY(-55%); pointer-events: none;
    font: 700 7px/1 'JetBrains Mono', monospace; color: #4ade80; text-shadow: 0 0 3px rgba(74,222,128,.9); }
.tp-ticker_tape::after { content: ''; position: absolute; inset: 2px; z-index: 3; pointer-events: none; border-radius: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 40%),
        radial-gradient(circle, transparent 0 52%, rgba(0,0,0,.5) 64%) 0 0 / 2px 2px; }
@keyframes tp-tick { 0% { transform: translateX(110%); } 16%, 76% { transform: translateX(0); } 100% { transform: translateX(-115%); } }
.tp-ticker_tape.ins-compact { padding: 0 6px 0 13px; border-radius: 2px; }
.tp-ticker_tape.ins-compact::before { left: 4px; font-size: 6px; }
/* Vault Ingot (Midas, Legendary; static/js/material_art.js's gold): a cast bar seen from the front - .tp-bar is its
   trapezoid (a lit top bevel, the brushed front face, the shadowed foot, darker bevels at the slanted ends), stamped
   with the Collection's hallmarks (.tp-hall: the crowned rook in a ring at the left, 999.9 FINE at the right; the full
   plate only) and the title struck between them. A glint crosses the bar now and then (.tp-bar::after); on a win the
   die strikes (.tp-strike: the plate thumps, a bright glint, the ring of the stamp) and gold dust bursts off the bar
   (.tp-dust). Reduce flashing: the strike's glint at half strength. Low graphics: no dust. Calm motion: nothing moves. */
.tp-vault_ingot { border-radius: 0; padding: 0 37px 0 32px; color: #3e2804; border-color: transparent; background: none; overflow: visible;
    filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.7)); }
.tp-vault_ingot > i { display: none; }
.tp-vault_ingot > b { z-index: 2; text-shadow: 0 1px 0 rgba(255,245,200,.75), 0 -1px 0 rgba(80,50,0,.45); }
.tp-vault_ingot > .tp-bar { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
    background:
        linear-gradient(90deg, rgba(74,46,5,.55), transparent 9px, transparent calc(100% - 9px), rgba(40,24,2,.7)),
        linear-gradient(180deg, #fff6d6 0, #f7d77a 3px, #b9821f 4.5px, transparent 5px),
        repeating-linear-gradient(180deg, rgba(255,255,255,.1) 0 1px, transparent 1px 2px, rgba(90,58,8,.12) 2px 3px),
        linear-gradient(180deg, #f7d77a 0%, #fbe7a6 30%, #e2ad3c 55%, #b9821f 80%, #6b4410 100%); }
.tp-vault_ingot > .tp-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.85), transparent); animation: tp-glint 5.5s ease-in-out infinite; }
.tp-vault_ingot > .tp-hall { position: absolute; top: 50%; z-index: 1; pointer-events: none; transform: translateY(-40%); color: rgba(62,40,4,.75);
    font: 700 6px/1 'Cinzel', Georgia, serif; letter-spacing: .04em; text-shadow: 0 .6px 0 rgba(255,245,200,.6); }
.tp-vault_ingot > .tp-hall.l { left: 11px; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 .8px rgba(62,40,4,.6), 0 .6px 0 rgba(255,245,200,.5); }
.tp-vault_ingot > .tp-hall.l > svg { position: absolute; inset: 2px; width: 9px; height: 9px; fill: rgba(62,40,4,.7); }
.tp-vault_ingot > .tp-hall.r { right: 11px; text-align: center; line-height: 1.05; }
.tp-vault_ingot > .tp-dust { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.tp-vault_ingot > .tp-dust > i { position: absolute; left: 0; top: 0; width: 4px; height: 4px; margin: -2px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fffbe8 0 30%, #f2cf6b 60%, rgba(242,207,107,0) 72%); }
.tp-vault_ingot.tp-strike > .tp-dust > i { animation: tp-dust .9s cubic-bezier(.2,.7,.3,1) 1; animation-delay: var(--dl, 0s); }
@keyframes tp-dust { 0% { opacity: 1; transform: translate(0, 0) scale(1.4); } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5); } }
.tp-vault_ingot.tp-strike > .tp-bar::after { animation: tp-strike .9s ease-out 1; }
.tp-vault_ingot.ins-compact { padding: 0 12px; }
.tp-vault_ingot.ins-compact > .tp-bar { clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 100%, 0 100%); }
.tp-vault_ingot.ins-compact > .tp-hall { display: none; }
html.calm-flash .tp-vault_ingot.tp-strike > .tp-bar::after { opacity: .5; }
html.gfx-low .tp-vault_ingot > .tp-dust { display: none; }
html.calm-motion .tp-vault_ingot > .tp-bar::after { animation: none !important; }
.tp-fortunes_reel > .tp-window::before, .tp-founder::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.85), transparent); transform: translateX(0); animation: tp-glint 5.5s ease-in-out infinite; }
.tp-founder::after { animation: none; opacity: 0; }
@keyframes tp-glint { 0%, 70% { transform: translateX(0); } 100% { transform: translateX(560%); } }
.tp-strike::after { animation: tp-strike .9s ease-out 1 !important; opacity: 1 !important; }
.tp-strike { animation: tp-thump .35s ease-out 1; }
@keyframes tp-strike { 0% { transform: translateX(0); } 100% { transform: translateX(560%); } }
@keyframes tp-thump { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* Marquee (Legendary, reacts win): the theatre's marquee - a red-lacquered frame trimmed in gold, a row of bulbs along its
   top and bottom edges (each a dim amber bulb, unlit, in the frame's own paint; .tp-bulbs > s lights every other one and
   steps half a bulb along, the classic two-phase chase, faster on your turn), and the title in black condensed letters
   slotted onto the milk-glass letterboard lit from behind (.tp-board, its two letter rails ruled across it). Win a round
   and the house lights come up: every bulb blazes on and off three times (.tp-bulbs::after), the board glows and sparks
   fly off the four corners (.tp-mq-sparks) to a showman's fanfare. Reduce flashing: the bulbs stand still and the win is
   one slow swell of light, no sparks; low graphics: no sparks. */
.tp-marquee { --bh: 5px; --bp: 7px; border-radius: 3px; padding: 0 13px; color: #140d08; border: 0; overflow: visible;
    font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
    background: radial-gradient(circle, #8a5a1a 0 1.05px, #3a1404 1.6px, transparent 1.95px) 0 0 / var(--bp) var(--bh) repeat-x,
        radial-gradient(circle, #8a5a1a 0 1.05px, #3a1404 1.6px, transparent 1.95px) 0 100% / var(--bp) var(--bh) repeat-x,
        linear-gradient(180deg, #a51e1e, #6e0f13 50%, #420709);
    box-shadow: inset 0 0 0 .8px #f2cf6b, inset 0 0 0 1.5px #5a2a06, 0 0 0 .8px #240304, 0 2px 4px rgba(0,0,0,.6), 0 0 10px rgba(253,224,140,.25); }
.tp-marquee > i { display: none; }
.tp-marquee > b { text-shadow: 0 .5px 0 rgba(255,255,255,.55); }
.tp-marquee > .tp-board { position: absolute; left: 5px; right: 5px; top: var(--bh); bottom: var(--bh); z-index: 1; border-radius: 1px; pointer-events: none;
    background: linear-gradient(180deg, transparent 1px, rgba(110,70,25,.4) 1px 1.6px, transparent 1.6px calc(100% - 1.6px), rgba(110,70,25,.4) calc(100% - 1.6px) calc(100% - 1px), transparent calc(100% - 1px)),
        radial-gradient(90% 150% at 50% 50%, #fffef4, #fdf2cc 60%, #f0d68a);
    box-shadow: inset 0 0 0 .6px rgba(70,35,5,.7), 0 0 5px rgba(255,236,170,.6); }
.tp-marquee > .tp-bulbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.tp-marquee > .tp-bulbs > s, .tp-marquee > .tp-bulbs::after { position: absolute; top: 0; bottom: 0; left: 0;
    --lit: radial-gradient(circle, #fffbea 0 .8px, #ffd85a 1.35px, rgba(255,196,64,.5) 2.1px, transparent 2.9px); }
/* every other bulb lit (top row and bottom row out of step), the strip stepping one bulb along and back: the chase */
.tp-marquee > .tp-bulbs > s { width: calc(100% + var(--bp) * 2); animation: tp-bulb-chase .7s steps(2) infinite;
    background: radial-gradient(circle at calc(var(--bp) / 2) 50%, #fffbea 0 .8px, #ffd85a 1.35px, rgba(255,196,64,.5) 2.1px, transparent 2.9px) 0 0 / calc(var(--bp) * 2) var(--bh) repeat-x,
        radial-gradient(circle at calc(var(--bp) * 1.5) 50%, #fffbea 0 .8px, #ffd85a 1.35px, rgba(255,196,64,.5) 2.1px, transparent 2.9px) 0 100% / calc(var(--bp) * 2) var(--bh) repeat-x; }
.tp-marquee > .tp-bulbs::after { content: ''; right: 0; opacity: 0;
    background: var(--lit) 0 0 / var(--bp) var(--bh) repeat-x, var(--lit) 0 100% / var(--bp) var(--bh) repeat-x; }
@keyframes tp-bulb-chase { to { transform: translateX(calc(var(--bp) * -2)); } }
.seat-turn .tp-marquee > .tp-bulbs > s { animation-duration: .3s; }
.tp-marquee > .tp-mq-sparks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tp-marquee > .tp-mq-sparks > i { position: absolute; left: var(--sx); top: var(--sy); width: 4px; height: 4px; margin: -2px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 25%, #ffd85a 55%, rgba(255,196,64,0) 75%); }
.tp-marquee.tp-flare > .tp-bulbs::after { animation: tp-mq-blaze 1.5s linear 1; }
.tp-marquee.tp-flare > .tp-board { animation: tp-mq-board 1.5s ease-out 1; }
.tp-marquee.tp-flare > .tp-mq-sparks > i { animation: tp-dust .85s cubic-bezier(.2,.7,.3,1) 1; animation-delay: var(--dl, 0s); }
@keyframes tp-mq-blaze { 0%, 18%, 36%, 54% { opacity: 1; } 9%, 27%, 45% { opacity: .15; } 100% { opacity: 0; } }
@keyframes tp-mq-board { 0% { filter: none; } 20% { filter: brightness(1.12) drop-shadow(0 0 4px rgba(255,236,170,.95)); } 100% { filter: none; } }
html.calm-flash .tp-marquee > .tp-bulbs > s, html.calm-flash .seat-turn .tp-marquee > .tp-bulbs > s { animation: none; }
html.calm-flash .tp-marquee.tp-flare > .tp-bulbs::after { animation: tp-mq-swell 1.5s ease-in-out 1; }
@keyframes tp-mq-swell { 0%, 100% { opacity: 0; } 45% { opacity: .7; } }
html.calm-flash .tp-marquee > .tp-mq-sparks, html.gfx-low .tp-marquee > .tp-mq-sparks { display: none; }
.tp-marquee.ins-compact { --bh: 3.5px; --bp: 5.5px; padding: 0 8px; font-size: 9.5px; letter-spacing: .07em; }
.tp-marquee.ins-compact > .tp-board { left: 3.5px; right: 3.5px; }
/* Fortune's Reel (Mythic, reacts big_win): the payline of a slot cabinet - a chrome bezel, a jewel lamp at each end (red
   and amber, winking in turn: the cabinet's attract mode) and, in the window, the title on an ivory reel strip, the curve
   of the drum shading its top and bottom edges (::before) with the red payline pointers either side. A glint crosses the
   chrome now and then. Win 10x or more and it pays: every letter spins out like a reel and lands back one by one with the
   reels' ticks and a clunk at each stop, the lamps race, the window floods gold and coins jump off it (.tp-coins), then
   the jackpot bell (synth sound plate_reel; public: the round's result). Reduce flashing: the lamps glow steady and the
   letters roll once, slowly; low graphics: no coins. */
.tp-fortunes_reel { border-radius: 4px; padding: 0 17px; color: #7a0c0c; border: 0; overflow: visible; font-weight: 900;
    background: linear-gradient(180deg, #fafafa, #b4b4bb 26%, #5b5b63 50%, #d8d8de 74%, #7a7a83);
    box-shadow: inset 0 0 0 .7px rgba(255,255,255,.7), 0 0 0 1px #141416, 0 2px 4px rgba(0,0,0,.6), 0 0 9px rgba(245,158,11,.3); }
.tp-fortunes_reel > i { display: none; }
.tp-fortunes_reel > b { text-shadow: 0 .6px 0 rgba(255,255,255,.7); clip-path: inset(0 -2px); }
.tp-fortunes_reel > .tp-window { position: absolute; left: 11px; right: 11px; top: 3px; bottom: 3px; z-index: 1; border-radius: 2px; overflow: hidden; pointer-events: none;
    background: linear-gradient(90deg, transparent 0 3px, transparent calc(100% - 3px)),
        repeating-linear-gradient(180deg, rgba(120,90,40,.06) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #e9e2cf, #fffdf4 40%, #fffdf4 60%, #e9e2cf);
    box-shadow: inset 0 0 0 1px #2a2a2f, inset 0 0 0 1.6px rgba(255,255,255,.3); }
.tp-fortunes_reel > .tp-window::after { content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(80% 140% at 50% 50%, rgba(255,226,120,.95), rgba(245,158,11,.5) 60%, transparent); }
.tp-fortunes_reel::before { content: ''; position: absolute; left: 11px; right: 11px; top: 3px; bottom: 3px; z-index: 3; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, #dc2626 0 0) 0 50% / 3px 1.4px no-repeat, linear-gradient(90deg, #dc2626 0 0) 100% 50% / 3px 1.4px no-repeat,
        linear-gradient(180deg, rgba(20,10,0,.55), rgba(20,10,0,0) 34%, rgba(20,10,0,0) 66%, rgba(20,10,0,.55)); }
.tp-fortunes_reel > .tp-lamp { position: absolute; top: 50%; z-index: 2; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 38% 32%, #fff 0 .8px, #ff6b6b 1.6px, #a10f0f 3px); box-shadow: 0 0 0 .8px #3f3f46, 0 0 4px rgba(255,80,80,.7);
    animation: tp-lamp 1.6s steps(1) infinite; }
.tp-fortunes_reel > .tp-lamp.l { left: 3px; } .tp-fortunes_reel > .tp-lamp.r { right: 3px; animation-delay: -.8s;
    background: radial-gradient(circle at 38% 32%, #fff 0 .8px, #ffc94a 1.6px, #a85d00 3px); box-shadow: 0 0 0 .8px #3f3f46, 0 0 4px rgba(255,190,60,.7); }
@keyframes tp-lamp { 0% { opacity: 1; } 50% { opacity: .45; } }
.tp-fortunes_reel > .tp-coins { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; }
.tp-fortunes_reel > .tp-coins > i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle at 38% 32%, #fff7d6 0 .8px, #f2cf6b 1.6px, #a8741a 3px); box-shadow: 0 0 0 .5px #6b4410; }
.tp-fortunes_reel.tp-spin > .tp-lamp { animation-duration: .24s; }
.tp-fortunes_reel.tp-spin > .tp-window::after { animation: tp-reel-pay var(--pay, 2s) ease-out 1; }
.tp-fortunes_reel.tp-spin > .tp-coins > i { animation: tp-dust 1s cubic-bezier(.2,.7,.3,1) 1; animation-delay: calc(var(--pay, 2s) - .55s + var(--dl, 0s)); }
@keyframes tp-reel-pay { 0%, 62% { opacity: 0; } 72% { opacity: .9; } 100% { opacity: 0; } }
.tp-l { display: inline-block; }
.tp-spin .tp-l { animation: tp-reel .14s linear var(--n, 6); }
@keyframes tp-reel { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-110%); opacity: 0; } 50% { transform: translateY(110%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
html.calm-flash .tp-fortunes_reel > .tp-lamp, html.calm-flash .tp-fortunes_reel.tp-spin > .tp-lamp { animation: none; }
html.calm-flash .tp-fortunes_reel.tp-spin > .tp-window::after { animation-name: tp-reel-pay-calm; }
@keyframes tp-reel-pay-calm { 0%, 50%, 100% { opacity: 0; } 75% { opacity: .35; } }
html.gfx-low .tp-fortunes_reel > .tp-coins { display: none; }
.tp-fortunes_reel.ins-compact { padding: 0 11px; }
.tp-fortunes_reel.ins-compact > .tp-window, .tp-fortunes_reel.ins-compact::before { left: 8px; right: 8px; top: 2px; bottom: 2px; }
.tp-fortunes_reel.ins-compact > .tp-lamp { width: 4px; height: 4px; margin-top: -2px; }
.tp-fortunes_reel.ins-compact > .tp-lamp.l { left: 2px; } .tp-fortunes_reel.ins-compact > .tp-lamp.r { right: 2px; }
/* Founder's Plate (the beta's honour, reacts big_win): a strip of laid parchment - the chain lines and fibres of the paper,
   foxed warm at its edges, a gold-leaf rule inside the edge - sealed at its left end with a blob of red wax pressed with
   the house rook (its edge uneven as poured wax is, a raised rim) over two ribbon tails; the title in sepia ink. On a
   10x+ win the seal glints. */
.tp-founder { border-radius: 2px; padding: 0 12px 0 4px; color: #3a1c06; border: 0;
    background: repeating-linear-gradient(90deg, rgba(120,80,20,.07) 0 .6px, transparent .6px 7px),
        repeating-linear-gradient(3deg, rgba(255,255,255,.14) 0 .6px, transparent .6px 2.4px),
        radial-gradient(120% 170% at 62% 30%, #fcf5df, #eedcac 58%, #d6b778);
    box-shadow: inset 0 0 0 1.4px rgba(255,250,235,.55), inset 0 0 0 2px rgba(178,128,36,.8), inset 0 0 8px rgba(130,80,15,.45), 0 1px 2px rgba(0,0,0,.6); }
.tp-founder > b { text-shadow: 0 .5px 0 rgba(255,250,230,.7); }
.tp-founder::before { content: ''; position: absolute; left: 6px; top: 55%; width: 14px; height: 12px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #7a0f14, #b3242b 45%, #7a0f14);
    clip-path: polygon(10% 0, 46% 0, 34% 100%, 22% 82%, 6% 100%, 0 0, 54% 0, 100% 0, 94% 100%, 78% 82%, 66% 100%, 54% 0); }
.tp-founder > i { position: relative; z-index: 2; width: 19px; height: 19px; color: #f2cf6b; font-size: 10px;
    border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
    background: radial-gradient(circle at 40% 35%, #d23a40, #8e1218 55%, #520609);
    box-shadow: inset 0 0 0 1.6px rgba(255,140,140,.22), inset 0 0 0 2.6px rgba(90,6,10,.8), inset 0 -1px 2px rgba(0,0,0,.6), 0 1px 1.5px rgba(0,0,0,.6), 1px 0 0 #6d0b10; }
.tp-founder.ins-compact { padding: 0 8px 0 2px; }
.tp-founder.ins-compact::before { left: 3px; width: 10px; height: 8px; }
.tp-founder.ins-compact > i { display: grid; width: 13px; height: 13px; font-size: 7.5px; }
.tp-founder > i > svg { width: 64%; height: 64%; filter: drop-shadow(0 -.5px 0 rgba(0,0,0,.5)) drop-shadow(0 .5px 0 rgba(255,190,190,.35)); }
/* Mother of Pearl (Epic; was Emerald Sheen): the inlay of the old gaming counters - a plaque of nacre, its growth lines
   ruled fine across it and its colours pooled pink, mint and lavender, set in an ebony frame with a silver hairline; the
   title inlaid in ebony. The lustre moves: a band of iridescence drifts slowly back and forth across the shell
   (.tp-nacre, one transform) and a soft light passes over it now and then (::after). */
.tp-pearl { border-radius: 3px; padding: 0 12px; color: #18121e; border: 1.5px solid #120f16;
    background: repeating-linear-gradient(101deg, rgba(255,255,255,0) 0 2.4px, rgba(255,255,255,.5) 2.4px 3px, rgba(110,90,140,.1) 3px 4.6px),
        radial-gradient(55% 130% at 16% 35%, rgba(255,198,222,.8), transparent 70%),
        radial-gradient(50% 120% at 80% 72%, rgba(170,232,216,.8), transparent 70%),
        radial-gradient(45% 100% at 52% 0%, rgba(196,202,255,.75), transparent 70%),
        linear-gradient(180deg, #fbf7f1, #e8e0ea 55%, #d3cadb);
    box-shadow: inset 0 0 0 .6px #8d84a0, inset 0 0 0 1.4px rgba(255,255,255,.75), inset 0 -2px 3px rgba(80,60,100,.3), 0 1px 3px rgba(0,0,0,.65); }
.tp-pearl > i { color: #f6f1fa; background: radial-gradient(circle at 40% 35%, #3a3342, #120f16 70%); box-shadow: inset 0 0 0 .8px #8d84a0; }
.tp-pearl > b { text-shadow: 0 .7px 0 rgba(255,255,255,.8), 0 -.3px 0 rgba(0,0,0,.25); }
.tp-pearl > .tp-nacre { position: absolute; top: 0; bottom: 0; left: -100%; width: 300%; z-index: 1; pointer-events: none; opacity: .6;
    background: linear-gradient(100deg, transparent 0%, rgba(255,160,205,.65) 11%, rgba(160,240,222,.65) 20%, rgba(180,180,255,.65) 29%, rgba(255,226,160,.55) 38%,
        transparent 50%, rgba(160,240,222,.55) 62%, rgba(255,160,205,.55) 74%, rgba(190,190,255,.5) 84%, transparent 96%);
    animation: tp-nacre 9s ease-in-out infinite alternate; }
@keyframes tp-nacre { from { transform: translateX(-14%); } to { transform: translateX(26%); } }
.tp-pearl::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.7), transparent); animation: tp-glint 7s ease-in-out infinite; }
.tp-pearl.ins-compact { padding: 0 7px; border-width: 1px; }
/* Imperial Enamel (Legendary, reacts win; was Imperial Gold): the court jeweller's work - translucent cobalt enamel fired
   over engine-turned silver (the guilloché: a sunburst of fine rays and rings cut into the metal shows through the glass),
   set in a gold bezel with a rose-cut diamond in a gold collet at each end; the title in gold leaf. Light moves over the
   enamel (.tp-sheen > s, one transform) and the stones twinkle (.tp-twinkle). Win a round and light blooms out of the
   centre across the engine-turning, the diamonds blaze and sparks of white and gold fly off the bezel (.tp-burst) to a
   crystal chime (synth sound plate_enamel). Reduce flashing: one soft swell of light; low graphics: no twinkle or sparks. */
.tp-enamel { border-radius: 999px; padding: 0 18px; color: #fde9a6; border: 0; overflow: visible;
    background: repeating-conic-gradient(from 0deg at 50% 58%, rgba(255,255,255,.1) 0 1.5deg, rgba(0,8,40,.16) 1.5deg 3deg),
        repeating-radial-gradient(ellipse at 50% 58%, rgba(255,255,255,0) 0 3px, rgba(255,255,255,.08) 3px 4px),
        radial-gradient(110% 150% at 50% 35%, #3d70f2, #1d46ba 40%, #0d2672 75%, #071a52);
    box-shadow: inset 0 0 0 1px #3a2504, inset 0 0 0 2.2px #f2cf6b, inset 0 0 0 2.8px #8a5a12, inset 0 3px 4px rgba(255,255,255,.16),
        inset 0 -3px 5px rgba(0,0,30,.5), 0 0 0 .6px #2a1a04, 0 2px 4px rgba(0,0,0,.6), 0 0 10px rgba(80,130,255,.35); }
.tp-enamel > i { display: none; }
.tp-enamel > b { background-image: linear-gradient(180deg, #fff7d6, #f2cf6b 45%, #b8862a 58%, #f7dc8a); -webkit-background-clip: text; background-clip: text;
    color: transparent; filter: drop-shadow(0 1px 0 rgba(4,12,40,.95)); }
.tp-enamel::before, .tp-enamel::after { content: ''; position: absolute; top: 50%; z-index: 2; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 20deg, #fff, #c7d2fe 12%, #fff 25%, #8ea2f8 37%, #fff 50%, #dfe6ff 62%, #fff 75%, #a9b8fb 87%, #fff);
    box-shadow: 0 0 0 1px #f2cf6b, 0 0 0 1.6px #6b4a12, 0 0 4px rgba(220,230,255,.8); }
.tp-enamel::before { left: 5px; } .tp-enamel::after { right: 5px; }
.tp-enamel > .tp-sheen { position: absolute; inset: 3px; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tp-enamel > .tp-sheen > s { position: absolute; top: -30%; bottom: -30%; left: 0; width: 45%; opacity: .55;
    background: radial-gradient(50% 50% at 50% 50%, rgba(220,232,255,.75), rgba(160,190,255,.25) 55%, transparent);
    animation: tp-sheen 6s ease-in-out infinite alternate; }
@keyframes tp-sheen { from { transform: translateX(-30%); } to { transform: translateX(180%); } }
.tp-enamel > .tp-sheen::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(255,255,255,.95), rgba(190,210,255,.6) 40%, transparent 70%); }
.tp-enamel > .tp-twinkle, .tp-enamel > .tp-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tp-enamel > .tp-twinkle > i { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; opacity: 0; background: #fff;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    animation: ins-twinkle var(--d, 2.6s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.tp-enamel > .tp-burst > i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 30%, #c7d2fe 55%, rgba(199,210,254,0) 75%); }
.tp-enamel > .tp-burst > i:nth-child(3n) { background: radial-gradient(circle, #fffbe8 0 30%, #f2cf6b 60%, rgba(242,207,107,0) 72%); }
.tp-enamel.tp-flare > .tp-sheen::after { animation: tp-enamel-bloom 1.3s ease-out 1; }
.tp-enamel.tp-flare::before, .tp-enamel.tp-flare::after { animation: tp-enamel-stone 1.3s ease-out 1; }
.tp-enamel.tp-flare > .tp-burst > i { animation: tp-dust .9s cubic-bezier(.2,.7,.3,1) 1; animation-delay: calc(.15s + var(--dl, 0s)); }
@keyframes tp-enamel-bloom { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(9); } }
@keyframes tp-enamel-stone { 15%, 40% { filter: brightness(1.5); box-shadow: 0 0 0 1px #fff7d6, 0 0 0 1.6px #6b4a12, 0 0 9px #fff; } }
html.calm-flash .tp-enamel.tp-flare > .tp-sheen::after { animation: tp-enamel-calm 1.3s ease-in-out 1; }
@keyframes tp-enamel-calm { 0%, 100% { opacity: 0; transform: scale(6); } 50% { opacity: .3; transform: scale(6); } }
html.calm-flash .tp-enamel.tp-flare::before, html.calm-flash .tp-enamel.tp-flare::after { animation: none; }
html.calm-flash .tp-enamel > .tp-burst, html.gfx-low .tp-enamel > .tp-burst, html.gfx-low .tp-enamel > .tp-twinkle { display: none; }
.tp-enamel.ins-compact { padding: 0 12px; box-shadow: inset 0 0 0 .7px #3a2504, inset 0 0 0 1.6px #f2cf6b, inset 0 0 0 2.1px #8a5a12, 0 1px 3px rgba(0,0,0,.6), 0 0 7px rgba(80,130,255,.35); }
.tp-enamel.ins-compact::before, .tp-enamel.ins-compact::after { width: 5px; height: 5px; margin-top: -2.5px; }
.tp-enamel.ins-compact::before { left: 3px; } .tp-enamel.ins-compact::after { right: 3px; }
.tp-enamel.ins-compact > .tp-sheen { inset: 2px; }
/* Epitaph (Grim's Manor, Epic, motion flicker; static/js/manor_art.js): the title carved into an old slate headstone - a
   slate tablet with rounded shoulders, its grain, a hairline crack at the top and a keyline cut round its face, moss
   creeping in at three corners; the letters cut deep and filled with bone-white lime (a dark upper wall, a lit lower lip),
   a raven's feather carved into the stone at the left (.tp-ep-fe, where another plate keeps its icon: a 24 px plate has no
   room above its letters) and an ivory candle standing at the right end (.tp-ep-cd), its flame dancing (.tp-ep-fl) and its
   warm light (.tp-ep-lit, a pool anchored on the flame) flickering across the stone in steps. Reduce flashing: the light
   breathes slowly instead. Calm motion: still (every plate holds still). Low graphics: no pool of light, no glow. The seat
   (compact) form keeps the stone, the moss and the candle, and drops the feather. */
.ins-plate.tp-epitaph { border: 0; border-radius: 10px 10px 3px 3px / 8px 8px 3px 3px; padding: 0 21px 0 5px; gap: 5px; letter-spacing: .12em; color: #efe6d2;
    background:
        radial-gradient(11px 8px at 0 100%, rgba(104,126,72,.95) 0 30%, rgba(75,90,60,.55) 62%, transparent 100%),
        radial-gradient(7px 5px at 0 0, rgba(104,126,72,.75) 0 28%, rgba(75,90,60,.35) 60%, transparent 100%),
        radial-gradient(10px 6px at 100% 100%, rgba(104,126,72,.8) 0 28%, rgba(75,90,60,.4) 60%, transparent 100%),
        radial-gradient(circle, rgba(132,156,88,.9) 0 .7px, transparent 1.1px) 9px calc(100% - 3px) / 3px 3px no-repeat,
        radial-gradient(circle, rgba(132,156,88,.8) 0 .6px, transparent 1px) 3px 5px / 3px 3px no-repeat,
        radial-gradient(circle at 30% 40%, rgba(255,255,255,.07) 0 .5px, transparent .9px) 0 0 / 3px 3px,
        radial-gradient(circle at 70% 60%, rgba(0,0,0,.28) 0 .6px, transparent 1px) 1px 1px / 4px 5px,
        linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.05) 45%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #4b515e 0%, #353a45 32%, #272b34 70%, #1a1d24 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 2.2px rgba(255,255,255,.07),
        inset 0 0 0 2.9px rgba(0,0,0,.38), inset 0 -3px 5px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.8); }
.ins-plate.tp-epitaph::after { content: ''; position: absolute; right: 17px; top: 0; width: 10px; height: 10px; z-index: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M8.6 0L7 2.6L7.8 4.4L5.2 6.6L4.6 9.2M7.8 4.4L9.6 5.6' fill='none' stroke='%23060709' stroke-width='.75' stroke-linecap='round'/%3E%3Cpath d='M9 .3L7.4 2.9L8.2 4.7L5.6 6.9' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='.4'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.tp-epitaph > i { display: none; }
.tp-epitaph > b { color: #efe6d2; text-shadow: 0 -1px 0 rgba(4,5,7,.95), 0 1px 0 rgba(233,222,198,.25), 0 0 5px rgba(244,163,64,.18); }
.tp-ep-fe { position: relative; z-index: 2; order: -1; flex: none; width: 13px; height: 19px; pointer-events: none; }
.tp-ep-fe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tp-ep-lit { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(80% 170% at calc(100% - 11px) 40%, rgba(255,214,150,.32), rgba(244,163,64,.15) 38%, rgba(244,163,64,0) 74%);
    animation: tp-ep-lit 2.8s steps(1) infinite; }
@keyframes tp-ep-lit { 0%, 100% { opacity: 1; } 12% { opacity: .76; } 15% { opacity: .95; } 38% { opacity: .68; } 41% { opacity: 1; }
    63% { opacity: .84; } 66% { opacity: .6; } 69% { opacity: .97; } 86% { opacity: .8; } 89% { opacity: 1; } }
.tp-ep-cd { position: absolute; right: 7px; bottom: 3px; z-index: 3; width: 5px; height: 9px; pointer-events: none; border-radius: 1.2px 1.2px .5px .5px;
    background: linear-gradient(90deg, #a99d82, #fff9ec 35%, #efe6d2 65%, #8f846c); box-shadow: 0 1px 1px rgba(0,0,0,.6); }
.tp-ep-cd::before { content: ''; position: absolute; left: .8px; top: 0; width: 1.3px; height: 3.6px; border-radius: 0 0 1px 1px; background: #fffaf0; }
.tp-ep-cd::after { content: ''; position: absolute; left: 50%; top: -1.6px; width: .9px; height: 2px; margin-left: -.45px; background: #2a2018; }
.tp-ep-fl { position: absolute; left: 50%; bottom: calc(100% + 1px); width: 5px; height: 8px; margin-left: -2.5px; transform-origin: 50% 100%;
    border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
    background: radial-gradient(60% 45% at 50% 74%, #fffef4 0 32%, #ffe3a1 55%, #f4a340 82%, #b25a14 100%);
    filter: drop-shadow(0 0 2px rgba(244,163,64,.9)); animation: tp-ep-fl 1.3s ease-in-out infinite; }
@keyframes tp-ep-fl { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.86, 1.14) skewX(5deg); } 50% { transform: scale(1.06, .92); } 75% { transform: scale(.9, 1.1) skewX(-5deg); } }
html.calm-flash .tp-ep-lit { animation: tp-ep-breathe 4.2s ease-in-out infinite; }
@keyframes tp-ep-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .8; } }
html.gfx-low .tp-ep-lit { display: none; }
html.gfx-low .tp-ep-fl { filter: none; }
.ins-plate.tp-epitaph.ins-compact { padding: 0 15px 0 7px; border-radius: 7px 7px 2px 2px / 6px 6px 2px 2px; letter-spacing: .1em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 1.8px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.8); }
.tp-epitaph.ins-compact > .tp-ep-fe { display: none; }
.tp-epitaph.ins-compact::after { right: 12px; width: 7px; height: 7px; }
.tp-epitaph.ins-compact > .tp-ep-cd { right: 4px; bottom: 2px; width: 4px; height: 7px; }
.tp-epitaph.ins-compact .tp-ep-fl { width: 4px; height: 6px; margin-left: -2px; }
.tp-epitaph.ins-compact > .tp-ep-lit { background: radial-gradient(80% 170% at calc(100% - 6px) 40%, rgba(255,214,150,.3), rgba(244,163,64,.13) 38%, rgba(244,163,64,0) 74%); }
/* Tabula Ansata (Mythic, the Fortuna set, reacts big_win; static/js/fortuna_art.js): a Roman dedication tablet. The
   tablet's outline (a panel with a dovetail handle - ansa - at each end, --ta-clip) is cut in Carrara marble (.tp-ta-fr:
   warm veining, a darker moulding round its edge, a gilt bronze nail in each handle), with a hard shadow under it
   (.tp-ta-sh); the panel is sunk into it in polished porphyry (its white flecks, a gilt fillet round it) and the title is
   carved in Trajan capitals (FortunaArt.capitals: V for U, words parted by interpuncts), the old gilding in the cuts worn
   to antique gold. Light moves slowly over the polished stone (.tp-ta-sn, motion "polish"). On a 10x+ win (.tp-gild,
   Insignia.celebrate) fresh gold leaf is laid into the letters one by one - each wiped in from the left with a glint
   where the gilder's tip touches - the tablet glows, holds, and the leaf settles back into the old gilding (sound
   plate_tabula). Reduce flashing: the leaf is laid the same, with no glints and no glow; calm motion: still, no moment;
   low graphics: no light over the stone, no glints. */
.ins-plate.tp-tabula_ansata { --ta-e: 10px; --ta-f: 3px; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0 calc(var(--ta-e) + 10px);
    font-weight: 700; font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
    --ta-clip: polygon(var(--ta-e) 0, calc(100% - var(--ta-e)) 0, calc(100% - var(--ta-e)) 29%, 100% 0, 100% 100%, calc(100% - var(--ta-e)) 71%,
        calc(100% - var(--ta-e)) 100%, var(--ta-e) 100%, var(--ta-e) 71%, 0 100%, 0 0, var(--ta-e) 29%); }
.tp-tabula_ansata > i { display: none; }
.tp-tabula_ansata > b { z-index: 3; color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(180deg, #d9c08a 0%, #b38a4a 45%, #7e5a24 60%, #9c7840 100%);
    filter: drop-shadow(0 -.6px 0 rgba(18,2,7,.95)) drop-shadow(0 .6px 0 rgba(255,214,196,.3)); }
.tp-ta-sh, .tp-ta-fr, .tp-ta-sn { position: absolute; inset: 0; pointer-events: none; clip-path: var(--ta-clip); }
.tp-ta-sh { z-index: 0; transform: translateY(1.5px); background: rgba(8,2,4,.6); }
.tp-ta-fr { z-index: 1; background: linear-gradient(180deg, #c8b89c, #9c8a6e); }
.tp-ta-fr::before, .tp-ta-fr::after { content: ''; position: absolute; pointer-events: none; }
/* the marble: veins running through it at odd angles, a top light, a gilt bronze nail in each handle */
.tp-ta-fr::before { inset: 1px; clip-path: var(--ta-clip);
    background: radial-gradient(circle at calc(var(--ta-e) * .42 + 1px) 50%, #fff6d6 0 .5px, #e7c372 1px, #a8741c 1.7px, #4a2e08 2.3px, transparent 2.7px),
        radial-gradient(circle at calc(100% - var(--ta-e) * .42 - 1px) 50%, #fff6d6 0 .5px, #e7c372 1px, #a8741c 1.7px, #4a2e08 2.3px, transparent 2.7px),
        linear-gradient(103deg, transparent 6%, rgba(150,128,98,.6) 6.5%, transparent 7.6%, transparent 31%, rgba(150,128,98,.35) 31.4%, transparent 32.2%,
            transparent 67%, rgba(150,128,98,.5) 67.5%, transparent 68.4%, transparent 93%, rgba(150,128,98,.55) 93.5%, transparent 94.6%),
        linear-gradient(71deg, transparent 15%, rgba(170,146,114,.4) 15.5%, transparent 16.6%, transparent 48%, rgba(170,146,114,.45) 48.4%, transparent 49.4%,
            transparent 82%, rgba(170,146,114,.4) 82.4%, transparent 83.3%),
        linear-gradient(180deg, #fffdf8 0%, #f6f1e7 40%, #e9e0cf 75%, #d8ccb6 100%); }
/* the porphyry panel sunk into the marble, with its gilt fillet and the shadow of its sinking */
.tp-ta-fr::after { left: calc(var(--ta-e) + var(--ta-f)); right: calc(var(--ta-e) + var(--ta-f)); top: var(--ta-f); bottom: var(--ta-f);
    background: radial-gradient(circle, rgba(243,230,224,.42) 0 .4px, transparent .8px) 2px 2px / 13px 9px,
        radial-gradient(circle, rgba(243,230,224,.22) 0 .35px, transparent .75px) 7px 5px / 19px 11px,
        radial-gradient(circle, rgba(20,3,8,.5) 0 .5px, transparent .95px) 4px 6px / 16px 13px,
        radial-gradient(100% 160% at 34% 12%, #8e2c44, #6a1f33 40%, #4a1426 72%, #2e0a16);
    box-shadow: 0 0 0 .8px #b8862e, 0 0 0 1.3px rgba(70,44,8,.8), inset 0 1.5px 2px rgba(10,1,4,.8), inset 0 -1px 0 rgba(255,220,200,.12); }
/* the light moving over the polished stone (a soft band, slowly, now and then) */
.tp-ta-sn { z-index: 4; overflow: hidden; }
.tp-ta-sn > s { position: absolute; top: 0; bottom: 0; left: -34%; width: 30%; text-decoration: none;
    background: linear-gradient(100deg, rgba(255,250,236,0) 10%, rgba(255,250,236,.16) 42%, rgba(255,250,236,.3) 50%, rgba(255,250,236,.16) 58%, rgba(255,250,236,0) 90%);
    animation: tp-ta-polish 11s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes tp-ta-polish { 0%, 30% { transform: translateX(0); } 100% { transform: translateX(470%); } }
/* the glow round the tablet (still, faint; it swells as the leaf is laid) */
.tp-tabula_ansata::before { content: ''; position: absolute; inset: -9px -8px; z-index: 0; pointer-events: none; opacity: .3;
    background: radial-gradient(closest-side, rgba(242,211,138,.7), rgba(212,166,74,.28) 70%, transparent); }
/* the moment: each letter's fresh leaf (::after, the same letter in bright gold) is wiped in from the left at --d, a glint
   where it lands (::before), and all of it settles back into the old gilding at --end */
.tp-ta-l { position: relative; display: inline-block; }
.tp-ta-l::after { content: attr(data-c); position: absolute; left: 0; top: 0; color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(180deg, #fffbe8 0%, #fff0b8 22%, #f2d38a 44%, #d9a440 58%, #fbe39a 78%, #e7b955 100%);
    clip-path: inset(-20% 100% -20% 0); }
.tp-ta-l::before { content: ''; position: absolute; left: 0; top: 8%; z-index: 1; width: 7px; height: 7px; margin-left: -3.5px; opacity: 0; pointer-events: none;
    background: radial-gradient(circle, #fff 0 14%, #fff2c2 26%, rgba(242,211,138,.5) 46%, transparent 66%);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.tp-gild .tp-ta-l::after { animation: tp-ta-lay .34s cubic-bezier(.3,.1,.3,1) var(--d) 1 both, tp-ta-settle .9s ease-in var(--end) 1 forwards; }
.tp-gild .tp-ta-l::before { animation: tp-ta-glint .42s ease-out var(--d) 1; }
.tp-tabula_ansata.tp-gild::before { animation: tp-ta-glow var(--all) ease-in-out 1; }
/* ...and the light runs along the tablet with the gilder, once */
.tp-gild .tp-ta-sn > s { animation: tp-ta-follow var(--end) linear 1; }
@keyframes tp-ta-follow { 0%, 8% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(400%); opacity: 1; } 100% { transform: translateX(470%); opacity: 0; } }
@keyframes tp-ta-lay { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -10% -20% 0); } }
@keyframes tp-ta-settle { from { opacity: 1; } to { opacity: 0; } }
@keyframes tp-ta-glint { 0% { opacity: 0; transform: translateX(0) scale(.4); } 30% { opacity: 1; transform: translateX(.35em) scale(1.15); } 100% { opacity: 0; transform: translateX(.8em) scale(.5) rotate(45deg); } }
@keyframes tp-ta-glow { 0% { opacity: .35; } 30%, 70% { opacity: 1; } 100% { opacity: .35; } }
html.calm-flash .tp-ta-l::before { display: none; }
html.calm-flash .tp-tabula_ansata.tp-gild::before { animation: none; }
html.gfx-low .tp-ta-sn, html.gfx-low .tp-ta-l::before { display: none; }
html.gfx-low .tp-tabula_ansata::before { opacity: 0; animation: none !important; }
.ins-plate.tp-tabula_ansata.ins-compact { --ta-e: 7px; --ta-f: 2px; padding: 0 calc(var(--ta-e) + 6px); border-radius: 0; font-size: 8.5px; letter-spacing: .12em; }
.tp-tabula_ansata.ins-compact .tp-ta-sh { transform: translateY(1px); }
.tp-tabula_ansata.ins-compact .tp-ta-l::before { width: 5px; height: 5px; margin-left: -2.5px; }
/* Every plate holds still under calm motion (its loops and its moments). */
html.calm-motion .ins-plate *, html.calm-motion .ins-plate *::before, html.calm-motion .ins-plate *::after { animation: none !important; }
/* Baily's Beads (Mythic, Totality): the title rides across a black sun in an umbral sky. ::before is the sun and its
   inner corona (a pearly core under ragged petals of uneven length, built by corona() below, turning once a minute);
   .tp-sun holds the outer plumes (turning the other way, slower, carrying two crimson prominences on the rim), the moon
   (a black disc on a razor white-gold rim), the beads of light chasing round its rim and the diamond ring. On a 10x+ win
   (.tp-bared, Insignia.celebrate) the beads gather, the diamond ring flares across the plate, the moon slips off and
   the bared sun floods the plate, then the moon slides back. Reduce flashing: the moon drifts a third off and back and
   the ring only glows; low graphics: the sun, the moon and its rim. */
.tp-bailys_beads { --eS: 21px; --eC: 88px; border-radius: 5px; padding: 0 16px; border: 1px solid transparent; color: #fff3c4;
    background: radial-gradient(circle, rgba(226,232,240,.85) 0 .5px, transparent 1px) 7px 4px / 37px 19px padding-box,
        radial-gradient(circle, rgba(196,181,253,.6) 0 .45px, transparent .9px) 21px 13px / 53px 17px padding-box,
        radial-gradient(55% 150% at 50% 50%, rgba(124,45,18,.38), transparent 72%) padding-box,
        linear-gradient(180deg, #120a1f, #05030a 55%, #0b0716) padding-box,
        linear-gradient(90deg, #1a0b04, #7c2d12 12%, #f59e0b 28%, #fde68a 40%, #fffdf2 50%, #fde68a 60%, #f59e0b 72%, #7c2d12 88%, #1a0b04) border-box;
    box-shadow: inset 0 1px 0 rgba(255,247,214,.18), inset 0 0 7px rgba(0,0,0,.95), 0 0 10px rgba(245,158,11,.38), 0 0 2px rgba(253,230,138,.55); }
.tp-bailys_beads > i { display: none; }
.tp-bailys_beads > b { font-weight: 900; letter-spacing: .1em;
    background: linear-gradient(180deg, #fffdf2 0%, #fff7d6 32%, #fde68a 60%, #f5b53d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 1px rgba(0,0,0,.95)) drop-shadow(0 0 4px rgba(253,230,138,.4)); }
.tp-bailys_beads::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: 0; border-radius: 50%; pointer-events: none;
    width: var(--eC); height: var(--eC); margin: calc(var(--eC) / -2) 0 0 calc(var(--eC) / -2);
    background: radial-gradient(circle, #fffdf2 0 calc(var(--eS) / 2 - 1px), #fde68a calc(var(--eS) / 2 + .5px), rgba(255,247,214,.85) calc(var(--eS) / 2 + 1.5px),
            rgba(245,158,11,.42) calc(var(--eS) / 2 + 5px), transparent calc(var(--eS) / 2 + 13px)),
        conic-gradient(from 289deg, transparent 14.2deg, rgba(255,247,214,0.97) 18.9deg, transparent 23.5deg, transparent 39.1deg, rgba(255,247,214,0.93) 44.0deg, transparent 48.9deg, transparent 61.6deg, rgba(255,247,214,0.99) 66.8deg, transparent 72.1deg, transparent 85.5deg, rgba(255,247,214,0.41) 90.4deg, transparent 95.3deg, transparent 127.6deg, rgba(255,247,214,0.88) 132.8deg, transparent 138.1deg, transparent 150.2deg, rgba(255,247,214,0.43) 155.5deg, transparent 160.8deg, transparent 179.2deg, rgba(255,247,214,0.68) 184.5deg, transparent 189.8deg, transparent 199.4deg, rgba(255,247,214,0.62) 204.3deg, transparent 209.2deg, transparent 226.9deg, rgba(255,247,214,0.77) 232.2deg, transparent 237.4deg, transparent 258.6deg, rgba(255,247,214,0.60) 263.8deg, transparent 269.1deg, transparent 283.2deg, rgba(255,247,214,0.72) 288.5deg, transparent 293.7deg, transparent 311.9deg, rgba(255,247,214,0.76) 317.1deg, transparent 322.4deg, transparent 336.4deg, rgba(255,247,214,0.51) 341.7deg, transparent 346.9deg), conic-gradient(from 135deg, transparent 12.1deg, rgba(180,83,9,0.59) 21.9deg, transparent 31.6deg, transparent 74.1deg, rgba(180,83,9,0.81) 83.8deg, transparent 93.6deg, transparent 122.8deg, rgba(180,83,9,0.76) 132.5deg, transparent 142.3deg, transparent 165.2deg, rgba(180,83,9,0.58) 174.9deg, transparent 184.7deg, transparent 235.9deg, rgba(180,83,9,0.41) 245.6deg, transparent 255.4deg, transparent 285.1deg, rgba(180,83,9,0.35) 294.9deg, transparent 304.6deg, transparent 339.3deg, rgba(180,83,9,0.55) 349.1deg, transparent 358.9deg);
    -webkit-mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 3px), rgba(0,0,0,.7) calc(var(--eS) / 2 + 9px), rgba(0,0,0,.28) 72%, transparent);
    mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 3px), rgba(0,0,0,.7) calc(var(--eS) / 2 + 9px), rgba(0,0,0,.28) 72%, transparent);
    animation: tp-corona 60s linear infinite; }
.tp-sun { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.tp-sun > s { position: absolute; left: 0; top: 0; border-radius: 50%; text-decoration: none; }
.tp-plumes { width: calc(var(--eC) * .9); height: calc(var(--eC) * .9); margin: calc(var(--eC) * -.45) 0 0 calc(var(--eC) * -.45);
    background: radial-gradient(circle at calc(50% + var(--eS) * .47) calc(50% - var(--eS) * .19), #fecaca 0 .5px, #ef4444 1px, rgba(220,38,38,.45) 1.7px, transparent 2.5px),
        radial-gradient(circle at calc(50% - var(--eS) * .3) calc(50% + var(--eS) * .41), #ef4444 0 .7px, rgba(220,38,38,.4) 1.3px, transparent 2px),
        conic-gradient(from 125deg, transparent 7.8deg, rgba(255,253,242,0.44) 13.4deg, transparent 18.9deg, transparent 42.8deg, rgba(255,253,242,0.35) 47.1deg, transparent 51.5deg, transparent 76.5deg, rgba(255,253,242,0.58) 79.8deg, transparent 83.1deg, transparent 115.7deg, rgba(255,253,242,0.74) 118.6deg, transparent 121.5deg, transparent 143.7deg, rgba(255,253,242,0.57) 148.0deg, transparent 152.2deg, transparent 174.8deg, rgba(255,253,242,0.42) 178.1deg, transparent 181.4deg, transparent 212.7deg, rgba(255,253,242,0.46) 215.7deg, transparent 218.8deg, transparent 233.8deg, rgba(255,253,242,0.61) 237.5deg, transparent 241.1deg, transparent 269.9deg, rgba(255,253,242,0.98) 273.7deg, transparent 277.5deg, transparent 298.1deg, rgba(255,253,242,0.46) 303.5deg, transparent 308.9deg, transparent 338.6deg, rgba(255,253,242,0.74) 344.8deg, transparent 351.0deg), conic-gradient(from 159deg, transparent 12.3deg, rgba(253,230,138,0.36) 20.9deg, transparent 29.4deg, transparent 58.5deg, rgba(253,230,138,0.59) 67.0deg, transparent 75.6deg, transparent 102.7deg, rgba(253,230,138,0.71) 111.3deg, transparent 119.8deg, transparent 142.7deg, rgba(253,230,138,0.51) 151.1deg, transparent 159.5deg, transparent 198.4deg, rgba(253,230,138,0.89) 207.0deg, transparent 215.5deg, transparent 231.2deg, rgba(253,230,138,0.52) 239.8deg, transparent 248.3deg, transparent 280.2deg, rgba(253,230,138,0.39) 288.8deg, transparent 297.3deg, transparent 334.7deg, rgba(253,230,138,0.84) 343.2deg, transparent 351.8deg);
    -webkit-mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 4px), rgba(0,0,0,.45) 45%, transparent);
    mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 4px), rgba(0,0,0,.45) 45%, transparent);
    animation: tp-corona 95s linear infinite reverse; }
.tp-petals { width: calc(var(--eC) * .62); height: calc(var(--eC) * .62); margin: calc(var(--eC) * -.31) 0 0 calc(var(--eC) * -.31);
    background: conic-gradient(from 226deg, transparent 15.5deg, rgba(245,158,11,0.83) 23.1deg, transparent 30.7deg, transparent 46.4deg, rgba(245,158,11,0.52) 54.0deg, transparent 61.6deg, transparent 83.7deg, rgba(245,158,11,0.80) 91.3deg, transparent 98.9deg, transparent 140.0deg, rgba(245,158,11,0.59) 147.6deg, transparent 155.2deg, transparent 165.8deg, rgba(245,158,11,1.00) 173.4deg, transparent 181.0deg, transparent 210.0deg, rgba(245,158,11,0.66) 217.6deg, transparent 225.2deg, transparent 252.4deg, rgba(245,158,11,0.42) 260.0deg, transparent 267.6deg, transparent 301.3deg, rgba(245,158,11,0.68) 308.9deg, transparent 316.5deg, transparent 339.2deg, rgba(245,158,11,0.36) 346.8deg, transparent 354.4deg), conic-gradient(from 353deg, transparent 10.3deg, rgba(253,230,138,0.83) 13.5deg, transparent 16.8deg, transparent 22.4deg, rgba(253,230,138,0.91) 25.7deg, transparent 29.0deg, transparent 41.2deg, rgba(253,230,138,0.74) 44.5deg, transparent 47.7deg, transparent 53.6deg, rgba(253,230,138,0.43) 56.9deg, transparent 60.2deg, transparent 78.8deg, rgba(253,230,138,0.80) 82.0deg, transparent 85.3deg, transparent 91.1deg, rgba(253,230,138,0.82) 94.4deg, transparent 97.6deg, transparent 113.3deg, rgba(253,230,138,0.64) 116.3deg, transparent 119.4deg, transparent 124.5deg, rgba(253,230,138,0.87) 127.8deg, transparent 131.1deg, transparent 145.2deg, rgba(253,230,138,0.37) 148.4deg, transparent 151.7deg, transparent 161.8deg, rgba(253,230,138,0.58) 165.1deg, transparent 168.3deg, transparent 177.3deg, rgba(253,230,138,0.56) 180.6deg, transparent 183.8deg, transparent 191.9deg, rgba(253,230,138,0.85) 195.2deg, transparent 198.4deg, transparent 214.0deg, rgba(253,230,138,0.93) 217.2deg, transparent 220.5deg, transparent 223.2deg, rgba(253,230,138,0.63) 226.4deg, transparent 229.7deg, transparent 246.1deg, rgba(253,230,138,0.85) 249.3deg, transparent 252.6deg, transparent 265.9deg, rgba(253,230,138,0.94) 269.1deg, transparent 272.4deg, transparent 277.2deg, rgba(253,230,138,0.78) 280.5deg, transparent 283.7deg, transparent 293.9deg, rgba(253,230,138,0.81) 297.2deg, transparent 300.5deg, transparent 316.8deg, rgba(253,230,138,0.35) 320.1deg, transparent 323.4deg, transparent 326.8deg, rgba(253,230,138,0.63) 330.1deg, transparent 333.3deg, transparent 352.9deg, rgba(253,230,138,0.82) 356.1deg, transparent 359.3deg);
    -webkit-mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 2px), rgba(0,0,0,.55) 60%, transparent);
    mask: radial-gradient(circle closest-side, #000 calc(var(--eS) / 2 + 2px), rgba(0,0,0,.55) 60%, transparent);
    animation: tp-corona 75s linear infinite; }
.tp-moon { width: var(--eS); height: var(--eS); margin: calc(var(--eS) / -2) 0 0 calc(var(--eS) / -2);
    background: radial-gradient(circle at 40% 38%, #0d0a10, #020102 60%, #000);
    box-shadow: 0 0 0 .6px #fffdf2, 0 0 2px .6px rgba(253,230,138,.95), 0 0 6px 1.5px rgba(245,158,11,.45); }
.tp-beads { --bR: calc(var(--eS) * .52); width: calc(var(--eS) + 6px); height: calc(var(--eS) + 6px); margin: calc(var(--eS) / -2 - 3px) 0 0 calc(var(--eS) / -2 - 3px);
    background: radial-gradient(circle at calc(50% + var(--bR) * 0.990) calc(50% + var(--bR) * -0.139), #fff 0 0.7px, rgba(255,247,214,.8) 1.10px, rgba(253,230,138,.25) 1.70px, transparent 2.30px), radial-gradient(circle at calc(50% + var(--bR) * 0.999) calc(50% + var(--bR) * 0.035), #fff 0 0.5px, rgba(255,247,214,.8) 0.90px, rgba(253,230,138,.25) 1.50px, transparent 2.10px), radial-gradient(circle at calc(50% + var(--bR) * 0.988) calc(50% + var(--bR) * 0.156), #fff 0 0.85px, rgba(255,247,214,.8) 1.25px, rgba(253,230,138,.25) 1.85px, transparent 2.45px), radial-gradient(circle at calc(50% + var(--bR) * 0.956) calc(50% + var(--bR) * 0.292), #fff 0 0.45px, rgba(255,247,214,.8) 0.85px, rgba(253,230,138,.25) 1.45px, transparent 2.05px), radial-gradient(circle at calc(50% + var(--bR) * 0.914) calc(50% + var(--bR) * 0.407), #fff 0 0.65px, rgba(255,247,214,.8) 1.05px, rgba(253,230,138,.25) 1.65px, transparent 2.25px), radial-gradient(circle at calc(50% + var(--bR) * 0.839) calc(50% + var(--bR) * 0.545), #fff 0 0.4px, rgba(255,247,214,.8) 0.80px, rgba(253,230,138,.25) 1.40px, transparent 2.00px), radial-gradient(circle at calc(50% + var(--bR) * 0.766) calc(50% + var(--bR) * 0.643), #fff 0 0.55px, rgba(255,247,214,.8) 0.95px, rgba(253,230,138,.25) 1.55px, transparent 2.15px);
    animation: tp-corona 6.5s linear infinite, tp-beads 2.2s ease-in-out infinite alternate; }
@keyframes tp-beads { from { opacity: .62; } to { opacity: 1; } }
.tp-ring { --rW: calc(var(--eC) * 2.2); width: var(--rW); height: calc(var(--eS) * 1.6); margin: calc(var(--eS) * -.8) 0 0 calc(var(--eS) * .52 - var(--rW) / 2);
    border-radius: 0 !important; opacity: 0;
    background: radial-gradient(circle, #fff 0 2.2px, rgba(255,253,242,.95) 3.4px, rgba(253,230,138,.5) 8px, rgba(245,158,11,.18) 13px, transparent 18px),
        radial-gradient(50% 1.3px at 50% 50%, #fff, rgba(255,247,214,.85) 35%, rgba(253,230,138,.3) 70%, transparent),
        radial-gradient(32% 5px at 50% 50%, rgba(255,247,214,.5), rgba(245,158,11,.12) 60%, transparent),
        radial-gradient(1.1px 50% at 50% 50%, #fff, rgba(255,253,242,.6) 45%, transparent); }
.tp-bailys_beads.ins-compact { --eS: 14px; --eC: 60px; padding: 0 11px; border-radius: 4px; }
@keyframes tp-corona { to { transform: rotate(360deg); } }
.tp-bared { animation: tp-bared-rim 2.8s ease-out 1; }
.tp-bared::before { animation: tp-corona 60s linear infinite, tp-corona-flare 2.8s ease-out 1; }
.tp-bared .tp-petals { animation: tp-corona 75s linear infinite, tp-corona-flare 2.8s ease-out 1; }
.tp-bared .tp-moon { animation: tp-moon-slip 2.8s cubic-bezier(.45,0,.3,1) 1; }
.tp-bared .tp-ring { animation: tp-ring-flare 2.8s ease-out 1; }
.tp-bared .tp-plumes { animation: tp-corona 95s linear infinite reverse, tp-plumes-out 2.8s ease-in-out 1; }
@keyframes tp-plumes-out { 28%, 70% { opacity: 0; } }
.tp-bared .tp-beads { animation: tp-corona 6.5s linear infinite, tp-beads-gather 2.8s ease-out 1; }
@keyframes tp-corona-flare { 0%, 16% { scale: 1; filter: none; } 40% { scale: 1.6; filter: brightness(1.4); } 66% { scale: 1.3; filter: brightness(1.15); } 100% { scale: 1; filter: none; } }
@keyframes tp-moon-slip { 0%, 16% { translate: 0 0; } 42%, 62% { translate: calc(var(--eS) * -1.3) calc(var(--eS) * .12);
        box-shadow: 0 0 0 .4px rgba(255,253,242,.25), 0 0 2px rgba(253,230,138,.15); } 92%, 100% { translate: 0 0; } }
@keyframes tp-ring-flare { 0% { opacity: 0; scale: .3; } 13% { opacity: 1; scale: 1.15; } 22% { opacity: .95; scale: 1; } 40% { opacity: 0; scale: 1.35; }
    80% { opacity: 0; scale: .5; } 88% { opacity: .55; scale: .7; } 100% { opacity: 0; scale: .5; } }
@keyframes tp-beads-gather { 0% { opacity: .8; } 10% { opacity: 1; scale: 1.08; } 24%, 82% { opacity: 0; scale: 1; } 100% { opacity: .8; } }
@keyframes tp-bared-rim { 35%, 60% { box-shadow: inset 0 1px 0 rgba(255,247,214,.45), inset 0 0 6px rgba(0,0,0,.5), 0 0 22px rgba(253,230,138,.8), 0 0 5px rgba(255,247,214,.9); } }
/* Reduce flashing: no strike - the moon drifts a third of the way off and back over the same beat, the diamond ring rises
   slowly to a third of its light, the corona barely swells. */
html.calm-flash .tp-bared { animation: none; }
html.calm-flash .tp-bared::before { animation: tp-corona 60s linear infinite, tp-corona-calm 2.8s ease-in-out 1; }
html.calm-flash .tp-bared .tp-petals { animation: tp-corona 75s linear infinite, tp-corona-calm 2.8s ease-in-out 1; }
html.calm-flash .tp-bared .tp-moon { animation: tp-moon-calm 2.8s ease-in-out 1; }
html.calm-flash .tp-bared .tp-ring { animation: tp-ring-calm 2.8s ease-in-out 1; }
html.calm-flash .tp-bared .tp-beads { animation: tp-corona 6.5s linear infinite; }
@keyframes tp-corona-calm { 50% { scale: 1.12; } }
@keyframes tp-moon-calm { 50% { translate: calc(var(--eS) * -.4) 0; } }
@keyframes tp-ring-calm { 0%, 100% { opacity: 0; } 35%, 65% { opacity: .3; } }
/* The shader plates keep their look and motion in the compact (seat) form. */
.ins-plate.ins-compact.ins-mythic { border: 1px solid; }
.ins-plate.ins-mythic { overflow: visible; }

/* ---- Badges ---- (app/services/insignia.py BadgeRarity). Common, Rare, Epic and Legendary are strictly static. */
.ins-badge { display: inline-grid; place-items: center; width: var(--bs, 40px); height: var(--bs, 40px); flex-shrink: 0; line-height: 0;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.ins-badge svg { width: 100%; height: 100%; overflow: visible; }
.ins-badge.ins-r-common { filter: drop-shadow(0 2px 3px rgba(0,0,0,.65)) saturate(.85); }
.ins-badge.ins-r-epic { filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)) drop-shadow(0 0 5px rgba(250,204,21,.4)); }
.ins-badge.ins-r-legendary { filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(226,180,74,.5)); }
.ins-badge.ins-r-legendary.ins-f-prismatic { filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)) drop-shadow(0 0 7px rgba(167,139,250,.6)); }
/* Mythic: the only tier with motion - a breathing halo plus its own motion classes. */
.ins-badge.ins-r-mythic { --halo: rgba(250,204,21,.75); animation: ins-halo 3s ease-in-out infinite; }
.ins-badge.ins-r-mythic.ins-f-emerald { --halo: rgba(52,211,153,.75); }
.ins-badge.ins-r-mythic.ins-f-eclipse { --halo: rgba(245,158,11,.8); }
.ins-badge.ins-r-mythic.ins-f-porphyry { --halo: rgba(212,166,74,.7); }
@keyframes ins-halo { 0%, 100% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)) drop-shadow(0 0 4px var(--halo)); }
    50% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)) drop-shadow(0 0 11px var(--halo)); } }
.ins-badge .ib-spin, .ins-badge .ib-core { transform-box: view-box; transform-origin: 32px 32px; }
.ins-badge .ib-glint { display: none; }
.ins-r-mythic.anim-badge-orbit .ib-spin { animation: ib-orbit 18s linear infinite; }
/* A part of a turning motif that holds still (the Golden Ouroboros's ruby): it turns back at the same rate. */
.ins-badge .ib-still { transform-box: fill-box; transform-origin: center; }
.ins-r-mythic.anim-badge-orbit .ib-spin .ib-still { animation: ib-orbit 18s linear infinite reverse; }
.ins-r-mythic.anim-badge-pulse .ib-core { animation: ib-pulse 1.8s ease-in-out infinite; }
.ins-r-mythic.anim-badge-glint .ib-glint { display: inline; animation: ib-glint 3.4s ease-in-out infinite; }
@keyframes ib-orbit { to { transform: rotate(360deg); } }
@keyframes ib-pulse { 0%, 45%, 100% { transform: scale(1); filter: none; } 12% { transform: scale(1.09); filter: brightness(1.35); }
    24% { transform: scale(1.02); } 32% { transform: scale(1.06); filter: brightness(1.2); } }
@keyframes ib-glint { 0%, 20% { transform: translateX(0); } 70%, 100% { transform: translateX(120px); } }

html.calm-motion .ins-title > b, html.calm-motion .ins-title, html.calm-motion .ins-title::before, html.calm-motion .ins-title::after, html.calm-motion .ins-motes > i, html.calm-motion .ins-badge, html.calm-motion .ins-badge *, html.calm-motion .tp-l { animation: none !important; }
html.calm-motion .ins-badge .ib-glint { display: none !important; }
html.calm-motion .tp-sun > s { animation: none !important; }
html.calm-motion .ins-motes { display: none; }
/* Reduce flashing: the Neon Sign is lit steady (no flicker-on, no hum), the Marquee's bulbs stand still (on your turn
   too), and Fortune's Reel rolls its letters once, slowly, over the same beat instead of blinking them at 7 Hz. */
html.calm-flash .tp-neon_sign > b { animation: none; opacity: 1; }
html.calm-flash .tp-marquee::before, html.calm-flash .seat-turn .tp-marquee::before, html.calm-flash .tp-marquee.tp-hot::before { animation: none; }
html.calm-flash .tp-spin .tp-l { animation: tp-reel-calm calc(.14s * var(--n, 6)) ease-in-out 1; }
/* Low graphics (COMFORT_AND_PERFORMANCE_PLAN.md 7; the loops hold on their first frame, SceneLoop): no Mythic motes and no
   glow filters on titles and badges; the Ticker Tape's text stands in view (its first frame is off the plate). */
html.gfx-low .ins-motes { display: none; }
html.gfx-low .ins-title > b, html.gfx-low .ins-badge, html.gfx-low .ins-badge * { filter: none !important; }
html.gfx-low .tp-ticker_tape > b { animation: none; }
/* Baily's Beads keeps its sun, moon and rim (and the beads, still) but drops the petals, the plumes and the soft glows. */
html.gfx-low .tp-bailys_beads { box-shadow: inset 0 0 4px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.5); }
html.gfx-low .tp-bailys_beads::before { width: calc(var(--eS) + 8px); height: calc(var(--eS) + 8px); margin: calc(var(--eS) / -2 - 4px) 0 0 calc(var(--eS) / -2 - 4px);
    background: radial-gradient(circle, #fffdf2 0 calc(var(--eS) / 2 - 1px), #fde68a calc(var(--eS) / 2 + .5px), rgba(245,158,11,.6) calc(var(--eS) / 2 + 2px), transparent 70%);
    -webkit-mask: none; mask: none; }
html.gfx-low .tp-plumes, html.gfx-low .tp-petals { display: none; }
html.gfx-low .tp-beads { animation: none; }
html.gfx-low .tp-moon { box-shadow: 0 0 0 .75px rgba(255,253,242,.95); }
html.gfx-low .ins-eclipse { box-shadow: inset 0 0 4px rgba(0,0,0,.9); }
@keyframes tp-reel-calm { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-35%); opacity: .7; } }
