/* Source: css/style.css */

@font-face {
font-family: "Teko";
src: url("../fonts/teko-bold.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
size-adjust: 112%;
}

@font-face {
font-family: "Cabinet Figures";
src: url("../fonts/cabinet-figures.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
size-adjust: 112%;
unicode-range: U+0030-0039;
}

@font-face {
font-family: "Bungee";
src: url("../fonts/bungee.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}

@font-face {
font-family: "Cinzel Decorative";
src: url("../fonts/cinzel-decorative-black.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}

@font-face {
font-family: "Exo 2";
src: url("../fonts/exo-2.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}

:root {
--bg: #210b42;
--bg-deep: #080413;
--lacquer: #41115d;
--lacquer-light: #a323bc;
--violet: #6622ad;
--violet-deep: #2a0f5c;
--magenta: #ef34c9;
--red: #ad209c;
--red-dark: #400c5c;
--gold: #ffd45a;
--gold-light: #fff2af;
--gold-dark: #c18a20;
--gold-deep: #62400c;
--gold-ink: #2b1705;
--navy: #1a1556;
--navy-deep: #070826;
--text: #fff6e0;
--muted: #d8b8f0;
--ruby: #ff3b4e;
--amber: #ffb43a;
--sapphire: #3b8bff;
--jade: #2fd47a;
--neon-pink: #ff4fd8;
--neon-cyan: #42e6ff;
--jp-grand: #ff3b4e;
--jp-major: #2fd47a;
--jp-minor: #3b8bff;
--jp-mini: #ffd45a;
--jp-outline: -1px -1px 0 var(--bg-deep), 1px -1px 0 var(--bg-deep), -1px 1px 0 var(--bg-deep), 1px 1px 0 var(--bg-deep), 0 2px 2px var(--bg-deep);
--frame-rim: #6d4f8e;
--frame-edge: #2a1240;
--frame-shade: #0d0418b3;
--frame-shade-soft: #0d041880;
--frame-foot: #1a0a20;
--lobby-sign-fill: radial-gradient(ellipse at 50% 0, #b8399677, transparent 70%), linear-gradient(#3d0b59, #160820);
--lobby-sign-cap: linear-gradient(#0d0418, #2a1240);
--neon-gold: #ffc531;
--wheel-wedge: #4a1690;
--wheel-wedge-alt: #36107a;
--wheel-grand: #c8157a;
--wheel-light: #fff;
--wheel-skip-rim: #9470ff;
--wheel-skip-rim-top: #69d9ff;
--wheel-skip-rim-bottom: #e46cff;
--wheel-skip-sheen: #bcf5ff66;
--wheel-skip-shade: #3c06a433;
--wheel-skip-fill-top: #7a5cff;
--wheel-skip-fill-middle: #4a2ad0;
--wheel-skip-fill-bottom: #2a1590;
--wheel-skip-highlight: #c4f8ff99;
--wheel-skip-inset-shadow: #36005a88;
--wheel-skip-lip: #160537;
--wheel-skip-label-shadow: #403276;
--hairline: rgba(255, 212, 90, 0.18);
--planet-tip-band: rgba(8, 4, 40, 0.6);
--plate-fill: rgba(0, 0, 0, 0.6);
--sting-gold: rgba(255, 211, 77, 0.55);
--bought-flash-hi: rgba(255, 242, 175, 0.85);
--bought-flash-lo: rgba(255, 212, 90, 0.35);
--purchase-glow: rgba(214, 150, 40, 0.97);
--purchase-plum: rgba(100, 18, 120, 0.98);
--purchase-night: rgba(14, 4, 34, 0.99);
--hot-tag-top: #ff9a3a;
--hot-tag-base: #e2420e;
--hot-tag-rim: #ffe0a0;
--go-light: #67ef9c;
--go: #188947;
--go-dark: #064b28;
--key-blue: #1a3ab0;
--sheet-top: #3b145d;
--sheet-base: #1f0b37;
--radius: 12px;
--console-light: #2a2470;
--allowance-cell-shade: rgba(0, 0, 0, 0.45);
--spire-ribbon-sheen: rgba(255, 255, 255, 0.38);
--spire-ribbon-shade: rgba(0, 0, 0, 0.22);
--rush-tier-bed: rgba(0, 0, 0, 0.3);
--starlight: #5dffb0;
--starlight-light: #e4fff2;
--starlight-shade: #22c47f;
--starlight-deep: #0d6a46;
--voyage-trade-dim-top: #282d46;
--voyage-trade-dim-base: #15192e;
--voyage-trade-dim-rim: #4c4f65;
--voyage-trade-dim-lip: #101326;
--booster-cyan: #8ff0ff;
--bolt: #6fb4ff;
--bolt-light: #eaf5ff;
--bolt-deep: #1b3a8c;
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-left: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-right, 0px);
--gold-bevel: linear-gradient(180deg, #fffbe0 0%, #ffe27a 28%, #e0a01a 50%, #b8780a 54%, #ffe680 78%, #c88a10 100%);
--gold-rim: linear-gradient(180deg, #fff1a8, #ffd34d 30%, #b8860b 60%, #ffe27a 85%, #8a5a00);
--ruby-bevel: linear-gradient(180deg, #fff3d6 0%, #ffd45a 20%, #ff3b4e 46%, #8a0018 54%, #ff7a6a 76%, #ffd45a 100%);
--ruby-deep: #4a0010;
--ruby-ray: rgba(255, 59, 78, 0.34);
--ruby-glow: rgba(255, 212, 90, 0.7);
--jade-bevel: linear-gradient(180deg, #effff5 0%, #9affc8 26%, #2fd47a 48%, #0a6a3a 54%, #8af0b0 78%, #1f9a5a 100%);
--jade-deep: #04361c;
--jade-ray: rgba(47, 212, 122, 0.32);
--jade-glow: rgba(180, 255, 210, 0.6);
--display-face: "Teko", "Avenir Next Condensed", "Arial Narrow", sans-serif;
--display: var(--display-face);
--body: "Exo 2", sans-serif;
--title: "Cinzel Decorative", Georgia, serif;
--symbol: "Bungee", sans-serif;
--type-label: 0.7rem;
--type-key: 0.9rem;
--type-readout: 1rem;
--type-lead: 1.2rem;
--type-meter: 1.35rem;
--cell: min(calc((min(100vw, 520px) - 32px - 34px - 24px) / 5), 10.5vh);
--league-tint-0: #6a3fc4;
--league-tint-1: #b8327f;
--league-tint-2: #2e6fc9;
--league-tint-3: #1b8a7f;
--league-tint-4: #c0662a;
--league-tint-5: #a52f45;
--league-tint-6: #4b5f86;
--league-tint-7: #5f8a2a;
--medal-bronze: #e09a5a;
--medal-silver: #dfe4ee;
--medal-gold: #ffd45a;
--medal-ruby: #ff4d63;
--medal-sapphire: #4f9bff;
--medal-celestial: #7ff3ff;
--medal-platinum: #c8bbf5;
--medal-diamond: var(--medal-celestial);
--league-flash: rgba(255, 212, 90, 0.42);
}

.meter-figures {
--display: "Cabinet Figures", var(--display-face);
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html,
body {
height: 100%;
background: var(--bg-deep);
color: var(--text);
font-family: var(--body);
line-height: 1.2;
overscroll-behavior: none;
}

body {
background:
radial-gradient(ellipse at 12% 25%, rgba(206, 36, 215, 0.35), transparent 48%),
radial-gradient(70% 45% at 85% 45%, rgba(105, 56, 227, 0.45), transparent 70%),
radial-gradient(120% 60% at 50% 100%, #120923, transparent 70%),
linear-gradient(180deg, var(--lacquer), var(--bg) 40%, var(--bg-deep)) fixed;
touch-action: manipulation;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
overflow: hidden;
}

button {
font: inherit;
color: inherit;
border: none;
background: none;
touch-action: manipulation;
cursor: pointer;
}

.currency,
.plaque-amount,
.spin-count strong,
.deal-offer-amount,
.banner-amount,
.deal-title,
.intro-sign-title,
.banner-title,
.sheet-title,
.plaque-name,
.meter-name,
.deal-scroll-text,
.deal-round-sub,
.deal-mine-text,
.deal-dragon-ribbon,
.deal-flash-name {
font-family: var(--display);
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.big-win-title,
.winner-title,
.banner-title,
.intro-sign-title,
.deal-flash-name {
display: inline-block;
transform: skewX(-14deg);
}

.ruby { --c: #ff3b4e; --c-light: #ffc2c8; --c-dark: #6a0010; }
.amber { --c: #ffb21e; --c-light: #fff0b8; --c-dark: #7a4200; }
.sapphire { --c: #3b8bff; --c-light: #c4dcff; --c-dark: #0a2470; }
.jade { --c: #2fd47a; --c-light: #c4ffdc; --c-dark: #06502a; }

.app {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
max-width: 520px;
margin: 0 auto;
padding: max(6px, var(--safe-top)) 16px 0;
}

.app:not(.drums)::before {
content: "";
position: absolute;
inset: 0 calc(50% - 50vw);
z-index: -1;
}


.fit-probe::after {
content: "";
position: static;
display: inline-block;
width: 100000px;
}

.frames-no-filters *,
.frames-no-filters *::before,
.frames-no-filters *::after {
filter: none !important;
-webkit-backdrop-filter: none !important;
backdrop-filter: none !important;
}

/* Source: css/cabinet-topbar-tower.css */
:root {
--cabinet-grand-ink: #ff7783;
--cabinet-minor-ink: #83b8ff;
}


.topbar {
flex: none;
display: flex;
align-items: center;
gap: 4px;
padding: 3px 4px 3px 6px;
border-radius: var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%),
linear-gradient(180deg, var(--console-light), var(--navy-deep));
border: 2px solid var(--gold-dark);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.app > .topbar {
min-height: 44px;
padding-block: 0;
border: 0;
box-shadow: inset 0 0 0 2px var(--gold-dark), 0 0 0 1px var(--gold-deep), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.app > .topbar .credits { padding-block: 0; }

.credits {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
padding: 2px 12px 2px 3px;
border-radius: 8px;
background: rgba(0, 0, 0, 0.45);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.credits-coin {
flex: none;
width: 26px;
height: 26px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

.currency {
flex: 1 1 0;
min-width: 0;
font-size: var(--type-readout);
font-weight: 900;
font-variant-numeric: tabular-nums;
overflow: hidden;
text-overflow: clip;
white-space: nowrap;
}

.icon-button {
flex: none;
width: 44px;
height: 44px;
border-radius: 50%;
color: var(--gold-light);
font-size: 1.1rem;
}


.tower {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 0 12px;
overflow-x: visible;
overflow-y: clip;
}

.tower-inner {
position: relative;
flex: none;
display: flex;
flex-direction: column;
transform-origin: 50% 100%;
}

.roof {
position: relative;
flex: none;
z-index: 1;
aspect-ratio: 1216 / 150;
margin: 0 2px -43px;
pointer-events: none;
}

.roof::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: url("../art/tower/crest.webp") center / 100% 100% no-repeat;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.roof::after {
content: "";
position: absolute;
left: 50%;
top: 0;
z-index: 2;
width: 18px;
height: 18px;
margin-left: -9px;
background: url("../art/nebula-empress/star-crystal.webp") center / contain no-repeat;
filter: drop-shadow(0 0 4px rgba(255, 211, 77, 0.55));
}

.jackpots {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px 12%;
padding: 0 10px;
}

.jackpots .plaque-amount {
width: 100%;
min-width: 0;
white-space: nowrap;
text-align: center;
}

.jackpot.minor {
justify-self: start;
width: 90%;
margin-left: -8px;
}

.jackpot.mini {
justify-self: end;
width: 90%;
margin-right: -8px;
}

.plaque {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 1px 6px 2px;
border: 2px solid transparent;
border-image: url("../art/tower/plaque.webp") 34 38 fill / 5px 6px stretch;
filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6));
line-height: 1.05;
}

.plaque-name {
font-size: 0.64rem;
font-weight: 900;
letter-spacing: 0.14em;
}

.jackpot.grand .plaque-name { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--cabinet-grand-ink); }
.jackpot.major .plaque-name { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--jp-major); }
.jackpot.minor .plaque-name { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--cabinet-minor-ink); }
.jackpot.mini .plaque-name { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--jp-mini); }

.plaque-amount {
font-size: var(--type-readout);
font-weight: 900;
font-variant-numeric: tabular-nums;
background-image: linear-gradient(180deg, #fff, #f2eeff 60%, #cfc4ff);
filter: drop-shadow(0 1px 0 #1a0a30) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.jackpot.minor .plaque-amount,
.jackpot.mini .plaque-amount {
font-size: 0.88rem;
}

.guardian {
position: absolute;
bottom: 34px;
width: 64px;
height: 150px;
overflow: visible;
filter: drop-shadow(0 0 1px #4a3000) drop-shadow(0 0 12px rgba(255, 190, 40, 0.6)) drop-shadow(0 0 18px rgba(255, 79, 216, 0.45)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
pointer-events: none;
}

.dragon-defs {
position: absolute;
width: 0;
height: 0;
}

.guardian:not(.flip) {
left: -4px;
}

.guardian.flip {
right: -4px;
transform: scaleX(-1);
}

.tower-inner:has(.meter.top.paying) .guardian {
animation: guardian-pulse 520ms ease-in-out infinite alternate;
}

.meters {
position: relative;
z-index: 1;
isolation: isolate;
display: flex;
flex-direction: column;
gap: 0;
margin: -24px 68px 0;
padding: 0 6px 6px;
--gate-inset: 9px -14px -2px;
}

.meters::before {
content: "";
position: absolute;
inset: var(--gate-inset);
z-index: -1;
border-radius: 6px 6px 10px 10px;
box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.45), 0 0 0 2px #1e0848, 0 0 14px rgba(200, 90, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.gate-pillars {
position: absolute;
inset: var(--gate-inset);
z-index: -1;
pointer-events: none;
}

.gate-pillars::before,
.gate-pillars::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 20px;
background: url("../art/ui/tower-pillar.webp") center / 100% 100% no-repeat;
}

.gate-pillars::before { left: -2px; }
.gate-pillars::after { right: -2px; transform: scaleX(-1); }

.meter {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 3px;
}

.meter::before {
content: "";
position: absolute;
top: -3px;
left: -20px;
right: -20px;
z-index: -1;
height: 22px;
background: url("../art/ui/tower-eave.webp") center / 100% 100% no-repeat;
pointer-events: none;
}

.meter-label {
order: -1;
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
min-width: 112px;
margin-bottom: -6px;
padding: 2px 18px 1px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 48%, rgba(0, 0, 0, 0.22)),
linear-gradient(180deg, var(--c), var(--c-dark));
box-shadow: inset 0 2px 0 var(--gold-light), inset 0 -2px 0 var(--gold-dark);
clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
line-height: 1.1;
}

.meter-name {
font-size: 0.8rem;
font-weight: 900;
letter-spacing: 0.1em;
background-image: linear-gradient(180deg, #fff, #fff 55%, #ffe4f6);
filter: drop-shadow(0 1px 0 var(--c-dark)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.meter.amber .meter-name {
color: var(--bg-deep);
background-image: none;
filter: none;
text-shadow: 0 1px 0 var(--gold-light);
}

.meter.top .meter-label {
min-width: 122px;
padding: 2px 20px 1px;
}

.meter.top .meter-name {
font-size: 0.86rem;
background-image: linear-gradient(180deg, #fff, #ffd6f5 50%, #ff8ae0);
}

.meter-slots {
display: flex;
justify-content: center;
gap: 5px;
padding: 8px 8px 3px;
border-radius: 8px;
}

.meter.full .meter-slots {
box-shadow: 0 0 14px var(--c), inset 0 0 12px var(--c);
}

.slot {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
border: 4px solid var(--c);
background:
radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 45%),
radial-gradient(circle at 50% 55%, #070310 55%, var(--c-dark) 100%);
box-shadow: 0 0 0 1.5px var(--gold-dark), 0 0 6px var(--c), inset 0 0 0 1.5px var(--c-light), inset 0 0 6px rgba(0, 0, 0, 0.9);
color: #fff;
font-family: var(--display);
font-size: 0.75rem;
}

.slot.filled,
.cell.orb::before {
background:
conic-gradient(from 22.5deg, rgba(255, 255, 255, 0.4) 0 12.5%, transparent 0 25%, rgba(0, 0, 0, 0.18) 0 37.5%, transparent 0 50%, rgba(0, 0, 0, 0.28) 0 62.5%, transparent 0 75%, rgba(255, 255, 255, 0.22) 0 87.5%, transparent 0),
radial-gradient(circle at 40% 32%, var(--c-light), var(--c) 50%, var(--c-dark));
}

.slot.filled {
border-color: var(--gold);
box-shadow: 0 0 0 1.5px var(--gold-deep), inset 0 0 0 1px var(--gold-light), 0 0 12px var(--c);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 2px #000;
}

.slot.landed {
animation: slot-land 350ms ease-out;
}

.meter.lit {
animation: meter-lit 600ms ease-out;
}

.meter.paying,
.plaque.paying {
animation: paying 250ms steps(1) 5;
}

.plaque.paying.handpay {
animation-duration: 1s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}

.meters.fizzle .slot.filled {
animation: fizzle 700ms ease-in forwards;
}

.tower-base {
position: relative;
z-index: 2;
display: flex;
align-items: stretch;
gap: 5px;
margin-top: 5px;
}

.tower-sign,
.chests,
.spin-count {
border-radius: 8px;
background: linear-gradient(180deg, #1d1450, #090420);
border: 2px solid var(--neon-pink);
box-shadow: 0 0 0 1px var(--gold-dark), 0 0 10px rgba(255, 79, 216, 0.55), inset 0 0 8px rgba(255, 79, 216, 0.35);
}

.tower-sign {
flex: 1 1 0;
min-width: 0;
display: grid;
align-items: center;
padding: 3px 5px;
}

.tower-sign > * {
grid-area: 1 / 1;
min-width: 0;
color: #fff3cf;
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.03em;
line-height: 1.15;
text-align: center;
text-transform: uppercase;
text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.8);
}

.tower-sign-fill {
animation: sign-a 9s steps(1) infinite;
}

.tower-sign .chest-text {
animation: sign-b 9s steps(1) infinite;
}

.dot {
display: inline-block;
width: 8px;
height: 8px;
margin: 0 1px;
border-radius: 50%;
vertical-align: -1px;
background: radial-gradient(circle at 40% 35%, var(--c-light), var(--c) 50%, var(--c-dark));
box-shadow: 0 0 0 1px var(--gold-dark);
}

.chest.chest-mini {
width: 14px;
height: 11px;
border-width: 1px;
border-radius: 50%;
vertical-align: -2px;
box-shadow: none;
}


.chests {
flex: 1.3 1 0;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 3px;
padding: 3px 8px 4px;
border-color: var(--neon-cyan);
box-shadow: 0 0 0 1px var(--gold-dark), 0 0 10px rgba(66, 230, 255, 0.5), inset 0 0 8px rgba(66, 230, 255, 0.3);
}

.chests-title {
font-family: var(--display);
font-size: 0.74rem;
letter-spacing: 0.08em;
line-height: 1.1;
text-align: center;
white-space: nowrap;
overflow: hidden;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.chest-bar {
position: relative;
height: 10px;
border-radius: 2px;
background: #241a48;
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 2px rgba(0, 0, 0, 0.7);
overflow: hidden;
}

.chest-bar::after {
content: "";
position: absolute;
inset: 0;
background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 2px), #090420 calc(100% / 24 - 2px) calc(100% / 24));
}

.chest-bar.landed {
animation: chest-bar-land 350ms ease-out;
}

.chests.full {
border-color: var(--gold);
animation: chests-full 600ms ease-in-out infinite alternate;
}

.chests.full .chests-title {
background-image: linear-gradient(180deg, #fff, #fff);
}

.tower-base:has(.chests.full) .tower-sign-fill {
display: none;
}

.tower-base:has(.chests.full) .chest-text {
animation: none;
color: #fff;
}

.chest-fill {
display: block;
height: 100%;
width: 0;
background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
transition: width 300ms ease;
}

.spin-count {
position: relative;
isolation: isolate;
flex: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 62px;
padding: 2px 8px;
font-family: var(--display);
font-weight: 900;
line-height: 1;
white-space: nowrap;
}

.spin-count-label {
color: var(--neon-cyan);
font-size: 0.68rem;
letter-spacing: 0.1em;
text-shadow: 0 0 6px rgba(66, 230, 255, 0.8);
}

.spin-count-of {
color: #fff;
font-size: 0.62rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

.spin-count strong {
font-size: 1.4rem;
background-image: linear-gradient(180deg, #fff, #fff 60%, #d8d8ff);
filter: drop-shadow(0 1px 0 #1a0a30) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.spin-count.hot {
border-color: var(--gold-light);
background: radial-gradient(circle at 50% 45%, #7a2a00, #3a0a14 70%);
animation: hot-box 700ms ease-in-out infinite alternate;
}

.spin-count.hot::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
z-index: -1;
width: 120px;
height: 120px;
margin: -60px 0 0 -60px;
border-radius: 50%;
background: repeating-conic-gradient(rgba(255, 211, 77, 0.8) 0 10deg, transparent 10deg 24deg);
-webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
mask-image: radial-gradient(circle, #000 25%, transparent 68%);
animation: rays 5s linear infinite;
pointer-events: none;
}

.spin-count.hot strong {
font-size: 1.5rem;
background-image: var(--gold-bevel);
filter: drop-shadow(0 0 1px #3a0a00) drop-shadow(0 2px 0 #3a0a00) drop-shadow(0 0 10px #ff8a00) drop-shadow(0 0 4px var(--gold));
}

.spin-count.hot .spin-count-label {
position: absolute;
visibility: hidden;
}

.spin-count.hot .spin-count-of {
color: #fff;
text-shadow: 0 0 6px var(--gold), 0 0 10px #ff8a00;
}

.spin-count.launch::after {
content: "";
position: absolute;
inset: -2px;
border: 2px solid var(--gold-light);
border-radius: 9px;
box-shadow: 0 0 16px var(--gold), inset 0 0 10px rgba(255, 211, 77, 0.8);
opacity: 0;
pointer-events: none;
animation: spin-launch 600ms ease-out;
}

.spin-count.firing {
animation: firing 700ms ease-out;
}


/* Source: css/nebula-scenery.css */

.nebula-hall {
position: absolute;
inset: 0 calc(50% - 50vw);
z-index: -1;
overflow: clip;
}

.nebula-hall-sky {
position: absolute;
inset: calc(var(--parallax-bleed) * -1);
background:
radial-gradient(ellipse at 50% 38%, #0c062055 12%, rgba(8, 3, 25, 0.55) 80%),
linear-gradient(180deg, transparent 55%, #0c0620cc),
url("../art/halls/nebula-hall.webp") center / cover no-repeat,
linear-gradient(180deg, var(--violet-deep), #4a1584 40%, #2a0f58 70%, #0c0620);
}

.gate-sky {
position: absolute;
inset: var(--gate-inset);
z-index: -2;
border-radius: 6px 6px 10px 10px;
overflow: clip;
}

.gate-sky-art {
position: absolute;
inset: calc(var(--parallax-bleed) * -1);
background:
url("../art/atlas/celestial-map.svg") center 42% / 100% auto no-repeat,
radial-gradient(70% 55% at 50% 40%, rgba(255, 79, 216, 0.28), transparent 80%),
linear-gradient(180deg, rgba(14, 5, 40, 0.35), rgba(10, 4, 30, 0.6)),
url("../art/planets/reward-nebula.webp") center 35% / cover no-repeat,
#1e0a50;
}

.gate-nebula {
--loop-tile: url("../art/scene-loops/nebula-gate-tile.webp");
--loop-tile-w: 192px;
--loop-tile-h: 96px;
--loop-period: 28s;
--loop-mask: radial-gradient(ellipse 62% 56% at 50% 46%, #000 20%, transparent);
opacity: .5;
}

.tower-sentinels {
position: absolute;
inset: 0;
z-index: 2;
}

/* Source: css/cabinet-reels.css */

.grid {
position: relative;
z-index: 0;
flex: none;
align-self: center;
display: grid;
grid-template-columns: repeat(5, var(--cell));
justify-content: center;
gap: 3px;
padding: 6px;
border-radius: 6px;
background: linear-gradient(180deg, #0a1240, #050826);
border: 3px solid #ffe680;
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px 1px var(--gold), 0 0 22px 4px rgba(255, 200, 60, 0.6), inset 0 0 18px rgba(0, 0, 0, 0.8);
}

:root {
--reel-frame: url("../art/frames/vault.webp");
}

.grid::before,
.aurora-top-grid::before {
content: "";
position: absolute;
top: -18px;
bottom: -4px;
left: -23px;
right: -23px;
z-index: -1;
border-image: var(--reel-frame) 99 90 48 90 / 33px 30px 16px 30px stretch;
pointer-events: none;
}

.reel {
grid-row: 1;
position: relative;
height: calc(var(--cell) * var(--reel-rows, 3));
overflow: hidden;
border-radius: 3px;
box-shadow: 0 0 0 1px rgba(255, 211, 77, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.08), inset -1px 0 0 rgba(0, 0, 0, 0.5);
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 22%, rgba(255, 255, 255, 0.05) 50%, transparent 78%, rgba(0, 0, 0, 0.6)),
radial-gradient(ellipse at 50% 50%, #18246a, #0a1038 82%);
}

.strip {
display: flex;
flex-direction: column;
will-change: transform;
}

.cell.cell-spin {
overflow: hidden;
}

.cell-reel {
position: absolute;
left: 0;
right: 0;
top: 0;
display: flex;
flex-direction: column;
pointer-events: none;
will-change: transform;
}

.cell-reel > .cell {
flex: none;
}

.reel-shine {
position: absolute;
top: 0;
bottom: 0;
left: -40%;
width: 30%;
z-index: 1;
background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.11) 48%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.11) 52%, transparent 80%);
pointer-events: none;
animation: reel-shine 9s ease-in-out infinite;
}

.grid.has-win .reel-shine {
display: none;
}

.win-plate {
position: absolute;
left: 50%;
bottom: -9px;
z-index: 3;
max-width: 96%;
padding: 2px 12px 1px;
border-radius: 6px;
background: linear-gradient(180deg, #2a1a00, #0a0600);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 211, 77, 0.5);
color: var(--gold-light);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.08em;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 0 #000;
transform: translate(-50%, 0) scale(0);
opacity: 0;
pointer-events: none;
}

.win-plate .sym-img {
width: 1.5em;
height: 1.5em;
margin: -0.3em 0.3em -0.2em -0.2em;
}

.win-plate.show {
animation: plate-in 220ms cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}

.line-tabs {
position: absolute;
top: 2px;
bottom: 2px;
z-index: 1;
display: none;
flex-direction: column;
justify-content: space-evenly;
width: 20px;
pointer-events: none;
}

.line-tabs.left { left: -21px; }
.line-tabs.right { right: -21px; }

.line-tab {
width: 16px;
height: 13px;
margin: 0 auto;
border-radius: 3px;
background: linear-gradient(180deg, #1c2a5a, #06102e);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
color: var(--text);
font-family: var(--display);
font-size: 11px;
line-height: 13px;
text-align: center;
}

.line-tab.lit {
background: var(--c);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 8px var(--c);
color: #fff;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.cell {
position: relative;
display: flex;
flex: none;
align-items: center;
justify-content: center;
width: var(--cell);
height: var(--cell);
font-size: calc(var(--cell) * 0.6);
line-height: 1;
}

.cell.sym {
isolation: isolate;
background: radial-gradient(closest-side, var(--glow), transparent);
}

body:not(.at-drums) .cell.sym::before {
content: "";
position: absolute;
inset: 4%;
z-index: -1;
border: 1px solid #d8a82e;
border-radius: 2px;
background:
linear-gradient(#ffe68a, #ffe68a) left 3px top 3px / 12% 2px no-repeat,
linear-gradient(#ffe68a, #ffe68a) left 3px top 3px / 2px 12% no-repeat,
linear-gradient(#ffe68a, #ffe68a) right 3px top 3px / 12% 2px no-repeat,
linear-gradient(#ffe68a, #ffe68a) right 3px top 3px / 2px 12% no-repeat,
linear-gradient(#ffe68a, #ffe68a) left 3px bottom 3px / 12% 2px no-repeat,
linear-gradient(#ffe68a, #ffe68a) left 3px bottom 3px / 2px 12% no-repeat,
linear-gradient(#ffe68a, #ffe68a) right 3px bottom 3px / 12% 2px no-repeat,
linear-gradient(#ffe68a, #ffe68a) right 3px bottom 3px / 2px 12% no-repeat,
radial-gradient(ellipse at 50% 35%, var(--glow), transparent 80%),
linear-gradient(145deg, #260d3e, #0c061b);
box-shadow: inset 0 0 0 1px #543211;
}

.sym-face {
font-size: calc(var(--cell) * 0.82);
line-height: 1;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.sym-img {
display: inline-block;
width: 1.18em;
height: 1.18em;
vertical-align: middle;
-webkit-user-drag: none;
user-select: none;
}

.cell .sym-img {
display: block;
object-fit: contain;
}

.cell.sym-0 { --glow: rgba(255, 92, 40, 0.75); }
.cell.sym-1 { --glow: rgba(255, 196, 60, 0.6); }
.cell.sym-2 { --glow: rgba(60, 220, 200, 0.55); }
.cell.sym-3 { --glow: rgba(80, 150, 255, 0.6); }
.cell.sym-4 { --glow: rgba(255, 70, 150, 0.6); }

.cell.wild { --glow: rgba(255, 215, 80, 0.85); }

.wild-tag {
position: absolute;
left: 50%;
bottom: 6%;
transform: translateX(-50%);
padding: 0 0.3em;
border-radius: 4px;
background: linear-gradient(180deg, #871bbc, #30064e);
box-shadow: 0 0 0 1.5px #ffd75a;
color: #ffe9a0;
font-family: var(--display);
font-size: max(0.7rem, calc(var(--cell) * 0.2));
letter-spacing: 0.06em;
line-height: 1.15;
}

.cell.sym-0 .sym-face {
font-size: calc(var(--cell) * 0.84);
filter: drop-shadow(0 1px 2px rgba(70, 24, 0, 0.9));
}

.cell.letter {
display: grid;
place-items: center;
font-family: var(--symbol);
font-size: calc(var(--cell) * 0.7);
font-weight: 400;
}

.glyph-shadow,
.glyph-edge,
.glyph {
position: relative;
grid-area: 1 / 1;
padding: 0.12em 0.4em;
line-height: 1;
text-shadow: none;
}

.glyph-shadow {
color: var(--royal-shadow, #000);
-webkit-text-stroke: calc(var(--cell) * 0.13) var(--royal-shadow, #000);
transform: translateY(1px);
}

.glyph-edge {
color: var(--royal-edge, #fff);
-webkit-text-stroke: calc(var(--cell) * 0.075) var(--royal-edge, #fff);
}

.glyph {
background-image:
linear-gradient(170deg, var(--royal-sheen, rgba(255, 255, 255, 0.45)) 0 18%, transparent 30%),
linear-gradient(180deg, var(--l1) 0%, var(--l2) 45%, var(--l3) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-stroke: 1.5px var(--royal-ink, #000);
}

.cell.letter-Q { font-size: calc(var(--cell) * 0.66); }
.letter-Q .glyph-shadow { transform: none; }

.cell.letter-10 {
font-size: calc(var(--cell) * 0.5);
letter-spacing: -0.04em;
}

.letter-9 { --l1: #c8ffb0; --l2: #2ccc2a; --l3: #0a6a10; }
.letter-10 { --l1: #ffb0a8; --l2: #f0141e; --l3: #8a0008; }
.letter-J { --l1: #b8e0ff; --l2: #2070f0; --l3: #0a2a90; }
.letter-Q { --l1: #fffac0; --l2: #ffd418; --l3: #c08000; }
.letter-K { --l1: #ffe0a0; --l2: #ff8410; --l3: #a83800; }
.letter-A { --l1: #ffc0e8; --l2: #ff2ea0; --l3: #900050; }

.letter-crown,
.letter-gem {
position: absolute;
background: center / contain no-repeat;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
pointer-events: none;
}

.letter-crown {
top: 0;
width: calc(var(--cell) * 0.3);
height: calc(var(--cell) * 0.225);
background-image: url("../art/ui/letter-crown.webp");
}

.letter-K .letter-crown {
left: 10%;
transform: rotate(-14deg);
}

.letter-Q .letter-crown {
right: 4%;
top: 32%;
transform: rotate(10deg);
}

.letter-gem {
left: 50%;
top: 60%;
width: calc(var(--cell) * 0.24);
height: calc(var(--cell) * 0.158);
transform: translate(-50%, -50%);
background-image: url("../art/ui/letter-gem.webp");
}

.cell.orb {
isolation: isolate;
background: radial-gradient(closest-side, var(--c), transparent);
color: var(--gold-light);
font-family: var(--display);
font-size: calc(var(--cell) * 0.27);
font-weight: 400;
line-height: 1;
}

.cell.orb::before {
content: "";
position: absolute;
inset: 4%;
z-index: -1;
border: calc(var(--cell) * 0.045) solid transparent;
clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cell.orb::before {
background:
conic-gradient(from 22.5deg, rgba(255, 255, 255, 0.4) 0 12.5%, transparent 0 25%, rgba(0, 0, 0, 0.18) 0 37.5%, transparent 0 50%, rgba(0, 0, 0, 0.28) 0 62.5%, transparent 0 75%, rgba(255, 255, 255, 0.22) 0 87.5%, transparent 0) padding-box,
radial-gradient(circle at 40% 32%, var(--c-light), var(--c) 50%, var(--c-dark)) padding-box,
var(--gold-rim) border-box;
}

.orb-label {
position: relative;
z-index: 1;
padding: 0.1em 0.45em 0.05em;
border-radius: 4px;
background: linear-gradient(180deg, #2a1a50, #0c0620);
box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.8);
letter-spacing: 0.02em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.cell.orb::after {
content: "";
position: absolute;
inset: 27%;
z-index: -1;
clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
background: radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 70%);
}

.cell.orb.jp {
color: var(--gold);
font-size: max(0.7rem, calc(var(--cell) * 0.19));
}

.slot.jp {
font-size: 0.5rem;
}

.cell.win {
z-index: 1;
animation: win-bob 700ms ease-in-out infinite;
}

.cell.win::after {
content: "";
position: absolute;
inset: 2px;
z-index: 2;
border: 3px solid #fff;
border-radius: 7px;
box-shadow: 0 0 0 1px var(--gold-dark), inset 0 0 0 1px var(--gold-dark), 0 0 12px var(--gold), inset 0 0 14px rgba(255, 211, 77, 0.35);
pointer-events: none;
animation: win-box 700ms ease-in-out infinite;
will-change: transform;
}

.grid.has-win .cell:not(.win):not(.orb),
:is(.grid, .aurora-top-grid).cycling .cell:not(.win):not(.orb) {
opacity: 0.8;
transition: opacity 100ms ease;
}

.payline.off,
.drum-line-set.off,
.payline-beam.off {
display: none;
}

.payline {
position: absolute;
z-index: 0;
height: 5px;
margin-top: -2.5px;
border-radius: 3px;
background: linear-gradient(90deg, transparent, var(--gold-light) 6%, #fff 50%, var(--gold-light) 94%, transparent);
box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255, 140, 0, 0.8);
opacity: 0.6;
pointer-events: none;
animation: payline 650ms ease-in-out infinite alternate;
}

.payline-beams {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
}

.payline-beams.ascent-beams {
z-index: 3;
}

.payline-beams-svg {
position: absolute;
inset: 0;
overflow: visible;
}

.payline-beam.off {
display: none;
}

.payline-beam-glow,
.payline-beam-core {
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}

.payline-beam-glow {
stroke: var(--payline-color, var(--gold));
stroke-width: 11;
opacity: 0.36;
stroke-dasharray: var(--beam-len, 1000);
stroke-dashoffset: 0;
animation: payline-trace 240ms cubic-bezier(0.22, 1, 0.36, 1) both, payline-beam-glow 650ms ease-in-out infinite alternate;
}

.payline-beam-core {
stroke: var(--payline-core, var(--payline-color, var(--gold-light)));
stroke-width: 4;
opacity: 0.95;
stroke-dasharray: var(--beam-len, 1000);
stroke-dashoffset: 0;
animation: payline-trace 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.payline-beams.ascent-beams .payline-beam-glow {
stroke-width: 13;
}

.payline-beams.ascent-beams .payline-beam-core {
stroke: var(--gold-light);
stroke-width: 3.5;
}

.payline-beam-dot {
fill: var(--payline-color, var(--gold));
stroke: #fff;
stroke-width: 1.5;
}

.payline-beam-no {
fill: #fff;
font-family: var(--display);
font-size: 11px;
text-anchor: middle;
dominant-baseline: central;
paint-order: stroke;
stroke: rgba(0, 0, 0, 0.7);
stroke-width: 2px;
}

@keyframes payline-trace {
from { stroke-dashoffset: var(--beam-len, 1000); }
to { stroke-dashoffset: 0; }
}

@keyframes payline-beam-glow {
from { opacity: 0.22; }
to { opacity: 0.5; }
}

body.scene-motion-paused .payline-beam-glow,
body.scene-motion-paused .payline-beam-core {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
.payline-beam-glow,
.payline-beam-core {
stroke-dasharray: none;
stroke-dashoffset: 0;
animation: none;
}
}

.reel.teasing {
box-shadow: 0 0 0 2px var(--gold), 0 0 16px var(--gold), inset 0 0 14px rgba(255, 211, 77, 0.7);
}

.reel-fx {
grid-row: 1;
position: relative;
z-index: 3;
overflow: visible;
pointer-events: none;
}

.reel-fx > .sting,
.reel-fx > .cell-feedback {
position: absolute;
left: 0;
right: 0;
top: calc(100% * var(--reel-fx-row) / var(--reel-rows, 3));
height: calc(100% / var(--reel-rows, 3));
}

.sting {
position: absolute;
pointer-events: none;
opacity: 0;
background: radial-gradient(circle at 50% 50%, var(--gold-light) 0, var(--sting-gold) 34%, transparent 68%);
animation: sting-burst 420ms ease-out;
}

.sting.scatter {
background: radial-gradient(circle at 50% 50%, var(--gold-light) 0, var(--sting-gold) 40%, transparent 78%);
}

.sting.jp.grand {
background: radial-gradient(circle at 50% 50%, var(--gold-light) 0, var(--gold) 20%, var(--jp-grand) 44%, transparent 72%);
}

.sting.jp.major {
background: radial-gradient(circle at 50% 50%, var(--gold-light) 0, var(--gold) 20%, var(--jp-major) 44%, transparent 72%);
}

.lightning {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
opacity: 0;
}

.lightning svg {
position: absolute;
inset: 0;
overflow: visible;
}

.lightning.strike {
animation: strike 520ms linear forwards;
}

.lightning.strike:where(.replay-b) {
animation-name: strike-b;
}

.lightning .bolt,
.lightning .bolt-glow {
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}

.lightning .bolt {
stroke: #fff;
stroke-width: 5;
}

.lightning .bolt-glow {
stroke: #7fdcff;
stroke-width: 16;
opacity: 0.75;
filter: blur(4px);
}

.lightning .fork {
stroke-width: 2.5;
}

.lightning .bolt-glow.fork {
stroke-width: 9;
}

.grid.struck {
animation: struck 520ms ease-out;
}

.grid.struck:where(.replay-b) {
animation-name: struck-b;
}

.winner {
position: absolute;
left: -10px;
right: -10px;
top: 50%;
z-index: 3;
display: flex;
flex-direction: column;
align-items: center;
padding: calc(var(--cell) * 0.3) calc(var(--cell) * 0.4) calc(var(--cell) * 0.32);
transform: translateY(-50%) scale(0);
opacity: 0;
pointer-events: none;
}

.winner::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-style: solid;
border-color: transparent;
border-width: calc(var(--cell) * 0.6) calc(var(--cell) * 0.69);
border-image: url("../art/winner/frame.webp") 80 92 fill stretch;
filter: drop-shadow(0 0 14px rgba(255, 211, 77, 0.6)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
}

.winner::before {
content: "";
position: absolute;
left: 50%;
top: 0;
z-index: 1;
width: calc(var(--cell) * 1.25);
aspect-ratio: 246 / 108;
background: url("../art/winner/crest.webp") center / contain no-repeat;
transform: translate(-50%, -68%);
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.winner.show {
animation: winner-in 420ms cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}

.winner.show.hide {
animation: winner-out 250ms ease-in forwards;
}

.winner-title {
font-family: var(--display);
font-size: calc(var(--cell) * 0.7);
font-weight: 900;
letter-spacing: 0.06em;
line-height: 1;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 #6a0016) drop-shadow(0 0 10px rgba(255, 140, 0, 0.9));
}

.winner-amount {
margin-top: 2px;
font-family: var(--display);
font-size: calc(var(--cell) * 0.55);
font-weight: 900;
line-height: 1.05;
color: #fff;
font-variant-numeric: tabular-nums;
text-shadow: 0 3px 0 #000, 0 0 12px var(--gold);
}

.cell.collected {
opacity: 0.75;
transition: opacity 200ms ease;
}

.grid.tease {
animation: tease 300ms ease-in-out infinite alternate;
}


/* Source: css/cabinet-families.css */
:root {
--fam-classic-grid-top: #59210b;
--fam-classic-grid-bot: #290c04;
--fam-classic-grid-rim: #ffdf78;
--fam-classic-well-edge: #e4c87e;
--fam-classic-well-mid: #fff6db;
--fam-classic-well-rim: rgba(164, 92, 16, 0.55);
--fam-stampede-grid-top: #3e200d;
--fam-stampede-grid-bot: #1a0c04;
--fam-stampede-grid-rim: #f4be64;
--fam-stampede-well-mid: #4e2f18;
--fam-stampede-well-edge: #241307;
--fam-stampede-shadow: #210e04;
--fam-stampede-edge: #ffd480;
--fam-stampede-ink: #2b1204;
--fam-stampede-sheen: rgba(255, 232, 180, 0.48);
--fam-stampede-9-1: #d4f5a2;
--fam-stampede-9-2: #5cb828;
--fam-stampede-9-3: #1f590c;
--fam-stampede-10-1: #ffc49c;
--fam-stampede-10-2: #e8481c;
--fam-stampede-10-3: #7d1604;
--fam-stampede-J-1: #bae8ff;
--fam-stampede-J-2: #2f8fe0;
--fam-stampede-J-3: #0d3c7a;
--fam-stampede-Q-1: #fff0b3;
--fam-stampede-Q-2: #f5b82e;
--fam-stampede-Q-3: #8f4f05;
--fam-stampede-K-1: #ffd4a8;
--fam-stampede-K-2: #e86a18;
--fam-stampede-K-3: #782404;
--fam-stampede-A-1: #ffc7c2;
--fam-stampede-A-2: #d92136;
--fam-stampede-A-3: #660814;
--fam-link-grid-top: #0c1744;
--fam-link-grid-bot: #04081d;
--fam-link-grid-rim: #9fd8ff;
--fam-link-well-mid: #162a64;
--fam-link-well-edge: #070d26;
--fam-link-shadow: #050a1c;
--fam-link-edge: #dff3ff;
--fam-link-ink: #08122e;
--fam-link-sheen: rgba(255, 255, 255, 0.6);
--fam-link-9-1: #a8ffe8;
--fam-link-9-2: #18cc9c;
--fam-link-9-3: #065c4a;
--fam-link-10-1: #ffb8d0;
--fam-link-10-2: #e6225a;
--fam-link-10-3: #70082a;
--fam-link-J-1: #bfe6ff;
--fam-link-J-2: #2894ff;
--fam-link-J-3: #0a328c;
--fam-link-Q-1: #fff6bd;
--fam-link-Q-2: #f5c828;
--fam-link-Q-3: #8f5e00;
--fam-link-K-1: #e0c7ff;
--fam-link-K-2: #9c4dff;
--fam-link-K-3: #43128f;
--fam-link-A-1: #ffd1e8;
--fam-link-A-2: #ff3b9a;
--fam-link-A-3: #7a0a48;
--fam-imperial-grid-top: #4b0c22;
--fam-imperial-grid-bot: #20040e;
--fam-imperial-grid-rim: #f7cc5c;
--fam-imperial-well-mid: #5a122a;
--fam-imperial-well-edge: #270511;
--fam-imperial-shadow: #29030c;
--fam-imperial-edge: #ffe082;
--fam-imperial-ink: #380712;
--fam-imperial-sheen: rgba(255, 240, 180, 0.52);
--fam-imperial-9-1: #b8ffd2;
--fam-imperial-9-2: #1eb864;
--fam-imperial-9-3: #08542a;
--fam-imperial-10-1: #ffb8ad;
--fam-imperial-10-2: #dc1e2b;
--fam-imperial-10-3: #6e040c;
--fam-imperial-J-1: #b8e8ff;
--fam-imperial-J-2: #1c7ed6;
--fam-imperial-J-3: #09326e;
--fam-imperial-Q-1: #fff4b8;
--fam-imperial-Q-2: #f0b818;
--fam-imperial-Q-3: #8c5200;
--fam-imperial-K-1: #ffd49e;
--fam-imperial-K-2: #e86c10;
--fam-imperial-K-3: #7a2800;
--fam-imperial-A-1: #ffc2cf;
--fam-imperial-A-2: #e01b52;
--fam-imperial-A-3: #6e0522;
--fam-mascot-grid-top: #145434;
--fam-mascot-grid-bot: #0a2e1c;
--fam-mascot-grid-rim: #ffe378;
--fam-mascot-well-edge: #1a6d43;
--fam-mascot-well-mid: #2ea664;
--fam-mascot-shadow: #0a2916;
--fam-mascot-edge: #fff7c2;
--fam-mascot-ink: #0f381e;
--fam-mascot-sheen: rgba(255, 255, 255, 0.55);
--fam-mascot-9-1: #d4ff9e;
--fam-mascot-9-2: #4cd426;
--fam-mascot-9-3: #16780c;
--fam-mascot-10-1: #ffc2a8;
--fam-mascot-10-2: #ff4526;
--fam-mascot-10-3: #991808;
--fam-mascot-J-1: #b5f0ff;
--fam-mascot-J-2: #1aa8f0;
--fam-mascot-J-3: #084e8f;
--fam-mascot-Q-1: #fff8ad;
--fam-mascot-Q-2: #ffd91a;
--fam-mascot-Q-3: #ba7800;
--fam-mascot-K-1: #ffd9a6;
--fam-mascot-K-2: #ff8c1a;
--fam-mascot-K-3: #9e3f00;
--fam-mascot-A-1: #ffc7f2;
--fam-mascot-A-2: #f238b8;
--fam-mascot-A-3: #850d60;
}

#app[data-cabinet-family="classic"]:not(.drums) .grid {
background: linear-gradient(180deg, var(--fam-classic-grid-top), var(--fam-classic-grid-bot));
border-color: var(--fam-classic-grid-rim);
}

#app[data-cabinet-family="classic"]:not(.drums) .reel {
box-shadow: 0 0 0 1px var(--fam-classic-well-rim), inset 1px 0 0 rgba(255, 255, 255, 0.55), inset -1px 0 0 rgba(140, 88, 22, 0.35);
background:
linear-gradient(180deg, rgba(120, 72, 16, 0.28), transparent 14%, transparent 86%, rgba(120, 72, 16, 0.28)),
repeating-linear-gradient(177deg, rgba(168, 118, 42, 0.09) 0 1px, transparent 1px 6px),
linear-gradient(90deg, var(--fam-classic-well-edge), var(--fam-classic-well-mid) 48%, var(--fam-classic-well-edge));
}

#app[data-cabinet-family="stampede"] .grid {
background: linear-gradient(180deg, var(--fam-stampede-grid-top), var(--fam-stampede-grid-bot));
border-color: var(--fam-stampede-grid-rim);
}

#app[data-cabinet-family="stampede"] :is(.reel, .aurora-top-reel) {
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, rgba(255, 220, 148, 0.08) 50%, transparent 80%, rgba(0, 0, 0, 0.55)),
radial-gradient(ellipse at 50% 50%, var(--fam-stampede-well-mid), var(--fam-stampede-well-edge) 84%);
}

#app[data-cabinet-family="link"]:not(.holding):not(.studio-holding):not(.ascent-free) .grid {
background: linear-gradient(180deg, var(--fam-link-grid-top), var(--fam-link-grid-bot));
border-color: var(--fam-link-grid-rim);
}

#app[data-cabinet-family="link"]:not(.holding):not(.studio-holding) .reel {
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 22%, rgba(180, 230, 255, 0.08) 50%, transparent 78%, rgba(0, 0, 0, 0.62)),
radial-gradient(ellipse at 50% 50%, var(--fam-link-well-mid), var(--fam-link-well-edge) 84%);
}

#app[data-cabinet-family="imperial"]:not(.jade-free) .grid {
background: linear-gradient(180deg, var(--fam-imperial-grid-top), var(--fam-imperial-grid-bot));
border-color: var(--fam-imperial-grid-rim);
}

#app[data-cabinet-family="imperial"]:not(.jade-free) .reel {
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 22%, rgba(255, 214, 112, 0.08) 50%, transparent 78%, rgba(0, 0, 0, 0.58)),
radial-gradient(ellipse at 50% 50%, var(--fam-imperial-well-mid), var(--fam-imperial-well-edge) 84%);
}

#app[data-cabinet-family="mascot"] .grid {
background: linear-gradient(180deg, var(--fam-mascot-grid-top), var(--fam-mascot-grid-bot));
border-color: var(--fam-mascot-grid-rim);
}

#app[data-cabinet-family="mascot"] .reel {
box-shadow: 0 0 0 1px rgba(255, 227, 120, 0.6), inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 42, 18, 0.45);
background:
linear-gradient(180deg, rgba(0, 32, 16, 0.35), transparent 18%, rgba(255, 255, 210, 0.12) 50%, transparent 82%, rgba(0, 32, 16, 0.35)),
linear-gradient(180deg, var(--fam-mascot-well-edge), var(--fam-mascot-well-mid) 50%, var(--fam-mascot-well-edge));
}

:is(#app, #paytable)[data-cabinet-family] .letter-9 .glyph { color: transparent; }

:is(#app, #paytable)[data-cabinet-family="stampede"] {
--royal-shadow: var(--fam-stampede-shadow);
--royal-edge: var(--fam-stampede-edge);
--royal-ink: var(--fam-stampede-ink);
--royal-sheen: var(--fam-stampede-sheen);
}
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-9 { --l1: var(--fam-stampede-9-1); --l2: var(--fam-stampede-9-2); --l3: var(--fam-stampede-9-3); }
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-10 { --l1: var(--fam-stampede-10-1); --l2: var(--fam-stampede-10-2); --l3: var(--fam-stampede-10-3); }
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-J { --l1: var(--fam-stampede-J-1); --l2: var(--fam-stampede-J-2); --l3: var(--fam-stampede-J-3); }
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-Q { --l1: var(--fam-stampede-Q-1); --l2: var(--fam-stampede-Q-2); --l3: var(--fam-stampede-Q-3); }
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-K { --l1: var(--fam-stampede-K-1); --l2: var(--fam-stampede-K-2); --l3: var(--fam-stampede-K-3); }
:is(#app, #paytable)[data-cabinet-family="stampede"] .letter-A { --l1: var(--fam-stampede-A-1); --l2: var(--fam-stampede-A-2); --l3: var(--fam-stampede-A-3); }

:is(#app, #paytable)[data-cabinet-family="link"] {
--royal-shadow: var(--fam-link-shadow);
--royal-edge: var(--fam-link-edge);
--royal-ink: var(--fam-link-ink);
--royal-sheen: var(--fam-link-sheen);
}
:is(#app, #paytable)[data-cabinet-family="link"] .letter-9 { --l1: var(--fam-link-9-1); --l2: var(--fam-link-9-2); --l3: var(--fam-link-9-3); }
:is(#app, #paytable)[data-cabinet-family="link"] .letter-10 { --l1: var(--fam-link-10-1); --l2: var(--fam-link-10-2); --l3: var(--fam-link-10-3); }
:is(#app, #paytable)[data-cabinet-family="link"] .letter-J { --l1: var(--fam-link-J-1); --l2: var(--fam-link-J-2); --l3: var(--fam-link-J-3); }
:is(#app, #paytable)[data-cabinet-family="link"] .letter-Q { --l1: var(--fam-link-Q-1); --l2: var(--fam-link-Q-2); --l3: var(--fam-link-Q-3); }
:is(#app, #paytable)[data-cabinet-family="link"] .letter-K { --l1: var(--fam-link-K-1); --l2: var(--fam-link-K-2); --l3: var(--fam-link-K-3); }
:is(#app, #paytable)[data-cabinet-family="link"] .letter-A { --l1: var(--fam-link-A-1); --l2: var(--fam-link-A-2); --l3: var(--fam-link-A-3); }

:is(#app, #paytable)[data-cabinet-family="imperial"] {
--royal-shadow: var(--fam-imperial-shadow);
--royal-edge: var(--fam-imperial-edge);
--royal-ink: var(--fam-imperial-ink);
--royal-sheen: var(--fam-imperial-sheen);
}
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-9 { --l1: var(--fam-imperial-9-1); --l2: var(--fam-imperial-9-2); --l3: var(--fam-imperial-9-3); }
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-10 { --l1: var(--fam-imperial-10-1); --l2: var(--fam-imperial-10-2); --l3: var(--fam-imperial-10-3); }
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-J { --l1: var(--fam-imperial-J-1); --l2: var(--fam-imperial-J-2); --l3: var(--fam-imperial-J-3); }
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-Q { --l1: var(--fam-imperial-Q-1); --l2: var(--fam-imperial-Q-2); --l3: var(--fam-imperial-Q-3); }
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-K { --l1: var(--fam-imperial-K-1); --l2: var(--fam-imperial-K-2); --l3: var(--fam-imperial-K-3); }
:is(#app, #paytable)[data-cabinet-family="imperial"] .letter-A { --l1: var(--fam-imperial-A-1); --l2: var(--fam-imperial-A-2); --l3: var(--fam-imperial-A-3); }

:is(#app, #paytable)[data-cabinet-family="mascot"] {
--royal-shadow: var(--fam-mascot-shadow);
--royal-edge: var(--fam-mascot-edge);
--royal-ink: var(--fam-mascot-ink);
--royal-sheen: var(--fam-mascot-sheen);
}
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-9 { --l1: var(--fam-mascot-9-1); --l2: var(--fam-mascot-9-2); --l3: var(--fam-mascot-9-3); }
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-10 { --l1: var(--fam-mascot-10-1); --l2: var(--fam-mascot-10-2); --l3: var(--fam-mascot-10-3); }
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-J { --l1: var(--fam-mascot-J-1); --l2: var(--fam-mascot-J-2); --l3: var(--fam-mascot-J-3); }
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-Q { --l1: var(--fam-mascot-Q-1); --l2: var(--fam-mascot-Q-2); --l3: var(--fam-mascot-Q-3); }
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-K { --l1: var(--fam-mascot-K-1); --l2: var(--fam-mascot-K-2); --l3: var(--fam-mascot-K-3); }
:is(#app, #paytable)[data-cabinet-family="mascot"] .letter-A { --l1: var(--fam-mascot-A-1); --l2: var(--fam-mascot-A-2); --l3: var(--fam-mascot-A-3); }

/* Source: css/cabinet-tease-spotlight.css */
.grid.tease .reel::before,
.grid.tease .reel::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: 0;
transition: opacity 220ms ease-out;
animation: tease-spot-in 220ms ease-out;
}

.grid.tease .reel::before {
background: #000;
}

.grid.tease .reel:not(.teasing)::before {
opacity: 0.34;
}

.grid.tease .reel::after {
background:
linear-gradient(90deg, rgba(255, 226, 140, 0.6), transparent 12%, transparent 88%, rgba(255, 226, 140, 0.6)),
linear-gradient(180deg, rgba(255, 244, 210, 0.3), rgba(255, 244, 210, 0.08) 45%, transparent 80%);
}

.grid.tease .reel.teasing::after {
opacity: 1;
}

@keyframes tease-spot-in {
from { opacity: 0; }
}

/* Source: css/cabinet-tease-styles.css */
:root {
--tease-flame: 255, 120, 30;
--tease-ember: 255, 150, 30;
--tease-lamp: 255, 206, 80;
--tease-dust: 232, 184, 104;
--tease-prism: 70, 240, 205;
--tease-prism-hot: 190, 255, 242;
}

.grid[data-tease-style="flame"] .reel.teasing::before,
.grid[data-tease-style="railway"] .reel.teasing::before,
.grid[data-tease-style="stampede"] .reel.teasing::before,
.grid[data-tease-style="shimmer"] .reel.teasing::before {
opacity: 1;
}

.grid[data-tease-style="flame"] .reel.teasing::before {
background:
radial-gradient(circle, rgba(var(--tease-ember), 1) 0 2.4px, transparent 3.6px) 0 0 / 22px 46px,
radial-gradient(circle, rgba(var(--tease-ember), 0.85) 0 1.8px, transparent 3px) 9px 20px / 31px 58px,
radial-gradient(ellipse 80% 38% at 50% 100%, rgba(var(--tease-flame), 0.62), transparent 72%);
}

.grid[data-tease-style="railway"] .reel.teasing::before {
background:
linear-gradient(100deg, transparent 30%, rgba(var(--tease-lamp), 0.5) 50%, transparent 70%) 50% 0 / 220% 100% no-repeat,
radial-gradient(ellipse 70% 30% at 50% 100%, rgba(var(--tease-lamp), 0.45), transparent 75%);
}

.grid[data-tease-style="stampede"] .reel.teasing::before {
background:
radial-gradient(ellipse 85% 60% at 50% 55%, rgba(var(--tease-dust), 0.5), transparent 75%),
linear-gradient(0deg, rgba(var(--tease-dust), 0.4), transparent 35%);
}

.grid[data-tease-style="shimmer"] .reel.teasing::before {
background:
linear-gradient(90deg, transparent 22%, rgba(var(--tease-prism), 0.5) 40%, rgba(var(--tease-prism-hot), 0.85) 50%, rgba(var(--tease-prism), 0.5) 60%, transparent 78%),
linear-gradient(180deg, transparent, rgba(var(--tease-prism-hot), 0.55) 50%, transparent) 0 40% / 100% 45% no-repeat;
}

@keyframes tease-embers {
to { background-position: 0 -46px, 9px -38px, 0 0; }
}

@keyframes tease-headlamp {
from { background-position: 100% 0, 0 0; }
to { background-position: 0% 0, 0 0; }
}

@keyframes tease-dust {
50% { opacity: 0.7; }
}

@keyframes tease-prism {
from { background-position: 0 0, 0 -100%; }
to { background-position: 0 0, 0 200%; }
}

@keyframes tease-pulse {
from { filter: brightness(1.4); }
to { filter: brightness(1); }
}

@keyframes tease-pulse-b {
from { filter: brightness(1.4); }
to { filter: brightness(1); }
}

.grid[data-stack-surge="stampede"] .reel.stack-surge::before {
content: "";
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
opacity: 1;
background:
radial-gradient(ellipse 85% 60% at 50% 55%, rgba(var(--tease-dust), 0.42), transparent 75%),
linear-gradient(0deg, rgba(var(--tease-dust), 0.36), transparent 36%);
box-shadow: inset 0 0 12px 2px rgba(var(--tease-dust), 0.65);
}

@media (prefers-reduced-motion: no-preference) {
.grid[data-tease-style="flame"] .reel.teasing::before {
animation: tease-embers 1.1s linear infinite, tease-spot-in 220ms ease-out;
}

.grid[data-tease-style="railway"] .reel.teasing::before {
animation: tease-headlamp 1.3s ease-in-out infinite, tease-spot-in 220ms ease-out;
}

.grid[data-tease-style="stampede"] .reel.teasing::before {
animation: tease-dust 0.9s ease-in-out infinite, tease-spot-in 220ms ease-out;
}

.grid[data-tease-style="shimmer"] .reel.teasing::before {
animation: tease-prism 1.4s ease-in-out infinite, tease-spot-in 220ms ease-out;
}

.grid[data-stack-surge="stampede"] .reel.stack-surge::before {
animation: tease-dust 0.9s ease-in-out infinite, tease-spot-in 220ms ease-out;
}

.grid[data-stack-surge] .reel.stack-surge-pulse {
animation: tease-pulse var(--tease-pulse-ms, 520ms) ease-out;
}

.grid[data-stack-surge] .reel.stack-surge-pulse:where(.replay-b) {
animation-name: tease-pulse-b;
}

.grid[data-tease-style]:not([data-tease-style="lightning"]) .reel.tease-pulse {
animation: tease-pulse var(--tease-pulse-ms, 520ms) ease-out;
}

.grid[data-tease-style]:not([data-tease-style="lightning"]) .reel.tease-pulse:where(.replay-b) {
animation-name: tease-pulse-b;
}
}

@media (prefers-reduced-motion: reduce) {
.grid[data-tease-style]:not([data-tease-style="lightning"]) .reel.teasing::before,
.grid[data-stack-surge] .reel.stack-surge::before {
animation: none;
}
}

/* Source: css/reel-motion.css */
:where(.strip.spinning) > .cell {
scale: 0.94 1.15;
animation: reel-stretch 120ms ease-in var(--reel-kick-ms, 0ms) backwards;
}

.strip.spinning .motion-layer {
animation: none;
}

:where(.strip.spinning) .sym-face {
filter: none;
}

:where(.aurora-top-strip.streaming, .cell-reel) > .cell {
animation: reel-stretch 120ms ease-in both;
}

:where(.strip.reel-land, .aurora-top-strip.reel-land) > .cell:where(:nth-child(-n + 8)),
.cell:where(.reel-land) {
animation: reel-land var(--reel-land-ms, 180ms) ease-out;
}

@keyframes reel-stretch {
from { scale: 1 1; }
to { scale: 0.94 1.15; }
}

@keyframes reel-land {
0% { scale: 0.94 1.15; }
40% { scale: 1.05 0.92; }
75% { scale: 0.99 1.02; }
100% { scale: 1 1; }
}

@media (prefers-reduced-motion: reduce) {
:where(.strip.spinning, .aurora-top-strip.streaming, .cell-reel) > .cell,
:where(.strip.reel-land, .aurora-top-strip.reel-land) > .cell,
.cell:where(.reel-land) {
animation: none;
}

:where(.strip.spinning) > .cell {
scale: none;
}
}

/* Source: css/cabinet-controls.css */

.controls {
flex: none;
margin: 4px -16px 0;
padding: 4px 16px max(5px, calc(var(--safe-bottom) + 5px));
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 22%),
linear-gradient(180deg, #2b3fb0, #182572 35%, #0d1650 70%, #070c34);
border-top: 1px solid var(--machine-accent);
box-shadow:
0 -2px 8px color-mix(in srgb, var(--machine-accent) 40%, transparent),
inset 0 2px 6px color-mix(in srgb, var(--machine-accent-2) 60%, transparent),
0 -6px 16px #0008;
}

.bet-row {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 44px;
align-items: stretch;
gap: 6px;
margin-bottom: 4px;
}

.bet {
position: relative;
display: flex;
min-width: 0;
}

.rush-button,
.league-button,
.sheet-close {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 48%, transparent 52%),
linear-gradient(180deg, #3a7aff, #1a3ab0 60%, #0d1e6a);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 #070826, 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 0 6px rgba(120, 180, 255, 0.5);
color: #fff;
}

.bet-step,
.bet-max,
.controls .deck-button {
min-width: 44px;
min-height: 48px;
width: 100%;
height: 100%;
margin: 0;
border: 1px solid color-mix(in srgb, var(--machine-accent-2) 50%, #2a66f0);
border-top: 2px solid var(--machine-accent);
border-bottom: 2px solid var(--machine-accent-2);
border-radius: 6px;
background:
linear-gradient(180deg, color-mix(in srgb, var(--machine-accent) 40%, transparent), transparent 42%, #3c06a433 48%),
linear-gradient(180deg, #5c9eff, #2a66f0 55%, #1a3fc4);
box-shadow:
inset 0 1px 3px color-mix(in srgb, var(--machine-accent) 60%, transparent),
inset 0 -3px 6px #36005a88, 0 3px 0 #160537,
0 0 7px color-mix(in srgb, var(--machine-accent-2) 55%, transparent);
color: #fff;
text-shadow: 0 2px 1px #403276, 0 0 3px #fff8;
}

.bet-step {
font-size: 1.7rem;
font-weight: 900;
line-height: 1;
}

.bet-step:active:not(:disabled),
.bet-max:active:not(:disabled),
.controls .deck-button:active:not(:disabled),
.rush-button:active,
.league-button:active,
.sheet-close:active {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 #070826;
}

.bet-max {
font-family: var(--display);
font-size: var(--type-key);
font-weight: 900;
letter-spacing: 0.02em;
line-height: 1;
}

.controls .deck-home {
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0;
background:
linear-gradient(180deg, #ffffff55, transparent 48%),
linear-gradient(180deg, #da48f5, #9623da 48%, #601190);
}

.controls .deck-home::before { content: none; }

.deck-home svg {
display: block;
width: 28px;
height: 28px;
margin: auto;
fill: none;
stroke: currentColor;
stroke-width: 2.8;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 2px 1px #4a106b);
}

.controls .deck-info {
font-size: 1.7rem;
font-style: italic;
font-weight: 900;
line-height: 1;
}

.bet-max:disabled,
.bet-step:disabled,
.controls .deck-button:disabled {
filter: saturate(0.45);
color: #c1b4e7;
border-color: #6555b0;
box-shadow: inset 0 1px 3px #b3baff44, 0 2px 0 #160537;
text-shadow: none;
cursor: default;
}

.controls button:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 3px;
}

.bet-value,
.win-box {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 0;
height: 44px;
padding: 1px 7px;
border-radius: 6px;
background:
linear-gradient(180deg, #050a30, #0b1352);
border: 1px solid color-mix(in srgb, var(--machine-accent-2) 50%, #0b1352);
box-shadow: inset 0 2px 6px #070115cc, 0 1px 0 color-mix(in srgb, var(--machine-accent-2) 35%, transparent);
line-height: 1.05;
}

.bet-value {
width: 100%;
}

.bet-label,
.win-label {
color: #fff;
font-size: 0.6rem;
font-weight: 800;
letter-spacing: 0.045em;
line-height: 12px;
white-space: nowrap;
text-shadow: 0 1px 2px #000;
}

.bet-value strong {
display: block;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-align: center;
font-family: var(--display);
font-size: var(--type-meter);
font-weight: 400;
font-variant-numeric: tabular-nums;
color: #ffdf32;
text-shadow: 0 1px 2px #512500, 0 0 7px #ffca2522;
}

.bet-value.raised strong {
text-shadow: 0 1px 2px #512500, 0 0 8px #ffca2555;
}

.denom-plate {
position: absolute;
z-index: 1;
top: -6px;
right: 6px;
min-width: 22px;
padding: 0 3px;
border-radius: 4px;
background: var(--plate-fill);
box-shadow: inset 0 0 0 1px var(--gold-deep);
color: var(--gold-light);
font-family: var(--display);
font-size: 11px;
line-height: 11px;
text-align: center;
text-shadow: 0 1px 0 #000;
pointer-events: none;
}

.denom-plate[hidden] {
display: none;
}

.denom-plate.step {
animation: denom-step 520ms ease-out;
}

@keyframes denom-step {
40% {
transform: scale(1.3);
box-shadow: inset 0 0 0 1px var(--gold), 0 0 8px rgba(255, 211, 77, 0.9);
}
}

@media (prefers-reduced-motion: reduce) {
.denom-plate.step {
animation: none;
}
}

.bet-value.short {
border-color: var(--ruby);
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 59, 78, 0.7);
}

.bet-value.short strong {
color: var(--ruby);
text-shadow: 0 0 6px rgba(255, 59, 78, 0.8);
}

.per-spin.low {
padding: 0 5px;
border-radius: 4px;
background: var(--plate-fill);
box-shadow: inset 0 0 0 1px var(--gold-deep);
color: var(--amber);
text-shadow: 0 1px 0 #000;
}

.bet-value.nudge,
.shop-button.nudge {
animation: bet-nudge 360ms ease;
}

.bet-step.buy {
position: relative;
}

.bet-step.buy::after {
content: "";
position: absolute;
top: -5px;
right: -5px;
width: 19px;
height: 19px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 3px rgba(255, 211, 77, 0.55));
pointer-events: none;
}

@keyframes bet-nudge {
0%, 100% { transform: translateX(0); }
20%, 60% { transform: translateX(-4px); }
40%, 80% { transform: translateX(4px); }
}

.win-box {
border-color: color-mix(in srgb, var(--machine-accent-2) 30%, transparent);
}

.win-display {
width: 100%;
overflow: hidden;
color: #ffdf32;
font-family: var(--display);
font-size: var(--type-meter);
flex-shrink: 0;
font-weight: 400;
line-height: 1;
letter-spacing: 0.01em;
text-align: center;
white-space: pre;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 2px #512500, 0 0 7px #ffca2522;
}

.win-display.idle {
opacity: 0.8;
}

.win-display.hit {
color: #ffdf32;
text-shadow: 0 0 7px rgba(255, 178, 30, 0.8), 0 0 1px #ffe9a0;
}

.buttons {
display: grid;
grid-template-columns: 44px 44px minmax(0, 1fr) 44px clamp(44px, 15vw, 60px);
align-items: stretch;
gap: 5px;
}

.rush-button {
position: relative;
flex: none;
width: 58px;
border-radius: 12px;
font-size: 1.5rem;
}

.badge {
position: absolute;
top: -8px;
right: -8px;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 11px;
background: var(--ruby);
border: 2px solid #fff;
color: #fff;
font-size: 0.75rem;
font-weight: 900;
line-height: 18px;
animation: badge 1s ease-in-out infinite alternate;
}

.badge[hidden] {
display: none;
}

.spin-button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 48px;
padding: 2px;
border-radius: 6px;
background:
linear-gradient(180deg, #b5ff6266, transparent 45%, #02712722 55%),
linear-gradient(180deg, #6cf51b, #28c322 46%, #0a9839 78%, #0a7934);
border: 2px solid #7def60;
border-bottom-color: #47d473;
box-shadow: inset 0 1px 3px #e5ffad99, inset 0 -3px 6px #05512188, 0 3px 0 #083d23, 0 0 10px #50e12d55;
color: #fff;
touch-action: none;
}

.spin-button > * {
pointer-events: none;
}

#spin-label {
font-family: var(--display);
font-size: var(--type-meter);
font-weight: 900;
letter-spacing: 0.05em;
line-height: 1;
color: #fff;
-webkit-text-stroke: 2px #0a5a24;
paint-order: stroke fill;
text-shadow: 0 2px 0 #064018, 0 3px 6px rgba(0, 0, 0, 0.5);
}

.per-spin {
max-width: 100%;
margin-top: 2px;
font-size: clamp(0.44rem, 1.8vw, 0.6rem);
font-weight: 700;
line-height: 1.2;
text-transform: uppercase;
white-space: normal;
text-align: center;
color: #e0ffe8;
text-shadow: 0 1px 0 #064018;
}

.spin-button.pulse {
animation: press 140ms ease-out;
}

.spin-button.pulse:where(.replay-b) {
animation-name: press-b;
}

.spin-button {
transition: filter 150ms ease-out, opacity 150ms ease-out;
}

.spin-button:disabled,
.spin-button.broke,
.spin-button.busy {
filter: grayscale(1);
opacity: 0.65;
box-shadow: inset 0 1px 3px #fff3, inset 0 -3px 6px #0006, 0 3px 0 #0006;
cursor: default;
animation: none;
}

.spin-button:disabled .per-spin,
.spin-button.short .per-spin {
visibility: hidden;
}

.spin-button:disabled .turbo-badge,
.spin-button.broke .turbo-badge,
.spin-button.busy .turbo-badge {
animation: none;
}

.spin-button.stop {
background:
linear-gradient(180deg, #fff6, transparent 45%),
linear-gradient(180deg, #ff727e, #e0182e 48%, #8a0014);
border-color: #ff8595;
box-shadow: inset 0 -3px 6px #60000888, 0 3px 0 #3a0008, 0 0 10px #ff3b4e66;
}

.spin-button.stop #spin-label {
-webkit-text-stroke-color: #7a0012;
text-shadow: 0 2px 0 #4a0008, 0 3px 6px rgba(0, 0, 0, 0.5);
}

.spin-button.stop .per-spin {
visibility: hidden;
}


.spin-button.auto {
background:
linear-gradient(180deg, #fff6, transparent 45%),
linear-gradient(180deg, #ff818e, #e0213a 48%, #8a0a1c);
border-color: #ff8595;
box-shadow: inset 0 -3px 6px #60000888, 0 3px 0 #3a0008, 0 0 10px #ff3b4e66;
animation: auto-glow 1.2s ease-in-out infinite alternate;
}

.spin-button.auto #spin-label {
-webkit-text-stroke-color: #6a0016;
text-shadow: 0 2px 0 #4a0010, 0 3px 6px rgba(0, 0, 0, 0.5);
}

.spin-button.auto .per-spin {
color: #ffe0e4;
text-shadow: 0 1px 0 #4a0010;
}


/* Source: css/cabinet-spin-options.css */

.turbo-toggle {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: 48px;
margin-bottom: 8px;
padding: 0 10px 0 12px;
border-radius: 14px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%),
linear-gradient(180deg, #2c0f4e, #13062a);
border: 2px solid rgba(255, 212, 90, 0.55);
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
color: var(--muted);
transition: border-color 160ms ease, box-shadow 160ms ease;
}

.turbo-toggle.on {
border-color: var(--gold);
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 211, 77, 0.45);
}

.turbo-bolt {
position: relative;
display: block;
flex: none;
width: 20px;
height: 28px;
filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7));
}

.turbo-bolt::before,
.turbo-badge::after {
content: "";
position: absolute;
inset: 0;
clip-path: polygon(62% 0, 8% 58%, 44% 58%, 30% 100%, 92% 38%, 56% 38%, 80% 0);
background: linear-gradient(180deg, #9a8fb0, #5e5476);
}

.turbo-toggle.on .turbo-bolt {
filter: drop-shadow(0 0 4px rgba(255, 220, 90, 0.95)) drop-shadow(0 1px 0 var(--gold-deep));
}

.turbo-toggle.on .turbo-bolt::before,
.turbo-badge::after {
background: var(--gold-bevel);
}

.turbo-name {
flex: 1;
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.14em;
text-align: left;
color: #b9a3d4;
}

.turbo-toggle.on .turbo-name {
color: var(--gold);
text-shadow: 0 2px 0 var(--gold-deep), 0 0 10px rgba(255, 211, 77, 0.6);
}

.turbo-pill {
position: relative;
flex: none;
width: 66px;
height: 32px;
border-radius: 8px;
background: linear-gradient(180deg, #0c0418, #2a1846);
border: 2px solid #8a6a3a;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
transition: background 160ms ease, border-color 160ms ease;
}

.turbo-pill::before {
content: "OFF";
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
font-family: var(--display);
font-size: 0.78rem;
letter-spacing: 0.08em;
color: #9a88b4;
}

.turbo-toggle.on .turbo-pill {
background: radial-gradient(120% 90% at 50% 20%, #7aff9a, #1fae4c 50%, #0a6a2a);
border-color: var(--gold);
}

.turbo-toggle.on .turbo-pill::before {
content: "ON";
right: auto;
left: 9px;
color: #fff;
text-shadow: 0 1px 0 #064018;
}

.turbo-knob {
position: absolute;
top: 2px;
left: 2px;
width: 24px;
height: 24px;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, #f4f0fa, #9a90aa 70%, #5a5068);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
transition: transform 160ms cubic-bezier(0.3, 1.4, 0.5, 1), background 160ms ease;
}

.turbo-toggle.on .turbo-knob {
transform: translateX(34px);
background: radial-gradient(circle at 40% 30%, #fffbe0, var(--gold) 55%, var(--gold-dark));
}

.spin-button {
position: relative;
}

.turbo-badge {
position: absolute;
top: -8px;
right: 4px;
display: none;
width: 23px;
height: 23px;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, #7a2fc0, #2a0a52 65%, #12041f);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 211, 77, 0.8);
animation: turbo-badge-glow 1.6s ease-in-out infinite alternate;
}

.spin-button.turbo .turbo-badge {
display: block;
}

.turbo-badge::after {
inset: 3px 5px 3px 4px;
}

.refill {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
margin: 2px 0 10px;
padding: 8px 0 14px;
}

.refill-ribbon {
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.08em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.refill-head {
color: var(--muted);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.06em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.refill-art {
display: grid;
place-items: center;
width: 112px;
height: 112px;
margin: -14px 0 -2px;
filter: drop-shadow(0 0 10px rgba(255, 212, 90, 0.45));
}

.refill-pile {
width: 100%;
height: 100%;
background: url("../art/offers/coin-stacks.webp") 0 0 / 300% 200% no-repeat;
}

.refill-name {
color: var(--text);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.refill-amounts {
display: flex;
align-items: baseline;
justify-content: center;
gap: 10px;
}

.refill-coins {
font-family: var(--display);
font-size: 2rem;
line-height: 1.1;
font-variant-numeric: tabular-nums;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.refill-coins::after {
content: " COINS";
font-size: 0.5em;
letter-spacing: 0.08em;
}

.refill-was {
color: var(--text);
font-family: var(--display);
font-size: 1rem;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
text-decoration: line-through;
text-decoration-color: color-mix(in srgb, var(--ruby) 62%, transparent);
text-decoration-thickness: 1px;
}

.refill-timer {
margin: 4px 0 8px;
padding: 3px 12px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.45);
border: 1px solid var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.8rem;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
text-shadow: 0 1px 0 #000;
}

.refill-buy {
position: relative;
overflow: hidden;
width: min(100%, 240px);
min-height: 58px;
border-radius: 16px;
border: 3px solid var(--gold-light);
background: var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--gold-deep), 0 6px 10px rgba(0, 0, 0, 0.5);
color: var(--gold-ink);
font-family: var(--display);
font-size: 1.7rem;
letter-spacing: 0.06em;
transition: transform 60ms ease-out;
}

.refill-buy > span {
position: relative;
z-index: 1;
}

.refill-buy::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
translate: -101% 0;
pointer-events: none;
}

.refill-buy:active {
transform: translateY(3px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 var(--gold-deep);
}

.refill-status {
max-width: 100%;
margin-top: 10px;
color: var(--text);
font-family: var(--display);
font-size: 0.95rem;
line-height: 1.2;
letter-spacing: 0.035em;
overflow-wrap: anywhere;
text-wrap: balance;
text-shadow: 0 1px 0 #000;
}

.refill.ended .refill-ribbon,
.refill.ended .refill-was {
display: none;
}

.refill.ended .refill-timer {
border-color: rgba(216, 184, 240, 0.4);
color: var(--muted);
}

@keyframes turbo-badge-glow {
from { box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 6px rgba(255, 211, 77, 0.5); }
to { box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 211, 77, 1); }
}

@keyframes refill-bob {
0%, 100% { transform: translateY(0) rotate(-4deg); }
50% { transform: translateY(-4px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
.turbo-badge,
.refill-art,
.refill-buy::after {
animation: none;
}
.turbo-toggle,
.turbo-pill,
.turbo-knob,
.refill-buy {
transition: none;
}
}


.auto-picker {
position: fixed;
inset: 0;
z-index: 42;
display: flex;
justify-content: center;
background: rgba(8, 0, 20, 0);
pointer-events: none;
visibility: hidden;
transition: background 160ms ease, visibility 0s linear 180ms;
}

.auto-picker.open {
background: rgba(8, 0, 20, 0.55);
pointer-events: auto;
visibility: visible;
transition: background 160ms ease, visibility 0s;
}

.auto-panel {
width: 100%;
max-width: 360px;
max-height: var(--popup-height);
overflow-y: auto;
overscroll-behavior: contain;
padding: 10px 12px 12px;
border-radius: 18px;
background: linear-gradient(180deg, #4a1680, var(--navy) 70%, var(--navy-deep));
border: 3px solid var(--gold);
box-shadow: 0 0 0 2px var(--gold-deep), 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 79, 216, 0.35);
text-align: center;
transform: scale(0.96);
opacity: 0;
transition: transform 180ms ease-out, opacity 140ms ease;
}

.auto-picker.open .auto-panel {
transform: none;
opacity: 1;
}

.auto-title {
display: block;
margin-bottom: 8px;
font-family: var(--display);
font-size: 1.6rem;
letter-spacing: 0.08em;
color: var(--gold);
text-shadow: 0 2px 0 var(--gold-deep), 0 0 10px rgba(255, 211, 77, 0.6);
}

.auto-counts {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}

.auto-count {
min-height: 56px;
border-radius: 14px;
background: radial-gradient(120% 90% at 50% 20%, #7aff9a, #1fae4c 45%, #0a6a2a 80%);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 #03300f, inset 0 -3px 6px rgba(0, 40, 10, 0.5);
color: #fff;
font-family: var(--display);
font-size: 1.5rem;
font-weight: 900;
-webkit-text-stroke: 2px #0a5a24;
paint-order: stroke fill;
text-shadow: 0 2px 0 #064018;
}

.auto-count.last {
border-color: var(--gold-light);
box-shadow: 0 0 0 2px var(--neon-gold), 0 4px 0 var(--go-dark), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.auto-count:active {
transform: translateY(3px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 #03300f, inset 0 -3px 6px rgba(0, 40, 10, 0.5);
}

/* Source: css/big-win.css */
.big-win {
position: fixed;
inset: 0;
z-index: 44;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2vh;
padding: var(--safe-top) 16px var(--safe-bottom);
overflow: hidden;
background: radial-gradient(circle at 50% 45%, rgb(98, 25, 145), rgb(10, 3, 25) 70%);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 220ms ease, visibility 0s linear 220ms;
touch-action: manipulation;
}

.big-win.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: opacity 220ms ease;
}

.big-win.leaving {
opacity: 0.001;
visibility: visible;
pointer-events: auto;
transition: opacity var(--big-win-exit) cubic-bezier(0.4, 0, 0.2, 1);
}

.big-win-sign,
.big-win-amount {
transition: scale var(--big-win-exit, 0ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.big-win.leaving .big-win-sign,
.big-win.leaving .big-win-amount {
scale: 0.94;
}

.big-win:not(.show, .leaving) .big-win-rays,
.big-win:not(.show, .leaving) .big-win-mark {
animation-play-state: paused;
}

.big-win-rays {
--ray: rgba(255, 211, 77, 0.3);
--glow: rgba(255, 230, 140, 0.6);
position: absolute;
left: 50%;
top: 45%;
width: 120vmax;
height: 120vmax;
margin: -60vmax 0 0 -60vmax;
contain: strict;
border-radius: 50%;
background:
radial-gradient(circle, var(--glow), transparent 30%),
repeating-conic-gradient(var(--ray) 0 6deg, transparent 6deg 15deg);
-webkit-mask-image: radial-gradient(circle, #000 15%, transparent 55%);
mask-image: radial-gradient(circle, #000 15%, transparent 55%);
animation: rays 8s linear infinite;
}

.big-win:is(.show, .leaving) .big-win-rays {
will-change: transform;
}

.big-win.huge .big-win-rays {
--ray: rgba(66, 230, 255, 0.3);
--glow: rgba(140, 255, 200, 0.6);
animation-duration: 5s;
}

.big-win.mega .big-win-rays {
--ray: rgba(255, 79, 216, 0.36);
--glow: rgba(255, 140, 120, 0.7);
animation-duration: 3s;
}

.big-win.super .big-win-rays {
--ray: rgba(150, 132, 255, 0.42);
--glow: rgba(120, 240, 255, 0.75);
animation-duration: 2.2s;
}

.big-win-coins {
position: absolute;
inset: 0;
contain: strict;
overflow: hidden;
pointer-events: none;
}

.big-win-sign {
position: relative;
display: flex;
align-items: center;
gap: 3.5vw;
max-width: 100%;
}

.big-win-mark {
flex: none;
width: clamp(2.2rem, 10vw, 3.4rem);
height: clamp(2.2rem, 10vw, 3.4rem);
filter: drop-shadow(0 0 10px rgba(255, 200, 90, 0.85));
animation: lantern 1.6s ease-in-out infinite alternate;
}

.big-win-title {
font-family: var(--display);
font-size: clamp(2.2rem, 11.5vw, 4rem);
--win-enter: big-win-stamp;
line-height: 1;
white-space: nowrap;
--fill: var(--gold-bevel);
background-image: var(--sheen, linear-gradient(transparent, transparent)), var(--fill);
background-size: 300% 100%, 100% 100%;
background-position: 100% 0, 0 0;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 #6a0016) drop-shadow(0 0 18px rgba(255, 106, 0, 0.9));
}

.big-win.huge .big-win-title {
--fill: linear-gradient(180deg, #f0fff8, #8affd0 30%, #1fbf8a 50%, #0a7a6a 54%, #9af0ff 78%, #108aa0);
filter: drop-shadow(0 2px 0 #054030) drop-shadow(0 4px 0 #02303a) drop-shadow(0 0 20px var(--neon-cyan));
}

.big-win.mega .big-win-title {
font-size: clamp(2.4rem, 12.5vw, 4.4rem);
--fill: linear-gradient(180deg, #fff0fa, #ffc1ec 28%, #ff8acb 50%, #f75db2 54%, #ffc3af 78%, #ff8c9d);
filter: drop-shadow(0 2px 0 #4a0030) drop-shadow(0 4px 0 #2a0016) drop-shadow(0 0 22px var(--neon-pink));
}

.big-win.super .big-win-title {
font-size: clamp(2.5rem, 13vw, 4.6rem);
--fill: linear-gradient(180deg, #ffffff, #c9f6ff 22%, #8fb4ff 40%, #b07bff 50%, #5a2fd0 54%, #ff9ee8 70%, #ffe27a 86%, #ffb347);
filter: drop-shadow(0 2px 0 #24105a) drop-shadow(0 4px 0 #120634) drop-shadow(0 0 24px rgba(150, 132, 255, 0.95));
}

.big-win-title.step {
animation: big-win-stamp 520ms ease-out;
}

.big-win:is(.mega, .super) .big-win-sign {
animation: big-win-shake 400ms ease-in-out 2;
}

.big-win-amount {
position: relative;
min-width: 60%;
max-width: 100%;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
padding: 6px 22px;
font-family: var(--display);
font-size: clamp(2.2rem, 12vw, 3.4rem);
font-variant-numeric: tabular-nums;
text-align: center;
--fill: var(--gold-bevel);
background-image: var(--sheen, linear-gradient(transparent, transparent)), var(--fill);
background-size: 300% 100%, 100% 100%;
background-position: 100% 0, 0 0;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.big-win-amount.landed {
animation: big-win-step 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.big-win.jackpot .big-win-amount {
width: 100%;
min-width: 0;
white-space: nowrap;
}

.big-win.jackpot.grand .big-win-rays {
--ray: var(--ruby-ray);
--glow: var(--ruby-glow);
animation-duration: 4s;
}

.big-win.jackpot.major .big-win-rays {
--ray: var(--jade-ray);
--glow: var(--jade-glow);
animation-duration: 5s;
}

.big-win.jackpot.grand .big-win-title {
font-size: clamp(2.6rem, 14vw, 4.6rem);
--fill: var(--ruby-bevel);
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 var(--ruby-deep)) drop-shadow(0 0 22px var(--ruby));
}

.big-win.jackpot.major .big-win-title {
font-size: clamp(2.4rem, 13vw, 4.2rem);
--fill: var(--jade-bevel);
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 var(--jade-deep)) drop-shadow(0 0 20px var(--jade));
}


.big-win-vignette {
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0;
background: radial-gradient(ellipse at 50% 50%, transparent 45%, var(--vignette, transparent) 100%);
box-shadow: inset 0 0 9vmin var(--vignette, transparent);
transition: opacity 220ms ease;
}

.big-win.glow .big-win-vignette {
opacity: 1;
}

.big-win.pulsing .big-win-vignette {
animation: big-win-vignette var(--vignette-pulse, 500ms) ease-out infinite;
}

.big-win-sign.stamp::after {
content: "";
position: absolute;
z-index: -2;
inset: -25% -8%;
border: 3px solid var(--gold-light);
border-radius: 50%;
box-shadow: 0 0 12px var(--gold-light), inset 0 0 8px var(--gold-light);
pointer-events: none;
opacity: 0;
animation: big-win-impact 340ms ease-out 180ms both;
}

@keyframes big-win-stamp {
0% { transform: translateY(-0.65em) scale(1.7, 1.85); opacity: 0; }
34% { transform: translateY(0.06em) scale(1.14, 0.72); opacity: 1; }
62% { transform: translateY(-0.04em) scale(0.96, 1.1); }
100% { transform: none; opacity: 1; }
}

@keyframes big-win-impact {
0% { transform: scale(0.45, 0.3); opacity: 0; }
20% { opacity: 0.85; }
100% { transform: scale(1.35, 1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.big-win-coins { display: none; }
.big-win-sign.stamp::after { display: none; animation: none; }
.big-win-title.step { animation: none; }
}

/* Source: css/big-win-art.css */

.big-win-sign {
--plaque: url("../art/big-win/plaque-big.webp");
--plaque-y: clamp(22px, 6.4vw, 34px);
margin-block: calc(var(--plaque-y) * 0.72);
isolation: isolate;
}

.big-win-sign::before {
content: "";
position: absolute;
z-index: -1;
inset: calc(var(--plaque-y) * -0.72) calc(var(--plaque-y) * -0.5);
border-style: solid;
border-width: var(--plaque-y) calc(var(--plaque-y) * 1.21);
border-image: var(--plaque) 86 104 fill / var(--plaque-y) calc(var(--plaque-y) * 1.21) stretch;
filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
pointer-events: none;
}

.big-win.huge .big-win-sign { --plaque: url("../art/big-win/plaque-huge.webp"); }
.big-win:is(.mega, .super) .big-win-sign { --plaque: url("../art/big-win/plaque-mega.webp"); }
.big-win.super .big-win-sign::before { filter: hue-rotate(-75deg) saturate(1.35) brightness(1.1) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
.big-win.jackpot.grand .big-win-sign { --plaque: url("../art/big-win/plaque-grand.webp"); }
.big-win.jackpot.major .big-win-sign { --plaque: url("../art/big-win/plaque-major.webp"); }

.big-win.jackpot.scene {
background: none;
}

.big-win.jackpot.scene::before {
content: "";
position: absolute;
inset: 0;
background: var(--big-win-scene) center / cover no-repeat var(--bg-deep);
opacity: 0.9;
pointer-events: none;
}

.big-win[data-big-win-family="stampede"] .big-win-amount {
--count-plate: radial-gradient(120% 140% at 50% 0%, rgba(108, 42, 10, 0.94), rgba(26, 8, 2, 0.96) 70%);
}

.big-win[data-big-win-family="link"] .big-win-amount {
--count-plate: radial-gradient(120% 140% at 50% 0%, rgba(16, 46, 98, 0.94), rgba(4, 12, 34, 0.96) 70%);
}

.big-win[data-big-win-family="imperial"] .big-win-amount {
--count-plate: radial-gradient(120% 140% at 50% 0%, rgba(104, 14, 34, 0.94), rgba(28, 3, 12, 0.96) 70%);
}

.big-win[data-big-win-family="mascot"] .big-win-amount {
--count-plate: radial-gradient(120% 140% at 50% 0%, rgba(14, 76, 42, 0.94), rgba(4, 24, 14, 0.96) 70%);
}

.big-win-amount {
--count-plate: radial-gradient(120% 140% at 50% 0%, rgba(58, 20, 96, 0.94), rgba(8, 3, 22, 0.96) 70%);
background-image: var(--sheen, linear-gradient(transparent, transparent)), var(--fill), var(--count-plate);
background-size: 300% 100%, 100% 100%, 100% 100%;
background-position: 100% 0, 0 0, 0 0;
-webkit-background-clip: text, text, padding-box;
background-clip: text, text, padding-box;
border: 2px solid var(--gold-dark);
border-radius: 16px;
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 242, 175, 0.35), 0 0 22px 8px rgba(5, 1, 15, 0.65);
filter: none;
text-shadow: none;
}

.big-win-shower {
display: none;
position: absolute;
left: 50%;
top: 3%;
width: min(100%, 760px);
height: 70%;
translate: -50% 0;
container-type: size;
pointer-events: none;
}

.big-win:is(.huge, .mega, .super, .jackpot) .big-win-shower {
display: block;
}

.big-win-shower i {
--size: min(calc(var(--s) * 1px), calc(var(--s) * 0.25cqh));
position: absolute;
top: 0;
left: calc((100% - var(--size)) * var(--x) / 100);
width: var(--size);
height: calc(100% - var(--size));
opacity: 0;
pointer-events: none;
animation: big-win-coin-fall calc(var(--t) * 1s) linear calc(var(--d) * 1s) infinite;
}

.big-win-shower i::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: var(--size);
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
animation: big-win-coin-flip calc(var(--t) * 0.45s) linear calc(var(--d) * 1s) infinite;
}

.big-win:not(.show, .leaving) .big-win-shower i,
.big-win:not(.show, .leaving) .big-win-shower i::before,
body.scene-motion-paused .big-win-shower i,
body.scene-motion-paused .big-win-shower i::before {
animation-play-state: paused;
}

@keyframes big-win-coin-fall {
0% { transform: translateY(0); opacity: 0; }
12%, 86% { opacity: 1; }
100% { transform: translateY(100%); opacity: 0; }
}

@keyframes big-win-coin-flip {
to { transform: rotateY(1turn); }
}

@media (prefers-reduced-motion: reduce) {
.big-win:is(.huge, .mega, .super, .jackpot) .big-win-shower {
display: none;
}
}

/* Source: css/atlas-shelves.css */

.sheet-panel.atlas-panel {
height: 88vh;
height: 88dvh;
max-height: calc(100vh - var(--safe-top) - 26px);
max-height: calc(100dvh - var(--safe-top) - 26px);
gap: 8px;
}

.atlas-head {
flex: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 0 2px;
}

.atlas-season {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.atlas-dust {
display: flex;
align-items: center;
min-height: 44px;
gap: 5px;
padding: 3px 12px 4px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--bg-deep), var(--bg));
border: 2px solid var(--gold-dark);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
font-family: var(--display);
text-shadow: 0 1px 0 #000;
}

.atlas-dust-icon {
color: var(--neon-cyan);
font-size: 0.95rem;
text-shadow: 0 1px 0 #000;
}

.atlas-dust-amount {
color: var(--gold-light);
font-size: 1.1rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
}

.atlas-dust-name {
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.atlas-album {
flex: none;
display: grid;
grid-template-columns: 52px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: 8px 2px 12px;
border-bottom: 1px solid var(--hairline);
}

.atlas-album.claimed-now,
.atlas-set.claimed-now {
animation: atlas-claimed 700ms ease-out;
}

.atlas-album-art {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 48px;
}

.atlas-book,
.atlas-button-icon {
position: relative;
display: block;
width: 40px;
height: 40px;
background: url("../art/lobby/albums.webp") center / contain no-repeat;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.atlas-album-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}

.atlas-album-count {
font-family: var(--display);
font-size: 1.15rem;
letter-spacing: 0.06em;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.atlas-album-prize {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
line-height: 1.25;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.atlas-album.complete .atlas-album-prize {
color: var(--gold-light);
}

.atlas-claim {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 76px;
max-width: 240px;
min-height: 56px;
padding: 3px 8px;
border-radius: 10px;
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
border: 3px solid var(--gold-deep);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
color: var(--muted);
font-family: var(--display);
line-height: 1.1;
text-shadow: 0 1px 0 #000;
}

.atlas-claim-label {
font-size: 1.25rem;
letter-spacing: 0.08em;
}

.atlas-claim-reward {
font-size: 0.72rem;
letter-spacing: 0.02em;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}

.atlas-set.complete .atlas-claim,
.atlas-album.complete .atlas-claim {
background: var(--gold-bevel);
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
color: var(--gold-deep);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.atlas-set.complete .atlas-claim:active,
.atlas-album.complete .atlas-claim:active {
transform: translateY(2px);
}

.atlas-set.claimed .atlas-claim,
.atlas-album.claimed .atlas-claim {
opacity: 0.5;
}

.atlas-view {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}

.atlas-view[hidden] {
display: none;
}

.atlas-albums,
.atlas-sets {
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
}

.atlas-albums {
gap: 10px;
padding: 2px 2px 8px;
}

.atlas-shelf {
flex: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px 8px;
padding: 8px 0 4px;
}

.atlas-medal,
.atlas-chip {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 0;
background: none;
border: 0;
color: var(--text);
font-family: var(--display);
}

.atlas-medal {
width: calc((100% - 16px) / 3);
gap: 4px;
}

.atlas-medal-ring {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 84px;
height: 84px;
overflow: hidden;
border-radius: 50%;
background:
radial-gradient(circle at 50% 38%, rgba(239, 52, 201, 0.45), transparent 62%),
radial-gradient(circle at 50% 50%, #5a2a9e, #1c0a40 72%);
border: 3px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 4px 0 rgba(0, 0, 0, 0.5);
}

.atlas-medal-ring .atlas-card-art {
width: 78%;
height: 78%;
}

.atlas-medal-ring .atlas-card-img {
width: 100%;
}


.atlas-medal-new {
position: absolute;
top: 0;
right: calc(50% - 46px);
min-width: 22px;
height: 22px;
padding: 0 4px;
border-radius: 50%;
background: var(--ruby);
border: 2px solid var(--gold-deep);
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 0.75rem;
line-height: 18px;
text-align: center;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.atlas-medal-new[hidden] {
display: none;
}

.atlas-medal-name {
max-width: 100%;
color: var(--text);
font-size: 0.75rem;
letter-spacing: 0.03em;
line-height: 1.1;
text-align: center;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.atlas-medal-count {
min-width: 48px;
padding: 2px 8px 1px;
border-radius: 6px;
background: linear-gradient(180deg, var(--bg-deep), var(--bg));
border: 1px solid var(--gold-dark);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
color: var(--gold-light);
font-size: 0.8rem;
letter-spacing: 0.04em;
text-align: center;
font-variant-numeric: tabular-nums;
}

.atlas-medal.complete .atlas-medal-ring,
.atlas-chip.complete .atlas-medal-ring {
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 211, 77, 0.9);
animation: atlas-ready 1.6s ease-in-out infinite;
}

.atlas-medal.complete .atlas-medal-count {
background: var(--gold-bevel);
border-color: var(--gold-deep);
color: var(--gold-deep);
}

.atlas-medal.claimed .atlas-medal-count {
color: var(--gold);
}

.atlas-medal:active .atlas-medal-ring,
.atlas-chip:active .atlas-medal-ring {
transform: translateY(2px);
}

.atlas-track-wrap {
flex: none;
padding: 6px 0 2px;
border-top: 1px solid var(--hairline);
}

.atlas-track-title {
margin-bottom: 6px;
color: var(--muted);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.08em;
}

.atlas-track {
position: relative;
display: flex;
justify-content: space-between;
align-items: flex-start;
}

.atlas-track-bar {
position: absolute;
left: 24px;
right: 24px;
top: 19px;
height: 8px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
box-shadow: inset 0 1px 2px #000, 0 0 0 1px var(--gold-deep);
}

.atlas-track-fill {
display: block;
height: 100%;
border-radius: 4px;
background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
transition: width 400ms ease-out;
}

.atlas-track-done,
.atlas-stop-seal {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 50%, var(--gold-dark));
border: 2px solid var(--gold-deep);
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
color: var(--gold-deep);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.02em;
}

.atlas-stop {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
min-width: 44px;
min-height: 44px;
padding: 0;
background: none;
border: 0;
color: var(--muted);
font-family: var(--display);
}

.atlas-stop .atlas-coin {
width: 32px;
height: 32px;
margin: 7px 0 1px;
filter: grayscale(0.6) brightness(0.7);
}

.atlas-stop-amount {
color: var(--gold-light);
font-size: 0.8rem;
letter-spacing: 0.02em;
text-shadow: 0 1px 0 #000;
font-variant-numeric: tabular-nums;
}

.atlas-stop-sets {
font-size: 0.7rem;
letter-spacing: 0.04em;
white-space: nowrap;
}

.atlas-stop.reached .atlas-coin,
.atlas-stop.ready .atlas-coin,
.atlas-stop.claimed .atlas-coin,
.atlas-stop-album.ready .atlas-stop-seal {
filter: none;
}

.atlas-stop.ready .atlas-coin {
box-shadow: 0 0 14px rgba(255, 211, 77, 1);
animation: atlas-ready 1.6s ease-in-out infinite;
}

.atlas-stop.ready .atlas-stop-sets {
color: var(--gold-light);
}

.atlas-stop.claimed {
opacity: 0.6;
}

.atlas-stop.claimed-now .atlas-coin {
animation: atlas-claimed 700ms ease-out;
}

.atlas-stop-album .atlas-stop-seal {
filter: grayscale(0.6) brightness(0.7);
}

.atlas-stop-album.claimed .atlas-stop-seal {
filter: none;
opacity: 0.6;
}

.atlas-coin {
flex: none;
display: block;
width: 26px;
height: 26px;
border-radius: 50%;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}


/* Source: css/atlas-cards.css */
.atlas-book-view {
gap: 6px;
}

.atlas-sets {
flex: 1 1 auto;
min-height: 0;
padding: 2px 2px 8px;
}

.atlas-set {
display: flex;
flex-direction: column;
gap: 12px;
}

.atlas-set[hidden] {
display: none;
}

.atlas-set-head {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}

.atlas-set-name {
max-width: 100%;
overflow: hidden;
font-family: var(--display);
font-size: 1.35rem;
letter-spacing: 0.05em;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.atlas-set-bar {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 140px;
height: 18px;
overflow: hidden;
border-radius: 9px;
background: rgba(0, 0, 0, 0.6);
box-shadow: inset 0 1px 3px #000, 0 0 0 1px var(--gold-deep);
}

.atlas-set-fill {
position: absolute;
left: 0;
top: 0;
bottom: 0;
border-radius: 9px;
background: linear-gradient(180deg, #8dff8a, #2fbf3a 55%, #1a8a28);
transition: width 400ms ease-out;
}

.atlas-set-count {
position: relative;
color: #fff;
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000, 0 0 3px #000;
}

.atlas-set.complete .atlas-set-fill {
background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
}

.atlas-set .atlas-grid {
row-gap: 18px;
padding-top: 8px;
}

.atlas-slot-stars {
position: absolute;
left: 50%;
top: 0;
z-index: 1;
transform: translate(-50%, -55%);
color: var(--gold);
font-family: var(--display);
font-size: 12px;
line-height: 1;
letter-spacing: -0.04em;
white-space: nowrap;
text-shadow: 0 0 5px rgba(255, 211, 77, 0.8), 0 1px 0 var(--gold-deep), 0 2px 2px #000;
}

.atlas-slot.missing .atlas-slot-stars {
color: var(--gold-dark);
text-shadow: 0 1px 0 #000;
}

#atlas-sheet .atlas-card-stars {
display: none;
}

#atlas-sheet .atlas-card-count {
left: 0.35em;
right: auto;
}

.atlas-slot-new {
position: absolute;
top: 10px;
right: -2px;
z-index: 1;
display: none;
padding: 2px 5px 0;
border-radius: 4px;
background: var(--gold-bevel);
border: 1px solid var(--gold-deep);
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
color: var(--gold-deep);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.06em;
}

.atlas-slot.fresh .atlas-slot-new {
display: block;
}

.atlas-set-prize {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding-top: 4px;
}

.atlas-set-prize .atlas-coin {
width: 34px;
height: 34px;
}

.atlas-set-prize .atlas-claim-reward {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.4rem;
letter-spacing: 0.03em;
text-shadow: 0 1px 0 var(--gold-deep), 0 2px 2px #000;
}

.atlas-strip-row {
flex: none;
display: flex;
align-items: center;
gap: 6px;
padding-top: 6px;
border-top: 1px solid var(--hairline);
}

.atlas-back {
flex: none;
min-width: 56px;
min-height: 44px;
padding: 0 6px;
background: none;
border: 0;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.atlas-strip {
flex: 1 1 auto;
display: flex;
justify-content: space-around;
min-width: 0;
}

.atlas-chip {
min-width: 44px;
min-height: 44px;
justify-content: center;
}

.atlas-chip .atlas-medal-ring {
width: 44px;
height: 44px;
border-width: 2px;
opacity: 0.7;
}

.atlas-chip.current .atlas-medal-ring {
opacity: 1;
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 12px rgba(255, 211, 77, 0.8);
}

.atlas-chip .atlas-medal-new {
top: -6px;
right: -8px;
}

.atlas-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}

.atlas-slot {
position: relative;
display: block;
}

.atlas-slot.got-now .atlas-card {
animation: atlas-got 650ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.atlas-card {
--frame: var(--gold-dark);
--glow: rgba(255, 211, 77, 0.15);
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
aspect-ratio: 3 / 4;
padding: 1.1em 0.3em 0.35em;
overflow: hidden;
border-radius: 0.6em;
background:
radial-gradient(1px 1px at 20% 30%, #fff, transparent),
radial-gradient(1px 1px at 75% 18%, #fff, transparent),
radial-gradient(1px 1px at 60% 62%, rgba(255, 255, 255, 0.8), transparent),
radial-gradient(80% 55% at 50% 42%, rgba(239, 52, 201, 0.35), transparent 70%),
linear-gradient(180deg, #3b1466, #160733);
border: 2px solid var(--frame);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 10px var(--glow);
font-size: 13px;
}

.atlas-card.r2 { --frame: var(--gold); --glow: rgba(59, 139, 255, 0.55); }
.atlas-card.r3 { --frame: var(--gold-light); --glow: rgba(255, 79, 216, 0.7); }
.atlas-card.r4 {
--frame: #fff6c8;
--glow: rgba(255, 211, 77, 0.9);
background:
radial-gradient(1px 1px at 20% 30%, #fff, transparent),
radial-gradient(1px 1px at 75% 18%, #fff, transparent),
radial-gradient(80% 55% at 50% 42%, rgba(255, 211, 77, 0.45), transparent 70%),
conic-gradient(from 200deg at 50% 45%, #4a1580, #7a1f8c, #2a1a7a, #4a1580);
}

.atlas-card.r2,
.atlas-card.r3,
.atlas-card.r4 {
border-width: 3px;
}

.atlas-card.r4:not(.missing) {
animation: atlas-legend 2.4s ease-in-out infinite;
}

.atlas-card-art {
flex: 1 1 auto;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}

.atlas-card-img {
display: block;
width: 86%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.atlas-card-stars {
position: absolute;
top: 0.2em;
left: 0.4em;
color: var(--gold);
font-size: 0.75em;
letter-spacing: -0.08em;
text-shadow: 0 0 4px rgba(255, 211, 77, 0.8), 0 1px 1px #000;
}

.atlas-card-count {
position: absolute;
top: 0.1em;
right: 0.35em;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.85em;
text-shadow: 0 1px 2px #000;
}

.atlas-card-name {
flex: none;
max-width: 100%;
color: var(--text);
font-family: var(--display);
font-size: max(11px, 0.78em);
letter-spacing: 0.03em;
text-transform: uppercase;
line-height: 1.1;
text-align: center;
overflow-wrap: anywhere;
text-shadow: 0 1px 0 #000;
}

.atlas-card-unknown {
display: none;
}

.atlas-card.missing {
--frame: #4a2d6e;
--glow: transparent;
background: linear-gradient(180deg, #1d0b38, #0b0418);
border-width: 2px;
box-shadow: 0 0 0 1px #1a0a2c, inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.atlas-card.missing .atlas-card-art {
filter: brightness(0);
opacity: 0.55;
}

.atlas-card.missing .atlas-card-name,
.atlas-card.missing .atlas-card-stars {
opacity: 0.45;
}

.atlas-card.missing .atlas-card-unknown {
position: absolute;
inset: 0 0 1.2em;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--display);
font-size: 2.4em;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 6px rgba(255, 79, 216, 0.6));
}

#atlas-sheet .atlas-card {
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
animation: none;
}

#atlas-sheet .atlas-slot.got-now .atlas-card {
animation: atlas-got 650ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

#atlas-sheet .atlas-card-name {
font-size: 12px;
}

#atlas-sheet .atlas-card-stars {
font-family: var(--display);
font-size: 11px;
text-shadow: 0 1px 0 #000;
}

#atlas-sheet .atlas-card-unknown {
filter: drop-shadow(0 1px 0 var(--gold-deep));
}


@media (prefers-reduced-motion: reduce) {
#atlas-sheet .atlas-slot.got-now .atlas-card {
animation: none;
}
}

.atlas-workshop { flex: none; }
.atlas-guide {
margin: 4px 0 10px;
color: var(--muted);
font-size: 0.8rem;
line-height: 1.4;
}
.atlas-trade-title, .atlas-planet-name {
font-family: var(--display);
color: var(--text);
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.atlas-trade-title { margin-top: 16px; font-size: 1rem; }
.atlas-trades { display: grid; grid-template-columns: repeat(4, minmax(0, 0.9fr)) repeat(2, minmax(0, 1.2fr)); gap: 7px; padding: 8px 0; }
.atlas-planet-offer { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.atlas-planet-offer .pearl { width: 40px; height: 40px; }
.atlas-planet-name { font-size: 0.7rem; letter-spacing: 0.025em; }
.atlas-action, .atlas-trade {
border: 2px solid var(--gold);
border-radius: 8px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--gold-deep);
color: var(--text);
background: linear-gradient(var(--violet), var(--navy-deep));
font-family: var(--display);
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
min-height: 44px;
}
.atlas-action { display: block; width: 100%; margin: 8px auto; max-width: 240px; }
.atlas-action[hidden] { display: none; }
.atlas-trade {
width: 100%;
padding: 2px 4px;
font-size: 0.78rem;
font-variant-numeric: tabular-nums;
line-height: 1.05;
}
.atlas-trade:disabled { opacity: 0.45; }

.atlas-trade:active {
transform: translateY(2px);
}

.atlas-button {
position: relative;
flex: none;
display: flex;
align-items: center;
gap: 12px;
width: 100%;
min-height: 46px;
margin-bottom: 10px;
padding: 4px 14px 4px 16px;
border-bottom: 1px solid var(--hairline);
}

.atlas-button:active {
transform: translateY(2px);
}

.atlas-button-icon,
.voyage-button-icon {
flex: none;
width: 28px;
height: 28px;
margin-left: 4px;
}

.voyage-button .atlas-button-state {
color: var(--starlight);
}

.atlas-button-name {
position: relative;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.15rem;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.atlas-button-state {
margin-left: auto;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.04em;
white-space: nowrap;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.atlas-button.ready .atlas-button-name::before {
content: "!";
position: absolute;
top: calc(50% - 21px);
left: -27px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--ruby);
border: 2px solid var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0;
line-height: 18px;
text-align: center;
text-shadow: none;
}


/* Source: css/atlas-reveal.css */
.level-up.card-up {
z-index: 49;
gap: 16px;
background: radial-gradient(circle at 50% 42%, #7824be, #100424 70%);
}

.level-up.card-up.r3 {
background: radial-gradient(circle at 50% 42%, #be28aa, #160428 70%);
}

.level-up.card-up.r4 {
background: radial-gradient(circle at 50% 42%, #ffaa3c, #82146e 42%, #14001e 75%);
}

.level-up-title.card-show-title {
font-size: 2.4rem;
white-space: nowrap;
}

.card-show-stage {
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
width: 100%;
max-width: 340px;
perspective: 900px;
}

.card-flip {
position: relative;
display: block;
width: 168px;
font-size: 20px;
}

.card-up.multi .card-flip {
width: calc((100% - 20px) / 3);
margin-top: 6px;
font-size: 13px;
}

.card-flip-inner {
position: relative;
display: block;
width: 100%;
aspect-ratio: 3 / 4;
transform-style: preserve-3d;
transition: transform 700ms cubic-bezier(0.3, 1.35, 0.5, 1);
}

.card-flip.flipped .card-flip-inner {
transform: rotateY(180deg);
}

.card-back,
.card-flip .atlas-card {
position: absolute;
inset: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.card-flip .atlas-card {
transform: rotateY(180deg);
font-size: inherit;
}

.card-back {
display: block;
border-radius: 8.3% / 6.2%;
background: url("../art/atlas/back/card-back.webp") center / 100% 100% no-repeat;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.card-flip:not(.flipped) .card-back {
animation: card-wait 900ms ease-in-out infinite;
}

.card-flip.flipped.new .atlas-card {
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 22px var(--glow), 0 0 40px var(--glow);
}

.card-flip .atlas-card-stars {
display: none;
}

.card-flip-stars {
position: absolute;
left: 50%;
top: 0;
z-index: 2;
color: var(--gold);
font-size: 0.95em;
line-height: 1;
letter-spacing: -0.06em;
white-space: nowrap;
text-shadow: 0 0 6px rgba(255, 211, 77, 0.9), 0 1px 0 var(--gold-deep), 0 2px 2px #000;
opacity: 0;
transform: translate(-50%, -55%) scale(0.4);
transition: opacity 200ms ease 300ms, transform 300ms ease-out 300ms;
}

.card-flip.flipped .card-flip-stars {
opacity: 1;
transform: translate(-50%, -55%);
}

.card-flip-tag {
position: absolute;
top: 0.7em;
right: -0.6em;
z-index: 2;
padding: 0.12em 0.4em 0.04em;
border-radius: 0.3em;
background: var(--gold-bevel);
border: 1px solid var(--gold-deep);
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 8px rgba(255, 211, 77, 0.7);
color: var(--gold-deep);
font-family: var(--display);
font-size: 0.8125rem;
letter-spacing: 0.06em;
white-space: nowrap;
opacity: 0;
transform: scale(0.4);
transition: opacity 200ms ease 450ms, transform 250ms ease-out 450ms;
}

.card-flip.flipped .card-flip-tag {
opacity: 1;
transform: none;
}

.card-dust-token {
position: absolute;
inset: 0;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.15em;
opacity: 0;
pointer-events: none;
}

.card-dust-token svg {
display: block;
width: 70%;
overflow: visible;
filter: drop-shadow(0 2px 0 #0d4a70) drop-shadow(0 0 8px rgba(66, 230, 255, 0.85));
}

.card-dust-outer {
fill: var(--neon-cyan);
stroke: #e8fdff;
stroke-width: 1.5;
stroke-linejoin: round;
}

.card-dust-inner {
fill: #fff;
opacity: 0.85;
}

.card-dust-amount {
color: #e8fdff;
font-family: var(--display);
font-size: 1.6em;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 2px 0 #0d4a70, 0 0 8px var(--neon-cyan), 0 0 2px #000;
}

.card-flip.dusted .card-flip-inner {
animation: card-to-dust 380ms ease-in both;
}

.card-flip.dusted .card-flip-stars {
opacity: 0;
transition-delay: 0ms;
}

.card-flip.dusted .card-dust-token {
animation: dust-token-in 420ms ease-out 200ms both;
}

.card-flip.dusted .card-flip-burst {
--burst: rgba(66, 230, 255, 0.9);
animation: card-burst-dust 800ms ease-out 150ms both;
}

@keyframes card-to-dust {
from { opacity: 1; transform: rotateY(180deg); }
to { opacity: 0; transform: rotateY(180deg) scale(0.2); }
}

@keyframes dust-token-in {
from { opacity: 0; transform: scale(0.3); }
to { opacity: 1; transform: none; }
}

@keyframes card-burst-dust {
0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
15% { opacity: 1; }
55% { opacity: 0.8; }
100% { opacity: 0; transform: scale(1.15) rotate(-30deg); }
}

.card-flip.dealt {
animation-name: card-deal;
animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
animation-fill-mode: both;
}

@keyframes card-deal {
0% { opacity: 0; transform: translate(var(--deal-x), var(--deal-y)) rotate(var(--deal-tilt)) scale(0.3); }
25% { opacity: 1; }
100% { opacity: 1; transform: none; }
}

.card-flip.r1 { --burst: rgba(255, 240, 200, 0.85); }
.card-flip.r2 { --burst: rgba(90, 160, 255, 0.9); }
.card-flip.r3 { --burst: rgba(255, 79, 216, 0.9); }
.card-flip.r4 { --burst: rgba(255, 211, 77, 1); }

.card-flip-burst {
position: absolute;
left: -70%;
right: -70%;
top: 50%;
aspect-ratio: 1;
translate: 0 -50%;
border-radius: 50%;
background:
radial-gradient(closest-side, #fff 0, var(--burst) 35%, transparent 75%),
repeating-conic-gradient(from 0deg, var(--burst) 0 7deg, transparent 7deg 24deg);
-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
mask-image: radial-gradient(closest-side, #000 55%, transparent);
opacity: 0;
pointer-events: none;
}

.card-flip.flipped .card-flip-burst {
animation: card-burst 900ms ease-out 100ms both;
}

.card-flip.r4.flipped .card-flip-burst {
animation-duration: 1300ms;
}

@keyframes card-burst {
0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
15% { opacity: 1; }
55% { opacity: 0.8; }
100% { opacity: 0; transform: scale(1.15) rotate(30deg); }
}

.card-confetti {
position: absolute;
inset: 0;
z-index: 2;
overflow: hidden;
pointer-events: none;
}

.confetti-bit {
position: absolute;
top: -16px;
width: 7px;
height: 11px;
border-radius: 1px;
background: var(--gold);
animation-name: confetti-fall;
animation-timing-function: linear;
animation-fill-mode: both;
}

.confetti-bit.c1 { background: var(--neon-pink); }
.confetti-bit.c2 { background: var(--neon-cyan); width: 5px; }
.confetti-bit.c3 { background: var(--text); height: 7px; }

@keyframes confetti-fall {
0% { opacity: 0; transform: translate(0, 0) rotate(0deg) rotateX(0deg); }
8% { opacity: 1; }
50% { transform: translate(var(--sway), 55vh) rotate(calc(var(--spin) * 0.5)) rotateX(360deg); }
85% { opacity: 1; }
100% { opacity: 0; transform: translate(0, 108vh) rotate(var(--spin)) rotateX(720deg); }
}

.card-dust-total {
position: absolute;
top: calc(var(--safe-top) + 20px);
left: 50%;
z-index: 3;
display: flex;
align-items: center;
gap: 8px;
padding: 4px 18px 3px 14px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--bg-deep), var(--bg));
border: 2px solid var(--gold-dark);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--gold-deep);
font-family: var(--display);
opacity: 0;
transform: translateX(-50%) scale(0.6);
transition: opacity 250ms ease, transform 250ms ease-out;
pointer-events: none;
}

.card-up.collecting .card-dust-total {
opacity: 1;
transform: translateX(-50%);
}

.card-dust-total-mark {
color: var(--neon-cyan);
font-size: 1.6rem;
line-height: 1;
text-shadow: 0 0 8px var(--neon-cyan), 0 1px 0 #000;
}

.card-dust-total-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.7rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 var(--gold-deep), 0 2px 2px #000;
}

.card-dust-total.pop {
animation: dust-total-pop 260ms ease-out;
}

.card-dust-total.flare {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--gold-deep), 0 0 26px 6px rgba(66, 230, 255, 0.85);
transition: box-shadow 200ms ease-out, opacity 250ms ease, transform 250ms ease-out;
}

@keyframes dust-total-pop {
0% { transform: translateX(-50%) scale(1); }
40% { transform: translateX(-50%) scale(1.14); }
100% { transform: translateX(-50%) scale(1); }
}

.card-up.collecting .card-show-title,
.card-up.collecting .card-show-prizes,
.card-up.collecting #card-collect,
.card-up.collecting .card-flip:not(.dusted) .card-flip-inner,
.card-up.collecting .card-flip:not(.dusted) .card-flip-tag,
.card-up.collecting .card-flip:not(.dusted) .card-flip-stars {
opacity: 0;
transition: opacity 250ms ease;
pointer-events: none;
}

.dust-fly {
position: absolute;
z-index: 4;
border-radius: 50%;
background: radial-gradient(closest-side, rgba(66, 230, 255, 0.55), transparent);
pointer-events: none;
}

.dust-fly svg {
display: block;
width: 100%;
height: 100%;
overflow: visible;
}

.pearl-prizes.card-show-prizes {
min-height: 100px;
}
.card-show-prizes .pearl-prize {
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
justify-content: center;
text-align: center;
}
#card-collect { width: min(100%, 240px); }

.pearl-prize.card-dust {
border-color: var(--neon-cyan);
color: #c8f8ff;
font-size: 1.2rem;
}

.pearl-prize.card-complete {
border-color: var(--gold);
color: var(--gold-light);
}

@media (max-height: 700px) {
#pearl-sheet .pearl-contents {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
column-gap: 8px;
align-content: start;
}
#pearl-sheet .pearl-headline {
display: none;
}
#pearl-sheet .pearl-contents > * {
grid-column: 1 / -1;
}
#pearl-sheet .pearl-feature {
padding-top: 2px;
padding-bottom: 2px;
}
#pearl-sheet .pearl-feature-stage {
width: 84px;
height: 76px;
}
#pearl-sheet .pearl-feature .pearl {
width: 58px;
height: 58px;
font-size: 58px;
margin-bottom: 10px;
}
#pearl-sheet .pearl-contents > .pearl-open-all {
grid-column: 1;
margin-bottom: 8px;
}
#pearl-sheet .pearl-contents > .atlas-button {
grid-column: 2;
gap: 8px;
min-height: 44px;
margin-bottom: 8px;
padding: 2px 8px;
}
.atlas-button-state {
display: none;
}
.level-up-title.card-show-title {
font-size: 2rem;
}
.card-flip {
width: 140px;
font-size: 17px;
}
.card-up.multi .card-show-stage {
max-width: 290px;
}
.card-up.multi .card-flip {
font-size: 11px;
}
}

@keyframes atlas-ready {
0%, 100% { box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 8px rgba(255, 211, 77, 0.5); }
50% { box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 211, 77, 0.95); }
}

@keyframes atlas-claimed {
0% { filter: brightness(1.8); transform: scale(1.02); }
100% { filter: none; transform: none; }
}

@keyframes atlas-got {
0% { transform: rotateY(90deg) scale(0.9); filter: brightness(2); }
100% { transform: none; filter: none; }
}

@keyframes atlas-legend {
0%, 100% { box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 8px rgba(255, 211, 77, 0.6); }
50% { box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 211, 77, 1), 0 0 30px rgba(255, 79, 216, 0.6); }
}

@keyframes card-wait {
0%, 100% { transform: translateY(0) rotate(0); }
50% { transform: translateY(-4px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
.card-flip-inner,
.card-flip-tag {
transition: none;
}
.card-flip-burst,
.card-confetti {
display: none;
}
.card-flip-stars {
transition: none;
}
.card-flip.dusted .card-flip-inner {
animation: none;
opacity: 0;
}
.card-flip.dusted .card-dust-token {
animation: none;
opacity: 1;
}
.atlas-set.complete .atlas-claim,
.atlas-album.complete .atlas-claim,
.atlas-medal.complete .atlas-medal-ring,
.atlas-chip.complete .atlas-medal-ring,
.atlas-stop.ready .atlas-coin,
.atlas-stop.claimed-now .atlas-coin,
.atlas-album.claimed-now,
.atlas-set.claimed-now,
.atlas-slot.got-now .atlas-card,
.atlas-card.r4:not(.missing),
.card-flip:not(.flipped) .card-back {
animation: none;
}
.atlas-set-fill,
.atlas-track-fill {
transition: none;
}
}


/* Source: css/sheets-bank-row.css */

.sheet,
.auto-picker,
.offer {
--popup-gutter: 24px;
--popup-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 2 * var(--popup-gutter));
--popup-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 2 * var(--popup-gutter));
align-items: center;
padding: calc(var(--safe-top) + var(--popup-gutter)) max(16px, var(--safe-right)) calc(var(--safe-bottom) + var(--popup-gutter)) max(16px, var(--safe-left));
}

.sheet {
position: fixed;
inset: 0;
z-index: 40;
display: flex;
justify-content: center;
background: rgba(0, 0, 0, 0);
pointer-events: none;
visibility: hidden;
transition: background 200ms ease, visibility 0s linear 250ms;
}

.sheet.open {
background: rgba(8, 0, 20, 0.6);
pointer-events: auto;
visibility: visible;
transition: background 200ms ease, visibility 0s;
}

.sheet-panel {
position: relative;
display: flex;
flex-direction: column;
width: 100%;
max-width: 520px;
min-height: 0;
max-height: min(86vh, var(--popup-height));
max-height: min(86dvh, var(--popup-height));
padding: 30px 16px 12px;
border-radius: 18px;
background:
repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.025) 10px 12px),
linear-gradient(180deg, var(--sheet-top), var(--sheet-base) 60%, var(--bg-deep));
border: 3px solid var(--gold);
box-shadow: 0 0 0 2px var(--gold-deep), 0 10px 30px rgba(0, 0, 0, 0.6);
transform: scale(0.96);
opacity: 0;
transition: transform 250ms ease-out, opacity 200ms ease;
}

.sheet.open .sheet-panel {
transform: none;
opacity: 1;
}

.sheet:not(.open) .sheet-panel {
pointer-events: none;
}

.sheet-content {
display: flex;
flex-direction: column;
align-items: inherit;
flex: 1 1 auto;
width: 100%;
min-width: 0;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}

.sheet-content > * { flex-shrink: 0; }

.sheet-title {
position: absolute;
top: -16px;
left: 50%;
transform: translateX(-50%);
min-width: 62%;
padding: 6px 28px 7px;
font-size: 1.15rem;
font-weight: 400;
letter-spacing: 0.08em;
text-align: center;
text-transform: uppercase;
white-space: nowrap;
background-color: var(--red);
background-image: var(--gold-bevel), linear-gradient(180deg, var(--lacquer-light), var(--red) 50%, var(--red-dark));
-webkit-background-clip: text, border-box;
background-clip: text, border-box;
clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}

.sheet-close {
flex: none;
align-self: center;
width: min(100%, 240px);
margin-top: 12px;
min-height: 52px;
border-radius: var(--radius);
font-family: var(--display);
font-size: 1.1rem;
font-weight: 400;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text);
background: linear-gradient(180deg, var(--sapphire), var(--key-blue) 55%, var(--navy));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--navy-deep), inset 0 1px 0 rgba(255, 255, 255, 0.35);
text-shadow: 0 1px 0 #000;
}


.bank-row {
flex: none;
position: relative;
display: grid;
grid-template-columns: 64px minmax(0, 1fr) 164px;
align-items: center;
gap: 8px;
margin: 2px 0 8px;
padding: 6px 8px;
border-radius: var(--radius);
background:
radial-gradient(60% 120% at 12% 50%, rgba(255, 212, 90, 0.16), transparent 70%),
linear-gradient(180deg, var(--lacquer), var(--sheet-base));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 212, 90, 0.35);
}

.bank-vault {
position: relative;
width: 108px;
height: 100px;
border: 0;
padding: 0;
background: none;
}
.bank-jar { position: absolute; inset: 0; transform-origin: 50% 100%; }
.bank-vault .bank-jar { bottom: 15px; }
.bank-coins {
position: absolute;
z-index: 3;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.1rem;
font-variant-numeric: tabular-nums;
line-height: 1.2;
text-align: center;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}
.bank-full {
position: absolute;
z-index: 4;
top: 0;
right: -5px;
padding: 1px 6px;
border-radius: 3px;
background: var(--navy-deep);
border: 1px solid var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}
.bank-full[hidden] { display: none; }

.bank-body {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}

.bank-name {
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.06em;
line-height: 1.05;
white-space: nowrap;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.bank-text {
display: flex;
flex-wrap: wrap;
column-gap: 6px;
color: var(--text);
font-family: var(--display);
font-size: 0.72rem;
line-height: 1.25;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.bank-text-part {
white-space: nowrap;
}

.bank-text-part + .bank-text-part {
color: var(--gold-light);
}

.bank-row .bank-vault {
width: 64px;
height: 56px;
}

.bank-row .bank-jar {
bottom: 0;
}

.bank-row .bank-full {
top: -6px;
right: -4px;
}

.bank-gauge {
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
}

.bank-gauge-bar {
position: relative;
flex: 1 1 0;
min-width: 0;
height: 30px;
overflow: hidden;
border-radius: 6px;
background: linear-gradient(180deg, var(--navy-deep), var(--sheet-base));
border: 1px solid var(--gold-dark);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.bank-gauge-fill {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: calc(var(--bank-fill, 0) * 100%);
background:
repeating-linear-gradient(90deg, rgba(120, 76, 0, 0.45) 0 1px, transparent 1px 6px),
linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--gold-dark));
transition: width 500ms ease-out;
}

.bank-gauge .bank-coins {
position: relative;
inset: auto;
z-index: 1;
display: block;
height: 100%;
padding: 0 4px;
transform: none;
color: var(--text);
font-size: 0.95rem;
line-height: 28px;
text-shadow: 0 1px 0 #000, 0 0 4px #000, 0 0 8px rgba(30, 0, 60, 0.9);
}

.bank-open {
flex: none;
display: grid;
place-items: center;
width: 92px;
min-height: 44px;
padding: 2px 4px;
border-radius: 8px;
background: var(--gold-bevel);
border: 2px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
color: var(--gold-deep);
font-family: var(--display);
letter-spacing: 0.03em;
line-height: 1.1;
text-align: center;
transition: transform 80ms ease;
}

.bank-open:active:not(:disabled) {
transform: scale(0.96);
}

.bank-open:disabled {
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
border: 1px solid var(--gold-dark);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
color: var(--gold);
text-shadow: 0 1px 0 #000;
opacity: 1;
}

.bank-open-label {
display: block;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
}

.bank-open-top {
display: block;
color: var(--text);
font-size: 0.7rem;
}

.bank-open-top:empty {
display: none;
}

.bank-open-main {
display: block;
font-size: 0.95rem;
font-variant-numeric: tabular-nums;
}

.bank-open:disabled .bank-open-main {
font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
.bank-gauge-fill {
transition: none;
}
}

.allowance-row {
flex: none;
display: grid;
grid-template-columns: 44px minmax(0, 1fr) 88px;
align-items: center;
gap: 10px;
margin: 0 0 6px;
padding: 0 0 8px;
border-bottom: 1px solid var(--hairline);
}

.allowance-row[hidden] { display: none; }

.allowance-mark {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 3px;
width: 44px;
}

.allowance-crown {
display: block;
width: 44px;
height: 44px;
object-fit: contain;
filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.6));
}

.allowance-strip {
display: flex;
gap: 2px;
height: 7px;
}

.allowance-cell {
flex: 1;
border: 1px solid var(--gold-dark);
border-radius: 2px;
background: var(--allowance-cell-shade);
}

.allowance-cell.gone {
border-color: var(--gold-deep);
background: var(--gold-deep);
}

.allowance-cell.today {
border-color: var(--gold-light);
background: var(--neon-pink);
}

.allowance-cell.claimed {
border-color: var(--gold-light);
background: var(--gold-bevel);
}

.allowance-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}

.allowance-name {
overflow: hidden;
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.06em;
line-height: 1.1;
white-space: nowrap;
text-overflow: ellipsis;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.allowance-line {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
white-space: nowrap;
}

.allowance-day {
flex: none;
color: var(--text);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.allowance-day[hidden] {
display: none;
}

.allowance-value {
overflow: hidden;
text-overflow: ellipsis;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-family: var(--display);
font-size: 1.05rem;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.allowance-key {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 5px 4px;
border-radius: var(--radius);
background: var(--gold-bevel);
border: 2px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
color: var(--gold-deep);
font-family: var(--display);
font-size: 1rem;
font-variant-numeric: tabular-nums;
letter-spacing: 0.04em;
line-height: 1.1;
text-align: center;
transition: transform 80ms ease;
}

.allowance-key:active:not(:disabled) {
transform: scale(0.96);
}

.allowance-key.claim {
letter-spacing: 0.08em;
}

.allowance-key.wait {
border: 1px solid var(--gold-deep);
background: var(--navy-deep);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
color: var(--text);
opacity: 1;
}

.allowance-key-top {
color: var(--muted);
font-size: 0.7rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.allowance-key-top[hidden] {
display: none;
}

.allowance-key.wait .allowance-key-main {
font-size: 0.9rem;
text-transform: none;
text-shadow: 0 1px 0 #000;
}

.allowance-row.claimed-now .allowance-crown {
animation: allowance-claim 420ms ease-out;
}

@keyframes allowance-claim {
40% { transform: scale(1.18) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
.allowance-row.claimed-now .allowance-crown {
animation: none;
}
.allowance-key {
transition: none;
}
}


/* Source: css/loyalty-rewards.css */
.loyalty {
flex: none;
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 8px;
padding: 4px 0 8px;
border-bottom: 1px solid var(--hairline);
}

.loyalty-icon {
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.25rem;
text-shadow: 0 1px 0 #000;
line-height: 1;
}

.loyalty-body {
flex: 1;
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}

.loyalty-top {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
white-space: nowrap;
}

.loyalty-name {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
color: var(--text);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.05em;
line-height: 1.15;
text-transform: uppercase;
text-overflow: ellipsis;
text-shadow: 0 1px 0 #000;
}

.loyalty-boost {
flex: none;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.03em;
text-shadow: 0 1px 0 #000;
}

.loyalty.tier-guest .loyalty-boost {
color: var(--muted);
}

.loyalty-bar {
display: block;
flex: 1 1 auto;
min-width: 32px;
height: 7px;
overflow: hidden;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.loyalty-fill {
display: block;
width: 0;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--magenta), var(--gold));
transition: width 400ms ease-out;
}

.loyalty-foot {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
column-gap: 10px;
row-gap: 2px;
min-width: 0;
}

.loyalty-next {
color: var(--muted);
font-family: var(--display);
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
text-transform: uppercase;
letter-spacing: 0.03em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.loyalty-cash {
display: flex;
align-items: baseline;
gap: 6px;
max-width: 100%;
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.03em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.loyalty-cash-rate {
overflow: hidden;
color: var(--text);
text-overflow: ellipsis;
}

.loyalty-cash.locked .loyalty-cash-rate {
color: var(--muted);
}

.loyalty-cash-due {
flex: none;
display: flex;
align-items: baseline;
gap: 5px;
color: var(--muted);
}

.loyalty-cash-due:empty {
display: none;
}

.loyalty-cash-coins {
color: var(--gold-light);
font-variant-numeric: tabular-nums;
}

.loyalty-cash-coins.due {
color: var(--gold);
}

.rank-loyalty {
flex: none;
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 8px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
}

.rank-loyalty-icon {
flex: none;
width: 22px;
height: 22px;
color: var(--gold-light);
line-height: 1;
}

.rank-loyalty-text {
flex: 1;
display: grid;
gap: 2px;
min-width: 0;
}

.rank-loyalty-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 6px;
}

.rank-loyalty-name {
overflow: hidden;
color: var(--gold);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
text-overflow: ellipsis;
white-space: nowrap;
}

.rank-loyalty-boost {
color: var(--text);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.rank-loyalty-cash {
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: 8px;
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.rank-loyalty-cash-rate {
color: var(--text);
}

.rank-loyalty-cash.locked .rank-loyalty-cash-rate {
color: var(--muted);
}

.rank-loyalty-cash-due {
color: var(--gold);
font-variant-numeric: tabular-nums;
}

.rank-loyalty-cash-due:empty {
display: none;
}

.rank-loyalty-next {
flex: none;
color: var(--muted);
font: 600 .8125rem var(--body);
font-variant-numeric: tabular-nums;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.cabinet-bank {
position: relative;
display: grid;
place-items: center;
}

.cabinet-bank-art {
width: 30px;
height: 30px;
background: url("../art/lobby/bank.webp") center / contain no-repeat;
}

.cabinet-bank.bank-on::after {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
background: conic-gradient(var(--gold-light), var(--gold) calc(var(--bank-fill, 0) * 360deg), rgba(255, 255, 255, 0.16) 0);
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
pointer-events: none;
}

.cabinet-bank.bank-ready::after {
filter: drop-shadow(0 0 3px var(--gold));
animation: bank-ring 1.8s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.level-up.bank-up {
background: radial-gradient(circle at 50% 42%, rgba(214, 150, 40, 0.92), rgba(100, 18, 120, 0.94) 48%, rgba(14, 4, 34, 0.97) 76%);
}

.level-up-title.bank-title {
font-size: 2.6rem;
white-space: nowrap;
}

.bank-show-coins {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}

.bank-jar.big {
position: relative;
inset: auto;
width: 200px;
height: 200px;
}

.bank-shard.left {
clip-path: polygon(0 0, 52% 0, 44% 22%, 56% 40%, 42% 60%, 54% 80%, 46% 100%, 0 100%);
}

.bank-shard.right {
clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%, 54% 80%, 42% 60%, 56% 40%, 44% 22%);
}

.bank-crack {
position: absolute;
top: 14px;
left: 0;
right: 0;
bottom: 0;
z-index: 3;
background: #fff;
box-shadow: 0 0 8px #fff;
clip-path: polygon(51% 0, 54% 0, 46% 22%, 58% 40%, 44% 60%, 56% 80%, 48% 100%, 44% 100%, 52% 80%, 40% 60%, 54% 40%, 42% 22%);
filter: drop-shadow(0 0 6px var(--gold-light));
opacity: 0;
}

.bank-jar.big::after {
content: "";
position: absolute;
left: 50%;
top: 56%;
width: 104px;
height: 104px;
margin: -52px 0 0 -52px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 0 14px rgba(255, 212, 90, 0.9));
opacity: 0;
transform: scale(0.2);
}

.bank-stage::after {
content: "";
position: absolute;
inset: -50px;
border-radius: 50%;
background: radial-gradient(circle, #fff, rgba(255, 240, 180, 0.7) 30%, transparent 65%);
opacity: 0;
pointer-events: none;
}

.bank-up.show .bank-jar.big {
animation: bank-shake 700ms ease-in-out;
}

.bank-up.show .bank-crack {
animation: bank-crack 700ms ease-in forwards;
}

.bank-up.cracked .bank-crack {
animation: none;
opacity: 0;
}

.bank-up.cracked .bank-shard.left {
animation: bank-shard-left 600ms ease-out forwards;
}

.bank-up.cracked .bank-shard.right {
animation: bank-shard-right 600ms ease-out forwards;
}

.bank-up.cracked .bank-jar.big::after {
animation: bank-coin-pop 700ms cubic-bezier(0.2, 1.5, 0.4, 1) 120ms forwards;
}

.bank-up.cracked .bank-stage::after {
animation: bank-burst 700ms ease-out forwards;
}

.bank-bonus-line {
color: var(--gold-light);
font-size: 0.88rem;
font-family: var(--display);
text-align: center;
text-shadow: 0 1px 2px #000;
animation: pearl-prize 300ms ease-out;
}

.level-up.tier-up {
background: radial-gradient(circle at 50% 42%, var(--violet), var(--bg-deep) 72%);
}

.level-up-title.tier-up-title {
font-size: 2.3rem;
white-space: nowrap;
}

.level-up-stage.tier-up-stage {
height: 150px;
}

.tier-up-mark {
--c: var(--gold);
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 132px;
height: 132px;
filter: drop-shadow(0 0 15px var(--c));
animation: spire-gem-in 700ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.tier-up-mark[data-tier="comet"] { --c: var(--neon-cyan); }
.tier-up-mark[data-tier="nova"] { --c: var(--gold); }
.tier-up-mark[data-tier="supernova"] { --c: var(--neon-pink); }
.tier-up-mark[data-tier="empress"] { --c: var(--gold-light); }

.tier-up-mark img {
width: 100%;
height: 100%;
object-fit: contain;
}

.tier-up-boost {
width: 60px;
height: 60px;
object-fit: contain;
}

.tier-up-prize.bonus .spire-up-amount {
color: var(--neon-pink);
}

.tier-up-prize .spire-up-label {
color: var(--text);
font-size: 13px;
letter-spacing: 0.04em;
}

.credits-coin.tier-up-coin {
width: 60px;
height: 60px;
}

.tier-up .pearl-collect {
width: min(240px, 100%);
color: var(--gold-ink);
text-shadow: none;
}

@media (max-height: 700px) {
.level-up-stage.tier-up-stage { height: 120px; }
.tier-up-mark { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
.tier-up-mark {
animation: none;
}
}


/* Source: css/bank-screen.css */
.bank-screen {
--bank-velvet-dark: #35051d;
--bank-velvet: #a50735;
--bank-crimson: #8c092b;
--bank-crimson-light: #d92348;
position: fixed;
inset: 0;
z-index: 38;
display: flex;
flex-direction: column;
align-items: center;
padding: calc(var(--safe-top) + 6px) 16px calc(var(--safe-bottom) + 8px);
background: var(--bg-deep);
overflow: hidden;
overflow: clip;
opacity: 0;
pointer-events: none;
visibility: hidden;
transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.bank-screen.open {
opacity: 1;
pointer-events: auto;
visibility: visible;
transition: opacity 220ms ease, visibility 0s;
}

.bank-hall,
.bank-hall > span {
position: absolute;
}

.bank-hall {
inset: 0;
overflow: hidden;
pointer-events: none;
}

.bank-sky {
inset: 0;
background:
linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
url("../art/ui/bank-background.webp") center / cover no-repeat,
var(--bank-velvet-dark);
}

.bank-close {
position: absolute;
top: calc(var(--safe-top) + 8px);
right: 12px;
z-index: 2;
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, var(--wheel-skip-fill-top), var(--violet) 55%, var(--wheel-skip-fill-bottom));
box-shadow: 0 0 0 2px var(--gold-light), 0 0 0 4px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.6);
}

.bank-close svg {
width: 22px;
height: 22px;
fill: none;
stroke: var(--text);
stroke-width: 3.2;
stroke-linecap: round;
filter: drop-shadow(0 1px 0 var(--wheel-skip-lip));
}

.bank-close:active {
transform: scale(0.94);
}

.bank-screen-title {
position: relative;
display: inline-block;
margin-top: 30px;
font-family: var(--display);
font-size: 3rem;
line-height: 1.05;
letter-spacing: 0.05em;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 0 var(--bank-velvet)) drop-shadow(0 5px 3px rgba(0, 0, 0, 0.8));
transform: skewX(-8deg);
}

.bank-meter {
position: relative;
display: flex;
align-items: center;
gap: 8px;
width: min(80%, 300px);
min-height: 54px;
margin-top: 6px;
padding: 4px 14px 4px 10px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--bank-velvet-dark), var(--bg-deep));
box-shadow:
0 0 0 3px var(--gold),
0 0 0 5px var(--gold-deep),
inset 0 2px 8px rgba(0, 0, 0, 0.8),
0 6px 12px rgba(0, 0, 0, 0.5);
}

.bank-meter-coin {
flex: none;
width: 32px;
height: 32px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

.bank-meter-amounts {
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
min-width: 0;
}

.bank-meter-payout {
display: block;
width: 100%;
overflow: hidden;
font-family: var(--display);
font-size: 1.6rem;
line-height: 1.1;
letter-spacing: 0.03em;
text-align: center;
white-space: nowrap;
font-variant-numeric: tabular-nums;
color: var(--neon-cyan);
text-shadow: 0 1px 0 #000;
}

.bank-meter-held {
font-family: var(--display);
font-size: 0.875rem;
letter-spacing: 0.035em;
font-variant-numeric: tabular-nums;
color: var(--text);
text-decoration-color: color-mix(in srgb, var(--ruby) 62%, transparent);
text-decoration-thickness: 1px;
}

.bank-price-rule {
position: relative;
flex: none;
margin: 10px 16px 0;
font-family: var(--body);
font-size: 13px;
font-weight: 400;
line-height: 1.3;
text-align: center;
color: var(--text);
}

.bank-scene {
position: relative;
flex: 1 1 auto;
width: 100%;
max-width: 440px;
min-height: 0;
margin-top: 8px;
container-type: size;
--pig-h: min(calc(100cqh - 150px), 74cqw, 320px);
--pedestal-w: min(calc(var(--pig-h) * 0.82), 250px);
--lift: max(0px, calc((100cqh - var(--pig-h) - 30px - var(--pedestal-w) * 0.3) / 2));
--pig-base: calc(30px + var(--lift) + var(--pedestal-w) * 0.3);
}

.bank-scene > * {
position: absolute;
}

.bank-rays {
left: 50%;
bottom: var(--pig-base);
width: 130cqw;
aspect-ratio: 1;
translate: -50% 40%;
border-radius: 50%;
background: repeating-conic-gradient(from 0deg, rgba(255, 226, 122, 0.3) 0 7deg, transparent 7deg 22deg);
-webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%);
mask: radial-gradient(closest-side, #000 20%, transparent 75%);
}

.bank-screen.open .bank-rays {
animation: bank-rays 30s linear infinite var(--bank-play, running);
}

.bank-pedestal {
left: 50%;
bottom: calc(30px + var(--lift));
width: var(--pedestal-w);
aspect-ratio: 2 / 1;
translate: -50% 0;
background: url("../art/ui/bank-pedestal.webp") center / contain no-repeat;
filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.55));
}

.bank-pig {
left: 50%;
bottom: var(--pig-base);
height: var(--pig-h);
aspect-ratio: 1;
padding: 0;
translate: -50% 0;
transform-origin: 50% 95%;
filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.5));
}

.bank-pig-art {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.bank-jar .bank-pig-art { position: absolute; inset: 0; }

.bank-pig-shine {
position: absolute;
inset: 0;
overflow: hidden;
-webkit-mask: url('../art/star-bank/gold-piggy.webp') center / contain no-repeat;
mask: url('../art/star-bank/gold-piggy.webp') center / contain no-repeat;
}
.bank-pig-sweep {
position: absolute;
top: -25%;
left: -100%;
width: 90%;
height: 150%;
background: linear-gradient(100deg, transparent 10%, var(--neon-pink) 36%, white 50%, var(--neon-pink) 64%, transparent 90%);
opacity: 0.6;
transform: translateX(0);
}
.sheet.open .bank-vault .bank-pig-sweep {
animation: bank-gold-shine 6s ease-in-out infinite;
}
.bank-screen.open .bank-pig-shine::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle at 55% 48%, var(--neon-pink) 10%, rgba(255, 90, 190, 0.5) 55%, transparent 85%);
mix-blend-mode: screen;
opacity: 0;
animation: bank-blush 4.5s ease-in-out infinite var(--bank-play, running);
}
.bank-screen.open .bank-pig-sweep {
animation: bank-gold-shine 4.5s ease-in-out infinite var(--bank-play, running);
}
@keyframes bank-gold-shine {
0%, 30% { transform: translateX(0); }
80%, 100% { transform: translateX(240%); }
}
@keyframes bank-blush {
0%, 30%, 92%, 100% { opacity: 0; }
52%, 66% { opacity: 0.6; }
}
body.scene-motion-paused .bank-screen,
body:has(> .pay.open, > .sheet.open, > .level-up.show, > .loading-screen.show) .bank-screen {
--bank-play: paused;
}

.bank-screen.open .bank-pig { animation: bank-hop 4.5s ease-in-out infinite var(--bank-play, running); }
.bank-screen.open.ready .bank-pig { animation: bank-hop 4.5s ease-in-out infinite var(--bank-play, running), bank-wobble 9s ease-in-out infinite var(--bank-play, running); }
.bank-screen.open .bank-pig.nudge,
.bank-pig.nudge { animation: bank-pig-nudge 500ms ease-out; }
@keyframes bank-hop {
0%, 80%, 100% { translate: -50% 0; scale: 1 1; }
84% { translate: -50% 0; scale: 1.05 0.94; }
90% { translate: -50% -3%; scale: 0.98 1.02; }
96% { translate: -50% 0; scale: 1.03 0.97; }
}

.bank-sparkles {
left: 50%;
bottom: var(--pig-base);
width: calc(var(--pig-h) * 1.5);
height: var(--pig-h);
translate: -50% 0;
pointer-events: none;
}
.bank-sparkles::before,
.bank-sparkles::after {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(circle, #fff 0 1.5px, rgba(255, 226, 122, 0.8) 2.5px, transparent 5px) 12% 18% / 14px 14px,
radial-gradient(circle, #fff 0 1px, rgba(255, 226, 122, 0.8) 2px, transparent 4px) 86% 10% / 10px 10px,
radial-gradient(circle, #fff 0 1.5px, rgba(255, 130, 210, 0.8) 2.5px, transparent 5px) 92% 62% / 14px 14px,
radial-gradient(circle, #fff 0 1px, rgba(255, 226, 122, 0.8) 2px, transparent 4px) 6% 70% / 10px 10px;
background-repeat: no-repeat;
opacity: 0;
}
.bank-sparkles::after {
background-position: 24% 4%, 70% 2%, 80% 36%, 18% 44%;
}
.bank-screen.open .bank-sparkles::before { animation: bank-twinkle 2.6s ease-in-out infinite var(--bank-play, running); }
.bank-screen.open .bank-sparkles::after { animation: bank-twinkle 2.6s ease-in-out 1.3s infinite var(--bank-play, running); }
@keyframes bank-twinkle {
0%, 100% { opacity: 0; scale: 0.8; }
50% { opacity: 1; scale: 1.05; }
}

.bank-screen.open.ready .bank-arrow { animation: bank-point 1.6s ease-in-out infinite var(--bank-play, running); }
.bank-screen.open.ready .bank-tag { transform-origin: 8px 50%; animation: bank-swing 3s ease-in-out infinite var(--bank-play, running); }
.bank-screen.open.ready .bank-break { animation: bank-key-pulse 2.4s ease-in-out infinite var(--bank-play, running); }
@keyframes bank-point {
0%, 100% { translate: 0 0; }
50% { translate: -8px 0; }
}
@keyframes bank-swing {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(5deg); }
}
@keyframes bank-key-pulse {
0%, 55%, 100% { scale: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)); }
78% { scale: 1.05; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px var(--gold-light)); }
}

.bank-break {
left: 50%;
bottom: var(--lift);
z-index: 2;
display: grid;
place-items: center;
width: 150px;
height: 72px;
padding-top: 12px;
translate: -50% 0;
filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6));
}

.bank-break::before,
.bank-break::after {
content: "";
position: absolute;
clip-path: polygon(0 24%, 50% 0, 100% 24%, 100% 100%, 0 100%);
}

.bank-break::before {
inset: 0;
background: var(--gold-rim);
}

.bank-break::after {
inset: 4px 4px 4px;
background: linear-gradient(180deg, var(--bank-crimson-light), var(--bank-crimson) 55%, var(--bank-velvet-dark));
}

.bank-break-label {
position: relative;
z-index: 1;
max-width: 6.2em;
font-family: var(--display);
font-size: 1.2rem;
line-height: 1.05;
letter-spacing: 0.06em;
text-align: center;
color: var(--text);
text-shadow: 0 1px 0 #000, 0 2px 2px rgba(0, 0, 0, 0.6);
}

.bank-break:active:not(:disabled) {
transform: scale(0.96);
}

.bank-break:disabled {
cursor: default;
}

.bank-break:disabled::after {
background: linear-gradient(180deg, var(--lacquer), var(--red-dark) 55%, var(--bg-deep));
}

.bank-break:disabled .bank-break-label {
color: var(--muted);
}

.bank-tag {
left: max(0px, calc(50% - var(--pig-h) * 0.62));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.74);
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 6px 12px 6px 22px;
rotate: -10deg;
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

.bank-tag[hidden] {
display: none;
}

.bank-tag::before,
.bank-tag::after {
content: "";
position: absolute;
z-index: -1;
clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}

.bank-tag::before {
inset: 0;
background: var(--gold-rim);
}

.bank-tag::after {
inset: 2px;
background:
radial-gradient(circle at 12px 50%, var(--bg-deep) 3px, var(--gold-deep) 4px, transparent 5px),
linear-gradient(180deg, var(--bank-crimson-light), var(--bank-crimson));
}

.bank-tag-label {
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.bank-tag-price {
font-family: var(--display);
font-size: 1.4rem;
line-height: 1.05;
letter-spacing: 0.03em;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep));
}

.bank-ribbon {
left: max(0px, calc(50% - var(--pig-h) * 0.66));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.2);
z-index: 1;
padding: 7px 22px;
rotate: -9deg;
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

.bank-ribbon::before,
.bank-ribbon::after {
content: "";
position: absolute;
z-index: -1;
clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}

.bank-ribbon::before {
inset: 0;
background: var(--gold-rim);
}

.bank-ribbon::after {
inset: 3px 2px;
background: linear-gradient(180deg, var(--bank-crimson-light), var(--bank-crimson));
}

.bank-ribbon-text {
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.06em;
white-space: nowrap;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.bank-arrow {
right: max(0px, calc(50% - var(--pig-h) * 0.64));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.8);
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 6px 12px 6px 30px;
rotate: 8deg;
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

.bank-arrow::before,
.bank-arrow::after {
content: "";
position: absolute;
z-index: -1;
clip-path: polygon(0 50%, 22px 0, 22px 18%, 100% 18%, 100% 82%, 22px 82%, 22px 100%);
}

.bank-arrow::before {
inset: 0;
background: var(--gold-rim);
}

.bank-arrow::after {
inset: 3px 3px 3px 4px;
background: linear-gradient(180deg, var(--bank-crimson-light), var(--bank-crimson));
}

.bank-arrow-label {
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.06em;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.bank-arrow-plate {
padding: 1px 8px;
border-radius: 4px;
background: var(--navy-deep);
box-shadow: 0 0 0 1px var(--gold-deep);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
color: var(--gold-light);
}

@keyframes bank-pig-nudge {
0%, 100% { transform: rotate(0); }
25% { transform: rotate(-4deg); }
55% { transform: rotate(3deg); }
80% { transform: rotate(-1.5deg); }
}

@keyframes bank-rays {
to { rotate: 360deg; }
}

@keyframes bank-wobble {
0%, 70%, 100% { transform: rotate(0); }
76% { transform: rotate(-4deg); }
82% { transform: rotate(3.5deg); }
88% { transform: rotate(-2deg); }
94% { transform: rotate(1deg); }
}

@keyframes bank-neon {
0%, 18%, 22%, 60%, 100% { opacity: 1; }
20% { opacity: 0.45; }
62% { opacity: 0.7; }
}

@keyframes bank-ring {
0%, 100% { filter: drop-shadow(0 0 2px var(--gold)); }
50% { filter: drop-shadow(0 0 6px var(--gold-light)); }
}

@keyframes bank-shake {
0% { transform: scale(0.6); opacity: 0; }
25% { transform: scale(1.04); opacity: 1; }
40% { transform: rotate(-6deg); }
52% { transform: rotate(6deg); }
64% { transform: rotate(-5deg); }
76% { transform: rotate(4deg); }
88% { transform: rotate(-2deg); }
100% { transform: rotate(0); }
}

@keyframes bank-crack {
0%, 55% { opacity: 0; }
100% { opacity: 1; }
}

@keyframes bank-shard-left {
to { transform: translate(-70px, 40px) rotate(-24deg); opacity: 0; }
}

@keyframes bank-shard-right {
to { transform: translate(70px, 40px) rotate(24deg); opacity: 0; }
}

@keyframes bank-coin-pop {
to { transform: scale(1); opacity: 1; }
}

@keyframes bank-burst {
0% { transform: scale(0.3); opacity: 1; }
100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.bank-rays,
.bank-screen.open .bank-rays,
.bank-pig,
.bank-screen.open.ready .bank-pig,
.bank-screen.open .bank-pig-sweep,
.bank-screen.open .bank-pig-shine::before,
.bank-screen.open .bank-pig,
.bank-screen.open .bank-sparkles::before,
.bank-screen.open .bank-sparkles::after,
.bank-screen.open.ready .bank-arrow,
.bank-screen.open.ready .bank-tag,
.bank-screen.open.ready .bank-break,
.sheet.open .bank-vault .bank-pig-sweep,
.bank-pig.nudge,
.bank-screen.open .bank-pig.nudge,
.bank-full,
.cabinet-bank.bank-ready::after,
.bank-up.show .bank-jar.big,
.bank-up.show .bank-crack,
.bank-bonus-line {
animation: none;
}
.loyalty-fill,
.bank-open {
transition: none;
}
.bank-up.cracked .bank-shard.left,
.bank-up.cracked .bank-shard.right,
.bank-up.cracked .bank-stage::after {
animation: none;
opacity: 0;
}
.bank-up.cracked .bank-jar.big::after {
animation: none;
opacity: 1;
transform: none;
}
}


/* Source: css/bargain-board.css */

.chest {
position: relative;
display: inline-block;
width: 30px;
height: 24px;
background: url("../art/ui/capsule.webp") center / contain no-repeat;
}

.chest::after { content: none; }

.fly-chest {
position: fixed;
z-index: 16;
}

.deal {
--deal-label-bg: #201128;
--deal-prize-shade: linear-gradient(#1c1024b3, #1c1024b3);
position: fixed;
inset: 0;
z-index: 30;
display: flex;
justify-content: center;
background: var(--bg-deep);
opacity: 0;
pointer-events: none;
visibility: hidden;
transition: opacity 250ms ease, visibility 0s linear 250ms;
}

#app.under-deal *,
#app.under-deal *::before,
#app.under-deal *::after {
animation-play-state: paused;
}

.deal.open {
opacity: 1;
pointer-events: auto;
visibility: visible;
transition: opacity 250ms ease, visibility 0s;
}

.deal:not(.open) .deal-panel::before,
.deal:not(.open) .deal-panel::after {
animation: none;
}

.deal-panel {
display: flex;
flex-direction: column;
width: 100%;
max-width: 520px;
height: 100%;
padding: max(10px, var(--safe-top)) 12px max(12px, calc(var(--safe-bottom) + 2px));
gap: 7px;
background:
linear-gradient(180deg, #10051d66, #10051dcc),
url("../art/ui/voyage-background.webp") center / cover no-repeat;
background-color: var(--bg-deep);
}

.deal-title {
position: relative;
align-self: center;
padding: 4px 34px 6px;
font-size: clamp(1.3rem, 6.4vw, 1.8rem);
font-weight: 900;
font-style: italic;
letter-spacing: 0.02em;
text-align: center;
white-space: nowrap;
background-color: var(--red);
background-image: var(--gold-bevel), linear-gradient(180deg, #c44be9, var(--red) 50%, #3c095a);
-webkit-background-clip: text, border-box;
background-clip: text, border-box;
clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}

.deal-panel::before,
.deal-panel::after {
content: "✦";
color: var(--gold-light);
position: absolute;
top: calc(max(10px, var(--safe-top)) + 40px);
font-size: 2rem;
filter: drop-shadow(0 0 10px rgba(255, 80, 40, 0.8));
animation: lantern 2400ms ease-in-out infinite alternate;
transform-origin: 50% 0;
}

.deal-panel::before { left: max(8px, calc(50% - 250px)); }
.deal-panel::after { right: max(8px, calc(50% - 250px)); animation-delay: -1200ms; }

.deal-base {
align-self: center;
padding: 2px 18px;
border-radius: 6px;
background: linear-gradient(180deg, #000, #1a1240);
border: 2px solid var(--gold-dark);
color: var(--jade);
font-family: var(--display);
font-size: 0.8rem;
font-weight: 900;
letter-spacing: 0.08em;
text-align: center;
text-transform: uppercase;
}

.deal-base strong {
margin-left: 4px;
color: #fff;
font-size: 1.05rem;
}

.deal-stage {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
}

.deal-board {
position: absolute;
inset: 0;
z-index: 0;
display: grid;
grid-template-columns: 64px 64px;
grid-template-rows: repeat(12, 1fr);
grid-auto-flow: column;
justify-content: space-between;
align-content: stretch;
gap: 3px 0;
padding: 6px 5px;
pointer-events: none;
}

.deal-board::before,
.deal-board::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
z-index: -1;
width: 74px;
background: url("../art/ui/bargain-rail.webp") center / 100% 100% no-repeat;
}

.deal-board::before { left: 0; }
.deal-board::after { right: 0; }

.deal-pill {
display: flex;
align-items: center;
justify-content: center;
padding: 0 3px;
border-radius: 5px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 50%),
linear-gradient(180deg, #2fd47a, #0b6a36);
border: 1px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 2px rgba(0, 0, 0, 0.5);
color: #fff;
font-family: var(--display);
font-size: 0.76rem;
font-weight: 900;
text-align: center;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
transition: opacity 300ms ease, filter 300ms ease;
}

.deal-pill:nth-child(n + 13) {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 50%),
linear-gradient(180deg, #3b8bff, #12347a);
}

.deal-pill.high {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%),
linear-gradient(180deg, #ff5ad0, #a0107a);
}

.deal-pill.out {
background: linear-gradient(180deg, #3a2a50, #1a1030);
border-color: var(--gold-deep);
color: rgba(255, 255, 255, 0.4);
text-decoration: line-through;
}

.deal-boosts {
min-height: 1.2em;
color: var(--jade);
font-family: var(--display);
font-size: 0.85rem;
font-weight: 900;
text-align: center;
text-shadow: 0 0 8px rgba(47, 212, 122, 0.6);
}

.deal-prompt {
color: #fff;
font-family: var(--display);
font-size: 1.1rem;
font-weight: 900;
text-align: center;
text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 90, 70, 0.8);
}

.deal-prompt.result {
align-self: center;
padding: 2px 18px;
border: 2px solid var(--gold-dark);
border-radius: 6px;
background: var(--deal-label-bg);
color: var(--gold-light);
font-size: clamp(2rem, 8vw, 2.4rem);
font-weight: 400;
line-height: 1;
white-space: nowrap;
}

.deal-chests {
flex: 1 1 auto;
min-height: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(8, minmax(0, 58px));
align-content: center;
gap: 2px 0;
margin: 0 80px;
padding: 4px 0;
border-radius: 6px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}

.deal-chest {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 1px;
min-height: 0;
padding: 2px 0 7px;
background: url("../art/drawn/deal-shelf.svg") center bottom -3px / 100% 12px no-repeat;
}

.deal-chest .chest {
flex: none;
width: min(94%, 66px);
height: min(48px, 100%);
background-size: 100% 100%;
isolation: isolate;
}

.deal-chest:not(:disabled):active .chest {
transform: scale(0.92);
}

.deal-chest-label {
position: absolute;
bottom: min(14px, calc((100% - 7px) / 4));
left: 50%;
transform: translateX(-50%);
min-width: 18px;
padding: 0 3px;
border-radius: 9px;
background: #28000a;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.78rem;
line-height: 15px;
text-align: center;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.deal-chest:disabled {
cursor: default;
}

.deal.open.finished .deal-chest:disabled { pointer-events: none; }

.deal:has(.deal-round.show) .deal-prompt { opacity: 0; }

.deal-chest.mine .deal-chest-label {
background: var(--deal-label-bg);
color: var(--gold-light);
font-size: 12px;
bottom: 14px;
}

.deal-chest.mine:not(.opened) .chest {
visibility: hidden;
}

.deal-mine {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 0 auto;
padding: 6px 22px 6px 16px;
border-radius: 14px 14px 6px 6px;
border: 2px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 50%),
linear-gradient(180deg, #a020a0, #4a0a6a);
box-shadow: 0 0 0 1px var(--gold-deep), 0 6px 0 #2a0638, 0 0 18px rgba(255, 79, 216, 0.45);
visibility: hidden;
}

.deal-mine.show {
visibility: visible;
}

.deal-mine .chest {
width: 46px;
height: 36px;
filter: drop-shadow(0 0 7px var(--gold));
}

.deal-mine.arriving .chest {
visibility: hidden;
}

.deal-mine.landed {
animation: chest-pop 500ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.deal-mine.opened .chest {
filter: brightness(1.4);
}

.deal-mine-text {
font-size: 1rem;
font-weight: 900;
letter-spacing: 0.06em;
}

.deal-mine-text strong {
display: block;
font-size: 1.25rem;
font-variant-numeric: tabular-nums;
}

.fly-chest.pick {
z-index: 46;
transform-origin: top left;
filter: drop-shadow(0 0 8px var(--gold));
}

.deal-round {
position: absolute;
left: 50%;
top: 54%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
--deal-round-w: min(90vw, 360px);
width: var(--deal-round-w);
aspect-ratio: 744 / 454;
padding: calc(var(--deal-round-w) * 0.259) calc(var(--deal-round-w) * 0.1) calc(var(--deal-round-w) * 0.035);
background: url("../art/deal-round/board.webp") center / 100% 100% no-repeat;
filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7));
text-align: center;
transform: translate(-50%, -50%) scale(0);
opacity: 0;
pointer-events: none;
}

.deal-round::before {
content: "";
position: absolute;
left: 50%;
bottom: 96.5%;
width: 13%;
aspect-ratio: 1;
background: url("../art/nebula-empress/star-crystal.webp") center / contain no-repeat;
transform: translateX(-50%);
}

.deal-chest.opening,
.deal-mine.opening .chest {
animation: chest-rattle 110ms ease-in-out infinite alternate;
filter: brightness(1.3);
}

.deal-chest.chosen {
animation: chest-chosen 300ms ease-in-out infinite alternate;
}

.deal-board.boosted {
animation: board-boost 800ms ease-out;
}

.deal-intro.show {
pointer-events: auto;
}

.deal-round.show {
animation: deal-round 1800ms ease forwards;
}

.deal-round-title {
position: relative;
margin: 0;
color: #f6d6ff;
font-family: var(--display);
font-size: 1.1rem;
font-weight: 900;
letter-spacing: 0.08em;
text-shadow: 0 0 8px var(--magenta);
}

.deal-round-main {
color: #fff;
font-family: var(--display);
font-size: clamp(1.8rem, 9vw, 2.4rem);
font-weight: 900;
line-height: 1.05;
text-shadow: 0 3px 0 #000;
}

.deal-round-sub {
font-size: 1.2rem;
font-weight: 900;
text-transform: uppercase;
}

.deal-chest.opening .chest,
.deal-mine.opening .chest,
.deal-chest.opened .chest,
.deal-mine.opened .chest {
background-image: url("../art/ui/capsule-opening.webp");
background-size: 400% 100%;
background-position: 100% 0;
}
.deal-chest.opening .chest,
.deal-mine.opening .chest {
animation: capsule-open-frames var(--capsule-open-ms, 550ms) steps(3, end) both;
}
.deal-mine.peeking .chest {
animation: capsule-open-frames 380ms steps(3, end) both;
}
.deal-mine.peeking .deal-mine-text strong {
animation: chest-pop 380ms cubic-bezier(0.2, 1.6, 0.4, 1);
}
.deal-chest.final-other .chest {
filter: drop-shadow(0 0 8px var(--gold-light));
animation: final-other-pulse 900ms ease-in-out infinite alternate;
}
body.scene-motion-paused .deal-chest.final-other .chest,
body.destination-active .deal-chest.final-other .chest {
animation-play-state: paused;
}
.deal-chest.opened .chest { opacity: 0.65; }
.deal-chest.unchosen .chest { opacity: 0.45; filter: saturate(0.6); }
@keyframes capsule-open-frames {
from { background-position: 0% 0; }
to { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
.deal-chest.opening .chest,
.deal-mine.opening .chest,
.deal-mine.peeking .chest { animation: none; background-position: 100% 0; }
.deal-mine.peeking .deal-mine-text strong,
.deal-chest.final-other .chest { animation: none; transform: none; }
}

.deal-chest[data-ladder="green"] { --deal-prize-art: url("../art/ui/prize-plaque-green.webp"); --deal-prize-glow: #2fd47a; }
.deal-chest[data-ladder="blue"] { --deal-prize-art: url("../art/ui/prize-plaque-blue.webp"); --deal-prize-glow: #3b8bff; }
.deal-chest[data-ladder="high"] { --deal-prize-art: url("../art/ui/prize-plaque-magenta.webp"); --deal-prize-glow: #ff5ad0; }

.deal-chest.opened .deal-chest-label,
.deal-chest.mine.opened .deal-chest-label {
top: auto;
bottom: calc(7px + min(24px, (100% - 9px) / 2));
transform: translate(-50%, 50%);
padding: 3px 6px 2px;
border-radius: 0;
background:
var(--deal-prize-shade) center / calc(100% - 6px) calc(100% - 4px) no-repeat,
var(--deal-prize-art) center / 100% 100% no-repeat;
color: #fff9cb;
font-size: 17px;
font-weight: 400;
line-height: 1;
text-shadow: 0 1px 1px #000, 0 0 2px #000;
}

.float-text.deal-prize {
color: #fff9cb;
font-size: 22px;
text-shadow: 0 1px 1px #000, 0 0 2px #000, 0 0 10px var(--deal-prize-glow, var(--gold));
animation: deal-prize-stamp 700ms ease-out forwards;
}

@keyframes deal-prize-stamp {
from { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
25% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
to { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
.float-text.deal-prize { animation-duration: 1ms; }
}

.deal-chest.popping {
animation: chest-pop 500ms cubic-bezier(0.2, 1.6, 0.4, 1);
}


/* Source: css/bargain-offers.css */
.deal-chests {
transition: transform 450ms ease-in, opacity 450ms ease-in;
}

.deal.offering .deal-chests {
transform: translateY(30%);
opacity: 0;
pointer-events: none;
}

.deal-dragon {
position: absolute;
inset: 0 76px;
z-index: 2;
container-type: size;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
visibility: hidden;
}

.deal.offering .deal-dragon {
visibility: visible;
}

.deal-dragon-art {
position: relative;
z-index: -1;
font-size: min(46cqh, 96cqw);
line-height: 1;
margin-bottom: -0.34em;
filter: drop-shadow(0 0 14px rgba(222, 65, 245, 0.65));
opacity: 0;
}

.deal-empress-crop {
width: 1em;
height: 1.2em;
--empress-top: calc(-0.3em * 0.18);
border-radius: 46% 46% 8% 8%;
-webkit-mask-image: linear-gradient(#000 72%, transparent);
mask-image: linear-gradient(#000 72%, transparent);
}

.deal.offering .deal-dragon-art {
animation: offer-dragon-rise var(--rise, 1000ms) cubic-bezier(0.2, 1.2, 0.4, 1) forwards,
dragon-bob 1600ms var(--rise, 1000ms) ease-in-out infinite alternate;
}

.deal-dragon-scroll {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
opacity: 0;
}

.deal.offering .deal-dragon-scroll {
animation: offer-scroll-in calc(var(--rise, 1000ms) * 0.6) calc(var(--rise, 1000ms) * 0.4) cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.deal-dragon-ribbon {
position: relative;
z-index: 1;
padding: 4px 26px 5px;
font-size: min(7cqh, 13cqw);
font-weight: 900;
letter-spacing: 0.08em;
white-space: nowrap;
background-color: var(--red);
background-image: var(--gold-bevel), linear-gradient(180deg, #c44be9, var(--red) 50%, #3c095a);
-webkit-background-clip: text, border-box;
background-clip: text, border-box;
clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
}

.deal-dragon-x {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 1.5em;
margin-top: -4px;
padding: 4px 6px 2px;
border-radius: 0 0 14px 14px;
border: 3px solid var(--gold);
box-shadow: 0 0 0 2px var(--gold-deep), 0 8px 18px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(80, 140, 255, 0.5);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
linear-gradient(180deg, #2440c0, #0a0e4a);
color: #fff;
font-family: var(--display);
font-size: min(13cqh, 22cqw);
font-weight: 900;
line-height: 1;
text-shadow: 0 3px 0 #000, 0 0 14px rgba(120, 180, 255, 0.9);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.deal-dragon.boosted .deal-dragon-x {
animation: offer-powered 900ms ease-out;
}

.deal-flash {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
pointer-events: none;
visibility: hidden;
opacity: 0;
}

.deal-flash.high {
justify-content: flex-start;
padding-top: 2%;
}

.deal-flash.show {
visibility: visible;
animation: deal-flash 2400ms ease forwards;
}

.deal-flash::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
z-index: -2;
width: 130%;
aspect-ratio: 1;
transform: translate(-50%, -50%);
border-radius: 50%;
background:
radial-gradient(circle, rgba(255, 220, 250, 0.9), rgba(255, 90, 210, 0.45) 22%, transparent 50%),
repeating-conic-gradient(rgba(255, 120, 230, 0.45) 0 5deg, transparent 5deg 14deg);
-webkit-mask-image: radial-gradient(circle, #000 15%, transparent 62%);
mask-image: radial-gradient(circle, #000 15%, transparent 62%);
}

.deal-flash.show::before {
animation: rays 5s linear infinite;
}

.deal-flash-name {
width: min-content;
max-width: 100%;
font-size: clamp(2.8rem, 16vw, 4rem);
font-weight: 900;
line-height: 0.95;
text-align: center;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 #6a0016) drop-shadow(0 0 14px rgba(255, 106, 0, 0.9));
}

.deal-flash.show .deal-flash-name {
animation: flash-name 600ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.deal-flash-detail {
color: #fff;
font-family: var(--display);
font-size: 1.15rem;
font-weight: 900;
text-align: center;
text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 90, 210, 0.9);
}

.deal-bolts {
position: absolute;
inset: 0;
z-index: -1;
filter: drop-shadow(0 0 3px #fff6a0) drop-shadow(0 0 8px #ffd000);
}

.deal-bolt {
position: absolute;
left: 30px;
top: 50%;
width: calc(50% - 30px);
height: 56px;
margin-top: 8px;
background: #fffbd0;
clip-path: polygon(0 45%, 18% 15%, 30% 55%, 48% 5%, 60% 60%, 80% 20%, 100% 50%, 100% 60%, 80% 32%, 60% 74%, 48% 18%, 30% 68%, 18% 27%, 0 57%);
}

.deal-flash.show .deal-bolt {
animation: bolt-flicker 160ms steps(2) infinite;
}

.deal-bolt.right {
left: auto;
right: 30px;
transform: scaleX(-1);
}

.deal-flash.show .deal-bolt.right {
animation-delay: -80ms;
}

.deal-board.boosted .deal-pill {
animation: pill-flash 700ms ease calc(var(--i, 0) * 45ms) both;
}

.deal-mine-gems {
display: flex;
gap: 3px;
}

.deal-mine-gems:empty {
display: none;
}

.boost-gem {
display: inline-block;
width: 18px;
height: 18px;
background: url("../art/ui/boost-crystal.webp") center / contain no-repeat;
}

.deal-capsule-boost {
position: fixed;
z-index: 47;
width: 110px;
height: 110px;
margin: -55px 0 0 -55px;
pointer-events: none;
}
.deal-capsule-boost-aura {
position: absolute;
inset: 0;
background: url("../art/ui/capsule-boost.webp") 0 0 / 400% 100% no-repeat;
animation: capsule-boost-burst 300ms steps(1, end) both;
}
.deal-capsule-boost-crystal {
position: absolute;
left: 19px;
top: 19px;
width: 72px;
height: 72px;
animation: capsule-crystal-emerge 1800ms ease-out both;
filter: drop-shadow(0 0 8px var(--neon-pink));
}
.deal-capsule-boost-label {
position: absolute;
left: 0;
right: 0;
top: 44px;
color: var(--text);
font-family: var(--display);
font-size: 1.4rem;
line-height: 1;
letter-spacing: 0.05em;
text-align: center;
-webkit-text-stroke: 3px #3a074b;
paint-order: stroke fill;
text-shadow: 0 2px 0 #3a074b, 0 0 5px #3a074b;
}
.deal-capsule-boost.departing .deal-capsule-boost-aura {
animation: none;
background-position: 100% 0;
}
.deal-capsule-boost.departing .deal-capsule-boost-crystal,
.deal-capsule-boost.departing .deal-capsule-boost-label { visibility: hidden; }
@keyframes capsule-boost-burst {
0% { background-position: 0% 0; }
50% { background-position: 33.333333% 0; }
100% { background-position: 66.666667% 0; }
}
@keyframes capsule-crystal-emerge {
0% { opacity: 0; transform: scale(0.2); }
20% { opacity: 1; transform: scale(1.08); }
40%, 80% { opacity: 1; transform: scale(0.96); }
60%, 100% { opacity: 1; transform: scale(1.06); }
}
.fly-gem.capsule-flight {
width: 72px;
height: 72px;
margin: -36px 0 0 -36px;
}
.fly-gem.capsule-flight::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 70px;
height: 12px;
border-radius: 50%;
background: linear-gradient(90deg, transparent, rgba(255, 80, 214, 0.65), #ffd3ef);
transform: rotate(var(--gem-trail-angle)) translate(-100%, -50%);
transform-origin: 0 0;
}
@media (prefers-reduced-motion: reduce) {
.deal-capsule-boost,
.fly-gem.capsule-flight { display: none; }
}

.fly-gem {
position: fixed;
z-index: 46;
width: 30px;
height: 30px;
margin: -15px 0 0 -15px;
}

.float-text.deal-boost {
color: #ff8ae4;
font-size: 1rem;
}

.deal-bottom {
flex: none;
min-height: 132px;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.deal.offering .deal-prompt {
align-self: center;
padding-inline: 10px;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: var(--bg-deep);
text-shadow: 0 1px 0 #000;
}

.deal-offer {
display: none;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 6px 10px 10px;
border-radius: 16px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
linear-gradient(180deg, #0d6a6a, #06302e);
border: 3px solid var(--gold);
box-shadow: 0 0 0 2px var(--gold-deep), 0 0 24px rgba(66, 230, 200, 0.3);
}

.deal-offer.show {
display: flex;
animation: offer-in 400ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.deal-offer-sum {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0 6px;
}

.deal-offer-part {
display: flex;
flex-direction: column;
align-items: center;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.7rem;
font-weight: 900;
letter-spacing: 0.08em;
line-height: 1.1;
text-transform: uppercase;
}

.deal-offer-part strong {
color: #fff;
font-size: 1rem;
letter-spacing: 0;
font-variant-numeric: tabular-nums;
}

.deal-offer-amount {
font-size: 1.9rem;
font-weight: 900;
line-height: 1;
font-variant-numeric: tabular-nums;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px #000);
}

.deal-buttons {
display: flex;
gap: 10px;
width: 100%;
}

.deal-yes,
.deal-no,
.reward-collect {
flex: 1;
min-height: 56px;
padding-inline: 8px;
border-radius: 14px;
border: 3px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.6);
color: #fff;
font-family: var(--display);
font-size: 1.25rem;
font-weight: 900;
letter-spacing: 0.08em;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
white-space: nowrap;
}

.deal-yes {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%),
linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
}

.deal-no {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 50%),
linear-gradient(180deg, #ff4a5e, var(--red) 60%, #6a0016);
}

.deal-offer.final-choice {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%),
linear-gradient(180deg, #4b1578, #1c0836);
box-shadow: 0 0 0 2px var(--gold-deep), 0 0 24px rgba(228, 108, 255, 0.35);
}

.deal-offer.final-choice .deal-offer-sum {
display: none;
}

.deal-offer.final-choice .deal-no {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 50%),
linear-gradient(180deg, #4a96ff, #1b48c4 60%, #0d2066);
}

.reward-collect {
display: none;
flex: none;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
color: #3a1a00;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.reward-collect.show {
display: block;
}

.deal-scroll {
position: absolute;
left: 50%;
top: 56%;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 14px 34px;
border: 3px solid var(--gold);
border-left-width: 10px;
border-right-width: 10px;
border-radius: 6px;
background:
repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 211, 77, 0.12) 10px 12px),
linear-gradient(180deg, #b0102a, #6a0016);
box-shadow: 0 0 0 3px #6a0016, 0 10px 30px rgba(0, 0, 0, 0.7);
transform: translate(-50%, -50%) scale(0);
opacity: 0;
pointer-events: none;
}

.deal.intro .deal-scroll {
animation: deal-scroll 2100ms ease forwards;
}

.deal-scroll-count {
display: flex;
align-items: center;
gap: 10px;
color: #fff;
font-family: var(--display);
font-size: 2.4rem;
font-weight: 900;
line-height: 1;
text-shadow: 0 3px 0 #000;
}

.deal-scroll-count .chest {
width: 44px;
height: 34px;
}

.deal-scroll-text {
font-size: 1.7rem;
font-weight: 900;
letter-spacing: 0.06em;
}

.deal.intro .deal-chest {
animation: chest-drop 450ms cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
animation-delay: calc(300ms + var(--i) * 25ms);
}

.deal.intro .deal-pill {
animation: pill-in 400ms ease-out backwards;
animation-delay: calc(200ms + var(--i) * 20ms);
}


/* Source: css/empress-portrait.css */
.empress-crop {
position: relative;
display: block;
overflow: hidden;
}
.empress-live {
position: absolute;
left: 0;
top: var(--empress-top, 0);
width: 100%;
aspect-ratio: 2 / 3;
}
.empress-live img {
display: block;
width: 100%;
height: 100%;
}
.empress-pose {
position: absolute;
opacity: 0;
pointer-events: none;
background: no-repeat 0 0 / 100% 100%;
}
.empress-pose.ready { background-image: var(--empress-patch); }
.empress-blink {
left: 34.6875%;
top: 17.6042%;
width: 31.25%;
height: 18.9583%;
--empress-patch: url("../art/nebula-empress/empress-blink.webp");
background-size: 200% 100%;
}
.empress-glow {
left: 0%;
top: 32.9167%;
width: 62.9687%;
height: 38.6458%;
--empress-patch: url("../art/nebula-empress/empress-glow.webp");
}

@media (prefers-reduced-motion: no-preference) {
.deal.offering .empress-blink:where(.ready),
#deal-intro[data-entry-phase="announce"] .empress-blink:where(.ready) {
animation: empress-blink 4200ms step-end 1100ms infinite;
}
.deal.offering .empress-glow:where(.ready),
#deal-intro[data-entry-phase="announce"] .empress-glow:where(.ready) {
animation: empress-glow 1300ms ease-in-out infinite alternate;
}
}
@keyframes empress-blink {
0% { opacity: 1; background-position: 0 0; }
1.5% { opacity: 1; background-position: 100% 0; }
3.5% { opacity: 1; background-position: 0 0; }
5%, 100% { opacity: 0; background-position: 0 0; }
}
@keyframes empress-glow {
from { opacity: 0; }
to { opacity: 1; }
}

body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #deal, #deal-intro, #deal-doors)) .empress-pose {
animation: none;
}

/* Source: css/bargain-intro-league.css */

.deal-intro {
position: fixed;
inset: 0;
z-index: 44;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(60% 45% at 50% 48%, rgba(255, 140, 0, 0.35), rgba(10, 0, 20, 0.65));
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.deal-intro.show {
visibility: visible;
animation: intro-dim 300ms ease-out forwards;
}

.intro-dragon {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
transform: translateY(30vh) scale(0.15);
}

.deal-intro.show .intro-dragon {
animation: dragon-rise 650ms cubic-bezier(0.2, 1.3, 0.4, 1) forwards,
dragon-bob 1400ms 650ms ease-in-out infinite alternate;
}

.intro-dragon-art {
font-size: min(42vw, 200px);
line-height: 1;
margin-bottom: -0.32em;
filter: sepia(1) saturate(3.2) hue-rotate(-14deg) brightness(1.1)
drop-shadow(0 0 2px #6a4400) drop-shadow(0 0 18px #ffb400) drop-shadow(0 0 40px rgba(255, 106, 0, 0.7));
}

.intro-sign {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: min(74vw, 320px);
padding: 16px 14px 18px;
border-radius: 12px;
border: 4px solid var(--neon-cyan);
background:
radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
linear-gradient(180deg, #3a1a9a, #160a50);
box-shadow: 0 0 0 3px #0a1a5a, 0 0 18px var(--neon-cyan), inset 0 0 14px rgba(66, 230, 255, 0.5), 0 12px 30px rgba(0, 0, 0, 0.6);
text-align: center;
}

.intro-sign::before,
.intro-sign::after {
content: "";
position: absolute;
top: -10px;
width: 22px;
height: 22px;
border-radius: 50% 50% 40% 40%;
background: radial-gradient(circle at 40% 35%, var(--gold-light), var(--gold) 50%, var(--gold-dark));
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-sign::before { left: -10px; }
.intro-sign::after { right: -10px; }

.intro-sign-title {
font-size: clamp(1.4rem, 7.5vw, 2rem);
font-weight: 900;
line-height: 1.05;
background-image: linear-gradient(180deg, #ffe0fa, #ff6ad5 50%, #c01a9a 56%, #ffa0e8);
filter: drop-shadow(0 2px 0 #3a0030) drop-shadow(0 0 8px rgba(255, 79, 216, 0.7));
}

.intro-sign-text {
color: #fff;
font-family: var(--display);
font-size: clamp(1.3rem, 7vw, 1.8rem);
font-weight: 900;
line-height: 1.1;
text-shadow: 0 3px 0 #0a0630, 0 0 12px rgba(66, 230, 255, 0.6);
}

.deal-doors {
position: fixed;
inset: 0;
z-index: 47;
display: flex;
pointer-events: none;
visibility: hidden;
}

.deal-doors.closed,
.deal-doors.opening {
visibility: visible;
pointer-events: auto;
}

.door {
position: relative;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transform: translateX(var(--open));
}

.door.left { --open: -100%; }
.door.right { --open: 100%; }

.deal-doors.closed .door {
animation: door-close 320ms cubic-bezier(0.5, 0, 0.9, 1) forwards,
door-flash 600ms 330ms ease-in-out;
}

.deal-doors.opening .door {
animation: door-open 650ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.league-button {
position: relative;
flex: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 58px;
border-radius: 12px;
line-height: 1.1;
}

.league-icon {
display: inline-flex;
width: 22px;
height: 22px;
}

.league-icon .league-mark { width: 100%; height: 100%; }

.league-rank {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
font-weight: 900;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #0a1a5a;
}

.league-button.up .league-rank { color: #7affb0; }
.league-button.down .league-rank { color: #ff8a96; }

.float-text.medal,
.medallion {
--medal: var(--medal-gold);
}

.float-text.medal.bronze, .medallion.bronze { --medal: var(--medal-bronze); }
.float-text.medal.silver, .medallion.silver { --medal: var(--medal-silver); }
.float-text.medal.ruby, .medallion.ruby { --medal: var(--medal-ruby); }
.float-text.medal.sapphire, .medallion.sapphire { --medal: var(--medal-sapphire); }
.float-text.medal.celestial, .medallion.celestial { --medal: var(--medal-celestial); }

.float-text.medal {
color: var(--medal);
font-size: 1.05rem;
letter-spacing: 0.04em;
text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.8);
animation: medal-float 1100ms ease-out forwards;
}

#league-button > .float-text.medal { top: 0; }

.league-tab-row:not(:last-child) > .float-text.medal {
top: calc(50% - 0.5px);
}

@keyframes medal-float {
0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
18% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
30% { transform: translate(-50%, -70%) scale(1); }
100% { opacity: 0; transform: translate(-50%, calc(-50% - 34px)); }
}

@keyframes medal-fade {
from { opacity: 1; }
to { opacity: 0; }
}

.league-button.landed .league-icon {
animation: league-land 450ms ease-out;
}

@keyframes league-land {
40% { transform: scale(1.3); }
}

.medallion {
display: inline-block;
flex: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.75), transparent 42%),
linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.3)), var(--medal);
box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 2.5px var(--gold-deep), 0 1px 2px rgba(0, 0, 0, 0.6);
vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
.float-text.medal { animation: medal-fade 440ms ease-in 660ms both; }
.league-button.landed .league-icon { animation: none; }
}


.league-mark {
display: block;
flex: none;
width: 34px;
height: 34px;
color: var(--medal-gold);
object-fit: contain;
filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.6));
}

.league-mark.bronze { color: var(--medal-bronze); }
.league-mark.silver { color: var(--medal-silver); }
.league-mark.platinum { color: var(--medal-platinum); }
.league-mark.diamond { color: var(--medal-diamond); }

.league-ladder { flex: none; min-width: 0; margin: 4px 0 8px; }

.league-tiers {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr)) max-content;
align-items: end;
gap: 4px;
margin: 0;
padding: 0;
list-style: none;
}

.league-tier {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-width: 0;
font-family: var(--display);
color: var(--muted);
text-shadow: 0 1px 0 #000;
}

.league-tier-badge { display: inline-flex; justify-content: center; }
.league-tier-name { font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; }
.league-tier.current { color: var(--gold-light); }

.league-rungs {
display: grid;
grid-template-columns: repeat(3, 16px);
gap: 2px;
margin: 2px 0 0;
padding: 0;
list-style: none;
}

.league-rung { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); }
.league-rung-name { font-size: 11px; line-height: 1; }
.league-pip {
position: relative;
display: block;
width: 8px;
height: 8px;
border: 1px solid var(--muted);
border-radius: 50%;
background: var(--navy-deep);
}

.league-rung.passed .league-pip,
.league-rung.current .league-pip { border-color: var(--gold); background: var(--gold); }
.league-rung.passed .league-pip::after {
content: "";
position: absolute;
left: 1px;
top: 1px;
width: 4px;
height: 2px;
border-left: 1px solid var(--gold-deep);
border-bottom: 1px solid var(--gold-deep);
transform: rotate(-45deg);
}
.league-rung.current .league-pip { outline: 1px solid var(--gold-light); outline-offset: 2px; }
.league-rung.current .league-rung-name { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.league-rung.passed .league-rung-name { color: var(--text); }

.league-info {
margin-bottom: 8px;
color: var(--muted);
font-size: 0.8rem;
text-align: center;
}

.league-info-label { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.06em; text-shadow: 0 1px 0 #000; }
.league-timer { display: inline-block; margin-left: 8px; padding: 4px 8px; border: 1px solid var(--gold-deep); border-radius: 4px; background: var(--navy-deep); color: var(--gold-light); font-family: var(--display); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }
.league-movement { margin-top: 6px; font-size: 0.8125rem; line-height: 1.35; }

.league-perk {
margin: 0 0 6px;
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
line-height: 1.3;
color: var(--muted);
text-shadow: 0 1px 0 #000;
}

.league-perk-now.on { color: var(--gold-light); }

.league-result {
display: grid;
grid-template-columns: 1fr auto;
align-items: baseline;
gap: 4px 8px;
margin-bottom: 8px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
}

.league-result-rank { font-family: var(--display); color: var(--text); font-size: 0.85rem; letter-spacing: 0.03em; text-shadow: 0 1px 0 #000; }
.league-result-rank { display: flex; align-items: center; gap: 6px; }
.league-result-rank .league-mark { width: 22px; height: 22px; }
.league-result-reward { font-family: var(--display); color: var(--gold-light); font-size: 1.15rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }
.league-result-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }

.league-result-label { font-family: var(--display); color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-shadow: 0 1px 0 #000; }
.league-result-score { font-family: var(--display); color: var(--gold-light); font-size: 1rem; font-variant-numeric: tabular-nums; text-align: right; text-shadow: 0 1px 0 #000; }

.league-result[hidden] {
display: none;
}

.league-weeks {
display: flex;
gap: 18px;
margin-bottom: 6px;
border-bottom: 1px solid var(--hairline);
}

.league-week {
min-height: 44px;
margin: 0 0 -1px;
padding: 0 2px;
border: 0;
border-bottom: 2px solid transparent;
background: none;
color: var(--muted);
font-family: var(--display);
font-size: 0.95rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
touch-action: manipulation;
cursor: pointer;
}

.league-week.on {
border-bottom-color: var(--gold);
color: var(--gold-light);
}

.league-final {
display: flex;
align-items: center;
gap: 10px;
margin: 2px 0 4px;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.14em;
text-shadow: 0 1px 0 #000;
}

.league-final::before,
.league-final::after {
content: "";
flex: 1;
height: 1px;
background: var(--gold);
opacity: 0.45;
}

.league-weeks[hidden],
.league-final[hidden] {
display: none;
}

.league-list {
flex: 1 1 auto;
min-height: 0;
margin: 0;
padding: 2px 2px 8px;
list-style: none;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
overflow-anchor: none;
}

:is(.league-row, .league-dock) {
display: grid;
grid-template-columns: 2em 22px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
min-height: 44px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.03em;
color: var(--text);
text-shadow: 0 1px 0 #000;
font-variant-numeric: tabular-nums;
}

:is(.league-row, .league-dock).up .league-place::before { content: "▲ "; color: var(--jade); font-size: 0.7rem; }
:is(.league-row, .league-dock).down .league-place::before { content: "▼ "; color: var(--ruby); font-size: 0.7rem; }

.league-row.cut-up {
border-bottom: 1px dashed var(--jade);
}

.league-row.cut-down {
border-top: 1px dashed var(--ruby);
}

.league-cut {
grid-column: 1 / -1;
justify-self: start;
font-size: 0.75rem;
letter-spacing: 0.06em;
line-height: 1.2;
color: var(--jade);
}

.league-row.cut-down .league-cut { order: -1; color: var(--ruby); }
.league-cut[hidden] { display: none; }

.league-row.you {
color: var(--gold-light);
}

.league-place {
color: var(--muted);
font-family: var(--display);
text-align: right;
}

.league-avatar {
position: relative;
display: grid;
place-items: center;
}

.league-face {
--tint: var(--league-tint-0);
--portrait: url("../art/league/rival-0.webp");
position: relative;
display: block;
width: 22px;
height: 22px;
overflow: hidden;
border: 2px solid var(--gold);
border-radius: 50%;
background: var(--tint) var(--portrait) no-repeat center / 108% auto;
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.league-face.tint-1 { --tint: var(--league-tint-1); --portrait: url("../art/league/rival-1.webp"); }
.league-face.tint-2 { --tint: var(--league-tint-2); --portrait: url("../art/league/rival-2.webp"); }
.league-face.tint-3 { --tint: var(--league-tint-3); --portrait: url("../art/league/rival-3.webp"); }
.league-face.tint-4 { --tint: var(--league-tint-4); --portrait: url("../art/league/rival-4.webp"); }
.league-face.tint-5 { --tint: var(--league-tint-5); --portrait: url("../art/league/rival-5.webp"); }
.league-face.tint-6 { --tint: var(--league-tint-6); --portrait: url("../art/league/rival-6.webp"); }
.league-face.tint-7 { --tint: var(--league-tint-7); --portrait: url("../art/league/rival-7.webp"); }
.league-face.you {
--tint: var(--gold-deep);
background: var(--tint) url("../art/profile-portraits/empress.webp") no-repeat center / contain;
}

.league-row.active .league-avatar::after {
content: "";
position: absolute;
right: -2px;
bottom: -1px;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--jade);
box-shadow: 0 0 0 2px var(--navy-deep);
}

.league-row,
.league-tab-row {
position: relative;
isolation: isolate;
}

.league-flash {
position: absolute;
inset: 0;
z-index: -1;
background: linear-gradient(90deg, transparent, var(--league-flash) 30%, var(--league-flash) 70%, transparent);
opacity: 0;
pointer-events: none;
}

.league-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.league-score {
color: var(--gold-light);
font-family: var(--display);
text-align: right;
}


/* Source: css/shop-packs.css */

.shop-button {
flex: none;
width: 44px;
height: 44px;
margin-left: 2px;
border-radius: 50%;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px rgba(47, 212, 122, 0.6);
color: #fff;
font-size: 1.3rem;
font-weight: 900;
line-height: 1;
text-shadow: 0 1px 0 #054018;
}

.shop-button:active {
transform: scale(0.92);
}

.app .shop-button {
position: relative;
isolation: isolate;
border: 0;
background: none;
box-shadow: none;
}

.app .shop-button::before {
content: "";
position: absolute;
inset: 4px;
z-index: -1;
border: 2px solid var(--gold);
border-radius: 50%;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px rgba(47, 212, 122, 0.6);
pointer-events: none;
}

.shop-panel .sheet-title {
font-size: 1.45rem;
}

.shop-x {
position: absolute;
top: -14px;
right: 10px;
z-index: 2;
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, var(--wheel-skip-fill-top), var(--violet) 55%, var(--wheel-skip-fill-bottom));
box-shadow: 0 0 0 2px var(--gold-light), 0 0 0 4px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.6);
transition: transform 80ms ease;
}

.shop-x svg {
width: 20px;
height: 20px;
fill: none;
stroke: var(--gold);
stroke-width: 3.4;
stroke-linecap: round;
filter: drop-shadow(0 1px 0 var(--wheel-skip-lip));
}

.shop-x:active {
transform: scale(0.94);
}

.shop-perk {
position: absolute;
top: calc(var(--safe-top) + 19px);
right: 76px;
z-index: 3;
display: grid;
justify-items: end;
margin: 0;
font-family: var(--display);
letter-spacing: 0.05em;
line-height: 1.1;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
pointer-events: none;
}

.shop-perk[hidden] { display: none; }
.shop-perk-name { font-size: 12px; color: var(--muted); }
.shop-perk-bonus { font-size: var(--type-key); color: var(--gold-light); font-variant-numeric: tabular-nums; }

.shop-body {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
margin: 0 -6px;
padding: 4px 6px 6px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
}

.pack-list {
flex: none;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
padding: 2px 0 2px;
}

.pack-card {
position: relative;
min-width: 0;
}

.pack {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 0 8px 8px;
border-radius: var(--radius);
background:
radial-gradient(60% 26% at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%),
linear-gradient(180deg, var(--violet), var(--lacquer) 55%, var(--sheet-base));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 10px rgba(255, 212, 90, 0.35), 0 0 8px rgba(255, 212, 90, 0.45);
font-family: var(--display);
text-align: center;
transition: transform 80ms ease;
}

.pack:active {
transform: scale(0.97);
}

.pack-art {
position: relative;
display: block;
flex: none;
width: 122px;
aspect-ratio: 1;
margin-bottom: -36px;
overflow: hidden;
pointer-events: none;
filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.pack-art img {
position: absolute;
width: 300%;
height: 200%;
max-width: none;
}

.pack-art::before,
.pack-art::after {
content: "✦";
position: absolute;
z-index: 1;
color: var(--gold-light);
font-family: var(--display);
line-height: 1;
text-shadow: 0 0 4px var(--gold);
}

.pack-art::before {
top: 30%;
left: 6%;
font-size: 0.8rem;
}

.pack-art::after {
top: 18%;
right: 12%;
font-size: 0.6rem;
}

.pack-ribbon {
position: relative;
z-index: 1;
display: block;
width: 88%;
padding: 3px 14px 4px;
overflow: hidden;
color: var(--text);
font-size: 0.85rem;
letter-spacing: 0.05em;
line-height: 1.15;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.pack-ribbon::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background:
linear-gradient(180deg, var(--gold-light), var(--gold-dark)) top / 100% 1px no-repeat,
linear-gradient(180deg, var(--gold-light), var(--gold-dark)) bottom / 100% 1px no-repeat,
linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%),
linear-gradient(180deg, var(--lacquer-light), var(--violet) 55%, var(--lacquer));
clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
}

.pack-amount {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
min-width: 0;
margin-top: 4px;
}

.pack-coin.credits-coin {
width: 20px;
height: 20px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.pack-coins {
min-width: 0;
max-width: calc(100% - 25px);
overflow: hidden;
color: var(--gold-light);
font-size: 1.3rem;
letter-spacing: 0.02em;
line-height: 1.15;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.7);
}

.pack-points {
display: block;
width: 100%;
min-width: 0;
margin-top: 1px;
overflow: hidden;
color: var(--muted);
font-size: 0.7rem;
letter-spacing: 0.05em;
line-height: 1.2;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.pack-points.reach {
color: var(--gold);
}

.pack-price {
display: grid;
place-items: center;
width: 100%;
min-height: 36px;
margin-top: 4px;
border-radius: 8px;
background: var(--gold-bevel);
border: 2px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
color: var(--gold-ink);
font-size: 1.35rem;
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.pack-tag {
--tag-neon: var(--neon-pink);
position: absolute;
z-index: 2;
top: 14px;
left: 6px;
width: min-content;
padding: 3px 6px;
border-radius: 6px;
background: linear-gradient(180deg, var(--red-dark), var(--navy-deep));
border: 2px solid var(--tag-neon);
box-shadow: 0 0 6px var(--tag-neon), inset 0 0 5px var(--tag-neon);
color: var(--text);
font-size: 0.72rem;
letter-spacing: 0.06em;
line-height: 1.05;
text-align: center;
text-shadow: 0 0 4px var(--tag-neon), 0 1px 0 #000;
transform: rotate(-8deg);
}

.pack-tag::before {
content: "";
position: absolute;
top: -11px;
left: 50%;
width: 18px;
height: 9px;
margin-left: -9px;
background: var(--tag-neon);
clip-path: polygon(0 100%, 0 20%, 27% 62%, 50% 0, 73% 62%, 100% 20%, 100% 100%);
}

.pack-tag.tag-best-value {
--tag-neon: var(--sapphire);
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
}

.pack-tag.flash {
--tag-neon: var(--ruby);
}

.pack-tag[hidden] {
display: none;
}

.pack-tag.flash .pack-tag-text,
.pack-tag-best {
white-space: nowrap;
}

.pack-tag-best {
display: block;
margin-top: 3px;
padding-top: 3px;
border-top: 1px solid var(--sapphire);
color: var(--text);
text-shadow: 0 0 4px var(--sapphire), 0 1px 0 #000;
}

.pack-tag-best[hidden] {
display: none;
}

.pack-info {
position: absolute;
top: 0;
right: 0;
z-index: 3;
isolation: isolate;
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: 50%;
color: var(--text);
font-family: var(--display);
font-size: 1rem;
line-height: 1;
text-shadow: 0 1px 0 #000;
transition: transform 80ms ease;
}

.pack-info::before {
content: "";
position: absolute;
inset: 9px;
z-index: -1;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, var(--wheel-skip-fill-top), var(--violet) 55%, var(--wheel-skip-fill-bottom));
box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 3px var(--gold-deep), 0 2px 3px rgba(0, 0, 0, 0.6);
}

.pack-info:active {
transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
.pack,
.pack-info,
.shop-x {
transition: none;
}
}

.shop-coin-mark:empty {
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.shop-coin-mark {
width: 64px;
height: 64px;
}



/* Source: css/checkout.css */

.pay {
--pay-inset: 7px;
--pay-vh: 1vh;
--pay-dvh: 1dvh;
--popup-height: calc(100 * var(--pay-dvh) - var(--safe-top) - 100px - var(--pay-inset));
position: fixed;
inset: 0;
z-index: 60;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 0 max(var(--pay-inset), var(--safe-right)) var(--pay-inset) max(var(--pay-inset), var(--safe-left));
background: rgba(0, 0, 0, 0);
pointer-events: none;
visibility: hidden;
transition: background 220ms ease, visibility 0s linear 300ms;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px;
line-height: 1.3;
letter-spacing: normal;
}

.pay.open {
background: rgba(0, 0, 0, 0.45);
pointer-events: auto;
visibility: visible;
transition: background 220ms ease, visibility 0s;
}

.pay-panel {
width: 100%;
max-height: var(--popup-height);
overflow-y: auto;
overscroll-behavior: contain;
padding: 15px 15px max(14px, calc(var(--safe-bottom) - 8px));
border-radius: 38px;
background: #121214;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.45);
color: #fff;
transform: translateY(calc(100% + var(--pay-inset)));
transition: transform 300ms ease-out;
}

.pay.open .pay-panel {
transform: none;
}

.pay-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 44px;
margin-bottom: 10px;
padding-left: 4px;
}

.pay-title {
display: flex;
align-items: center;
gap: 2px;
margin: 0;
font: inherit;
font-size: 23px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.1;
}

.pay-logo {
flex: none;
width: 20px;
height: 25px;
margin-top: -3px;
fill: currentColor;
}

.pay-cancel {
flex: none;
width: 44px;
height: 44px;
border-radius: 50%;
background: #2c2c2e;
color: #fff;
display: grid;
place-items: center;
font-weight: 500;
}

.pay-cancel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

.pay-group {
padding: 0 15px;
border-radius: 24px;
background: #2c2c2e;
}

.pay-product {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 0;
}

.pay-app-icon {
flex: none;
width: 52px;
height: 52px;
border-radius: 12px;
object-fit: cover;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pay-product-text {
display: flex;
flex-direction: column;
min-width: 0;
line-height: 1.25;
}

.pay-product-name {
font-weight: 600;
font-size: 17px;
font-variant-numeric: tabular-nums;
}

.pay-product-sub {
color: rgba(235, 235, 245, 0.6);
font-size: 15px;
}

.pay-age {
display: inline-block;
padding: 0 3px;
border: 1px solid currentColor;
border-radius: 4px;
font-size: 11px;
line-height: 13px;
vertical-align: 2px;
}

.pay-row {
display: flex;
align-items: center;
gap: 12px;
padding: 13px 0;
border-top: 1px solid #3a3a3c;
font-size: 15px;
}

.pay-price-row {
flex-direction: column;
align-items: flex-start;
gap: 1px;
}

.pay-price {
font-size: 17px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}

.pay-license-row {
justify-content: space-between;
font-weight: 500;
line-height: 1.3;
}

.pay-chevron { flex: none; width: 9px; height: 16px; fill: none; stroke: rgba(235, 235, 245, 0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pay-account-row {
justify-content: space-between;
color: rgba(235, 235, 245, 0.6);
}

.pay-account { min-width: 0; overflow-wrap: anywhere; }

.pay-badge { flex: none; width: 34px; height: 16px; }
.pay-badge rect { fill: #fff; }
.pay-badge g { fill: #000; }

.pay-confirm {
display: grid;
place-items: center;
width: 100%;
min-height: 82px;
margin-top: 10px;
color: #fff;
}

@media (max-height: 700px) and (orientation: portrait) {
.pay-head { margin-bottom: 6px; }
.pay-product { padding: 10px 0; }
.pay-row { padding: 9px 0; }
.pay-confirm { min-height: 72px; margin-top: 4px; }
}

.pay-confirm.nudge .pay-ready {
animation: pay-nudge 400ms ease;
}

.pay-state {
grid-area: 1 / 1;
display: none;
flex-direction: column;
align-items: center;
gap: 8px;
font-size: 17px;
font-weight: 600;
}

.pay.ready .pay-ready,
.pay.busy .pay-busy,
.pay.done .pay-done {
display: flex;
}

.pay-side-icon {
width: 36px;
height: 36px;
fill: none;
stroke: #0a84ff;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}

.pay-spinner {
width: 40px;
height: 40px;
border-radius: 50%;
border: 4px solid #3a3a3c;
border-top-color: #0a84ff;
animation: pay-spin 0.8s linear infinite;
}

.pay-check {
position: relative;
width: 46px;
height: 46px;
border-radius: 50%;
border: 3px solid #0a84ff;
animation: pay-pop 300ms ease-out;
}

.pay-check::after {
content: "";
position: absolute;
left: 13px;
top: 6px;
width: 11px;
height: 21px;
border: solid #0a84ff;
border-width: 0 3.5px 3.5px 0;
transform: rotate(45deg);
}

.pay-done {
color: #0a84ff;
font-weight: 600;
}


.pay-side {
--pay-sheet: var(--pay-sheet-top, calc(100 * var(--pay-vh) - var(--safe-bottom) - 450px));
--pay-side-mid: calc(36 * var(--pay-vh) - 0.64 * 55px + 0.64 * var(--safe-top));
--pay-side-top: max(calc(var(--safe-top) + 8px), min(calc(var(--pay-side-mid) - 24px), calc(var(--pay-sheet) - 60px)));
position: fixed;
z-index: 1;
top: var(--pay-side-top);
right: 0;
display: flex;
align-items: center;
height: 48px;
padding: 0 16px 0 14px;
color: #fff;
font-size: 0.85rem;
font-weight: 600;
text-align: right;
line-height: 1.2;
opacity: 0;
transition: opacity 200ms ease;
cursor: pointer;
}

.pay.ready .pay-side {
opacity: 1;
animation: pay-side 1.2s ease-in-out infinite;
}

.pay-side-bar {
position: absolute;
top: calc(max(calc(var(--safe-top) + 8px), calc(var(--pay-side-mid) - 48px)) - var(--pay-side-top));
right: 0;
width: 6px;
height: 96px;
border-radius: 3px 0 0 3px;
background: #fff;
box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}


/* Source: css/planets-marks.css */

.moon      { --p: #e8eef8; --p-light: #ffffff; --p-dark: #7d8aa6; --p-glow: rgba(220, 230, 255, 0.5); }
.lotus     { --p: #ff9ccf; --p-light: #fff0f8; --p-dark: #a8336f; --p-glow: rgba(255, 140, 200, 0.6); }
.storm     { --p: #a77bff; --p-light: #efe4ff; --p-dark: #3f1a99; --p-glow: rgba(160, 110, 255, 0.75); }
.sun       { --p: #ffc93a; --p-light: #fffbe0; --p-dark: #b25a00; --p-glow: rgba(255, 190, 40, 0.85); }
.celestial { --p: #7af2ff; --p-light: #ffffff; --p-dark: #3a2aa8; --p-glow: rgba(140, 240, 255, 0.95); }
.supernova { --p: #f8a5de; --p-light: #fff3b8; --p-dark: #401970; --p-glow: rgba(243, 98, 216, 0.95); }

.pearl {
position: relative;
display: inline-block;
flex: none;
width: 24px;
height: 24px;
background: var(--planet-art) center / contain no-repeat;
font-size: 24px;
}

.pearl.moon { --planet-art: url("../art/planets/moon.webp"); }
.pearl.lotus { --planet-art: url("../art/planets/lotus.webp"); }
.pearl.storm { --planet-art: url("../art/planets/storm.webp"); }
.pearl.sun { --planet-art: url("../art/planets/sun.webp"); }
.pearl.celestial { --planet-art: url("../art/planets/celestial.webp"); }
.pearl.supernova { --planet-art: url("../art/planets/supernova.webp"); }

.pearl.storm {
display: inline-block;
flex: none;
min-height: 0;
padding: 0;
overflow: visible;
}

.pearl-tile.storm {
flex: initial;
justify-content: flex-start;
padding: 8px 2px 6px;
overflow: visible;
}

.pearl-button {
position: relative;
flex: none;
display: flex;
align-items: center;
gap: 5px;
height: 44px;
padding: 0 10px 0 6px;
border-radius: var(--radius);
background: rgba(0, 0, 0, 0.45);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pearl-button .pearl {
width: 22px;
height: 22px;
}

.pearl-count {
color: var(--text);
font-family: var(--display);
font-size: 1rem;
font-weight: 900;
font-variant-numeric: tabular-nums;
}

.pearl-fever {
grid-column: 1 / -1;
width: 100%;
border: 1px solid var(--gold-deep);
border-radius: 0;
background: var(--bg);
color: var(--neon-cyan);
font-family: var(--display);
font-size: 11px;
line-height: 12px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.pearl-fever[hidden] {
display: none;
}

.pearl-button.landed .pearl {
animation: pearl-land 450ms ease-out;
}

.pearl-button:active {
transform: scale(0.95);
}

.league-button.fever {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 20px 14px;
justify-items: center;
padding: 2px;
}

.league-button.fever .league-icon { width: 16px; height: 16px; }

.fly-pearl {
position: fixed;
z-index: 16;
}

.float-text.pearl-drop {
font-size: 1.6rem;
animation-duration: 1400ms;
}

.float-text.pearl-drop.lotus { color: #ffb8de; }
.float-text.pearl-drop.storm { color: #c9a8ff; }
.float-text.pearl-drop.sun { color: var(--gold); }
.float-text.pearl-drop.celestial { color: #b8fbff; font-size: 2rem; }
.float-text.pearl-drop.supernova { color: var(--p-light); font-size: 2rem; }

.planet-tip {
position: fixed;
z-index: 20;
display: none;
grid-template-columns: minmax(0, 1fr);
padding: 6px 10px 8px;
border-radius: 12px;
background:
radial-gradient(80% 60% at 50% 0%, rgba(190, 120, 255, 0.35), transparent 70%),
linear-gradient(180deg, rgba(58, 26, 150, 0.96), rgba(22, 10, 70, 0.96));
border: 2px solid #b48cff;
box-shadow: 0 0 0 1px #2a0a6a, 0 0 18px rgba(170, 110, 255, 0.75), 0 6px 14px rgba(0, 0, 0, 0.6);
transform: translateX(-50%);
pointer-events: none;
}

.planet-tip.show {
display: grid;
animation: planet-tip 5200ms ease-out forwards;
}

.planet-tip-page {
grid-area: 1 / 1;
align-self: start;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
min-width: 0;
transition: opacity 240ms ease;
}

.planet-tip-page.b,
.planet-tip.page-b .planet-tip-page.a {
opacity: 0;
}

.planet-tip-page.b {
container-type: inline-size;
}

.planet-tip.page-b .planet-tip-page.b {
opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
.planet-tip.show {
animation: none;
}
.planet-tip-page {
transition: none;
}
}

@keyframes planet-tip {
0% { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
5% { opacity: 1; transform: translate(-50%, 0) scale(1); }
92% { opacity: 1; transform: translate(-50%, 0); }
100% { opacity: 0; transform: translate(-50%, 0); }
}

.planet-tip-title {
color: #fff;
font-family: var(--display);
font-size: 1.05rem;
letter-spacing: 0.08em;
line-height: 1.1;
text-transform: uppercase;
text-shadow: 0 0 8px #b07aff, 0 2px 0 rgba(0, 0, 0, 0.6);
}

.planet-tip-sub {
color: #e6dcff;
font-family: var(--display);
font-size: 0.7rem;
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.planet-tip-row {
container-type: inline-size;
display: flex;
align-items: flex-end;
justify-content: center;
gap: 8px;
width: 100%;
margin-top: 2px;
padding: 16px 4px 6px;
border-radius: var(--radius);
background: rgba(8, 4, 40, 0.6);
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.planet-tip-slot {
position: relative;
display: grid;
place-items: center;
}

.planet-tip-slot + .planet-tip-slot::before {
content: "";
position: absolute;
left: -7px;
top: 50%;
width: 4px;
height: 6px;
border-top: 2px solid #7fd0ff;
border-right: 2px solid #7fd0ff;
transform: translateY(-50%) rotate(45deg);
filter: drop-shadow(0 0 2px #7fd0ff);
}

.planet-tip-slot .pearl {
width: min(38px, 13cqi);
height: min(38px, 13cqi);
font-size: min(38px, 13cqi);
}

.planet-tip-slot.off .pearl {
filter: grayscale(1) brightness(0.4);
box-shadow: none;
}

.planet-tip-slot.best .pearl {
animation: pearl-bob 1.6s ease-in-out infinite;
filter: drop-shadow(0 0 5px var(--p-glow));
}

.planet-tip-tag {
position: absolute;
bottom: calc(100% + 2px);
left: 50%;
display: none;
padding: 1px 6px;
border-radius: 4px;
background: linear-gradient(180deg, #ff9a3a, #e2420e);
box-shadow: 0 0 0 1px #ffe0a0, 0 0 8px rgba(255, 120, 30, 0.8);
color: #fff;
font-family: var(--display);
font-size: 0.7rem;
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
line-height: 1.4;
text-transform: uppercase;
white-space: nowrap;
transform: translateX(-50%);
}

.planet-tip-slot.best .planet-tip-tag {
display: block;
}

.planet-tip-slot:first-child .planet-tip-tag { left: 0; transform: none; }
.planet-tip-slot:last-child .planet-tip-tag { left: auto; right: 0; transform: none; }

.planet-tip-meter {
width: 82%;
padding: 4px 0 13px;
}

.planet-tip-track {
position: relative;
display: block;
height: 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.55);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(180, 140, 255, 0.5);
}

.planet-tip-fill {
position: absolute;
left: 0;
top: 0;
bottom: 0;
min-width: 8px;
border-radius: inherit;
background: linear-gradient(90deg, #ff7a2a, #ffd23a);
box-shadow: 0 0 8px rgba(255, 170, 40, 0.8);
}

.planet-tip-mark {
position: absolute;
top: 9px;
color: rgba(230, 220, 255, 0.45);
font-family: var(--display);
font-size: 0.6875rem;
line-height: 1;
transform: translateX(-50%);
}

.planet-tip-mark.on {
color: #ffd23a;
text-shadow: 0 0 4px rgba(255, 160, 40, 0.8);
}

.planet-tip-label {
color: #e6dcff;
font-family: var(--display);
font-size: 0.7rem;
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.bet-bonus-grid {
display: grid;
grid-template-columns: repeat(3, auto);
justify-content: space-around;
gap: 4px 6px;
width: 100%;
margin-top: 2px;
padding: 5px 4px;
border-radius: var(--radius);
background: var(--planet-tip-band);
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.bet-bonus {
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
min-width: 0;
}

.bet-bonus-head,
.bet-bonus-foot {
display: flex;
align-items: center;
gap: 4px;
}

.bet-bonus-foot {
gap: 3px;
}

.bet-bonus-mark {
flex: none;
width: 18px;
height: 18px;
}

.level-star.bet-bonus-mark {
width: 18px;
height: 18px;
margin: 0;
filter: none;
}

.rush-mark.bet-bonus-mark {
width: 18px;
height: 18px;
}

.bet-bonus-glyph {
display: grid;
place-items: center;
font-family: var(--display);
font-size: 1.05rem;
line-height: 1;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.bet-bonus-value {
color: var(--gold-light);
font-family: var(--display);
font-size: clamp(11px, 5.4cqi, 0.9rem);
line-height: 1.15;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.bet-bonus-label {
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
line-height: 1.15;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.bet-bonus-tag {
padding: 0 4px;
border-radius: 4px;
background: linear-gradient(180deg, var(--hot-tag-top), var(--hot-tag-base));
box-shadow: 0 0 0 1px var(--hot-tag-rim);
color: var(--text);
font-family: var(--display);
font-size: 0.7rem;
line-height: 1.2;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.bet-bonus-tag[hidden] {
display: none;
}

.bet-bonus.off .bet-bonus-mark {
filter: grayscale(1) brightness(0.45);
}

.bet-bonus.off .bet-bonus-value {
color: var(--muted);
filter: grayscale(1);
}

@container (max-width: 270px) {
.bet-bonus-grid {
width: calc(100% + 12px);
margin-inline: -6px;
padding-inline: 2px;
column-gap: 4px;
}
.bet-bonus-mark,
.level-star.bet-bonus-mark,
.rush-mark.bet-bonus-mark {
width: 16px;
height: 16px;
}
.bet-bonus-glyph {
font-size: 0.95rem;
}
.bet-bonus-label {
letter-spacing: 0.04em;
}
.bet-bonus-tag {
padding: 0 3px;
}
}

@container (max-width: 240px) {
.bet-bonus-grid {
padding-inline: 0;
column-gap: 2px;
}
.bet-bonus-value {
letter-spacing: 0;
}
}


.income-line,
.pearl-odds {
margin: 0 0 8px;
color: var(--muted);
font-size: 0.8rem;
text-align: center;
}

.shop-bonus {
flex: none;
margin: 0 0 8px;
color: var(--gold);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.06em;
text-align: center;
text-shadow: 0 1px 0 #000;
}

.shop-bonus::before,
.shop-bonus::after {
content: "✦";
margin: 0 8px;
color: var(--gold-light);
font-size: 0.8em;
}

.shop-bonus[hidden] {
display: none;
}


/* Source: css/planets-pouch.css */
.pearl-contents {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
padding: 6px 4px 4px;
}

.pearl-headline {
margin: 0 0 8px;
color: var(--text);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.06em;
text-align: center;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.pearl-feature {
--p-light: var(--text);
--p-glow: rgba(220, 230, 255, 0.5);
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 10px;
padding: 8px 12px 8px 8px;
}

.pearl-feature-stage {
position: relative;
flex: none;
display: grid;
place-items: center;
width: 108px;
height: 100px;
}

.pearl-feature-stage::after {
content: "";
position: absolute;
inset: auto 0 0;
height: 50%;
background: url("../art/ui/planet-dais.webp") center / 100% 100% no-repeat;
pointer-events: none;
}

.pearl-feature-stage::before {
content: "";
position: absolute;
z-index: 1;
left: 12%;
right: 12%;
bottom: 26%;
height: 20%;
background: radial-gradient(ellipse, var(--p-glow), transparent 70%);
pointer-events: none;
}

.pearl-feature .pearl {
position: relative;
z-index: 2;
width: 78px;
height: 78px;
margin-bottom: 22px;
font-size: 78px;
animation: pearl-bob 2.4s ease-in-out infinite;
}

.sheet:not(.open) .pearl-feature .pearl {
animation: none;
}

.pearl-feature.empty .pearl {
filter: grayscale(0.8) brightness(0.55);
animation: none;
}

.pearl-feature-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}

.pearl-feature-rarity-row {
display: flex;
align-items: center;
gap: 6px;
}

.pearl-feature-rarity {
color: var(--text);
font-family: var(--display);
font-size: 1.35rem;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.pearl-feature-count,
.pearl-tile-count {
width: 22px;
height: 22px;
padding: 0;
border-radius: 50%;
background: var(--ruby);
box-shadow: 0 0 0 1.5px var(--gold-deep), 0 2px 3px rgba(0, 0, 0, 0.5);
color: var(--text);
font-family: var(--display);
font-size: 0.8rem;
line-height: 22px;
text-align: center;
text-shadow: 0 1px 0 #000;
}

.pearl-feature-count[hidden],
.pearl-tile-count:empty {
display: none;
}

.pearl-feature-name {
color: var(--muted);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.pearl-go,
.pearl-open .pearl-collect.pearl-go,
.chart-reward .pearl-collect.pearl-go {
border: 2px solid #b8ff8a;
border-radius: 12px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
linear-gradient(180deg, #8bf04e, #2fb52a 55%, #127a16);
box-shadow: 0 0 0 1px #0b4a10, 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 12px rgba(120, 255, 90, 0.35);
color: #fff;
font-family: var(--display);
font-weight: 900;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 2px 0 rgba(0, 60, 0, 0.7);
}

.pearl-go:active:not(:disabled) {
transform: translateY(2px);
box-shadow: 0 0 0 1px #0b4a10, 0 1px 0 rgba(0, 0, 0, 0.55);
}

.pearl-go:disabled {
opacity: 0.4;
filter: grayscale(0.7);
}

.pearl-open-one {
width: 100%;
max-width: 180px;
min-height: 56px;
margin-top: 2px;
font-size: 1.25rem;
}

.pearl-open-one,
.pearl-open-all {
border: 3px solid var(--gold-light);
border-radius: var(--radius);
background: var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
color: var(--gold-deep);
font-family: var(--display);
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pearl-open-one:disabled,
.pearl-open-all:disabled {
opacity: 0.65;
}

.pearl-open-one:active:not(:disabled),
.pearl-open-all:active:not(:disabled) {
transform: translateY(2px);
}

.pearl-list {
display: grid;
grid-template-columns: repeat(4, minmax(44px, 1fr)) minmax(44px, 1.2fr) minmax(44px, 1.4fr);
gap: 4px;
margin-bottom: 10px;
}

.pearl-tile {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-height: 72px;
padding: 8px 2px 6px;
}

.pearl-tile.picked .pearl-tile-name {
color: var(--gold-light);
text-decoration: underline;
text-underline-offset: 4px;
}

.pearl-tile .pearl {
width: 38px;
height: 38px;
font-size: 38px;
}

.pearl-tile:active:not(:disabled) {
transform: scale(0.96);
}

.pearl-tile:disabled {
opacity: 0.7;
}

.pearl-tile:disabled .pearl {
filter: grayscale(1) brightness(0.35);
}

.pearl-tile-name {
max-width: 100%;
color: var(--text);
font-family: var(--display);
font-size: 11px;
letter-spacing: 0.03em;
line-height: 1.1;
text-align: center;
text-transform: uppercase;
overflow-wrap: anywhere;
text-shadow: 0 1px 0 #000;
}

.pearl-tile-count {
position: absolute;
top: -6px;
right: -4px;
}

.pearl-open-all {
display: block;
width: 100%;
max-width: 240px;
min-height: 46px;
margin: 0 auto 10px;
background: linear-gradient(180deg, var(--violet), var(--navy));
color: var(--text);
text-shadow: 0 1px 0 #000;
font-size: 1.1rem;
}

.pearl-odds-button {
display: block;
min-height: 44px;
margin: -4px auto 0;
padding: 0 12px;
color: var(--muted);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
text-decoration: underline;
text-underline-offset: 2px;
}

.pearl-odds[hidden] {
display: none;
}

.pearl-boosts {
margin-bottom: 10px;
padding: 0 2px;
}

.pearl-boost-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.pearl-boost-row .pearl-boost-mark {
width: 20px;
height: 20px;
}

.pearl-boost-value {
margin-left: auto;
color: var(--gold-light);
font-variant-numeric: tabular-nums;
}

.pearl-boost-timer {
color: var(--muted);
font-variant-numeric: tabular-nums;
}

.pearl-boost-note {
display: block;
padding-top: 6px;
color: var(--muted);
font-size: 13px;
line-height: 1.3;
text-align: center;
}

#pearl-sheet .pearl-odds {
color: var(--text);
font-family: var(--body);
font-size: 13px;
line-height: 1.35;
text-shadow: 0 1px 2px #000;
}

.pearl-odds dl {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 14px;
margin: 0;
}

.pearl-odds dl > div {
display: flex;
justify-content: space-between;
gap: 5px;
padding: 3px 0;
border-bottom: 1px solid var(--hairline);
}

.pearl-odds dd {
margin: 0;
color: var(--gold-light);
font-variant-numeric: tabular-nums;
}

.pearl-odds p {
margin: 5px 0 0;
}

.pearl-open {
--reward-space-top: #160b38;
--reward-space-base: #08051e;
--reward-mist-blue: rgba(64, 111, 225, 0.24);
--reward-mist-pink: rgba(187, 53, 173, 0.2);
--reward-ray: rgba(200, 220, 255, 0.7);
--reward-ray-soft: rgba(150, 180, 255, 0.5);
--reward-meteor: #c5ddff;
position: fixed;
inset: 0;
z-index: 48;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 20px);
background: radial-gradient(ellipse at 50% 42%, #5b1fa6 0, #2a0d6b 32%, #0c0833 66%, #04021a);
overflow: hidden;
}

.pearl-open.show {
display: flex;
}

body:has(> #pearl-open.show:not(.leaving)) > :is(#lobby, #app),
body:has(> #card-show.show) > :is(#lobby, #app) {
content-visibility: hidden;
}

.pearl-open > * {
position: relative;
z-index: 2;
}

.pearl-open > .pearl-open-chamber,
.pearl-open > .pearl-open-space {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
transition: opacity 300ms ease;
}

.pearl-open > .pearl-open-chamber {
background: #0c0833 url("../art/planets/chamber.webp") 50% 50% / cover no-repeat;
}

.pearl-open-chamber > span {
position: absolute;
}

.chamber-beam {
top: -3%;
width: 36%;
height: 78%;
background: linear-gradient(180deg, rgba(225, 240, 255, 0.85), rgba(110, 160, 255, 0.35) 45%, transparent 92%);
clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
transform-origin: 50% 0;
mix-blend-mode: screen;
opacity: 0.6;
}

.chamber-beam.left {
left: 4%;
transform: rotate(-34deg);
animation: beam-sweep-left 3.2s ease-in-out infinite alternate;
}

.chamber-beam.right {
right: 4%;
transform: rotate(34deg);
animation: beam-sweep-right 3.2s ease-in-out infinite alternate;
}


/* Source: css/planets-opening.css */
.pearl-open > .pearl-open-bolts {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
opacity: 0;
pointer-events: none;
}

.pearl-open-bolts path {
fill: none;
stroke-linejoin: round;
stroke-linecap: round;
}

.bolt-core path {
stroke: #ffe8fd;
stroke-width: 3.2;
}

.bolt-core path:nth-child(n + 3) {
stroke-width: 1.6;
}

.bolt-glow path {
stroke: rgba(255, 110, 245, 0.42);
stroke-width: 7;
}

.bolt-glow path:nth-child(n + 3) {
stroke-width: 4.5;
}

.bolt-glow.wide path {
stroke: rgba(192, 64, 255, 0.22);
stroke-width: 16;
}

.bolt-glow.wide path:nth-child(n + 3) {
stroke-width: 10;
}

.pearl-open-chamber::after {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(ellipse at 50% 42%, rgba(255, 70, 235, 0.5), rgba(150, 40, 255, 0.25) 45%, transparent 75%);
mix-blend-mode: screen;
opacity: 0;
}

.pearl-open.surging .pearl-open-chamber::after {
animation: halo-flicker 110ms steps(2) infinite;
opacity: 1;
}

.pearl-open.surging .pearl-open-bolts {
opacity: 1;
}

.pearl-open > .pearl-open-space {
opacity: 0;
background:
radial-gradient(ellipse at 83% 24%, var(--reward-mist-blue), transparent 48%),
radial-gradient(ellipse at 4% 68%, var(--reward-mist-pink), transparent 44%),
linear-gradient(165deg, var(--reward-space-top), var(--reward-space-base) 78%);
overflow: hidden;
}

.pearl-open-space::before,
.pearl-open-space::after {
content: "";
position: absolute;
inset: -6%;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
animation-play-state: paused;
}

.pearl-open-space::before {
background-image: url("../art/planets/reward-nebula.webp");
animation: reward-nebula-drift 24s ease-in-out infinite alternate paused;
}

.pearl-open-space::after {
background-image: url("../art/planets/reward-stars.svg");
animation: reward-stars-drift 18s ease-in-out infinite alternate paused;
}

.pearl-open.burst .pearl-open-space::before,
.pearl-open.burst .pearl-open-space::after,
.pearl-open.burst .pearl-space-meteor {
animation-play-state: running;
}

.pearl-space-meteor {
position: absolute;
left: 68%;
top: 14%;
width: 76px;
height: 1px;
background: linear-gradient(90deg, transparent, var(--reward-meteor));
opacity: 0;
animation: reward-meteor 13s linear 2s infinite paused;
}

.pearl-space-meteor.distant {
left: 14%;
top: 75%;
width: 44px;
animation-duration: 19s;
animation-delay: 6s;
}

@keyframes reward-nebula-drift {
from { transform: translate(-1%, 1%) scale(1.02) rotate(-2deg); opacity: 0.65; }
to { transform: translate(2%, -1%) scale(1.07) rotate(1deg); opacity: 0.9; }
}

@keyframes reward-stars-drift {
from { transform: translate(0, 0); opacity: 0.55; }
to { transform: translate(-5px, 9px); opacity: 0.9; }
}

@keyframes reward-meteor {
0%, 5%, 100% { opacity: 0; transform: translate(0, 0) rotate(142deg) scaleX(0.4); }
0.8% { opacity: 0.65; }
3.5% { opacity: 0; transform: translate(-110px, 86px) rotate(142deg) scaleX(1); }
}

.pearl-open.burst .pearl-open-chamber { opacity: 0; }
.pearl-open.burst .pearl-open-space { opacity: 1; }

.pearl-open-title {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.pearl-open-lead {
color: #efeaff;
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(140, 120, 255, 0.9);
}

.pearl-open-name {
font-family: var(--display);
font-size: 2rem;
letter-spacing: 0.06em;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 12px rgba(255, 106, 0, 0.6));
}

.pearl-open-stage {
display: flex;
align-items: center;
justify-content: center;
flex: none;
width: 240px;
height: min(250px, 36vh);
}

.pearl-open.burst .pearl-open-stage {
height: 150px;
}

.pearl-open-stage > * {
position: absolute;
left: 50%;
top: 50%;
}

.pearl-open-stage::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle, var(--p-glow) 30%, transparent 68%);
transition: transform 400ms ease, opacity 300ms ease;
}

.pearl-open.surging .pearl-open-stage::before {
transform: scale(1.3);
animation: halo-flicker 120ms steps(2) infinite;
}

.pearl-open.burst .pearl-open-stage::before {
opacity: 0;
}

.pearl-open-stage::after {
content: "";
position: absolute;
left: 50%;
bottom: 50%;
width: 420px;
height: 340px;
margin-left: -210px;
background: repeating-conic-gradient(from -60deg at 50% 100%, rgba(255, 214, 110, 0.6) 0 3deg, transparent 3deg 10deg);
-webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 15%, transparent 75%);
mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 15%, transparent 75%);
mix-blend-mode: screen;
opacity: 0;
transform-origin: 50% 100%;
pointer-events: none;
}

.pearl-open.cracking .pearl-open-stage::after {
animation: crack-rays 1000ms ease-out forwards;
}

.pearl-open-stage > .pearl.big {
position: absolute;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
padding: 0;
z-index: 2;
font-size: 150px;
}

#pearl-open-art { clip-path: inset(0 0 calc(50% - 1px) 0); }
.pearl-open-lower { clip-path: inset(50% 0 0 0); }

.pearl-open.charging .pearl.big {
animation: planet-float 1600ms ease-in-out infinite;
}

.pearl-open.surging .pearl.big {
animation: planet-quake 90ms linear infinite;
filter: brightness(1.25) saturate(1.2);
}

.pearl-open.cracking #pearl-open-art {
animation: planet-lift 800ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.pearl-open.cracking .pearl-open-lower {
animation: planet-sink 800ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.pearl-open.burst .pearl.big {
opacity: 0;
}

.pearl-open-seam {
z-index: 3;
width: 200px;
height: 50px;
margin: -45px 0 0 -100px;
border-radius: 50%;
background: radial-gradient(ellipse, #fff 0 18%, #ffe58a 36%, rgba(255, 170, 30, 0.65) 56%, transparent 72%);
mix-blend-mode: screen;
opacity: 0;
transform: scale(0.4, 0.2);
}

.pearl-open.cracking .pearl-open-seam {
animation: seam-open 1000ms ease-out forwards;
}

.pearl-open-ring {
width: 214px;
height: 214px;
margin: -107px 0 0 -107px;
transform: rotate(-14deg) scaleY(0.3);
filter: drop-shadow(0 0 5px #ff4fe8);
transition: opacity 500ms ease;
}

.pearl-open-ring.b {
width: 184px;
height: 184px;
margin: -92px 0 0 -92px;
transform: rotate(11deg) scaleY(0.26);
filter: drop-shadow(0 0 5px #39d6ff);
}

.pearl-open-ring.back { z-index: 1; }
.pearl-open-ring.front { z-index: 4; clip-path: inset(50% 0 0 0); }

.pearl-open-ring i {
position: absolute;
inset: 0;
border: 5px solid rgba(255, 110, 240, 0.3);
border-top-color: #fff;
border-right-color: #ff7af2;
border-radius: 50%;
animation: ring-spin 1400ms linear infinite;
transition: inset 700ms ease-out;
}

.pearl-open-ring.b i {
border-color: rgba(80, 220, 255, 0.3);
border-bottom-color: #fff;
border-left-color: #6fe6ff;
animation-duration: 1900ms;
animation-direction: reverse;
}

.pearl-open.surging .pearl-open-ring i {
animation-duration: 420ms;
}

.pearl-open.cracking .pearl-open-ring i {
inset: -60px;
}

.pearl-open.cracking .pearl-open-ring,
.pearl-open.burst .pearl-open-ring {
opacity: 0;
}

.pearl-open-star {
z-index: 5;
width: 130px;
height: 130px;
margin: -65px 0 0 -65px;
border-radius: 50%;
background: radial-gradient(circle, #fff 0 18%, rgba(225, 235, 255, 0.95) 26%, rgba(120, 150, 255, 0.6) 42%, rgba(70, 90, 255, 0.2) 58%, transparent 70%);
opacity: 0;
pointer-events: none;
}

.pearl-open-star::before,
.pearl-open-star::after {
content: "";
position: absolute;
inset: -110px;
border-radius: 50%;
background: conic-gradient(transparent 0deg 9deg, var(--reward-ray) 10deg 12deg,
transparent 13deg 44deg, var(--reward-ray) 45deg 46deg,
transparent 47deg 78deg, var(--reward-ray) 80deg 83deg,
transparent 84deg 131deg, var(--reward-ray) 132deg 133deg,
transparent 134deg 164deg, var(--reward-ray) 165deg 168deg,
transparent 169deg 218deg, var(--reward-ray) 219deg 220deg,
transparent 221deg 255deg, var(--reward-ray) 256deg 259deg,
transparent 260deg 301deg, var(--reward-ray) 303deg 304deg,
transparent 305deg 337deg, var(--reward-ray) 338deg 340deg, transparent 341deg);
-webkit-mask-image: radial-gradient(circle, #000 12%, transparent 58%);
mask-image: radial-gradient(circle, #000 12%, transparent 58%);
animation: rays 24s linear infinite;
}

.pearl-open-star::after {
inset: -70px;
background: conic-gradient(from 18deg, transparent 0deg 23deg,
var(--reward-ray-soft) 25deg 31deg, transparent 33deg 93deg,
var(--reward-ray-soft) 95deg 98deg, transparent 100deg 148deg,
var(--reward-ray-soft) 150deg 157deg, transparent 159deg 222deg,
var(--reward-ray-soft) 224deg 228deg, transparent 230deg 284deg,
var(--reward-ray-soft) 286deg 291deg, transparent 293deg);
animation-duration: 16s;
animation-direction: reverse;
}

.pearl-open.burst .pearl-open-star {
opacity: 1;
animation: star-pop 700ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.pearl-open > .pearl-open-sparks {
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
}

.pearl-spark {
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
background: #fff4b8;
box-shadow: 0 0 6px 2px #ffb627;
animation: spark-fly 1000ms ease-out both;
}

.pearl-open > .pearl-open-flash {
position: absolute;
inset: 0;
z-index: 10;
background: radial-gradient(circle at 50% 42%, #fff 0 30%, rgba(225, 232, 255, 0.96) 60%, rgba(185, 200, 255, 0.9));
opacity: 0;
pointer-events: none;
}

.pearl-open.cracking .pearl-open-flash {
animation: flash-in 1000ms ease-in forwards;
}

.pearl-open.burst .pearl-open-flash {
animation: flash-out 650ms ease-out forwards;
}

.pearl-open .pearl-prizes {
min-height: 0;
}

.pearl-open.burst .pearl-prizes {
min-height: 190px;
}

.pearl-reward-row {
display: flex;
flex: none;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}

.pearl-prize.tile {
flex: none;
flex-direction: column;
justify-content: center;
gap: 2px;
width: 80px;
min-height: 96px;
padding: 8px 4px;
text-align: center;
animation: none;
}

.pearl-prize.tile.coins {
width: 104px;
}

.pearl-prize.tile.cards .pearl-prize-icon {
display: block;
width: 30px;
height: 40px;
margin: 0 auto 2px;
border-radius: 8.3% / 6.2%;
background: url("../art/atlas/back/card-back.webp") center / 100% 100% no-repeat;
box-shadow: 4px -3px 0 -1px #3a0f5e, 4px -3px 0 1px var(--gold-dark);
filter: none;
}

.pearl-prize.tile.cards .pearl-prize-amount {
color: #ffc6f2;
}

.pearl-prize.tile.flying {
animation: reward-fly 560ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.pearl-prize.tile .pearl-prize-icon {
font-size: 2rem;
line-height: 1.1;
filter: none;
}

.pearl-prize.tile .pearl-prize-amount {
color: var(--booster-cyan);
font-size: 1.15rem;
line-height: 1.1;
}

.pearl-prize.tile.coins .pearl-prize-amount {
color: var(--gold-light);
}

.pearl-prize.tile .pearl-prize-text {
max-width: 100%;
color: var(--text);
font-size: 11px;
letter-spacing: 0.06em;
line-height: 1.15;
}

.pearl-reward-notes {
display: flex;
flex: none;
flex-direction: column;
gap: 3px;
margin-top: 4px;
color: #ddd8ff;
font-size: 0.75rem;
text-align: center;
}

.pearl-reward-note {
animation: pearl-prize 300ms ease-out;
}


/* Source: css/planets-rewards.css */
.pearl-open > .pearl-skip,
.level-up > .reveal-skip {
position: absolute;
right: 18px;
bottom: calc(var(--safe-bottom) + 20px);
z-index: 4;
}

.pearl-open > .pearl-skip,
.level-up > .reveal-skip,
.voyage-up-actions > .reveal-skip {
min-width: 96px;
min-height: 44px;
padding: 0 22px;
border: 1px solid rgba(205, 185, 255, 0.7);
border-radius: 10px;
background: linear-gradient(180deg, #8d5fff, #5a2fd6);
box-shadow: 0 0 12px rgba(140, 90, 255, 0.6);
color: #fff;
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.pearl-open.done .pearl-skip,
.level-up.done .reveal-skip {
display: none;
}

.pearl-prizes {
position: relative;
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
max-width: 360px;
min-height: 120px;
}

.pearl-prize {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: var(--radius);
background: linear-gradient(180deg, #2a1a6a, var(--navy-deep));
border: 2px solid var(--gold-dark);
box-shadow: 0 0 0 1px var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.03em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
animation: pearl-prize 300ms ease-out;
}

.pearl-prize.coins {
border-color: var(--gold);
font-size: 1.4rem;
color: var(--gold-light);
}

.pearl-open .pearl-prize {
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
}

.pearl-prize-icon {
flex: none;
font-size: 1.4rem;
}

.pearl-collect {
position: relative;
display: block;
width: 100%;
max-width: 360px;
visibility: hidden;
}

.pearl-open.done .pearl-collect {
visibility: visible;
}

.pearl-open.all {
gap: 12px;
}

.pearl-open.all .pearl-open-name {
font-size: 1.7rem;
}

.pearl-open.all.burst .pearl-open-stage {
height: 110px;
}

.pearl-open.all .pearl-prizes,
.pearl-open.all.burst .pearl-prizes {
flex: 0 1 auto;
min-height: 0;
}

.pearl-open.all .pearl-reward-row {
gap: 8px;
}

.pearl-open.all .pearl-prize.tile {
width: 72px;
min-height: 82px;
padding: 6px 3px;
}

.pearl-open.all .pearl-prize.tile.coins {
width: 90px;
}

.pearl-open.all .pearl-prize.tile .pearl-prize-icon {
font-size: 1.6rem;
}

.svg-defs {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}

.pearl-prize.tile.starlight .pearl-prize-icon {
display: block;
width: 34px;
height: 34px;
margin: 0 auto;
filter: none;
}

.pearl-prize.tile.starlight .pearl-prize-amount {
color: var(--starlight);
}

.booster-mark {
flex: none;
width: 1em;
height: 1em;
object-fit: contain;
}

.pearl-prize.tile .booster-mark.pearl-prize-icon {
display: block;
width: 34px;
height: 34px;
margin: 0 auto;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(5)) .booster-mark.pearl-prize-icon {
width: 30px;
height: 30px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) .booster-mark.pearl-prize-icon {
width: 28px;
height: 28px;
}


.pearl-reward-row:has(> .pearl-prize.tile:nth-child(5)) {
gap: 5px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(5)) > .pearl-prize.tile {
width: 62px;
min-height: 82px;
padding: 6px 2px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(5)) > .pearl-prize.tile.coins {
width: 82px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(5)) .pearl-prize-icon {
font-size: 1.6rem;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) {
gap: 4px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) > .pearl-prize.tile {
width: 52px;
padding: 6px 1px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) > .pearl-prize.tile.coins {
width: 66px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) > .pearl-prize.tile.starlight {
width: 56px;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) .pearl-prize-amount {
font-size: 1rem;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) .pearl-prize-text {
letter-spacing: 0;
}

.pearl-reward-row:has(> .pearl-prize.tile:nth-child(6)) > .pearl-prize.tile.starlight .pearl-prize-icon {
width: 28px;
height: 28px;
}


.pearl-prize-amount {
flex: none;
color: var(--gold-light);
font-variant-numeric: tabular-nums;
letter-spacing: normal;
text-transform: none;
white-space: pre;
}

.pearl-prize.coins,
.pearl-open.all .pearl-prize:not(.each) {
flex: none;
}



.pearl-open.leaving {
z-index: 44;
pointer-events: none;
background: transparent;
}

.pearl-open.leaving > .pearl-open-space {
animation: leave-fade 420ms ease-in-out both;
}

.pearl-open.leaving .pearl-open-title {
animation: leave-drop 330ms cubic-bezier(0.4, 0, 0.7, 0.3) both;
}

.pearl-open.leaving .pearl-prizes {
animation: leave-drop 340ms cubic-bezier(0.4, 0, 0.7, 0.3) 40ms both;
}

.pearl-open.leaving .pearl-open-star {
animation: leave-star 400ms ease-in both;
}

.pearl-open.leaving .pearl-collect {
animation: leave-fade 200ms ease-out both;
}

@keyframes leave-fade {
from { opacity: 1; }
to { opacity: 0; }
}

@keyframes leave-drop {
from { opacity: 1; transform: none; }
to { opacity: 0; transform: translateY(56px) scale(0.94); }
}

@keyframes leave-star {
0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
62% { opacity: 1; transform: scale(0.1); box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.6); }
78% { opacity: 1; transform: scale(0.14); box-shadow: 0 0 220px 90px rgba(255, 255, 255, 0.95); }
100% { opacity: 0; transform: scale(0.02); box-shadow: 0 0 400px 160px rgba(255, 255, 255, 0); }
}

.streak-bolt {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
pointer-events: none;
filter: drop-shadow(0 0 3px var(--p-light, var(--gold-light))) drop-shadow(0 0 10px var(--p-glow, var(--gold)));
animation: streak-flicker 700ms linear both;
}

.streak-bolt polyline {
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}

.streak-bolt .streak-glow {
stroke: var(--p, var(--gold));
stroke-width: 8;
opacity: 0.55;
}

.streak-bolt .streak-core {
stroke: var(--p-light, var(--gold-light));
stroke-width: 2.4;
}

.streak-bolt .streak-glow.fork { stroke-width: 4.5; }
.streak-bolt .streak-core.fork { stroke-width: 1.3; }

@keyframes streak-flicker {
0% { opacity: 0; }
6% { opacity: 1; }
18% { opacity: 0.45; }
26% { opacity: 1; }
40% { opacity: 0.6; }
50% { opacity: 1; }
64% { opacity: 0.7; }
72% { opacity: 0.95; }
100% { opacity: 0; }
}

.dust-speck {
position: absolute;
border-radius: 50%;
background: var(--gold-light);
box-shadow: 0 0 6px 1px var(--gold);
opacity: 0;
animation: dust-drift 1200ms ease-out both;
}

.dust-speck.tier {
background: var(--p-light, var(--text));
box-shadow: 0 0 6px 2px var(--p-glow, var(--gold));
}

@keyframes dust-drift {
0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
18% { opacity: 1; transform: translate(calc(var(--dx) * 0.2), calc(var(--dy) * 0.15)) scale(1); }
55% { opacity: 0.6; }
70% { opacity: 0.95; }
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
}

@media (prefers-reduced-motion: reduce) {
.streak-bolt,
.dust-speck {
display: none;
}
}


.fly-coin {
position: absolute;
width: 32px;
height: 32px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 0 4px rgba(255, 211, 77, 0.8)) drop-shadow(0 0 10px rgba(255, 150, 20, 0.4));
opacity: 0;
will-change: transform, opacity;
}

.credits.coin-pop {
animation: coin-credits-pop 120ms ease-out;
}

.credits.coin-pop .credits-coin {
animation: coin-icon-bump 180ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.coin-ring {
position: absolute;
width: 30px;
height: 30px;
margin: -15px 0 0 -15px;
border-radius: 50%;
border: 2px solid var(--gold-light);
box-shadow: 0 0 10px 1px var(--gold), inset 0 0 8px rgba(255, 211, 77, 0.6);
animation: coin-ring 520ms ease-out forwards;
}

@keyframes coin-credits-pop {
50% { transform: scale(1.06); }
}

@keyframes coin-icon-bump {
40% { transform: scale(1.28); }
}

@keyframes coin-ring {
from { transform: scale(0.6); opacity: 1; }
to { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.credits.coin-pop,
.credits.coin-pop .credits-coin {
animation: none;
}
.coin-ring {
animation-duration: 1ms;
}
}


.fly-boost {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
filter: drop-shadow(0 0 5px var(--boost-glow, var(--gold))) drop-shadow(0 0 12px var(--boost-glow, var(--gold)));
will-change: transform;
}

.boost-spark {
position: absolute;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--gold-light);
box-shadow: 0 0 4px 1px var(--boost-glow, var(--gold));
animation: boost-spark 520ms ease-out both;
}

@keyframes boost-spark {
0% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.boost-spark { display: none; }
}



/* Source: css/rush-missions.css */

.rush-mark {
display: inline-block;
flex: none;
width: 16px;
height: 16px;
background: url("../art/lobby/rush.webp") center / contain no-repeat;
}

.sheet-panel.rush-panel {
height: min(86vh, calc(100vh - var(--safe-top) - 26px));
height: min(86dvh, calc(100dvh - var(--safe-top) - 26px));
gap: 8px;
}

.rush-head {
flex: none;
display: flex;
align-items: center;
gap: 8px;
}

.rush-meter {
position: relative;
flex: 1;
min-width: 0;
display: flex;
align-items: center;
height: 38px;
}

.rush-meter-mark {
position: absolute;
left: 0;
z-index: 1;
width: 34px;
height: 34px;
}

.rush-meter-bar {
flex: 1;
height: 24px;
margin: 0 14px 0 16px;
overflow: hidden;
border-radius: 6px;
background: linear-gradient(180deg, var(--bg-deep), var(--navy-deep));
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--gold-deep), 0 0 0 2px rgba(255, 212, 90, 0.35);
}

.rush-meter-fill {
display: block;
width: 0;
height: 100%;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 55%),
linear-gradient(90deg, var(--magenta), var(--neon-pink) 55%, var(--neon-cyan));
transition: width 600ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.rush-meter-text {
position: absolute;
left: 34px;
right: 30px;
color: var(--text);
font-family: var(--display);
font-size: 0.82rem;
letter-spacing: 0.04em;
text-align: center;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000, 0 0 3px #000;
}

.rush-meter-tier {
position: absolute;
right: 0;
z-index: 1;
isolation: isolate;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
text-shadow: -1px -1px 0 var(--bg-deep), 1px -1px 0 var(--bg-deep),
-1px 1px 0 var(--bg-deep), 1px 1px 0 var(--bg-deep), 0 2px 2px var(--bg-deep);
}

.rush-meter-tier::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--rush-gem-art, none) center / contain no-repeat;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.rush-meter-tier.amber { --rush-gem-art: url("../art/nebula-empress/gems/amber.webp"); }
.rush-meter-tier.sapphire { --rush-gem-art: url("../art/nebula-empress/gems/sapphire.webp"); }
.rush-meter-tier.jade { --rush-gem-art: url("../art/nebula-empress/gems/jade.webp"); }
.rush-meter-tier.ruby { --rush-gem-art: url("../art/nebula-empress/gems/ruby.webp"); }

.rush-timer,
.rush-page-timer,
.rush-week-timer {
flex: none;
padding: 4px 10px;
border: 1px solid var(--gold-deep);
border-radius: 6px;
background: var(--bg-deep);
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.06em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-page-timer {
align-self: center;
margin: 2px 0 4px;
}

.rush-page-timer[hidden] { display: none; }

#rush-daily-timer.urgent {
position: relative;
isolation: isolate;
}

#rush-daily-timer.urgent::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
background: var(--ruby);
animation: inbox-urgent 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
#rush-daily-timer.urgent::before { animation: none; }
}

.rush-tabs {
flex: none;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}

.rush-tab {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 4px;
border: 2px solid var(--gold-deep);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
color: var(--text);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--bg-deep);
transition: transform 80ms ease;
}

.rush-tab:active { transform: translateY(2px); }

.rush-tab.active {
background: var(--gold-bevel);
color: var(--gold-deep);
border-color: var(--gold);
}

.rush-tab-label {
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.05em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-tab.active .rush-tab-label { text-shadow: none; }

.rush-tab .rush-tab-count {
top: -8px;
right: -6px;
}

.rush-page {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
}

.rush-page[hidden] {
display: none;
}

.rush-list {
flex: none;
display: flex;
flex-direction: column;
}

.rush-bar {
position: relative;
flex: 1;
min-width: 0;
height: 10px;
overflow: hidden;
border-radius: 5px;
background: linear-gradient(180deg, var(--bg-deep), var(--bg));
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 211, 77, 0.35);
}

.rush-bar-fill {
display: block;
width: 0;
height: 100%;
border-radius: 5px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 55%),
linear-gradient(90deg, var(--neon-pink), var(--magenta) 45%, var(--neon-cyan));
transition: width 600ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.rush-task.done .rush-bar-fill {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 55%),
linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

.rush-reward {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}

.rush-reward-mark {
width: 15px;
height: 15px;
}

.rush-reward-text {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.95rem;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-coin {
width: 12px;
height: 12px;
border-width: 1px;
box-shadow: none;
}

.rush-mission {
flex: none;
display: grid;
grid-template-columns: 42px minmax(0, 1fr) 80px;
align-items: center;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--hairline);
}

.rush-mission[hidden] {
display: none;
}

.rush-mission.dealt-now {
animation: rush-claimed 600ms ease-out;
}

.rush-mission-art {
display: block;
width: 42px;
height: 58px;
object-fit: cover;
object-position: 50% 16%;
border: 2px solid var(--gold);
border-radius: 6px;
background: var(--bg-deep);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.rush-mission-body {
display: flex;
flex-direction: column;
gap: 5px;
min-width: 0;
}

.rush-mission-text,
.rush-task-text {
color: var(--text);
font-family: var(--display);
font-size: 0.82rem;
letter-spacing: 0.04em;
line-height: 1.2;
text-transform: uppercase;
text-shadow: 0 1px 2px #000;
}

.rush-mission-meter,
.rush-task-meter {
display: flex;
align-items: center;
gap: 6px;
}

.rush-mission-pct {
flex: none;
min-width: 34px;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.78rem;
text-align: right;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.rush-mission-bet {
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
}

.rush-mission-bet-name {
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.rush-mission-bet-coins {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.rush-mission-side {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
}

.rush-key {
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0 6px;
border: 2px solid var(--gold);
border-radius: 10px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%),
linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
color: var(--text);
font-family: var(--display);
text-shadow: 0 1px 0 var(--go-dark), 0 2px 2px rgba(0, 0, 0, 0.6);
transition: transform 60ms ease-out;
}

.rush-key-label {
font-size: 1.05rem;
letter-spacing: 0.08em;
}

.rush-key:active:not(:disabled) {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 rgba(0, 0, 0, 0.55);
}

.rush-gift {
flex: none;
display: grid;
grid-template-columns: 60px minmax(0, 1fr) 96px;
align-items: center;
gap: 10px;
padding: 6px 0 8px;
border-bottom: 1px solid var(--hairline);
}

.rush-gift-art {
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 52px;
}

.rush-gift-art .chest {
width: 52px;
height: 40px;
}

.rush-gift.ready .chest {
filter: drop-shadow(0 0 10px var(--neon-pink));
animation: capsule-wobble 1.6s ease-in-out infinite;
}

.rush-gift.opened .chest {
filter: grayscale(0.7) brightness(0.7);
}

.rush-gift-body {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}

.rush-gift-name {
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.06em;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.rush-gift-text {
color: var(--muted);
font-size: 0.8125rem;
line-height: 1.25;
}

.rush-gift.ready .rush-gift-text {
color: var(--gold-light);
}

.rush-gift-open,
.rush-week-collect {
min-height: 48px;
padding: 0 8px;
border-radius: 12px;
background: var(--gold-bevel);
border: 3px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
color: var(--gold-deep);
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rush-gift-open:active:not(:disabled),
.rush-week-collect:active {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 rgba(0, 0, 0, 0.55);
}

.rush-gift-open:disabled {
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
border-color: var(--gold-deep);
color: var(--muted);
font-size: 0.95rem;
text-shadow: 0 1px 0 #000;
cursor: default;
}

.rush-task {
flex: none;
display: grid;
grid-template-columns: 22px minmax(0, 1fr) 64px;
align-items: center;
gap: 10px;
padding: 9px 0;
border-bottom: 1px solid var(--hairline);
}

.rush-task[hidden] {
display: none;
}

.rush-task-icon {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
color: var(--gold-light);
}

.rush-task-icon svg,
.rush-task-icon img,
.rush-task-icon .rush-mark {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.rush-task-body {
display: flex;
flex-direction: column;
gap: 5px;
min-width: 0;
}

.rush-task-count {
flex: none;
min-width: 56px;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.03em;
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-task-check {
display: none;
flex: none;
width: 10px;
height: 18px;
margin-top: -4px;
border: solid var(--jade);
border-width: 0 4px 4px 0;
border-radius: 1px;
transform: rotate(40deg);
filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.rush-task.done .rush-task-check {
display: block;
}

.rush-task.done .rush-reward-mark,
.rush-task.done .rush-reward-text {
display: none;
}

.rush-task.done .rush-task-icon {
color: var(--muted);
}

.rush-week {
flex: none;
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 0 4px;
}

.rush-week-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}

.rush-week-name {
color: var(--muted);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.rush-week-payout {
color: var(--gold-light);
font: 0.875rem / 1.2 var(--display);
}

.rush-week-note {
margin: 0;
color: var(--muted);
font-size: 0.8rem;
}

.rush-week-steps {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 2px;
}

.rush-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
padding: 5px 2px 6px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%),
linear-gradient(180deg, var(--violet), var(--navy-deep));
clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%);
}

.rush-step.done {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 50%),
linear-gradient(180deg, var(--lacquer-light), var(--lacquer));
}

.rush-step-day {
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
text-shadow: 0 1px 0 #000;
}

.rush-step.done .rush-step-day {
color: var(--text);
}

.rush-step-mark {
display: flex;
align-items: center;
justify-content: center;
height: 18px;
}

.rush-step-mark .rush-coin {
width: 15px;
height: 15px;
}

.rush-step-planet {
width: 16px;
height: 16px;
margin-right: -4px;
font-size: 16px;
}

.rush-step-coins {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-step-head {
display: flex;
align-items: center;
gap: 2px;
color: var(--rush-ice);
white-space: nowrap;
font: 0.7rem / 1.2 var(--display);
}

.rush-step.past :is(.rush-step-coins, .rush-step-head) { color: var(--muted); }

.rush-week-ready {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) 120px;
align-items: center;
gap: 10px;
}

.rush-week-ready[hidden] {
display: none;
}

.rush-week-ready-mark {
width: 28px;
height: 28px;
box-shadow: none;
}

.rush-week-ready-body {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}

.rush-week-ready-name {
color: var(--muted);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.rush-week-ready-coins {
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.03em;
white-space: nowrap;
font-variant-numeric: tabular-nums;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}


.rush-mission.done .rush-bar-fill {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 55%),
linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

.rush-mission .rush-key[hidden],
.rush-mission .rush-reward[hidden] { display: none; }

/* Source: css/rush-tower-boosts.css */
.rush-tower-list {
flex: none;
display: flex;
flex-direction: column;
gap: 6px;
padding: 4px 0;
}

.rush-tier-need {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
min-width: 0;
height: 30px;
padding: 0 6px;
border-radius: 8px;
}

.rush-tier-mark {
width: 13px;
height: 13px;
}

.rush-tier-text {
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.03em;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.rush-tier-bar,
.rush-you {
display: none;
}

.rush-tier.climbing .rush-tier-need {
background: var(--rush-tier-bed);
box-shadow: 0 0 12px var(--c), inset 0 0 10px var(--c);
}

.rush-tier.climbing .rush-tier-bar {
display: block;
height: 8px;
}

.rush-tier.climbing .rush-tier-mark {
display: none;
}

.rush-tier.climbing .rush-tier-text {
font-size: 0.75rem;
}

.rush-you {
flex: none;
padding: 1px 5px;
border: 1px solid var(--gold);
border-radius: 4px;
background: linear-gradient(180deg, var(--neon-pink), var(--magenta));
color: var(--text);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 var(--red-dark);
}

.rush-tier.climbing .rush-you {
display: block;
}

.rush-tier.vault .spire-ribbon {
background: var(--gold-bevel);
}

.rush-tier.vault .spire-ribbon-name {
color: var(--gold-deep);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rush-tier-lock {
flex: none;
width: 16px;
height: 16px;
color: var(--gold-light);
}

.rush-tier-lock svg {
display: block;
width: 100%;
height: 100%;
}

.rush-tier.paid .rush-tier-lock {
display: none;
}

#rush-tower {
overflow: hidden;
}

#rush-tower .rush-tower-list {
position: relative;
flex: 1 1 auto;
min-height: 0;
padding-top: 8px;
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 8px);
mask-image: linear-gradient(to bottom, transparent, #000 8px);
}

.rush-boost-tag {
display: inline-block;
flex: none;
padding: 0 3px;
border: 1px solid var(--neon-cyan);
border-radius: 4px;
background: var(--bg-deep);
color: var(--neon-cyan);
font-family: var(--display);
font-size: 0.7rem;
line-height: 1.25;
letter-spacing: 0.02em;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 4px rgba(66, 230, 255, 0.7);
box-shadow: 0 0 6px rgba(66, 230, 255, 0.45);
}

.rush-boost-tag[hidden] {
display: none;
}

.rush-button-boost {
position: absolute;
right: 3px;
bottom: 3px;
pointer-events: none;
}

.rush-meter-boost {
position: absolute;
left: 22px;
bottom: -2px;
z-index: 2;
}

.rush-boosters {
flex: none;
display: flex;
flex-direction: column;
margin-bottom: 4px;
border-bottom: 1px solid var(--gold-deep);
}

.rush-booster {
display: grid;
grid-template-columns: 36px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 4px 0;
}

.rush-booster + .rush-booster {
border-top: 1px solid var(--hairline);
}

.rush-booster.claimed-now {
animation: rush-claimed 600ms ease-out;
}

.rush-booster-mark {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
}

.rush-booster-mark .rush-mark {
width: 30px;
height: 30px;
opacity: 0.55;
}

.rush-booster.on .rush-booster-mark .rush-mark {
opacity: 1;
filter: drop-shadow(0 0 6px rgba(255, 79, 216, 0.8));
}

.rush-booster-mark .rush-boost-tag {
position: absolute;
right: -4px;
bottom: 0;
}

.rush-booster-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}

.rush-booster-name {
color: var(--text);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.05em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.rush-booster-state {
color: var(--muted);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.05em;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.rush-booster.on .rush-booster-state {
color: var(--neon-cyan);
}

.rush-boost-buy {
min-width: 76px;
min-height: 44px;
padding: 6px 8px;
border-radius: var(--radius);
background: var(--gold-bevel);
border: 2px solid var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
color: var(--gold-ink);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
transition: transform 80ms ease;
}

.rush-boost-buy:active {
transform: scale(0.96);
}

.rush-booster-value {
display: flex;
align-items: center;
gap: 4px;
padding-right: 4px;
}

.rush-booster-value[hidden] {
display: none;
}

.rush-pass .rush-booster-mark .pass-mark {
width: 32px;
height: 22px;
font-size: 13px;
opacity: 0.7;
}

.rush-pass.on .rush-booster-mark .pass-mark {
opacity: 1;
}

.rush-pass.on .rush-booster-state {
color: var(--gold-light);
}

.rush-boost-buy[hidden] {
display: none;
}

.pass-mark {
position: relative;
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
width: 30px;
height: 20px;
background: var(--gold-bevel);
box-shadow: inset 0 0 0 1px var(--gold-deep);
clip-path: polygon(0 0, 100% 0, 100% 32%, 88% 50%, 100% 68%, 100% 100%, 0 100%, 0 68%, 12% 50%, 0 32%);
color: var(--gold-deep);
font-family: var(--display);
font-size: 12px;
line-height: 1;
}

.pass-mark::after {
content: "★";
}

.rush-tier {
grid-template-columns: 60px minmax(0, 1fr) 70px 58px;
}

.rush-tier::before {
right: 130px;
}

.rush-pass-cell {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 3px;
min-width: 0;
min-height: 24px;
padding-left: 5px;
border-left: 1px solid var(--gold-deep);
}

.rush-tier:not(.pass-on) .rush-pass-cell {
opacity: 0.8;
}

.rush-pass-lock {
flex: none;
width: 12px;
height: 12px;
color: var(--gold-light);
}

.rush-pass-lock svg {
display: block;
width: 100%;
height: 100%;
}

.rush-tier.pass-on .rush-pass-lock {
display: none;
}

.rush-pass-coins {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.03em;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.rush-tier.gold .rush-pass-coins {
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: none;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.rush-pass-cell .spire-planet {
flex: none;
}

.rush-pass-head {
flex: none;
width: 14px;
height: 14px;
}

.rush-pass-check {
display: none;
flex: none;
width: 7px;
height: 12px;
margin: -3px 3px 0 0;
border: solid var(--jade);
border-width: 0 3px 3px 0;
border-radius: 1px;
transform: rotate(40deg);
filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.rush-tier.paid.pass-on .rush-pass-check {
display: block;
}

.rush-tier.paid.pass-on .rush-pass-cell .spire-planet,
.rush-tier.paid.pass-on .rush-pass-head {
display: none;
}

.rush-tier.paid:not(.pass-on) .rush-pass-cell .spire-planet {
display: inline-block;
}

.rush-tier-boost {
display: inline-flex;
flex: none;
flex-direction: column;
align-items: center;
min-width: 34px;
margin-right: 2px;
}

.rush-tier-boost-mark {
position: relative;
display: flex;
justify-content: center;
width: 24px;
height: 24px;
}

.rush-tier-boost-mark .rush-mark {
width: 24px;
height: 24px;
filter: drop-shadow(0 0 4px rgba(255, 79, 216, 0.6));
}

.rush-tier-boost-mark .rush-boost-tag {
position: absolute;
right: -3px;
bottom: 0;
padding: 0 2px;
font-size: 0.75rem;
line-height: 1.1;
}

.rush-tier-boost-min {
margin-top: 2px;
color: var(--neon-cyan);
font-family: var(--display);
font-size: 0.75rem;
line-height: 1;
white-space: nowrap;
text-shadow: 0 0 4px rgba(66, 230, 255, 0.6), 0 1px 0 #000;
}

.spire-tier.paid .rush-tier-boost,
.spire-tier.paid .rush-tier-head {
display: none;
}

.rush-tier-head {
width: 15px;
height: 15px;
}

.rush-step-spark {
width: 12px;
height: 12px;
}

.rush-prize-mark {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
}

.rush-prize-mark .rush-mark {
width: 56px;
height: 56px;
filter: drop-shadow(0 0 8px rgba(255, 79, 216, 0.7));
}

.rush-prize-mark .rush-boost-tag {
position: absolute;
right: -2px;
bottom: 0;
font-size: 0.85rem;
}

.spire-up-prize.boost .spire-up-amount {
color: var(--neon-cyan);
}

.rush-button.landed .rush-button-mark {
animation: rush-land 450ms ease-out;
}

@keyframes rush-land {
40% { transform: scale(1.35); }
}

@keyframes rush-claimed {
0% { filter: brightness(1.8); transform: scale(1.02); }
100% { filter: none; transform: none; }
}

.rush-live {
position: fixed;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.rush-stamp {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
transform: translate(-50%, -50%);
animation: rush-stamp 1240ms ease-out both;
}

.rush-stamp-icon {
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
padding: 14px;
border-radius: 50%;
color: var(--gold-light);
background: radial-gradient(circle, rgba(239, 52, 201, 0.55), rgba(42, 15, 92, 0.35) 55%, transparent 72%);
filter: drop-shadow(0 0 6px var(--magenta));
}

.rush-stamp.coins .rush-stamp-icon {
background: radial-gradient(circle, rgba(255, 180, 58, 0.55), rgba(98, 64, 12, 0.35) 55%, transparent 72%);
filter: drop-shadow(0 0 6px var(--gold));
}

.rush-stamp-icon svg,
.rush-stamp-icon img,
.rush-stamp-icon .rush-mark {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.rush-stamp-amount {
display: flex;
align-items: center;
gap: 4px;
color: var(--gold-light);
font-family: var(--display);
font-size: var(--type-meter);
line-height: 1;
letter-spacing: 0.03em;
white-space: nowrap;
text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 0 0 10px var(--magenta);
}

.rush-stamp-amount .rush-mark,
.rush-stamp-coin {
width: 20px;
height: 20px;
}

.rush-stamp-coin,
.rush-fly-coin {
display: inline-block;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

.rush-fly,
.rush-fly-coin {
position: absolute;
opacity: 0;
filter: drop-shadow(0 0 5px var(--magenta));
will-change: transform, opacity;
}

.rush-fly-coin { filter: drop-shadow(0 0 5px var(--gold)); }

.float-text.rush-gain {
color: var(--neon-pink);
font-size: var(--type-readout);
text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 0 0 8px var(--magenta);
}

.float-text.rush-gain.coins { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
.float-text.rush-gain { animation: rush-gain-fade 400ms ease-in 700ms both; }
}

@keyframes rush-gain-fade {
from { opacity: 1; }
to { opacity: 0; }
}

@keyframes rush-stamp {
0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
16% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
26% { transform: translate(-50%, -50%) scale(1); }
62% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
100% { opacity: 0; transform: translate(-50%, -62%) scale(0.92); }
}

@media (max-height: 700px) {
.sheet-panel.rush-panel { gap: 6px; }
.rush-mission { padding: 6px 0; }
.rush-mission-art { height: 52px; }
.rush-task { padding: 6px 0; }
.rush-gift { padding: 2px 0 6px; }
.rush-tab { min-height: 44px; }
.rush-booster { min-height: 46px; padding: 1px 0; }
}

@media (prefers-reduced-motion: reduce) {
.rush-meter-fill,
.rush-bar-fill,
.rush-tab,
.rush-boost-buy {
transition: none;
}
.rush-mission.dealt-now,
.rush-booster.claimed-now,
.rush-gift.ready .chest,
.rush-button.landed .rush-button-mark {
animation: none;
}
}


/* Source: css/rush-rewards-levelbar.css */

.pearl-open-rays {
position: absolute;
left: 50%;
top: 42%;
width: 160vmax;
height: 160vmax;
margin: -80vmax 0 0 -80vmax;
background: repeating-conic-gradient(rgba(255, 230, 160, 0.16) 0 6deg, transparent 6deg 16deg);
-webkit-mask-image: radial-gradient(circle, #000 8%, transparent 45%);
mask-image: radial-gradient(circle, #000 8%, transparent 45%);
opacity: 0;
transition: opacity 400ms ease;
animation: rays 12s linear infinite;
pointer-events: none;
}

.level-up.capsule-up {
background: radial-gradient(circle at 50% 42%, rgba(186, 40, 190, 0.9), rgba(22, 4, 40, 0.97) 70%);
}

.level-up.capsule-up .pearl-open-rays {
opacity: 0;
transition: opacity 400ms ease;
}

.level-up.capsule-up.burst .pearl-open-rays {
opacity: 0.9;
}

.level-up-title.capsule-title {
font-size: 2.3rem;
white-space: nowrap;
}

.level-up-stage.capsule-stage {
height: 170px;
transition: height 400ms ease;
}

.capsule-up.burst .level-up-stage.capsule-stage {
height: 120px;
}

.chest.capsule-big {
width: 150px;
height: 116px;
filter: drop-shadow(0 0 22px rgba(255, 79, 216, 0.8));
}


.capsule-up.shaking .capsule-big {
animation: capsule-shake 1100ms ease-in forwards;
}

.capsule-up.burst .capsule-big {
animation: capsule-pop 500ms ease-out forwards;
}

.capsule-up.burst .capsule-stage::after {
content: "";
position: absolute;
inset: -40px;
border-radius: 50%;
background: radial-gradient(circle, #fff, rgba(255, 190, 240, 0.6) 30%, transparent 65%);
animation: pearl-flash 700ms ease-out forwards;
pointer-events: none;
}

.capsule-prize-name {
display: block;
font-family: var(--display);
font-size: 1.7rem;
letter-spacing: 0.06em;
text-align: center;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 10px rgba(255, 79, 216, 0.8));
animation: capsule-name 420ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.level-up.capsule-up.top {
background: radial-gradient(circle at 50% 42%, rgba(255, 150, 60, 0.92), rgba(120, 10, 90, 0.95) 45%, rgba(20, 0, 30, 0.97) 75%);
}

.capsule-up.top .capsule-prize-name {
font-size: 2.4rem;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
}

@keyframes capsule-wobble {
0%, 60%, 100% { transform: rotate(0); }
66% { transform: rotate(-7deg); }
74% { transform: rotate(6deg); }
82% { transform: rotate(-4deg); }
90% { transform: rotate(2deg); }
}

@keyframes capsule-shake {
0% { transform: rotate(0) scale(0.6); }
15% { transform: rotate(-5deg) scale(1); }
30% { transform: rotate(5deg); }
45% { transform: rotate(-8deg); }
60% { transform: rotate(8deg) scale(1.04); }
75% { transform: rotate(-11deg) scale(1.06); }
90% { transform: rotate(11deg) scale(1.08); }
100% { transform: rotate(0) scale(1.1); }
}

@keyframes capsule-pop {
0% { transform: scale(1.1); filter: brightness(2.5) drop-shadow(0 0 30px #fff); }
100% { transform: scale(0.7); filter: drop-shadow(0 0 22px rgba(255, 79, 216, 0.8)); }
}

@keyframes capsule-name {
from { transform: scale(0.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.level-up-stage.capsule-stage,
.level-up.capsule-up .pearl-open-rays {
transition: none;
}
.capsule-up.shaking .capsule-big,
.capsule-up.burst .capsule-big,
.capsule-up.burst .capsule-stage::after,
.capsule-prize-name {
animation: none;
}
.capsule-up.burst .capsule-stage::after {
display: none;
}
}


.spire-coin {
width: 16px;
height: 16px;
box-shadow: none;
}

.spire-tier {
position: relative;
isolation: isolate;
flex: none;
display: grid;
grid-template-columns: 60px minmax(0, 1fr) 76px;
align-items: center;
gap: 6px;
min-height: 40px;
}

.spire-tier::before {
content: "";
position: absolute;
left: 52px;
right: 72px;
bottom: 1px;
z-index: -1;
height: 5px;
background: var(--gold-rim);
clip-path: polygon(0 0, 3% 55%, 97% 55%, 100% 0, 100% 40%, 98% 100%, 2% 100%, 0 40%);
opacity: 0.8;
}

.spire-ribbon {
display: flex;
align-items: center;
justify-content: center;
height: 24px;
padding: 0 9px;
background:
linear-gradient(180deg, var(--spire-ribbon-sheen), transparent 48%, var(--spire-ribbon-shade)),
linear-gradient(180deg, var(--c), var(--c-dark));
box-shadow: inset 0 2px 0 var(--gold-light), inset 0 -2px 0 var(--gold-dark);
clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
}

.spire-ribbon-name {
color: var(--text);
font-family: var(--display);
font-size: 0.78rem;
letter-spacing: 0.08em;
white-space: nowrap;
text-shadow: 0 1px 0 var(--c-dark), 0 0 2px rgba(0, 0, 0, 0.9);
}

.spire-tier.paid {
opacity: 0.6;
}

.spire-prize {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 4px;
min-width: 0;
}

.spire-planet {
width: 16px;
height: 16px;
font-size: 16px;
}

.spire-prize .spire-coin {
width: 14px;
height: 14px;
}

.spire-prize-coins {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.95rem;
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.spire-check {
display: none;
flex: none;
width: 8px;
height: 14px;
margin: -4px 4px 0 0;
border: solid var(--jade);
border-width: 0 3px 3px 0;
border-radius: 1px;
transform: rotate(40deg);
filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.spire-tier.paid .spire-check {
display: block;
}

.spire-tier.paid .spire-coin,
.spire-tier.paid .spire-planet {
display: none;
}

.spire-up-gem {
position: relative;
flex: none;
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--spire-gem-art) center / contain no-repeat;
}

.spire-up-gem.amber { --spire-gem-art: url("../art/nebula-empress/gems/amber.webp"); }
.spire-up-gem.sapphire { --spire-gem-art: url("../art/nebula-empress/gems/sapphire.webp"); }
.spire-up-gem.jade { --spire-gem-art: url("../art/nebula-empress/gems/jade.webp"); }
.spire-up-gem.ruby { --spire-gem-art: url("../art/nebula-empress/gems/ruby.webp"); }

.spire-up-gem::after {
content: "";
position: absolute;
inset: 22%;
background: url("../art/lobby/rush.webp") center / contain no-repeat;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.spire-up-prizes {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
width: 100%;
min-height: 104px;
}

.spire-up-prize {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 96px;
animation: spire-prize-in 300ms ease-out both;
}

.spire-up-prizes.four {
gap: 8px;
}

.spire-up-prizes.four .spire-up-prize {
width: 82px;
}

.spire-up-mark.credits-coin {
width: 60px;
height: 60px;
}

.spire-up-mark.pearl {
width: 60px;
height: 60px;
font-size: 60px;
}

.spire-up-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.35rem;
letter-spacing: 0.04em;
line-height: 1.1;
text-align: center;
font-variant-numeric: tabular-nums;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.spire-up-label {
margin-top: -3px;
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.08em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.spire-up-prize.planet .spire-up-amount {
color: var(--text);
font-size: 0.95rem;
}

.spire-up-note {
max-width: 300px;
color: var(--text);
font-size: 0.8125rem;
line-height: 1.35;
text-align: center;
}

.spire-up-note[hidden] {
display: none;
}

@keyframes spire-gem-in {
from { transform: scale(0.4); opacity: 0; }
}

@keyframes spire-prize-in {
from { transform: translateY(10px); opacity: 0; }
}

.level-up.league-up {
--league-up-hall: #10283f;
--league-up-floor: #061222;
--league-up-scrim: rgba(6, 18, 34, 0.28);
gap: 14px;
background: linear-gradient(var(--league-up-scrim), var(--league-up-scrim)),
url("../art/ui/league-podium.webp") center bottom / cover no-repeat,
radial-gradient(circle at 50% 38%, var(--league-up-hall), var(--league-up-floor) 74%);
}

.level-up.league-up.down {
--league-up-scrim: rgba(6, 18, 34, 0.78);
}

.level-up.league-up .pearl-open-rays {
opacity: 0.85;
}

.level-up.league-up.down .pearl-open-rays {
display: none;
}

.level-up-title.league-up-title {
font-size: 2.6rem;
line-height: 1.1;
white-space: nowrap;
}

.level-up-title.league-up-title.long {
font-size: 2.1rem;
}

.level-up.league-up.down .level-up-title {
background: none;
color: var(--muted);
filter: none;
text-shadow: 0 2px 0 var(--navy-deep);
}

.level-up-stage.league-up-stage {
height: 140px;
}

.level-up.league-up.down .level-up-stage::before {
display: none;
}

.league-up-badge {
position: relative;
display: inline-flex;
justify-content: center;
animation: spire-gem-in 700ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.league-up-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 120px;
height: 120px;
filter: drop-shadow(0 3px 0 var(--gold-deep)) drop-shadow(0 0 22px rgba(255, 212, 90, 0.45));
}

.league-up-mark .league-mark {
width: 100%;
height: 100%;
}

.level-up.league-up.down .league-up-mark {
opacity: 0.7;
filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.6));
}

.level-up.league-up.down .league-up-mark .league-mark {
color: var(--muted);
}

.league-up-sub {
position: absolute;
left: 50%;
bottom: 4px;
min-width: 36px;
padding: 1px 6px 0;
border: 1px solid var(--gold);
border-radius: 4px;
background: var(--navy-deep);
box-shadow: 0 0 0 1px var(--gold-deep);
color: var(--gold-light);
font-family: var(--display);
font-size: 1.15rem;
line-height: 1.15;
letter-spacing: 0.08em;
text-align: center;
text-shadow: 0 1px 0 #000;
transform: translateX(-50%);
}

.league-up-place {
color: var(--text);
font-family: var(--display);
font-size: 1.5rem;
letter-spacing: 0.08em;
line-height: 1.1;
font-variant-numeric: tabular-nums;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.league-up-prize {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
max-width: 100%;
animation: spire-prize-in 300ms ease-out both;
}

.league-up-coin.credits-coin {
width: 56px;
height: 56px;
}

.league-up-amount {
max-width: 100%;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.9rem;
letter-spacing: 0.04em;
line-height: 1.1;
text-align: center;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.league-up-note {
max-width: 320px;
color: var(--text);
font-size: 0.8125rem;
line-height: 1.35;
text-align: center;
text-wrap: balance;
}

.league-up .pearl-collect {
width: min(240px, 100%);
}

@media (max-height: 700px) {
.level-up.league-up { gap: 10px; }
.level-up-stage.league-up-stage { height: 110px; }
.league-up-mark { width: 96px; height: 96px; }
.spire-tier { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
.spire-up-prize,
.league-up-badge,
.league-up-prize {
animation: none;
}
}


.level-row {
flex: none;
display: flex;
align-items: center;
gap: 8px;
margin: 2px 2px 0;
}

.level-row .rush-button,
.level-row .league-button {
width: 44px;
height: 44px;
border-radius: 8px;
}

.level-row .league-icon { font-size: 1.05rem; }
.level-row .league-rank { font-size: 0.7rem; }
.level-row .badge { top: -4px; right: -4px; }

.level {
position: relative;
flex: 1;
display: flex;
align-items: center;
min-width: 0;
height: 28px;
}

.level-star {
position: relative;
z-index: 1;
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
margin-right: -8px;
background: url("../art/ui/level-star.webp") center / contain no-repeat;
filter: drop-shadow(0 0 4px rgba(255, 211, 77, 0.8));
color: #4a2a00;
font-family: var(--display);
font-size: 0.74rem;
letter-spacing: -0.03em;
font-weight: 900;
font-variant-numeric: tabular-nums;
}

.level-star > span {
margin-top: 3px;
}

.level-star.long {
font-size: 0.58rem;
}

.level-bar {
position: relative;
flex: 1;
height: 16px;
overflow: hidden;
border-radius: 999px;
background: rgba(0, 0, 0, 0.55);
border: 2px solid var(--gold-dark);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 2px 3px rgba(0, 0, 0, 0.6);
}

.level-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 55%),
linear-gradient(90deg, #b0128a, var(--neon-pink) 70%, #ffb0f0);
box-shadow: 0 0 8px var(--neon-pink);
transition: width 400ms ease-out;
}

.level-text {
position: absolute;
left: 30px;
right: 0;
top: 50%;
transform: translateY(-50%);
text-align: center;
color: #fff;
font-family: var(--display);
font-size: 0.68rem;
font-weight: 900;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 2px #000, 0 0 3px #000;
pointer-events: none;
}

.wheel-button {
position: relative;
flex: none;
display: flex;
align-items: center;
gap: 5px;
height: 30px;
min-width: 88px;
padding: 0 10px 0 3px;
border-radius: 999px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%),
linear-gradient(180deg, var(--console-light), var(--navy-deep));
border: 2px solid var(--gold-dark);
box-shadow: 0 0 0 1px var(--gold-deep);
color: var(--muted);
font-family: var(--display);
font-size: 0.72rem;
font-weight: 900;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.wheel-button.ready {
border-color: var(--gold);
color: var(--gold-light);
animation: wheel-ready 1.6s ease-in-out infinite;
}

.wheel-button.ready::after {
content: "";
position: absolute;
top: -4px;
right: -3px;
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--ruby);
border: 2px solid #fff;
}

.wheel-icon {
flex: none;
width: 22px;
height: 22px;
background: url("../art/lobby/wheel.webp") center / contain no-repeat;
}

.wheel-button.ready .wheel-icon {
animation: wheel-icon-spin 4s linear infinite;
}

.bet-step.locked {
position: relative;
opacity: 0.75;
}

.bet-step.locked::after {
content: "";
position: absolute;
right: -4px;
bottom: -4px;
width: 12px;
height: 10px;
border: 1px solid var(--gold-deep);
border-radius: 2px;
background: var(--gold-bevel);
}

.bet-step.locked::before {
content: "";
position: absolute;
right: -2px;
bottom: 4px;
width: 8px;
height: 8px;
border: 2px solid var(--gold);
border-bottom: 0;
border-radius: 4px 4px 0 0;
}


/* Source: css/rush-chip.css */
.rush-chip {
position: fixed;
left: calc(var(--safe-left) + 8px);
right: calc(var(--safe-right) + 8px);
top: 0;
z-index: 39;
display: none;
pointer-events: none;
}

.rush-chip.show,
.rush-chip.out {
display: block;
}

.rush-chip-pill {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px 8px;
box-sizing: border-box;
width: max-content;
max-width: 100%;
min-height: 44px;
padding: 5px 14px 5px 8px;
border: 2px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--violet), var(--bg-deep) 90%);
box-shadow: 0 0 0 1px var(--gold-deep), 0 6px 16px rgba(0, 0, 0, 0.6);
color: var(--text);
font: inherit;
text-align: left;
pointer-events: auto;
touch-action: manipulation;
transform-origin: var(--chip-notch) -14px;
}

.rush-chip.show .rush-chip-pill {
animation: rush-chip-in 240ms ease-out both;
}

.rush-chip.out .rush-chip-pill {
pointer-events: none;
animation: rush-chip-out 320ms cubic-bezier(0.5, 0, 0.8, 0.4) forwards;
}

.rush-chip-pill::before {
content: "";
position: absolute;
left: var(--chip-notch);
top: -8px;
width: 12px;
height: 12px;
margin-left: -6px;
border-left: 2px solid var(--gold);
border-top: 2px solid var(--gold);
background: var(--violet);
transform: rotate(45deg);
}

.rush-chip-name {
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.rush-chip-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.15rem;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
white-space: nowrap;
}

.rush-chip-extras {
flex: 1 1 auto;
min-width: 0;
color: var(--muted);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.05em;
text-shadow: 0 1px 0 #000;
}

.rush-chip-lock {
display: inline-block;
position: relative;
width: 8px;
height: 6px;
margin-right: 4px;
border-radius: 1px;
background: currentColor;
}

.rush-chip-lock::before {
content: "";
position: absolute;
left: 1px;
bottom: 100%;
width: 4px;
height: 4px;
border: 1.5px solid currentColor;
border-bottom: 0;
border-radius: 3px 3px 0 0;
}

.rush-chip.up .rush-chip-pill {
transform-origin: var(--chip-notch) calc(100% + 14px);
}

.rush-chip.up .rush-chip-pill::before {
top: auto;
bottom: -8px;
border: 0;
border-right: 2px solid var(--gold);
border-bottom: 2px solid var(--gold);
background: var(--bg-deep);
}

@keyframes rush-chip-in {
from { transform: scale(0.4); opacity: 0; }
}

@keyframes rush-chip-out {
to { transform: scale(0.35); opacity: 0.55; }
}

.tile-missions.landed .tile-ring {
animation: rush-land 450ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
.rush-chip.show .rush-chip-pill,
.rush-chip.out .rush-chip-pill,
.tile-missions.landed .tile-ring {
animation: none;
}
}

/* Source: css/chart-hall.css */

.wheel {
position: fixed;
inset: 0;
z-index: 46;
display: none;
align-items: center;
justify-content: center;
overflow: hidden;
overflow: clip;
padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 12px);
background: radial-gradient(ellipse 95% 70% at 50% 58%, var(--bg) 35%, var(--bg-deep));
}

.wheel::before,
.wheel::after {
content: "";
position: absolute;
top: -10%;
height: 120%;
background: linear-gradient(180deg, var(--violet), transparent 70%);
opacity: 0.22;
pointer-events: none;
}

.wheel::before {
left: 4%;
width: 26%;
transform: skewX(-16deg);
}

.wheel::after {
right: 8%;
width: 14%;
transform: skewX(12deg);
opacity: 0.16;
}

.wheel.open {
display: flex;
animation: wheel-in 260ms ease-out;
}

.wheel.open .wheel-panel {
animation: wheel-panel-in 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.wheel-covering > :is(#lobby, #app) > * {
visibility: hidden;
}

.wheel.closing {
display: flex;
pointer-events: none;
animation: wheel-out 220ms ease-in forwards;
}

.wheel-panel {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
width: 100%;
max-width: 400px;
max-height: 100%;
}

.wheel-sign {
position: relative;
display: flex;
align-items: center;
gap: 8px;
flex: none;
margin-bottom: 8px;
padding: 2px 14px 7px;
border: 2px solid var(--neon-pink);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--lacquer), var(--red-dark));
box-shadow: 0 0 0 1px var(--red-dark), 0 0 12px var(--magenta), inset 0 0 8px var(--magenta), 0 4px 0 rgba(0, 0, 0, 0.5);
}

.wheel-sign-bolt {
flex: none;
width: 11px;
height: 32px;
filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

.wheel-sign-bolt.flip {
transform: scaleX(-1);
}

.wheel-title {
font-family: var(--display);
font-size: 1.9rem;
line-height: 1.15;
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 6px var(--magenta));
}

.wheel-day-plate {
position: absolute;
left: 50%;
bottom: -12px;
padding: 1px 10px;
transform: translateX(-50%);
border: 1px solid var(--gold-deep);
border-radius: 6px;
background: var(--bg-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
line-height: 1.3;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.wheel-day-plate:empty {
display: none;
}

.wheel.cosmic .wheel-day-plate {
transition: opacity 220ms ease-in, visibility 220ms;
}

.wheel-head {
display: grid;
flex: none;
width: 100%;
max-width: 360px;
justify-items: center;
}

.wheel-head > * {
grid-area: 1 / 1;
}

.wheel-ladder {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
width: 100%;
}

.wheel-offer-note {
align-self: center;
max-width: 300px;
color: var(--text);
font-size: 0.85rem;
font-weight: 600;
line-height: 1.3;
text-align: center;
}

.wheel.cosmic.boosted .wheel-offer-note {
visibility: hidden;
}

#wheel-prize-status {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.wheel-receipt {
align-self: center;
width: 100%;
padding: 3px 10px;
border: 1px solid var(--hairline);
border-radius: var(--radius);
background: var(--bg-deep);
font-family: var(--display);
font-size: 0.9rem;
line-height: 1.2;
}

.wheel:not(.boosted) .wheel-receipt { visibility: hidden; }

.wheel-receipt-row {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
padding: 1px 0;
border-bottom: 1px solid var(--hairline);
}

.wheel-receipt-label { color: var(--muted); text-shadow: 0 1px 0 #000; }
.wheel-receipt-value { color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wheel-receipt-value:has(.pearl) { display: flex; gap: 3px; }
.wheel-receipt-value .pearl { width: 16px; height: 16px; font-size: 16px; }

.wheel-receipt-row:last-child {
border-bottom: 0;
}

.wheel-receipt-row:last-child .wheel-receipt-value {
font-size: 1.2rem;
line-height: 1.1;
}

.wheel-purchase-label {
flex-basis: 100%;
color: var(--text);
font-size: 0.85rem;
text-align: center;
letter-spacing: 0.08em;
}

.wheel-offer-note,
.wheel.cosmic .wheel-ladder,
.wheel.cosmic .wheel-day-plate {
visibility: hidden;
opacity: 0;
}

.wheel.cosmic .wheel-ladder {
transition: opacity 220ms ease-in, visibility 220ms;
}

.wheel-offer-note {
transform: translateY(8px);
transition: opacity 200ms ease-in, transform 200ms ease-in, visibility 200ms;
}

.wheel.cosmic .wheel-offer-note {
visibility: visible;
opacity: 1;
transform: none;
transition: opacity 380ms ease-out 180ms, transform 560ms cubic-bezier(0.22, 1, 0.36, 1) 180ms, visibility 380ms 180ms;
}

.wheel-days {
position: relative;
display: grid;
flex: none;
grid-auto-columns: 1fr;
grid-auto-flow: column;
gap: 8px;
width: 100%;
margin-top: 4px;
}

.wheel-day {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 11px;
min-width: 0;
}

.wheel-day::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 32px;
border: 1px solid var(--gold-deep);
border-radius: 8px;
background: linear-gradient(180deg, var(--lacquer), var(--bg-deep));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(0, 0, 0, 0.5);
}

.wheel-day-prize {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 32px;
}

.wheel-day-prize .pearl {
width: 22px;
height: 22px;
font-size: 22px;
}

.wheel-day-prize .pearl + .pearl {
margin-left: -4px;
}

.wheel-day-name {
position: relative;
order: 1;
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
line-height: 1.2;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.wheel-day.done .wheel-day-prize .pearl {
opacity: 0.35;
filter: saturate(0.4);
}

.wheel-day.done .wheel-day-prize::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 9px;
height: 18px;
margin: -12px 0 0 -5px;
border: solid var(--jade);
border-width: 0 4px 4px 0;
border-radius: 1px;
transform: rotate(40deg);
filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.wheel-day.today {
z-index: 1;
}

.wheel-day.today::before,
.wheel-day.today .wheel-day-prize {
transform: scale(1.12);
}

.wheel-day.today::before {
border: 2px solid var(--wheel-light);
box-shadow: 0 0 8px rgba(255, 255, 255, 0.75), inset 0 0 6px rgba(255, 255, 255, 0.25);
}

.wheel-day.today .wheel-day-name {
color: var(--gold-light);
text-shadow: 0 1px 1px var(--bg-deep), 0 0 4px #000;
}

.wheel-track {
position: absolute;
left: 0;
right: 0;
top: 35px;
z-index: 2;
height: 6px;
overflow: hidden;
border-radius: 3px;
background: var(--bg-deep);
box-shadow: inset 0 1px 2px #000, 0 0 0 1px rgba(255, 211, 77, 0.18);
}

.wheel-track-fill {
display: block;
width: var(--fill, 0%);
height: 100%;
border-radius: 3px;
background:
repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 6px),
var(--neon-cyan);
box-shadow: 0 0 6px var(--neon-cyan);
}

.wheel-streak {
flex: none;
min-height: 1.25em;
color: var(--text);
font-size: 0.8rem;
font-weight: 600;
line-height: 1.25;
text-align: center;
}


/* Source: css/chart-wheel.css */
.wheel-stage {
--stage: min(92vw, 360px, 46vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - 340px));
position: relative;
isolation: isolate;
flex: none;
width: var(--stage);
aspect-ratio: 1;
margin: 18px 0 8px;
}

.wheel-core {
position: absolute;
inset: 0;
z-index: 2;
transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel.cosmic .wheel-core {
transform: scale(0.76);
}

.wheel-core::after {
content: "";
position: absolute;
inset: 14%;
z-index: 1;
border-radius: 50%;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(0, 0, 0, 0.25));
pointer-events: none;
}

.wheel-ring {
position: absolute;
inset: 0;
z-index: 1;
border-radius: 50%;
visibility: hidden;
opacity: 0;
scale: 1.08;
-webkit-mask-image: radial-gradient(closest-side, transparent 68.6%, #000 69%, #000 95.6%, transparent 96%);
mask-image: radial-gradient(closest-side, transparent 68.6%, #000 69%, #000 95.6%, transparent 96%);
transition: opacity 500ms ease-out 80ms, scale 700ms cubic-bezier(0.22, 1, 0.36, 1) 80ms, visibility 500ms 80ms;
will-change: transform;
}

.wheel.cosmic .wheel-ring {
visibility: visible;
opacity: 1;
scale: 1;
}

.wheel-ring::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border-radius: 50%;
background:
radial-gradient(closest-side, transparent 69%, var(--gold-light) 69.4%, var(--gold-deep) 71%, transparent 71.4%,
transparent 93.6%, var(--gold-deep) 94%, var(--gold-light) 95.6%),
radial-gradient(closest-side, transparent 69%, rgba(0, 0, 0, 0.35) 72%, transparent 80%);
pointer-events: none;
}

.wheel-ring-label {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
}

.wheel-ring-text {
position: absolute;
left: 50%;
top: 8.6%;
transform: translate(-50%, -50%);
color: var(--gold);
font-family: var(--display);
font-size: max(0.8rem, calc(var(--stage) * 0.058));
line-height: 1;
letter-spacing: 0.02em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 2px 1px rgba(0, 0, 0, 0.6);
}

.wheel-ring-label.flipped .wheel-ring-text {
transform: translate(-50%, -50%) rotate(180deg);
}

.wheel-ring-label.grand .wheel-ring-text {
color: var(--gold-light);
}

.wheel.boosted .wheel-ring-label:not(.hit) .wheel-ring-text {
opacity: 0.6;
}

.wheel-ring-label.hit .wheel-ring-text {
color: var(--gold-light);
text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 0 8px var(--gold), 0 0 14px var(--gold);
}

.wheel-ring-hit {
position: absolute;
inset: 0;
border-radius: 50%;
opacity: 0;
pointer-events: none;
background: conic-gradient(from 0deg,
rgba(255, 211, 77, 0.95) 0 1deg, rgba(255, 255, 255, 0.2) 2deg calc(var(--wedge, 36deg) - 2deg),
rgba(255, 211, 77, 0.95) calc(var(--wedge, 36deg) - 1deg) var(--wedge, 36deg),
rgba(0, 0, 0, 0.32) var(--wedge, 36deg));
}

.wheel.boosted .wheel-ring-hit {
opacity: 1;
animation: wheel-hit 700ms ease-out;
}

.wheel-ring-arcs {
position: absolute;
inset: -4%;
z-index: 3;
visibility: hidden;
opacity: 0;
color: var(--wheel-light);
pointer-events: none;
filter: drop-shadow(0 0 1px var(--neon-pink)) drop-shadow(0 0 3px var(--violet));
}

.wheel-ring-arcs svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
animation: wheel-arc-flicker 330ms steps(3) infinite, wheel-arc-turn 8s linear infinite reverse;
}

.wheel.offering .wheel-ring-arcs {
visibility: visible;
animation: wheel-arcs-out 1.4s forwards;
}

.wheel.boosting .wheel-ring-arcs {
visibility: visible;
opacity: 1;
}

.wheel.boosted .wheel-ring-arcs {
visibility: visible;
animation: wheel-arcs-out 1.2s forwards;
}

.wheel-ring-pointer {
position: absolute;
inset: 0;
z-index: 4;
visibility: hidden;
opacity: 0;
translate: 0 -5%;
pointer-events: none;
transition: opacity 400ms ease-out 300ms, translate 600ms cubic-bezier(0.22, 1, 0.36, 1) 300ms, visibility 400ms 300ms;
}

.wheel.cosmic .wheel-ring-pointer {
visibility: visible;
opacity: 1;
translate: 0 0;
}

.wheel-ring-bolt {
position: absolute;
top: 0.5%;
left: 59.8%;
width: 6%;
height: 18%;
overflow: visible;
transform: rotate(18deg);
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
}

.wheel-ring-bolt.flip {
left: 34.2%;
transform: rotate(-18deg) scaleX(-1);
}

.wheel-floor {
position: absolute;
left: -12.5%;
bottom: 4%;
width: 125%;
height: 20%;
transform: translateY(45%);
border: 2px solid var(--neon-cyan);
border-radius: 50%;
background: radial-gradient(closest-side, var(--navy), var(--navy-deep) 80%, transparent);
box-shadow: 0 0 16px var(--neon-cyan), inset 0 0 12px var(--neon-cyan);
}

.wheel-floor::before,
.wheel-floor::after {
content: "";
position: absolute;
border: 1px solid var(--neon-cyan);
border-radius: 50%;
}

.wheel-floor::before {
inset: 16% 9%;
opacity: 0.55;
}

.wheel-floor::after {
inset: -24% -7%;
opacity: 0.3;
}

.wheel-halo {
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(closest-side,
transparent 81%,
var(--magenta) 81.6%, var(--wheel-light) 82.3%, var(--magenta) 83%,
var(--lacquer) 84%, var(--red-dark) 90%, var(--lacquer) 94.3%,
var(--magenta) 95%, var(--wheel-light) 95.7%, var(--magenta) 96.4%,
transparent 97.4%);
}

.wheel-halo::before,
.wheel-halo::after {
content: "";
position: absolute;
border-radius: 50%;
pointer-events: none;
}

.wheel-halo::before {
inset: 2.2%;
box-shadow: 0 0 14px var(--magenta), 0 0 34px var(--violet);
}

.wheel-halo::after {
inset: -3.5%;
border: 1px solid var(--muted);
box-shadow: 0 0 0 9px rgba(0, 0, 0, 0), 0 0 0 10px var(--violet);
opacity: 0.3;
}

.wheel-halo svg,
.wheel-lights svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
}

.wheel-halo-dots {
fill: none;
stroke: var(--gold);
stroke-width: 0.9;
stroke-linecap: round;
stroke-dasharray: 0 8.757;
opacity: 0.75;
}

.wheel-halo svg path,
.wheel-halo svg use {
fill: var(--wheel-light);
filter: drop-shadow(0 0 1px var(--wheel-light));
}

.wheel-lights {
position: absolute;
inset: 9%;
border-radius: 50%;
background:
radial-gradient(closest-side, transparent 87.5%, rgba(0, 0, 0, 0.7) 88.2%, rgba(0, 0, 0, 0.45) 92.5%, transparent 93.6%, rgba(255, 255, 255, 0.5) 95.5%, transparent 97.5%, rgba(0, 0, 0, 0.5) 99.6%),
var(--gold-rim);
-webkit-mask-image: radial-gradient(closest-side, transparent 87%, #000 87.5%);
mask-image: radial-gradient(closest-side, transparent 87%, #000 87.5%);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.wheel-lamps {
fill: none;
stroke: var(--gold-light);
stroke-width: 2.3;
stroke-linecap: round;
stroke-dasharray: 0 16.004;
filter: drop-shadow(0 0 1px var(--gold));
animation: wheel-lamp-blink 1.6s steps(1) infinite;
}

.wheel-lamps.alt {
stroke: var(--neon-pink);
stroke-dashoffset: -8.002;
filter: drop-shadow(0 0 1px var(--magenta));
animation-delay: -0.8s;
}

.wheel.spinning .wheel-lights svg {
animation: wheel-chase 400ms linear infinite;
}

.wheel.spinning .wheel-lamps {
animation: none;
}

.wheel-disc {
position: absolute;
inset: 14%;
border-radius: 50%;
box-shadow: 0 0 0 2px var(--gold-deep), inset 0 0 0 1px rgba(255, 211, 77, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.6);
will-change: transform;
}

.wheel-label {
position: absolute;
inset: 0;
pointer-events: none;
}

.wheel-label-inner {
position: absolute;
left: 50%;
top: 15.75%;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 3px;
width: 28.5%;
margin-left: -14.25%;
padding-left: 3%;
transform: translateY(-50%) rotate(90deg);
color: var(--gold);
font-family: var(--display);
font-size: clamp(0.78rem, 4vw, 1.05rem);
line-height: 1;
letter-spacing: 0.02em;
text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 2px 1px rgba(0, 0, 0, 0.6);
}

.wheel-label-text {
white-space: nowrap;
}

.wheel-label.flipped .wheel-label-inner {
justify-content: flex-end;
padding: 0 3% 0 0;
transform: translateY(-50%) rotate(-90deg);
}

.wheel.cosmic .wheel-label:not(.hit) .wheel-label-inner {
visibility: hidden;
}

.wheel-label.grand .wheel-label-inner {
color: var(--gold-light);
}

.wheel-label.grand::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
background: conic-gradient(from calc(var(--wedge, 30deg) / -2),
var(--gold-light) 0 1deg, transparent 1deg calc(var(--wedge, 30deg) - 1deg),
var(--gold-light) calc(var(--wedge, 30deg) - 1deg) var(--wedge, 30deg), transparent var(--wedge, 30deg));
-webkit-mask-image: repeating-radial-gradient(circle, #000 0 0.9%, transparent 1.1% 2.2%);
mask-image: repeating-radial-gradient(circle, #000 0 0.9%, transparent 1.1% 2.2%);
filter: drop-shadow(0 0 2px var(--gold));
}

.wheel.won .wheel-label:not(.hit) .wheel-label-inner {
opacity: 0.6;
}

.wheel-label.hit .wheel-label-inner {
color: var(--gold-light);
text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 0 8px var(--gold), 0 0 14px var(--gold);
}

.wheel-hit {
position: absolute;
inset: 0;
border-radius: 50%;
opacity: 0;
pointer-events: none;
background: conic-gradient(from 0deg,
rgba(255, 211, 77, 0.95) 0 0.8deg, rgba(255, 255, 255, 0.16) 1.6deg calc(var(--wedge, 30deg) - 1.6deg),
rgba(255, 211, 77, 0.95) calc(var(--wedge, 30deg) - 0.8deg) var(--wedge, 30deg),
rgba(0, 0, 0, 0.32) var(--wedge, 30deg));
}

.wheel-hit::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(closest-side, transparent 45%, rgba(255, 211, 77, 0.3) 100%);
-webkit-mask-image: conic-gradient(from 0deg, #000 0 var(--wedge, 30deg), transparent var(--wedge, 30deg));
mask-image: conic-gradient(from 0deg, #000 0 var(--wedge, 30deg), transparent var(--wedge, 30deg));
}

.wheel.won .wheel-hit {
opacity: 1;
animation: wheel-hit 700ms ease-out;
}

.wheel-arcs {
position: absolute;
inset: -2%;
z-index: 2;
visibility: hidden;
opacity: 0;
color: var(--wheel-light);
pointer-events: none;
filter: drop-shadow(0 0 1px var(--neon-pink)) drop-shadow(0 0 3px var(--violet));
}

.wheel-arcs svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
animation: wheel-arc-flicker 360ms steps(3) infinite, wheel-arc-turn 7s linear infinite;
}

.wheel-arcs svg + svg {
scale: -1 1;
animation-duration: 290ms, 9s;
animation-direction: normal, reverse;
}

.wheel.spinning .wheel-arcs {
visibility: visible;
opacity: 1;
}

.wheel.won .wheel-arcs {
visibility: visible;
animation: wheel-arcs-out 1.2s forwards;
}


/* Source: css/chart-spin-offer.css */
.wheel-pointer {
position: absolute;
inset: 0;
z-index: 4;
pointer-events: none;
}

.wheel-bolt {
position: absolute;
top: -5%;
left: 53%;
width: 10.8%;
height: 32%;
overflow: visible;
opacity: 0;
transform: translateY(-10%);
transform-origin: 50% 100%;
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
transition: transform 300ms cubic-bezier(0.3, 1.4, 0.6, 1), opacity 200ms ease-out, scale 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-bolt.flip {
left: auto;
right: 53%;
transform: translateY(-10%) scaleX(-1);
}

.wheel.spinning .wheel-bolt,
.wheel.won .wheel-bolt {
opacity: 1;
transform: none;
}

.wheel.cosmic .wheel-bolt {
scale: 0.625;
}

.wheel.spinning .wheel-bolt.flip,
.wheel.won .wheel-bolt.flip {
transform: scaleX(-1);
}

.wheel-pointer-chevrons {
position: absolute;
left: 50%;
top: 29%;
width: 6%;
height: 6%;
margin-left: -3%;
opacity: 0.6;
transition: opacity 200ms ease-out;
}

.wheel-pointer-chevrons::before,
.wheel-pointer-chevrons::after {
content: "";
position: absolute;
left: 22%;
width: 56%;
height: 56%;
border: solid var(--muted);
border-width: 2px 0 0 2px;
transform: rotate(45deg);
}

.wheel-pointer-chevrons::before {
top: 10%;
}

.wheel-pointer-chevrons::after {
top: 45%;
opacity: 0.6;
}

.wheel.spinning .wheel-pointer-chevrons,
.wheel.won .wheel-pointer-chevrons {
opacity: 0;
}

.wheel-go {
position: absolute;
left: 50%;
top: 50%;
z-index: 3;
width: max(26%, 56px);
aspect-ratio: 1;
margin: calc(max(26%, 56px) / -2) 0 0 calc(max(26%, 56px) / -2);
padding: 0;
border: 4px solid transparent;
border-radius: 50%;
background:
radial-gradient(ellipse 72% 44% at 50% 24%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 75%, transparent 78%) padding-box,
radial-gradient(circle at 50% 62%, var(--go-light) 30%, var(--go-dark) 100%) padding-box,
var(--gold-rim) border-box;
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 3px rgba(255, 255, 255, 0.45), 0 0 0 4px var(--red-dark), 0 5px 0 3px rgba(0, 0, 0, 0.55), inset 0 -5px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--gold-deep);
color: var(--wheel-light);
font-family: var(--display);
font-size: max(1.1rem, calc(var(--stage) * 0.075));
line-height: 1;
letter-spacing: 0.04em;
-webkit-text-stroke: 1px var(--red-dark);
paint-order: stroke fill;
text-shadow: 0 2px 0 var(--red-dark);
cursor: pointer;
transition: padding-top 420ms cubic-bezier(0.22, 1, 0.36, 1), font-size 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-go:disabled {
filter: saturate(0.55) brightness(0.8);
cursor: default;
}

.wheel.spinning .wheel-go:disabled,
.wheel.won .wheel-go:disabled {
filter: none;
cursor: default;
}

.wheel-go.collect {
background:
radial-gradient(ellipse 72% 44% at 50% 24%, rgba(255, 255, 255, 0.5), transparent 78%) padding-box,
var(--gold-bevel) padding-box,
var(--gold-rim) border-box;
color: var(--gold-deep);
font-size: max(0.8rem, calc(var(--stage) * 0.05));
-webkit-text-stroke: 0;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wheel-go.locked {
padding-top: calc(max(26%, 56px) * 0.4);
font-size: max(0.8rem, calc(var(--stage) * 0.06));
}

.wheel-go.locked::before,
.wheel-go.locked::after {
content: "";
position: absolute;
left: 50%;
pointer-events: none;
animation: wheel-lock-in 460ms cubic-bezier(0.22, 1, 0.36, 1) 160ms backwards;
}

.wheel-go.locked::before {
top: 12%;
width: 22%;
height: 24%;
margin-left: -11%;
border: max(2px, calc(var(--stage) * 0.008)) solid var(--wheel-light);
border-bottom: 0;
border-radius: 50% 50% 0 0 / 70% 70% 0 0;
filter: drop-shadow(0 1px 0 var(--red-dark));
}

.wheel-go.locked::after {
top: 30%;
width: 36%;
height: 24%;
margin-left: -18%;
border-radius: 3px;
background:
radial-gradient(circle at 50% 42%, var(--gold-deep) 0 12%, transparent 13%),
var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 0 rgba(0, 0, 0, 0.45);
}

.wheel-foot {
position: relative;
z-index: 1;
display: grid;
flex: none;
width: 100%;
justify-items: center;
}

.wheel-foot > * {
grid-area: 1 / 1;
}

.wheel-result {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 10px;
width: 100%;
}

.wheel-result {
transition: opacity 320ms ease-out 120ms, visibility 320ms 120ms;
}

.wheel.offering .wheel-result {
visibility: hidden;
opacity: 0;
transition: opacity 200ms ease-in, visibility 200ms;
}

.wheel-offer {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: end;
gap: 12px;
width: 100%;
max-width: 360px;
visibility: hidden;
opacity: 0;
transform: translateY(14px);
transition: opacity 200ms ease-in, transform 200ms ease-in, visibility 200ms;
}

.wheel.offering .wheel-offer {
visibility: visible;
opacity: 1;
transform: none;
transition: opacity 400ms ease-out 260ms, transform 640ms cubic-bezier(0.22, 1, 0.36, 1) 260ms, visibility 400ms 260ms;
}

.wheel-offer-side {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-width: 0;
}

.wheel-offer-label {
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

.wheel-offer-amount {
display: flex;
align-items: center;
min-height: 1lh;
gap: 6px;
margin-bottom: 4px;
font-family: var(--display);
font-size: 1.6rem;
line-height: 1.1;
letter-spacing: 0.03em;
white-space: nowrap;
}

.wheel-offer-amount .wheel-coin {
width: 22px;
height: 22px;
}

.wheel-offer-value {
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep));
}

.wheel-offer-planets {
display: flex;
}

.wheel-offer-planets:empty {
display: none;
}

.wheel-offer-planets .pearl {
width: 22px;
height: 22px;
font-size: 22px;
}

.wheel-offer-planets .pearl + .pearl {
margin-left: -4px;
}

.wheel-continue,
.wheel-unlock {
width: 100%;
max-width: 240px;
min-height: 56px;
padding: 0 8px;
border-radius: var(--radius);
font-family: var(--display);
font-size: 1.15rem;
letter-spacing: 0.06em;
white-space: nowrap;
}

.wheel-continue {
border: 1px solid var(--wheel-skip-rim);
border-top: 2px solid var(--wheel-skip-rim-top);
border-bottom: 2px solid var(--wheel-skip-rim-bottom);
background:
linear-gradient(180deg, var(--wheel-skip-sheen), transparent 42%, var(--wheel-skip-shade) 48%),
linear-gradient(180deg, var(--wheel-skip-fill-top), var(--wheel-skip-fill-middle) 55%, var(--wheel-skip-fill-bottom));
box-shadow: inset 0 1px 3px var(--wheel-skip-highlight), inset 0 -3px 6px var(--wheel-skip-inset-shadow), 0 3px 0 var(--wheel-skip-lip);
color: var(--wheel-light);
text-shadow: 0 2px 1px var(--wheel-skip-label-shadow);
}

.wheel-unlock {
border: 3px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%),
linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.6);
color: var(--wheel-light);
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.wheel-continue:active,
.wheel-unlock:active {
transform: translateY(2px);
}

.wheel-prize {
display: flex;
flex: none;
flex-wrap: wrap;
align-items: center;
align-content: center;
justify-content: center;
gap: 2px 8px;
min-height: 40px;
font-family: var(--display);
line-height: 1.1;
}

.wheel:has(#wheel-next:not([hidden])) .wheel-prize:empty {
display: none;
}

.wheel-prize:not(:empty) {
animation: pearl-prize 300ms ease-out;
}

.wheel-coin {
flex: none;
width: 30px;
height: 30px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}

.wheel-prize-text {
font-size: 1.8rem;
letter-spacing: 0.03em;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 6px rgba(255, 211, 77, 0.45));
}

.wheel-prize .pearl {
width: 32px;
height: 32px;
}

.wheel.cashback .wheel-prize {
min-height: 64px;
}

.wheel.cosmic .wheel-prize { min-height: 64px; }

html:not(.landscape) .wheel.cosmic:not(.cashback) .wheel-result > .wheel-prize { min-height: 0; }
html:not(.landscape) .wheel.boosted .wheel-result { justify-content: flex-start; }
html:not(.landscape) .wheel.boosted:not(.cashback) .wheel-keys { display: none; }
html:not(.landscape) .wheel.cashback.boosted .wheel-keys { visibility: hidden; }

.wheel.cashback .wheel-stage {
--stage: min(92vw, 360px, 46vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - 364px));
}

.wheel-cashback {
display: flex;
flex-basis: 100%;
align-items: baseline;
justify-content: center;
gap: 8px;
}

.wheel-cashback-label {
color: var(--text);
font-size: 0.8rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

.wheel-cashback-value {
font-size: 1.2rem;
font-variant-numeric: tabular-nums;
letter-spacing: 0.03em;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep));
}

.wheel-next {
flex: none;
padding: 5px 12px;
border: 1px solid var(--gold-deep);
border-radius: 8px;
background: var(--bg-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.wheel-next[hidden] {
display: none;
}

.wheel-keys {
display: flex;
flex: none;
justify-content: center;
width: 100%;
min-height: 52px;
}

.wheel-skip {
display: none;
width: min(100%, 240px);
min-height: 52px;
border: 1px solid var(--wheel-skip-rim);
border-top: 2px solid var(--wheel-skip-rim-top);
border-bottom: 2px solid var(--wheel-skip-rim-bottom);
border-radius: 10px;
background:
linear-gradient(180deg, var(--wheel-skip-sheen), transparent 42%, var(--wheel-skip-shade) 48%),
linear-gradient(180deg, var(--wheel-skip-fill-top), var(--wheel-skip-fill-middle) 55%, var(--wheel-skip-fill-bottom));
box-shadow: inset 0 1px 3px var(--wheel-skip-highlight), inset 0 -3px 6px var(--wheel-skip-inset-shadow), 0 3px 0 var(--wheel-skip-lip);
color: var(--wheel-light);
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.08em;
text-shadow: 0 2px 1px var(--wheel-skip-label-shadow);
}

.wheel-skip:active {
transform: translateY(2px);
}

.wheel.spinning .wheel-skip,
.wheel.boosting .wheel-skip {
display: block;
}

.wheel.won:not(.boosting):not(.boosted) .wheel-keys {
visibility: hidden;
}

.wheel.spinning .wheel-x,
.wheel.boosting .wheel-x,
.wheel.won:not(.boosting):not(.boosted) .wheel-x {
visibility: hidden;
}


/* Source: css/chart-reward.css */
.chart-reward {
position: fixed;
inset: 0;
z-index: 44;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 20px);
background: radial-gradient(circle at 50% 46%, rgba(46, 96, 230, 0.55), rgba(24, 10, 70, 0.84) 42%, rgba(8, 4, 26, 0.9) 72%);
overflow: hidden;
}

.chart-reward.show {
display: flex;
animation: chart-reward-in 300ms ease-out both;
}

.chart-reward.leaving {
pointer-events: none;
animation: chart-reward-out 420ms ease-in forwards;
}

.chart-reward.dimming {
pointer-events: none;
}

.chart-reward.dimming::after {
content: "";
position: absolute;
inset: 0;
background: #04021a;
animation: chart-dim 420ms ease-in both;
}

.chart-reward .pearl-open-rays {
top: 46%;
opacity: 0.5;
}

.chart-reward-title {
font-family: var(--display);
font-size: 1.85rem;
line-height: 1.1;
letter-spacing: 0.05em;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 12px rgba(255, 79, 216, 0.75));
animation: chart-title-in 420ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.chart-reward-lead {
color: var(--text);
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.08em;
line-height: 1.1;
text-shadow: 0 1px 0 #000;
}

.chart-reward-prize {
position: relative;
display: flex;
align-items: flex-end;
justify-content: center;
gap: 22px;
min-height: 190px;
max-width: 100%;
}

.chart-reward-prize::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 260px;
height: 260px;
margin: -130px 0 0 -130px;
border-radius: 50%;
background: radial-gradient(circle, rgba(120, 190, 255, 0.75) 0, rgba(70, 120, 255, 0.35) 34%, transparent 66%);
animation: chart-glow 2.4s ease-in-out infinite alternate;
pointer-events: none;
}

.chart-reward-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-width: 0;
animation: chart-prize-pop 520ms cubic-bezier(0.2, 1.6, 0.4, 1) 260ms both;
}

.chart-reward-item.planet + .chart-reward-item.planet {
animation-delay: 420ms;
}

.chart-reward-coins {
width: 150px;
height: 150px;
background: url("../art/offers/coin-stacks.webp") 100% 0 / 300% 200% no-repeat;
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.chart-reward-prize.claimed .chart-reward-coins {
animation: chart-coins-give 360ms ease-out;
}

.chart-reward-amount {
max-width: 100%;
color: var(--gold-light);
font-family: var(--display);
font-size: 2.25rem;
letter-spacing: 0.04em;
line-height: 1.1;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
text-align: center;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.chart-reward-item .pearl.chart-reward-planet {
width: 116px;
height: 116px;
font-size: 116px;
animation: planet-float 1600ms ease-in-out infinite;
}

.chart-reward-name {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.06em;
line-height: 1.1;
text-align: center;
text-transform: uppercase;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.chart-reward .pearl-collect {
width: min(240px, 100%);
margin-top: 8px;
}

.chart-reward.ready .pearl-collect {
visibility: visible;
animation: chart-claim-in 260ms ease-out both;
}

@keyframes chart-reward-in {
from { opacity: 0; transform: scale(1.04); }
}

@keyframes chart-reward-out {
to { opacity: 0; }
}

@keyframes chart-dim {
from { opacity: 0; }
}

@keyframes chart-title-in {
from { opacity: 0; transform: scale(0.5); }
}

@keyframes chart-prize-pop {
from { opacity: 0; transform: scale(0.2); }
}

@keyframes chart-claim-in {
from { opacity: 0; transform: translateY(8px); }
}

@keyframes chart-coins-give {
40% { transform: scale(1.12); filter: brightness(1.35) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
}

@keyframes chart-glow {
to { transform: scale(1.08); opacity: 0.8; }
}

@media (max-height: 700px) {
.chart-reward { gap: 6px; }
.chart-reward-prize { min-height: 160px; }
.chart-reward-coins { width: 124px; height: 124px; }
.chart-reward-item .pearl.chart-reward-planet { width: 96px; height: 96px; font-size: 96px; }
}

@media (prefers-reduced-motion: reduce) {
.chart-reward.show,
.chart-reward-title,
.chart-reward-item,
.chart-reward-prize::before,
.chart-reward-prize.claimed .chart-reward-coins,
.chart-reward-item .pearl.chart-reward-planet,
.chart-reward.ready .pearl-collect,
.chart-reward.dimming::after {
animation: none;
}
}

.pearl-open.lights-up::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: #04021a;
pointer-events: none;
animation: chamber-lights 900ms ease-in forwards;
}

.pearl-open.lights-up .pearl-open-stage {
animation: chamber-planet-drop 560ms cubic-bezier(0.2, 1.4, 0.4, 1) 850ms both;
}

.pearl-open.lights-up .pearl-open-title {
animation: chart-claim-in 300ms ease-out 900ms both;
}

.pearl-open.lights-up.burst::after {
animation: none;
opacity: 0;
}

.pearl-open.lights-up.burst .pearl-open-stage,
.pearl-open.lights-up.burst .pearl-open-title {
animation: none;
}

@keyframes chamber-lights {
0% { opacity: 1; }
35% { opacity: 0.55; }
45% { opacity: 0.8; }
60% { opacity: 0.35; }
100% { opacity: 0; }
}

@keyframes chamber-planet-drop {
from { opacity: 0; transform: translateY(-60px) scale(0.6); }
}

/* Source: css/chart-observatory.css */

.wheel-backdrop {
position: absolute;
inset: 0;
z-index: -1;
background:
radial-gradient(ellipse 80% 62% at 50% 54%, #0c0620cc 30%, transparent 85%),
linear-gradient(#0c062066, transparent 22%, transparent 78%, #0c0620aa),
url("../art/halls/chart-hall.webp") center 42% / cover no-repeat, var(--bg-deep);
pointer-events: none;
}

.wheel-backdrop::before,
.wheel-backdrop::after {
content: "";
position: absolute;
inset: 0;
background-repeat: no-repeat;
animation: chart-twinkle 4.2s ease-in-out infinite alternate;
}

.wheel-backdrop::before {
background-image:
radial-gradient(2px 2px at 8% 14%, #fff, transparent),
radial-gradient(1.5px 1.5px at 23% 6%, #fff, transparent),
radial-gradient(2px 2px at 37% 22%, #e9fdff, transparent),
radial-gradient(1.5px 1.5px at 61% 9%, #fff, transparent),
radial-gradient(2px 2px at 78% 18%, #ffe9fb, transparent),
radial-gradient(1.5px 1.5px at 93% 8%, #fff, transparent),
radial-gradient(1.5px 1.5px at 15% 46%, #e9fdff, transparent),
radial-gradient(2px 2px at 88% 52%, #fff, transparent);
}

.wheel-backdrop::after {
background-image:
radial-gradient(1.5px 1.5px at 4% 30%, #fff, transparent),
radial-gradient(2px 2px at 30% 12%, #ffe9fb, transparent),
radial-gradient(1.5px 1.5px at 48% 4%, #fff, transparent),
radial-gradient(2px 2px at 70% 26%, #e9fdff, transparent),
radial-gradient(1.5px 1.5px at 84% 36%, #fff, transparent),
radial-gradient(2px 2px at 97% 24%, #fff, transparent),
radial-gradient(1.5px 1.5px at 24% 58%, #fff, transparent);
animation-duration: 5.6s;
animation-delay: -2.1s;
}

@keyframes chart-twinkle {
from { opacity: 0.25; }
to { opacity: 1; }
}

.wheel-astrolabe {
position: absolute;
inset: -7%;
z-index: -1;
background: url("../art/drawn/chart-astrolabe.svg") center / contain no-repeat;
opacity: 0.75;
pointer-events: none;
animation: chart-astrolabe 120s linear infinite;
}

@keyframes chart-astrolabe {
to { transform: rotate(360deg); }
}

.wheel-bonus {
display: contents;
}

.wheel-bonus-title,
.wheel-bonus-bolt,
.wheel-holo {
display: none;
}

body.scene-motion-paused .wheel-backdrop::before,
body.scene-motion-paused .wheel-backdrop::after,
body.scene-motion-paused .wheel-astrolabe,
body:has(> .sheet.open, > .pay.open) .wheel-backdrop::before,
body:has(> .sheet.open, > .pay.open) .wheel-backdrop::after,
body:has(> .sheet.open, > .pay.open) .wheel-astrolabe {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
.wheel-backdrop::before,
.wheel-backdrop::after,
.wheel-astrolabe {
animation: none;
}
}

/* Source: css/rank-constellations.css */

.level-open {
position: absolute;
left: 0;
right: 0;
top: 50%;
z-index: 3;
height: 44px;
margin-top: -22px;
border-radius: 22px;
}

.level-open:focus-visible {
outline: 2px solid var(--gold);
outline-offset: -4px;
}

.level:has(.level-open:active) .level-star {
transform: scale(0.92);
}

.level.ready::after {
content: "!";
position: absolute;
left: 25px;
top: -9px;
z-index: 2;
width: 18px;
height: 18px;
border-radius: 50%;
background: radial-gradient(circle at 40% 30%, #ff7a86, var(--ruby) 50%, #a0001a);
border: 2px solid #fff;
color: #fff;
font-family: var(--display);
font-size: 0.72rem;
line-height: 14px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
pointer-events: none;
}

.rank-head {
flex: none;
display: flex;
align-items: center;
gap: 12px;
margin: 4px 2px 10px;
}

.level-star.rank-star {
width: 78px;
height: 78px;
margin: 0;
font-size: 1.55rem;
filter: drop-shadow(0 0 10px rgba(255, 211, 77, 0.85));
}

.level-star.rank-star > span {
margin-top: 8px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.level-star.rank-star.long {
font-size: 1.15rem;
}

.rank-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 7px;
min-width: 0;
}

.rank-title {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}

.rank-icon {
flex: none;
width: 22px;
height: 22px;
color: var(--gold-light);
line-height: 1;
}

.rank-name {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
white-space: nowrap;
font-family: var(--display);
font-size: 1.6rem;
letter-spacing: 0.04em;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.rank-bar {
position: relative;
height: 20px;
overflow: hidden;
border-radius: 999px;
background: rgba(0, 0, 0, 0.55);
border: 2px solid var(--gold-dark);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 2px 3px rgba(0, 0, 0, 0.6);
}

.rank-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 55%),
linear-gradient(90deg, var(--magenta), var(--neon-pink) 70%, var(--muted));
transition: width 400ms ease-out;
}

.rank-xp {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text);
font-family: var(--display);
font-size: 0.74rem;
letter-spacing: 0.05em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 2px #000, 0 0 3px #000;
}

.rank-next {
flex: none;
display: grid;
grid-template-columns: 1fr;
margin-bottom: 0;
}

.rank-next-item {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
min-height: 34px;
padding: 6px 0;
border-bottom: 1px solid var(--hairline);
}

.rank-next-icon {
flex: none;
width: 20px;
height: 20px;
color: var(--gold-light);
line-height: 1.1;
}

.rank-next-text {
flex: 1;
display: grid;
grid-template-columns: 68px minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
min-width: 0;
max-width: 100%;
}

.rank-next-label {
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.rank-next-value {
max-width: 100%;
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.03em;
line-height: 1.1;
text-transform: uppercase;
text-shadow: 0 1px 2px #000;
}

.rank-next-sub {
color: var(--text);
font-family: var(--display);
font-size: 0.7rem;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.rank-next-item.rank .rank-next-text {
row-gap: 3px;
}

.rank-next-prize {
position: relative;
grid-column: 2 / -1;
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
}

.rank-next-prize[hidden] {
display: none;
}

.rank-next-coin {
width: 18px;
height: 18px;
}

.rank-next-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
letter-spacing: 0.03em;
line-height: 1.1;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 2px #000;
white-space: nowrap;
}

.rank-next-planet {
display: flex;
}

.rank-next-planet .pearl {
width: 20px;
height: 20px;
font-size: 20px;
}

.rank-next-said {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.rank-heading {
flex: none;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
padding: 0 4px 5px;
margin-bottom: 6px;
border-bottom: 1px solid var(--hairline);
}

.rank-heading-name {
font-family: var(--display);
font-size: 1.05rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
text-shadow: 0 1px 0 #000;
}

.rank-stars {
display: inline-flex;
align-items: center;
gap: 0.3em;
color: var(--gold);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.05em;
text-shadow: 0 1px 0 #000;
}

.rank-stars::after,
#profile-sheet .profile-count::after {
content: "";
width: 0.95em;
height: 0.95em;
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
background: var(--gold-bevel);
}

.rank-list {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
gap: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
touch-action: pan-y;
padding: 0 0 8px;
}

.star-row {
flex: none;
display: grid;
grid-template-columns: 22px minmax(0, 1fr) 76px;
align-items: center;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--hairline);
}

.star-row.claimed {
animation: star-row-flash 700ms ease-out;
}

.star-icon {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
color: var(--gold-light);
line-height: 1;
}

.star-body {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}

.star-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
min-width: 0;
}

.star-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 2px #000;
text-transform: uppercase;
}

.star-sockets {
position: relative;
flex: none;
display: flex;
gap: 4px;
}

.star-sockets::before {
content: "";
position: absolute;
left: 8px;
right: 8px;
top: 50%;
height: 1px;
background: rgba(255, 230, 160, 0.35);
}

.star-socket {
position: relative;
width: 17px;
height: 17px;
}

.star-socket::before {
content: "";
position: absolute;
inset: 0;
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
background: rgba(200, 170, 255, 0.22);
}

.star-socket.lit::before {
background: var(--gold-bevel);
}

.star-socket.ready::before {
background: var(--gold-light);
}

.star-socket.ready {
opacity: 0.85;
}

.star-socket.lighting {
animation: star-light 700ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.star-socket.lighting::after {
content: "";
position: absolute;
inset: -6px;
border-radius: 50%;
border: 2px solid var(--gold-light);
box-shadow: 0 0 10px var(--gold);
opacity: 0;
animation: star-ring 700ms ease-out;
}

.star-bar {
position: relative;
height: 7px;
overflow: hidden;
border-radius: 999px;
background: rgba(0, 0, 0, 0.5);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 211, 77, 0.25);
}

.star-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0;
border-radius: 999px;
background: linear-gradient(90deg, var(--violet), var(--neon-cyan));
transition: width 400ms ease-out;
}

.star-row.ready .star-fill,
.star-row.done .star-fill {
background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.star-count {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
font-variant-numeric: tabular-nums;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.star-claim {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px;
min-height: 48px;
padding: 4px 2px;
border-radius: 10px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
border: 2px solid rgba(255, 211, 77, 0.3);
color: var(--muted);
font-family: var(--display);
text-shadow: 0 1px 0 #000;
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.6);
}

.star-claim-label {
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.08em;
line-height: 1.1;
}

.star-claim-coins {
font-family: var(--display);
font-size: 0.75rem;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.star-claim:not(:disabled) {
background: var(--gold-bevel);
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.6);
color: var(--gold-ink);
text-shadow: none;
}

.star-claim:not(:disabled):active {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 rgba(0, 0, 0, 0.6);
}

.star-row.done .star-claim {
border-color: rgba(255, 211, 77, 0.55);
color: var(--gold);
}

.rank-icon svg,
.rank-next-icon svg,
.rank-loyalty-icon svg,
.star-icon svg,
.rank-icon img,
.rank-next-icon img,
.rank-loyalty-icon img,
.star-icon img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.rank-panel .sheet-close {
flex: none;
min-height: 48px;
margin-top: 8px;
border-radius: 12px;
font-family: var(--display);
font-size: 1.05rem;
letter-spacing: 0.06em;
}

@keyframes star-socket-pulse {
0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 211, 77, 0.6)); }
50% { transform: scale(1.25); filter: drop-shadow(0 0 7px rgba(255, 230, 140, 1)); }
}

@keyframes star-light {
0% { transform: scale(0.2) rotate(-120deg); }
60% { transform: scale(1.9) rotate(10deg); }
100% { transform: scale(1) rotate(0); }
}

@keyframes star-ring {
0% { opacity: 1; transform: scale(0.4); }
100% { opacity: 0; transform: scale(2.4); }
}

@keyframes star-row-flash {
0% { box-shadow: inset 0 0 30px rgba(255, 236, 160, 0.8), 0 0 24px rgba(255, 211, 77, 0.9); }
}

@keyframes star-claim-glow {
0%, 100% { box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 4px rgba(255, 211, 77, 0.4); }
50% { box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 226, 130, 0.95); }
}

@keyframes milestone-glow {
50% { filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 #5a0a50) drop-shadow(0 0 30px rgba(255, 246, 200, 1)); }
}

@keyframes rank-reveal {
from { opacity: 0; transform: scale(0.4); letter-spacing: 0.4em; }
}

@media (prefers-reduced-motion: reduce) {
.star-row.claimed,
.star-socket.ready,
.star-socket.lighting,
.star-socket.lighting::after,
.star-claim:not(:disabled) {
animation: none;
}
.rank-fill,
.star-fill {
transition: none;
}
}


/* Source: css/levelup-comet.css */

.level-up {
position: fixed;
inset: 0;
z-index: 48;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 20px);
background: radial-gradient(circle at 50% 42%, rgba(200, 40, 60, 0.9), rgba(20, 0, 6, 0.96) 70%);
overflow: hidden;
overflow: clip;
}

.level-up.show {
display: flex;
transform-origin: center;
animation: destination-panel-scale 250ms ease-out backwards,
destination-panel-fade 200ms ease backwards;
}

body:has(> .level-up.show)::before {
content: "";
position: fixed;
inset: 0;
z-index: 47;
}

@media (prefers-reduced-motion: reduce) {
.level-up.show { animation: none; }
}

body.reduced-motion .level-up.show {
animation: none;
}

.level-up .pearl-open-rays {
opacity: 0.7;
}

.level-up-title {
position: relative;
font-family: var(--display);
font-size: 2.6rem;
font-weight: 900;
letter-spacing: 0.06em;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 14px rgba(255, 106, 220, 0.8));
animation: level-title 600ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.level-up-stage {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 180px;
height: 170px;
}

.level-up-stage::before {
content: "";
position: absolute;
inset: -30px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 211, 77, 0.6) 25%, transparent 68%);
}

.pearl-prize .pearl {
width: 28px;
height: 28px;
}

.level-up.done .pearl-collect {
visibility: visible;
}


.level-toast {
position: fixed;
left: 50%;
top: calc(var(--safe-top) + 104px);
z-index: 38;
display: none;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
column-gap: 6px;
width: calc(100% - 32px);
max-width: 360px;
min-height: 64px;
padding: 6px 14px 6px 8px;
border: 2px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--violet), var(--red-dark) 70%, var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 14px rgba(255, 79, 216, 0.7), 0 8px 22px rgba(0, 0, 0, 0.6);
overflow: hidden;
pointer-events: none;
transform: translateX(-50%);
}

.level-toast.show {
display: grid;
animation: level-toast-in 460ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.level-toast.leaving {
animation: level-toast-out 320ms ease-in forwards;
}

.level-toast-said {
position: fixed;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.level-toast-rays {
position: absolute;
left: 34px;
top: 50%;
width: 220px;
height: 220px;
margin: -110px 0 0 -110px;
border-radius: 50%;
background: repeating-conic-gradient(rgba(255, 226, 130, 0.28) 0 8deg, transparent 8deg 20deg);
-webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%);
mask-image: radial-gradient(circle, #000 15%, transparent 60%);
animation: rays 6s linear infinite;
}

.level-toast::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 200, 0.55) 50%, transparent 65%);
transform: translateX(-110%);
animation: level-toast-glint 900ms ease-out 260ms both;
}

.level-star.level-toast-star {
grid-row: 1 / 4;
width: 52px;
height: 52px;
margin: 0;
font-size: 1.15rem;
filter: drop-shadow(0 0 8px rgba(255, 211, 77, 0.95));
animation: level-star 800ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.level-star.level-toast-star > span {
margin-top: 5px;
}

.level-star.level-toast-star.long {
font-size: 0.85rem;
}

.level-toast-body {
display: contents;
}

.level-toast-title {
position: relative;
grid-column: 2 / 4;
grid-row: 1;
min-width: 0;
line-height: 1.1;
font-family: var(--display);
font-size: 1.45rem;
letter-spacing: 0.05em;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 8px rgba(255, 106, 220, 0.8));
animation: level-title 520ms cubic-bezier(0.2, 1.6, 0.4, 1) 80ms both;
transform-origin: left center;
}

.level-toast-note {
position: relative;
grid-column: 2 / 4;
grid-row: 2;
overflow: hidden;
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
text-overflow: ellipsis;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.level-toast-note.rank {
text-shadow: 0 1px 0 #000, 0 0 6px var(--neon-pink);
}

.level-toast-prizes {
position: relative;
grid-column: 2 / 4;
grid-row: 3;
justify-self: end;
display: flex;
align-items: center;
gap: 6px;
}

.level-toast-coin {
flex: none;
width: 28px;
height: 28px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

.level-toast-coins {
min-width: 3.4em;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.35rem;
letter-spacing: 0.02em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 196, 70, 0.7);
white-space: nowrap;
}

.level-toast-prizes.paid .level-toast-coins,
.level-toast-prizes.paid .level-toast-coin {
animation: level-toast-paid 360ms ease-out;
}

.level-toast-planet {
position: relative;
display: flex;
align-items: center;
}

.level-toast-planet .pearl {
width: 26px;
height: 26px;
font-size: 26px;
}

.level-toast-count {
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
text-shadow: 0 1px 0 #000;
}

.level-toast-rank {
display: none;
}

.level-toast.prized .level-toast-rank {
display: contents;
}

.level-toast.prized .level-star.level-toast-star {
grid-row: 1 / 5;
}

.level-toast-prize-label {
position: relative;
grid-column: 2;
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

.level-toast-level-label { display: none; grid-row: 3; }
.level-toast-rank-label { grid-row: 4; }
.level-toast.prized .level-toast-level-label { display: block; }
.level-toast.prized #level-prizes { grid-column: 3; }

.level-toast-prizes.level-toast-rank-prizes {
grid-column: 3;
grid-row: 4;
}

.level-toast.milestone {
background: radial-gradient(circle at 34px 50%, var(--gold-dark), var(--red) 38%, var(--red-dark) 75%);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 20px rgba(255, 226, 130, 0.95), 0 8px 22px rgba(0, 0, 0, 0.6);
}

.level-toast.milestone .level-toast-rays {
background: repeating-conic-gradient(rgba(255, 236, 160, 0.5) 0 7deg, transparent 7deg 15deg);
}

.level.leveled .level-star {
animation: level-leveled 700ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes level-toast-in {
from { opacity: 0; transform: translate(-50%, -26px) scale(0.85); }
}

@keyframes level-toast-out {
to { opacity: 0; transform: translate(-50%, -18px) scale(0.92); }
}

@keyframes level-toast-glint {
to { transform: translateX(110%); }
}

@keyframes level-toast-paid {
40% { transform: scale(1.18); }
}

@keyframes level-leveled {
40% { transform: scale(1.5); filter: drop-shadow(0 0 12px rgba(255, 236, 160, 1)); }
}

@media (prefers-reduced-motion: reduce) {
.level-toast.show,
.level-toast.leaving,
.level-toast-rays,
.level-toast::after,
.level-star.level-toast-star,
.level-toast-title,
.level-toast-prizes.paid .level-toast-coins,
.level-toast-prizes.paid .level-toast-coin,
.level.leveled .level-star {
animation: none;
}
.level-toast::after {
display: none;
}
}


.comet-layer {
position: fixed;
inset: 0;
z-index: 35;
overflow: hidden;
pointer-events: none;
}

.comet {
position: absolute;
left: 0;
top: calc(var(--safe-top) + var(--comet-y, 12vh));
width: 64px;
height: 64px;
margin: -32px 0 0 -32px;
padding: 0;
border-radius: 50%;
pointer-events: auto;
-webkit-tap-highlight-color: transparent;
transform: translate(var(--comet-from, -25vw), 0);
--comet-w: min(64vw, 320px);
}

.comet[hidden] {
display: none;
}

.comet.flying {
animation: comet-fly 7000ms linear forwards;
}

.comet.held {
visibility: hidden;
animation-play-state: paused;
}

.comet.still {
left: 50%;
top: calc(var(--safe-top) + 14vh);
transform: none;
--comet-w: min(40vw, 190px);
}

.comet-body {
position: absolute;
inset: 0;
transform: rotate(var(--comet-angle, 0deg));
}

.comet.still .comet-body {
transform: rotate(160deg);
}

.comet-art {
--head-x: 0.9118;
--head-y: 0.5333;
position: absolute;
width: var(--comet-w);
height: calc(var(--comet-w) / 6);
left: calc(32px - var(--head-x) * var(--comet-w));
top: calc(32px - var(--head-y) * var(--comet-w) / 6);
background: url("../art/ui/comet-flight-loop.webp") 0 0 / 600% 100% no-repeat;
animation: comet-tail 545ms steps(6) infinite;
}

.comet.held .comet-art {
animation-play-state: paused;
}

.comet-up {
background: radial-gradient(circle at 50% 42%, #9628cd, #0e0422 70%);
}

.comet-up.grand {
background: radial-gradient(circle at 50% 42%, #ffa032, #cd1ea0 42%, #12021e 76%);
}

.comet-up.grand .pearl-open-rays {
opacity: 1;
}

.comet-title {
font-size: 2.4rem;
white-space: nowrap;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 14px rgba(255, 79, 216, 0.9));
}

.comet-coins {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}

.comet-big {
position: relative;
display: block;
width: 180px;
height: 180px;
background: url("../art/ui/comet.webp") center / contain no-repeat;
filter: drop-shadow(0 0 18px rgba(255, 196, 70, 0.75)) drop-shadow(0 0 36px rgba(255, 79, 216, 0.45));
animation: comet-swoop 900ms cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.comet-up.grand .comet-big {
filter: drop-shadow(0 0 22px rgba(255, 214, 90, 0.95)) drop-shadow(0 0 48px rgba(255, 79, 216, 0.7));
}

@keyframes comet-fly {
0% { transform: translate(var(--comet-from), 0); opacity: 0; }
6% { opacity: 1; }
90% { opacity: 1; }
100% { transform: translate(var(--comet-to), var(--comet-drop)); opacity: 0; }
}

@keyframes comet-tail {
to { background-position: calc(var(--comet-w) * -6) 0; }
}

@keyframes comet-swoop {
from { transform: translate(120px, -90px) scale(0.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
.comet.flying,
.comet-art,
.comet-big {
animation: none;
}
}


/* Source: css/beacon.css */

.lantern-button {
min-width: 84px;
}

.lantern-icon {
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
font-size: 1.05rem;
line-height: 1;
transform-origin: 50% 0;
}

.lantern-button:not(.ready) .lantern-icon {
filter: grayscale(0.7) brightness(0.7);
}

.lantern-button.ready .lantern-icon {
animation: lantern-swing 2.4s ease-in-out infinite;
}

.lantern-up {
gap: 14px;
background:
radial-gradient(ellipse 60% 55% at 50% 55%, rgba(14, 3, 30, 0.45), rgba(14, 3, 30, 0) 100%),
url("../art/beacon/hall.webp") center / cover no-repeat,
#1a0636;
}

.lantern-title {
font-size: 2.1rem;
white-space: nowrap;
filter: drop-shadow(0 1px 1px #000) drop-shadow(0 2px 4px var(--bg-deep));
}

.lantern-next {
margin: 0;
color: var(--gold-light);
font-size: 0.95rem;
font-weight: 400;
}

.lantern-respins {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 230px;
min-height: 32px;
padding: 2px 16px;
border: 2px solid #ff4fd8;
border-radius: 6px;
background: linear-gradient(180deg, #2a0846, #14031f);
box-shadow: 0 0 12px rgba(255, 79, 216, 0.6), inset 0 0 8px rgba(255, 79, 216, 0.35);
color: #fff;
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.06em;
white-space: nowrap;
}

.lantern-respins-count {
color: #ff4fd8;
font-size: 1.35rem;
text-shadow: 0 0 8px rgba(255, 79, 216, 0.8);
}

.lantern-respins.reset {
animation: beacon-reset 420ms ease-out;
}

.lantern-reels {
--lc: clamp(50px, min((100vw - 74px) / 4, (100vh - 470px) / 3), 84px);
--lc: clamp(50px, min((100vw - 74px) / 4, (100dvh - 470px) / 3), 84px);
--cell: var(--lc);
position: relative;
z-index: 2;
display: grid;
grid-template-columns: var(--lc) calc(var(--lc) * 2) var(--lc);
grid-template-rows: calc(var(--lc) * 3 + 8px);
gap: 6px;
padding: 6px;
border: 3px solid transparent;
border-radius: 10px;
background: linear-gradient(180deg, #1a0838, #0a0320) padding-box;
box-shadow: 0 0 22px rgba(255, 196, 80, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.7);
transition: box-shadow 300ms ease;
}

.lantern-reels.unlocked {
box-shadow: 0 0 22px rgba(255, 79, 216, 0.85), 0 0 46px rgba(170, 60, 255, 0.5), inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.lantern-reels::before {
content: "";
position: absolute;
inset: -10px -8.5px -9px;
z-index: 3;
border: 26px solid transparent;
border-image: url("../art/beacon/bezel.webp") 80 / 26px stretch;
pointer-events: none;
}

.lantern-side {
position: relative;
display: grid;
grid-template-rows: repeat(3, 1fr);
gap: 4px;
}

.lantern-cell {
position: relative;
display: grid;
place-items: center;
overflow: hidden;
border-radius: 6px;
background: radial-gradient(circle at 50% 40%, #2a1462, #0c0528 75%);
box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.55);
transition: opacity 300ms ease, filter 300ms ease;
}

.lantern-reels:not(.unlocked) .lantern-cell {
opacity: 0.22;
filter: grayscale(0.8);
}

.lantern-lock {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 2px;
color: #fff;
font-family: var(--display);
font-size: 0.8rem;
line-height: 1.15;
letter-spacing: 0.03em;
text-align: center;
text-shadow: 0 1px 2px #000;
transition: opacity 300ms ease;
}

.lantern-reels.unlocked .lantern-lock {
opacity: 0;
}

.lantern-cell-strip {
position: absolute;
top: 0;
left: 0;
right: 0;
will-change: transform;
}

.lantern-cell-item {
display: grid;
place-items: center;
height: var(--lc);
}

.lantern-cell.spinning .beacon-coin {
filter: blur(0.8px);
}

.lantern-cell.locked {
background: radial-gradient(circle at 50% 40%, #4a2aa8, #1a0c58 75%);
box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(255, 196, 60, 0.6);
animation: beacon-lock 360ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.lantern-cell.collect,
.lantern-centre.collect {
animation: beacon-flare 360ms ease-out;
}

.lantern-sym.letter {
position: relative;
display: grid;
place-items: center;
font-family: var(--symbol);
font-size: calc(var(--cell) * 0.56);
font-weight: 400;
}

.lantern-sym.letter-10 {
font-size: calc(var(--cell) * 0.4);
letter-spacing: -0.04em;
}

.lantern-strip-item .lantern-sym.letter {
font-size: calc(var(--cell) * 1.15);
}

.lantern-strip-item .lantern-sym.letter-10 {
font-size: calc(var(--cell) * 0.85);
}

.lantern-centre {
position: relative;
overflow: hidden;
border-radius: 8px;
background: radial-gradient(circle at 50% 45%, #2e1670, #0c0530 75%);
box-shadow: inset 0 0 0 2px var(--gold);
}

.lantern-reels.landed .lantern-centre {
animation: beacon-land 700ms ease-out forwards;
}

.lantern-strip {
position: absolute;
top: 0;
left: 0;
right: 0;
will-change: transform;
}

.lantern-strip-item {
display: grid;
place-items: center;
height: calc(var(--lc) * 3 + 8px);
}

.beacon-coin {
position: relative;
display: grid;
place-items: center;
width: calc(var(--lc) * 0.86);
height: calc(var(--lc) * 0.86);
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
}

.beacon-coin > span {
grid-area: 1 / 1;
}

.beacon-coin-star {
visibility: hidden;
color: rgba(150, 80, 0, 0.6);
text-shadow: 0 1px 0 rgba(255, 240, 190, 0.7), 0 -1px 0 rgba(90, 40, 0, 0.5);
font-size: calc(var(--lc) * 0.62);
line-height: 1;
}

.beacon-coin-value {
color: #fff;
font-family: var(--display);
font-size: calc(var(--lc) * 0.3);
line-height: 1;
letter-spacing: 0.02em;
white-space: nowrap;
-webkit-text-stroke: calc(var(--lc) * 0.05) #2a1000;
paint-order: stroke fill;
text-shadow: 0 2px 0 #2a1000, 0 0 6px rgba(0, 0, 0, 0.9);
}

.beacon-coin.big {
width: calc(var(--lc) * 1.86);
height: calc(var(--lc) * 1.86);
}

.beacon-coin.big .beacon-coin-star {
font-size: calc(var(--lc) * 1.35);
}

.beacon-coin.big .beacon-coin-value {
font-size: calc(var(--lc) * 0.54);
-webkit-text-stroke: calc(var(--lc) * 0.07) #2a1000;
text-shadow: 0 3px 0 #2a1000, 0 0 12px rgba(0, 0, 0, 0.9);
}

.beacon-coin.mini {
width: 26px;
height: 26px;
}

.beacon-coin > .beacon-coin-light {
position: absolute;
right: 4%;
bottom: 1%;
color: var(--starlight);
font-family: var(--display);
font-size: max(11px, calc(var(--lc) * 0.22));
line-height: 1;
letter-spacing: 0.02em;
white-space: nowrap;
-webkit-text-stroke: 2px var(--starlight-deep);
paint-order: stroke fill;
text-shadow: 0 1px 0 #00140c;
}

.beacon-coin.big > .beacon-coin-light {
right: 4%;
bottom: 1%;
font-size: calc(var(--lc) * 0.44);
-webkit-text-stroke-width: 4px;
}

.lantern-prizes,
.comet-prizes {
flex-direction: row;
gap: 24px;
min-height: 0;
}

.lantern-prizes .spire-up-prize {
width: auto;
min-width: 88px;
}

.lantern-prizes .spire-up-label {
color: var(--text);
font-size: 0.8rem;
letter-spacing: 0.05em;
}

.lantern-light .spire-up-amount {
color: var(--starlight);
}

.lantern-light-mark {
width: 60px;
height: 60px;
}

.lantern-up > .lantern-bolts {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
opacity: 0;
pointer-events: none;
filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ff4df0) drop-shadow(0 0 12px #c040ff);
transition: opacity 200ms ease;
}

.lantern-up > .lantern-title,
.lantern-up > .lantern-respins,
.lantern-up > .lantern-prizes,
.lantern-up > .lantern-next,
.lantern-up > .reward-collect {
position: relative;
z-index: 2;
}

.lantern-up.crackle > .lantern-bolts {
opacity: 1;
}

.lantern-bolts path {
fill: none;
stroke: #ffe8fd;
stroke-width: 3;
stroke-linejoin: round;
stroke-linecap: round;
}

.lantern-bolts path:nth-child(n + 3) {
stroke-width: 1.5;
}


/* Source: css/cabinet-feedback.css */


.float-text.xp {
left: auto;
right: 34px;
transform: translate(50%, -50%);
color: #ffd6f6;
font-size: 0.82rem;
letter-spacing: 0.06em;
text-shadow: 0 0 6px var(--neon-pink), 0 0 2px var(--neon-pink), 0 1px 2px #000;
animation: fb-xp-float 900ms ease-out forwards;
}

.float-text.payback {
font-size: 0.85rem;
}

.coin.payback-coin,
.coin.win-coin,
.coin.total-flight-coin {
opacity: 0;
animation: none;
will-change: transform, opacity;
}

.level-fill.gain {
animation: fb-xp-gain 650ms ease-out;
}

#level .level-star.pop {
animation: fb-star-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.level-fill.gain:where(.replay-b) {
animation-name: fb-xp-gain-b;
}

#level .level-star.pop:where(.replay-b) {
animation-name: fb-star-pop-b;
}

.level-fill.almost::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.7) 50%, transparent 62%) no-repeat;
background-size: 250% 100%;
background-position: 125% 0;
animation: fb-sweep 1.8s ease-in-out infinite;
pointer-events: none;
}

.credits {
transition: box-shadow 400ms ease-out;
}

.credits.gain {
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 212, 90, 0.9), 0 0 14px 2px rgba(255, 212, 90, 0.65);
transition-duration: 120ms;
}

.credits.gain .credits-coin {
box-shadow: 0 0 12px 2px rgba(255, 230, 140, 0.95);
}

.credits.spend {
animation: fb-spend 380ms ease-out;
}

.credits.spend .currency {
animation: fb-spend-text 380ms ease-out;
}

.credits.spend:where(.replay-b) {
animation-name: fb-spend-b;
}

.credits.spend:where(.replay-b) .currency {
animation-name: fb-spend-text-b;
}

.bet-value.bump strong {
animation: fb-bump 280ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.bet-max.flash {
animation: fb-max-flash 480ms ease-out;
}

.streak-chip {
position: absolute;
top: -11px;
right: 10px;
z-index: 4;
padding: 2px 9px 1px 24px;
border-radius: 6px;
background: linear-gradient(180deg, #6a0c34, #1c0412);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 150, 40, 0.55);
color: var(--gold-light);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
line-height: 1.25;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
pointer-events: none;
visibility: hidden;
opacity: 0;
transform: scale(0.6);
transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.app.drums .streak-chip {
top: -2px;
}

.streak-chip.show {
visibility: visible;
opacity: 1;
transform: none;
transition-delay: 0s;
}

.streak-chip.level-2 {
background: linear-gradient(180deg, #a3200e, #3a0806);
border-color: #ffc44a;
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 14px 2px rgba(255, 120, 30, 0.8);
color: #fff3c0;
}

.streak-chip.level-3 {
background: linear-gradient(180deg, #e0284e, #6a0424);
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 18px 3px rgba(255, 79, 216, 0.85), 0 0 6px #ff6a00;
color: #fff;
animation: fb-streak-hot 900ms ease-in-out infinite alternate;
}

.streak-chip.show.pop {
animation: fb-streak-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.streak-chip.show.pop.level-3 {
animation: fb-streak-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1), fb-streak-hot 900ms ease-in-out 420ms infinite alternate;
}

.goal-chip {
position: absolute;
top: -11px;
left: 10px;
z-index: 4;
display: flex;
flex-direction: column;
align-items: center;
padding: 1px 8px 2px;
border-radius: 6px;
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
border: 1px solid var(--gold-deep);
box-shadow: 0 0 0 1px rgba(255, 212, 90, 0.35), 0 2px 6px rgba(0, 0, 0, 0.7);
font-family: var(--display);
line-height: 1.1;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
pointer-events: none;
visibility: hidden;
opacity: 0;
transform: scale(0.6);
transform-origin: left top;
transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.app.drums .goal-chip {
top: -2px;
}

@media (max-height: 680px) {
.goal-chip {
top: -2px;
}
}

.goal-chip.show {
visibility: visible;
opacity: 1;
transform: none;
transition-delay: 0s;
}

.goal-chip.show.pop {
animation: fb-streak-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.goal-head {
display: flex;
align-items: center;
gap: 4px;
}

.goal-num {
color: var(--gold-light);
font-size: 0.95rem;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
}

.goal-label {
color: var(--muted);
font-size: 0.7rem;
letter-spacing: 0.06em;
}

.goal-track {
position: relative;
align-self: stretch;
height: 4px;
margin: 2px 0 1px;
border-radius: 2px;
background: var(--bg-deep);
box-shadow: inset 0 0 0 1px var(--hairline);
overflow: hidden;
}

.goal-fill {
position: absolute;
inset: 0;
border-radius: 2px;
background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
transform: scaleX(0);
transform-origin: left center;
transition: transform 320ms ease-out;
}

.goal-chip.locked {
background: linear-gradient(180deg, var(--navy-deep), var(--bg-deep));
}

.goal-lock,
.level-mark-lock {
display: none;
position: relative;
flex: none;
width: 10px;
height: 8px;
margin-top: 5px;
border-radius: 2px;
background: var(--gold-bevel);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.goal-lock::before,
.level-mark-lock::before {
content: "";
position: absolute;
left: 2px;
bottom: 100%;
width: 6px;
height: 6px;
box-sizing: border-box;
border: 2px solid var(--gold-deep);
border-bottom: 0;
border-radius: 3px 3px 0 0;
box-shadow: 0 0 0 1px rgba(255, 212, 90, 0.45);
}

.goal-chip.locked .goal-lock {
display: block;
}

.goal-chip.bet-up .goal-track {
display: none;
}

.win-plate.show {
animation: plate-in 220ms cubic-bezier(0.3, 1.5, 0.5, 1) forwards, fb-plate-glow 900ms ease-out 200ms;
}

.win-box.sparkle::after {
content: "";
position: absolute;
inset: 0;
border-radius: 4px;
background: linear-gradient(100deg, transparent 38%, rgba(255, 240, 180, 0.6) 50%, transparent 62%) no-repeat;
background-size: 250% 100%;
background-position: -25% 0;
animation: fb-sweep-once 650ms ease-out;
pointer-events: none;
}

.badge::before,
.badge::after {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
opacity: 0;
pointer-events: none;
}

.badge::before {
box-shadow: 0 0 0 1px rgba(255, 211, 77, 0.75), 0 0 5px rgba(255, 59, 78, 0.9);
animation: fb-badge-glow-half 1s infinite alternate;
}

.badge::after {
box-shadow: 0 0 0 2px rgba(255, 211, 77, 0.75), 0 0 10px rgba(255, 59, 78, 0.9);
animation: fb-badge-glow 1s infinite alternate;
}

.bet-step,
.bet-max,
.rush-button,
.league-button,
.sheet-close,
.deal-yes,
.deal-no,
.reward-collect,
.wheel-go,
.icon-button {
transition: transform 60ms ease-out;
}

.deal-yes:active:not(:disabled),
.deal-no:active:not(:disabled),
.reward-collect:active:not(:disabled),
.wheel-go:active:not(:disabled),
.icon-button:not(.paytable-button):active:not(:disabled) {
transform: scale(0.96);
}

@keyframes fb-xp-float {
0% { opacity: 0; transform: translate(50%, calc(-50% + 4px)); }
15% { opacity: 1; }
100% { opacity: 0; transform: translate(50%, calc(-50% - 30px)); }
}

@keyframes fb-xp-gain {
25% { filter: brightness(1.7) saturate(1.2); box-shadow: 0 0 14px var(--neon-pink), 0 0 4px #fff; }
}

@keyframes fb-xp-gain-b {
25% { filter: brightness(1.7) saturate(1.2); box-shadow: 0 0 14px var(--neon-pink), 0 0 4px #fff; }
}

@keyframes fb-star-pop {
40% { transform: scale(1.3) rotate(-10deg); filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 4px var(--gold)); }
}

@keyframes fb-star-pop-b {
40% { transform: scale(1.3) rotate(-10deg); filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 4px var(--gold)); }
}

@keyframes fb-sweep {
0% { background-position: 125% 0; }
60%, 100% { background-position: -25% 0; }
}

@keyframes fb-sweep-once {
from { background-position: 125% 0; }
to { background-position: -25% 0; }
}

@keyframes fb-spend {
30% { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 59, 78, 0.55), 0 0 0 1px rgba(255, 59, 78, 0.6); }
}

@keyframes fb-spend-text {
30% { color: #ffa0aa; }
}

@keyframes fb-spend-b {
30% { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 59, 78, 0.55), 0 0 0 1px rgba(255, 59, 78, 0.6); }
}

@keyframes fb-spend-text-b {
30% { color: #ffa0aa; }
}

@keyframes fb-bump {
40% { transform: scale(1.28); text-shadow: 0 0 12px rgba(255, 211, 77, 1), 0 0 2px #fff; }
}

@keyframes fb-max-flash {
30% { filter: brightness(1.5); box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 #2a0008, 0 0 16px 3px rgba(255, 211, 77, 0.85); }
}

@keyframes fb-streak-pop {
from { opacity: 0; transform: scale(0.4); }
60% { opacity: 1; transform: scale(1.18); }
to { transform: scale(1); }
}

@keyframes fb-streak-hot {
to { box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 24px 5px rgba(255, 79, 216, 0.95), 0 0 10px #ff6a00; }
}

@keyframes fb-plate-glow {
35% { box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 22px 4px rgba(255, 211, 77, 0.85); }
}

@keyframes fb-badge-glow-half {
0% { opacity: 0; animation-timing-function: cubic-bezier(0.42, 0, 0.71, 0.5); }
50% { opacity: 0.5; animation-timing-function: cubic-bezier(0.29, 0.5, 0.58, 1); }
100% { opacity: 0; }
}

@keyframes fb-badge-glow {
0% { opacity: 0; }
50% { opacity: 0.001; animation-timing-function: cubic-bezier(0.29, 0.5, 0.58, 1); }
100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.float-text.xp {
animation-duration: 1ms;
}
.level-fill.gain,
.level-fill.almost::after,
#level .level-star.pop,
.credits.spend,
.credits.spend .currency,
.bet-value.bump strong,
.bet-max.flash,
.bet-value.nudge,
.shop-button.nudge,
.streak-chip.level-3,
.streak-chip.show.pop,
.streak-chip.show.pop.level-3,
.goal-chip.show.pop,
.win-box.sparkle::after,
.badge,
.badge::before,
.badge::after {
animation: none;
}
.credits,
.streak-chip,
.goal-chip,
.goal-fill,
.bet-step,
.bet-max,
.rush-button,
.league-button,
.sheet,
.sheet-panel,
.auto-panel,
.pay-panel,
.sheet-close,
.deal-yes,
.deal-no,
.reward-collect,
.wheel-go,
.icon-button {
transition: none;
}
}


.feature-jackpots { width: 100%; max-width: 300px; margin: 0 auto 16px; font: 0.85rem/1.2 var(--display); letter-spacing: 0.04em; color: var(--text); text-shadow: 0 1px 0 #000; }
.feature-jackpots:empty { display: none; }
.feature-jackpot { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.feature-jackpot-name { text-shadow: var(--jp-outline); }
.feature-jackpot-amount { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.feature-jackpot.grand .feature-jackpot-name { color: var(--jp-grand); }
.feature-jackpot.major .feature-jackpot-name { color: var(--jp-major); }
.feature-jackpot.minor .feature-jackpot-name { color: var(--jp-minor); }
.feature-jackpot.mini .feature-jackpot-name { color: var(--jp-mini); }

#app[data-chip-dock] { --chip-band: 20px; --chip-foot: 1px; }
#app[data-chip-dock] > .grid { padding-top: var(--chip-band); }
#app[data-chip-dock] .goal-chip,
#app[data-chip-dock] .streak-chip {
top: auto;
bottom: calc(100% - var(--chip-band) + var(--chip-foot));
}
#app[data-chip-dock] .goal-chip {
flex-flow: row wrap;
justify-content: center;
column-gap: 3px;
left: 6px;
padding: 1px 6px 2px;
transform-origin: left bottom;
}
#app[data-chip-dock] .streak-chip { right: 6px; }
#app[data-chip-dock] .goal-num { font-size: 0.8rem; letter-spacing: 0.02em; }
#app[data-chip-dock] .goal-label { letter-spacing: 0.03em; }
#app[data-chip-dock] .goal-lock { margin-top: 3px; }
#app[data-chip-dock] .goal-track { flex: 1 0 100%; margin: 1px 0 0; }
html.landscape #app[data-chip-dock] {
--chip-band: 30px;
--ls-cell-h: clamp(36px, calc((var(--ls-stage-h) - var(--ls-strip) - var(--ls-pad) - var(--chip-band) - 8px - (var(--ls-rows) - 1) * 3px) / var(--ls-rows)), 120px);
}
html.landscape #app[data-chip-dock] > .grid { padding-top: var(--chip-band); }
html.landscape #app[data-chip-dock] .goal-chip,
html.landscape #app[data-chip-dock] .streak-chip {
top: auto;
bottom: calc(100% - var(--chip-band) + var(--chip-foot));
}
@media (max-height: 680px) {
html:not(.landscape) #app[data-chip-dock] { --chip-band: 8px; --chip-foot: 0px; }
html:not(.landscape) #app[data-chip-dock] .goal-chip { flex-wrap: nowrap; align-items: center; padding: 0 6px; line-height: 1.05; }
html:not(.landscape) #app[data-chip-dock] .goal-num { font-size: 0.7rem; }
html:not(.landscape) #app[data-chip-dock] .goal-lock { margin-top: 3px; transform: scale(0.7); }
html:not(.landscape) #app[data-chip-dock] .goal-track { flex: 0 0 20px; margin: 0 0 0 1px; }
html:not(.landscape) #app[data-chip-dock] .streak-chip {
padding: 0 7px 0 18px;
border-width: 1px;
font-size: 0.7rem;
line-height: 1.05;
}
html:not(.landscape) #app[data-chip-dock] .streak-chip::before { left: 5px; top: 1px; width: 9px; height: 10px; }
html:not(.landscape) #app[data-chip-dock]:has(> .tower:not([hidden])) .goal-chip { padding: 0 4px; column-gap: 2px; }
html:not(.landscape) #app[data-chip-dock]:has(> .tower:not([hidden])) :is(.goal-num, .goal-label) { letter-spacing: 0; }
html:not(.landscape) #app[data-chip-dock]:has(> .tower:not([hidden])) .goal-track { flex-basis: 14px; }
html:not(.landscape) #app[data-chip-dock]:has(> .tower:not([hidden])) .streak-chip { padding: 0 5px 0 17px; letter-spacing: 0.02em; }
}

/* Source: css/level-mark.css */
.level-mark {
position: absolute;
z-index: 1;
right: -2px;
top: 50%;
width: 26px;
height: 26px;
margin-top: -13px;
opacity: 0;
transform: translateY(8px) scale(0.6);
transition: opacity 260ms ease-out, transform 360ms cubic-bezier(0.3, 1.5, 0.5, 1);
pointer-events: none;
}

.level-mark.show {
opacity: 1;
transform: none;
}

.level-mark-art {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
font-size: 26px;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.level-mark-art.coin {
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

.level-mark-art.bet {
inset: 5px -4px;
width: auto;
height: auto;
border-radius: 4px;
background: var(--gold-bevel);
color: #4a2a00;
font-family: var(--display);
font-size: 0.56rem;
font-weight: 900;
font-variant-numeric: tabular-nums;
}

.level-mark-lock {
position: absolute;
right: -1px;
bottom: 0;
display: block;
margin: 0;
}

.level-mark.fly {
position: fixed;
z-index: 16;
right: auto;
margin: 0;
opacity: 1;
transform: none;
transition: none;
}

.level-mark.open .level-mark-lock {
animation: level-mark-unlock 300ms ease-in forwards;
}

.level-mark.open .level-mark-lock::before {
animation: level-mark-shackle 160ms ease-out forwards;
}

@keyframes level-mark-shackle {
to { transform: translateY(-3px); }
}

@keyframes level-mark-unlock {
60% { opacity: 1; transform: translateY(-2px) rotate(-12deg); }
100% { opacity: 0; transform: translateY(10px) rotate(-30deg); }
}

@media (prefers-reduced-motion: reduce) {
.level-mark {
transform: none;
transition: none;
}
}

/* Source: css/wild-multipliers.css */
.reel-fx > .wild-badge {
position: absolute;
left: 0;
right: 0;
top: calc(100% * var(--reel-fx-row) / var(--reel-rows, 3));
height: calc(100% / var(--reel-rows, 3));
display: grid;
place-items: center;
pointer-events: none;
animation: wild-badge-fly var(--wild-fly) ease-in var(--wild-fly-delay) both;
}

.reel-fx > .wild-badge.solo {
animation-name: wild-badge-fade;
}

.wild-badge-face {
padding: 0.04em 0.32em;
border: 2px solid var(--gold);
border-radius: var(--radius);
background: rgba(8, 10, 40, 0.86);
box-shadow: 0 0 8px var(--gold), 0 2px 4px rgba(0, 0, 0, 0.7);
color: var(--gold-light);
font-family: var(--display);
font-size: clamp(0.9rem, calc(var(--cell, 56px) * 0.4), 1.7rem);
line-height: 1.1;
white-space: nowrap;
animation: wild-badge-pop var(--wild-pop) cubic-bezier(0.3, 1.6, 0.5, 1) var(--wild-delay) both;
}

.wild-badge.solo .wild-badge-face {
border-color: var(--gold-light);
box-shadow: 0 0 14px var(--gold), 0 0 4px var(--gold-light), 0 2px 4px rgba(0, 0, 0, 0.7);
font-size: clamp(1.1rem, calc(var(--cell, 56px) * 0.52), 2.2rem);
}

@keyframes wild-badge-pop {
from { opacity: 0; transform: scale(0.3); }
to { opacity: 1; transform: scale(1); }
}

@keyframes wild-badge-fade {
from { opacity: 1; }
to { opacity: 0; }
}

@keyframes wild-badge-fly {
from { opacity: 1; transform: none; }
to {
opacity: 0;
transform: translate(calc(var(--wild-x) * 100%), calc(var(--wild-y) * 100%)) scale(0.6);
}
}

.float-text.wild-stamp {
z-index: 46;
color: var(--gold-light);
font-size: clamp(2.2rem, calc(var(--cell, 56px) * 1.1), 3.6rem);
text-shadow: 0 0 12px var(--gold), 0 0 3px #000, 0 3px 5px #000;
opacity: 0;
animation: wild-stamp var(--wild-stamp) ease-out var(--wild-stamp-delay) both;
}

@keyframes wild-stamp {
from { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
22% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes wild-step {
from { transform: scale(1); }
30% { transform: scale(1.14); }
to { transform: scale(1); }
}

@keyframes wild-step-b {
from { transform: scale(1); }
30% { transform: scale(1.14); }
to { transform: scale(1); }
}

.win-display.wild-step {
animation: wild-step 360ms ease-out;
}

.win-display.wild-step:where(.replay-b) {
animation-name: wild-step-b;
}

@media (prefers-reduced-motion: reduce) {
.wild-badge, .wild-stamp { display: none; }
.win-display.wild-step { animation: none; }
}

/* Source: css/effects-notices.css */

.fx-layer {
position: fixed;
inset: 0;
z-index: 45;
overflow: hidden;
pointer-events: none;
}

.total-flight-glow,
.total-win-flare {
position: absolute;
opacity: 0;
pointer-events: none;
will-change: transform, opacity;
}

.total-flight-glow {
width: 44px;
height: 44px;
border-radius: 50%;
background: radial-gradient(circle, #fffbe6 0%, rgba(255, 214, 92, 0.95) 28%, rgba(255, 170, 40, 0.45) 55%, transparent 72%);
}

.total-win-flare {
border-radius: 12px;
background: radial-gradient(closest-side, rgba(255, 240, 170, 0.85), rgba(255, 196, 64, 0.4) 60%, transparent);
box-shadow: 0 0 18px 6px rgba(255, 200, 80, 0.55);
}

.fly-orb {
position: fixed;
z-index: 16;
transform-origin: top left;
}

:where([data-float-host]) {
position: relative;
}

.float-text {
position: absolute;
left: 50%;
top: 50%;
z-index: 45;
pointer-events: none;
transform: translate(-50%, -50%);
color: var(--gold);
font-family: var(--display);
font-size: 1.3rem;
text-shadow: 0 0 8px rgba(255, 211, 77, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
white-space: nowrap;
animation: float-up 800ms ease-out forwards;
}

.beam {
position: fixed;
width: 6px;
margin-left: -3px;
transform-origin: top center;
border-radius: 3px;
background: linear-gradient(180deg, #fff, var(--gold) 30%, #ff6a00);
box-shadow: 0 0 12px var(--gold), 0 0 24px #ff6a00;
animation: beam 600ms ease-out forwards;
}

.coin {
position: absolute;
width: 30px;
height: 30px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
transform: translate(-50%, -50%);
animation: coin 1300ms cubic-bezier(0.3, 0, 0.7, 1) both;
}

.banner {
position: fixed;
left: 50%;
top: 40%;
z-index: 50;
display: flex;
flex-direction: column;
align-items: center;
transform: translate(-50%, -50%) scale(0);
pointer-events: none;
opacity: 0;
}

.banner::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
z-index: -1;
width: 150vmin;
height: 150vmin;
margin: -75vmin 0 0 -75vmin;
border-radius: 50%;
background:
radial-gradient(circle, rgba(255, 230, 140, 0.55), transparent 45%),
repeating-conic-gradient(rgba(255, 211, 77, 0.35) 0 7deg, transparent 7deg 18deg);
-webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
mask-image: radial-gradient(circle, #000 20%, transparent 65%);
}

.banner.show::before {
animation: rays 6s linear infinite;
}

.banner-title {
font-size: clamp(2.4rem, 13vw, 4.2rem);
font-weight: 900;
white-space: nowrap;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 4px 0 #6a0016) drop-shadow(0 0 16px rgba(255, 106, 0, 0.9));
}

.banner.bonus .banner-title {
background-image: linear-gradient(180deg, #f0fff4, #6dff9e 45%, #0b8a40 52%, #b0ffc8 80%, #0b6a36);
filter: drop-shadow(0 2px 0 #054018) drop-shadow(0 0 16px var(--jade));
}

.banner-amount {
font-size: clamp(2.1rem, 10.5vw, 3.1rem);
font-weight: 900;
filter: drop-shadow(0 0 1px #2a1000) drop-shadow(0 0 1px #2a1000) drop-shadow(0 3px 0 #4a2200) drop-shadow(0 4px 2px #000) drop-shadow(0 0 10px rgba(255, 160, 0, 0.8));
}


.toast {
position: fixed;
left: 50%;
top: calc(var(--safe-top) + 12px);
width: calc(100% - 32px);
max-width: 488px;
padding: 12px 16px;
border-radius: var(--radius);
background: linear-gradient(180deg, #6a0e1c, #2a0510);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 6px 20px rgba(0, 0, 0, 0.5);
font-size: 0.95rem;
transform: translate(-50%, calc(-100% - var(--safe-top) - 24px));
transition: transform 250ms ease;
pointer-events: none;
z-index: 56;
}

.toast.show {
transform: translate(-50%, 0);
}

.toast.interrupted {
transition: none;
}


.install-hint {
position: fixed;
left: 50%;
top: calc(50% + (var(--safe-top) - var(--safe-bottom)) / 2);
width: calc(100% - 32px);
max-width: 488px;
max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 48px);
overflow-y: auto;
overscroll-behavior: contain;
display: flex;
align-items: center;
gap: 10px;
padding: 10px 10px 10px 12px;
border-radius: var(--radius);
background: linear-gradient(180deg, #6a0e1c, #2a0510);
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 8px 24px rgba(0, 0, 0, 0.6);
font-size: 0.85rem;
line-height: 1.3;
opacity: 0;
transform: translate(-50%, -50%) scale(0.96);
transition: transform 300ms ease, opacity 300ms ease;
z-index: 25;
}

.install-hint.show {
opacity: 1;
transform: translate(-50%, -50%);
}

.install-hint[hidden] {
display: none;
}

.install-hint-icon {
flex: none;
width: 44px;
height: 44px;
border-radius: 10px;
}

.install-hint-text {
flex: 1;
color: var(--text);
}

.install-hint-text strong {
font-family: var(--display);
letter-spacing: 0.03em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.install-hint-text strong:first-child {
display: block;
color: var(--gold);
}

.install-hint-share {
position: relative;
display: inline-block;
width: 12px;
height: 11px;
margin: 0 2px -1px;
border: 2px solid var(--neon-cyan);
border-top-color: transparent;
border-radius: 2px;
}

.install-hint-share::before {
content: "\2191";
position: absolute;
left: 50%;
top: -9px;
transform: translateX(-50%);
color: var(--neon-cyan);
font-size: 13px;
font-weight: 700;
line-height: 1;
}

.install-hint-close {
flex: none;
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
color: var(--text);
font-size: 1rem;
touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
.install-hint { transition: none; }
}

@media (max-height: 700px) {
.deal-panel { gap: 4px; }
.deal-panel::before,
.deal-panel::after { font-size: 1.5rem; }
.deal-pill { font-size: 0.7rem; }
.deal-chest { padding: 1px 0 6px; }
.deal-chest.mine .deal-chest-label { bottom: 8px; }
.deal-bottom { min-height: 120px; }
.tower { padding: 2px 0 10px; }
.plaque { padding: 0 6px 1px; }
.plaque-amount { font-size: 0.85rem; }
.jackpot.minor .plaque-amount,
.jackpot.mini .plaque-amount { font-size: 0.8rem; }
.meters { padding: 0 4px 3px; margin: 3px 30px 0; --gate-inset: 2px -10px -2px; }
.meter::before { top: 4px; height: 14px; }
.guardian { width: 30px; height: 70px; bottom: 4px; }
.guardian:not(.flip) { left: -4px; }
.guardian.flip { right: -4px; }
.meter { flex-direction: row; gap: 4px; padding-top: 1px; }
.meter-label { flex: none; order: 0; min-width: 0; margin: 0; padding: 1px 12px; white-space: nowrap; }
.meter.top .meter-label { min-width: 0; padding: 1px 12px; }
.meter-slots { flex: 1; gap: 4px; padding: 2px 6px; }
.slot { width: 27px; height: 27px; border-width: 3px; font-size: 0.56rem; }
.spin-button { padding: 2px 0; }
.bet-row { margin-bottom: 4px; }
.bet-value,
.win-box { height: 44px; }
.controls { padding-top: 4px; margin-top: 4px; }
.pearl-tile,
.pearl-tile.storm { min-height: 64px; padding: 6px 2px 5px; gap: 2px; }
.pearl-tile .pearl { width: 32px; height: 32px; font-size: 32px; }
.pearl-open-all { min-height: 44px; margin-bottom: 8px; }
.pearl-open:not(.all) .pearl-reward-row { gap: 8px; }
.pearl-open:not(.all) .pearl-prize.tile { width: 72px; min-height: 82px; padding: 6px 3px; }
.pearl-open:not(.all) .pearl-prize.tile.coins { width: 90px; }
.pearl-open:not(.all) .pearl-prize.tile .pearl-prize-icon { font-size: 1.6rem; }
.wheel-panel { gap: 6px; }
.wheel-sign { margin-bottom: 6px; padding-bottom: 7px; }
.wheel-title { font-size: 1.45rem; }
.wheel-sign-bolt { height: 26px; width: 9px; }
.wheel-days { margin-top: 2px; }
.wheel-day { gap: 9px; }
.wheel-day::before,
.wheel-day-prize { height: 26px; }
.wheel-day-prize .pearl { width: 18px; height: 18px; font-size: 18px; }
.wheel-track { top: 29px; height: 5px; }
.wheel-stage { --stage: min(92vw, 360px, 46vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - 300px)); margin: 10px 0 4px; }
.wheel-label-inner { font-size: 0.8rem; }
.wheel-label-inner { padding-left: 1.5%; gap: 2px; }
.wheel-prize { min-height: 36px; }
.wheel-prize-text { font-size: 1.5rem; }
.wheel.cashback .wheel-prize { min-height: 56px; }
.wheel.cashback .wheel-stage { --stage: min(92vw, 360px, 46vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - 308px)); }
html:not(.landscape) .wheel.cashback .wheel-stage { --stage: min(92vw, 360px, 46vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - 324px)); }
.wheel-cashback-value { font-size: 1.05rem; }
.wheel-offer-amount { font-size: 1.35rem; margin-bottom: 2px; }
.wheel-keys { min-height: 48px; }
.wheel-skip,
.wheel-continue,
.wheel-unlock { min-height: 48px; }
}


/* Source: css/cabinet-animations.css */

@keyframes sting-burst {
0% { opacity: 0.95; transform: scale(0.55); }
100% { opacity: 0; transform: scale(1.4); }
}

@keyframes wheel-ready {
50% { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 12px rgba(255, 211, 77, 0.9); }
}

@keyframes wheel-icon-spin {
to { transform: rotate(360deg); }
}

@keyframes wheel-in {
from { opacity: 0; }
}

@keyframes wheel-panel-in {
from { opacity: 0; transform: scale(0.96); }
}

@keyframes wheel-out {
to { opacity: 0; }
}

@keyframes wheel-lock-in {
from { opacity: 0; transform: translateY(-6px) scale(0.8); }
}

@keyframes wheel-hit {
0% { opacity: 0; }
35% { opacity: 1; scale: 1.035; }
100% { scale: 1; }
}

@keyframes wheel-lamp-blink {
50% { opacity: 0.4; }
}

@keyframes wheel-chase {
to { transform: rotate(20deg); }
}

@keyframes wheel-arc-flicker {
0% { opacity: 1; }
33% { opacity: 0.35; }
66% { opacity: 0.85; }
}

@keyframes wheel-arc-turn {
to { transform: rotate(-360deg); }
}

@keyframes wheel-arcs-out {
0%, 70% { opacity: 1; }
100% { opacity: 0; }
}

@keyframes level-title {
from { transform: scale(0.3); opacity: 0; }
}

@keyframes lantern-swing {
0%, 100% { transform: rotate(-7deg); }
50% { transform: rotate(7deg); }
}

@keyframes beacon-lock {
0% { transform: scale(1.35); filter: brightness(2.2); }
100% { transform: scale(1); filter: none; }
}

@keyframes beacon-flare {
0% { filter: brightness(1); transform: scale(1); }
40% { filter: brightness(2) drop-shadow(0 0 14px #ffe27a); transform: scale(1.08); }
100% { filter: brightness(1); transform: scale(1); }
}

@keyframes beacon-land {
0% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 rgba(255, 226, 122, 0); }
35% { box-shadow: inset 0 0 0 2px #fff6c8, 0 0 34px rgba(255, 226, 122, 0.95); }
100% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 14px rgba(255, 196, 60, 0.55); }
}

@keyframes beacon-reset {
0% { transform: scale(1); }
35% { transform: scale(1.12); filter: brightness(1.6); }
100% { transform: scale(1); }
}

@keyframes level-star {
from { transform: scale(0.2) rotate(-180deg); opacity: 0; }
}

@keyframes blink {
50% { opacity: 0.45; }
}

@keyframes guardian-pulse {
from {
opacity: 0.88;
filter: drop-shadow(0 0 1px #4a3000) drop-shadow(0 0 12px rgba(255, 211, 77, 0.75)) drop-shadow(0 0 18px rgba(255, 190, 40, 0.5)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}
to {
opacity: 1;
filter: brightness(1.38) drop-shadow(0 0 2px #fff2b0) drop-shadow(0 0 20px rgba(255, 211, 77, 1)) drop-shadow(0 0 28px rgba(255, 170, 30, 0.85)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}
}

@keyframes final-other-pulse {
from { transform: scale(1); }
to { transform: scale(1.08); }
}

@keyframes press {
50% { transform: translateY(4px); box-shadow: 0 0 0 1px #2a2a30, 0 2px 0 #03300f, 0 4px 10px rgba(0, 0, 0, 0.4); }
}

@keyframes press-b {
50% { transform: translateY(4px); box-shadow: 0 0 0 1px #2a2a30, 0 2px 0 #03300f, 0 4px 10px rgba(0, 0, 0, 0.4); }
}

@keyframes badge {
to { transform: scale(1.15); }
}

@keyframes bought {
0% { background: var(--gold); transform: scale(1.03); }
100% { transform: scale(1); }
}

@keyframes win-bob {
50% { transform: scale(1.07); filter: brightness(1.25); }
}

@keyframes win-box {
50% { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dark), inset 0 0 0 1px var(--gold-dark), 0 0 4px var(--gold), inset 0 0 6px rgba(255, 211, 77, 0.2); }
}

@keyframes reel-shine {
0%, 78% { transform: none; }
100% { transform: translateX(566.6667%); }
}

@keyframes plate-in {
from { transform: translate(-50%, 6px) scale(0.6); opacity: 0; }
to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes payline {
from { opacity: 0.35; }
to { opacity: 0.85; }
}

@keyframes strike {
0%, 8% { opacity: 1; }
13% { opacity: 0.3; }
18%, 65% { opacity: 1; }
100% { opacity: 0; }
}

@keyframes strike-b {
0%, 8% { opacity: 1; }
13% { opacity: 0.3; }
18%, 65% { opacity: 1; }
100% { opacity: 0; }
}

@keyframes struck {
0%, 8% { filter: brightness(2) saturate(0.6); }
13% { filter: brightness(1.2); }
18% { filter: brightness(1.8) saturate(0.7); }
100% { filter: none; }
}

@keyframes struck-b {
0%, 8% { filter: brightness(2) saturate(0.6); }
13% { filter: brightness(1.2); }
18% { filter: brightness(1.8) saturate(0.7); }
100% { filter: none; }
}

@keyframes winner-in {
0% { opacity: 0; transform: translateY(-50%) scale(0.2); }
100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes winner-out {
from { opacity: 1; transform: translateY(-50%) scale(1); }
to { opacity: 0; transform: translateY(-50%) scale(0.85); }
}

@keyframes hot-box {
from { box-shadow: 0 0 12px var(--gold), 0 0 18px rgba(255, 140, 0, 0.5), inset 0 0 10px rgba(255, 211, 77, 0.6); transform: scale(1); }
to { box-shadow: 0 0 28px var(--gold), 0 0 44px rgba(255, 140, 0, 0.9), inset 0 0 16px rgba(255, 211, 77, 0.9); transform: scale(1.06); }
}

@keyframes spin-launch {
0% { opacity: 1; transform: scale(0.92); }
100% { opacity: 0; transform: scale(1.6); }
}

@keyframes firing {
0% { filter: brightness(2.4); transform: scale(1.15); }
100% { filter: none; transform: scale(1); }
}

@keyframes tease {
from { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 18px rgba(255, 211, 77, 0.35), inset 0 0 18px rgba(0, 0, 0, 0.8); }
to { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 34px var(--gold), inset 0 0 18px rgba(0, 0, 0, 0.8); }
}

@keyframes chest-bar-land {
0% { filter: brightness(2.5); }
100% { filter: none; }
}

@keyframes slot-land {
0% { transform: scale(1.5); filter: brightness(2.5); }
100% { transform: scale(1); }
}

@keyframes paying {
0% { filter: brightness(1.8); transform: scale(1.03); }
50% { filter: brightness(1); transform: scale(1); }
}

@keyframes meter-lit {
0% { filter: brightness(1.8) saturate(1.3) drop-shadow(0 0 10px var(--gold-light)); }
100% { filter: none; }
}

@keyframes sign-a {
0%, 55% { opacity: 1; }
55.1%, 100% { opacity: 0; }
}

@keyframes sign-b {
0%, 55% { opacity: 0; }
55.1%, 100% { opacity: 1; }
}

@keyframes chests-full {
from { box-shadow: 0 0 4px var(--gold); }
to { box-shadow: 0 0 16px var(--gold), 0 0 28px #ff6a00; }
}

@keyframes lantern {
from { transform: rotate(-4deg); }
to { transform: rotate(4deg); }
}

@keyframes rays {
to { transform: rotate(360deg); }
}

@keyframes intro-dim {
to { opacity: 1; }
}

@keyframes dragon-rise {
0% { transform: translateY(30vh) scale(0.15); }
100% { transform: none; }
}

@keyframes dragon-bob {
from { transform: translateY(0); }
to { transform: translateY(-8px); }
}

@keyframes door-close {
to { transform: none; }
}

@keyframes door-flash {
0%, 100% { filter: none; }
45% { filter: brightness(1.6) saturate(1.4); }
}

@keyframes door-open {
from { transform: none; }
to { transform: translateX(var(--open)); }
}

@keyframes deal-scroll {
0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
15% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
22%, 82% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
100% { transform: translate(-50%, 30%) scale(0.6); opacity: 0; }
}

@keyframes chest-rattle {
from { transform: rotate(-5deg) translateY(-1px); }
to { transform: rotate(5deg) translateY(1px); }
}

@keyframes chest-chosen {
from { box-shadow: 0 0 6px var(--gold); transform: scale(1); }
to { box-shadow: 0 0 22px var(--gold), 0 0 34px #ff6a00; transform: scale(1.08); }
}

@keyframes board-boost {
0% { filter: brightness(2) saturate(1.5); }
100% { filter: none; }
}

@keyframes deal-round {
0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
14% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
20%, 82% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes deal-round-still {
0%, 90% { transform: translate(-50%, -50%); opacity: 1; }
100% { transform: translate(-50%, -50%); opacity: 0; }
}

@keyframes chest-drop {
from { transform: translateY(-30px) scale(0.6); opacity: 0; }
}

@keyframes pill-in {
from { transform: scaleX(0.3); opacity: 0; }
}

@keyframes chest-pop {
0% { transform: scale(1.4); filter: brightness(2); }
100% { transform: scale(1); }
}

@keyframes offer-dragon-rise {
0% { transform: translateY(60%) scale(0.3); opacity: 0; }
30% { opacity: 1; }
100% { transform: none; opacity: 1; }
}

@keyframes offer-scroll-in {
from { transform: scale(0.4); opacity: 0; }
to { transform: none; opacity: 1; }
}

@keyframes offer-powered {
0% { filter: brightness(2.2) saturate(1.4); transform: scale(1.12); }
100% { filter: none; transform: none; }
}

@keyframes deal-flash {
0% { opacity: 0; }
8%, 82% { opacity: 1; }
100% { opacity: 0; }
}

@keyframes flash-name {
from { scale: 0.3; rotate: -6deg; }
to { scale: 1; rotate: 0deg; }
}

@keyframes bolt-flicker {
from { opacity: 1; }
to { opacity: 0.35; }
}

@keyframes pill-flash {
0% { filter: none; transform: none; }
35% { filter: brightness(2.2) saturate(1.3); transform: scale(1.08); box-shadow: 0 0 12px #fff6a0; }
100% { filter: none; transform: none; }
}

@keyframes offer-in {
from { transform: translateY(40px) scale(0.9); opacity: 0; }
to { transform: none; opacity: 1; }
}

@keyframes fizzle {
to { opacity: 0; transform: scale(0.4); }
}

@keyframes pearl-land {
40% { transform: scale(1.5); filter: brightness(1.6); }
}

@keyframes pearl-bob {
50% { transform: translateY(-3px); }
}

@keyframes planet-float {
50% { transform: translateY(-9px); }
}

@keyframes planet-quake {
25% { transform: translate(-2px, 1px); }
50% { transform: translate(2px, -1px); }
75% { transform: translate(-1px, -2px); }
}

@keyframes planet-lift {
0% { transform: translateY(0); }
100% { transform: translateY(-72px) rotate(-10deg); }
}

@keyframes planet-sink {
0% { transform: translateY(0); }
100% { transform: translateY(26px) rotate(3deg); }
}

@keyframes seam-open {
0% { opacity: 0; transform: scale(0.4, 0.2); }
25% { opacity: 1; transform: scale(1, 0.6); }
100% { opacity: 1; transform: scale(1.25, 1.6); }
}

@keyframes crack-rays {
0% { opacity: 0; transform: scaleY(0.3); }
30% { opacity: 1; }
100% { opacity: 1; transform: scaleY(1) rotate(4deg); }
}

@keyframes ring-spin {
to { transform: rotate(360deg); }
}

@keyframes beam-sweep-left {
to { transform: rotate(-22deg); }
}

@keyframes beam-sweep-right {
to { transform: rotate(24deg); }
}

@keyframes halo-flicker {
50% { opacity: 0.6; }
}

@keyframes flash-in {
0%, 55% { opacity: 0; }
100% { opacity: 1; }
}

@keyframes flash-out {
from { opacity: 1; }
to { opacity: 0; }
}

@keyframes star-pop {
0% { transform: scale(2.2); }
100% { transform: scale(1); }
}

@keyframes spark-fly {
0% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); opacity: 0; }
}

@keyframes reward-fly {
0% { transform: translate(var(--fx), var(--fy)) scale(0.15); opacity: 0; }
30% { opacity: 1; }
100% { transform: none; opacity: 1; }
}

@keyframes pearl-flash {
0% { transform: scale(0.3); opacity: 1; }
100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pearl-prize {
from { opacity: 0; transform: translateY(12px) scale(0.9); }
}

@keyframes float-up {
from { opacity: 1; transform: translate(-50%, -50%); }
to { opacity: 0; transform: translate(-50%, calc(-50% - 60px)); }
}

@keyframes beam {
0% { opacity: 0; clip-path: inset(0 0 100% 0); }
30% { opacity: 1; clip-path: inset(0 0 0 0); }
100% { opacity: 0; clip-path: inset(100% 0 0 0); }
}

@keyframes banner {
0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-8deg); }
15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
25% { transform: translate(-50%, -50%) scale(1) rotate(0); }
85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); }
}

@keyframes pay-spin {
to { transform: rotate(360deg); }
}

@keyframes pay-pop {
0% { transform: scale(0.4); opacity: 0; }
70% { transform: scale(1.1); opacity: 1; }
100% { transform: scale(1); }
}

@keyframes pay-side {
50% { transform: translateX(-6px); }
}

@keyframes pay-nudge {
25% { transform: translateX(-6px); }
75% { transform: translateX(6px); }
}

@keyframes auto-glow {
to { box-shadow: 0 0 0 1px #2a2a30, inset 0 -4px 8px rgba(40, 0, 6, 0.6), 0 6px 0 #3a0410, 0 8px 18px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 59, 78, 0.95); }
}

@keyframes big-win-step {
0% { scale: 0.3; rotate: -6deg; }
60% { scale: 1.15; rotate: 2deg; }
100% { scale: 1; rotate: 0deg; }
}

@keyframes big-win-shake {
25% { transform: translateX(-6px) rotate(-1deg); }
75% { transform: translateX(6px) rotate(1deg); }
}

@keyframes big-win-vignette {
0%, 100% { opacity: 0.4; }
18% { opacity: 1; }
}

@keyframes coin {
0% { opacity: 1; transform: translate(-50%, -50%) rotateY(0); }
35% { transform: translate(calc(-50% + var(--dx) * 0.5), calc(-50% + var(--up))) rotateY(calc(var(--spin) * 0.4)); }
100% { opacity: 0.9; transform: translate(calc(-50% + var(--dx)), calc(-50% + 70vh)) rotateY(var(--spin)); }
}

@media (prefers-reduced-motion: reduce) {
.sting {
display: none;
}
.spin-button.pulse,
.float-text,
.spin-count.hot,
.spin-count.firing,
.spin-count.launch::after,
.badge,
.grid.tease,
.cell.win,
.cell.win::after,
.win-plate.show,
.payline,
.deal-chest.popping,
.deal-offer.show,
.slot.landed,
.meter.lit,
.meter.paying,
.plaque.paying,
.pay-confirm.nudge .pay-ready,
.pay-check,
.pay.ready .pay-side,
.big-win-title.step,
.big-win-amount.landed,
.big-win.pulsing .big-win-vignette,
.pearl-button.landed .pearl,
.pearl-open.burst .pearl-open-star,
.pearl-open.burst .pearl-open-flash,
.pearl-prize.tile.flying,
.pearl-prize,
.wheel-prize:not(:empty),
.level-up-title {
animation-duration: 1ms;
animation-iteration-count: 1;
}
.deal-mine.landed,
.deal.intro .deal-chest,
.deal.intro .deal-pill,
.deal-intro.show .intro-dragon,
.chests.full,
.deal-panel::before,
.deal-panel::after,
.banner.show::before,
.spin-count.hot::before,
.big-win-rays,
.big-win-mark,
.big-win:is(.mega, .super) .big-win-sign,
.spin-button.auto,
.reel-shine,
.pearl-tile:not(:disabled) .pearl,
.pearl-feature .pearl,
.planet-tip-slot.best .pearl,
.pearl-open-rays,
.chamber-beam.left,
.chamber-beam.right,
.pearl-open.charging .pearl.big,
.pearl-open.surging .pearl.big,
.pearl-open-ring i,
.pearl-reward-note,
.pearl-open-star::before,
.pearl-open-star::after,
.pearl-open-space::before,
.pearl-open-space::after,
.pearl-space-meteor,
.wheel-button.ready,
.wheel-button.ready .wheel-icon,
.lantern-button.ready .lantern-icon,
.lantern-respins.reset,
.lantern-reels.landed .lantern-centre,
.lantern-cell.locked,
.lantern-cell.collect,
.lantern-centre.collect,
.wheel-lamps,
.wheel.spinning .wheel-lights svg {
animation: none;
transform: none;
}
.pearl-space-meteor {
display: none;
}
.wheel.won .wheel-hit,
.wheel.boosted .wheel-ring-hit,
.wheel.open,
.wheel.open .wheel-panel,
.wheel-go.locked::before,
.wheel-go.locked::after {
animation: none;
}
.wheel-bolt,
.wheel-pointer-chevrons,
.wheel-go,
.wheel-day-plate,
.wheel.cosmic .wheel-day-plate,
.wheel.cosmic .wheel-ladder,
.wheel.cosmic .wheel-offer-note,
.wheel.offering .wheel-result,
.wheel.offering .wheel-offer,
.wheel-core,
.wheel-ring,
.wheel-ring-pointer,
.wheel-ladder,
.wheel-offer-note,
.wheel-result,
.wheel-offer {
transition: none;
}
.wheel .wheel-arcs,
.wheel .wheel-ring-arcs {
display: none;
}
.deal-doors.closed .door {
animation: door-close 1ms forwards;
}
.deal.offering .deal-dragon-art,
.deal.offering .deal-dragon-scroll,
.deal-flash.show {
animation: none;
opacity: 1;
}
.deal-flash.show::before,
.deal-flash.show .deal-flash-name,
.deal-flash.show .deal-bolt,
.deal-board.boosted .deal-pill,
.deal-dragon.boosted .deal-dragon-x {
animation: none;
}
.deal-chests {
transition: none;
}
.deal-round.show {
animation: deal-round-still 1800ms linear forwards;
}
.banner.show {
animation: none;
opacity: 1;
transform: translate(-50%, -50%);
}
.winner.show {
animation: none;
opacity: 1;
transform: translateY(-50%);
}
.winner.show.hide {
animation: none;
opacity: 0;
}
.win-plate.show {
animation: none;
opacity: 1;
transform: translate(-50%, 0);
}
.tower-inner:has(.meter.top.paying) .guardian {
animation: none;
filter: brightness(1.25) drop-shadow(0 0 2px #fff2b0) drop-shadow(0 0 18px rgba(255, 211, 77, 0.95)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}
}


/* Source: css/recovery-prompts.css */

.no-coins-panel {
align-items: stretch;
text-align: center;
}

.no-coins-text {
margin: 0 0 10px;
color: var(--text);
font-size: 0.92rem;
line-height: 1.35;
}

.no-coins-links {
flex: none;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.no-coins-links .sheet-close {
width: 100%;
min-height: 44px;
margin-top: 0;
border: 0;
border-radius: var(--radius);
background: none;
box-shadow: none;
color: color-mix(in srgb, var(--text) 75%, var(--muted));
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.08em;
text-shadow: none;
}

.no-coins-shop {
min-height: 52px;
border-radius: var(--radius);
border: 2px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 48%, transparent 52%),
linear-gradient(180deg, var(--violet), var(--navy) 60%, var(--navy-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--navy-deep), 0 4px 8px rgba(0, 0, 0, 0.5);
color: var(--text);
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.06em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.no-coins-shop:active {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 var(--navy-deep);
}

.low-coins-art {
display: none;
}

#no-coins[data-kind="short-bet"] .no-coins-panel {
max-width: 340px;
padding: 38px 20px 22px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
linear-gradient(180deg, var(--violet), var(--sheet-top) 58%, var(--sheet-base));
box-shadow: inset 0 1px 0 rgba(255, 242, 175, 0.35), 0 0 0 2px var(--gold-deep), 0 12px 30px rgba(0, 0, 0, 0.6);
}

#no-coins[data-kind="short-bet"] .sheet-title {
top: -22px;
min-width: calc(100% - 30px);
padding: 8px 28px;
font-size: clamp(1.4rem, 6.7vw, 1.8rem);
line-height: 1.1;
letter-spacing: 0.045em;
background-image: var(--gold-bevel), linear-gradient(180deg, var(--lacquer-light), var(--violet) 50%, var(--red-dark));
}

#no-coins[data-kind="short-bet"] .sheet-content {
align-items: center;
}

#no-coins[data-kind="short-bet"] .low-coins-art:not([hidden]) {
display: block;
width: 224px;
height: 164px;
max-width: 100%;
margin: -10px auto 6px;
background: url("../art/offers/coin-stacks.webp") -224px -44px / 672px 448px no-repeat;
filter: drop-shadow(0 0 14px rgba(255, 212, 90, 0.4));
pointer-events: none;
}

#no-coins[data-kind="short-bet"] .no-coins-text {
max-width: 270px;
margin: 0 0 20px;
}

#no-coins[data-kind="short-bet"] #refill {
display: none;
}

#no-coins[data-kind="short-bet"] .no-coins-links {
display: flex;
justify-content: center;
}

#no-coins[data-kind="short-bet"] .no-coins-shop {
width: min(100%, 216px);
min-height: 58px;
border: 3px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 46%),
linear-gradient(180deg, var(--go-light), var(--go) 52%, var(--go-dark));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold-deep), 0 4px 0 var(--go-dark);
color: var(--text);
font-size: 1.6rem;
letter-spacing: 0.08em;
text-shadow: 0 2px 0 var(--go-dark);
}

#no-coins[data-kind="short-bet"] .no-coins-shop:active {
box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold-deep), 0 2px 0 var(--go-dark);
}

#no-coins[data-kind="short-bet"] .no-coins-decline {
position: absolute;
top: -23px;
right: -10px;
z-index: 1;
display: grid;
place-items: center;
width: 46px;
height: 46px;
min-height: 46px;
padding: 0;
border: 2px solid var(--gold);
border-radius: 50%;
background: linear-gradient(180deg, var(--lacquer-light), var(--violet) 48%, var(--red-dark));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px var(--gold-deep), 0 3px 0 var(--red-dark);
color: var(--text);
font-size: 1.4rem;
line-height: 1;
letter-spacing: 0;
text-shadow: 0 1px 0 var(--red-dark);
}


.streak-panel {
align-items: center;
text-align: center;
}

.streak-day {
margin: 8px 0 6px;
padding: 0 12px;
font-family: var(--display);
font-size: 3.2rem;
line-height: 1.05;
letter-spacing: 0.04em;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(255, 212, 90, 0.35));
}

.streak-meter {
display: flex;
justify-content: center;
gap: 3px;
margin: 0 0 6px;
}

.streak-pip {
position: relative;
flex: none;
width: 12px;
height: 12px;
border-radius: 3px;
background: var(--sheet-base);
box-shadow: inset 0 0 0 1px rgba(255, 212, 90, 0.25);
}

.streak-pip.lit {
background: var(--gold-bevel);
box-shadow: inset 0 0 0 1px var(--gold-deep);
}

.streak-pip.break {
box-shadow: inset 0 0 0 1px var(--ruby);
}

.streak-pip.break::after {
content: "";
position: absolute;
left: 50%;
top: -3px;
width: 9px;
height: 18px;
margin-left: -4.5px;
background: var(--ruby);
clip-path: polygon(45% 0, 100% 0, 62% 42%, 95% 42%, 12% 100%, 40% 56%, 5% 56%);
transform: rotate(-20deg);
}

.streak-sheet.open .streak-pip.break::after {
animation: streak-crack 300ms 240ms ease-out both;
}

@keyframes streak-crack {
from { transform: rotate(-20deg) scale(0); }
to { transform: rotate(-20deg) scale(1); }
}

.streak-next {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 40px;
margin: 2px 0 8px;
}

.streak-next .pearl {
width: 32px;
height: 32px;
font-size: 32px;
}

.streak-next .pearl + .pearl {
margin-left: -6px;
}

.streak-next-day {
margin-left: 2px;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.6rem;
line-height: 1.1;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.streak-note {
max-width: 300px;
margin: 0 0 14px;
color: var(--text);
font-size: 0.92rem;
line-height: 1.35;
}

.streak-restore {
flex: none;
font-size: 1.45rem;
}

.streak-panel .sheet-close,
.streak-panel .sheet-close:active {
min-height: 44px;
margin-top: 8px;
border: 0;
background: none;
box-shadow: none;
color: var(--muted);
font-size: 1rem;
letter-spacing: 0.08em;
text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
.streak-sheet.open .streak-pip.break::after {
animation: none;
}
}

/* Source: css/orientation-responsive.css */

.intro-sheet.open {
background: rgba(8, 0, 20, 0.82);
}

.intro-panel {
align-items: center;
text-align: center;
}

.intro-coins {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
margin: 6px 0 8px;
}

.credits-coin.intro-coin {
width: 36px;
height: 36px;
}

.intro-amount {
min-width: 0;
max-width: calc(100% - 46px);
overflow: hidden;
padding: 0 4px;
font-family: var(--display);
font-size: 2.8rem;
line-height: calc(2.8rem * 1.05);
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(255, 212, 90, 0.35));
}

.intro-ledger {
display: flex;
flex-direction: column;
width: min(100%, 260px);
margin: 0 0 10px;
border-bottom: 1px solid var(--hairline);
}

.intro-line {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 6px 2px;
border-top: 1px solid var(--hairline);
}

.intro-label {
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

.intro-value {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.2rem;
line-height: 1.1;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.intro-note {
max-width: 300px;
margin: 0 0 14px;
color: var(--text);
font-size: 0.92rem;
line-height: 1.35;
}

.deal-yes.intro-play {
flex: none;
width: min(100%, 240px);
padding: 0 12px;
}

.intro-panel .sheet-close,
.intro-panel .sheet-close:active {
min-height: 44px;
margin-top: 8px;
border: 0;
background: none;
box-shadow: none;
color: var(--muted);
font-size: 1rem;
letter-spacing: 0.08em;
text-shadow: none;
}

.intro-coach {
position: fixed;
left: 16px;
right: 16px;
bottom: 0;
z-index: 24;
max-width: 360px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 8px;
padding: 8px 6px 8px 14px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--sheet-top), var(--sheet-base));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 8px 20px rgba(0, 0, 0, 0.6);
pointer-events: none;
opacity: 0;
transform: scale(0.94);
transform-origin: var(--coach-point, 50%) 100%;
transition: opacity 200ms ease, transform 220ms ease-out;
}

.intro-coach.show {
opacity: 1;
transform: none;
}

.intro-coach[hidden] {
display: none;
}

.intro-coach::after {
content: "";
position: absolute;
left: var(--coach-point, 50%);
bottom: -9px;
width: 14px;
height: 14px;
margin-left: -7px;
background: var(--sheet-base);
border-right: 2px solid var(--gold);
border-bottom: 2px solid var(--gold);
transform: rotate(45deg);
}

.intro-coach-text {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
margin: 0;
text-align: left;
}

.intro-coach-title {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.1rem;
line-height: 1.1;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.intro-coach-note {
color: var(--text);
font-size: 0.8rem;
line-height: 1.3;
}

.intro-coach-done {
flex: none;
min-width: 44px;
min-height: 44px;
padding: 0 8px;
border: 0;
background: none;
color: var(--muted);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.08em;
pointer-events: auto;
touch-action: manipulation;
}

.intro-coach[data-tip="home"] .intro-coach-done,
.intro-coach[data-tip="bonuses"] .intro-coach-done {
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}

.intro-coach-said {
position: fixed;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.per-spin.intro-free {
padding: 0 5px;
border-radius: 4px;
background: var(--plate-fill);
box-shadow: inset 0 0 0 1px var(--gold-deep);
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}

@media (prefers-reduced-motion: reduce) {
.intro-coach {
transition: none;
}
}

.app > .topbar .currency,
.bet-label, .win-label {
font-family: var(--display);
font-weight: 400;
color: var(--text);
text-shadow: 0 1px 0 #000;
}
.app > .topbar .currency {
font-size: var(--type-meter);
color: var(--gold);
}
.bet-label, .win-label { font-size: var(--type-label); line-height: 11px; }
.tower-sign > * { color: var(--text); white-space: normal; }
.spin-count-label, .spin-count-of { color: var(--text); text-shadow: 0 1px 0 #000; }
.streak-chip::before {
content: "";
position: absolute;
left: 6px;
top: 2px;
width: 13px;
height: 16px;
background: url("../art/drawn/streak-flame.svg") center / contain no-repeat;
}
.big-win-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.deal-pill, .deal-pill:nth-child(n + 13), .deal-pill.high, .deal-pill.out {
--deal-prize-art: url("../art/ui/prize-plaque-green.webp");
align-self: center;
height: min(100%, 34px);
padding: 1px 4px 0;
background:
var(--deal-prize-shade) center / calc(100% - 4px) calc(100% - 4px) no-repeat,
var(--deal-prize-art) center / 100% 100% no-repeat;
border: 0;
border-radius: 0;
box-shadow: none;
color: #fff9cb;
font-family: var(--display);
font-weight: 400;
font-size: 19px;
line-height: 1;
text-shadow: 0 1px 1px #000, 0 0 2px #000;
}
.deal-pill:nth-child(n + 13) { --deal-prize-art: url("../art/ui/prize-plaque-blue.webp"); }
.deal-pill.high { --deal-prize-art: url("../art/ui/prize-plaque-magenta.webp"); color: #fff0fd; }
.deal-pill.out {
--deal-prize-art: url("../art/ui/prize-plaque-spent.webp");
background-color: var(--deal-label-bg);
border-radius: 4px;
color: #c6bbcf;
}
.deal-board.boosted .deal-pill { box-shadow: none; }
.deal-prompt { color: var(--text); font-weight: 400; text-shadow: 0 1px 0 #000; }
.deal-chest-label { border-radius: 4px; font-size: 0.7rem; font-weight: 400; }
.reward-collect { width: min(240px, 100%); align-self: center; background: var(--gold-bevel); color: var(--gold-ink); text-shadow: none; }
.deal-yes, .deal-no { max-width: 240px; font-weight: 400; }
.deal-mine { box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.5); }
.deal-mine .chest { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
@media (max-height: 800px) {
.deal-panel { gap: 3px; }
.deal-pill, .deal-pill:nth-child(n + 13), .deal-pill.high, .deal-pill.out { font-size: 17px; }
.deal-title { padding-top: 0; padding-bottom: 0; font-size: 1.3rem; }
.deal-base { padding-top: 0; padding-bottom: 0; }
.deal-prompt { font-size: 0.85rem; }
.deal-mine { padding: 2px 12px; }
.deal-mine .chest { width: 34px; height: 25px; }
.deal-bottom { min-height: 76px; }
.deal-chests { grid-template-rows: repeat(8, minmax(44px, 1fr)); }
.deal-chest { min-height: 44px; }
}

.tower-base { flex: none; }
.tower .plaque-name, .tower .plaque-amount, .tower .meter-name, .tower .slot.filled {
font-size: max(0.7rem, calc(11.2px * var(--tower-type-scale, 1)));
}
.tower .meter-slots { border-radius: 8px; }
.app:not(.drums):not(.koi):not(.stampede):not(.express) {
--cell: min(calc((min(100vw, 520px) - 32px - 34px - 24px) / 5), max(var(--nebula-min-cell, 48px), calc((var(--app-h, var(--cabinet-height)) - var(--safe-top) - var(--safe-bottom) - var(--nebula-chrome, 422px)) / 3)));
}
.tower { padding-bottom: 4px; }
.tower .meters { gap: 2px; margin-top: 0; padding-bottom: 0; }
.tower .jackpots .plaque { padding: calc(4px * var(--tower-type-scale, 1)) 7px calc(5px * var(--tower-type-scale, 1)); }
.tower .meter { padding-top: 0; }
.tower .meter-slots { padding: 1px 3px; gap: 3px; }
.tower .slot { flex: none; width: 38.4px; height: 38.4px; border-width: 2px; }
.tower .meter-label { padding: 1px 9px; }
.tower .meter.top .meter-label { padding: 1px 9px; }
.tower-base {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
margin-top: 3px;
}
.tower-base .spin-count { flex-direction: row; gap: 3px; min-width: 64px; padding: 2px 4px; }
.tower-base .spin-count :is(.spin-count-label, .spin-count-of, strong) {
font-size: 0.75rem;
letter-spacing: 0.03em;
}
@media (max-width: 381px) {
.tower-base .spin-count { gap: 2px; padding: 2px 2px; }
}
.tower-base .chests { padding: 2px 4px; }
.tower-base .tower-sign > * { font-size: 0.7rem; }
.tower-base .chests-title { font-size: 0.7rem; letter-spacing: 0.03em; }
@media (max-height: 700px) {
.tower .slot { width: 29.4px; height: 29.4px; }
.tower .meter-slots { padding-block: 0; }
.tower .jackpots .plaque { padding-block: calc(2px * var(--tower-type-scale, 1)); }
}

.rush-button-mark { width: 22px; height: 22px; }
.per-spin { font-family: var(--display); font-size: 0.7rem; font-weight: 400; color: var(--text); text-shadow: 0 1px 0 #000; }
.badge { font-family: var(--display); font-weight: 400; border-color: var(--gold-deep); background: var(--ruby); }
.tower .slot.filled { font-size: calc(12px * var(--tower-type-scale, 1)); }
.tower .slot.jp { font-size: max(0.7rem, calc(11.2px * var(--tower-type-scale, 1))); }

.tower .plaque-amount { font-size: max(var(--type-readout), calc(11.2px * var(--tower-type-scale, 1))); }
.tower .jackpot.minor .plaque-amount, .tower .jackpot.mini .plaque-amount { font-size: max(0.88rem, calc(11.2px * var(--tower-type-scale, 1))); }
.tower .meter-name { font-size: max(0.8rem, calc(11.2px * var(--tower-type-scale, 1))); }
.tower .meter.top .meter-name { font-size: max(0.86rem, calc(11.2px * var(--tower-type-scale, 1))); }
.bet-step, .controls .deck-info, .shop-button {
font-family: var(--display);
font-weight: 400;
font-style: normal;
color: var(--text);
text-shadow: 0 1px 0 #000;
}
.app .level-text {
font-size: 0.75rem;
font-weight: 400;
color: var(--text);
-webkit-text-stroke: 2px var(--bg-deep);
paint-order: stroke fill;
text-shadow: 0 1px 0 var(--bg-deep);
}

@media (max-height: 800px) {
.deal-bottom:not(:has(.deal-offer.show)):not(:has(.reward-collect.show)) { min-height: 16px; }
#deal:has(.deal-prompt.result) .deal-bottom { min-height: 0; }
#deal.final-choice .deal-chests { grid-template-rows: repeat(8, minmax(0, 1fr)); padding: 2px 0; }
#deal.final-choice .deal-chest { min-height: 0; }
#deal.final-choice .deal-chest.opened .deal-chest-label { font-size: 14px; }
#deal.final-choice .deal-bottom { min-height: 0; }
#deal.final-choice .deal-offer.final-choice { padding: 5px 8px 6px; }
#deal.final-choice .deal-offer.final-choice :is(.deal-yes, .deal-no) { min-height: 46px; font-size: 1.15rem; }
}

.intro-dragon-art { display: block; width: min(42vw, 200px); height: min(42vw, 200px); }
.intro-dragon-art .empress-crop { width: 100%; height: 100%; }
@media (max-width: 350px) {
.tower-base { display: grid; grid-template-columns: minmax(0, 1fr) 78px; }
.tower-base .tower-sign { grid-column: 1 / -1; min-height: 24px; }
.tower-base .chests { min-height: 30px; }
}

#app, #lobby {
--connection-space: var(--connection-notice-height, 0px);
inset-block-start: var(--connection-space);
}

#app { --cabinet-height: calc(100dvh - var(--connection-space)); }

#connection-status {
position: fixed;
z-index: 1000;
top: var(--safe-top);
left: var(--safe-left);
right: var(--safe-right);
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2px 12px;
padding-inline: 6px;
color: var(--gold-light);
background: var(--bg-deep);
font: 12px/14px var(--display);
text-align: center;
pointer-events: none;
}

#connection-status:has(> :not([hidden])) { padding-block: 2px; }
#connection-status > span { overflow-wrap: anywhere; }

#save-session, #save-recovery {
position: fixed;
inset: var(--safe-top) 0 var(--safe-bottom);
margin: auto;
width: min(340px, calc(100vw - 40px));
max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 40px);
box-sizing: border-box;
padding: 28px 22px;
border: 2px solid var(--gold-dark);
border-radius: var(--radius);
color: var(--text);
background: radial-gradient(ellipse at top, var(--lacquer), var(--bg-deep));
text-align: center;
overflow: auto;
}
#save-session::backdrop, #save-recovery::backdrop { background: rgba(8, 4, 19, 0.94); }
#save-session.before-start::backdrop { background: #080413; }
#save-session[open] {
animation: destination-panel-scale 250ms ease-out backwards,
destination-panel-fade 200ms ease backwards;
}
@media (prefers-reduced-motion: reduce) {
#save-session[open] { animation: none; }
}
#save-session-title, #save-recovery-title {
margin: 0 0 12px;
font-family: var(--display);
font-size: 2.2rem;
letter-spacing: 0.05em;
}
#save-session-title {
color: transparent;
background: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}
#save-session-note, #save-recovery-note { margin: 0 0 24px; font: 400 0.9rem/1.5 var(--body); }
#save-session-resume, .save-recovery-actions button {
min-height: 48px;
width: min(240px, 100%);
border: 2px solid var(--gold-dark);
border-radius: var(--radius);
box-shadow: 0 4px 0 var(--gold-deep);
background: linear-gradient(180deg, var(--gold-light), var(--gold) 83%, var(--gold-dark));
color: var(--gold-ink);
font: 1.4rem var(--display);
letter-spacing: 0.04em;
}
#save-session-resume:disabled { opacity: 0.65; }
#save-recovery { width: min(640px, calc(100vw - 40px)); padding: 20px 22px; }
#save-recovery-title { color: var(--text); font-size: 1.9rem; text-shadow: 0 1px 0 #000; }
#save-recovery-note { margin-bottom: 12px; }
#save-recovery-backup {
margin: 0 0 16px;
color: var(--gold-light);
font: 1.15rem var(--display);
letter-spacing: 0.04em;
text-transform: uppercase;
font-variant-numeric: tabular-nums;
}
.save-recovery-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.save-recovery-actions button { width: auto; min-width: 150px; padding: 0 16px; font-size: 1.25rem; letter-spacing: 0.08em; }
.save-recovery-actions button[hidden] { display: none; }
.save-recovery-actions button:disabled { opacity: 0.65; }
#save-recovery-restore:not([hidden]) ~ #save-recovery-reload {
border-color: var(--violet);
box-shadow: 0 4px 0 var(--violet-deep);
background: linear-gradient(var(--lacquer-light), var(--violet));
color: var(--text);
}
.save-recovery-actions #save-recovery-fresh {
min-width: 44px;
border: 0;
box-shadow: none;
background: none;
color: var(--muted);
}

/* Source: css/pearl-ledger.css */
.pearl-prize-list {
display: flex;
flex: 0 1 auto;
flex-direction: column;
gap: 5px;
min-height: 0;
margin-top: 8px;
overflow-y: auto;
overscroll-behavior: contain;
}

.pearl-prize.each {
display: grid;
flex: none;
grid-template-columns: 22px minmax(0, 1fr) auto;
align-items: center;
gap: 2px 8px;
padding: 4px 10px;
font-size: 0.85rem;
}

.pearl-open .pearl-prize.each + .pearl-prize.each {
border-top: 1px solid var(--hairline);
}

.pearl-prize.each .pearl {
flex: none;
width: 22px;
height: 22px;
}

.pearl-prize.each .pearl-prize-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.pearl-prize.each .pearl-prize-amount {
justify-self: end;
font-family: var(--body);
font-weight: 600;
line-height: 1.2;
}

.pearl-prize-tags {
display: flex;
flex-wrap: wrap;
grid-column: 2 / -1;
justify-content: flex-end;
gap: 2px 12px;
}

.pearl-prize-tag {
display: inline-flex;
align-items: center;
gap: 3px;
color: var(--booster-cyan);
font-family: var(--display);
font-weight: 900;
font-variant-numeric: tabular-nums;
line-height: 1.2;
white-space: nowrap;
}

.pearl-prize-tag .booster-mark {
width: 16px;
height: 16px;
}

/* Source: css/paytable.css */

.paytable-panel {
height: 86vh;
height: 86dvh;
max-height: var(--popup-height);
padding-left: 0;
padding-right: 0;
--cell: 34px;
}

.paytable.sheet.open {
background-color: rgba(8, 0, 20, 0.85);
}


.pt-tabs {
position: relative;
flex: none;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 4px;
margin: 0 10px 8px;
padding: 3px;
min-height: 66px;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scrollbar-width: none;
}

.pt-tabs::-webkit-scrollbar { display: none; }

.pt-tabs:has(> .pt-tab:nth-child(6)) {
gap: 2px;
margin-left: 4px;
margin-right: 4px;
}

.pt-tab {
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
min-height: 60px;
min-width: 44px;
padding: 4px 4px 3px;
border: 1px solid var(--gold-deep);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
box-shadow: 0 3px 0 var(--navy-deep), inset 0 1px 0 rgba(255, 255, 255, 0.15);
color: var(--text);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.03em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.pt-tab-icon {
font-size: 1.2rem;
line-height: 1;
}

.pt-mark { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: middle; font-family: var(--display); font-size: 1.2rem; text-align: center; color: var(--gold-light); text-shadow: 0 1px 0 #000; }

.pt-tab.on {
border-color: var(--gold);
background: linear-gradient(180deg, var(--violet), var(--navy-deep));
color: var(--gold-light);
}

.pt-tab.on .pt-tab-icon {
filter: none;
}


.pt-track {
flex: 1 1 auto;
min-height: 0;
display: flex;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
overscroll-behavior-x: contain;
scrollbar-width: none;
touch-action: pan-x pan-y;
}

.pt-track::-webkit-scrollbar {
display: none;
}

.pt-page {
flex: 0 0 100%;
min-width: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
scroll-snap-align: start;
scroll-snap-stop: always;
padding: 2px 12px 18px;
mask-image: linear-gradient(#000 calc(100% - 14px), transparent);
}

.pt-heading {
margin: 10px 0 6px;
font-family: var(--display);
font-size: 1.05rem;
letter-spacing: 0.07em;
text-align: center;
text-transform: uppercase;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.pt-page > .pt-heading:first-child {
margin-top: 2px;
}

.pt-note {
margin: 6px 2px 0;
color: var(--muted);
font-size: 0.8125rem;
line-height: 1.35;
text-align: start;
}

.pt-small {
color: var(--muted);
font-size: 0.8125rem;
}


.pt-table {
display: flex;
flex-direction: column;
gap: 0;
}

.pt-row {
display: grid;
grid-template-columns: 52px 1fr 1fr 1fr;
align-items: center;
justify-items: center;
gap: 4px;
min-height: 48px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.03em;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.pt-row.pt-head {
min-height: 0;
padding: 4px 0;
color: var(--muted);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.pt-row.pt-head > span:not(:first-child) { justify-self: end; }

.pt-pays {
display: grid;
grid-template-columns: 36px repeat(3, minmax(0, auto));
column-gap: 6px;
}

.pt-pays.pt-dpays {
grid-template-columns: 36px repeat(4, minmax(0, auto));
}

.pt-pays .pt-row {
grid-column: 1 / -1;
grid-template-columns: subgrid;
gap: inherit;
}

.pt-pays .pt-none { justify-self: end; }

.pt-sym .cell {
margin: 0 auto;
}

.pt-bets {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
gap: 4px;
}

.pt-bet {
display: flex;
flex-direction: column;
align-items: center;
padding: 5px 2px;
border-radius: 4px;
background: var(--navy-deep);
border: 1px solid var(--gold-deep);
color: var(--muted);
font-family: var(--display);
font-size: 0.8rem;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.pt-bet small {
font-size: 0.7rem;
letter-spacing: 0.04em;
}

.pt-bet.on {
border-color: var(--gold);
color: var(--gold-light);
}

.pt-lines {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 10px;
}

.pt-line {
display: grid;
grid-template-columns: repeat(5, 9px);
gap: 2px;
padding: 3px;
}

.pt-line i {
height: 9px;
border-radius: 2px;
background: var(--navy);
}

.pt-line i.lit {
background: var(--gold);
}


.pt-jackpots {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px 10px;
}

.paytable .plaque {
padding: 6px;
}

.paytable .plaque-name { font-size: 0.7rem; }
.paytable .plaque-amount { background-image: none; color: var(--gold-light); filter: none; text-shadow: 0 1px 0 #000; }
.paytable .pt-page .cell.wild .wild-tag { font-size: 0.7rem; font-weight: 400; color: var(--text); background: linear-gradient(180deg, var(--violet), var(--navy-deep)); box-shadow: 0 0 0 1px var(--gold-deep); text-shadow: 0 1px 0 #000; }
.paytable .cell.orb { font-size: 0.7rem; font-weight: 400; color: var(--text); }
.paytable .cell.orb.jp { font-size: 0.7rem; }
.paytable .koi-pearl-value { font-size: 0.7rem; font-weight: 400; }
.paytable .cell.koi-pearl.jp .koi-pearl-value { font-size: 0.7rem; }

.paytable .pt-koi-jackpots .pt-koi-jackpot {
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--navy-deep);
}

.paytable .pt-koi-jackpot-name { font-weight: 400; text-shadow: var(--jp-outline); }
.paytable .pt-koi-jackpot-amount { color: var(--gold-light); font-weight: 400; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }

.pt-meters .pt-row {
grid-template-columns: 74px 1fr auto;
justify-items: start;
padding-right: 10px;
}

.pt-meter-name {
justify-self: stretch;
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-align: center;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.pt-slots {
display: flex;
gap: 3px;
--cell: 26px;
}

.pt-gems {
display: flex;
justify-content: center;
gap: 18px;
}

.pt-gem {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
--cell: 40px;
}

.pt-need {
color: var(--gold);
font-family: var(--display);
font-size: 0.95rem;
text-shadow: 0 1px 0 #000;
}

.pt-gem-prizes .pt-row {
grid-template-columns: 52px 1fr;
justify-items: start;
}

.pt-gem-prizes .pt-gem {
justify-self: center;
}

.pt-rule { font-family: var(--body); font-size: 0.8125rem; line-height: 1.35; color: var(--muted); text-shadow: none; letter-spacing: normal; }

.pt-gem small {
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
letter-spacing: 0.08em;
}


.pt-chest-line {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: var(--display);
font-size: 1.3rem;
color: var(--gold);
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.pt-chest-line strong { font-weight: 400; text-transform: uppercase; }

.pt-board {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 4px;
}

.pt-board .deal-pill {
min-height: 24px;
padding: 4px 0;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
color: var(--gold-light);
font-size: 0.85rem;
text-shadow: 0 1px 0 #000;
}

.pt-board .deal-pill.high { color: var(--neon-pink); }

.pt-rounds .pt-row,
.pt-rewards .pt-row {
grid-template-columns: 1fr 1fr 1.4fr;
}

.pt-rounds .pt-row { text-transform: uppercase; }
.pt-rounds .pt-row.pt-head > span { justify-self: center; }

.pt-boosts {
display: flex;
flex-direction: column;
gap: 4px;
}

.pt-boost {
display: flex;
flex-direction: column;
gap: 1px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
font-size: 0.8125rem;
line-height: 1.3;
}

.pt-boost strong {
color: var(--gold);
font-family: var(--display);
font-size: 0.9rem;
letter-spacing: 0.06em;
text-transform: uppercase;
font-weight: 400;
text-shadow: 0 1px 0 #000;
}


.pt-pearls .pt-row {
grid-template-columns: 60px minmax(0, 1fr) 62px 42px;
min-height: 46px;
}

.pt-pearls .pt-row.pt-head {
min-height: 0;
}

.pt-range > span {
display: inline-block;
max-width: 100%;
vertical-align: top;
}

.pt-pearl {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}

.pt-pearl .pearl {
width: 26px;
height: 26px;
}

.paytable .koi-pearl-orb { box-shadow: 0 0 0 2px var(--gold), 0 0 0 3.5px var(--gold-deep), inset 0 -3px 6px rgba(0, 0, 0, 0.5); }
.paytable .pt-page .cell.wild::before { box-shadow: 0 0 0 2px var(--gold-deep); }
.paytable .pt-page .cell.sym .sym-face { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }

.pt-pearl small {
font-size: 0.7rem;
text-transform: uppercase;
}


.paytable .league-tiers { column-gap: 8px; }
.paytable .league-rung-name { font-size: 0.8rem; }

.pt-move {
font-size: 0.75rem;
text-transform: uppercase;
}

.pt-rewards .up .pt-move { color: var(--jade); }
.pt-rewards .down .pt-move { color: var(--ruby); }

.pt-medals .pt-row {
grid-template-columns: 1fr 1.3fr 0.7fr 0.7fr;
min-height: 40px;
}

.pt-medals .pt-row > span:nth-child(-n + 2) { justify-self: start; }
.pt-medals .pt-row > span:nth-child(n + 3) { justify-self: end; }

.pt-medal {
display: inline-flex;
align-items: center;
gap: 8px;
}

.pt-medals .pt-row.on > span { color: var(--gold-light); }

.pt-perks .pt-row {
grid-template-columns: minmax(6rem, 1.6fr) repeat(4, minmax(0, 1fr));
min-height: 40px;
}

.pt-perks .pt-row > span:first-child { justify-self: start; }
.pt-perks .pt-row > span:not(:first-child) { justify-self: end; }
.pt-perks .pt-row.on > span { color: var(--gold-light); }

.paytable-button {
width: 44px;
height: 44px;
margin: 0 4px;
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--navy-deep);
font-family: var(--display);
font-size: 1rem;
color: var(--text);
text-shadow: 0 1px 0 #000;
line-height: 1;
}

.paytable-button:active {
transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
.pt-track { scroll-behavior: auto; }
}


.pt-none {
color: var(--muted);
}

.pt-mixed {
font-size: 1.3rem;
}

.pt-mixed .sym-img {
margin: 0 -0.06em;
}

.pt-paylines {
display: grid;
grid-template-columns: repeat(4, auto);
justify-content: center;
gap: 10px 12px;
}

.pt-payline {
display: flex;
align-items: center;
gap: 4px;
}

.pt-payline b {
min-width: 1.3em;
color: var(--gold);
font-family: var(--display);
font-size: 0.85rem;
text-align: right;
font-weight: 400;
text-shadow: 0 1px 0 #000;
}

.pt-scatters .pt-row {
grid-template-columns: 1fr 1fr 1fr;
}

.pt-reels,
.pt-games {
font-family: var(--display);
font-size: 1.1rem;
font-weight: 400;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.pt-games {
color: var(--gold);
}

.pt-scatter-faces {
display: flex;
justify-content: center;
gap: 12px;
margin-bottom: 6px;
}

.pt-free-x {
font-family: var(--display);
font-size: 1.6rem;
text-align: center;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.pt-tab-icon img { width: 22px; height: 22px; object-fit: contain; }
.pt-tab { font-weight: 400; color: var(--text); text-shadow: 0 1px 0 #000; }
.pt-row, .pt-boost {
border: 0;
border-bottom: 1px solid var(--hairline);
border-radius: 0;
background: none;
box-shadow: none;
}
.pt-meters .pt-top { box-shadow: none; }
.pt-row > span:not(.pt-small, .pt-rule, .pt-value), .pt-pearl small, .pt-move {
font-family: var(--display);
font-weight: 400;
color: var(--text);
text-shadow: 0 1px 0 #000;
}
.pt-pearl small, .pt-bet small { font-size: 0.7rem; }
.pt-small { font-size: 0.8rem; }
.paytable-button { width: 44px; height: 44px; font-family: var(--display); font-style: normal; font-weight: 400; }

.pt-boost strong { font-family: var(--display); font-weight: 400; color: var(--gold-light); text-shadow: 0 1px 0 #000; }
.pt-row > .pt-value {
max-width: 100%;
font-family: var(--body);
font-size: 0.8rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
letter-spacing: 0;
line-height: 1.2;
justify-self: end;
text-align: right;
overflow-wrap: anywhere;
}

.pt-row > .pt-coins { color: var(--gold-light); }

/* Source: css/lobby.css */

.lobby {
--lobby-ambient-gold-bright: #ffd45a8c;
--lobby-ambient-gold-faint: #ffd45a26;
--lobby-ambient-gold-beam: #ffd45a80;
--lobby-ambient-magenta-beam: #ef34c95c;
--lobby-crest-shine: #fff6d2;
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
gap: 12px;
max-width: 520px;
margin: 0 auto;
padding: max(6px, var(--safe-top)) 16px max(10px, calc(var(--safe-bottom) + 4px));

isolation: isolate;
overflow: hidden;
background:
radial-gradient(ellipse at 85% 20%, #b0178d66, transparent 42%),
radial-gradient(ellipse at 10% 55%, #5e2aca88, transparent 45%),
radial-gradient(ellipse at 60% 100%, #c1237b55, transparent 38%),
linear-gradient(160deg, #110729, #240a40 50%, #0b071a);
}

.lobby[hidden],
.app[hidden] {
display: none;
}

.lobby.enter {
animation: lobby-in 260ms ease-out;
}


.lobby-sign {
position: relative;
flex: none;
display: flex;
flex-direction: column;
align-items: center;

border: 3px solid var(--gold);

padding: 10px 20px 7px;
border-radius: 44% 44% 14px 14px / 20px 20px 14px 14px;
border-color: #f3c963;
background: var(--lobby-sign-fill);
box-shadow: 0 0 0 2px #5e3214, inset 0 0 0 2px #fff1ac33, 0 4px 0 #291121, 0 0 22px #b932aa55;
}

.lobby-sign::before,
.lobby-sign::after {
content: "✦";
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 1.7rem;
line-height: 1;
color: #ffe39a;
filter: drop-shadow(0 0 5px #ea74ff);
transform-origin: 50% 0;
}

.lobby-sign::before { left: 10px; }
.lobby-sign::after { right: 10px; animation-delay: -1.3s; }

.lobby-sign-title,
.game-card-name {
font-family: var(--display);
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));

}

.lobby-sign-title {
font-family: var(--title);
word-spacing: 0.12em;
line-height: 1.2;
white-space: nowrap;

font-size: 1.35rem;
letter-spacing: .025em;
}

.lobby-sign-sub {
margin-top: 3px;
color: var(--gold-light);
font-family: var(--display);
text-transform: uppercase;
font-size: .72rem;
letter-spacing: .12em;
}


.game-list {
flex: 1 1 auto;
min-height: 0;
display: flex;
align-items: center;
container-type: size;

margin: 0 -16px;
padding: 7px 16px 8px;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scroll-padding: 0 16px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;

gap: 12px;
padding-top: 9px;
padding-bottom: 12px;
}

.game-list::-webkit-scrollbar {
display: none;
}

.game-card {
appearance: none;
--cabinet-frame: url("../art/lobby/frames/vault.png");
--cabinet-tube: url("../art/lobby/frames/vault-tube.png");
--cabinet-edge: #e9bc62;
--cabinet-glass: #21082f;
--cabinet-metal: #d9a438;
--cabinet-highlight: #fff2bf;
--cabinet-shadow: #75401a;
--cabinet-gem: #c175fa;
--cabinet-glow: #b94df077;
--cabinet-light: #e9a7ff;
--cabinet-radius: 18px 18px 4px 4px;
--cabinet-ratio: 2.45;
--brand-top: 54%;
--brand-height: 43%;
--prize-top: #68224e;
--prize-bottom: #250920;
--prize-secondary: #352045;
position: relative;
flex: none;
display: flex;
flex-direction: column;
align-items: stretch;
width: calc((100% - 24px) / 2.12);
height: 100%;
max-height: calc((100cqw - 24px) / 2.12 * var(--cabinet-ratio));
min-height: 150px;
padding: 5px 4px 6px;
gap: 4px;
overflow: hidden;
scroll-snap-align: start;
container-type: size;
color: var(--text);
text-align: center;
border: 2px solid var(--cabinet-edge);
border-radius: var(--cabinet-radius);
background:
linear-gradient(90deg, #d6efff33, transparent 4%, transparent 96%, #d6efff33),
linear-gradient(var(--cabinet-shadow), var(--cabinet-glass) 28%);
box-shadow: inset 0 0 0 1px var(--cabinet-shadow), 0 0 6px var(--cabinet-glow),
0 5px 12px #000b, 0 0 14px var(--cabinet-glow);
}

.game-card.has-breakout.cabinet-cache-ready { box-shadow: none; }
.game-card-frame {
position: absolute;
inset: -2px;
z-index: 0;
pointer-events: none;
visibility: hidden;
}
.game-card.cabinet-cache-ready > .game-card-frame { visibility: visible; }
.game-card-frame::before {
content: "";
position: absolute;
inset: 0;
border: 2px solid transparent;
border-image: var(--cabinet-frame) 162 / 54px / 24px stretch;
}

.game-list > .game-card:first-child { margin-left: 4px; }
.game-list > .game-card:nth-last-child(1 of .game-card) { margin-right: 4px; }
.game-card:active:not(:disabled) { transform: scale(0.98); }
.game-card:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.game-card::before {
content: "";
position: absolute;
inset: 2px;
z-index: 3;
pointer-events: none;
border: 1px solid var(--cabinet-highlight);
border-radius: inherit;
opacity: .3;
}

.game-card-crown {
--crown-slot: clamp(13px, 6cqh, 23px);
position: relative;
z-index: 2;
display: block;
width: 100%;
height: calc(var(--crown-slot) * 1.35);
margin-bottom: calc(var(--crown-slot) * -.35);
flex: none;
object-fit: contain;
object-position: center bottom;
filter: drop-shadow(0 2px 1px #0009);
}

.game-card-prizes {
position: relative;
z-index: 2;
flex: none;
display: flex;
flex-direction: column;
gap: 3px;
padding: 0 1px 2px;
}
.game-card-jackpot {
flex: none;
display: flex;
flex-direction: column;
align-items: stretch;
padding: 3px 3px 4px;
border: 2px solid var(--cabinet-metal);
border-radius: 5px;
background: linear-gradient(var(--prize-top), var(--prize-bottom));
box-shadow: 0 0 0 1px var(--cabinet-shadow), inset 0 1px 0 var(--cabinet-highlight), 0 2px 4px #000b;
}
.game-card-jackpot-name {
color: var(--gold-light);
font-family: var(--display);
font-size: .69rem;
letter-spacing: .1em;
line-height: 1.1;
text-shadow: 0 1px 1px #000;
}
.game-card-jackpot-amount {
display: block;
overflow: hidden;
padding: 1px;
border-radius: 2px;
background: linear-gradient(#050104, #170408);
box-shadow: inset 0 0 0 1px #f8cb5544;
font-family: var(--display);
font-size: .88rem;
letter-spacing: .025em;
line-height: 1.05;
white-space: nowrap;
}
.game-card-jackpot.grand .game-card-jackpot-amount {
color: var(--jp-grand);
text-shadow: 0 1px 0 #000;
}
.game-card-jackpot.grand.live .game-card-jackpot-amount {
color: var(--lobby-grand-ink);
}
.game-card-jackpot.major { margin: 0 7px; background: linear-gradient(var(--prize-secondary), var(--prize-bottom)); }
.game-card-jackpot.major .game-card-jackpot-amount {
color: var(--jp-major);
font-size: .8rem;
text-shadow: 0 0 5px var(--jp-major);
}

.game-card-jackpot.live .game-card-jackpot-name { text-shadow: var(--jp-outline); }
.game-card-jackpot.grand.live .game-card-jackpot-name { color: var(--jp-grand); }
.game-card-jackpot.major.live .game-card-jackpot-name { color: var(--jp-major); }

.game-card-art {
position: relative;
flex: 1 1 auto;
display: block;
min-height: 0;
overflow: hidden;
border: 1px solid var(--cabinet-metal);
border-radius: 2px;
background: radial-gradient(ellipse at 50% 30%, var(--c-dark), var(--cabinet-glass) 85%);
box-shadow: inset 0 0 10px #000a;
}
.game-card-picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.game-card-art::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
box-shadow: inset 0 0 10px #0007;
}
.game-card-emoji {
display: grid;
place-items: center;
height: 100%;
font-size: min(30cqh, 80cqw);
line-height: 1;
}
.game-card-brand {
position: absolute;
top: var(--brand-top);
left: 0;
right: 0;
height: var(--brand-height);
z-index: 1;
filter: drop-shadow(0 2px 1px #000b);
}
.game-card-name {
position: absolute;
z-index: 1;
top: 0;
left: 0;
right: 0;
bottom: max(23%, 22px);
font-family: var(--title);
text-transform: uppercase;
filter: none;
}
.game-card-name::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(ellipse, var(--logo-glow, #763f9766), transparent 70%);
z-index: -1;
}
.game-card-name svg { display: block; width: 100%; height: 100%; overflow: visible; }
.game-card-title-line { font-size: 76px; font-weight: 900; }
.game-card-title-line.key-word { font-size: 99px; }
.game-logo-depth { stroke: var(--logo-depth, #23122e); stroke-width: 18px; stroke-linejoin: round; transform: translateY(6px); }
.game-logo-outer { stroke: var(--logo-edge, #e8c677); stroke-width: 15px; stroke-linejoin: round; }
.game-logo-stroke { stroke: var(--logo-stroke, #492159); stroke-width: 10px; stroke-linejoin: round; }
.game-logo-bevel { stroke: var(--logo-bevel, #fff4bb); stroke-width: 2px; transform: translateY(-1px); }
.game-card-name .game-logo-sparks { position: absolute; inset: 0; display: none; }

.game-card[data-logo="metallic"] {
--logo-glow: #a85aca44;
--logo-depth: #1c1024;
--logo-edge: #f2d17e;
--logo-stroke: #25132d;
--logo-bevel: #fff8d4;
}
.game-card[data-logo="metallic"] .game-logo-stroke { stroke-width: 12px; }
.game-card[data-logo="metallic"] .game-logo-outer { stroke-linejoin: bevel; }
.game-card[data-logo="electric"] { --logo-glow: #ff891466; --logo-depth: #311006; --logo-edge: #ffe898; --logo-stroke: #8a2507; --logo-bevel: #ffffb4; }
.game-card[data-logo="electric"] .game-card-name { font-family: var(--display); font-style: oblique; }
.game-card[data-logo="electric"] :is(.game-card-name > svg:first-child, .game-logo-sheen > svg) {
height: 92%;
}
.game-card[data-logo="electric"] .game-logo-stroke { stroke-linejoin: miter; }
.game-card[data-logo="electric"] .game-logo-sparks { display: block; }
.game-card[data-logo="electric"] .game-logo-spark { fill: #fff18e; stroke: #8e210d; stroke-width: 3px; }
.game-card[data-logo="pearl"] { --logo-glow: #92e6e866; --logo-depth: #182c51; --logo-edge: #f4dcb0; --logo-stroke: #256174; --logo-bevel: #fff; }
.game-card[data-logo="pearl"] .game-card-name { font-family: var(--symbol); }
.game-card[data-logo="pearl"] .game-logo-depth { transform: translateY(4px); }
.game-card[data-logo="frontier"] {
--logo-glow: #e98e3366;
--logo-depth: #251007;
--logo-edge: #ffe1a0;
--logo-stroke: #592509;
--logo-bevel: #fff2d2;
}
.game-card[data-logo="frontier"] .game-card-name { font-family: var(--symbol); }
.game-card[data-logo="frontier"] .game-card-title-line { font-size: 66px; }
.game-card[data-logo="frontier"] .game-card-title-line.key-word { font-size: 106px; }
.game-card[data-logo="frontier"] .game-logo-outer { stroke-linejoin: bevel; }
.game-card-ribbon {
position: absolute;
z-index: 2;
bottom: 0;
left: 1%;
right: 1%;
height: 23%;
min-height: 22px;
display: flex;
align-items: center;
justify-content: center;
padding: 3px 12px;
color: var(--gold-light);
font-family: var(--display);
font-size: .69rem;
letter-spacing: 0;
line-height: 1.15;
text-shadow: 0 1px 2px #180217;
}
.game-card-ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.game-card-ribbon > .game-feature-plate,
.game-card-ribbon > .game-feature-sweep { position: absolute; top: -32%; left: 0; width: 100%; height: 142%; }
.game-feature-plate { filter: drop-shadow(0 1px 1px #0009); }
.game-card-feature { position: relative; z-index: 1; white-space: nowrap; }
.game-card[data-logo="pearl"] .game-card-ribbon { color: #e8ffff; }
@container (min-aspect-ratio: 5 / 11) {
.game-card-brand { top: var(--brand-top); bottom: 0; height: auto; }
.game-card-name { bottom: max(28%, 18px); }
.game-card-ribbon { height: 28%; min-height: 18px; }
}

.game-card[data-cabinet="vault"] .game-card-jackpot.grand {
border-radius: 12px 12px 3px 3px;
border-top-width: 3px;
}
.game-card[data-cabinet="vault"] .game-card-art { border-radius: 14px 14px 2px 2px; }

.game-card[data-cabinet="storm"] {
--cabinet-frame: url("../art/lobby/frames/storm.png");
--cabinet-tube: url("../art/lobby/frames/storm-tube.png");
--cabinet-edge: #5de7ff;
--cabinet-metal: #489dde;
--cabinet-highlight: #d3faff;
--cabinet-shadow: #153e77;
--cabinet-gem: #fff279;
--cabinet-glass: #041631;
--cabinet-glow: #1b9cfa88;
--cabinet-light: #62eaff;
--cabinet-radius: 2px 18px 2px 18px;
--cabinet-ratio: 2.34;
--prize-top: #16639c;
--prize-bottom: #051b3a;
--prize-secondary: #183d66;
--brand-top: 51%;
--brand-height: 47%;
}
.game-card[data-cabinet="storm"] .game-card-prizes { padding: 0 3px 2px; }
.game-card[data-cabinet="storm"] .game-card-art { border: 0; }
.game-card[data-cabinet="storm"] .game-card-jackpot {
border-radius: 1px 9px 1px 9px;
transform: skewX(-5deg);
}
.game-card[data-cabinet="storm"] .game-card-jackpot > span { transform: skewX(5deg); }
.game-card[data-cabinet="storm"] .game-card-jackpot.grand:not(.live) .game-card-jackpot-amount { color: var(--cabinet-gem); text-shadow: none; }
.game-card[data-cabinet="storm"] .game-card-jackpot.major:not(.live) .game-card-jackpot-amount { color: var(--cabinet-highlight); text-shadow: none; }

.game-card[data-cabinet="lagoon"] {
--cabinet-frame: url("../art/lobby/frames/lagoon.png");
--cabinet-tube: url("../art/lobby/frames/lagoon-tube.png");
--cabinet-edge: #a9f7ef;
--cabinet-metal: #86cbd0;
--cabinet-highlight: #edffff;
--cabinet-shadow: #2c646e;
--cabinet-gem: #fff3fd;
--cabinet-glass: #052a38;
--cabinet-glow: #70ddd677;
--cabinet-light: #c1fff7;
--cabinet-radius: 30px 30px 15px 15px;
--cabinet-ratio: 2.4;
--prize-top: #317581;
--prize-bottom: #092b3e;
--prize-secondary: #31566f;
--brand-top: 57%;
--brand-height: 41%;
}
.game-card[data-cabinet="lagoon"] .game-card-jackpot.grand { border-radius: 40% 40% 4px 4px / 10px 10px 4px 4px; }
.game-card[data-cabinet="lagoon"] .game-card-jackpot.major { border-radius: 3px 3px 12px 12px; }
.game-card[data-cabinet="lagoon"] .game-card-art { border-radius: 20px 20px 10px 10px; }
.game-card[data-cabinet="lagoon"] .game-card-title-line:first-of-type { font-size: 65px; }

.game-card[data-cabinet="frontier"] {
--cabinet-frame: url("../art/lobby/frames/frontier.png");
--cabinet-tube: url("../art/lobby/frames/frontier-tube.png");
--cabinet-edge: #c99551;
--cabinet-metal: #c68b45;
--cabinet-highlight: #ffe0a0;
--cabinet-shadow: #603419;
--cabinet-gem: #ffe091;
--cabinet-glass: #2b1711;
--cabinet-glow: #e98f3866;
--cabinet-light: #fabe76;
--cabinet-radius: 9px 9px 3px 3px;
--prize-top: #773a1f;
--prize-bottom: #24160e;
--prize-secondary: #554128;
--brand-top: 58%;
--brand-height: 40%;
}
.game-card[data-cabinet="frontier"] .game-card-art { border-width: 2px; border-radius: 3px; }
.game-card[data-cabinet="frontier"] .game-card-jackpot { border-radius: 2px; border-width: 1px 4px; }
.game-card[data-cabinet="frontier"] .game-card-jackpot.major { margin: 0; }
.game-card[data-cabinet="frontier"] .game-card-jackpot:not(.live) .game-card-jackpot-amount { color: var(--cabinet-highlight); text-shadow: none; }
.game-card[data-cabinet="frontier"] .game-card-jackpot::before {
--rivet-head: radial-gradient(circle closest-side, var(--cabinet-highlight) 80%, transparent);
--rivet-shadow: radial-gradient(circle closest-side, #000 55%, transparent);
content: "";
position: absolute;
top: 42%;
inset-inline: -3px;
height: 4px;
background:
var(--rivet-head) left top / 3px 3px no-repeat,
var(--rivet-head) right top / 3px 3px no-repeat,
var(--rivet-shadow) left bottom / 3px 3px no-repeat,
var(--rivet-shadow) right bottom / 3px 3px no-repeat;
pointer-events: none;
}


/* Source: css/lobby-part-2.css */
.game-card[data-cabinet="aurora"] {
--cabinet-frame: url("../art/lobby/frames/aurora.png");
--cabinet-tube: url("../art/lobby/frames/aurora-tube.png");
--cabinet-edge: #8cf5d6;
--cabinet-metal: #39b89c;
--cabinet-highlight: #dcfff4;
--cabinet-shadow: #3b1d6e;
--cabinet-gem: #e8d6ff;
--cabinet-glass: #070b2a;
--cabinet-glow: #3dffb466;
--cabinet-light: #a8ffe0;
--cabinet-radius: 26px 26px 6px 6px;
--cabinet-ratio: 2.42;
--prize-top: #2c2a7a;
--prize-bottom: #0a0d33;
--prize-secondary: #1d4a5e;
--brand-top: 55%;
--brand-height: 42%;
}
.game-card[data-cabinet="aurora"] .game-card-jackpot.grand { border-radius: 14px 14px 4px 4px / 8px 8px 4px 4px; }
.game-card[data-cabinet="aurora"] .game-card-jackpot.major { border-radius: 4px 4px 10px 10px; border-color: #a77ce8; }
.game-card[data-cabinet="aurora"] .game-card-art {
border-radius: 16px 16px 4px 4px;
border-top-color: var(--cabinet-light);
box-shadow: inset 0 0 10px #000a, inset 0 12px 14px -10px #7dffd099;
}

.game-card[data-cabinet="imperial"] {
--cabinet-frame: url("../art/lobby/frames/imperial.png");
--cabinet-tube: url("../art/lobby/frames/imperial-tube.png");
--cabinet-edge: #ffe08a;
--cabinet-metal: #d89b28;
--cabinet-highlight: #fff4c8;
--cabinet-shadow: #4a0918;
--cabinet-gem: #ff7a92;
--cabinet-glass: #280410;
--cabinet-glow: #ff4a6e66;
--cabinet-light: #fff0b8;
--cabinet-radius: 18px 18px 4px 4px;
--cabinet-ratio: 2.4;
--prize-top: #5e0d24;
--prize-bottom: #1e030b;
--prize-secondary: #4a1a08;
--brand-top: 54%;
--brand-height: 43%;
}
.game-card[data-cabinet="imperial"] .game-card-jackpot.grand { border-radius: 12px 12px 3px 3px / 7px 7px 3px 3px; }
.game-card[data-cabinet="imperial"] .game-card-jackpot.major { border-radius: 3px 3px 8px 8px; border-color: #f0be52; }
.game-card[data-cabinet="imperial"] .game-card-art {
border-radius: 14px 14px 4px 4px;
border-top-color: var(--cabinet-edge);
box-shadow: inset 0 0 10px #000b, inset 0 12px 14px -10px #ffd87288;
}

.game-card[data-cabinet="mascot"] {
--cabinet-frame: url("../art/lobby/frames/mascot.png");
--cabinet-tube: url("../art/lobby/frames/mascot-tube.png");
--cabinet-edge: #fff099;
--cabinet-metal: #2bb86e;
--cabinet-highlight: #eaffd8;
--cabinet-shadow: #0a3b20;
--cabinet-gem: #7dffb0;
--cabinet-glass: #0c3d24;
--cabinet-glow: #38e88266;
--cabinet-light: #d8ffdf;
--cabinet-radius: 24px 24px 10px 10px;
--cabinet-ratio: 2.38;
--prize-top: #185e38;
--prize-bottom: #082616;
--prize-secondary: #2c1e54;
--brand-top: 55%;
--brand-height: 42%;
}
.game-card[data-cabinet="mascot"] .game-card-jackpot.grand { border-radius: 14px 14px 4px 4px / 9px 9px 4px 4px; }
.game-card[data-cabinet="mascot"] .game-card-jackpot.major { border-radius: 4px 4px 10px 10px; border-color: #6fe89a; }
.game-card[data-cabinet="mascot"] .game-card-art {
border-radius: 20px 20px 8px 8px;
border-top-color: var(--cabinet-edge);
box-shadow: inset 0 0 10px #0009, inset 0 12px 14px -10px #a2ffbe88;
}

@container (max-height: 280px) {
.game-card-crown { --crown-slot: 13px; }
.game-card-brand { top: 52%; }
.game-card[data-cabinet="storm"] .game-card-brand { top: 49%; }
.game-card-name { bottom: 22px; }
.game-card-ribbon { height: 21px; min-height: 21px; }
}
.game-card.soon { cursor: default; }
.game-card-status {
position: absolute;
z-index: 2;
top: 7px;
right: 5px;
padding: 4px 7px;
border: 1px solid #efd486;
border-radius: 3px;
background: #211132e8;
color: var(--gold-light);
font-family: var(--display);
font-size: .51rem;
letter-spacing: .08em;
line-height: 1.2;
box-shadow: 0 2px 4px #0009;
}


.tile {
position: relative;
color: var(--muted);
text-align: center;
}

.tile:active {
transform: translateY(2px);
}

.lobby-tiles {
flex: none;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
}

.lobby-tiles .tile {
display: flex;
flex-direction: column;
align-items: center;
min-height: 44px;
padding: 0;
background: none;
}

.tile-ring {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 58px;
height: 58px;
border: 0;
background: none;
}

.tile-state {
position: relative;
z-index: 1;
margin-top: -17px;
min-height: calc(1.2em + 4px);
border: 0;
color: var(--text);
font-family: var(--display);

letter-spacing: 0.03em;
line-height: 1.2;
font-variant-numeric: tabular-nums;
white-space: nowrap;

background: none;
padding: 2px 0;
font-size: .7rem;
-webkit-text-stroke: 1.5px var(--bg-deep);
paint-order: stroke fill;
text-shadow: 0 1px 1px var(--bg-deep);
}

.tile-state:empty {
visibility: hidden;
}

.tile-name {
margin-top: 2px;
color: var(--gold-light);
font-family: var(--display);

letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);

font-size: .7rem;
}

.tile.ready .tile-ring::after {
content: "";
position: absolute;
top: 2px;
right: 1px;
width: 10px;
height: 10px;
background: var(--gold-light);
clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
pointer-events: none;
animation: lobby-icon-spark 1.8s ease-in-out infinite;
}

#lobby-pearls.ready .tile-ring::after {
content: none;
animation: none;
}

.tile.ready .tile-state {
color: var(--gold);
}

.tile-ring .lobby-art,
.lobby-round-face .lobby-art {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.5));
pointer-events: none;
}

@keyframes lobby-icon-spark {
0%, 100% { opacity: 0.25; transform: scale(0.7); }
50% { opacity: 1; transform: scale(1); }
}



.tile,
.game-card,
.lobby-button {
transition: transform 60ms ease-out;
}

.lobby-button:active:not(:disabled) {
transform: scale(0.96);
}

.game-card:not(.soon)::after {
content: "";
position: absolute;
inset: 0;
z-index: 3;
border-radius: inherit;
box-shadow: inset 0 0 0 1px var(--cabinet-light), inset 0 0 12px var(--cabinet-glow);
opacity: 0.16;
pointer-events: none;
animation: fb-card-breathe 5s ease-in-out infinite alternate;
}

.game-card.cabinet-cache-ready:not(.soon)::after {
box-shadow: none;
border-image: var(--cabinet-tube) 90 / 30px / 0 stretch;
}

.game-card.sapphire:not(.soon)::after {
animation-delay: -2.5s;
}

.game-card-rim {
position: absolute;
inset: 0;
z-index: 4;
padding: inherit;
border-radius: inherit;
overflow: hidden;
pointer-events: none;
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}

.game-card-rim::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 41%, rgba(255, 212, 90, 0.7) 46%,
rgba(255, 242, 175, 0.95) 49%, #fff 50%, rgba(255, 242, 175, 0.95) 51%,
rgba(255, 212, 90, 0.7) 54%, transparent 59%);
transform: translateX(-150%);
opacity: 0.22;
animation: fb-rim-glint 18s ease-in-out 1.2s infinite;
}

.game-card-sparkles {
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.35;
}

.game-card-sparkles::before,
.game-card-sparkles::after {
content: "";
position: absolute;
top: -8px;
left: -7px;
box-sizing: content-box;
width: 16px;
height: 16px;
margin: -4px;
padding: 4px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3CradialGradient id='g' r='.7071'%3E%3Cstop offset='.12' stop-color='%23fff'/%3E%3Cstop offset='.24' stop-color='%23fff2af'/%3E%3Cstop offset='.48' stop-color='%23ffd45a'/%3E%3C/radialGradient%3E%3Cfilter id='b' x='-50%' y='-50%' width='200%' height='200%'%3E%3CfeGaussianBlur stdDeviation='1.25'/%3E%3C/filter%3E%3Cpolygon points='12,4 13.76,10.24 20,12 13.76,13.76 12,20 10.24,13.76 4,12 10.24,10.24' fill='%23ffd45a' fill-opacity='.95' filter='url%28%23b%29'/%3E%3Cpolygon points='12,4 13.76,10.24 20,12 13.76,13.76 12,20 10.24,13.76 4,12 10.24,10.24' fill='url%28%23g%29'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
transform: scale(0);
animation: fb-sparkle 14s ease-in-out 0.4s infinite;
}

.game-card-sparkles::after {
top: auto;
left: auto;
right: -4px;
bottom: 11px;
width: 13px;
height: 13px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3CradialGradient id='g' r='.7071'%3E%3Cstop offset='.12' stop-color='%23fff'/%3E%3Cstop offset='.24' stop-color='%23fff2af'/%3E%3Cstop offset='.48' stop-color='%23ffd45a'/%3E%3C/radialGradient%3E%3Cfilter id='b' x='-50%' y='-50%' width='200%' height='200%'%3E%3CfeGaussianBlur stdDeviation='1.25'/%3E%3C/filter%3E%3Cpolygon points='10.5,4 11.93,9.07 17,10.5 11.93,11.93 10.5,17 9.07,11.93 4,10.5 9.07,9.07' fill='%23ffd45a' fill-opacity='.95' filter='url%28%23b%29'/%3E%3Cpolygon points='10.5,4 11.93,9.07 17,10.5 11.93,11.93 10.5,17 9.07,11.93 4,10.5 9.07,9.07' fill='url%28%23g%29'/%3E%3C/svg%3E");
animation-duration: 19s;
animation-delay: 4s;
}

.game-list > .game-card:nth-child(even):not(.has-breakout) .game-card-sparkles::before { left: auto; right: -7px; }
.game-list > .game-card:nth-child(even) .game-card-sparkles::after { right: auto; left: -4px; }

.game-feature-sweep {
overflow: hidden;
pointer-events: none;
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}

.game-feature-shine {
animation: fb-ribbon-shine 6s ease-in-out 0.6s infinite;
}

.game-card.soon .game-feature-shine {
animation: none;
}

.game-logo-sparks {
animation: fb-twinkle 3.4s ease-in-out infinite;
}

.game-list > .game-card:nth-child(4n + 2) .game-card-rim::before { animation-delay: 3.45s; }
.game-list > .game-card:nth-child(4n + 3) .game-card-rim::before { animation-delay: 5.7s; }
.game-list > .game-card:nth-child(4n) .game-card-rim::before { animation-delay: 7.95s; }
.game-list > .game-card:nth-child(4n + 2) .game-card-sparkles::before { animation-delay: 2.1s; }
.game-list > .game-card:nth-child(4n + 3) .game-card-sparkles::before { animation-delay: 3.8s; }
.game-list > .game-card:nth-child(4n) .game-card-sparkles::before { animation-delay: 5.5s; }
.game-list > .game-card:nth-child(4n + 2) .game-card-sparkles::after { animation-delay: 6.4s; }
.game-list > .game-card:nth-child(4n + 3) .game-card-sparkles::after { animation-delay: 8.8s; }
.game-list > .game-card:nth-child(4n) .game-card-sparkles::after { animation-delay: 1.6s; }
.game-list > .game-card:nth-child(4n + 2) .game-feature-shine { animation-delay: 2.1s; }
.game-list > .game-card:nth-child(4n + 3) .game-feature-shine { animation-delay: 3.6s; }
.game-list > .game-card:nth-child(4n) .game-feature-shine { animation-delay: 5.1s; }

.lobby-sign::before,
.lobby-sign::after {
animation: fb-twinkle 2.6s ease-in-out infinite;
}

@keyframes fb-card-breathe {
from { opacity: 0.12; }
to { opacity: 0.3; }
}

@keyframes fb-twinkle {
0%, 100% { opacity: 1; }
50% { opacity: 0.45; }
}

@keyframes fb-rim-glint {
0% { transform: translateX(-150%); }
10%, 100% { transform: translateX(150%); }
}

@keyframes fb-sparkle {
0% { transform: scale(0.001) rotate(-45deg); }
2.5% { transform: scale(1) rotate(0deg); }
5%, 100% { transform: scale(0.001) rotate(45deg); }
}

@keyframes fb-ribbon-shine {
0% { transform: translateX(0); }
25%, 100% { transform: translateX(123.5294%); }
}

@media (prefers-reduced-motion: reduce) {
.game-card-rim::before,
.game-card-sparkles::before,
.game-card-sparkles::after,
.game-feature-shine,
.game-logo-sparks,
.game-card:not(.soon)::after,
.lobby-sign::before,
.lobby-sign::after {
animation: none;
}
.tile,
.game-card,
.lobby-button {
transition: none;
}
}


.lobby-button {
flex: none;
height: 36px;
padding: 0 11px 0 9px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.45);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
color: var(--gold-light);
font-family: var(--display);
font-size: 0.78rem;
letter-spacing: 0.06em;
white-space: nowrap;

min-height: 44px;
}

.lobby-button::before {
content: "‹ ";
font-size: 1rem;
}

.lobby-button:disabled {
opacity: 0.45;
}

@media (max-height: 700px) {
.lobby { gap: 6px; }
.lobby-sign { padding: 7px 16px 6px; }
.lobby-sign-title { font-size: 1.2rem; }
.lobby-sign::before,
.lobby-sign::after { font-size: 1.1rem; }
.tile-ring { width: 50px; height: 50px; }
.game-card { padding: 4px 3px 5px; gap: 3px; }
.game-list { padding-top: 6px; padding-bottom: 8px; }
}


.app > .topbar { position: relative; z-index: 12; }
.machine-offers { position: relative; flex: none; width: 64px; }
.machine-offers-button {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
min-height: 44px;
padding: 0 3px;
}
.machine-offers-title {
font-family: var(--title);
font-size: 11px;
line-height: 1;
letter-spacing: -0.035em;
background: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px var(--bg-deep));
transform: rotate(-7deg);
}
.machine-offers-alert {
position: absolute;
top: -2px;
right: -3px;
display: grid;
place-items: center;
width: 22px;
height: 22px;
border: 1px solid var(--gold-deep);
border-radius: 50%;
background: linear-gradient(var(--ruby), var(--red-dark));
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
color: var(--text);
font-family: var(--display);
font-size: 18px;
line-height: 1;
text-shadow: 0 1px 0 #000;
}
.machine-offers-button .machine-offers-alert { top: auto; bottom: 0; right: 0; width: 18px; height: 18px; font-size: 16px; }
.machine-offers-time {
align-self: stretch;
margin-top: 3px;
padding-left: 3px;
padding-right: 20px;
text-align: left;
color: var(--gold-light);
font-family: var(--display);
font-size: 11px;
line-height: 1;
font-variant-numeric: tabular-nums;
white-space: nowrap;
text-shadow: 0 1px 1px #000;
}
.machine-offers-menu {
position: absolute;
top: calc(100% + 4px);
right: -8px;
display: flex;
flex-direction: column;
gap: 8px;
width: 120px;
max-height: min(440px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 90px));
padding: 9px 7px;
overflow-y: auto;
overscroll-behavior: contain;
border: 2px solid var(--gold);
border-top-color: var(--gold-light);
border-radius: 8px 8px 16px 16px;
background: linear-gradient(160deg, var(--red), var(--red-dark) 70%, var(--navy-deep));
box-shadow: inset 0 0 0 2px var(--gold-deep), 0 5px 12px rgba(0, 0, 0, 0.65);
transform-origin: top center;
transform: scaleY(0.08);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: transform 240ms ease-in, opacity 180ms ease, visibility 0s linear 240ms;
}
.machine-offers.open .machine-offers-menu {
transform: scaleY(1);
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: transform 300ms cubic-bezier(0.2, 0.8, 0.25, 1.08), opacity 180ms ease;
}
.machine-offer-tile {
position: relative;
flex: none;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-end;
min-height: 91px;
padding: 8px 4px 3px;
border: 2px solid var(--gold-dark);
border-top-color: var(--gold-light);
border-radius: 9px;
background: radial-gradient(ellipse at 75% 28%, var(--violet), transparent 70%),
linear-gradient(var(--console-light), var(--navy-deep));
box-shadow: inset 0 0 0 1px var(--sapphire), 0 2px 0 var(--gold-deep);
color: var(--text);
font-family: var(--display);
text-shadow: 0 1px 1px #000;
}
.machine-offer-tile:first-child {
background: radial-gradient(ellipse at 75% 28%, var(--magenta), transparent 70%),
linear-gradient(var(--violet), var(--navy-deep));
}
.machine-offer-tile img {
position: absolute;
top: 20px;
right: 1px;
width: 44px;
height: 44px;
object-fit: contain;
opacity: 0.6;
}
.machine-offer-title, .machine-offer-detail, .machine-offer-time { position: relative; }
.machine-offer-title {
margin: auto 0 3px;
color: var(--gold-light);
font-size: 17px;
line-height: 1;
text-transform: uppercase;
overflow-wrap: anywhere;
text-shadow: 0 1px 0 var(--gold-deep), 1px 2px 1px #000;
}
.machine-offer-detail { font-size: 12px; line-height: 1.1; }
.machine-offer-time {
margin-top: 4px;
padding-top: 2px;
border-top: 1px solid var(--hairline);
color: var(--ruby);
font-size: 14px;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.machine-offer-tile:active { transform: scale(0.97); }
.machine-offers-button:focus-visible, .machine-offer-tile:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 2px;
}
.app > .topbar .credits { gap: 4px; padding-right: 2px; }
.app > .topbar .credits.long-balance { gap: 2px; }
.app > .topbar .credits.long-balance .credits-coin { width: 0; margin-right: -2px; opacity: 0; }

/* Source: css/lobby-part-3.css */
@media (max-width: 392px) {
.app > .topbar { gap: 2px; padding-left: 4px; padding-right: 2px; }
.app > .topbar .credits { gap: 2px; }
.app > .topbar .credits .credits-coin,
.app > .topbar .credits.long-balance .credits-coin { width: 0; margin-right: -2px; opacity: 0; }
.app > .topbar .pearl-button { gap: 3px; min-width: 44px; padding: 0 6px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
.machine-offers-menu, .machine-offers.open .machine-offers-menu { transition: none; transform: none; }
}


.offer {
position: fixed;
inset: 0;
z-index: 55;
display: flex;
align-items: center;
justify-content: center;
--popup-gutter: 58px;
background: rgba(8, 0, 20, 0);
visibility: hidden;
opacity: 0;
transition: opacity 220ms ease, visibility 0s linear 220ms, background 220ms ease;
}

.offer.open {
visibility: visible;
opacity: 1;
background: rgba(8, 0, 20, 0.74);
-webkit-backdrop-filter: blur(7px) saturate(0.85);
backdrop-filter: blur(7px) saturate(0.85);
transition: opacity 220ms ease, background 220ms ease;
}

.offer.over-machine.open { -webkit-backdrop-filter: none; backdrop-filter: none; }

.offer-box {
--offer-glow: rgba(255, 112, 211, 0.6);
--offer-card-bg: linear-gradient(180deg, #5420c4, #7424d2 42%, #a52ed6 78%, #c23fcf);
--offer-card-light: rgba(255, 120, 230, 0.75);
--offer-rim: #ff79e5;
--offer-title-edge: #a90c71;
--offer-key-top: #fff6aa;
--offer-key-light: #ffdc3f;
--offer-key-mid: #ffb311;
--offer-key-base: #ed8208;
--offer-key-edge: #8a2c04;
--offer-key-ink: var(--text);
--offer-ink: var(--violet-deep);
--offer-amount: #ffeb4a;
--offer-coin-light: #fffbdc;
--offer-coin-glow: rgba(255, 215, 80, 0.9);
--offer-coin-halo: rgba(255, 163, 30, 0.4);
position: relative;
isolation: isolate;
display: flex;
flex-direction: column;
width: 100%;
max-width: 400px;
max-height: var(--popup-height);
border-radius: 18px;
background: radial-gradient(ellipse 62% 48% at 50% 56%, var(--offer-glow), transparent 72%);
transform: scale(0.96);
transition: transform 260ms ease-out;
}

.offer.open .offer-box {
transform: scale(1);
}

.offer-close {
position: absolute;
right: -4px;
bottom: calc(100% + 8px);
width: 46px;
height: 46px;
border-radius: 50%;
border: 2px solid var(--gold-light);
background: radial-gradient(circle at 35% 20%, var(--muted), var(--violet) 55%, var(--bg));
box-shadow: 0 0 0 2px var(--gold-deep), 0 3px 8px rgba(0, 0, 0, 0.5);
color: var(--text);
font-family: var(--display);
font-size: 1.3rem;
line-height: 1;
touch-action: manipulation;
}

.offer-box > .offer-close {
right: 0;
bottom: calc(100% + 6px);
border: 0;
background: none;
box-shadow: none;
font-size: 2.1rem;
font-weight: 700;
text-shadow: 0 0 2px var(--violet-deep), 0 3px 0 var(--violet-deep), 0 0 12px var(--muted);
}

.offer-close:active {
transform: scale(0.94);
}

.offer-panel {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
gap: 12px;
padding: 12px;
border-radius: 0 0 15px 15px;
-webkit-mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 12px), transparent);
mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.offer-box.violet {
--offer-glow: rgba(159, 83, 255, 0.7);
--offer-card-bg: linear-gradient(180deg, #24178a, #3a21b4 45%, #6630d6 85%, #8a3ee2);
--offer-card-light: rgba(150, 110, 255, 0.75);
--offer-rim: #8af4ff;
--offer-title-edge: #8729da;
}

.offer-box.jade {
--offer-glow: rgba(31, 255, 174, 0.45);
--offer-card-bg: linear-gradient(180deg, #06574f, #0a7f68 45%, #12a57a 85%, #1cbf86);
--offer-card-light: rgba(80, 255, 180, 0.6);
--offer-rim: #75ffcb;
--offer-title-edge: #057255;
}

.offer-box.crimson {
--offer-glow: rgba(255, 85, 134, 0.6);
--offer-card-bg: linear-gradient(180deg, #7a0b44, #a8115a 45%, #d6286f 85%, #ec3f82);
--offer-card-light: rgba(255, 120, 180, 0.7);
--offer-rim: #ffad96;
--offer-title-edge: #ba1759;
}

.offer-box.amber {
--offer-glow: rgba(255, 150, 50, 0.55);
--offer-card-bg: linear-gradient(180deg, #3c1385, #5c1ca8 45%, #8a2a9c 82%, #b0407c);
--offer-card-light: rgba(255, 160, 70, 0.7);
--offer-rim: #ffd68a;
--offer-title-edge: #a8520c;
}

.offer-box.sapphire {
--offer-glow: rgba(70, 150, 255, 0.6);
--offer-card-bg: linear-gradient(180deg, #102a86, #1a44b8 45%, #2f6ae0 85%, #3f88f0);
--offer-card-light: rgba(110, 180, 255, 0.7);
--offer-rim: #9fd2ff;
--offer-title-edge: #1a46a8;
}

.offer-confetti {
position: absolute;
z-index: -1;
inset: -10px -6px auto;
height: 190px;
overflow: hidden;
pointer-events: none;
background: repeating-conic-gradient(from -12deg at 50% 46%, transparent 0deg 14deg, var(--offer-glow) 15deg 19deg, transparent 20deg 36deg);
-webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 30%, transparent);
mask-image: radial-gradient(closest-side at 50% 46%, #000 30%, transparent);
}

.offer-flying-coin {
position: absolute;
top: 18px;
left: 10%;
width: 30px;
height: 30px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(2px 3px 0 rgba(90, 50, 0, 0.55)) drop-shadow(0 0 6px var(--offer-coin-glow));
transform: rotate(-24deg) scaleX(0.8);
}

.offer-flying-coin:nth-child(2) { left: auto; right: 12%; top: 8px; transform: rotate(28deg) scaleX(0.65); }
.offer-flying-coin:nth-child(3) { left: 2%; top: 92px; transform: rotate(35deg) scale(0.7); }
.offer-flying-coin:nth-child(4) { left: auto; right: 3%; top: 104px; transform: rotate(-25deg) scale(0.75); }

.offer-banner {
flex: none;
padding: 14px 12px 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 2px;
}

.offer-kicker {
padding: 1px 10px 0;
border: 2px solid var(--hot-tag-rim);
border-radius: 6px;
background: linear-gradient(var(--gold), var(--hot-tag-top) 45%, var(--hot-tag-base));
box-shadow: 0 0 0 2px var(--gold-deep), 0 3px 0 2px var(--gold-deep), 0 0 14px var(--sting-gold);
font-family: var(--display);
font-size: 1.1rem;
line-height: 1.25;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text);
text-shadow: 0 0 1px var(--gold-deep), 1px 1px 0 var(--gold-deep), -1px 1px 0 var(--gold-deep), 0 2px 0 var(--gold-deep);
transform: rotate(-5deg);
}

.offer-title {
position: relative;
padding: 0 6px;
font-family: var(--display);
font-size: clamp(2.3rem, 11.5vw, 3.1rem);
font-style: italic;
line-height: 1.05;
letter-spacing: 0.01em;
text-transform: uppercase;
color: transparent;
transform: rotate(-2deg) skewX(-6deg);
}

.offer-title::before,
.offer-title::after {
content: attr(data-text);
content: attr(data-text) / "";
position: absolute;
inset: 0;
padding: inherit;
}

.offer-title::before {
color: var(--offer-ink);
-webkit-text-stroke: 5px var(--offer-ink);
text-shadow: 0 4px 0 var(--offer-title-edge), 0 0 10px var(--offer-glow);
}

.offer-title::after {
background: linear-gradient(180deg, var(--gold-light) 8%, var(--gold) 34%, var(--amber) 56%, var(--neon-pink) 78%, var(--magenta));
-webkit-background-clip: text;
background-clip: text;
}

.offer-tagline {
font-size: 0.95rem;
font-weight: 500;
font-style: italic;
color: var(--text);
}

.offer-perk {
padding: 6px 2px 0;
color: var(--text);
font-family: var(--display);
font-size: 0.95rem;
letter-spacing: 0.03em;
text-align: center;
text-transform: uppercase;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.offer-perk.perk {
color: var(--gold-light);
}

.offer-ends {
align-self: center;
padding: 4px 12px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.45);
color: var(--text);
font-family: var(--display);
font-size: 0.95rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
text-align: center;
}

.offer-close:focus-visible,
.offer-deal-buy:focus-visible {
outline: 2px solid var(--text);
outline-offset: 4px;
}

@media (max-height: 720px) {
.offer-panel { gap: 8px; padding-top: 8px; }
.offer-banner { padding-top: 10px; }
}

@keyframes lobby-in {
from { opacity: 0; transform: scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
.offer-box { transition: none; }
.lobby.enter,
.lobby-sign::before,
.lobby-sign::after,
.tile.ready .tile-ring::after {
animation: none;
transform: none;
}
.lobby-sign::before,
.lobby-sign::after { transform: translateY(-50%); }
}


.lobby::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
opacity: .65;
background-image:
radial-gradient(circle, #ffda8d 0 1px, transparent 1.5px),
radial-gradient(circle, #eee1ff 0 .8px, transparent 1.3px);
background-size: 89px 113px, 53px 79px;
background-position: 18px 23px, 41px 11px;
}

/* Source: css/offer-cards.css */

.offer-deals {
--offer-fr-last: 1.1;
display: grid;
grid-auto-flow: column;
grid-template-columns: 1fr 1.05fr 1.1fr;
align-items: end;
gap: 8px;
padding: 42px 2px 22px;
}

.deals-2 .offer-deals {
grid-template-columns: 1fr 1.1fr;
padding-inline: 10%;
}

.offer-deal {
--offer-step: 0;
--offer-fr: 1;
--offer-card-step: 10px;
--offer-tab-size: clamp(1rem, 16cqi, 1.15rem);
--offer-tab-height: calc(1.2 * var(--offer-tab-size) + 6px);
position: relative;
isolation: isolate;
container-type: inline-size;
display: flex;
flex-direction: column;
align-items: center;
min-width: 0;
padding: calc(0.42 * (1.2 * clamp(1rem, 16% - 1.92px, 1.15rem) + 6px) + 7px + var(--offer-step) * var(--offer-card-step)) 3px 0;
border: 3px solid var(--gold);
border-top-color: var(--gold-light);
border-bottom-color: var(--gold-dark);
border-radius: 16px 16px 12px 12px;
background:
radial-gradient(ellipse 80% 42% at 50% 78%, var(--offer-card-light), transparent 72%),
radial-gradient(ellipse 85% 22% at 50% 0, rgba(255, 255, 255, 0.28), transparent 75%),
var(--offer-card-bg);
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--gold-deep), 0 10px 18px rgba(0, 0, 0, 0.55);
}

.offer-deal:nth-child(2) { --offer-step: 1; --offer-fr: 1.05; }
.offer-deal:nth-child(3) { --offer-step: 2; --offer-fr: 1.1; }
.deals-2 .offer-deal:nth-child(2) { --offer-fr: 1.1; }

.offer-deal:last-child {
border-color: var(--gold-light);
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--gold-dark), 0 0 18px var(--offer-glow), 0 10px 18px rgba(0, 0, 0, 0.55);
}

.offer-deal-best {
--offer-plate-height: 22px;
position: absolute;
z-index: 2;
top: calc(-0.58 * var(--offer-tab-height) - var(--offer-plate-height) - 6px);
left: -6px;
padding: 1px 12px 0 22px;
border: 2px solid var(--bolt-light);
border-radius: 4px;
background: linear-gradient(var(--bolt), var(--sapphire) 45%, var(--key-blue));
box-shadow: 0 0 0 1px var(--bolt-deep), 0 3px 0 var(--bolt-deep), 0 0 10px var(--bolt);
color: var(--bolt-light);
font-family: var(--display);
font-size: 0.95rem;
line-height: 17px;
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
text-shadow: 0 2px 0 var(--bolt-deep);
transform: skewX(-10deg);
}

.offer-deal-best::before {
content: "";
position: absolute;
left: -8px;
top: -4px;
width: 20px;
height: 30px;
background: linear-gradient(var(--gold-light), var(--gold) 45%, var(--amber));
clip-path: polygon(60% 0, 0 58%, 42% 58%, 26% 100%, 100% 36%, 56% 36%, 84% 0);
filter: drop-shadow(0 0 1px var(--gold-deep)) drop-shadow(0 2px 0 var(--gold-deep));
}

.offer-deal-bonus {
position: absolute;
top: 0;
min-width: 62%;
padding: 2px 0.45em 0;
border-radius: 4px 4px 14px 14px;
background: linear-gradient(var(--violet), var(--navy) 60%, var(--navy-deep));
border: 2px solid var(--muted);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px var(--navy-deep), 0 3px 0 var(--navy-deep), 0 0 8px var(--offer-glow);
color: var(--text);
text-shadow: 0 2px 0 var(--navy-deep), 0 0 6px var(--muted);
font-family: var(--display);
font-size: var(--offer-tab-size);
line-height: 1.2;
white-space: nowrap;
text-align: center;
transform: translateY(-58%);
}

.offer-deal-was,
.offer-deal-coins {
flex-shrink: 0;
width: 100%;
overflow: hidden;
text-align: center;
white-space: nowrap;
font-family: var(--display);
font-variant-numeric: tabular-nums;
}

.offer-deal-was {
width: 88%;
font-size: max(12px, 17cqi);
line-height: calc(1.05 * var(--offer-was-size, 1em));
color: var(--text);
text-decoration: line-through;
text-decoration-color: color-mix(in srgb, var(--ruby) 62%, transparent);
text-decoration-thickness: 1px;
text-shadow: 0 0 2px var(--offer-ink), 0 0 2px var(--offer-ink);
}

.offer-deal-coins {
width: calc(100% - 6px);
font-size: 21cqi;
line-height: calc(1.05 * var(--offer-coins-size, 1em));
color: var(--offer-amount);
text-shadow: 0 0 1px var(--offer-ink), 2px 0 0 var(--offer-ink), -2px 0 0 var(--offer-ink), 0 -1px 0 var(--offer-ink), 0 2px 0 var(--offer-ink), 0 4px 0 rgba(0, 0, 0, 0.45);
}

.offer-deal-planets {
flex-shrink: 0;
color: var(--text);
font-family: var(--display);
font-size: max(11px, 13cqi);
line-height: 1.1;
text-transform: uppercase;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 3px var(--offer-ink);
}

.offer-deal-rewards {
position: relative;
isolation: isolate;
display: flex;
align-items: flex-end;
justify-content: center;
width: 100%;
margin-top: 1%;
}

.offer-deal-rewards::before {
content: "";
position: absolute;
z-index: -1;
inset: -12% -6% 0;
background: radial-gradient(ellipse at 50% 60%, var(--offer-coin-light), var(--offer-coin-glow) 28%, var(--offer-coin-halo) 48%, transparent 72%);
opacity: calc(0.65 + var(--offer-step) * 0.15);
pointer-events: none;
}

.offer-deal-rewards::after {
content: "";
position: absolute;
z-index: -1;
inset: -20% -6% 0;
background: repeating-conic-gradient(from 12deg at 50% 70%, transparent 0deg 15deg, var(--offer-coin-halo) 18deg 22deg, transparent 25deg 42deg);
-webkit-mask-image: radial-gradient(ellipse at 50% 70%, #000, transparent 72%);
mask-image: radial-gradient(ellipse at 50% 70%, #000, transparent 72%);
pointer-events: none;
}

.offer-deal-art {
--offer-pile-fill: 1.06;
--offer-pile-cap: 0.78;
--offer-coin: calc(100cqi * var(--offer-fr-last) / var(--offer-fr) *
min(var(--offer-pile-fill) / var(--offer-row-w), var(--offer-pile-cap) / var(--offer-row-h)));
position: relative;
display: block;
flex: none;
width: calc(var(--pile-w) * var(--offer-coin));
height: calc(var(--pile-h) * var(--offer-coin));
overflow: hidden;
pointer-events: none;
filter: saturate(1.18) brightness(1.08) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.offer-deal-art img {
position: absolute;
left: calc(var(--pile-x) * var(--offer-coin) * -1);
top: calc(var(--pile-y) * var(--offer-coin) * -1);
width: calc(1536 * var(--offer-coin));
height: calc(1024 * var(--offer-coin));
max-width: none;
}

.offer-coin-sparks {
position: absolute;
inset: 0;
pointer-events: none;
}

.offer-coin-sparks::before,
.offer-coin-sparks::after {
content: "✦";
position: absolute;
left: 4%;
bottom: 62%;
color: var(--gold-light);
font-family: var(--display);
font-size: 17px;
line-height: 1;
text-shadow: 0 0 4px var(--gold), 0 0 9px var(--offer-coin-glow);
animation: offer-coin-twinkle 3200ms ease-in-out infinite;
animation-delay: calc(var(--offer-step) * -700ms);
animation-play-state: paused;
}

.offer-coin-sparks::after {
left: auto;
right: 4%;
bottom: 84%;
font-size: 12px;
animation-delay: calc(-1600ms - var(--offer-step) * 500ms);
}

.offer.open .offer-coin-sparks::before,
.offer.open .offer-coin-sparks::after {
animation-play-state: running;
}

.offer-bundle .offer-deal-rewards {
justify-content: flex-start;
margin-top: -2%;
}

.offer-planet.pearl {
position: absolute;
right: -3%;
top: max(3cqi, calc(70% - 48cqi));
width: 48cqi;
height: 48cqi;
font-size: 48cqi;
}

.offer-deal-buy {
position: relative;
flex: none;
width: calc(100% + 14px);
min-height: 48px;
margin: -5% 0 -19px;
border-radius: 10px;
border: 3px solid var(--offer-key-edge);
background:
linear-gradient(var(--offer-key-top), var(--offer-key-light) 18%, var(--offer-key-mid) 48%, var(--offer-key-base) 52%, var(--offer-key-mid));
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), inset 0 -3px 0 rgba(98, 64, 12, 0.45), 0 0 0 2px var(--gold), 0 4px 0 2px var(--gold-deep), 0 8px 12px rgba(0, 0, 0, 0.5);
color: var(--offer-key-ink);
font-family: var(--display);
font-size: max(1.5rem, 21cqi);
letter-spacing: 0.03em;
text-shadow: 0 0 1px var(--gold-deep), 2px 0 0 var(--gold-deep), -2px 0 0 var(--gold-deep), 0 -1px 0 var(--gold-deep), 0 2px 0 var(--gold-deep), 0 3px 0 var(--gold-deep);
touch-action: manipulation;
}

.offer-deal-buy:active {
transform: translateY(2px);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 0 0 2px var(--gold), 0 2px 0 2px var(--gold-deep);
}

@media (max-width: 360px) {
.offer-panel { padding-inline: 6px; }
.offer-deal-was { width: 100%; }
.offer-deal-best {
left: auto;
right: -4px;
font-size: 0.8rem;
}
.offer-deal-buy { min-height: 46px; }
.offer-deal-art { --offer-pile-cap: 0.72; }
}

@keyframes offer-coin-twinkle {
0%, 100% { opacity: 0.3; transform: scale(0.7) rotate(-12deg); }
45% { opacity: 1; transform: scale(1.12) rotate(12deg); }
70% { opacity: 0.5; transform: scale(0.85) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
.offer-coin-sparks::before,
.offer-coin-sparks::after { animation: none; opacity: 0.8; }
}

/* Source: css/offer-hero.css */
.offer-hero {
position: absolute;
z-index: -1;
top: -64px;
left: 50%;
width: 360px;
height: 330px;
margin-left: -180px;
pointer-events: none;
background: no-repeat center / contain;
-webkit-mask-image: linear-gradient(#000 44%, rgba(0, 0, 0, 0.35) 62%, transparent 76%);
mask-image: linear-gradient(#000 44%, rgba(0, 0, 0, 0.35) 62%, transparent 76%);
}

html.landscape .offer-hero {
top: -30px;
width: 380px;
height: 220px;
margin-left: -190px;
-webkit-mask-image: none;
mask-image: none;
}

.offer-box .offer-tagline {
text-shadow: 0 1px 2px #000, 0 0 6px #000, 0 0 12px #000;
}

/* Source: css/lobby-part-4.css */
.lobby-tiles .tile-ring {
width: 56px;
height: 56px;
}

.lobby-tiles .tile-state {
max-width: 100%;
padding: 2px 0;
font-size: .75rem;
letter-spacing: 0;
}

.lobby-tiles .tile-name {
position: relative;
padding-inline: 3px;
background: linear-gradient(90deg, transparent, var(--bg-deep) 10% 90%, transparent);
color: var(--text);
font-size: .75rem;
letter-spacing: 0.03em;
}

@media (max-height: 700px) {
.lobby-tiles .tile-ring { width: 54px; height: 54px; }
}


.lobby-inbox-count {
position: absolute;
top: 0;
right: -7px;
z-index: 2;
width: 22px;
height: 22px;
border-radius: 50%;
background:
radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.45), transparent 55%),
var(--ruby);
border: 2px solid var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
line-height: 18px;
text-align: center;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lobby-inbox-count[hidden] {
display: none;
}

.sheet-panel.inbox-panel {
width: 100%;
max-width: 520px;
height: calc(100% - var(--safe-top) - 24px);
max-height: calc(100% - var(--safe-top) - 24px);
gap: 12px;
padding: 12px 16px calc(var(--safe-bottom) + 12px);
visibility: hidden;
transition: transform 250ms ease, visibility 0s linear 250ms;
}

.sheet.open .sheet-panel.inbox-panel {
visibility: visible;
transition: transform 250ms ease, visibility 0s;
}

.inbox-head {
flex: none;
min-height: 44px;
display: flex;
justify-content: flex-end;
align-items: center;
}

.inbox-envelope {
width: 22px;
height: 22px;
margin-right: auto;
}

.inbox-heading {
font-size: 1.5rem;
letter-spacing: 0.08em;
}

.inbox-close {
position: relative;
width: 44px;
height: 44px;
padding: 10px;
border: 2px solid var(--gold-deep);
border-radius: 50%;
background: linear-gradient(180deg, var(--violet), var(--navy-deep));
color: var(--text);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 0 var(--bg-deep);
transition: transform 80ms ease;
}

.inbox-close svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 3;
stroke-linecap: round;
}

.inbox-close:active,
.inbox-tab:active { transform: translateY(2px); }

.inbox-tabs {
flex: none;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
padding-bottom: 4px;
}

.inbox-tab {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
min-height: 48px;
padding: 4px;
border: 2px solid var(--gold-deep);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--navy), var(--navy-deep));
color: var(--text);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--bg-deep);
transition: transform 80ms ease;
}

.inbox-tab.active {
background: var(--gold-bevel);
color: var(--gold-deep);
border-color: var(--gold);
}

.inbox-tab-icon {
flex: none;
width: 22px;
height: 22px;
object-fit: contain;
}

.inbox-tab-label {
font-family: var(--display);
font-size: 0.8rem;
line-height: 1.1;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.inbox-tab.active .inbox-tab-label { text-shadow: none; }

.inbox-tab-panel {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
gap: inherit;
}

.inbox-grid {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow-y: auto;
padding-bottom: 8px;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
touch-action: pan-y;
}

.inbox-grid[hidden],
.inbox-empty[hidden] { display: none; }

.inbox-event-views {
display: flex;
gap: 8px;
margin-bottom: 8px;
}
.inbox-event-views[hidden] { display: none; }
.inbox-event-views .inbox-tab { flex: 1; }
.event-calendar-dates {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 3px;
flex: none;
}
.event-calendar-date.inbox-tab {
min-width: 44px;
min-height: 54px;
padding: 4px 0;
flex-direction: column;
gap: 0;
font-size: 0.8rem;
}
.inbox-event-views .inbox-tab,
.event-calendar-date {
font-family: var(--display);
text-shadow: 0 1px 0 #000;
}
.inbox-event-views .active,
.event-calendar-date.active { text-shadow: none; }
.event-calendar-heading,
.event-calendar-title,
.event-calendar-time {
font-family: var(--display);
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
text-transform: uppercase;
letter-spacing: 0.035em;
}
.event-calendar-heading { margin: 14px 0 2px; font-size: 1.3rem; }
.event-calendar-title { margin: 0 0 4px; font-size: 1.1rem; }
.event-calendar-entry {
flex: none;
padding: 12px 0;
border-bottom: 1px solid rgba(255, 212, 90, 0.18);
}
.event-calendar-time { display: block; font-size: 0.9rem; }
.event-calendar-note { display: block; font-size: 0.82rem; color: var(--text); line-height: 1.4; }
@media (max-width: 370px) {
.event-calendar-dates { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
}

.inbox-tile {
flex: none;
display: grid;
grid-template-columns: minmax(0, 1fr) 20px;
gap: 4px 8px;
min-width: 0;
min-height: 76px;
padding: 12px 0;
border: none;
border-radius: 0;
background: none;
color: var(--text);
text-align: left;
animation: inbox-tile-in 260ms ease-out both;
animation-delay: calc(var(--i, 0) * 40ms);
}

.inbox-tile + .inbox-tile { border-top: 1px solid rgba(255, 212, 90, 0.18); }

.inbox-tile::after {
content: "›";
grid-column: 2;
grid-row: 1 / 3;
align-self: center;
font-family: var(--display);
font-size: 1.4rem;
color: var(--muted);
text-shadow: 0 1px 0 #000;
}

@keyframes inbox-tile-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}

.inbox-tile-face {
display: grid;
grid-template-columns: 22px minmax(0, 1fr) auto;
gap: 3px 10px;
align-items: center;
min-width: 0;
}

.inbox-tile-art {
grid-column: 1;
grid-row: 1 / 3;
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 24px;
overflow: hidden;
}

.inbox-tile-art .inbox-glyph {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.35rem;
line-height: 1;
text-shadow: 0 1px 0 #000;
}

.inbox-photo { width: 22px; height: 24px; object-fit: cover; object-position: 50% 28%; }
.inbox-tile-art .wheel-icon { width: 22px; height: 22px; border-width: 1px; box-shadow: none; }
.inbox-tile-art .pearl { width: 22px; height: 22px; box-shadow: none; filter: none; }
.inbox-tile-art .chest { transform: scale(0.7); flex: none; }
.inbox-tile-art .atlas-button-icon { width: 24px; height: 24px; margin: 0; }
.inbox-tile-art .credits-coin { width: 22px; height: 22px; border-width: 1px; box-shadow: none; }
.inbox-tile-art .lobby-pig { width: 22px; height: 22px; filter: none; }
.inbox-tile-art .rush-mark { width: 22px; height: 22px; }
.inbox-tile-art .pass-mark { width: 22px; height: 15px; font-size: 9px; }

.inbox-art.inbox-star {
display: block;
width: 22px;
height: 22px;
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
background: var(--gold-bevel);
}

.inbox-tile-kicker,
.inbox-tile-band,
.inbox-empty-band {
font-family: var(--display);
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.inbox-tile-kicker {
grid-column: 2;
min-width: 0;
color: var(--muted);
font-size: 0.75rem;
line-height: 1.2;
}

.inbox-tile-band {
grid-column: 2;
min-width: 0;
color: var(--gold-light);
font-size: 1.05rem;
line-height: 1.2;
font-variant-numeric: tabular-nums;
}

.inbox-tile-face:not(:has(.inbox-tile-kicker)) .inbox-tile-band { grid-row: 1 / 3; }

.inbox-tile-art .inbox-symbol,
.inbox-tile-art .inbox-icon { width: 22px; height: 22px; }

.inbox-tile-timer {
grid-column: 3;
grid-row: 1 / 3;
align-self: center;
padding: 3px 5px;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: var(--navy-deep);
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

.inbox-tile.urgent .inbox-tile-timer {
position: relative;
isolation: isolate;
text-shadow: 0 1px 0 #000;
}

.inbox-tile.urgent .inbox-tile-timer::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
background: var(--ruby);
animation: inbox-urgent 2.4s ease-in-out infinite;
}

@keyframes inbox-urgent {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}

.inbox-tile-caption {
grid-column: 1;
padding-left: 32px;
color: var(--text);
font-size: 0.8125rem;
font-weight: 400;
line-height: 1.35;
}

.inbox-caption-number {
color: var(--gold-light);
font-family: inherit;
font-weight: 600;
font-variant-numeric: tabular-nums;
}

.inbox-empty {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
padding: 20px 0;
}

.inbox-empty-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}

.inbox-empty-card .inbox-star { width: 64px; height: 64px; }
.inbox-empty-band { color: var(--gold-light); font-size: 1.1rem; }
.inbox-empty-text { color: var(--muted); font-size: 0.8125rem; font-weight: 400; text-align: center; }

@media (prefers-reduced-motion: reduce) {
.sheet-panel.inbox-panel,
.sheet.open .sheet-panel.inbox-panel { transition: none; }
.inbox-tile { animation: none; }
.inbox-tile.urgent .inbox-tile-timer::before { animation: none; }
.inbox-close,
.inbox-tab { transition: none; }
}


.lobby-rush {
position: relative;
flex: none;
display: flex;
align-items: center;
gap: 7px;
height: 46px;
min-height: 44px;
padding: 0 5px;
border-radius: 14px;
border: 2px solid #e9bf62;
background:
radial-gradient(ellipse at 50% 0, #c1237b44, transparent 70%),
linear-gradient(#3b0f57, #1a0727 60%, #10041a);
box-shadow: 0 0 0 1px #6a3d18, inset 0 1px 3px #fff5, 0 3px 8px #0008;
color: #fff;
font-family: var(--display);
transition: transform 60ms ease-out;
}

.lobby-rush::after {
content: "›";
flex: none;
margin: 0 2px 2px -2px;
color: var(--gold-light);
font-size: 1.5rem;
line-height: 1;
text-shadow: 0 1px 0 var(--gold-deep), 0 0 6px rgba(255, 212, 90, 0.55);
}

.lobby-rush:active {
transform: scale(0.98);
border-color: #fff1a8;
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 1px var(--gold), inset 0 2px 6px #000a, 0 0 12px rgba(255, 212, 90, 0.6);
}

.lobby-rush:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 2px;
}

.rush-level {
flex: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 50px;
height: 34px;
padding: 0 6px;
border-radius: 9px;
background: var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 #fffbe0, 0 2px 4px #0008;
color: #3a1600;
line-height: 1;
text-shadow: 0 1px 0 #fff3b8;
}

.rush-level-word {
font-size: 0.6rem;
letter-spacing: 0.12em;
margin-left: 0.12em;
}

.rush-level-number {
margin-top: 1px;
font-size: 1.15rem;
font-variant-numeric: tabular-nums;
}

.rush-level-number.long {
font-size: 0.95rem;
}

.rush-bar {
position: relative;
flex: 1 1 auto;
min-width: 0;
height: 24px;
overflow: hidden;
border-radius: 999px;
border: 2px solid var(--gold-dark);
background: linear-gradient(#000, #1b0826 70%, #08020d);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.rush-bar::after {
content: "";
position: absolute;
inset: 0 0 50% 0;
border-radius: 999px 999px 0 0;
background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
pointer-events: none;
}

.rush-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0;
overflow: hidden;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 55%),
linear-gradient(90deg, #8c0e78, var(--magenta) 55%, var(--neon-pink) 85%, #ffb0f0);
box-shadow: 0 0 10px var(--neon-pink);
transition: width 400ms ease-out;
}

.rush-fill.almost::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.7) 50%, transparent 62%) no-repeat;
background-size: 250% 100%;
background-position: 125% 0;
animation: fb-sweep 1.8s ease-in-out infinite;
pointer-events: none;
}

.rush-xp {
position: absolute;
inset: 0;
z-index: 1;
padding: 0 8px;
overflow: hidden;
color: #fff;
font-size: 0.72rem;
line-height: 20px;
letter-spacing: 0.04em;
text-align: center;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 2px #000, 0 0 3px #000;
}

.rush-prize {
position: relative;
flex: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 76px;
height: 34px;
padding: 0 7px;
border-radius: 10px;
border: 2px solid #c99b4c;
background: linear-gradient(#5b1a7c, #2a0839 60%, #18041f);
box-shadow: inset 0 1px 2px #fff4, 0 2px 4px #0008;
}

.rush-prize-row {
display: flex;
align-items: center;
gap: 4px;
}

.rush-coins {
max-width: 56px;
overflow: hidden;
color: var(--gold-light);
font-size: 1rem;
line-height: 1;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 var(--gold-deep), 0 1px 3px #000;
}

.rush-note {
display: none;
margin-top: 0;
color: #ffc9f2;
font-size: 0.6rem;
line-height: 1;
letter-spacing: 0.04em;
white-space: nowrap;
}

.rush-prize.noted .rush-note {
display: block;
}

.rush-pile {
position: relative;
flex: none;
width: 19px;
height: 15px;
background: url("../art/offers/coin-stacks.webp") -10.3px -19.8px / 121.6px 81.1px no-repeat;
filter: drop-shadow(0 0 3px rgba(255, 211, 77, 0.5));
}

.rush-tag {
display: none;
position: absolute;
top: -9px;
left: 50%;
transform: translateX(-50%);
padding: 1px 5px;
border-radius: 999px;
border: 1px solid #fff1a8;
background: linear-gradient(#ff5ad8, #b0128a);
color: #fff;
font-size: 0.6rem;
line-height: 1.1;
letter-spacing: 0.08em;
white-space: nowrap;
box-shadow: 0 1px 3px #000a;
}

.rush-prize.milestone {
padding-top: 3px;
border-color: #fff1a8;
background: var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 #fffbe0, 0 0 10px rgba(255, 212, 90, 0.65);
}

.rush-prize.milestone .rush-tag {
display: block;
}

.rush-prize.milestone .rush-coins {
color: #3a1600;
text-shadow: 0 1px 0 #fff3b8;
}

.rush-prize.milestone.noted {
padding-top: 5px;
}

.rush-prize.milestone.noted .rush-coins {
font-size: 0.88rem;
}

.rush-prize.milestone .rush-note {
color: #5a1a00;
}

.lobby-rush.flare {
animation: rush-flare 700ms ease-out;
}

.lobby-rush.flare .rush-fill {
animation: fb-xp-gain 650ms ease-out;
}

@keyframes rush-flare {
25% { box-shadow: 0 0 0 1px #6a3d18, inset 0 1px 3px #fff5, 0 3px 8px #0008, 0 0 18px 3px rgba(255, 79, 216, 0.85); }
}


/* Source: css/lobby-part-5.css */
@media (max-height: 700px) {
.lobby-rush { height: 44px; }
.rush-prize.noted .rush-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
.lobby-rush,
.rush-fill {
transition: none;
}
.lobby-rush.flare,
.lobby-rush.flare .rush-fill,
.rush-fill.almost::before {
animation: none;
}
}


.lobby-floor {
position: relative;
flex: 1 1 0;
min-height: 0;
display: flex;
flex-direction: column;
margin: 0 -16px;
}

.lobby-floor .game-list {
position: relative;
flex: 1 1 auto;
margin: 0;
}

.lobby-start {
position: absolute;
z-index: 7;
isolation: isolate;
top: 50%;
left: 6px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
width: 26px;
height: 92px;
margin-top: -46px;
padding: 0;
border: 2px solid transparent;
border-radius: var(--radius);
background: none;
box-shadow: none;
color: var(--gold-light);
font-family: var(--display);
line-height: 1;
text-shadow: 0 1px 0 #2a0650, 0 0 6px rgba(255, 220, 120, 0.6);
transition: translate 220ms ease-out, opacity 220ms ease-out;
}

.lobby-start::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: -8px;
width: 44px;
}

.lobby-start::after {
content: "";
position: absolute;
inset: -2px;
z-index: -1;
box-sizing: border-box;
border: 2px solid var(--gold);
border-radius: inherit;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%),
linear-gradient(180deg, #5a2496, #2a0d52 70%, #1a0838);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.65), 0 0 12px rgba(190, 90, 255, 0.5);
pointer-events: none;
transition: translate 80ms ease-out, box-shadow 80ms ease-out, border-color 80ms ease-out;
}

.lobby-start-label,
.lobby-start-arrow {
transition: translate 80ms ease-out;
}

.lobby-start-label {
writing-mode: vertical-rl;
rotate: 180deg;
font-size: 0.72rem;
letter-spacing: 0.14em;
white-space: nowrap;
}

.lobby-start-arrow {
font-size: 1.3rem;
margin-top: -2px;
}

.lobby-start:active:not(:disabled)::after {
translate: 0 1px;
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(190, 90, 255, 0.45), inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.lobby-start:active:not(:disabled) > span {
translate: 0 1px;
}

.lobby-start:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 1px;
}

.lobby-start.off {
translate: -32px 0;
opacity: 0;
pointer-events: none;
}


.league-tab {
--tab-w: 96px;
position: absolute;
z-index: 6;
top: var(--league-tab-top, 116px);
right: 0;
display: flex;
flex-direction: column;
width: var(--tab-w);
padding: 6px 4px 4px 6px;
border: 2px solid var(--gold);
border-right: 0;
border-radius: var(--radius) 0 0 var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 30%),
linear-gradient(180deg, #5a2496, #2a0d52 70%, #1a0838);
box-shadow: 0 0 0 1px var(--gold-deep), -3px 4px 10px rgba(0, 0, 0, 0.6);
}

.league-tab:not(.open) {
--tab-w: 48px;
padding: 0;
}

.league-tab:not(.open) .league-tab-body {
padding: 4px 2px;
}

.league-tab-body {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 3px;
min-width: 0;
min-height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--text);
text-align: left;
}

.league-tab-body:active {
transform: translateY(1px);
}

.league-tab-head {
display: flex;
align-items: center;
gap: 4px;
}

.league-tab-gem {
flex: none;
width: 24px;
height: 24px;
}

.league-tab-gem .league-mark { width: 100%; height: 100%; }

.league-tab-name {
color: var(--gold-light);
font-family: var(--display);
font-size: .75rem;
letter-spacing: 0.04em;
text-shadow: 0 1px 0 #000;
}

.league-tab-place {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.66rem;
line-height: 1.1;
letter-spacing: 0.02em;
text-wrap: balance;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

.league-tab-division {
white-space: nowrap;
}

.league-tab.short .league-tab-division {
display: none;
}

.league-tab.compact.open .league-tab-place {
display: none;
}

.league-tab.up .league-tab-place { color: #7affb0; }
.league-tab.down .league-tab-place { color: #ffabb5; }

.league-tab-rows {
display: flex;
flex-direction: column;
}

.league-tab-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 4px;
min-height: 20px;
padding: 2px 2px;
border-top: 1px solid var(--hairline);
color: var(--muted);
font-family: var(--display);
font-size: .75rem;
letter-spacing: 0.02em;
white-space: nowrap;
line-height: 1.1;
}

.league-tab-row:last-child {
border-bottom: 1px solid var(--hairline);
}

.league-tab-row-score {
color: var(--gold-light);
font: 600 .72rem / 1.1 var(--body);
font-variant-numeric: tabular-nums;
text-align: right;
white-space: normal;
overflow-wrap: anywhere;
}

.league-tab-row:not(.you) .league-tab-row-rank { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.league-tab-row:not(.you) .league-tab-row-score { flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }

.league-tab-row.you {
color: var(--gold);
display: grid;
grid-template-columns: 13px minmax(0, 1fr) minmax(0, max-content);
grid-template-rows: auto auto;
gap: 0 2px;
line-height: 1.1;
padding-block: 0;
}

.league-tab-identity { display: contents; }
.league-tab-identity[hidden] { display: none; }
.league-tab-player-name {
grid-column: 2 / -1;
grid-row: 1;
align-self: center;
overflow: hidden;
font-size: max(11px, .73rem);
letter-spacing: 0;
}
.league-tab-player-name > span { display: block; width: max-content; transform-origin: left center; }
.league-tab-identity .league-face { grid-column: 1; grid-row: 1; align-self: center; width: 13px; height: 13px; }
.league-tab-row.you .league-tab-row-rank { grid-column: 1 / 3; grid-row: 2; align-self: center; }
.league-tab-row.you .league-tab-row-score { grid-column: 3; grid-row: 2; align-self: center; }

.league-tab-time {
align-self: flex-start;
padding: 2px 4px;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: rgba(0, 0, 0, 0.45);
color: var(--text);
font-family: var(--display);
font-size: 11px;
line-height: 1.1;
letter-spacing: 0.02em;
white-space: nowrap;
}

.league-tab-toggle {
position: absolute;
right: 4px;
bottom: 4px;
display: grid;
place-items: center;
width: 44px;
height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--gold-light);
}

.league-tab-toggle svg {
width: 26px;
height: 26px;
padding: 3px;
border-radius: 50%;
background: linear-gradient(180deg, #8d5fff, #5a2fd6);
box-shadow: 0 0 0 1px var(--gold-deep);
fill: none;
stroke: currentColor;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}

.league-tab.open .league-tab-body {
padding-bottom: 44px;
}

.league-tab.open .league-tab-time {
position: absolute;
left: 6px;
bottom: 15px;
}

.league-tab:not(.open) .league-tab-name,
.league-tab:not(.open) .league-tab-rows,
.league-tab:not(.open) .league-tab-toggle {
display: none;
}

.league-tab:not(.open) .league-tab-body {
align-items: center;
text-align: center;
}

.league-tab:not(.open) .league-tab-head {
justify-content: center;
}

.league-tab:not(.open) .league-tab-gem {
width: 28px;
height: 28px;
}

.league-tab:not(.open) .league-tab-place,
.league-tab:not(.open) .league-tab-time {
align-self: center;
}

@media (max-height: 700px) {
.league-tab { top: var(--league-tab-top, 112px); }
}


.lobby.enter .game-list > .game-card {
animation: lobby-card-in 320ms cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
}

.lobby.enter .game-list > .game-card:nth-child(2) { animation-delay: 60ms; }
.lobby.enter .game-list > .game-card:nth-child(3) { animation-delay: 120ms; }
.lobby.enter .game-list > .game-card:nth-child(4) { animation-delay: 180ms; }
.lobby.enter .game-list > .game-card:nth-child(5) { animation-delay: 240ms; }
.lobby.enter .game-list > .game-card:nth-child(n + 6) { animation-delay: 300ms; }

.lobby.enter .lobby-sign-title {
background-image:
linear-gradient(105deg, transparent 44%, rgba(255, 255, 240, 0.95) 50%, transparent 56%),
var(--gold-bevel);
background-size: 300% 100%, 100% 100%;
background-repeat: no-repeat;
background-position: 0 0, 0 0;
animation: lobby-sign-shimmer 800ms ease-in-out 160ms backwards;
}

.lobby.enter .lobby-tiles .tile {
animation: lobby-tile-pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 160ms backwards;
}

.lobby.enter .lobby-tiles .tile:nth-child(2) { animation-delay: 205ms; }
.lobby.enter .lobby-tiles .tile:nth-child(3) { animation-delay: 250ms; }
.lobby.enter .lobby-tiles .tile:nth-child(4) { animation-delay: 295ms; }

@keyframes lobby-card-in {
from { opacity: 0; transform: translateX(56px); }
}

@keyframes lobby-sign-shimmer {
from { background-position: 100% 0, 0 0; }
to { background-position: 0 0, 0 0; }
}

@keyframes lobby-tile-pop {
from { opacity: 0; transform: translateY(22px) scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
.lobby.enter .game-list > .game-card,
.lobby.enter .lobby-sign-title,
.lobby.enter .lobby-tiles .tile {
animation: none;
}
.lobby-start,
.lobby-start::after,
.lobby-start-label,
.lobby-start-arrow {
transition: none;
}
.lobby-start:active:not(:disabled)::after,
.lobby-start:active:not(:disabled) > span {
translate: none;
}
.lobby-start:active:not(:disabled)::after {
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.65), 0 0 10px rgba(190, 90, 255, 0.45), inset 0 2px 3px rgba(0, 0, 0, 0.45);
}
}

.lobby.enter.entered,
.lobby.enter.entered .game-list > .game-card,
.lobby.enter.entered .lobby-sign-title,
.lobby.enter.entered .lobby-tiles .tile,
.lobby.enter.entered .lobby-bonus .bonus-pod,
.lobby.enter.entered .lobby-bonus .bonus-wheel {
animation-duration: 0s;
animation-delay: 0s;
animation-fill-mode: none;
}


.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon, :active, :focus-visible)::after {
border-image: none;
box-shadow: inset 0 0 0 1px var(--cabinet-light), inset 0 0 12px var(--cabinet-glow);
animation: fb-card-breathe 5s ease-in-out infinite alternate, lobby-idle-tube 900ms ease-out;
}

.lobby.lobby-motion-active.idle .game-card.sapphire.card-motion-in-view.attract:not(.soon, :active, :focus-visible)::after {
animation-delay: -2.5s, 0s;
}

.lobby .tile.nudge .tile-ring > .lobby-art {
animation: lobby-idle-rock 640ms ease-in-out;
}

.lobby .tile.nudge .tile-state {
animation: lobby-idle-bump 520ms ease-out 80ms;
}

.lobby .lobby-inbox-count.nudge {
transform-origin: 50% 100%;
animation: lobby-idle-wobble 720ms ease-in-out;
}

@keyframes lobby-idle-tube {
22% {
opacity: 1;
box-shadow: inset 0 0 0 2px rgba(255, 244, 205, 0.95), inset 0 0 0 4px rgba(255, 214, 240, 0.85),
inset 0 0 22px rgba(255, 200, 240, 0.75);
}
}

@keyframes lobby-idle-rock {
20% { rotate: -8deg; }
50% { rotate: 8deg; }
78% { rotate: -3deg; }
}

@keyframes lobby-idle-bump {
35% { scale: 1.1; }
70% { scale: 0.98; }
}

@keyframes lobby-idle-wobble {
15% { rotate: -14deg; scale: 1.12; }
40% { rotate: 12deg; }
62% { rotate: -7deg; }
82% { rotate: 3deg; }
}

@media (prefers-reduced-motion: reduce) {
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon)::after,
.lobby .tile.nudge .tile-ring > .lobby-art,
.lobby .tile.nudge .tile-state,
.lobby .lobby-inbox-count.nudge {
animation: none;
}
}

/* Source: css/lobby-part-6.css */
.game-card {
--scene-focus-x: 50%;
--scene-focus-y: calc(28cqh + 8cqw);
--scene-core: #fff8cf;
--scene-warm: #ffd57499;
--scene-cool: #b951ff80;
--scene-period: 8.4s;
--scene-delay: -2.2s;
}
.game-card:nth-child(4n + 2) { --scene-period: 9.6s; --scene-delay: -3.8s; }
.game-card:nth-child(4n + 3) { --scene-period: 7.8s; --scene-delay: -5.4s; }
.game-card:nth-child(4n) { --scene-period: 10.6s; --scene-delay: -7s; }

.game-card-scene {
position: absolute;
inset: 0;
z-index: 0;
container-type: size;
overflow: hidden;
border-radius: inherit;
opacity: 0;
pointer-events: none;
}
.game-card-scene *,
.game-card-scene *::after,
.game-card-footlight,
.game-card-footlight::before,
.game-card-footlight::after { pointer-events: none; }

.game-card-scene-halo,
.game-card-scene-trace,
.game-card-scene-flare {
position: absolute;
display: block;
left: var(--scene-focus-x);
top: var(--scene-focus-y);
width: 30cqw;
height: 30cqw;
border-radius: 50%;
transform: translate(-50%, -50%);
}
.game-card-scene-halo {
background: radial-gradient(ellipse, var(--scene-core), var(--scene-warm) 16%, var(--scene-cool) 38%, transparent 70%);
opacity: .14;
animation: lobby-scene-bloom var(--scene-period) ease-in-out var(--scene-delay) infinite;
animation-play-state: paused;
}
.game-card-scene-trace {
width: 9cqw;
height: 9cqw;
background: radial-gradient(circle, var(--scene-core), var(--scene-warm) 34%, transparent 72%);
clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
opacity: .18;
animation: lobby-scene-glint calc(var(--scene-period) + 1s) ease-in-out var(--scene-delay) infinite;
animation-play-state: paused;
}
.game-card-scene-flare {
width: 34cqw;
height: 34cqw;
background: radial-gradient(ellipse, var(--scene-core), var(--scene-warm) 20%, var(--scene-cool) 42%, transparent 70%);
opacity: 0;
}

.game-card[data-cabinet="storm"] {
--scene-focus-x: 38%;
--scene-focus-y: calc(28cqh - 16cqw);
--scene-warm: #ffb939b3;
--scene-cool: #ff761f80;
--scene-vortex: #5de7ffaa;
}
.game-card[data-cabinet="storm"] .game-card-scene-halo {
width: 48cqw;
height: 44cqw;
background: radial-gradient(ellipse, transparent 18%, var(--scene-warm) 30%, var(--scene-cool) 42%, transparent 66%);
animation-name: lobby-scene-warm-turn;
}
.game-card[data-cabinet="storm"] .game-card-scene-trace {
left: 62%;
top: calc(28cqh + 18cqw);
width: 45cqw;
height: 32cqw;
clip-path: none;
background: radial-gradient(ellipse, transparent 33%, var(--scene-vortex) 43%, transparent 52%);
-webkit-mask-image: conic-gradient(transparent 0deg, #000 65deg, #000 180deg, transparent 235deg);
mask-image: conic-gradient(transparent 0deg, #000 65deg, #000 180deg, transparent 235deg);
animation-name: lobby-scene-cool-turn;
}
.game-card[data-cabinet="lagoon"] {
--scene-focus-x: 51%;
--scene-focus-y: calc(28cqh + 12cqw);
--scene-core: #f4ffff;
--scene-warm: #f9cbff99;
--scene-cool: #7eedff80;
}
.game-card[data-cabinet="lagoon"] .game-card-scene-trace {
top: calc(28cqh + 25cqw);
width: 57cqw;
height: 8cqw;
clip-path: none;
background: radial-gradient(ellipse, transparent 38%, var(--scene-core) 46%, var(--scene-cool) 52%, transparent 65%);
animation-name: lobby-scene-ripple;
}
.game-card[data-cabinet="frontier"] {
--scene-focus-y: calc(28cqh - 24cqw);
--scene-warm: #ffc46e99;
--scene-cool: #ff8d3873;
}
.game-card[data-cabinet="frontier"] .game-card-scene-halo {
left: 6%;
top: calc(28cqh + 14cqw);
width: 17cqw;
height: 92cqw;
background: radial-gradient(ellipse, var(--scene-warm), var(--scene-cool) 30%, transparent 70%);
animation-name: lobby-scene-dawn;
}
.game-card[data-cabinet="frontier"] .game-card-scene-flare { width: 23cqw; height: 23cqw; }
.game-card[data-cabinet="aurora"] {
--scene-focus-x: 88%;
--scene-focus-y: calc(28cqh - 10cqw);
--scene-core: #e1fff4;
--scene-warm: #64ffc499;
--scene-cool: #b988ff80;
}
.game-card[data-cabinet="aurora"] .game-card-scene-halo {
left: 8%;
top: 16%;
width: 24cqw;
height: 78cqw;
background: radial-gradient(ellipse, var(--scene-warm), transparent 67%);
animation-name: lobby-scene-curtain;
}
.game-card[data-cabinet="aurora"] .game-card-scene-trace {
left: 92%;
top: 18%;
width: 24cqw;
height: 73cqw;
clip-path: none;
background: radial-gradient(ellipse, var(--scene-cool), transparent 67%);
animation-name: lobby-scene-curtain-return;
}
.game-card[data-cabinet="aurora"] .game-card-scene-trace::after {
content: "";
position: absolute;
top: 47%;
left: 28%;
width: 6cqw;
height: 6cqw;
background: var(--scene-core);
clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.game-card[data-cabinet="imperial"] {
--scene-focus-x: 50%;
--scene-focus-y: calc(28cqh - 6cqw);
--scene-core: #fff6cf;
--scene-warm: #ffd05999;
--scene-cool: #e8325878;
}
.game-card[data-cabinet="mascot"] {
--scene-focus-x: 50%;
--scene-focus-y: calc(28cqh + 2cqw);
--scene-core: #f2ffe6;
--scene-warm: #ffe86e99;
--scene-cool: #34e07c80;
}

.game-card-footlight {
position: absolute;
z-index: 4;
left: 5px;
right: 5px;
bottom: 0;
height: 7px;
overflow: hidden;
border-radius: 0 0 3px 3px;
opacity: 0;
}
.game-card-footlight::before,
.game-card-footlight::after {
content: "";
position: absolute;
inset: 0;
}
.game-card-footlight::before {
background: radial-gradient(ellipse at 50% 100%, var(--cabinet-light), var(--cabinet-glow) 35%, transparent 72%);
opacity: .16;
animation: lobby-foot-breathe var(--scene-period) ease-in-out var(--scene-delay) infinite;
animation-play-state: paused;
}
.game-card-footlight::after {
background: linear-gradient(100deg, transparent 15%, var(--cabinet-light) 42%, var(--scene-core) 50%, var(--cabinet-light) 58%, transparent 85%);
opacity: 0;
transform: translateX(-110%);
}

.lobby.lobby-motion-active.idle .game-card.card-motion-in-view:not(.soon) :is(.game-card-scene, .game-card-footlight) { opacity: 1; }
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view:not(.soon) :is(.game-card-scene-halo, .game-card-scene-trace),
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view:not(.soon) .game-card-footlight::before { animation-play-state: running; }
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-card-scene-flare { animation: lobby-scene-flare 880ms ease-out; }
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-card-footlight::after { animation: lobby-foot-sweep 880ms ease-out; }

.game-logo-sheen {
position: absolute;
inset: 0;
display: block;
opacity: 0;
pointer-events: none;
-webkit-mask-image: linear-gradient(105deg, transparent 36%, #000b 46%, #000 50%, #000b 54%, transparent 64%);
mask-image: linear-gradient(105deg, transparent 36%, #000b 46%, #000 50%, #000b 54%, transparent 64%);
}
.game-logo-sheen use { --logo-face: #fffbe6; stroke: none; }
@media (prefers-reduced-motion: no-preference) {
body:not(.scene-motion-paused) .lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-logo-sheen {
animation: lobby-logo-sheen 880ms ease-in-out;
}
body:not(.scene-motion-paused) .lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-logo-sheen > svg {
animation: lobby-logo-sheen-hold 880ms ease-in-out;
}
}
@keyframes lobby-logo-sheen {
from { opacity: 1; transform: translateX(-100%); }
to { opacity: 1; transform: translateX(100%); }
}
@keyframes lobby-logo-sheen-hold {
from { transform: translateX(100%); }
to { transform: translateX(-100%); }
}

@keyframes lobby-scene-bloom {
0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.86); }
50% { opacity: .56; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes lobby-scene-glint {
0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.7) rotate(-8deg); }
50% { opacity: .82; transform: translate(-50%, -50%) scale(1.15) rotate(8deg); }
}
@keyframes lobby-scene-warm-turn {
0%, 100% { opacity: .12; transform: translate(-50%, -50%) rotate(-7deg) scale(.94); }
50% { opacity: .52; transform: translate(-50%, -50%) rotate(7deg) scale(1.07); }
}
@keyframes lobby-scene-cool-turn {
0%, 100% { opacity: .16; transform: translate(-50%, -50%) rotate(12deg) scale(.94); }
50% { opacity: .7; transform: translate(-50%, -50%) rotate(-12deg) scale(1.08); }
}
@keyframes lobby-scene-ripple {
0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.82, .88); }
50% { opacity: .56; transform: translate(-50%, -50%) scale(1.1, 1.12); }
}
@keyframes lobby-scene-dawn {
0%, 100% { opacity: .16; transform: translate(-50%, -50%) rotate(-4deg) scale(.94); }
50% { opacity: .65; transform: translate(-50%, -50%) rotate(3deg) scale(1.08); }
}
@keyframes lobby-scene-curtain {
0%, 100% { opacity: .14; transform: translate(-50%, -50%) rotate(-8deg); }
50% { opacity: .68; transform: translate(-40%, -47%) rotate(8deg); }
}
@keyframes lobby-scene-curtain-return {
0%, 100% { opacity: .6; transform: translate(-50%, -50%) rotate(8deg); }
50% { opacity: .14; transform: translate(-62%, -54%) rotate(-8deg); }
}
@keyframes lobby-scene-flare {
0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
30% { opacity: .72; transform: translate(-50%, -50%) scale(1.08); }
65% { opacity: .26; transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes lobby-foot-breathe {
0%, 100% { opacity: .12; transform: scaleX(.8); }
50% { opacity: .4; transform: scaleX(1.1); }
}
@keyframes lobby-foot-sweep {
0% { opacity: 0; transform: translateX(-110%); }
30% { opacity: .88; }
65% { opacity: .45; }
100% { opacity: 0; transform: translateX(110%); }
}

.lobby .game-card:not(.card-motion-in-view)::after,
.lobby .game-card:not(.card-motion-in-view) .game-card-rim::before,
.lobby .game-card:not(.card-motion-in-view) .game-card-sparkles::before,
.lobby .game-card:not(.card-motion-in-view) .game-card-sparkles::after,
.lobby .game-card:not(.card-motion-in-view) :is(.game-feature-shine, .game-logo-sparks),
.lobby:not(.lobby-motion-active) .game-card::after,
.lobby:not(.lobby-motion-active) .game-card-rim::before,
.lobby:not(.lobby-motion-active) .game-card-sparkles::before,
.lobby:not(.lobby-motion-active) .game-card-sparkles::after,
.lobby:not(.lobby-motion-active) :is(.game-feature-shine, .game-logo-sparks, .lobby-marquee-line, .lobby-ambient > span, .lobby-season > span, .lobby-pig, .wheel-icon),
.lobby:not(.lobby-motion-active) .lobby-sign::before,
.lobby:not(.lobby-motion-active) .lobby-sign::after,
.lobby:not(.lobby-motion-active) .lobby-season > span::after,
.lobby:not(.lobby-motion-active) .tile-ring::after,
.lobby:not(.lobby-motion-active) .lobby-avatar::after,
.lobby:not(.lobby-motion-active) .lobby-bank::after,
.lobby:not(.lobby-motion-active) .lobby-buy::after,
.lobby:not(.lobby-motion-active) .bonus-pod::after { animation-play-state: paused !important; }

body.scene-motion-paused .lobby :is(.game-card-scene, .game-card-footlight) { opacity: 0 !important; }
body.scene-motion-paused .lobby :is(.game-card-scene-halo, .game-card-scene-trace, .game-card-scene-flare),
body.scene-motion-paused .lobby .game-card-footlight::before,
body.scene-motion-paused .lobby .game-card-footlight::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view:not(.soon) :is(.game-card-scene, .game-card-footlight) { opacity: 0; }
.lobby .game-card :is(.game-card-scene-halo, .game-card-scene-trace),
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-card-scene-flare,
.lobby .game-card .game-card-footlight::before,
.lobby.lobby-motion-active.idle .game-card.card-motion-in-view.attract:not(.soon) .game-card-footlight::after { animation: none; }
}


.lobby-season {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}

.lobby-season > span {
position: absolute;
display: block;
line-height: 1;
pointer-events: none;
}

.lobby-season > span > img {
display: block;
width: 1em;
height: 1em;
}

#lobby[data-season="halloween"] .lobby-season,
#lobby[data-season="halloween"] .row-curtain::after {
background:
radial-gradient(ellipse at 50% 108%, #3dff6a26, transparent 55%),
radial-gradient(ellipse at 50% -8%, #52ff3a1c, transparent 45%),
linear-gradient(#2cff6a0d, #2cff6a12);
}

#lobby[data-season="halloween"] .lobby-topbar .credits {
position: relative;
}

#lobby[data-season="halloween"] .lobby-topbar .credits::after {
content: "";
position: absolute;
left: 20px;
right: 64px;
top: calc(100% - 3px);
z-index: 1;
height: 14px;
pointer-events: none;
background:
url("../art/seasons/slime.webp") 0 -6.5px / 27px 27px no-repeat,
url("../art/seasons/slime.webp") 34% -6.5px / 27px 27px no-repeat,
url("../art/seasons/slime.webp") 67% -6.5px / 27px 27px no-repeat,
url("../art/seasons/slime.webp") 100% -6.5px / 27px 27px no-repeat;
filter: drop-shadow(0 0 3px #7dff3a88);
}

#lobby[data-season="halloween"] .lobby-sign::before,
#lobby[data-season="halloween"] .lobby-sign::after {
content: "";
top: -1px;
width: 30px;
height: 30px;
opacity: 0.9;
filter: none;
transform: none;
animation: none;
background: url("../art/seasons/cobweb.webp") 0 0 / 100% 100% no-repeat;
}

#lobby[data-season="halloween"] .lobby-sign::before {
left: -3px;
}

#lobby[data-season="halloween"] .lobby-sign::after {
left: auto;
right: -3px;
transform: scaleX(-1);
}

.lobby-season .season-pumpkin {
bottom: calc(var(--safe-bottom) * 0.2 + 2px);
left: 1px;
font-size: 26px;
filter: drop-shadow(0 0 6px #ff8a1c99);
}

.lobby-season .season-pumpkin.n1 {
left: 25px;
bottom: calc(var(--safe-bottom) * 0.2 + 1px);
font-size: 18px;
}

.lobby-season .season-pumpkin.n2 {
left: auto;
right: 1px;
font-size: 24px;
}


/* Source: css/lobby-part-7.css */
#lobby[data-season="winter"] .lobby-season,
#lobby[data-season="winter"] .row-curtain::after {
background:
radial-gradient(circle at 0 100%, #e6f6ff2e, transparent 90px),
radial-gradient(circle at 100% 100%, #e6f6ff2e, transparent 90px),
radial-gradient(ellipse at 50% 0, #6ec8ff24, transparent 60%),
linear-gradient(#4aa8ff1c, #4aa8ff2b);
}

#lobby[data-season="winter"] { --topbar-hang: 17px; }

#lobby[data-season="winter"] .topbar::after {
content: "";
position: absolute;
left: -8px;
right: -8px;
top: calc(100% + 4px);
z-index: 1;
height: calc(var(--topbar-hang) - 4px);
pointer-events: none;
background: url("../art/seasons/icicles.webp") 0 -4.4px / 22px 22px repeat-x;
filter: drop-shadow(0 0 2px #9fdcffaa);
}

.lobby-season .season-frost {
bottom: 0;
left: 0;
width: 110px;
height: 110px;
display: flex;
align-items: flex-end;
padding: 0 0 calc(var(--safe-bottom) * 0.2 + 6px) 8px;
box-sizing: border-box;
font-size: 24px;
opacity: 0.8;
background:
radial-gradient(circle at 34% 42%, #f2fbff99 0 1.5px, transparent 2px),
radial-gradient(circle at 62% 78%, #f2fbff99 0 1px, transparent 1.5px),
radial-gradient(circle at 18% 20%, #f2fbff80 0 1px, transparent 1.5px),
radial-gradient(circle at 0 100%, #eaf8ff70, #cfeaff2b 45%, transparent 70%);
}

.lobby-season .season-frost.n1 {
left: auto;
right: 0;
transform: scaleX(-1);
}

.lobby-season .season-flake,
.lobby-season .season-petal {
top: -30px;
left: var(--x, 50%);
font-size: 14px;
transform: translate3d(0, var(--rest, 30vh), 0);
animation: season-fall var(--fall, 16s) linear infinite;
animation-delay: var(--at, 0s);
}

.lobby-season .season-flake {
opacity: 0.8;
}

.lobby-season :is(.season-flake, .season-petal).n0 { --x: 1%; --fall: 15s; --at: -2s; --drift: 6px; --rest: 12vh; }
.lobby-season :is(.season-flake, .season-petal).n1 { --x: 21%; --fall: 19s; --at: -11s; --drift: -18px; --rest: 64vh; }
.lobby-season :is(.season-flake, .season-petal).n2 { --x: 44%; --fall: 17s; --at: -6s; --drift: 22px; --rest: 37vh; }
.lobby-season :is(.season-flake, .season-petal).n3 { --x: 96%; --fall: 21s; --at: -15s; --drift: -5px; --rest: 85vh; }
.lobby-season :is(.season-flake, .season-petal).n4 { --x: 67%; --fall: 16s; --at: -4s; --drift: 18px; --rest: 22vh; }
.lobby-season :is(.season-flake, .season-petal).n5 { --x: 2%; --fall: 20s; --at: -13s; --drift: 4px; --rest: 74vh; }
.lobby-season :is(.season-flake, .season-petal).n6 { --x: 95%; --fall: 18s; --at: -8s; --drift: -4px; --rest: 48vh; }
.lobby-season .season-flake.n1,
.lobby-season .season-flake.n4 { font-size: 11px; }
.lobby-season .season-flake.n3,
.lobby-season .season-flake.n6 { font-size: 17px; }

@keyframes season-fall {
from { transform: translate3d(0, 0, 0) rotate(0deg); }
to { transform: translate3d(var(--drift, 20px), calc(100vh + 60px), 0) rotate(var(--spin, 180deg)); }
}

#lobby[data-season="newyear"] .lobby-season,
#lobby[data-season="newyear"] .row-curtain::after {
background:
radial-gradient(ellipse at 50% 0, #ff3b3b24, transparent 55%),
radial-gradient(ellipse at 50% 105%, #ffc23a1f, transparent 50%),
linear-gradient(#ff4a3a0d, #ffb43a0f);
}

#lobby[data-season="newyear"] .lobby-sign::before,
#lobby[data-season="newyear"] .lobby-sign::after {
content: "";
width: 30px;
height: 30px;
background: url("../art/seasons/lantern.webp") center / contain no-repeat;
filter: drop-shadow(0 0 5px #ff5a3c);
animation: season-swing 3.2s ease-in-out infinite alternate;
}

#lobby[data-season="newyear"] .lobby-sign::after {
animation-delay: -1.6s;
}

@keyframes season-swing {
from { transform: translateY(-50%) rotate(-7deg); }
to { transform: translateY(-50%) rotate(7deg); }
}

.lobby-season .season-confetti {
width: 7px;
height: 7px;
border-radius: 1px;
background: linear-gradient(135deg, #fff3b8, #f3c13a 55%, #b8801c);
box-shadow: 0 0 6px #ffd76a;
transform: rotate(45deg);
animation: season-glint 2.8s ease-in-out infinite;
}

.lobby-season .season-confetti.n0 { bottom: calc(var(--safe-bottom) * 0.2 + 12px); left: 4%; }
.lobby-season .season-confetti.n1 { bottom: calc(var(--safe-bottom) * 0.2 + 5px); left: 21%; animation-delay: -0.9s; }
.lobby-season .season-confetti.n2 { bottom: calc(var(--safe-bottom) * 0.2 + 10px); left: 39%; animation-delay: -1.7s; }
.lobby-season .season-confetti.n3 { bottom: calc(var(--safe-bottom) * 0.2 + 4px); left: 59%; animation-delay: -0.4s; }
.lobby-season .season-confetti.n4 { bottom: calc(var(--safe-bottom) * 0.2 + 11px); left: 77%; animation-delay: -2.2s; }
.lobby-season .season-confetti.n5 { bottom: calc(var(--safe-bottom) * 0.2 + 6px); right: 4%; animation-delay: -1.3s; }

@keyframes season-glint {
0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.6); }
50% { opacity: 1; transform: rotate(45deg) scale(1); }
}

#lobby[data-season="spring"] .lobby-season,
#lobby[data-season="spring"] .row-curtain::after {
background:
radial-gradient(ellipse at 20% 0, #ff8fd02a, transparent 55%),
radial-gradient(ellipse at 80% 105%, #ffb0de22, transparent 50%),
linear-gradient(#ff7ac814, #ff7ac822);
}

.lobby-season .season-petal {
--spin: 320deg;
font-size: 15px;
opacity: 0.85;
}

.lobby-season .season-petal.n1,
.lobby-season .season-petal.n4 { font-size: 12px; }

#lobby[data-season="summer"] .lobby-season,
#lobby[data-season="summer"] .row-curtain::after {
background:
radial-gradient(circle at 96% 0, #ffe08a59, #ffc85a1f 22%, transparent 48%),
radial-gradient(ellipse at 50% 105%, #ffb84a1f, transparent 55%),
linear-gradient(#ffc84a0d, #ffa03a12);
}

#lobby[data-season="summer"] .lobby-sign::after {
content: "";
width: 26px;
height: 26px;
background: url("../art/seasons/sun.webp") center / contain no-repeat;
filter: drop-shadow(0 0 6px #ffd76a);
animation: none;
transform: translateY(-50%);
}

.lobby-season .season-palm {
bottom: calc(var(--safe-bottom) * 0.2 + 2px);
left: 1px;
font-size: 26px;
}

.lobby-season .season-palm.n1 {
left: auto;
right: 1px;
transform: scaleX(-1);
}

#lobby[data-season="autumn"] .lobby-season,
#lobby[data-season="autumn"] .row-curtain::after {
background:
radial-gradient(ellipse at 50% 0, #ffb04a24, transparent 60%),
radial-gradient(ellipse at 50% 105%, #d9742a1f, transparent 55%),
linear-gradient(#e0902a12, #c8601e1f);
}

#lobby[data-season="autumn"] { --topbar-hang: 14px; }

#lobby[data-season="autumn"] .topbar::after {
content: "";
position: absolute;
left: -8px;
right: -8px;
top: calc(100% + 4px);
z-index: 1;
height: calc(var(--topbar-hang) - 4px);
pointer-events: none;
background: url("../art/seasons/garland.webp") 0 -9px / 28px 28px space no-repeat;
filter: drop-shadow(0 0 2px #ffb04a99);
}

.lobby-season .season-leaf {
bottom: calc(var(--safe-bottom) * 0.2 + var(--y, 2px));
left: var(--x, 2px);
font-size: var(--size, 18px);
opacity: 0.9;
transform: rotate(var(--tilt, 0deg));
animation: season-settle var(--fall, 2.8s) cubic-bezier(0.25, 0.6, 0.4, 1) var(--at, 0s) both;
}

.lobby-season .season-leaf.n0 { --x: 2px; --y: 4px; --size: 20px; --tilt: -24deg; --sway: 46px; --at: 0s; }
.lobby-season .season-leaf.n1 { --x: 20px; --y: 1px; --size: 15px; --tilt: 38deg; --sway: -30px; --fall: 3.1s; --at: 0.3s; }
.lobby-season .season-leaf.n2 { --x: 33px; --y: 3px; --size: 12px; --tilt: 112deg; --sway: 38px; --fall: 2.5s; --at: 0.5s; }
.lobby-season .season-leaf.n3,
.lobby-season .season-leaf.n4,
.lobby-season .season-leaf.n5 { left: auto; right: var(--x, 2px); }
.lobby-season .season-leaf.n3 { --x: 3px; --y: 3px; --size: 19px; --tilt: 20deg; --sway: -42px; --fall: 3s; --at: 0.15s; }
.lobby-season .season-leaf.n4 { --x: 22px; --y: 2px; --size: 14px; --tilt: -50deg; --sway: 34px; --fall: 2.6s; --at: 0.4s; }
.lobby-season .season-leaf.n5 { --x: 34px; --y: 2px; --size: 11px; --tilt: -130deg; --sway: -26px; --fall: 2.9s; --at: 0.6s; }

@keyframes season-settle {
from { opacity: 0; transform: translate3d(var(--sway, 30px), -100vh, 0) rotate(calc(var(--tilt, 0deg) + 300deg)); }
12% { opacity: 0.9; }
45% { transform: translate3d(calc(var(--sway, 30px) * -0.6), -52vh, 0) rotate(calc(var(--tilt, 0deg) + 140deg)); }
75% { transform: translate3d(calc(var(--sway, 30px) * 0.3), -18vh, 0) rotate(calc(var(--tilt, 0deg) + 40deg)); }
to { opacity: 0.9; transform: rotate(var(--tilt, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
#lobby .lobby-season > span,
#lobby .lobby-season > span::after {
animation: none;
}
#lobby[data-season="newyear"] .lobby-sign::before,
#lobby[data-season="newyear"] .lobby-sign::after {
animation: none;
transform: translateY(-50%);
}
}


.lobby-ambient {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}

.lobby-ambient > span {
position: absolute;
display: block;
pointer-events: none;
}

.ambient-spark {
left: var(--x, 50%);
top: var(--y, 80%);
width: calc(var(--s, 9px) * 2);
height: calc(var(--s, 9px) * 2);
margin: calc(var(--s, 9px) * -1) 0 0 calc(var(--s, 9px) * -1);
border-radius: 50%;
background: radial-gradient(circle, var(--lobby-ambient-gold-bright), var(--lobby-ambient-gold-faint) 40%, transparent 70%);
opacity: 0.6;
animation: ambient-drift var(--for, 22s) linear infinite;
animation-delay: var(--at, 0s);
}

.ambient-spark::before {
content: "";
position: absolute;
inset: 25%;
background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.ambient-spark.n0 { --x: 3%; --y: 96%; --s: 11px; --for: 22s; --at: -4s; --rise: -26vh; --sway: 12px; --turn: 320deg; }
.ambient-spark.n1 { --x: 97%; --y: 92%; --s: 12px; --for: 26s; --at: -17s; --rise: -30vh; --sway: -14px; --turn: -300deg; }
.ambient-spark.n2 { --x: 53.1%; --y: 70%; --s: 9px; --for: 20s; --at: -11s; --rise: -40vh; --sway: 4px; --turn: 260deg; }
.ambient-spark.n3 { --x: 24%; --y: 100%; --s: 14px; --for: 28s; --at: -8s; --rise: -24vh; --sway: -12px; --turn: 360deg; }
.ambient-spark.n4 { --x: 78%; --y: 99%; --s: 10px; --for: 21s; --at: -2s; --rise: -22vh; --sway: 12px; --turn: -240deg; }
.ambient-spark.n5 { --x: 2%; --y: 29%; --s: 8px; --for: 15s; --at: -9s; --rise: -10vh; --sway: 5px; --turn: 220deg; }
.ambient-spark.n6 { --x: 64%; --y: 86%; --s: 10px; --for: 23s; --at: -15s; --rise: -18vh; --sway: -10px; --turn: 280deg; }
.ambient-spark.n7 { --x: 98%; --y: 30%; --s: 9px; --for: 18s; --at: -5s; --rise: -11vh; --sway: -5px; --turn: -200deg; }
.ambient-spark.n8 { --x: 44%; --y: 100%; --s: 9px; --for: 25s; --at: -20s; --rise: -28vh; --sway: 14px; --turn: -320deg; }
.ambient-spark.n9 { --x: 12%; --y: 75%; --s: 12px; --for: 27s; --at: -12s; --rise: -16vh; --sway: -14px; --turn: 300deg; }
.ambient-spark.n10 { --x: 36%; --y: 74%; --s: 7px; --for: 19s; --at: -3s; --rise: -10vh; --sway: 10px; --turn: -260deg; }
.ambient-spark.n11 { --x: 71%; --y: 75%; --s: 11px; --for: 24s; --at: -18s; --rise: -12vh; --sway: -8px; --turn: 300deg; }

@keyframes ambient-drift {
0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7); }
20% { opacity: 0.9; }
50% { transform: translate3d(var(--sway, 10px), calc(var(--rise, -30vh) * 0.5), 0) rotate(calc(var(--turn, 300deg) * 0.5)) scale(1); }
80% { opacity: 0.899; }
100% { opacity: 0; transform: translate3d(calc(var(--sway, 10px) * -0.5), var(--rise, -30vh), 0) rotate(var(--turn, 300deg)) scale(0.8); }
}

.ambient-beam {
left: 50%;
top: -15vh;
width: 18px;
height: 130vh;
margin-left: -9px;
background: linear-gradient(180deg, transparent, var(--lobby-ambient-magenta-beam) 22%, var(--lobby-ambient-gold-beam) 50%, var(--lobby-ambient-magenta-beam) 78%, transparent);
-webkit-mask-image: linear-gradient(90deg, transparent, #000 44%, #000 56%, transparent);
mask-image: linear-gradient(90deg, transparent, #000 44%, #000 56%, transparent);
opacity: 0;
transform: translateX(calc(-50vw - 40vh)) rotate(-35deg);
animation: ambient-beam 14s infinite;
animation-delay: -3s;
}

@keyframes ambient-beam {
0% { opacity: 0; transform: translateX(calc(-50vw - 40vh)) rotate(-35deg); animation-timing-function: ease-in-out; }
8% { opacity: 1; }
50% { opacity: 0.999; }
58% { opacity: 0; transform: translateX(calc(50vw + 40vh)) rotate(-35deg); }
100% { opacity: 0.001; transform: translateX(calc(50vw + 40vh)) rotate(-35deg); }
}

@media (prefers-reduced-motion: reduce) {
#lobby .lobby-ambient > span {
animation: none;
}
}


.lobby .topbar.lobby-topbar {
position: relative;
z-index: 5;
margin-inline: -8px;
gap: 2px;
padding: 0;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
}

.lobby .topbar.lobby-topbar:has(.lobby-menu.open) { z-index: 20; }

.lobby-topbar::before {
content: "";
position: absolute;
z-index: -1;
left: -8px;
right: -8px;
top: calc(-1 * max(6px, var(--safe-top)));
bottom: -5px;
background:
radial-gradient(ellipse at 18% 100%, #b0178d40, transparent 55%),
linear-gradient(180deg, #050210, #120628 70%, #1d0a3c);
border-bottom: 1px solid var(--gold-dark);
box-shadow: 0 1px 0 var(--gold-deep), 0 4px 12px rgba(0, 0, 0, 0.55);
pointer-events: none;
}

.lobby-topbar button {
transition: transform 60ms ease-out;
}

.lobby-topbar button:active:not(:disabled) {
transform: scale(0.96);
}

.lobby-topbar button:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 2px;
}

.lobby-topbar .tier-guest { --tier: #b49cff; --tier-light: #efe8ff; --tier-dark: #4b3793; }
.lobby-topbar .tier-comet { --tier: #42c8ff; --tier-light: #d8f7ff; --tier-dark: #0d4f86; }
.lobby-topbar .tier-nova { --tier: #ffd45a; --tier-light: #fff6c4; --tier-dark: #9a6410; }
.lobby-topbar .tier-supernova { --tier: #ff4fd8; --tier-light: #ffd6f6; --tier-dark: #7d0f6c; }
.lobby-topbar .tier-empress { --tier: #ffcf4a; --tier-light: #fff1b3; --tier-dark: #c1237b; }

.lobby-avatar {
position: relative;
flex: none;
width: 50px;
height: 50px;
padding: 0;
background: none;
}

.lobby-avatar.ready::after {
content: "✦";
position: absolute;
top: -3px;
right: -1px;
color: var(--gold-light);
font-size: 18px;
text-shadow: 0 1px 2px var(--gold-deep);
pointer-events: none;
animation: lobby-icon-spark 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
.lobby-avatar.ready::after {
animation: none;
}
}

.lobby-avatar-portrait {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--violet-deep) url("../art/profile-portraits/empress.webp") no-repeat center / contain;
}

.lobby-level-badge {
position: absolute;
left: 50%;
bottom: -6px;
transform: translateX(-50%);
padding: 1px 5px 0;
background: none;
border: 0;
color: var(--tier-light);
font-family: var(--display);
font-size: .7rem;
line-height: 1.2;
letter-spacing: 0.02em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
-webkit-text-stroke: 3px var(--bg-deep);
paint-order: stroke fill;
text-shadow: 0 2px 3px var(--bg-deep), 0 0 4px var(--bg-deep);
}

.lobby-topbar-main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}


/* Source: css/lobby-part-8.css */
.lobby-topbar .credits {
flex: none;
height: 44px;
column-gap: 3px;
padding: 0 0 0 4px;
border: 1.5px solid var(--gold-dark);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
linear-gradient(180deg, #000, #1a0b30);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 0 1px #12051f;
}

.lobby-topbar .credits.gain {
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 212, 90, 0.9), 0 0 14px 2px rgba(255, 212, 90, 0.65);
}

.lobby-topbar .credits-coin {
width: 28px;
height: 28px;
}

.lobby-topbar .currency {
margin-inline-end: 3px;
font-size: var(--type-readout);
}

.lobby-buy {
position: relative;
z-index: 2;
isolation: isolate;
flex: none;
min-width: 52px;
height: 44px;
margin: -1.5px -1.5px -1.5px 0;
padding: 0 10px;
border: 0;
border-radius: 999px;
background: none;
color: #fff;
font-family: var(--display);
font-size: var(--type-key);
letter-spacing: 0.06em;
line-height: 1;
text-shadow: 0 1px 0 #054018, 0 0 3px #054018;
}

.lobby-buy::before {
content: "";
position: absolute;
inset: 3px;
z-index: -1;
border-radius: 999px;
border: 1.5px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 48%, transparent 52%),
linear-gradient(180deg, #4cf07d, #15a443 55%, #07662a);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px rgba(47, 212, 122, 0.5), inset 0 -2px 3px rgba(0, 40, 10, 0.5);
}

.lobby-buy.broke {
font-size: 0.8rem;
}

.lobby-buy.broke::after {
content: "";
position: absolute;
inset: 3px;
z-index: -1;
border-radius: inherit;
box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 12px 2px rgba(255, 212, 90, 0.9);
opacity: 0;
pointer-events: none;
animation: lobby-buy-glow 1.6s ease-in-out infinite;
}

@keyframes lobby-buy-glow {
0%, 100% { opacity: 0; }
50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.lobby-buy.broke::after {
animation: none;
opacity: 1;
}
}

.lobby-round {
position: relative;
flex: none;
width: 44px;
height: 44px;
padding: 0;
background: none;
}

.lobby-round-face {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}

.lobby-bank-meter {
position: absolute;
bottom: -2px;
left: 8px;
right: 8px;
height: 3px;
border-radius: 2px;
background: rgba(255, 212, 90, 0.3);
overflow: hidden;
pointer-events: none;
}

.lobby-bank-meter::after {
content: "";
display: block;
width: var(--bank-fill, 0%);
height: 100%;
background: var(--gold-rim);
}

.lobby-bank.ready::after {
content: "✦";
position: absolute;
top: -3px;
right: 0;
color: var(--gold-light);
font-size: 16px;
text-shadow: 0 1px 2px var(--gold-deep);
pointer-events: none;
animation: lobby-icon-spark 1.8s ease-in-out infinite;
}

.lobby-bank.ready .lobby-pig {
animation: lobby-pig-wobble 2.4s ease-in-out infinite;
}

@keyframes lobby-pig-wobble {
0%, 60%, 100% { transform: rotate(0); }
68% { transform: rotate(-12deg); }
76% { transform: rotate(10deg); }
84% { transform: rotate(-6deg); }
92% { transform: rotate(3deg); }
}

.lobby-settings {
position: relative;
flex: none;
display: flex;
}

.lobby-gear-icon {
transition: transform 160ms ease-out;
}

.lobby-gear.open .lobby-gear-icon {
transform: rotate(45deg);
}

.lobby-menu {
position: absolute;
top: calc(100% + 11px);
right: -2px;
z-index: 30;
display: grid;
grid-template-columns: repeat(4, 1fr);
width: min(320px, calc(100vw - 24px));
max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 100px);
overflow-y: auto;
overscroll-behavior: contain;
gap: 8px;
padding: 10px 12px 10px;
border-radius: 16px;
border: 2px solid var(--gold-dark);
background:
radial-gradient(ellipse at 50% 0, #b8399655, transparent 70%),
linear-gradient(180deg, #3d0b59, #160820);
box-shadow: 0 0 0 1px var(--gold-deep), 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 18px #b932aa55;
opacity: 0;
visibility: hidden;
transform: translateY(-6px) scale(0.94);
transform-origin: calc(100% - 24px) 0;
transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms;
}

.offline-settings {
grid-column: 1 / -1;
border-top: 1px solid var(--gold-dark);
color: var(--text);
font-family: var(--display);
text-shadow: 0 1px 0 #000;
font-size: 0.9rem;
letter-spacing: 0.03em;
}
.offline-settings h2 {
margin: 8px 0;
color: var(--gold-light);
font-family: var(--display);
font-size: 1.2rem;
}
.offline-download {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 4px 8px;
margin-bottom: 7px;
}
.offline-download > div { display: flex; flex-direction: column; gap: 2px; }
.offline-optional { margin-inline-start: 4px; color: var(--muted); font-size: .75rem; }
.offline-download [role="status"] { color: var(--gold-light); font-size: .75rem; }
.offline-download progress {
grid-column: 1 / -1;
width: 100%;
height: 6px;
-webkit-appearance: none;
appearance: none;
overflow: hidden;
border: 1px solid var(--gold-deep);
border-radius: 3px;
background: linear-gradient(#000, #1b0826 70%, #08020d);
}

.offline-download progress::-webkit-progress-bar { background: transparent; }

.offline-download progress::-webkit-progress-value {
border-radius: 2px;
background: var(--gold-rim);
}

.offline-download progress::-moz-progress-bar {
border-radius: 2px;
background: var(--gold-rim);
}

.offline-download button, #connection-retry {
min-height: 44px;
padding: 4px 12px;
font-family: var(--display);
font-size: 0.9rem;
color: var(--gold-ink);
background: var(--gold-rim);
text-shadow: none;
border: 1px solid var(--gold-dark);
border-radius: 8px;
box-shadow: inset 0 -3px 0 var(--gold-dark);
}
.offline-download button:disabled { opacity: 0.65; }
.offline-size { font: 600 .75rem var(--body); font-variant-numeric: tabular-nums; }
.offline-size:empty { display: none; }
.offline-settings p { font: 400 0.8rem / 1.4 var(--body); letter-spacing: normal; text-shadow: none; margin: 4px 0; }

#app > .lobby-menu {
top: calc(var(--menu-top) + 11px);
right: calc(var(--menu-right) - 2px);
}

html.landscape #app > .lobby-menu { right: var(--menu-right); }

.lobby-menu.open {
opacity: 1;
visibility: visible;
transform: none;
transition-delay: 0s;
}

.lobby-menu::before {
content: "";
position: absolute;
top: -8px;
right: 17px;
width: 12px;
height: 12px;
transform: rotate(45deg);
border-top: 2px solid var(--gold-dark);
border-left: 2px solid var(--gold-dark);
background: #3d0b59;
}

.lobby-menu-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}

.lobby-menu-button {
border: 2px solid var(--gold-dark);
background: radial-gradient(circle at 50% 30%, #4a1a86, #1c0838 70%, #0e041f);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-deep);
font-size: 1.25rem;
line-height: 1;
}

.lobby-menu-button.lobby-help {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.6rem;
text-shadow: 0 1px 0 #000;
}

.lobby-menu-item[hidden] {
display: none;
}

#lobby-frames,
.lobby-frames-switch[aria-pressed="false"] {
color: var(--muted);
}

#lobby-frames[aria-pressed="true"],
.lobby-frames-switch[aria-pressed="true"] {
color: var(--gold-light);
background: radial-gradient(circle at 50% 30%, #8a2cb4, #3c0a5e 70%, #1a0630);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-deep), 0 0 8px var(--gold-dark);
}

.lobby-menu-label {
color: var(--gold-light);
font-family: var(--display);
font-size: .8rem;
letter-spacing: .04em;
text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
.lobby-bank.ready .lobby-pig {
animation: none;
}

.lobby-bank.ready::after {
animation: none;
}

.lobby-menu,
.lobby-gear-icon {
transition: none;
}
}


:root {
--lobby-grand-ink: #ff9ba6;
}

.game-card-jackpot.live .game-card-jackpot-amount::before {
content: "";
display: inline-block;
width: .7em;
height: .7em;
margin: 0 .2em .12em 0;
vertical-align: middle;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
filter: drop-shadow(0 0 2px rgba(255, 211, 77, 0.55));
}

.game-card-jackpot { position: relative; }
.game-card-jackpot.flare {
animation: lobby-plaque-flare 1.2s ease-out;
}
.game-card-jackpot.flare::after {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
pointer-events: none;
background: radial-gradient(ellipse at 50% 60%, #fff3c0cc, #ffd34d55 45%, transparent 75%);
opacity: 0;
animation: lobby-plaque-sheen 1.2s ease-out;
}

@keyframes lobby-plaque-flare {
0%, 100% { box-shadow: 0 0 0 1px #764a10, inset 0 1px 0 #fff7c2, 0 2px 4px #000b, 0 0 7px #ffb82b44; }
20% { box-shadow: 0 0 0 1px #ffe9a0, inset 0 1px 0 #fff7c2, 0 2px 4px #000b, 0 0 12px 3px #ffd34dbb; }
}

@keyframes lobby-plaque-sheen {
0%, 100% { opacity: 0; }
20% { opacity: 1; }
}

.lobby-sign-sub {
position: relative;
display: flex;
flex-direction: column;
align-self: stretch;
padding: 0 26px;
text-align: center;
}
.lobby-marquee-tagline {
display: block;
height: 1.3em;
line-height: 1.3em;
overflow: hidden;
white-space: nowrap;
opacity: 0.85;
}
.lobby-marquee-ticker {
display: block;
height: 1.5em;
overflow: hidden;
font-size: 1.1em;
letter-spacing: .025em;
}
.lobby-marquee-line {
display: flex;
justify-content: center;
gap: .25em;
line-height: 1.5em;
white-space: nowrap;
overflow: hidden;
animation: lobby-marquee 5.5s ease-in-out infinite;
}
.lobby-marquee-label { flex-shrink: 0; }
.lobby-marquee-amount {
min-width: 0;
font-size: 1.1em;
}
.lobby-marquee-amount.grand {
color: var(--lobby-grand-ink);
text-shadow: 0 1px 0 #000;
}
.lobby-marquee-amount.major {
color: var(--jp-major);
text-shadow: 0 0 4px var(--jp-major);
}

@keyframes lobby-marquee {
0% { opacity: 0; transform: translateY(90%); }
4% { opacity: 1; transform: none; }
96% { opacity: 0.999; transform: none; }
100% { opacity: 0; transform: translateY(-90%); }
}

@media (prefers-reduced-motion: reduce) {
.lobby-marquee-line,
.game-card-jackpot.flare,
.game-card-jackpot.flare::after {
animation: none;
}
}

@media (max-height: 700px) {
.lobby-sign { padding-top: 4px; padding-bottom: 3px; }
.lobby-sign-sub { margin-top: 0; font-size: .68rem; letter-spacing: .1em; }
.lobby-marquee-tagline { display: none; }
.lobby-marquee-ticker { font-size: 1em; height: 1.45em; }
.lobby-marquee-line { line-height: 1.45em; }
}


@media (min-height: 701px) {
.lobby-rush { height: 50px; }
.rush-prize.milestone.noted { height: 38px; }
.rush-prize.milestone.noted .rush-tag { top: -8px; }
.rush-prize.milestone.noted .rush-note { margin-top: 1px; }
}


.lobby-dock {
flex: none;
display: flex;
align-items: flex-end;
gap: 6px;
}

.lobby-dock .lobby-tiles {
flex: 1 1 auto;
min-width: 0;
}

.lobby-bonus {
position: relative;
flex: none;
display: flex;
align-items: flex-end;
gap: 0;
width: 102px;
padding-bottom: 12px;
}

.bonus-pod {
flex: none;
display: flex;
flex-direction: column;
align-items: center;
width: 56px;
min-height: 44px;
padding: 0;
background: none;
color: #fff;
transition: none;
}

.bonus-pod:active {
transform: none;
}

.bonus-pill {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
height: 46px;
padding: 3px 1px 1px;
overflow: hidden;
border: 2px solid #eac168;
border-radius: 16px 3px 3px 16px;
transform: skewX(-12deg);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06) 48%, transparent 52%),
linear-gradient(#8a45e0, #4a1694 58%, #24073f);
box-shadow: 0 0 0 1px #603c22, inset 0 -2px 3px #0006, 0 4px 8px #0009;
color: #fff;
font-family: var(--display);
font-size: .75rem;
line-height: 1.15;
letter-spacing: 0;
text-align: center;
white-space: nowrap;
text-shadow: 0 1px 0 #16041f;
transition: translate 80ms ease-out, box-shadow 80ms ease-out, border-color 80ms ease-out;
}

.bonus-pod:active:not(:disabled) .bonus-pill {
translate: 0 1px;
border-color: var(--gold-light);
box-shadow: 0 0 0 1px #603c22, inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -1px 1px #0006, 0 2px 4px #0009;
}

.bonus-pre,
.bonus-state,
.bonus-post {
display: block;
transform: skewX(12deg);
}

.bonus-wheel {
flex: none;
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
width: 46px;
min-height: 44px;
margin: 0 0 -12px;
padding: 0;
background: none;
}

.bonus-wheel .tile-ring {
width: 46px;
height: 46px;
}

.bonus-wheel .tile-state {
max-width: 100%;
margin-top: -13px;
padding: 2px 0;
font-size: .7rem;
letter-spacing: 0;
}

.bonus-pre,
.bonus-post {
text-transform: uppercase;
}

.bonus-state {
font-variant-numeric: tabular-nums;
}

.bonus-pod .bonus-post,
.bonus-pod.ready .bonus-pre {
display: none;
}

.bonus-pod.ready .bonus-post {
display: block;
}

.bonus-pod.ready .bonus-pill {
border-color: var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 48%, transparent 52%),
linear-gradient(#ff5a6a, #c8102e 60%, #6e0a1a);
color: #fff6c4;
font-size: 0.8rem;
letter-spacing: 0.05em;
text-shadow: 0 1px 0 #4a0010, 0 0 6px #ffd45a99;
box-shadow: 0 0 0 1px #603c22, inset 0 -2px 3px #0006, 0 4px 8px #0009, 0 0 4px #ffd45a66;
}

.bonus-pod.ready :is(.bonus-state, .bonus-post) {
-webkit-text-stroke: 2px #4a0010;
paint-order: stroke fill;
}

.bonus-pod.ready:active:not(:disabled) .bonus-pill {
border-color: var(--gold-light);
box-shadow: 0 0 0 1px #603c22, inset 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -1px 1px #0006, 0 2px 4px #0009, 0 0 8px #ffd45a99;
}

.bonus-pod.ready::after {
content: "";
position: absolute;
z-index: 0;
left: 0;
right: 0;
bottom: 0;
height: 46px;
border-radius: 16px 3px 3px 16px;
transform: skewX(-12deg);
box-shadow: 0 0 16px #ffd45aee;
opacity: 0;
pointer-events: none;
animation: bonus-ready 1.6s ease-in-out infinite alternate;
}

@keyframes bonus-ready {
from { opacity: 0; }
to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.bonus-pill {
transition: none;
}
.bonus-pod:active:not(:disabled) .bonus-pill {
translate: none;
box-shadow: 0 0 0 1px #603c22, inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -2px 3px #0006, 0 4px 8px #0009;
}
.bonus-pod.ready:active:not(:disabled) .bonus-pill {
box-shadow: 0 0 0 1px #603c22, inset 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -2px 3px #0006, 0 4px 8px #0009;
}
}


/* Source: css/lobby-part-9.css */
.bonus-pod.ready .bonus-pill {
animation: bonus-pop 3.2s ease-out infinite;
}

.bonus-pod.ready .bonus-pill::before {
content: "";
position: absolute;
top: -2px;
right: 0;
bottom: -2px;
width: 200%;
background: linear-gradient(105deg, transparent 52%, rgba(255, 246, 214, 0.8) 72%,
rgba(255, 255, 255, 0.95) 86%, rgba(255, 246, 214, 0.8) 96%);
opacity: 0;
pointer-events: none;
animation: bonus-sweep 3.2s ease-in-out infinite;
}

.bonus-pod.ready .bonus-pill::after {
content: "";
position: absolute;
right: 0;
bottom: 1px;
width: 34%;
height: 3px;
border-radius: 2px;
background: linear-gradient(270deg, transparent, #ffd45a 35%, #fff 70%, transparent);
box-shadow: 0 0 4px #ffd45a;
pointer-events: none;
animation: bonus-rail 1.6s linear infinite;
}

.bonus-pod.ready::before,
.lobby-bonus:has(> .bonus-pod.ready)::after {
content: "";
position: absolute;
z-index: 3;
width: 16px;
height: 24px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20'%3E%3Cpath d='M9 1 3 10h5l-3 9 7-11H7l3-7z' fill='%23ffd45a' stroke='%23ffb000' stroke-width='1.6' stroke-linejoin='round' opacity='.55'/%3E%3Cpath d='M9 1 3 10h5l-3 9 7-11H7l3-7z' fill='%23fffbe8'/%3E%3C/svg%3E") center / contain no-repeat;
opacity: 0;
pointer-events: none;
}

.bonus-pod.ready::before {
left: -12px;
bottom: 8px;
rotate: -16deg;
animation: bonus-crackle 2.3s steps(1, end) infinite;
}

.lobby-bonus:has(> .bonus-pod.ready)::after {
left: 46px;
top: 2px;
width: 13px;
height: 19px;
rotate: 20deg;
animation: bonus-crackle 2.9s steps(1, end) -1.2s infinite;
}

.bonus-wheel.ready .tile-ring::before {
content: "";
position: absolute;
inset: 2px;
border: 3px solid #fff6c4;
border-radius: 50%;
box-shadow: 0 0 10px 2px #ffd45a, inset 0 0 8px #ffd45a;
opacity: 0;
pointer-events: none;
animation: bonus-ring 3.2s ease-out -1.6s infinite;
}

.bonus-wheel.ready .tile-ring > .lobby-art {
transform-origin: 50% 88%;
animation: bonus-rock 3.2s ease-in-out -1.6s infinite;
}

.bonus-wheel.ready::before,
.bonus-wheel.ready::after {
content: "";
position: absolute;
z-index: 3;
width: 9px;
height: 9px;
background: linear-gradient(#fff, var(--gold-light));
clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
opacity: 0;
pointer-events: none;
animation: lobby-icon-spark 1.8s ease-in-out infinite;
}

.bonus-wheel.ready::before {
left: 1px;
top: -2px;
animation-delay: -0.6s;
}

.bonus-wheel.ready::after {
left: -3px;
top: 22px;
width: 7px;
height: 7px;
animation-delay: -1.2s;
}

.lobby:not(.lobby-motion-active) .bonus-pod.ready .bonus-pill,
.lobby:not(.lobby-motion-active) .bonus-wheel.ready .tile-ring > .lobby-art {
animation: none;
}

.lobby:not(.lobby-motion-active) .bonus-pod.ready .bonus-pill::before,
.lobby:not(.lobby-motion-active) .bonus-pod.ready .bonus-pill::after,
.lobby:not(.lobby-motion-active) .bonus-pod.ready::before,
.lobby:not(.lobby-motion-active) .lobby-bonus:has(> .bonus-pod.ready)::after,
.lobby:not(.lobby-motion-active) .bonus-wheel.ready .tile-ring::before,
.lobby:not(.lobby-motion-active) .bonus-wheel.ready::before,
.lobby:not(.lobby-motion-active) .bonus-wheel.ready::after {
visibility: hidden;
animation: none;
}

@keyframes bonus-pop {
0%, 62% { scale: 1; }
70% { scale: 1.07; }
78% { scale: 0.98; }
86%, 100% { scale: 1; }
}

@keyframes bonus-sweep {
0%, 56% { opacity: 0; transform: none; }
60% { opacity: 1; transform: translateX(-6%); }
80% { opacity: 1; transform: translateX(-62%); }
81%, 100% { opacity: 0; transform: translateX(-62%); }
}

@keyframes bonus-rail {
0% { opacity: 0; transform: none; }
15% { opacity: 1; }
85% { opacity: 1; }
100% { opacity: 0; transform: translateX(-300%); }
}

@keyframes bonus-crackle {
0%, 100% { opacity: 0; }
8% { opacity: 1; }
12% { opacity: 0.2; }
16% { opacity: 1; }
24% { opacity: 0; }
}

@keyframes bonus-ring {
0%, 60% { opacity: 0; scale: 0.75; }
65% { opacity: 1; scale: 0.95; }
86%, 100% { opacity: 0; scale: 1.25; }
}

@keyframes bonus-rock {
0%, 60% { rotate: 0deg; scale: 1; }
65% { rotate: -9deg; scale: 1.08; }
71% { rotate: 7deg; }
77% { rotate: -4deg; scale: 1.02; }
83% { rotate: 2deg; }
89%, 100% { rotate: 0deg; scale: 1; }
}

.lobby.enter .lobby-bonus .bonus-pod,
.lobby.enter .lobby-bonus .bonus-wheel {
animation: lobby-tile-pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 340ms backwards;
}

@media (prefers-reduced-motion: reduce) {
.lobby.enter .lobby-bonus .bonus-pod,
.lobby.enter .lobby-bonus .bonus-wheel {
animation: none;
}
.bonus-pod.ready .bonus-pill {
box-shadow: 0 0 0 1px #603c22, inset 0 -2px 3px #0006, 0 4px 8px #0009;
}
.bonus-pod.ready::after {
content: none;
animation: none;
}
.bonus-pod.ready .bonus-pill,
.bonus-wheel.ready .tile-ring > .lobby-art {
animation: none;
}
.bonus-pod.ready .bonus-pill::before,
.bonus-pod.ready .bonus-pill::after,
.bonus-pod.ready::before,
.lobby-bonus:has(> .bonus-pod.ready)::after,
.bonus-wheel.ready .tile-ring::before,
.bonus-wheel.ready::before,
.bonus-wheel.ready::after {
content: none;
animation: none;
}
}

.inbox-sheet {
--inbox-satellite-light: #fff6c4;
--inbox-satellite-dark: #b8780a;
}

/* Source: css/machine-offers-type.css */
.machine-offers-title {
font-family: var(--display);
font-size: 12px;
letter-spacing: 0.03em;
text-transform: uppercase;
transform: none;
}
.app .machine-offers-button .machine-offers-alert {
right: -2px;
width: 16px;
height: 16px;
font-size: 14px;
}
.app .machine-offers-time {
padding: 0 16px 0 0;
text-align: center;
}
.app .league-button:not(.up, .down) .league-rank { color: var(--gold-light); }
.machine-offer-title,
.machine-offer-detail,
.machine-offer-time,
.machine-offers-time {
letter-spacing: 0.03em;
}
.machine-offer-detail { text-transform: uppercase; }
.machine-offer-time,
.machine-offers-time { text-transform: none; }

/* Source: css/lobby-starlight-balance.css */
.lobby-topbar .credits.starlight-cycle {
position: relative;
}

.credits-face {
position: absolute;
top: 0;
bottom: 0;
left: 4px;
right: var(--credits-face-right, 59px);
display: flex;
align-items: center;
gap: 3px;
min-width: 0;
opacity: 0;
pointer-events: none;
}

.credits-starlight-mark,
.credits-astrals > .credits-astrals-mark {
flex: none;
width: 28px;
height: 28px;
}

.credits-face-amount {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
white-space: nowrap;
font-family: var(--display);
font-size: var(--type-readout);
font-variant-numeric: tabular-nums;
background-image: linear-gradient(180deg, var(--starlight-light) 0%, var(--starlight) 50%, var(--starlight-shade) 75%, var(--starlight) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--starlight-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.credits-astrals-amount {
background-image: linear-gradient(180deg, #f2fdff 0%, var(--astral-top) 45%, var(--astral-mid) 80%, var(--astral-base) 100%);
filter: drop-shadow(0 1px 0 var(--astral-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.starlight-cycle > .credits-coin,
.starlight-cycle > .currency,
.show-starlight > .credits-starlight,
.show-astrals > .credits-astrals {
transition: opacity 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.credits-face,
:is(.show-starlight, .show-astrals) > :is(.credits-coin, .currency) {
transition: opacity 480ms cubic-bezier(0.55, 0, 0.8, 0.4);
}

:is(.show-starlight, .show-astrals) > :is(.credits-coin, .currency) {
opacity: 0;
}

.show-starlight > .credits-starlight,
.show-astrals > .credits-astrals {
opacity: 1;
}

.starlight-cycle.starlight-snap > :is(.credits-face, .credits-coin, .currency) {
transition: none;
}

@media (prefers-reduced-motion: reduce) {
.starlight-cycle > :is(.credits-face, .credits-coin, .currency) {
transition: none;
}
}

/* Source: css/lobby-content.css */
.feature-sign {
height: 94px;
padding: 4px 16px;
flex: none;
}
.feature-sign::before,
.feature-sign::after { font-size: 0; animation: none; pointer-events: none; }
.feature-sign::before { left: -4px; }
.feature-sign::after { right: -4px; }
.lobby-feature {
position: absolute;
top: 4px;
left: 16px;
right: 16px;
height: 44px;
min-height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--text);
text-align: left;
touch-action: manipulation;
z-index: 2;
}
.lobby-feature:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lobby-feature::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: var(--radius);
background: rgba(8, 2, 18, 0.28);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 224, 130, 0.45);
opacity: 0;
pointer-events: none;
transition: opacity 80ms ease-out;
}
.lobby-feature > span {
transition: transform 80ms ease-out;
}
.lobby-feature:active:not(:disabled):not([aria-disabled="true"])::before {
opacity: 1;
}
.lobby-feature:active:not(:disabled):not([aria-disabled="true"]) > span {
transform: translateY(1px);
}
.feature-sign .lobby-sign-title {
position: absolute;
left: 60px;
top: 0;
font-family: var(--display);
font-size: 11px;
line-height: 12px;
letter-spacing: .08em;
}
.lobby-feature-content {
position: absolute;
inset: 12px 0 0;
opacity: 1;
}
.lobby-feature-art {
position: absolute;
width: 48px;
height: 44px;
left: 0;
top: -12px;
object-fit: contain;
pointer-events: none;
}
.lobby-feature[data-phase="event"] .lobby-feature-art {
width: 54px;
height: 54px;
left: -4px;
top: -9px;
object-fit: cover;
object-position: 50% 14%;
-webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.lobby-feature-copy {
display: flex;
flex-direction: column;
margin-left: 60px;
min-width: 0;
font-family: var(--display);
text-shadow: 0 1px 0 #000, 0 2px 4px #000;
letter-spacing: .03em;
}
.lobby-feature-title {
height: 18px;
line-height: 18px;
font-size: var(--type-readout);
color: var(--gold-light);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lobby-feature-badge {
position: relative;
align-self: flex-start;
height: 14px;
line-height: 14px;
font-size: 14px;
color: var(--text);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.lobby-feature-status { display: block; height: 14px; line-height: 14px; }
.lobby-feature[data-phase="ready"] .lobby-feature-badge,
.lobby-feature[data-phase="new"] .lobby-feature-badge { color: var(--gold-light); }
.feature-sign .lobby-sign-sub {
position: absolute;
bottom: 4px;
left: 16px;
right: 16px;
margin: 0;
text-align: center;
}
.lobby-notice {
position: absolute;
bottom: 4px;
left: 16px;
right: 16px;
height: 18px;
line-height: 18px;
font-family: var(--display);
font-size: 14px;
letter-spacing: .035em;
color: var(--gold-light);
text-align: center;
text-shadow: 0 1px 0 #000;
opacity: 0;
pointer-events: none;
}
.lobby-notice.show { opacity: 1; animation: feature-notice-in 240ms ease-out; }
.lobby-notice.notice-exiting { opacity: 1; animation: feature-fade-out 240ms ease-in forwards; }
.feature-sign:has(.lobby-notice.show, .lobby-notice.notice-exiting) .lobby-marquee-ticker,
.feature-notice-gap .lobby-marquee-ticker { visibility: hidden; }
#lobby-notice-live {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.feature-fading { animation: feature-fade-out 180ms ease-in forwards; }
.feature-entering { animation: feature-fade-in 180ms ease-out; }
@keyframes feature-fade-out { to { opacity: 0; } }
@keyframes feature-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes feature-notice-in {
from { opacity: 0; transform: translateY(-3px) scale(.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.lobby-feature-status-old { display: none; }
.feature-status-change .lobby-feature-status-old {
position: absolute;
inset: 0;
display: block;
animation: feature-fade-out 200ms ease-out forwards;
}
.feature-status-change .lobby-feature-status { animation: feature-fade-in 200ms ease-out; }
.lobby-feature-roll { display: none; }
.feature-roll .lobby-feature-status,
.feature-roll .lobby-feature-status-old { visibility: hidden; }
.feature-roll .lobby-feature-roll {
display: flex;
position: absolute;
inset: 0;
}
.feature-letter { display: inline-block; height: 14px; overflow: hidden; }
.feature-letter-track { display: flex; flex-direction: column; animation: feature-letter-roll 350ms ease-out var(--letter-delay) both; }
.feature-letter-track > span { height: 14px; }
@keyframes feature-letter-roll { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.feature-roll::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0;
background: linear-gradient(110deg, transparent 30%, #fff3b0aa 48%, transparent 65%);
animation: feature-sheen 180ms ease-out 550ms;
}
@keyframes feature-sheen {
from { opacity: .2; transform: translateX(-50%); }
50% { opacity: .8; }
to { opacity: 0; transform: translateX(50%); }
}
.feature-halo {
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: inset 0 0 12px #ffdf7980, 0 0 10px #cf5ff755;
pointer-events: none;
opacity: .2;
animation: feature-halo 3.2s ease-in-out infinite;
}
@keyframes feature-halo { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }
.feature-glint {
position: absolute;
width: 8px;
height: 8px;
background: var(--gold-light);
clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
pointer-events: none;
opacity: 0;
animation: feature-glint 3.2s ease-in-out infinite;
}
.feature-glint.a { left: 8px; top: 8px; }
.feature-glint.b { right: 8px; bottom: 8px; animation-delay: -1.6s; }
@keyframes feature-glint {
0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
15% { opacity: .9; transform: scale(1) rotate(45deg); }
35% { opacity: .01; transform: scale(.3) rotate(90deg); }
}
.feature-fleck {
position: absolute;
left: 50%;
top: 50%;
width: 4px;
height: 7px;
background: var(--gold-light);
pointer-events: none;
opacity: 0;
}
.feature-fleck.n0 { --fleck-x: -125px; --fleck-y: -20px; }
.feature-fleck.n1 { --fleck-x: -80px; --fleck-y: -32px; }
.feature-fleck.n2 { --fleck-x: -40px; --fleck-y: 26px; }
.feature-fleck.n3 { --fleck-x: 45px; --fleck-y: -30px; }
.feature-fleck.n4 { --fleck-x: 85px; --fleck-y: 25px; }
.feature-fleck.n5 { --fleck-x: 130px; --fleck-y: -15px; }
.feature-flecks .feature-fleck { animation: feature-fleck 750ms ease-out; }
@keyframes feature-fleck {
from { opacity: 0; transform: translate(0, 0) rotate(0); }
20% { opacity: 1; }
to { opacity: 0; transform: translate(var(--fleck-x), var(--fleck-y)) rotate(120deg); }
}
#lobby:not([data-content-motion="true"]) .feature-halo,
#lobby:not([data-content-motion="true"]) .feature-glint,
.feature-feedback .feature-halo,
.feature-feedback .feature-glint { animation-play-state: paused; opacity: 0; }
@media (max-height: 700px) {
.feature-sign { height: 74px; padding: 2px 16px; }
.lobby-feature { top: 2px; }
.feature-sign .lobby-sign-sub,
.lobby-notice { bottom: 2px; }
.feature-sign .lobby-sign-sub { font-size: 11px; }
.league-tab.open { padding-top: 2px; padding-bottom: 2px; }
.league-tab.open .league-tab-body { gap: 1px; }
.league-tab.open .league-tab-head { gap: 2px; }
.league-tab.open .league-tab-gem { width: 18px; height: 18px; }
.league-tab.open .league-tab-row { min-height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
.feature-sign *,
.feature-sign *::after { animation: none !important; }
.lobby-feature::before,
.lobby-feature > span { transition: none; }
.lobby-feature:active:not(:disabled):not([aria-disabled="true"]) > span { transform: none; }
.feature-glint,
.feature-fleck { opacity: 0; }
}

/* Source: css/attention-buttons.css */
.feature-sign .lobby-feature { right: 124px; }
.lobby-specials {
position: absolute;
top: 4px;
right: 12px;
z-index: 2;
width: 96px;
height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--gold-light);
font-family: var(--display);
font-size: var(--type-key);
line-height: 1;
touch-action: manipulation;
}
.lobby-specials:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lobby-specials > span { pointer-events: none; }
.specials-caret {
position: absolute;
left: 30px;
right: 30px;
top: -2px;
height: 15px;
padding-top: 1px;
border: 1px solid var(--sapphire);
border-radius: 12px 12px 0 0;
background: linear-gradient(var(--navy), var(--navy-deep));
color: var(--gold);
font-size: 22px;
box-shadow: 0 0 4px var(--neon-cyan);
}
.specials-caret svg { width: 18px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.specials-face {
position: absolute;
inset: 7px 2px 5px;
display: grid;
place-items: center;
overflow: hidden;
isolation: isolate;
border: 2px solid var(--gold);
border-radius: 12px;
background: linear-gradient(var(--neon-pink), var(--red) 45%, var(--red-dark) 55%, var(--lacquer));
box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 7px var(--neon-pink), inset 0 2px 1px rgba(255,255,255,.6), inset 0 -3px 2px var(--bg-deep);
transition: transform 80ms ease-out, box-shadow 80ms ease-out, border-color 80ms ease-out;
}
.lobby-specials:active:not(:disabled) .specials-face {
transform: translateY(1px);
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 10px var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -1px 1px var(--bg-deep);
}
.specials-letters {
display: flex;
height: 18px;
line-height: 18px;
text-shadow: 0 1px 0 var(--gold-deep), 0 2px 2px var(--bg-deep);
}
.specials-column { display: block; width: .46em; height: 18px; overflow: hidden; }
.specials-strip { display: flex; flex-direction: column; }
.specials-letter { flex: none; height: 18px; line-height: 18px; }
.specials-flash {
position: absolute;
inset: -8px -24px;
z-index: -1;
opacity: 0;
background: linear-gradient(150deg, transparent 35%, rgba(255,255,255,.95) 48%, transparent 62%);
transform: translateX(-100%);
}
.specials-underline {
position: absolute;
left: 6px;
right: 6px;
bottom: 0;
height: 2px;
border-radius: 2px;
background: var(--sapphire);
box-shadow: 0 0 4px var(--neon-cyan);
}
.specials-glint {
position: absolute;
z-index: 1;
width: 24px;
height: 3px;
opacity: 0;
background: linear-gradient(90deg, transparent, var(--text), var(--neon-cyan), transparent);
box-shadow: 0 0 5px var(--neon-cyan);
}
.specials-glint.top { top: 6px; left: 4px; }
.specials-glint.bottom { bottom: 0; right: 4px; }
.lobby[data-attention-motion="true"] .specials-glint.top { animation: specials-rim-top 2.8s linear infinite; }
.lobby[data-attention-motion="true"] .specials-glint.bottom { animation: specials-rim-bottom 3.2s linear .4s infinite; }
.attention-roll .specials-strip { animation: specials-letter-roll 2.2s cubic-bezier(.3,0,.35,1) var(--letter-delay) both; }
.attention-roll .specials-flash { animation: specials-face-flash 260ms ease-out 1130ms; }
@keyframes specials-rim-top {
0% { opacity: 0; transform: translateX(0); }
25% { opacity: .9; transform: translateX(22px); }
65% { opacity: .35; transform: translateX(45px); }
100% { opacity: 0; transform: translateX(65px); }
}
@keyframes specials-rim-bottom {
0% { opacity: 0; transform: translateX(0); }
30% { opacity: .95; transform: translateX(-20px); }
70% { opacity: .2; transform: translateX(-46px); }
100% { opacity: 0; transform: translateX(-65px); }
}
@keyframes specials-letter-roll {
0% { transform: translateY(0); }
48% { transform: translateY(-51.4286%); }
62% { transform: translateY(-34.2857%); }
100% { transform: translateY(-85.7143%); }
}
@keyframes specials-face-flash {
0% { opacity: 0; transform: translateX(-70%); }
40% { opacity: 1; transform: translateX(-10%); }
100% { opacity: 0; transform: translateX(70%); }
}
.lobby-buy { color: var(--bg-deep); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.lobby-buy { --buy-y: 3px; }
html.landscape .lobby-buy { --buy-y: 7px; }
.buy-sheen {
position: absolute;
inset: calc(var(--buy-y) + 1.5px) 4.5px;
z-index: -1;
overflow: hidden;
border-radius: inherit;
pointer-events: none;
}
.buy-sheen::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 40%;
background: linear-gradient(110deg, transparent 8%, rgba(255,226,140,.55) 32%, rgba(255,255,255,.9) 50%, rgba(255,226,140,.55) 68%, transparent 92%);
transform: translateX(-160%) skewX(-18deg);
}
.buy-star {
position: absolute;
top: calc(var(--buy-y) - 6px);
right: -3px;
z-index: 1;
width: 14px;
height: 14px;
opacity: 0;
pointer-events: none;
transform: scale(0);
filter: drop-shadow(0 0 3px rgba(255,236,160,.9)) drop-shadow(0 1px 1px rgba(0,0,0,.5));
}
.buy-star::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle, #fff 0 22%, var(--gold-light) 60%, var(--gold) 100%);
clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.lobby-buy.broke :is(.buy-sheen, .buy-star) { display: none; }
.lobby-buy.attention-flash:not(.broke) .buy-sheen::before { animation: buy-sheen-sweep 520ms ease-in-out both; }
.lobby-buy.attention-flash:not(.broke) .buy-star { animation: buy-star-pop 360ms ease-out 260ms both; }
@keyframes buy-sheen-sweep {
from { transform: translateX(-160%) skewX(-18deg); }
to { transform: translateX(330%) skewX(-18deg); }
}
@keyframes buy-star-pop {
0% { opacity: 0; transform: scale(0) rotate(-30deg); }
45% { opacity: 1; transform: scale(1.1) rotate(0deg); }
100% { opacity: 0; transform: scale(0) rotate(40deg); }
}
.lobby-topbar .credits-coin {
position: relative;
overflow: hidden;
border-radius: 50%;
}
.lobby-topbar .credits-coin::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 45%;
background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,.85) 50%, transparent 90%);
opacity: 0;
pointer-events: none;
transform: translateX(-130%);
}
.lobby-topbar .credits.coin-glint > .credits-coin::after { animation: coin-glint-sweep 700ms ease-in-out both; }
.lobby-topbar .credits:is(.show-starlight, .show-astrals) > .credits-coin::after { animation: none; }
@keyframes coin-glint-sweep {
0% { opacity: 0; transform: translateX(-130%); }
25%, 70% { opacity: 1; }
100% { opacity: 0; transform: translateX(260%); }
}
.specials-left { display: none; }
html.landscape .feature-sign .specials-left {
position: absolute;
top: 100%;
left: 50%;
display: block;
height: var(--specials-countdown);
padding: 0 6px;
border: 1px solid var(--sapphire);
border-radius: 7px;
background: var(--navy-deep);
color: var(--gold-light);
font-family: var(--display);
font-size: 11px;
font-variant-numeric: tabular-nums;
letter-spacing: .04em;
line-height: 12px;
white-space: nowrap;
transform: translateX(-50%);
}
@media (max-height: 700px) { .lobby-specials { top: 2px; } }
@media (prefers-reduced-motion: reduce) {
.lobby-specials *, .buy-sheen::before, .buy-star, .lobby-topbar .credits-coin::after { animation: none !important; }
.specials-face { transition: none; }
.lobby-specials:active:not(:disabled) .specials-face {
transform: none;
box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 10px var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -3px 2px var(--bg-deep);
}
.specials-glint, .specials-flash { opacity: 0; }
}

/* Source: css/lobby-navigation.css */
.lobby-pose { position: relative; }
.lobby-pose::before {
content: "";
position: absolute;
inset: var(--pose-inset);
background: var(--pose-strip) 0% 0% / var(--pose-size) no-repeat;
animation: var(--pose-loop) var(--pose-cycle) step-end var(--pose-phase) infinite;
pointer-events: none;
}
.lobby:not(.lobby-motion-active) .lobby-pose::before,
#lobby #lobby-albums:is(:focus-visible, :active) .lobby-pose::before,
#lobby:has(.feature-feedback) .lobby-tiles .lobby-pose::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
.lobby-pose::before { animation: none; }
}

#lobby-albums.content-new .tile-ring::before {
content: "NEW";
position: absolute;
top: 0;
right: 0;
z-index: 1;
color: var(--gold-light);
font-family: var(--display);
font-size: .7rem;
line-height: 1;
-webkit-text-stroke: 3px var(--bg-deep);
paint-order: stroke fill;
pointer-events: none;
}
#lobby-albums.content-new .tile-ring::after {
content: none;
animation: none;
}

.nav-beat-light {
--nav-cyan: #a2f4ff;
--nav-pink: #ff9deb;
display: none;
position: absolute;
inset: 0;
pointer-events: none;
}
.lobby .tile.nudge .nav-beat-light { display: block; }
.lobby .tile.nudge .tile-state { animation: none; }
#lobby-albums.nudge .lobby-art,
#lobby-albums.nudge .nav-beat-light {
transform-origin: 50% 85%;
animation: nav-icon-fan-beat 840ms ease-in-out;
}
#lobby-missions.nudge .lobby-art,
#lobby-missions.nudge .nav-beat-light {
transform-origin: 50% 85%;
animation: nav-icon-spark-beat 840ms ease-in-out;
}
#lobby-voyage.nudge .lobby-art,
#lobby-voyage.nudge .nav-beat-light {
transform-origin: 50% 85%;
animation: nav-icon-map-beat 840ms ease-in-out;
}
@keyframes nav-icon-fan-beat {
0%, 100% { transform: translateY(0) rotate(0) scaleX(1); }
24% { transform: translateY(-2px) rotate(-5deg) scaleX(1.04); }
54% { transform: translateY(-1px) rotate(4deg) scaleX(1.02); }
78% { transform: translateY(0) rotate(-1deg) scaleX(1); }
}
@keyframes nav-icon-spark-beat {
0%, 100% { transform: translateY(0) rotate(0) scale(1); }
28% { transform: translateY(-1px) rotate(-4deg) scale(1.08); }
56% { transform: translateY(-1px) rotate(3deg) scale(1.04); }
80% { transform: translateY(0) rotate(-1deg) scale(.99); }
}
@keyframes nav-icon-map-beat {
0%, 100% { transform: translateY(0) rotate(0); }
30% { transform: translateY(-2px) rotate(-4deg); }
58% { transform: translateY(-1px) rotate(2deg); }
82% { transform: translateY(0) rotate(-.5deg); }
}
.nav-icon-glint {
position: absolute;
width: 7px;
height: 7px;
background: radial-gradient(circle, white 10%, var(--nav-cyan) 48%, transparent 72%);
clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
animation: nav-icon-beat-glint 540ms ease-out both;
}
#lobby-albums .nav-beat-light .nav-icon-glint { left: 18%; top: 28%; }
#lobby-albums .nav-beat-light .nav-icon-glint.second { left: 34%; top: 13%; animation-delay: 120ms; }
#lobby-albums .nav-beat-light .nav-icon-glint.third { left: 72%; top: 24%; animation-delay: 240ms; }
#lobby-missions .nav-beat-light .nav-icon-glint { left: 48%; top: 7%; animation-delay: 180ms; }
#lobby-voyage .nav-beat-light .nav-icon-glint { left: 51%; top: 30%; animation-delay: 180ms; }
@keyframes nav-icon-beat-glint {
0% { opacity: 0; transform: scale(.3) rotate(-15deg); }
32% { opacity: 1; transform: scale(1.2) rotate(25deg); }
68% { opacity: .2; transform: scale(.6) rotate(65deg); }
100% { opacity: 0; transform: scale(.2) rotate(90deg); }
}
.lobby:not(.lobby-motion-active) .tile.nudge .nav-beat-light,
.lobby:has(.feature-feedback) .tile.nudge .nav-beat-light { display: none; }

@media (prefers-reduced-motion: reduce) {
.lobby .tile.nudge .nav-beat-light { display: none; }
.nav-beat-light,
.nav-icon-glint,
.lobby .tile.nudge .tile-ring > .lobby-art { animation: none !important; }
}

/* Source: css/lobby-poses.css */
.lobby-pose-albums {
--pose-strip: url("../art/lobby/poses/albums.webp");
--pose-size: 600% 100%;
--pose-inset: 0% 0% 0% -5.2083%;
--pose-loop: lobby-pose-albums;
--pose-cycle: 7.3s;
--pose-phase: -0.73s;
}
@keyframes lobby-pose-albums {
0% { background-position-x: 0%; }
1.3699% { background-position-x: 20%; }
2.7397% { background-position-x: 40%; }
5.4795% { background-position-x: 60%; }
8.2192% { background-position-x: 80%; }
9.589% { background-position-x: 100%; }
10.9589% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-bank {
--pose-strip: url("../art/lobby/poses/bank.webp");
--pose-size: 600% 100%;
--pose-inset: -20.3125% 0% 0% -1.0417%;
--pose-loop: lobby-pose-bank;
--pose-cycle: 6.4s;
--pose-phase: -1.28s;
}
@keyframes lobby-pose-bank {
0% { background-position-x: 0%; }
1.5625% { background-position-x: 20%; }
3.125% { background-position-x: 40%; }
4.6875% { background-position-x: 60%; }
7.8125% { background-position-x: 80%; }
9.375% { background-position-x: 100%; }
10.9375% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-inbox {
--pose-strip: url("../art/lobby/poses/inbox.webp");
--pose-size: 600% 100%;
--pose-inset: -11.4583% 0% 0% 0%;
--pose-loop: lobby-pose-inbox;
--pose-cycle: 5.7s;
--pose-phase: -1.71s;
}
@keyframes lobby-pose-inbox {
0% { background-position-x: 0%; }
1.7544% { background-position-x: 20%; }
3.5088% { background-position-x: 40%; }
5.2632% { background-position-x: 60%; }
10.5263% { background-position-x: 80%; }
12.2807% { background-position-x: 100%; }
14.0351% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-league {
--pose-strip: url("../art/lobby/poses/league.webp");
--pose-size: 600% 100%;
--pose-inset: -10.9375% 0% 0% 0%;
--pose-loop: lobby-pose-league;
--pose-cycle: 6.8s;
--pose-phase: -2.72s;
}
@keyframes lobby-pose-league {
0% { background-position-x: 0%; }
1.4706% { background-position-x: 20%; }
2.9412% { background-position-x: 40%; }
4.4118% { background-position-x: 60%; }
7.3529% { background-position-x: 80%; }
8.8235% { background-position-x: 100%; }
10.2941% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-planets {
--pose-strip: url("../art/lobby/poses/planets.webp");
--pose-size: 600% 100%;
--pose-inset: 0% 0% 0% 0%;
--pose-loop: lobby-pose-planets;
--pose-cycle: 5.9s;
--pose-phase: -2.95s;
}
@keyframes lobby-pose-planets {
0% { background-position-x: 0%; }
1.6949% { background-position-x: 20%; }
3.3898% { background-position-x: 40%; }
5.0847% { background-position-x: 60%; }
6.7797% { background-position-x: 80%; }
8.4746% { background-position-x: 100%; }
10.1695% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-rush {
--pose-strip: url("../art/lobby/poses/rush.webp");
--pose-size: 600% 100%;
--pose-inset: -4.1667% 0% -3.6458% 0%;
--pose-loop: lobby-pose-rush;
--pose-cycle: 5.3s;
--pose-phase: -3.18s;
}
@keyframes lobby-pose-rush {
0% { background-position-x: 0%; }
1.8868% { background-position-x: 20%; }
3.7736% { background-position-x: 40%; }
5.6604% { background-position-x: 60%; }
7.5472% { background-position-x: 80%; }
9.434% { background-position-x: 100%; }
11.3208% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-settings {
--pose-strip: url("../art/lobby/poses/settings.webp");
--pose-size: 600% 100%;
--pose-inset: 0% 0% 0% 0%;
--pose-loop: lobby-pose-settings;
--pose-cycle: 4.6s;
--pose-phase: -3.22s;
}
@keyframes lobby-pose-settings {
0% { background-position-x: 0%; }
2.1739% { background-position-x: 20%; }
4.3478% { background-position-x: 40%; }
6.5217% { background-position-x: 60%; }
8.6957% { background-position-x: 80%; }
10.8696% { background-position-x: 100%; }
13.0435% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-voyage {
--pose-strip: url("../art/lobby/poses/voyage.webp");
--pose-size: 600% 100%;
--pose-inset: 0% 0% 0% 0%;
--pose-loop: lobby-pose-voyage;
--pose-cycle: 6.2s;
--pose-phase: -4.96s;
}
@keyframes lobby-pose-voyage {
0% { background-position-x: 0%; }
1.6129% { background-position-x: 20%; }
3.2258% { background-position-x: 40%; }
4.8387% { background-position-x: 60%; }
8.0645% { background-position-x: 80%; }
9.6774% { background-position-x: 100%; }
11.2903% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}
.lobby-pose-wheel {
--pose-strip: url("../art/lobby/poses/wheel.webp");
--pose-size: 600% 100%;
--pose-inset: 0% 0% 0% 0%;
--pose-loop: lobby-pose-wheel;
--pose-cycle: 4.9s;
--pose-phase: -4.41s;
}
@keyframes lobby-pose-wheel {
0% { background-position-x: 0%; }
2.0408% { background-position-x: 20%; }
4.0816% { background-position-x: 40%; }
6.1224% { background-position-x: 60%; }
8.1633% { background-position-x: 80%; }
10.2041% { background-position-x: 100%; }
12.2449% { background-position-x: 0%; }
100% { background-position-x: 0%; }
}

/* Source: css/lobby-banner-motion.css */
.rush-ambient-rim {
position: absolute;
inset: -2px;
padding: 2px;
border-radius: inherit;
overflow: hidden;
pointer-events: none;
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
}
.rush-ambient-rim::before {
content: "";
position: absolute;
inset: 0 -50%;
background: linear-gradient(108deg, transparent 38%, var(--gold) 46%, var(--gold-light) 49%, white 50%, var(--gold-light) 51%, transparent 62%);
animation: rush-rim-reflection 7.8s ease-in-out -2.4s infinite;
pointer-events: none;
}
@keyframes rush-rim-reflection {
0% { transform: translateX(-50%); opacity: 0; }
25% { transform: translateX(-24%); opacity: .35; }
50% { transform: translateX(0); opacity: .8; }
75% { transform: translateX(24%); opacity: .3; }
100% { transform: translateX(50%); opacity: 0; }
}
.rush-level-word { position: relative; }
.rush-level-word::after {
content: "";
position: absolute;
width: 7px;
height: 7px;
top: -3px;
right: 2px;
background: radial-gradient(circle, white 8%, var(--gold-light) 35%, transparent 72%);
clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
animation: rush-letter-glint 6.7s ease-in-out -3.8s infinite;
pointer-events: none;
}
@keyframes rush-letter-glint {
0%, 100% { transform: scale(.3) rotate(0); opacity: 0; }
24% { transform: scale(.5) rotate(12deg); opacity: .08; }
38% { transform: scale(1) rotate(28deg); opacity: .8; }
54% { transform: scale(.45) rotate(45deg); opacity: .06; }
76% { transform: scale(.3) rotate(60deg); opacity: .01; }
}
#profile-sheet:not(.open) .lobby-rush :is(.rush-ambient-rim, .bulbs, .rush-fill)::before,
#profile-sheet:not(.open) .lobby-rush .rush-level-word::after { animation: none; }
.lobby-rush:is(.flare, :active, :focus-visible) .rush-ambient-rim,
.lobby-rush:is(.flare, :active, :focus-visible) .rush-level-word::after { visibility: hidden; }
.lobby-rush:is(.flare, :active, :focus-visible) .rush-ambient-rim::before,
.lobby-rush:is(.flare, :active, :focus-visible) .rush-level-word::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
.rush-ambient-rim, .rush-level-word::after { display: none; }
.rush-ambient-rim::before, .rush-level-word::after { animation: none !important; }
}

.offer-ambient-rim {
position: absolute;
z-index: -1;
inset: 0;
border-radius: 18px;
overflow: hidden;
pointer-events: none;
-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.offer-ambient-rim::before,
.offer-ambient-rim::after {
content: "";
position: absolute;
inset: 0 -50%;
background: linear-gradient(116deg, transparent 40%, rgba(255, 236, 170, 0.14) 47%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 236, 170, 0.14) 53%, transparent 60%);
animation: offer-rim-travel 6.4s ease-in-out -.9s infinite;
pointer-events: none;
}
.offer-ambient-rim::after {
animation-direction: reverse;
animation-delay: -3.6s;
}
@keyframes offer-rim-travel {
0% { transform: translateX(-55%); opacity: 0; }
25% { transform: translateX(-27%); opacity: .55; }
50% { transform: translateX(0); opacity: .9; }
75% { transform: translateX(27%); opacity: .45; }
100% { transform: translateX(55%); opacity: 0; }
}
.offer:not(.open) .offer-ambient-rim,
.scene-motion-paused .offer-ambient-rim,
body:has(#pay.open) .offer-ambient-rim { visibility: hidden; }
.offer:not(.open) .offer-ambient-rim::before,
.offer:not(.open) .offer-ambient-rim::after,
.scene-motion-paused .offer-ambient-rim::before,
.scene-motion-paused .offer-ambient-rim::after,
body:has(#pay.open) .offer-ambient-rim::before,
body:has(#pay.open) .offer-ambient-rim::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
.offer-ambient-rim { display: none; }
.offer-ambient-rim::before, .offer-ambient-rim::after { animation: none !important; }
}

/* Source: css/lobby-marquee-bulbs.css */
.bulbs {
--bulb-gap: 11px;
--bulb-size: 5px;
--bulb-lit: var(--gold-light);
--bulb-glow: var(--gold);
position: absolute;
overflow: hidden;
pointer-events: none;
background: radial-gradient(circle, #8a5a2c 0 calc(var(--bulb-size) / 2 - 1px), #3b1a0e calc(var(--bulb-size) / 2), transparent calc(var(--bulb-size) / 2 + 0.5px))
0 0 / var(--bulb-gap) 100% repeat-x;
}
.bulbs::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: calc(-3 * var(--bulb-gap));
right: 0;
background: radial-gradient(circle at calc(var(--bulb-gap) / 2) 50%, white 0 1px, var(--bulb-lit) calc(var(--bulb-size) / 2 - 0.5px), var(--bulb-glow) calc(var(--bulb-size) / 2 + 0.5px), transparent calc(var(--bulb-size) / 2 + 2.5px))
0 0 / calc(3 * var(--bulb-gap)) 100% repeat-x;
animation: bulbs-chase 660ms steps(3, end) infinite;
}
@keyframes bulbs-chase {
from { transform: translateX(0); }
to { transform: translateX(calc(3 * var(--bulb-gap))); }
}
.bulbs.up {
background-size: 100% var(--bulb-gap);
background-repeat: repeat-y;
}
.bulbs.up::before {
inset: 0 0 calc(-3 * var(--bulb-gap)) 0;
background-image: radial-gradient(circle at 50% calc(var(--bulb-gap) / 2), white 0 1px, var(--bulb-lit) calc(var(--bulb-size) / 2 - 0.5px), var(--bulb-glow) calc(var(--bulb-size) / 2 + 0.5px), transparent calc(var(--bulb-size) / 2 + 2.5px));
background-size: 100% calc(3 * var(--bulb-gap));
background-repeat: repeat-y;
animation-name: bulbs-climb;
}
@keyframes bulbs-climb {
from { transform: translateY(0); }
to { transform: translateY(calc(-3 * var(--bulb-gap))); }
}
.bulbs.back::before { animation-direction: reverse; }

.feature-sign .bulbs {
--bulb-lit: #ffd2f6;
--bulb-glow: #f04fd0;
z-index: 1;
}
.feature-sign .bulbs.left,
.feature-sign .bulbs.right {
top: 22px;
bottom: 12px;
width: 9px;
}
.feature-sign .bulbs.left { left: -6px; }
.feature-sign .bulbs.right { right: -6px; }
.feature-sign .bulbs.foot {
left: 14px;
right: 14px;
bottom: -6px;
height: 9px;
}

.lobby-rush .bulbs {
--bulb-gap: 12px;
left: 14px;
right: 14px;
height: 9px;
}
.lobby-rush .bulbs.top { top: -5.5px; }
.lobby-rush .bulbs.foot { bottom: -5.5px; }

.game-card .bulbs {
--bulb-gap: 10px;
--bulb-size: 4px;
--bulb-lit: var(--cabinet-highlight);
--bulb-glow: var(--cabinet-light);
z-index: 4;
top: 18px;
bottom: 6px;
width: 4px;
}
.game-card .bulbs::before {
opacity: 0.28;
animation-duration: 1.8s;
}
.game-card.soon .bulbs { visibility: hidden; }
.game-card.soon .bulbs::before { animation: none; }
.game-card .bulbs.left { left: 0; }
.game-card .bulbs.right { right: 0; }
.game-card:not(.card-in-view.card-motion-in-view) .bulbs::before { animation-play-state: paused; }
@media (max-height: 700px) {
.game-card .bulbs { --bulb-size: 3px; width: 3px; }
}

.lobby:not(.lobby-motion-active) .bulbs::before,
.lobby:has(.feature-feedback) .feature-sign .bulbs::before,
.lobby-rush:is(.flare, :active, :focus-visible) .bulbs::before { animation-play-state: paused; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
.bulbs::before { animation: none !important; }
}

/* Source: css/lobby-cabinet-motion.css */

.game-list > .game-card { will-change: transform; }

.game-card-stage {
position: absolute;
inset: 0;
display: block;
overflow: hidden;
border-radius: inherit;
container-type: size;
background-color: var(--cabinet-glass);
background-image: radial-gradient(ellipse at 50% 28%, var(--c-dark), var(--cabinet-glass) 85%);
pointer-events: none;
}

.game-card-portrait {
--portrait-w: max(100cqw, 50cqh);
--drift-period: 18s;
--drift-delay: -4s;
position: absolute;
display: block;
left: calc((100cqw - var(--portrait-w)) / 2);
top: calc((100cqh - var(--portrait-w) * 2) * .28);
width: var(--portrait-w);
height: calc(var(--portrait-w) * 2);
opacity: 0;
transition: opacity 150ms ease-out;
transform-origin: 50% 30%;
animation: cabinet-drift var(--drift-period) linear var(--drift-delay) infinite alternate;
animation-play-state: paused;
}
.card-portrait-ready .game-card-portrait { opacity: 1; }
.game-card-portrait > .game-card-picture { position: absolute; inset: 0; }

.game-list > .game-card:nth-child(4n + 2) .game-card-portrait { --drift-period: 21s; --drift-delay: -11s; }
.game-list > .game-card:nth-child(4n + 3) .game-card-portrait { --drift-period: 16s; --drift-delay: -7s; }
.game-list > .game-card:nth-child(4n) .game-card-portrait { --drift-period: 23s; --drift-delay: -15s; }

@keyframes cabinet-drift {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-3%, 2.2%) scale(1.08); }
100% { transform: translate(3%, -3%) scale(1.06); }
}

@property --cabinet-parallax {
syntax: "<number>";
inherits: false;
initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {
.game-card-brand { will-change: transform; }
.lobby-motion-active .game-card:not(.soon) .game-card-portrait {
translate: calc(var(--cabinet-parallax, 0) * 1%);
scale: calc(1 + max(var(--cabinet-parallax, 0), -1 * var(--cabinet-parallax, 0)) * .02);
}
.lobby-motion-active .game-card:not(.soon) .game-card-breakout > img {
translate: calc(var(--cabinet-parallax, 0) * -.3px);
}
.lobby-motion-active .game-card:not(.soon) :is(.game-card-portrait, .game-card-breakout > img):not(.cabinet-parallax) {
transition: opacity 150ms ease-out, translate 140ms ease-out, scale 140ms ease-out;
}
}

.game-card-layer {
position: absolute;
display: block;
pointer-events: none;
animation-play-state: paused;
}

.game-card-layer:is(.spin, .pulse) {
background-repeat: no-repeat;
border-radius: 50%;
-webkit-mask-image: radial-gradient(closest-side, #000 56%, transparent);
mask-image: radial-gradient(closest-side, #000 56%, transparent);
}
.game-card-layer.spin {
-webkit-mask-image: radial-gradient(closest-side, #000 22%, #0000 100%);
mask-image: radial-gradient(closest-side, #000 22%, #0000 100%);
}

.game-card-layer.spin { animation: cabinet-layer-spin var(--layer-period, 30s) linear infinite; }

.game-card-layer.pulse { animation: cabinet-layer-pulse var(--layer-period, 2.8s) ease-in-out infinite alternate; }
.game-card-layer.pulse::after {
content: "";
position: absolute;
inset: 18%;
border-radius: 50%;
background: radial-gradient(closest-side, #fff6d0aa, #ffd47a44 50%, transparent);
opacity: .05;
animation: cabinet-layer-bloom var(--layer-period, 2.8s) ease-in-out infinite alternate;
animation-play-state: paused;
}

.game-card-layer.drift {
--curtain-sway: calc(var(--portrait-w) / 64);
background-repeat: no-repeat;
-webkit-mask-image: radial-gradient(ellipse, #000 24%, #000b 48%, transparent 72%);
mask-image: radial-gradient(ellipse, #000 24%, #000b 48%, transparent 72%);
animation: cabinet-layer-curtain var(--layer-period, 12s) ease-in-out infinite alternate;
}

@keyframes cabinet-layer-curtain {
from { transform: translateX(calc(-1 * var(--curtain-sway))); }
to { transform: translateX(var(--curtain-sway)); }
}

.game-card-layer.glint {
width: 9%;
aspect-ratio: 1;
margin: -4.5% 0 0 -4.5%;
background: radial-gradient(circle, #fff 0 12%, var(--gold-light) 26%, var(--gold) 50%);
clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
transform: scale(.001);
animation: cabinet-layer-glint var(--layer-period, 6.4s) ease-in-out infinite;
animation-delay: calc(var(--layer-index) * 1.3s);
}

@keyframes cabinet-layer-spin {
from { transform: rotate(0deg); }
to { transform: rotate(-360deg); }
}
@keyframes cabinet-layer-pulse {
from { transform: scale(1); }
to { transform: scale(1.06); }
}
@keyframes cabinet-layer-bloom {
from { opacity: .05; }
to { opacity: .9; }
}
@keyframes cabinet-layer-glint {
0% { transform: scale(.001) rotate(-45deg); }
6% { transform: scale(1) rotate(0deg); }
12%, 100% { transform: scale(.001) rotate(45deg); }
}

@property --hero-progress {
syntax: "<number>";
inherits: false;
initial-value: 0;
}

.game-card-hero {
--hero-pose: min(var(--hero-progress), calc(14 - var(--hero-progress)));
--hero-lower: round(down, var(--hero-pose), 1);
--hero-upper: min(7, calc(var(--hero-lower) + 1));
--hero-blend: calc(var(--hero-pose) - var(--hero-lower));
position: absolute;
display: block;
pointer-events: none;
isolation: isolate;
}
.game-card-hero::before,
.game-card-hero::after {
content: "";
position: absolute;
inset: 0;
background-image: var(--hero-strip, none);
background-repeat: no-repeat;
background-size: 800% 100%;
}
.game-card-hero::before {
background-position: calc(var(--hero-lower) * 100% / 7) 0;
opacity: calc(1 - var(--hero-blend));
}
.game-card-hero::after {
background-position: calc(var(--hero-upper) * 100% / 7) 0;
opacity: var(--hero-blend);
mix-blend-mode: plus-lighter;
}
.game-card-hero.hero-loop {
--hero-cadence: linear;
--hero-pose: calc(var(--hero-progress) * 8 / 14);
--hero-lower: mod(round(down, var(--hero-pose), 1), 8);
--hero-upper: mod(calc(var(--hero-lower) + 1), 8);
--hero-blend: calc(var(--hero-pose) - round(down, var(--hero-pose), 1));
}
@media (prefers-reduced-motion: no-preference) {
body:not(.scene-motion-paused) .lobby.lobby-motion-active .game-card.card-motion-in-view:not(.soon) .game-card-hero {
animation: cabinet-hero var(--hero-duration, 7s) var(--hero-cadence, linear(0, 0 10%, 1 90%, 1)) infinite;
}
}
@keyframes cabinet-hero {
to { --hero-progress: 14; }
}

.game-card.has-breakout { overflow: visible; }
.game-card-breakout {
position: absolute;
z-index: 3;
inset: 0;
pointer-events: none;
clip-path: polygon(0 -44px, 100% -44px, 100% calc(100% + 44px),
0 calc(100% + 44px), 0 100%, calc(100% - 3px) 100%,
calc(100% - 3px) 10px, calc(100% - 14px) 0, 0 0);
}
.game-card-breakout > img {
position: absolute;
display: block;
right: 0;
top: calc(-1 * clamp(13px, 6cqh, 23px) - 16px);
width: 40cqw;
max-width: 68px;
height: auto;
pointer-events: none;
animation: cabinet-cutout-float 6s ease-in-out infinite alternate;
animation-play-state: paused;
}
@media (max-height: 700px) {
.game-card-breakout > img { top: calc(-1 * clamp(13px, 6cqh, 23px) - 13px); }
}
@container (max-height: 280px) {
.game-card-breakout > img { top: -26px; }
}
.game-list > .game-card:nth-child(2n) .game-card-breakout > img { animation-delay: -3s; }
@keyframes cabinet-cutout-float {
from { transform: translateY(0); }
to { transform: translateY(-2px); }
}

.game-card-portrait .game-card-layer,
.game-card-portrait .game-card-layer::after { animation-play-state: paused; }
.lobby.lobby-motion-active .game-card.card-motion-in-view:not(.soon) :is(.game-card-portrait, .game-card-layer, .game-card-breakout > img),
.lobby.lobby-motion-active .game-card.card-motion-in-view:not(.soon) .game-card-layer::after {
animation-play-state: running;
}
.game-card.soon :is(.game-card-portrait, .game-card-layer) { animation: none; }
body.scene-motion-paused .lobby :is(.game-card-portrait, .game-card-layer, .game-card-breakout > img),
body.scene-motion-paused .lobby .game-card-layer::after {
animation-play-state: paused !important;
}

.game-card-prizes {
display: grid;
grid-template-columns: minmax(0, 1fr);
}
@media (prefers-reduced-motion: no-preference) {
.lobby.lobby-motion-active .game-card.card-in-view .game-card-prizes {
perspective: 540px;
}
.lobby.lobby-motion-active .game-card.card-in-view .game-card-prizes > .game-card-jackpot {
backface-visibility: hidden;
}
}
.game-card-prizes > .game-card-jackpot {
--sign-flip: 8s linear var(--sign-delay, -0.3s) infinite;
grid-area: 1 / 1;
transform-origin: 50% 50%;
}
.game-card-prizes > .game-card-jackpot.major { margin: 0; }
.game-card-prizes > .game-card-jackpot.grand { animation: cabinet-sign-first var(--sign-flip); }
.game-card-prizes > .game-card-jackpot.major { opacity: 0; animation: cabinet-sign-second var(--sign-flip); }
.game-card-prizes > .game-card-jackpot.grand.flare { animation: cabinet-sign-first var(--sign-flip), lobby-plaque-flare 1.2s ease-out; }
.game-card-prizes > .game-card-jackpot.major.flare { animation: cabinet-sign-second var(--sign-flip), lobby-plaque-flare 1.2s ease-out; }
.game-list > .game-card:nth-child(5n + 2) .game-card-jackpot { --sign-delay: -1.9s; }
.game-list > .game-card:nth-child(5n + 3) .game-card-jackpot { --sign-delay: -3.5s; }
.game-list > .game-card:nth-child(5n + 4) .game-card-jackpot { --sign-delay: -1.1s; }
.game-list > .game-card:nth-child(5n) .game-card-jackpot { --sign-delay: -2.7s; }

@keyframes cabinet-sign-first {
0% { opacity: 1; rotate: x 0deg; filter: brightness(1.18); }
1.5% { filter: brightness(1.28); }
6% { filter: brightness(1); }
45% { opacity: .995; rotate: x 0deg; animation-timing-function: ease-in; }
47.1% { opacity: .95; }
47.5% { opacity: 0; rotate: x 90deg; animation-timing-function: step-end; }
50% { opacity: .005; rotate: x 0deg; }
95% { opacity: .002; rotate: x 0deg; animation-timing-function: step-end; }
97.5% { opacity: 0; rotate: x -90deg; animation-timing-function: ease-out; filter: brightness(1.003); }
97.9% { opacity: .95; }
100% { opacity: 1; rotate: x 0deg; filter: brightness(1.18); }
}
@keyframes cabinet-sign-second {
0% { opacity: .005; rotate: x 0deg; filter: brightness(1.0015); }
45% { opacity: .002; rotate: x 0deg; animation-timing-function: step-end; }
47.5% { opacity: 0; rotate: x -90deg; animation-timing-function: ease-out; filter: brightness(1.003); }
47.9% { opacity: .95; }
50% { opacity: 1; rotate: x 0deg; filter: brightness(1.18); }
51.5% { filter: brightness(1.28); }
56% { filter: brightness(1); }
95% { opacity: .995; rotate: x 0deg; animation-timing-function: ease-in; }
97.1% { opacity: .95; }
97.5% { opacity: 0; rotate: x 90deg; animation-timing-function: step-end; }
100% { opacity: .005; rotate: x 0deg; filter: brightness(1.0015); }
}

.lobby .game-card:not(.card-motion-in-view) .game-card-prizes > .game-card-jackpot,
.lobby .game-card:not(.card-motion-in-view) .game-card-prizes > .game-card-jackpot.flare::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
.game-card-breakout > img,
.game-card-portrait,
.game-card-portrait .game-card-layer,
.game-card-portrait .game-card-layer::after { animation: none; }
.game-card-portrait { transition: none; }
.game-card-portrait .game-card-layer.glint { opacity: 0; }
.game-card-prizes > .game-card-jackpot { --sign-flip: 8s step-end var(--sign-delay, -0.3s) infinite; }
.game-card-prizes > .game-card-jackpot.grand.flare { animation: cabinet-sign-first var(--sign-flip); }
.game-card-prizes > .game-card-jackpot.major.flare { animation: cabinet-sign-second var(--sign-flip); }
@keyframes cabinet-sign-first {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes cabinet-sign-second {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
}

.lobby:not(.lobby-motion-active) .game-card .game-card-prizes > .game-card-jackpot,
.lobby:not(.lobby-motion-active) .game-card .game-card-prizes > .game-card-jackpot.flare::after { animation: none; }

/* Source: css/lobby-motion-budget.css */

:root:not(.motion-budget-off) #lobby .lobby-ambient > :is(.ambient-beam, .n6, .n7, .n8, .n9, .n10, .n11) { display: none; }

:root:not(.motion-budget-off) .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) :is(.feature-halo, .feature-glint) {
animation: none;
visibility: hidden;
}
:root:not(.motion-budget-off) .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) > .bulbs::before { animation: none; }

:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight):not(.soon):not(.attract)::after,
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-rim::before,
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-sparkles::before,
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-sparkles::after,
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .bulbs::before,
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) :is(.game-logo-sparks, .game-card-breakout > img),
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-layer:not(.drift),
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-layer:not(.drift)::after {
animation: none;
}
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-feature-shine {
animation: none;
visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
:root:not(.motion-budget-off) .lobby.lobby-motion-active.idle .game-list > .game-card.card-motion-in-view.attract:not(.card-spotlight, .soon, :active, :focus-visible)::after {
animation: lobby-idle-tube 900ms ease-out;
}
:root:not(.motion-budget-off) .lobby.lobby-motion-active.idle .game-list > .game-card.card-motion-in-view.attract:not(.card-spotlight, .soon, :active, :focus-visible) .game-feature-shine {
animation: lobby-attract-shine 900ms ease-in-out;
visibility: visible;
}
:root:not(.motion-budget-off) .lobby.lobby-motion-active.idle .game-list > .game-card.card-motion-in-view.attract:not(.card-spotlight, .soon, :active, :focus-visible) .game-card-rim::before {
animation: lobby-attract-glint 900ms ease-in-out;
}
}

@keyframes lobby-attract-shine {
from { transform: translateX(0); }
to { transform: translateX(123.5294%); }
}

@keyframes lobby-attract-glint {
from { opacity: 0.9; transform: translateX(-150%); }
to { opacity: 0.9; transform: translateX(150%); }
}

:root:not(.motion-budget-off) .lobby.lobby-motion-active .game-list > .game-card:not(.card-spotlight):not(.attract) :is(.game-card-scene, .game-card-footlight) {
opacity: 0;
}
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) :is(.game-card-scene-halo, .game-card-scene-trace),
:root:not(.motion-budget-off) .lobby .game-list > .game-card:not(.card-spotlight) .game-card-footlight::before {
animation: none;
}

:root:not(.motion-budget-off) .lobby-rush:not(:has(.almost)) .bulbs::before { animation: none; }
:root:not(.motion-budget-off) .lobby-rush:not(:has(.almost)) .rush-ambient-rim::before,
:root:not(.motion-budget-off) .lobby-rush:not(:has(.almost)) .rush-level-word::after {
animation: none;
visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
:root:not(.motion-budget-off).landscape body:not(.scene-motion-paused) .lobby.lobby-motion-active .lobby-floor .game-list[data-cards]:has(> .bay.bay-active) > .game-card.card-spotlight[data-bay] .game-card-rim::before {
animation: none;
}
}

/* Source: css/drums.css */
:root {
--storm-cyan-surface: rgba(120, 220, 255, 0.22);
--storm-blue-surface: rgba(150, 120, 255, 0.22);
--storm-blue-shadow: #02061a;
--storm-blue-surface-2: #13205a;
--storm-blue-shadow-2: #0a1238;
--storm-blue-shadow-3: #030614;
--storm-blue-shadow-4: #061650;
--storm-blue-surface-3: #3a7ce8;
--storm-blue-surface-4: rgba(58, 124, 232, 0.5);
--storm-blue-shadow-5: #0a1440;
--storm-blue-surface-5: #3a5aa8;
--storm-blue-surface-6: #142a6a;
--storm-gold-surface: rgba(90, 60, 20, 0.25);
--storm-gold-shadow: rgba(80, 50, 10, 0.28);
--storm-gold-surface-2: rgba(150, 115, 60, 0.12);
--storm-gold-highlight: #e4d4ac;
--storm-gold-highlight-2: #f7efd9;
--storm-gold-highlight-3: #efe3c4;
--storm-gold-highlight-4: #e0cfa4;
--storm-gold-surface-3: #ffe94a;
--storm-gold-shadow-2: #3a2a00;
--storm-gold-surface-4: #ffd34d;
--storm-blue-shadow-6: #0a1a4a;
--storm-blue-shadow-7: #020618;
--storm-blue-surface-9: #10305a;
--storm-cyan-surface-3: rgba(66, 230, 255, 0.5);
--storm-cyan-highlight-2: #e8f6ff;
--storm-gold-surface-6: rgba(255, 211, 77, 0.35);
--storm-gold-surface-9: rgba(255, 200, 40, 0.8);
--storm-cyan-surface-4: rgba(66, 200, 255, 0.35);
--storm-cyan-surface-5: rgba(66, 200, 255, 0.8);
--storm-cyan-surface-6: rgba(120, 200, 255, 0.7);
--storm-silver-highlight: #ffffff;
--storm-cyan-highlight-3: #c8f0ff;
--storm-cyan-surface-7: #42b6ff;
--storm-blue-surface-12: #1a5ac8;
--storm-cyan-highlight-4: #bfe8ff;
--storm-blue-surface-13: #3a7ad8;
--storm-blue-shadow-8: #08205a;
--storm-cyan-surface-8: rgba(66, 230, 255, 0.6);
--storm-gold-surface-10: rgba(255, 211, 77, 0.9);
--storm-cyan-surface-9: rgba(66, 230, 255, 0.9);
--storm-blue-surface-14: #1c3a9a;
--storm-blue-shadow-9: #08164a;
--storm-cyan-surface-10: #7ac8ff;
--storm-blue-shadow-10: rgba(2, 6, 26, 0.7);
--storm-cyan-surface-11: rgba(122, 200, 255, 0.5);
--storm-cyan-highlight-5: #9fd8ff;
--storm-red-shadow: rgba(90, 40, 0, 0.75);
--storm-red-shadow-2: rgba(30, 10, 0, 0.85);
--storm-gold-surface-11: rgba(255, 211, 77, 0.6);
--storm-gold-shadow-4: rgba(60, 30, 0, 0.55);
--storm-gold-surface-12: #ffd060;
--storm-red-surface: #e8201a;
--storm-red-surface-2: #a00808;
--storm-red-shadow-3: #5a1a00;
--storm-gold-surface-13: rgba(255, 190, 30, 0.9);
--storm-cyan-surface-12: rgba(66, 190, 255, 0.9);
--storm-blue-highlight: rgba(200, 220, 255, 0.55);
--storm-blue-surface-15: #5a6aa0;
--storm-blue-surface-16: #262e5a;
--storm-blue-shadow-11: #10142e;
--storm-blue-shadow-12: rgba(10, 16, 46, 0.8);
--storm-blue-highlight-2: rgba(160, 190, 255, 0.8);
--storm-blue-surface-17: rgba(110, 130, 220, 0.75);
--storm-blue-surface-18: rgba(30, 70, 200, 0.75);
--storm-blue-shadow-13: rgba(2, 6, 26, 0.94);
--storm-cyan-surface-13: rgba(120, 220, 255, 0.35);
--storm-blue-surface-19: #1a3a9a;
--storm-blue-shadow-14: #060e36;
--storm-cyan-surface-14: rgba(66, 230, 255, 0.8);
--storm-gold-surface-14: rgba(255, 140, 0, 0.8);
--storm-play-deep: #087337;
--storm-play-lip: #03451f;
--storm-banner-top: rgba(14, 38, 114, 0.84);
--storm-banner-bottom: rgba(4, 12, 42, 0.88);
--storm-banner-glow: rgba(66, 230, 255, 0.30);
--storm-banner-end-glow: rgba(255, 211, 77, 0.30);
}


body.at-drums:not(.in-lobby) {
background:
radial-gradient(60% 30% at 20% 12%, var(--storm-cyan-surface), transparent 70%),
radial-gradient(60% 30% at 80% 14%, var(--storm-blue-surface), transparent 70%),
radial-gradient(120% 60% at 50% 100%, var(--storm-blue-shadow), transparent 70%),
linear-gradient(180deg, var(--storm-blue-surface-2), var(--storm-blue-shadow-2) 40%, var(--storm-blue-shadow-3)) fixed;
}

.app.drums {
--reel-frame: url("../art/frames/storm.webp");
--fret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' fill='%230a2478'/%3E%3Cpath d='M0 14.5H14.5V1.5H4V11H11V5H7.5' fill='none' stroke='%233a7ce8' stroke-width='2'/%3E%3C/svg%3E");
}

.app.drums .grid {
background: var(--fret) center / 16px 16px;
border-color: var(--storm-blue-shadow-4);
box-shadow: 0 0 0 1px var(--storm-blue-surface-3), 0 0 16px var(--storm-blue-surface-4), inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.app.drums .line-tabs {
display: flex;
}

.app.drums .reel {
box-shadow: 0 0 0 1px var(--storm-blue-shadow-4), inset 1px 0 0 rgba(255, 255, 255, 0.5), inset -1px 0 0 var(--storm-gold-surface);
background:
linear-gradient(180deg, var(--storm-gold-shadow), transparent 14%, transparent 86%, var(--storm-gold-shadow)),
repeating-linear-gradient(177deg, var(--storm-gold-surface-2) 0 1px, transparent 1px 6px),
repeating-linear-gradient(2deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 9px),
linear-gradient(90deg, var(--storm-gold-highlight), var(--storm-gold-highlight-2) 45%, var(--storm-gold-highlight-3) 70%, var(--storm-gold-highlight-4));
}

.app.drums .line-tab {
width: 18px;
height: 14px;
border-radius: 3px;
background:
radial-gradient(90% 60% at 50% 20%, rgba(255, 255, 255, 0.6), transparent 70%),
var(--c);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 -2px 2px rgba(0, 0, 0, 0.35);
color: #fff;
font-size: 12px;
line-height: 14px;
text-shadow: 0 0 2px #000, 0 1px 1px #000;
}

.app.drums .line-tab.lit {
filter: brightness(1.2);
transform: scale(1.18);
box-shadow: 0 0 0 1.5px #fff, 0 0 10px var(--c), 0 0 4px #fff;
}

.storm-wilds {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
margin-bottom: 0;
font-family: var(--display);
font-size: clamp(0.8rem, 3.8vw, 0.95rem);
letter-spacing: 0.05em;
color: var(--storm-gold-surface-3);
text-shadow: 0 1px 0 var(--storm-gold-shadow-2), 0 2px 3px rgba(0, 0, 0, 0.8);
white-space: nowrap;
}

.storm-wild {
display: inline-grid;
place-items: center;
width: 1.5em;
height: 1.5em;
border-radius: 4px;
font-size: 0.85em;
line-height: 1;
}

.storm-wild.thunder {
border-radius: 50%;
background: url("../art/ui/flare-disc.webp") center / contain no-repeat;
}

.storm-wild.wind {
border-radius: 50%;
background: url("../art/ui/vortex-disc.webp") center / contain no-repeat;
}

.app.drums .win-plate {
background: linear-gradient(180deg, var(--storm-blue-shadow-6), var(--storm-blue-shadow-7));
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--storm-blue-surface-9), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px var(--storm-cyan-surface-3);
color: var(--storm-cyan-highlight-2);
}


.storm {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: clamp(3px, 0.7vh, 6px);
padding: 4px 0 14px;
overflow: hidden;
}

.storm[hidden],
.tower[hidden] {
display: none;
}

.storm-sky {
position: relative;
flex: 1 1 0;
min-height: 0;
max-height: 210px;
overflow: hidden;
container-type: size;
}

.storm-disc {
position: relative;
display: grid;
place-items: center;
width: min(74cqh, 26cqw);
height: min(74cqh, 26cqw);
border-radius: 50%;
font-size: min(44cqh, 15cqw);
line-height: 1;
}

.storm-disc::before {
content: "";
position: absolute;
inset: -22%;
z-index: -1;
border-radius: 50%;
background: repeating-conic-gradient(var(--ray) 0 8deg, transparent 8deg 20deg);
-webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
mask-image: radial-gradient(circle, #000 35%, transparent 70%);
animation: rays 14s linear infinite;
}

.storm-disc.thunder {
--ray: var(--storm-gold-surface-6);
background: url("../art/ui/flare-disc.webp") center / contain no-repeat;
box-shadow: 0 0 24px var(--storm-gold-surface-9);
}

.storm-disc.wind {
--ray: var(--storm-cyan-surface-4);
background: url("../art/ui/vortex-disc.webp") center / contain no-repeat;
box-shadow: 0 0 24px var(--storm-cyan-surface-5);
}

.storm-disc.wind::before {
animation-direction: reverse;
}

.storm-disc .sym-img {
width: 76%;
height: 76%;
object-fit: contain;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.storm-event {
font-size: min(86cqh, 38cqw);
line-height: 1;
filter: drop-shadow(0 0 14px var(--storm-cyan-surface-6)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.7));
--hero-frames: 12;
--hero-period: 1s;
animation: storm-event 1.8s ease-in-out infinite alternate;
}

.storm-event .scene-hero-window {
display: block;
width: 1em;
height: 1em;
}

@container (max-height: 46px) {
.storm-disc,
.storm-event {
display: none;
}
}

.storm-sign {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.storm-title,
.free-show-title {
display: inline-block;
transform: skewX(-14deg);
}

.storm-title {
font-family: var(--display);
font-size: clamp(1.5rem, min(8vw, 4.4vh), 2.2rem);
letter-spacing: 0.03em;
line-height: 1.05;
white-space: nowrap;
background-image: linear-gradient(180deg, var(--storm-silver-highlight) 0%, var(--storm-cyan-highlight-3) 30%, var(--storm-cyan-surface-7) 50%, var(--storm-blue-surface-12) 54%, var(--storm-cyan-highlight-4) 78%, var(--storm-blue-surface-13) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--storm-blue-shadow-8)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px var(--storm-cyan-surface-8));
}

.storm-god {
font-size: clamp(1.6rem, min(9vw, 5vh), 2.4rem);
line-height: 1;
animation: storm-god 2.4s ease-in-out infinite alternate;
}

.storm-god.thunder {
filter: drop-shadow(0 0 10px var(--storm-gold-surface-10));
}

.storm-god.wind {
filter: drop-shadow(0 0 10px var(--storm-cyan-surface-9));
animation-delay: -1.2s;
}

.storm-ladder-head {
flex: none;
text-align: center;
font-family: var(--display);
font-size: clamp(0.7rem, 3.4vw, 0.9rem);
letter-spacing: 0.08em;
color: var(--storm-cyan-highlight-4);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.storm-ladder-head span {
letter-spacing: 0;
}

.storm-ladder {
flex: none;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 5px;
}

.storm-plaque {
display: flex;
flex-direction: column;
align-items: center;
padding: 3px 2px 4px;
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 45%),
linear-gradient(180deg, var(--storm-blue-surface-14), var(--storm-blue-shadow-9));
border: 2px solid var(--storm-cyan-surface-10);
box-shadow: 0 0 0 1px var(--storm-blue-shadow-8), 0 3px 6px rgba(0, 0, 0, 0.5);
transition: transform 200ms ease, box-shadow 200ms ease;
}

.storm-plaque-count {
font-size: 0.7rem;
font-family: var(--display);
letter-spacing: 0.06em;
color: var(--storm-cyan-highlight-4);
}

.storm-plaque-games {
font-family: var(--display);
font-size: clamp(1rem, min(4.9vw, 2.8vh), var(--type-lead));
line-height: 1.05;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.storm-plaque-games::after {
content: " FREE";
font-size: max(11px, 0.6em);
}

.storm-plaque.lit {
transform: scale(1.08);
border-color: var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 16px var(--storm-gold-surface-10);
animation: storm-lit 500ms ease-in-out infinite alternate;
}

.storm-board {
flex: none;
display: flex;
align-items: baseline;
justify-content: center;
gap: 10px;
min-width: 0;
padding: 4px 12px;
border-radius: 4px;
background: var(--storm-blue-shadow-10);
border: 1px solid var(--storm-cyan-surface-11);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
white-space: nowrap;
}

.storm-status {
font-family: var(--display);
font-size: clamp(0.85rem, 3.8vw, var(--type-readout));
letter-spacing: 0.04em;
color: var(--storm-cyan-highlight-2);
}

.storm-detail {
overflow: hidden;
text-overflow: ellipsis;
font-size: clamp(0.7rem, 3.3vw, 0.85rem);
font-family: var(--display);
color: var(--storm-cyan-highlight-5);
}

.storm.free .storm-board {
border-color: var(--gold);
background: linear-gradient(180deg, var(--storm-red-shadow), var(--storm-red-shadow-2));
box-shadow: 0 0 14px var(--storm-gold-surface-11), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.storm.free .storm-status {
color: var(--gold);
}

.storm.free .storm-detail {
color: var(--gold-light);
}

@media (max-height: 700px) {
.storm { gap: 1px; padding-top: 0; }
.storm-title { font-size: 1.5rem; }
.storm-god { font-size: 1.5rem; }
.storm-plaque { padding: 2px; }
.storm-plaque-games { font-size: 1rem; }
.storm-board { padding: 1px 12px; }
.storm-status { font-size: 0.95rem; }
}


body.at-drums .cell.sym {
background: none;
}

body.at-drums .cell.sym .sym-face {
filter: drop-shadow(0 2px 2px var(--storm-gold-shadow-4));
}

body.at-drums .cell.dsym-tiger::before,
body.at-drums .cell.dsym-cloud::before,
body.at-drums .cell.wild::before {
content: "";
position: absolute;
z-index: -1;
}

body.at-drums .cell.dsym-tiger::before {
inset: 5%;
border-radius: 6px;
background:
radial-gradient(circle, var(--storm-gold-surface-12) 0 18%, transparent 46%),
repeating-conic-gradient(var(--storm-red-surface) 0 10deg, var(--storm-red-surface-2) 10deg 20deg);
box-shadow: 0 0 0 2px var(--storm-gold-surface-4), 0 0 0 3.5px var(--storm-red-shadow-3), 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.at-drums .cell.dsym-tiger .sym-face {
font-size: calc(var(--cell) * 0.66);
}

body.at-drums .cell.wild::before {
inset: 6%;
border-radius: 50%;
background: url("../art/ui/flare-disc.webp") center / contain no-repeat;
box-shadow: 0 0 10px 2px var(--storm-gold-surface-13);
}

body.at-drums .cell.dsym-wind::before {
background: url("../art/ui/vortex-disc.webp") center / contain no-repeat;
box-shadow: 0 0 10px 2px var(--storm-cyan-surface-12);
}

body.at-drums .cell.wild .sym-face {
font-size: calc(var(--cell) * 0.56);
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

body.at-drums .cell.dsym-cloud::before {
inset: 0;
border-radius: 3px;
background:
radial-gradient(50% 40% at 50% 30%, var(--storm-blue-highlight), transparent 70%),
linear-gradient(180deg, var(--storm-blue-surface-15), var(--storm-blue-surface-16) 55%, var(--storm-blue-shadow-11));
box-shadow: inset 0 0 0 2px var(--storm-blue-shadow-12);
}

body.at-drums .cell.dsym-cloud .sym-face {
font-size: calc(var(--cell) * 0.72);
filter: drop-shadow(0 0 6px var(--storm-blue-highlight-2));
}

.cell.revealed {
box-shadow: inset 0 0 0 2px var(--storm-blue-surface-17);
border-radius: 8px;
}

.cell.reveal {
animation: cloud-reveal 420ms cubic-bezier(0.3, 1.5, 0.5, 1);
}


.cell.scatter-win {
border-radius: 8px;
box-shadow: inset 0 0 0 3px var(--gold), 0 0 14px var(--storm-gold-surface-10);
}

.float-text.free-pop {
font-size: 1.6rem;
color: var(--gold);
animation-duration: 1400ms;
}

.float-text.free-pop.grand { color: var(--jp-grand); text-shadow: var(--jp-outline); }
.float-text.free-pop.major { color: var(--jp-major); text-shadow: var(--jp-outline); }
.float-text.free-pop.minor { color: var(--jp-minor); text-shadow: var(--jp-outline); }
.float-text.free-pop.mini { color: var(--jp-mini); text-shadow: var(--jp-outline); }

.app.drums {
--machine-accent: #ffa040;
--machine-accent-2: #8f78ff;
}

/* Source: css/drums-free.css */

.free-show {
position: fixed;
inset: 0;
z-index: 44;
background: none;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 180ms ease, visibility 0s linear 180ms;
touch-action: manipulation;
}

.free-show.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: opacity 180ms ease;
}

.free-show-panel {
position: absolute;
left: var(--free-grid-x, 50%);
top: clamp(calc(var(--safe-top) + 116px), var(--free-grid-y, 50%), calc(100% - var(--safe-bottom) - 116px));
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
width: min(calc(100% - 24px), calc(var(--free-grid-w, 360px) - 8px), 360px);
padding: 16px 16px 12px;
border-radius: var(--radius);
background:
radial-gradient(90% 60% at 50% 0%, var(--storm-banner-glow), transparent 72%),
linear-gradient(180deg, var(--storm-banner-top), var(--storm-banner-bottom));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 22px var(--storm-cyan-surface-8), 0 8px 22px rgba(0, 0, 0, 0.65);
text-align: center;
}

.free-show.end .free-show-panel {
background:
radial-gradient(90% 60% at 50% 0%, var(--storm-banner-end-glow), transparent 72%),
linear-gradient(180deg, var(--storm-banner-top), var(--storm-banner-bottom));
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 22px var(--storm-gold-surface-11), 0 8px 22px rgba(0, 0, 0, 0.65);
}

.free-show.show .free-show-title {
animation: winner-in 380ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.free-show-gods {
order: -1;
display: flex;
justify-content: center;
gap: 8px;
line-height: 1;
filter: drop-shadow(0 0 8px var(--storm-cyan-surface-14));
}

.free-show-gods img {
width: 38px;
height: 38px;
object-fit: contain;
}

.free-show-title {
order: -2;
margin-top: 4px;
font-family: var(--display);
font-size: clamp(1.5rem, 7.5vw, 2.05rem);
line-height: 1.15;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
}

.free-show-main {
max-width: 100%;
overflow: hidden;
font-family: var(--display);
font-size: clamp(2.1rem, 12vw, 3.1rem);
line-height: 0.98;
letter-spacing: 0.03em;
color: var(--gold-light);
font-variant-numeric: tabular-nums;
text-shadow: 0 2px 0 #000, 0 0 12px var(--storm-cyan-surface-8);
}

.free-show.end .free-show-main {
font-size: clamp(1.8rem, 10vw, 2.6rem);
text-shadow: 0 2px 0 #000, 0 0 12px var(--storm-gold-surface-11);
}

.free-show-sub {
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.05em;
color: var(--text);
text-shadow: 0 1px 0 #000;
}

.free-show-tap {
margin-top: 4px;
width: min(100%, 220px);
min-height: 56px;
padding: 10px 18px;
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--jade), var(--storm-play-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--storm-play-lip), inset 0 1px 0 rgba(255, 255, 255, 0.5);
font-family: var(--display);
font-size: 1.25rem;
letter-spacing: 0.08em;
color: var(--text);
text-shadow: 0 1px 0 #000;
cursor: pointer;
touch-action: manipulation;
}

.free-show-tap:active {
transform: translateY(3px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 var(--storm-play-lip);
}

.free-show-tap:focus-visible {
outline: 2px solid var(--text);
outline-offset: 5px;
}


.storm-depth {
position: absolute;
inset: calc(-1 * var(--parallax-reach));
}

.storm-depth > i:not(.fx-amb) {
position: absolute;
inset: 0;
background: center / cover no-repeat;
}

.storm-depth > i:not(.fx-amb) + i:not(.fx-amb) { display: none; }
.storm-depth.far > i:not(.fx-amb) { background-image: url("../art/ui/storm-scene.webp"); }
.storm-depth.mid > i:not(.fx-amb) { background-image: url("../art/ui/storm-mid.webp"); }
.storm-depth.frame > i:not(.fx-amb) { background-image: url("../art/ui/storm-frame.webp"); }

.storm-depth.mid { --win-art: url("../art/ui/storm-mid.webp"); }
.storm-depth.frame { --win-art: url("../art/ui/storm-frame.webp"); }
.storm-depth:not(.far) { --win-mask: var(--win-art) center / cover no-repeat; }
.storm-props { --win-mask: linear-gradient(#0000, #0000); }

.storm-mist {
--loop-tile: url("../art/scene-loops/storm-mist-tile.webp");
--loop-tile-w: 256px;
--loop-tile-h: 64px;
--loop-period: 30s;
--loop-mask: var(--win-mask);
opacity: .6;
}

.storm-props {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 4%;
}


@keyframes storm-god {
from { transform: translateY(0) rotate(-6deg); }
to { transform: translateY(-3px) rotate(6deg); }
}

@keyframes storm-event {
from { transform: scale(1) rotate(-1deg); }
to { transform: scale(1.02) rotate(1deg); }
}

@keyframes storm-lit {
from { filter: brightness(1); }
to { filter: brightness(1.35); }
}

@keyframes cloud-reveal {
0% { transform: scale(0.3) rotate(-20deg); opacity: 0.3; }
100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.storm-god,
.storm-event,
.storm-disc::before,
.storm-plaque.lit,
.cell.reveal {
animation: none;
}
}

@media (max-height: 700px) {
.storm { gap: 1px; padding-top: 0; padding-bottom: 14px; }
.storm-title { font-size: 1.5rem; }
.storm-god { font-size: 1.5rem; }
.storm-plaque { padding: 2px; }
.storm-plaque-games { font-size: 1rem; }
.storm-board { padding: 1px 12px; }
.storm-status { font-size: 0.95rem; }
}

.storm-title {
background-image: var(--gold-bevel);
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
}
.storm-plaque {
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: linear-gradient(var(--storm-blue-shadow-6), var(--storm-blue-shadow-7));
}
.storm-plaque.lit {
border-color: var(--gold);
}
.storm-plaque-count, .storm-ladder-head, .storm-detail {
color: var(--text);
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
}
.storm-detail { font-variant-numeric: tabular-nums; }
.storm-status, .storm-wilds { color: var(--text); text-shadow: 0 1px 0 #000; }
.storm-board { flex-wrap: wrap; gap: 1px 10px; border-radius: 4px; }
.storm.free .storm-detail { flex-basis: 100%; text-align: center; }
.storm-disc.thunder, .storm-disc.wind {
box-shadow: 0 0 0 2px var(--gold-deep), inset 0 1px 2px rgba(255,255,255,.35);
}
.storm-disc::before { display: none; }
.storm-god.thunder, .storm-god.wind { filter: none; animation: none; }
.storm-god img { display: block; width: 1em; height: 1em; object-fit: contain; }
.storm-ladder-head img { width: 18px; height: 18px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
.free-show, .free-show.show, .storm-plaque { transition: none; }
.free-show.show .free-show-title, .drum-line-glow, .float-text.free-pop { animation: none; }
}

.app.drums {
--storm-line-1: #42e6ff;
--storm-line-2: #ff4fd8;
--storm-line-3: #ff3b4e;
--storm-line-4: #2fd47a;
--storm-line-5: #1f9a52;
--storm-line-6: #ffd34d;
--storm-line-7: #ff8a1f;
--storm-line-8: #3b8bff;
--storm-line-9: #a64dff;
--storm-line-10: #2236c8;
--storm-line-11: #c42a9c;
--storm-line-12: #c0c0c0;
--storm-line-13: #b8642a;
--storm-line-14: #5ac8ff;
--storm-line-15: #ffa98a;
--storm-line-16: #e0607a;
--storm-line-17: #7a3cff;
--storm-line-18: #ff5fa8;
--storm-line-19: #5ae0b0;
--storm-line-20: #c8e040;
}

:root {
--storm-eclipse-gold: rgba(255, 176, 60, 0.55);
--storm-eclipse-indigo: rgba(26, 14, 96, 0.78);
--storm-cloud-sting: rgba(176, 196, 255, 0.55);
}

.sting.cloud {
background: radial-gradient(circle at 50% 50%, var(--storm-cloud-sting) 0, var(--storm-eclipse-indigo) 44%, transparent 76%);
}

:root {
--storm-burst-ray: rgba(255, 244, 205, 0.95);
--storm-burst-gold: rgba(255, 211, 77, 0.85);
--storm-burst-core: rgba(255, 255, 255, 0.9);
}

.reel-fx > .storm-burst {
position: absolute;
left: -45%;
right: -45%;
top: calc(100% * (var(--reel-fx-row) - 0.5) / var(--reel-rows, 3));
height: calc(200% / var(--reel-rows, 3));
pointer-events: none;
opacity: 0;
background:
radial-gradient(circle at 50% 50%, var(--storm-burst-core) 0, var(--storm-burst-gold) 14%, transparent 34%),
repeating-conic-gradient(from 0deg at 50% 50%, var(--storm-burst-ray) 0 6deg, transparent 6deg 24deg, var(--storm-burst-gold) 24deg 28deg, transparent 28deg 48deg);
-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 28%, transparent 66%);
mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 28%, transparent 66%);
animation: storm-burst var(--burst-ms, 640ms) cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes storm-burst {
0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
25% { opacity: 1; }
100% { opacity: 0; transform: scale(1.35) rotate(26deg); }
}

@media (prefers-reduced-motion: reduce) {
.reel-fx > .storm-burst {
display: none;
}
}

.app.drums.storm-eclipse .storm-depth.frame::after,
.app.drums.storm-eclipse .grid::after {
content: "";
position: absolute;
pointer-events: none;
background: linear-gradient(180deg, var(--storm-eclipse-indigo), var(--storm-eclipse-gold) 55%, var(--storm-eclipse-indigo));
opacity: 0.8;
animation: eclipse-pulse 3.6s ease-in-out infinite alternate;
animation-play-state: var(--idle-play, running);
}

.app.drums.storm-eclipse .storm-depth.frame::after {
inset: 0;
}

.app.drums.storm-eclipse .grid::after {
top: -18px;
bottom: -4px;
left: -23px;
right: -23px;
z-index: -1;
}

.app.drums.storm-eclipse .storm-disc::before {
display: block;
opacity: 0.8;
animation: rays 14s linear infinite, eclipse-pulse 3s ease-in-out infinite alternate;
animation-play-state: var(--idle-play, running);
}

.app.drums.storm-eclipse .storm-god.thunder {
filter: drop-shadow(0 0 10px var(--storm-eclipse-gold));
animation: eclipse-god 2.2s ease-in-out infinite alternate;
animation-play-state: var(--idle-play, running);
}

.app.drums.storm-eclipse .storm-god.wind {
filter: drop-shadow(0 0 10px var(--storm-cloud-sting));
animation: eclipse-god 2.2s ease-in-out -1.1s infinite alternate;
animation-play-state: var(--idle-play, running);
}

.storm-x5 {
position: absolute;
left: 50%;
top: 50%;
z-index: 6;
pointer-events: none;
color: var(--gold-light);
font-family: var(--symbol);
font-size: clamp(3rem, 22vh, 6rem);
line-height: 1;
text-shadow: 0 0 6px var(--gold), 0 3px 0 #000, 0 0 22px var(--storm-eclipse-gold);
opacity: 0;
transform: translate(-50%, -50%) scale(2.4);
animation: x5-stamp var(--x5-ms, 900ms) cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes eclipse-pulse {
from { opacity: 0.5; }
to { opacity: 1; }
}

@keyframes eclipse-god {
from { opacity: 0.8; transform: scale(0.96); }
to { opacity: 1; transform: scale(1.08); }
}

@keyframes x5-stamp {
0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(-8deg); }
22% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
70% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(-4deg); }
100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
.app.drums.storm-eclipse .storm-depth.frame::after,
.app.drums.storm-eclipse .grid::after,
.app.drums.storm-eclipse .storm-disc::before,
.app.drums.storm-eclipse .storm-god.thunder,
.app.drums.storm-eclipse .storm-god.wind,
.storm-x5 {
animation: none;
}
}

/* Source: css/koi.css */


:root {
--lagoon-deep: #031a26;
--lagoon: #0a4656;
--lagoon-teal: #36dcc4;
--lagoon-aqua: #8af2e6;
--lotus: #ff7ac8;
--lagoon-not-in-lobby-tone-1: rgba(54, 220, 196, 0.22);
--lagoon-not-in-lobby-tone-2: rgba(150, 90, 255, 0.25);
--lagoon-not-in-lobby-tone-3: #021018;
--lagoon-not-in-lobby-tone-4: #1c0f4a;
--lagoon-not-in-lobby-tone-5: #0b2f48;
--lagoon-not-in-lobby-tone-6: #03121c;
--lagoon-before-tone-7: #fff2cf99;
--lagoon-before-tone-8: #bff8ff88;
--lagoon-before-tone-9: rgba(54, 220, 196, 0.32);
--lagoon-before-tone-10: rgba(170, 70, 230, 0.45);
--lagoon-before-tone-11: rgba(239, 52, 201, 0.28);
--lagoon-before-tone-12: #1a0b3d;
--lagoon-before-tone-13: #182a5e;
--lagoon-before-tone-14: #0a3a4c;
--lagoon-before-tone-15: #03141e;
--lagoon-grid-tone-16: #06303c;
--lagoon-grid-tone-17: #021219;
--lagoon-grid-tone-18: #fff0c0;
--lagoon-grid-tone-19: rgba(54, 220, 196, 0.45);
--lagoon-reel-tone-29: rgba(138, 242, 230, 0.35);
--lagoon-reel-tone-30: rgba(138, 242, 230, 0.12);
--lagoon-reel-tone-31: rgba(138, 242, 230, 0.1);
--lagoon-reel-tone-32: #0d4a5c;
--lagoon-reel-tone-33: #031a24;
--lagoon-holding-grid-tone-34: rgba(54, 220, 196, 0.6);
--lagoon-holding-reel-tone-35: #062a36;
--lagoon-holding-reel-tone-36: #010a10;
--lagoon-win-plate-tone-37: #0a3a46;
--lagoon-win-plate-tone-38: #02141a;
--lagoon-win-plate-tone-39: #0a4656;
--lagoon-win-plate-tone-40: rgba(54, 220, 196, 0.55);
--lagoon-reels-lagoon-wilds-tone-41: #3a2a00;
--lagoon-wild-tone-42: rgba(255, 230, 140, 0.7);
--lagoon-sky-before-tone-43: rgba(246, 238, 214, 0.22);
--lagoon-sky-before-tone-44: rgba(54, 220, 196, 0.5);
--lagoon-sky-before-tone-45: rgba(10, 70, 86, 0.2);
--lagoon-lines-lagoon-stars-tone-46: #fff6d0;
--lagoon-lines-lagoon-stars-tone-47: #bff8ff;
--lagoon-lines-lagoon-stars-tone-48: rgba(191, 248, 255, 0.25);
--lagoon-lotus-lagoon-pad-tone-51: #1f9a6a;
--lagoon-lotus-lagoon-pad-tone-52: rgba(0, 30, 20, 0.6);
--lagoon-lotus-lagoon-pad-tone-53: rgba(54, 220, 196, 0.35);
--lagoon-jackpot-tone-55: #2fd4a8;
--lagoon-jackpot-tone-56: #04362c;
--lagoon-jackpot-grand-tone-58: #4a0010;
--lagoon-jackpot-major-tone-60: #04361c;
--lagoon-jackpot-minor-tone-62: #0a2470;
--lagoon-hint-before-tone-67: rgba(138, 242, 230, 0.9);
--lagoon-held-lagoon-board-tone-68: rgba(2, 18, 26, 0.75);
--lagoon-held-lagoon-board-tone-69: rgba(138, 242, 230, 0.5);
--lagoon-pip-tone-70: #4a5a66;
--lagoon-pip-tone-71: #10161c;
--lagoon-pip-lit-tone-72: #8af2e6;
--lagoon-pip-lit-tone-73: #1a9a8a;
--lagoon-hold-lagoon-board-tone-74: rgba(6, 70, 80, 0.85);
--lagoon-hold-lagoon-board-tone-75: rgba(2, 20, 28, 0.9);
--lagoon-cell-ksym-koi-tone-76: rgba(255, 120, 210, 0.6);
--lagoon-cell-ksym-planet-tone-77: rgba(255, 90, 200, 0.5);
--lagoon-cell-ksym-lantern-tone-78: rgba(54, 220, 196, 0.55);
--lagoon-cell-ksym-lotus-tone-79: rgba(255, 140, 210, 0.5);
--lagoon-cell-ksym-moon-tone-80: rgba(255, 220, 90, 0.5);
--lagoon-cell-ksym-crystal-tone-81: rgba(255, 215, 80, 0.9);
--lagoon-wild-wild-tag-tone-82: #12857a;
--lagoon-wild-wild-tag-tone-83: #03323a;
--lagoon-at-koi-letter-tone-84: #ffe2f2;
--lagoon-at-koi-letter-tone-85: #ff5ab4;
--lagoon-at-koi-letter-tone-86: #6a0a40;
--lagoon-at-koi-letter-tone-87: #d8fff8;
--lagoon-at-koi-letter-tone-88: #1fc8b0;
--lagoon-at-koi-letter-tone-89: #04443e;
--lagoon-at-koi-letter-tone-90: #e8e0ff;
--lagoon-at-koi-letter-tone-91: #9a6aff;
--lagoon-at-koi-letter-tone-92: #2a0a6a;
--lagoon-at-koi-letter-tone-93: #dff4ff;
--lagoon-at-koi-letter-tone-94: #38a8f0;
--lagoon-at-koi-letter-tone-95: #08305a;
--lagoon-at-koi-letter-tone-96: #fff4d0;
--lagoon-at-koi-letter-tone-97: #f0b030;
--lagoon-at-koi-letter-tone-98: #6a3a00;
--lagoon-cell-koi-pearl-tone-99: #9fe8f2;
--lagoon-cell-koi-pearl-tone-100: #1f86b0;
--lagoon-cell-koi-pearl-tone-101: #061e40;
--lagoon-cell-koi-pearl-tone-102: rgba(138, 242, 230, 0.8);
--lagoon-pearl-orb-tone-103: rgba(255, 190, 240, 0.35);
--lagoon-pearl-orb-tone-104: rgba(190, 255, 245, 0.4);
--lagoon-pearl-orb-tone-105: rgba(0, 20, 40, 0.5);
--lagoon-pearl-value-tone-106: #031020;
--lagoon-pearl-jp-mini-tone-107: #fff6c8;
--lagoon-pearl-jp-mini-tone-108: var(--jp-mini);
--lagoon-pearl-jp-mini-tone-109: #5a3c00;
--lagoon-pearl-jp-mini-tone-110: rgba(255, 212, 90, 0.9);
--lagoon-pearl-jp-minor-tone-111: #c4dcff;
--lagoon-pearl-jp-minor-tone-112: var(--jp-minor);
--lagoon-pearl-jp-minor-tone-113: #0a2470;
--lagoon-pearl-jp-minor-tone-114: rgba(59, 139, 255, 0.9);
--lagoon-pearl-jp-major-tone-115: #c4ffdc;
--lagoon-pearl-jp-major-tone-116: var(--jp-major);
--lagoon-pearl-jp-major-tone-117: #04361c;
--lagoon-pearl-jp-major-tone-118: rgba(47, 212, 122, 0.95);
--lagoon-pearl-jp-grand-tone-119: #ffc2c8;
--lagoon-pearl-jp-grand-tone-120: var(--jp-grand);
--lagoon-pearl-jp-grand-tone-121: #4a0010;
--lagoon-pearl-jp-grand-tone-122: rgba(255, 59, 78, 0.95);
--lagoon-pearl-locked-after-tone-123: rgba(255, 211, 77, 0.4);
--lagoon-cell-koi-dark-tone-124: rgba(54, 220, 196, 0.08);
--lagoon-screens-koi-show-tone-126: rgba(20, 150, 150, 0.7);
--lagoon-screens-koi-show-tone-127: rgba(2, 14, 22, 0.94);
}

body.at-koi:not(.in-lobby) {
background:
radial-gradient(60% 30% at 50% 18%, var(--lagoon-not-in-lobby-tone-1), transparent 70%),
radial-gradient(50% 30% at 15% 40%, var(--lagoon-not-in-lobby-tone-2), transparent 70%),
radial-gradient(120% 60% at 50% 100%, var(--lagoon-not-in-lobby-tone-3), transparent 70%),
linear-gradient(180deg, var(--lagoon-not-in-lobby-tone-4), var(--lagoon-not-in-lobby-tone-5) 45%, var(--lagoon-not-in-lobby-tone-6)) fixed;
}

.app.koi::before {
background:
radial-gradient(circle at 12% 18%, var(--lagoon-before-tone-7) 0 0.55px, transparent 1px) 0 0 / 97px 131px,
radial-gradient(circle at 70% 36%, var(--lagoon-before-tone-8) 0 0.5px, transparent 1px) 0 0 / 151px 113px,
radial-gradient(ellipse at 50% 30%, var(--lagoon-before-tone-9), transparent 46%),
radial-gradient(ellipse at 18% 22%, var(--lagoon-before-tone-10), transparent 50%),
radial-gradient(ellipse at 85% 30%, var(--lagoon-before-tone-11), transparent 45%),
linear-gradient(180deg, var(--lagoon-before-tone-12), var(--lagoon-before-tone-13) 38%, var(--lagoon-before-tone-14) 62%, var(--lagoon-before-tone-15));
}

.app.koi { --reel-frame: url("../art/frames/lagoon.webp"); }
.app.koi .grid {
background: linear-gradient(180deg, var(--lagoon-grid-tone-16), var(--lagoon-grid-tone-17));
border-color: var(--lagoon-grid-tone-18);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px 1px var(--gold), 0 0 22px 4px var(--lagoon-grid-tone-19), inset 0 0 18px rgba(0, 0, 0, 0.8);
}

.app.koi .reel {
box-shadow: 0 0 0 1px var(--lagoon-reel-tone-29), inset 1px 0 0 rgba(255, 255, 255, 0.08), inset -1px 0 0 rgba(0, 0, 0, 0.5);
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, rgba(255, 255, 255, 0.05) 50%, transparent 78%, rgba(0, 0, 0, 0.55)),
radial-gradient(40% 18% at 30% 30%, var(--lagoon-reel-tone-30), transparent 70%),
radial-gradient(40% 18% at 70% 72%, var(--lagoon-reel-tone-31), transparent 70%),
radial-gradient(ellipse at 50% 50%, var(--lagoon-reel-tone-32), var(--lagoon-reel-tone-33) 82%);
}

.app.koi.holding .grid {
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px 2px var(--lagoon-teal), 0 0 26px 6px var(--lagoon-holding-grid-tone-34), inset 0 0 18px rgba(0, 0, 0, 0.8);
}

.app.koi.holding .reel {
background: radial-gradient(ellipse at 50% 50%, var(--lagoon-holding-reel-tone-35), var(--lagoon-holding-reel-tone-36) 85%);
}

.app.koi .win-plate {
background: linear-gradient(180deg, var(--lagoon-win-plate-tone-37), var(--lagoon-win-plate-tone-38));
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--lagoon-win-plate-tone-39), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px var(--lagoon-win-plate-tone-40);
color: var(--text);
}

.app.koi .streak-chip,
.app.koi .goal-chip {
top: -2px;
}

.lagoon-wilds {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
margin-bottom: 0;
font-family: var(--display);
font-size: clamp(0.75rem, 3.6vw, 0.9rem);
letter-spacing: 0.05em;
color: var(--gold-light);
text-shadow: 0 1px 0 var(--lagoon-reels-lagoon-wilds-tone-41), 0 2px 3px rgba(0, 0, 0, 0.8);
white-space: nowrap;
}

.lagoon-wild {
display: inline-grid;
place-items: center;
width: 1.6em;
height: 1.6em;
border-radius: 50%;
background: radial-gradient(circle, var(--lagoon-wild-tone-42), transparent 70%);
line-height: 1;
}

.lagoon-wild .sym-img {
width: 1.4em;
height: 1.4em;
}


.lagoon {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: clamp(2px, 0.6vh, 6px);
padding: 2px 0 16px;
overflow: hidden;
container: lagoon / size;
}

.lagoon[hidden] {
display: none;
}


.lagoon-sign {
flex: none;
display: flex;
justify-content: center;
}

.lagoon-title,
.koi-show-title {
display: inline-block;
transform: skewX(-12deg);
font-weight: 400;
}

.lagoon-title {
font-family: var(--display);
font-size: clamp(1.4rem, min(7.5vw, 3.7vh), 2rem);
letter-spacing: 0.04em;
line-height: 1.05;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 1px 0 #000);
}

.lagoon-jackpots {
flex: none;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 4px;
}

.lagoon-jackpot {
--j: var(--lagoon-jackpot-tone-55);
--j-dark: var(--lagoon-jackpot-tone-56);
display: flex;
flex-direction: column;
align-items: center;
min-width: 0;
padding: 3px 4px 4px;
border-radius: 9px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%),
linear-gradient(180deg, var(--j-dark), var(--lagoon-deep));
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.5);
}

.lagoon-jackpot.grand {
--j: var(--jp-grand);
--j-dark: var(--lagoon-jackpot-grand-tone-58);
grid-column: 1 / -1;
flex-direction: row;
justify-content: center;
gap: 10px;
padding: 1px 10px 2px;
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.5);
}

.lagoon-jackpot.major { --j: var(--jp-major); --j-dark: var(--lagoon-jackpot-major-tone-60); }
.lagoon-jackpot.minor { --j: var(--cabinet-minor-ink); --j-dark: var(--lagoon-jackpot-minor-tone-62); }
.lagoon-jackpot.mini { --j: var(--jp-mini); --j-dark: var(--gold-deep); }

.lagoon-jackpot-name {
font-family: var(--display);
font-size: clamp(0.7rem, min(3vw, 1.6vh), 0.8rem);
letter-spacing: 0.08em;
line-height: 1.15;
color: var(--j);
text-shadow: var(--jp-outline);
}

.lagoon-jackpot.grand .lagoon-jackpot-name {
font-size: clamp(0.8rem, min(3.8vw, 2.1vh), 1rem);
}

.lagoon-jackpot-amount {
display: block;
max-width: 100%;
overflow: hidden;
font-family: var(--display);
font-size: clamp(0.85rem, min(3.8vw, 2.2vh), var(--type-readout));
line-height: 1.1;
white-space: nowrap;
font-variant-numeric: tabular-nums;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.lagoon-jackpot.grand .lagoon-jackpot-amount {
min-width: 0;
font-size: clamp(1rem, min(4.9vw, 2.6vh), var(--type-lead));
}

@container lagoon (max-height: 190px) {
.lagoon {
gap: 1px;
padding: 0 0 15px;
}

.lagoon-title {
font-size: 1.1rem;
}

.lagoon-jackpots {
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
gap: 3px;
}

.lagoon-jackpot.grand {
grid-column: auto;
gap: 4px;
padding: 3px 4px 4px;
}

.lagoon-hint {
font-size: 0.7rem;
}

.lagoon-board {
padding: 1px 10px;
}

.lagoon-wilds {
font-size: 0.7rem;
}

.lagoon-jackpot {
flex-direction: row;
justify-content: center;
align-items: baseline;
gap: 3px;
padding-inline: 2px;
}

.lagoon-jackpot-name {
flex: none;
font-size: 0.7rem;
letter-spacing: 0.06em;
}

.lagoon-jackpot-amount {
min-width: 0;
font-size: 0.95rem;
}

.lagoon-jackpot.grand .lagoon-jackpot-name {
font-size: 0.7rem;
}

.lagoon-jackpot.grand .lagoon-jackpot-amount {
font-size: 1.05rem;
line-height: 0.92;
}
}

.lagoon-jackpot.hit {
animation: lagoon-jackpot-hit 900ms ease-out;
}

.lagoon-jackpot.hit.handpay { animation-iteration-count: infinite; }

.lagoon-hint {
flex: none;
text-align: center;
font-family: var(--display);
font-size: clamp(0.7rem, 3.3vw, 0.85rem);
letter-spacing: 0.07em;
white-space: nowrap;
color: var(--text);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lagoon-hint::before {
content: "";
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-right: 0.3em;
vertical-align: -0.25em;
background: url("../art/ui/pearl.webp") center / contain no-repeat;

}

.lagoon-board {
position: relative;
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
min-width: 0;
padding: 3px 12px;
border-radius: 6px;
background: var(--lagoon-held-lagoon-board-tone-68);
border: 1px solid var(--lagoon-held-lagoon-board-tone-69);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
white-space: nowrap;
}

.lagoon-status {
font-family: var(--display);
font-size: clamp(0.85rem, 3.8vw, var(--type-readout));
letter-spacing: 0.04em;
color: var(--text);
}

.lagoon-detail {
overflow: hidden;
text-overflow: ellipsis;
font-size: clamp(0.7rem, 3.3vw, 0.85rem);
font-family: var(--display);
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
color: var(--text);
}

.lagoon-pips {
display: none;
gap: 4px;
}

.lagoon-pip {
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, var(--lagoon-pip-tone-70), var(--lagoon-pip-tone-71));
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7);
}

.lagoon-pip.lit {
background: radial-gradient(circle at 35% 30%, #fff, var(--lagoon-pip-lit-tone-72) 35%, var(--lagoon-pip-lit-tone-73) 80%);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px var(--lagoon-hint-before-tone-67);
}

.lagoon-pip.reset {
animation: lagoon-pip-reset 420ms ease-out;
}

.lagoon.hold .lagoon-pips {
display: flex;
}

.lagoon.hold .lagoon-board {
border-color: var(--gold);
background: linear-gradient(180deg, var(--lagoon-hold-lagoon-board-tone-74), var(--lagoon-hold-lagoon-board-tone-75));
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.lagoon.hold .lagoon-status {
color: var(--gold-light);
font-size: 1.05rem;
}
.lagoon.hold .lagoon-detail {
color: var(--gold-light);
font-size: 0.9rem;
}
.lagoon.hold :is(.lagoon-hint, .lagoon-wilds) {
color: var(--muted);
}

.app.koi {
--machine-accent: #8af2e6;
--machine-accent-2: #36dcc4;
}

/* Source: css/koi-scenery.css */

.lagoon-sky {
position: relative;
flex: 1 1 0;
min-height: 0;
max-height: 170px;
overflow: clip;
container-type: size;
}

.lagoon-depth {
position: absolute;
inset: calc(-1 * var(--parallax-reach));
background: url("../art/ui/lagoon-scene.webp") center / cover no-repeat;
}

.lagoon-depth.mid { background-image: url("../art/ui/lagoon-scene-mid.webp"); }
.lagoon-depth.frame { background-image: url("../art/ui/lagoon-scene-frame.webp"); }

.lagoon-shimmer {
--loop-tile: url("../art/ui/lagoon-shimmer-tile.webp");
--loop-tile-w: 120px;
--loop-tile-h: 40px;
--loop-period: 20s;
--loop-mask: linear-gradient(transparent 52%, #000 66%);
opacity: .24;
}

.lagoon-props {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 3%;
}

.lagoon-koi,
.lagoon-gap {
position: relative;
width: min(92cqh, 34cqw);
height: min(92cqh, 34cqw);
}

.lagoon-gap {
flex-shrink: 0;
}

.lagoon-koi {
--hero-frames: 8;
--hero-period: 800ms;
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
animation: lagoon-swim 3.2s ease-in-out infinite alternate;
}

.lagoon-lantern {
position: relative;
width: min(46cqh, 13cqw);
height: min(46cqh, 13cqw);
align-self: flex-start;
margin-top: 4%;
animation: lagoon-bob 2.6s ease-in-out infinite alternate;
}

.lagoon-lantern.right {
animation-delay: -1.3s;
}

.lagoon-pad {
position: relative;
align-self: flex-end;
width: min(52cqh, 17cqw);
height: min(52cqh, 17cqw);
margin-bottom: 3%;
background: url("../art/ui/lotus.webp") center / contain no-repeat;
pointer-events: none;
}

.lagoon-pad.two { transform: scale(1.12); }

@container (max-height: 46px) {
.lagoon-koi,
.lagoon-lantern,
.lagoon-pad,
.lagoon-gap {
display: none;
}
}

html.landscape #app .lagoon-props {
display: block;
}

html.landscape #app .lagoon-gap {
display: none;
}

.lagoon-depth.mid { --win-mask: url("../art/ui/lagoon-scene-mid.webp") center / cover no-repeat; }
.lagoon-props { --win-mask: linear-gradient(#0000, #0000); }

/* Source: css/koi-features.css */


body.at-koi .cell.ksym-koi { --glow: var(--lagoon-cell-ksym-koi-tone-76); }
body.at-koi .cell.ksym-planet { --glow: var(--lagoon-cell-ksym-planet-tone-77); }
body.at-koi .cell.ksym-lantern { --glow: var(--lagoon-cell-ksym-lantern-tone-78); }
body.at-koi .cell.ksym-lotus { --glow: var(--lagoon-cell-ksym-lotus-tone-79); }
body.at-koi .cell.ksym-moon { --glow: var(--lagoon-cell-ksym-moon-tone-80); }
body.at-koi .cell.ksym-crystal { --glow: var(--lagoon-cell-ksym-crystal-tone-81); }

body.at-koi .cell.ksym-koi .sym-face,
body.at-koi .cell.ksym-planet .sym-face,
body.at-koi .cell.ksym-crystal .sym-face,
body.at-koi .cell.ksym-lantern .sym-face,
body.at-koi .cell.ksym-lotus .sym-face,
body.at-koi .cell.ksym-moon .sym-face {
font-size: calc(var(--cell) * 0.86);
}

body.at-koi .cell.wild .wild-tag {
background: linear-gradient(180deg, var(--lagoon-wild-wild-tag-tone-82), var(--lagoon-wild-wild-tag-tone-83));
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}

body.at-koi .letter-A { --l1: var(--lagoon-at-koi-letter-tone-84); --l2: var(--lagoon-at-koi-letter-tone-85); --l3: var(--lagoon-at-koi-letter-tone-86); }
body.at-koi .letter-K { --l1: var(--lagoon-at-koi-letter-tone-87); --l2: var(--lagoon-at-koi-letter-tone-88); --l3: var(--lagoon-at-koi-letter-tone-89); }
body.at-koi .letter-Q { --l1: var(--lagoon-at-koi-letter-tone-90); --l2: var(--lagoon-at-koi-letter-tone-91); --l3: var(--lagoon-at-koi-letter-tone-92); }
body.at-koi .letter-J { --l1: var(--lagoon-at-koi-letter-tone-93); --l2: var(--lagoon-at-koi-letter-tone-94); --l3: var(--lagoon-at-koi-letter-tone-95); }
body.at-koi .letter-10 { --l1: var(--lagoon-at-koi-letter-tone-96); --l2: var(--lagoon-at-koi-letter-tone-97); --l3: var(--lagoon-at-koi-letter-tone-98); }

.cell.koi-pearl {
--p1: #ffffff;
--p2: var(--lagoon-cell-koi-pearl-tone-99);
--p3: var(--lagoon-cell-koi-pearl-tone-100);
--p4: var(--lagoon-cell-koi-pearl-tone-101);
--p-glow: var(--lagoon-cell-koi-pearl-tone-102);
isolation: isolate;
}

.koi-pearl-orb {
position: absolute;
inset: 9%;
z-index: -1;
background: url("../art/ui/pearl.webp") center / contain no-repeat;
filter: drop-shadow(0 0 5px var(--p-glow));
pointer-events: none;
}

.koi-pearl-value {
position: relative;
max-width: calc(100% - 8px);
color: var(--text);
font-family: var(--display);
font-size: calc(var(--cell) * 0.32);
line-height: 1.1;
white-space: nowrap;
-webkit-text-stroke: 2px var(--lagoon-pearl-value-tone-106);
paint-order: stroke fill;
text-shadow: 0 2px 0 var(--lagoon-pearl-value-tone-106), 0 0 8px rgba(0, 0, 0, 0.85);
}

.cell.koi-pearl.jp .koi-pearl-value {
font-size: max(0.7rem, calc(var(--cell) * 0.24));
letter-spacing: 0.03em;
}

.cell.koi-pearl.jp-mini { --p2: var(--lagoon-pearl-jp-mini-tone-107); --p3: var(--lagoon-pearl-jp-mini-tone-108); --p4: var(--lagoon-pearl-jp-mini-tone-109); --p-glow: var(--lagoon-pearl-jp-mini-tone-110); }
.cell.koi-pearl.jp-minor { --p2: var(--lagoon-pearl-jp-minor-tone-111); --p3: var(--lagoon-pearl-jp-minor-tone-112); --p4: var(--lagoon-pearl-jp-minor-tone-113); --p-glow: var(--lagoon-pearl-jp-minor-tone-114); }
.cell.koi-pearl.jp-major { --p2: var(--lagoon-pearl-jp-major-tone-115); --p3: var(--lagoon-pearl-jp-major-tone-116); --p4: var(--lagoon-pearl-jp-major-tone-117); --p-glow: var(--lagoon-pearl-jp-major-tone-118); }
.cell.koi-pearl.jp-grand { --p2: var(--lagoon-pearl-jp-grand-tone-119); --p3: var(--lagoon-pearl-jp-grand-tone-120); --p4: var(--lagoon-pearl-jp-grand-tone-121); --p-glow: var(--lagoon-pearl-jp-grand-tone-122); }
.cell.koi-pearl.jp-grand .koi-pearl-value { color: var(--jp-grand); }
.cell.koi-pearl.jp-major .koi-pearl-value { color: var(--jp-major); }
.cell.koi-pearl.jp-minor .koi-pearl-value { color: var(--jp-minor); }
.cell.koi-pearl.jp-mini .koi-pearl-value { color: var(--jp-mini); }

.app.koi .grid.has-win .cell.koi-pearl,
.app.koi .grid.cycling .cell.koi-pearl {
opacity: 1;
}

.cell.koi-pearl.hit .koi-pearl-orb {
animation: koi-pearl-glow 600ms ease-in-out infinite alternate;
}

.cell.koi-pearl.locked::after {
content: "";
position: absolute;
inset: 2px;
border-radius: 8px;
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 8px var(--lagoon-pearl-locked-after-tone-123);
pointer-events: none;
}

.cell.koi-pearl.landed {
animation: koi-pearl-land 520ms linear;
}

.cell.koi-pearl.collected {
animation: koi-pearl-collect 420ms ease-out;
filter: saturate(0.75) brightness(0.85);
}

.cell.koi-dark {
border-radius: 6px;
background:
radial-gradient(60% 40% at 50% 50%, var(--lagoon-cell-koi-dark-tone-124), transparent 70%),
linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1));
box-shadow: inset 0 0 0 1px var(--lagoon-reel-tone-30);
}

@keyframes koi-hold-dim { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes koi-hold-lock { 0% { transform: scale(1); } 35% { transform: scale(1.16); filter: brightness(1.5); } 100% { transform: scale(1); } }
.grid.hold-intro .cell.koi-dark { animation: koi-hold-dim 700ms ease-out 350ms backwards; }
.grid.hold-intro .cell.koi-pearl.locked { animation: koi-hold-lock 700ms ease-out; }


.koi-show {
position: fixed;
inset: 0;
z-index: 44;
display: flex;
align-items: center;
justify-content: center;
padding: var(--safe-top) 16px var(--safe-bottom);
background: radial-gradient(circle at 50% 45%, var(--lagoon-screens-koi-show-tone-126), var(--lagoon-screens-koi-show-tone-127) 70%);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 220ms ease, visibility 0s linear 220ms;
touch-action: manipulation;
}

.koi-show.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: opacity 220ms ease;
}

.koi-show:not(.show) .koi-show-pearls i {
animation: none;
}

.koi-show-panel {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: min(100%, 360px);
max-height: 100%;
overflow-y: auto;
padding: 18px 12px;
text-align: center;
}

.koi-show.show .koi-show-panel {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: min(100%, 360px);
max-height: 100%;
overflow-y: auto;
padding: 18px 12px;
text-align: center;
}

.koi-show-pearls {
display: flex;
align-items: center;
gap: 8px;
}

.koi-show-pearls i {
width: 44px;
height: 44px;
background: url("../art/ui/pearl.webp") center / contain no-repeat;
filter: drop-shadow(0 0 10px var(--lagoon-hint-before-tone-67));
animation: lagoon-bob 1.4s ease-in-out infinite alternate;
}

.koi-show-pearls i:nth-child(2) {
width: 56px;
height: 56px;
animation-delay: -0.5s;
}

.koi-show-pearls i:nth-child(3) {
animation-delay: -1s;
}

.koi-show-title {
font-family: var(--display);
font-size: clamp(1.8rem, 9vw, 2.6rem);
line-height: 1.05;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
}

.koi-show-main {
max-width: 100%;
overflow: hidden;
padding: 10px 16px;
margin: -10px 0;
font-family: var(--display);
font-size: clamp(2.6rem, 16vw, 4.4rem);
line-height: 1;
color: var(--text);
font-variant-numeric: tabular-nums;
font-weight: 400;
text-shadow: 0 1px 0 #000;
}

.koi-show.end .koi-show-main {
font-size: clamp(2rem, 11vw, 3.2rem);
background-image: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-shadow: none;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
}

.koi-show-sub {
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.06em;
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}

.koi-show-jackpots {
width: 100%;
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.04em;
color: var(--text);
text-shadow: 0 1px 0 #000;
}
.koi-show-jackpot {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
}
.koi-show-jackpot-amount {
color: var(--gold-light);
font-variant-numeric: tabular-nums;
}
.koi-show-jackpot-name { text-shadow: var(--jp-outline); }
.koi-show-jackpot.grand .koi-show-jackpot-name { color: var(--jp-grand); }
.koi-show-jackpot.major .koi-show-jackpot-name { color: var(--jp-major); }
.koi-show-jackpot.minor .koi-show-jackpot-name { color: var(--jp-minor); }
.koi-show-jackpot.mini .koi-show-jackpot-name { color: var(--jp-mini); }

.koi-show-jackpots:empty {
display: none;
}

.koi-show-tap {
width: min(100%, 240px);
min-height: 56px;
margin-top: 4px;
padding: 8px 16px;
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--go-light), var(--go-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--gold-deep);
color: var(--text);
font-family: var(--display);
font-size: 1.25rem;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
touch-action: manipulation;
}
.koi-show-tap:active { transform: translateY(3px); }
.koi-show-tap:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }


.pt-koi-jackpots {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
}

.pt-koi-jackpot {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 4px;
text-shadow: 0 1px 0 #000;
}


.pt-koi-jackpot-name {
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.08em;
color: var(--text);
}
.pt-koi-jackpot.grand .pt-koi-jackpot-name { color: var(--jp-grand); }
.pt-koi-jackpot.major .pt-koi-jackpot-name { color: var(--jp-major); }
.pt-koi-jackpot.minor .pt-koi-jackpot-name { color: var(--jp-minor); }
.pt-koi-jackpot.mini .pt-koi-jackpot-name { color: var(--jp-mini); }

.pt-koi-jackpot-amount {
font-family: var(--display);
font-size: 1.05rem;
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}

.pt-koi-pearls {
flex-wrap: wrap;
--cell: 46px;
}


@keyframes lagoon-swim {
from { transform: translateX(-1%) rotate(-1deg); }
to { transform: translateX(1%) rotate(1deg); }
}

@keyframes lagoon-bob {
from { transform: translateY(0); }
to { transform: translateY(-4px); }
}

@keyframes lagoon-jackpot-hit {
0% { transform: scale(1); filter: brightness(1); }
30% { transform: scale(1.08); filter: brightness(1.6); }
100% { transform: scale(1); filter: brightness(1); }
}

@keyframes lagoon-pip-reset {
0% { transform: scale(1.6); }
100% { transform: scale(1); }
}

@keyframes koi-pearl-glow {
from { filter: brightness(1); }
to { filter: brightness(1.3); }
}

@keyframes koi-pearl-land {
0% { transform: translateY(-85%) scale(0.92); opacity: 0.4; animation-timing-function: cubic-bezier(0.3, 0, 0.8, 0.6); }
52% { transform: translateY(7%) scale(1.06, 0.94); opacity: 1; animation-timing-function: ease-out; }
76% { transform: translateY(-3%) scale(0.98, 1.02); animation-timing-function: ease-in-out; }
100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes koi-pearl-collect {
0% { transform: scale(1); filter: brightness(1); }
40% { transform: scale(1.15); filter: brightness(1.8); }
100% { transform: scale(1); filter: saturate(0.75) brightness(0.85); }
}

@media (prefers-reduced-motion: reduce) {
.lagoon-koi,
.lagoon-lantern,
.lagoon-jackpot.hit,
.lagoon-pip.reset,
.cell.koi-pearl.hit .koi-pearl-orb,
.cell.koi-pearl.landed,
.cell.koi-pearl.collected,
.grid.hold-intro .cell.koi-dark,
.grid.hold-intro .cell.koi-pearl.locked,
.koi-show-pearls i,
.koi-show.show .koi-show-title {
animation: none;
}
.koi-show,
.koi-show.show {
transition: none;
}
}

/* Source: css/stampede.css */
.app.stampede, .stampede-show {
--stampede-sky: #160827;
--stampede-horizon: #462039;
--stampede-glass: #211028;
--stampede-reel-light: #4d2542;
--stampede-sunset: #c64d2470;
--stampede-lock: #ffd85b45;
--stampede-plaque-shine: #fff3;
--stampede-veil: #12071deb;
--stampede-go-light: #79ed8d;
--stampede-go: #28a34b;
--stampede-go-deep: #124b28;
--stampede-amber-air: #ef9b4659;
--stampede-dust-light: #edbc7966;
--stampede-star-light: #fff2cd;
}
.app.stampede { --reel-frame: url("../art/frames/frontier.webp"); }
.app.stampede::before { background: radial-gradient(ellipse at 50% 25%, var(--stampede-sunset), transparent 60%), linear-gradient(var(--stampede-sky), var(--stampede-horizon) 50%, var(--bg-deep)); }
.app.stampede { --cell: calc((min(100vw, 520px) - 32px - 34px - 24px) / 5); --stampede-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / 4)); }
.stampede .reel { height: calc(var(--stampede-cell-height) * 4); background: linear-gradient(var(--stampede-glass), var(--stampede-reel-light) 50%, var(--stampede-glass)); }
.stampede .cell { height: var(--stampede-cell-height); }
.stampede .cell.letter { font-size: calc(var(--stampede-cell-height) * .7); }
.stampede .sym-img { max-height: var(--stampede-cell-height); }
.app.stampede .win-plate { max-width: calc(100% + 36px); letter-spacing: 0.05em; }
.stampede-sign { flex: 1; min-height: 134px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; position: relative; margin: 5px 0 22px; container: stampede-sign / size; }
.stampede-sign[hidden] { display: none; }
.stampede-scene {
position: absolute; inset: 0; overflow: hidden; z-index: -1;
container: stampede-scene / size;
pointer-events: none; border-radius: var(--radius);
background: var(--stampede-sky);
mask-image: linear-gradient(#000 80%, transparent);
-webkit-mask-image: linear-gradient(#000 80%, transparent);
}
.stampede-depth { position: absolute; inset: calc(var(--parallax-bleed) * -1); }
.stampede-scene-art { position: absolute; inset: calc(var(--parallax-bleed) - var(--parallax-reach)); background: center / cover no-repeat; }
.stampede-scene-far { background-image: url("../art/machine-scenes/nova-prairie.webp"); }
.stampede-scene-mid { background-image: url("../art/machine-scenes/nova-mid.webp"); }
.stampede-depth > .scene-win-light { inset: calc(var(--parallax-bleed) - var(--parallax-reach)); }
.stampede-depth:has(> .stampede-scene-mid) { --win-mask: url("../art/machine-scenes/nova-mid.webp") center / cover no-repeat; }
.stampede-scene-frame { background-image: url("../art/machine-scenes/nova-frame.webp"); }
.stampede-scene-shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, #16082799 62%, var(--bg-deep) 96%); }
.stampede-scene-light { position: absolute; width: 110%; height: 65%; top: -10%; left: -30%; background: radial-gradient(ellipse, var(--stampede-amber-air), transparent 68%); opacity: .65; animation: stampede-warm-air 13s ease-in-out infinite alternate; }
.stampede-heat {
--loop-tile: url("../art/scene-loops/stampede-heat-tile.webp");
--loop-tile-w: 192px;
--loop-tile-h: 48px;
--loop-period: 24s;
--loop-mask: linear-gradient(transparent 42%, #000 54%, #000 60%, transparent 70%);
opacity: .6;
}
.stampede-scene-stars { position: absolute; inset: 0 0 55%; background: radial-gradient(circle at 16% 28%, var(--stampede-star-light) 0 1px, transparent 1.6px), radial-gradient(circle at 76% 12%, var(--stampede-star-light) 0 .8px, transparent 1.4px), radial-gradient(circle at 88% 46%, var(--stampede-star-light) 0 1px, transparent 1.8px), radial-gradient(circle at 30% 9%, var(--stampede-star-light) 0 .7px, transparent 1.3px); opacity: .55; animation: stampede-star-air 7s ease-in-out infinite alternate; }
.stampede-scene .stampede-scene-bison { position: absolute; top: 0; left: 50%; aspect-ratio: 1; height: clamp(34px, calc(100% - 186px), 150px); max-width: 48%; transform: translateX(-50%); filter: drop-shadow(0 5px 5px #0009); }
.stampede-scene-bison > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; overflow: hidden; }
.stampede-bison-charge::before, .stampede-run::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 600%; background: 0 0 / 100% 100% no-repeat; }
.stampede-bison-charge::before { background-image: url("../art/stampede/hero/bison-charge.webp"); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
.stampede-scene-bison.charge > img { animation: stampede-bison-still .84s steps(1, end); }
.charge > .stampede-bison-charge::before { animation: stampede-bison-charge .84s steps(1, end); }
}
@keyframes stampede-bison-still { 0%, 99.99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes stampede-bison-charge {
0% { opacity: 1; transform: translateX(-16.666667%); }
20% { opacity: 1; transform: translateX(-33.333333%); }
40% { opacity: 1; transform: translateX(-50%); }
60% { opacity: 1; transform: translateX(-66.666667%); }
80% { opacity: 1; transform: translateX(-83.333333%); }
100% { opacity: 0; transform: none; }
}
.stampede-run { position: absolute; top: 15%; left: 100%; height: 24cqh; aspect-ratio: 3; overflow: hidden; visibility: hidden; }
.stampede-run::before { background-image: url("../art/stampede/hero/herd-run.webp"); }
.stampede-run.running { visibility: visible; animation: stampede-run-cross var(--run-ms) linear; }
.stampede-run.running::before { animation: stampede-run-gallop .42s steps(6) infinite; }
@keyframes stampede-run-cross { to { transform: translateX(calc(-100cqw - 100%)); } }
@keyframes stampede-run-gallop { to { transform: translateX(-100%); } }
.stampede-scene-dust { position: absolute; top: 12%; left: -12%; width: 124%; height: 28%; background: radial-gradient(ellipse at 18% 70%, var(--stampede-dust-light), transparent 38%), radial-gradient(ellipse at 80% 48%, var(--stampede-amber-air), transparent 40%); opacity: .35; animation: stampede-dust-air 17s ease-in-out infinite alternate; }
@keyframes stampede-warm-air { from { transform: translateX(-3%) rotate(-4deg); opacity: .45; } to { transform: translateX(18%) rotate(5deg); opacity: .8; } }
@keyframes stampede-star-air { from { opacity: .3; } to { opacity: .75; } }
@keyframes stampede-dust-air { from { transform: translateX(-7%) translateY(3%); opacity: .2; } to { transform: translateX(7%) translateY(-6%); opacity: .5; } }
body.scene-motion-paused .stampede-scene-light,
body.scene-motion-paused .stampede-scene-stars,
body.scene-motion-paused .stampede-scene-dust,
.stampede-sign[hidden] .stampede-scene-light,
.stampede-sign[hidden] .stampede-scene-stars,
.stampede-sign[hidden] .stampede-scene-dust { animation-play-state: paused; }
body.scene-motion-paused :is(.stampede-run, .stampede-scene-bison > img),
body.scene-motion-paused :is(.stampede-run, .stampede-bison-charge)::before,
body:is(.in-lobby, .destination-active) :is(.stampede-run, .stampede-scene-bison > img),
body:is(.in-lobby, .destination-active) :is(.stampede-run, .stampede-bison-charge)::before,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) :is(.stampede-run, .stampede-scene-bison > img),
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) :is(.stampede-run, .stampede-bison-charge)::before { animation-play-state: paused; }
.stampede-title { font: 22px/1.05 var(--display); letter-spacing: .05em; text-align: center; }
.stampede-title, .stampede-show-panel h2, .stampede-show-main { color: transparent; background: var(--gold-bevel); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px #000b); }
.stampede-jackpots { display: grid; gap: 4px; }
.stampede-jackpot { min-width: 0; padding: 4px 7px; text-align: center; border: 2px solid var(--gold); border-radius: 8px; background: linear-gradient(var(--lacquer), var(--bg-deep)); box-shadow: inset 0 1px 0 var(--stampede-plaque-shine), 0 2px 0 var(--gold-deep); }
.stampede-jackpot { position: relative; }
.stampede-jackpot::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 14px 4px var(--gold-light); opacity: 0; pointer-events: none; }
.stampede-jackpot.hit { animation: stampede-jackpot-hit 900ms ease-out; }
.stampede-jackpot.hit::after { animation: stampede-jackpot-glow 900ms ease-out; }
@keyframes stampede-jackpot-hit {
0% { transform: scale(1); }
30% { transform: scale(1.08); }
100% { transform: scale(1); }
}
@keyframes stampede-jackpot-glow {
0% { opacity: 0; }
30% { opacity: 1; }
100% { opacity: 0; }
}
.stampede-jackpot-name { display: block; font: 12px/1.05 var(--display); letter-spacing: .04em; color: var(--jp-major); text-shadow: 0 1px 0 #000; }
.stampede-jackpot.grand .stampede-jackpot-name { color: var(--cabinet-grand-ink); }
.stampede-jackpot.major .stampede-jackpot-name { color: var(--jp-major); }
.stampede-jackpot.minor .stampede-jackpot-name { color: var(--cabinet-minor-ink); }
.stampede-jackpot.mini .stampede-jackpot-name { color: var(--jp-mini); }
.stampede-jackpot-value { display: block; font: 15px/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; }
.stampede-jackpots { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
.stampede-jackpot.grand { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 10px; border-width: 3px; }
.stampede-jackpot.grand .stampede-jackpot-name { font-size: 13px; }
.stampede-jackpot.grand .stampede-jackpot-value { min-width: 0; font-size: var(--type-lead); }
@container stampede-sign (max-height: 211px) {
.stampede-jackpots { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.stampede-jackpot.grand { grid-column: auto; display: block; padding: 3px 6px; }
.stampede-jackpot.grand .stampede-jackpot-name { font-size: 12px; }
.stampede-jackpot.grand .stampede-jackpot-value { font-size: var(--type-readout); }
.stampede-scene .stampede-scene-bison { height: clamp(34px, calc(100% - 142px), 150px); }
}
.stampede-hint, .stampede-status { text-align: center; color: var(--text); font: 12px/1.2 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; }
.stampede-meter { display: flex; justify-content: space-between; gap: 5px; padding: 5px 7px; color: var(--text); background: linear-gradient(var(--stampede-glass), var(--bg-deep)); border: 1px solid var(--gold-deep); border-radius: 6px; box-shadow: inset 0 1px 0 #fff2; font: 11px/1.2 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; }
.stampede-sign.in-feature .stampede-status {
color: var(--gold-light);
font-size: 1rem;
}
.stampede-sign.in-feature :is(.stampede-hint, .stampede-meter) { color: var(--muted); }
.stampede-herd .sym-face { transform: scale(.94); }
.stampede-herd.locked { background: radial-gradient(var(--stampede-lock), var(--bg-deep)); box-shadow: inset 0 0 0 2px var(--gold); }
.stampede .stampede-herd-decor .sym-face { opacity: .8; filter: sepia(.7) saturate(1.5) brightness(.9); }
.pt-stampede-symbol { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gold-light); font: 13px/1.1 var(--display); }
.pt-stampede-symbol .cell { --cell: 52px; --stampede-cell-height: 52px; }
.stampede-value { position: absolute; bottom: 3%; left: 3%; right: 3%; color: var(--gold-light); background: var(--bg-deep); border: 1px solid var(--gold-deep); border-radius: 7px; padding: 2px; text-align: center; font: 12px/1 var(--display); text-shadow: 0 1px 0 #000; }
.stampede-value.jp.grand { color: var(--jp-grand); }
.stampede-value.jp.major { color: var(--jp-major); }
.stampede-value.jp.minor { color: var(--jp-minor); }
.stampede-value.jp.mini { color: var(--jp-mini); }
.stampede-dark { background: var(--bg-deep); }
.stampede-dark .sym-face { transform: scale(.6); filter: grayscale(1) brightness(.6); opacity: .55; }
.stampede-bison-tick { color: var(--gold-light); }
.stampede-coin .sym-img { width: calc(var(--stampede-cell-height, var(--cell)) * .8); height: auto; aspect-ratio: 1; }
.stampede-tag { position: absolute; bottom: 5%; color: var(--text); font: 11px/1 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; }
.stampede-coin .stampede-tag {
padding: 1px 4px 0;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: var(--bg-deep);
}
.stampede .letter-9 .glyph, .pt-stampede .letter-9 .glyph { color: var(--jade); }
.stampede .letter-J { --l2: var(--cabinet-minor-ink); --l3: #4d7cda; }
.stampede-show { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: max(20px, var(--safe-top)) 20px max(20px, var(--safe-bottom)); z-index: 25; background: var(--stampede-veil); }
.stampede-show.show { display: flex; }
.stampede-show-panel { width: min(100%, 380px); max-height: 100%; overflow-y: auto; padding: 20px 16px; text-align: center; color: var(--text); }
.stampede-show-panel h2 { margin: 0 0 12px; font: 30px/1.1 var(--display); letter-spacing: .04em; }
.stampede-show-hero { display: block; width: 112px; height: 112px; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 0 24px var(--stampede-sunset)); }
.stampede-show-main { font: 42px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.stampede-show-sub { margin: 14px auto 20px; max-width: 290px; font: 500 15px/1.35 var(--body); color: var(--text); }
.stampede-show-panel button { display: block; width: min(100%, 240px); min-height: 56px; margin: 0 auto 4px; padding: 8px 20px; color: var(--text); border: 3px solid var(--gold); border-radius: var(--radius); background: linear-gradient(var(--stampede-go-light), var(--stampede-go)); box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--stampede-go-deep), inset 0 1px 0 #fff6; font: 20px/1 var(--display); letter-spacing: .08em; text-shadow: 0 1px 0 #000; }
@container stampede-scene (max-height: 175px) {
.stampede-scene .stampede-scene-bison { left: 12%; height: 30px; }
}
@media (max-height: 700px) {
.stampede-show-hero { width: 88px; height: 88px; }
.stampede-show-panel h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .stampede-jackpot.hit, .stampede-jackpot.hit::after, .stampede-scene-light, .stampede-scene-stars, .stampede-scene-dust { animation: none; } .stampede-run { display: none; } }

.app.stampede {
--machine-accent: #ffbe6e;
--machine-accent-2: #e0592c;
}

@keyframes stampede-hold-dim { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes stampede-hold-lock { 0% { transform: scale(1); } 35% { transform: scale(1.16); filter: brightness(1.5); } 100% { transform: scale(1); } }
.grid.hold-intro .cell.stampede-dark { animation: stampede-hold-dim 700ms ease-out 350ms backwards; }
.grid.hold-intro .cell.stampede-herd.locked { animation: stampede-hold-lock 700ms ease-out; }
@media (prefers-reduced-motion: reduce) { .grid.hold-intro .cell.stampede-dark, .grid.hold-intro .cell.stampede-herd.locked { animation: none; } }

/* Source: css/stampede-features.css */
.app.stampede, .stampede-spark {
--stampede-rail-start: #c64d24;
--stampede-rail-end: #ffd85b;
--stampede-heat-warm: #ff9a3c;
--stampede-heat-blaze: #ff5a1f;
--stampede-spark-core: #fff7d6;
--stampede-spark-glow: #ffb84a;
--stampede-pip-dark: #4a3a2e;
--stampede-pip-lit: #ffd85b;
--stampede-pip-lit-deep: #c98a12;
--stampede-mystery-veil: #12071dd9;
--stampede-mystery-free: #8fe6a0;
--stampede-mystery-hold: #ff9a3c;
--stampede-ring: #ffe9a8;
}
.stampede-meter { position: relative; }
.stampede-meter::after {
content: "";
position: absolute;
left: 2px;
right: 2px;
bottom: 1px;
height: 3px;
border-radius: 2px;
background: linear-gradient(90deg, var(--stampede-rail-start), var(--stampede-rail-end));
transform: scaleX(var(--stampede-meter-fill, 0));
transform-origin: left;
pointer-events: none;
}
.stampede-meter::before {
content: "";
position: absolute;
inset: -2px;
border-radius: 8px;
box-shadow: 0 0 12px 2px var(--stampede-heat-blaze);
opacity: 0;
pointer-events: none;
}
.stampede-meter[data-heat="warm"] { border-color: var(--stampede-heat-warm); }
.stampede-meter[data-heat="warm"] #stampede-count { color: var(--gold-light); }
.stampede-meter[data-heat="blazing"] { border-color: var(--stampede-heat-blaze); }
.stampede-meter[data-heat="blazing"] #stampede-count { color: var(--stampede-spark-core); }
.stampede-meter[data-heat="blazing"]::before { opacity: 0.55; }
.stampede-spark {
position: absolute;
width: 18px;
height: 18px;
margin: -9px 0 0 -9px;
border-radius: 50%;
background: radial-gradient(circle, var(--stampede-spark-core) 0 2px, var(--stampede-spark-glow) 4px, transparent 9px);
box-shadow: 0 0 8px 3px var(--stampede-spark-glow);
pointer-events: none;
}
.stampede-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; }
.stampede-pips { display: none; gap: 4px; }
.stampede-sign.hold .stampede-pips { display: inline-flex; }
.stampede-pip {
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, var(--stampede-pip-dark), var(--bg-deep));
box-shadow: 0 0 0 1px #000b;
}
.stampede-pip.lit {
background: radial-gradient(circle at 35% 30%, #fff, var(--stampede-pip-lit) 35%, var(--stampede-pip-lit-deep) 80%);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px var(--stampede-spark-glow);
}
.stampede-mystery {
position: absolute;
left: 0;
right: 0;
top: 50%;
z-index: 6;
display: flex;
align-items: center;
justify-content: center;
height: 64px;
margin-top: -32px;
padding: 0 8px;
border-top: 2px solid var(--gold);
border-bottom: 2px solid var(--gold);
background: linear-gradient(90deg, #0000, var(--stampede-mystery-veil) 12%, var(--stampede-mystery-veil) 88%, #0000);
color: var(--gold-light);
font: 30px/1 var(--display);
letter-spacing: 0.06em;
text-align: center;
text-shadow: 0 2px 0 #000, 0 0 14px var(--stampede-spark-glow);
pointer-events: none;
}
.float-text.stampede-award { top: 18%; }
.stampede-mystery[data-kind="free"] { color: var(--stampede-mystery-free); }
.stampede-mystery[data-kind="hold"] { color: var(--stampede-mystery-hold); }
@media (prefers-reduced-motion: no-preference) {
.stampede-meter::after { transition: transform 240ms ease-out; }
.stampede-meter.bump { animation: stampede-meter-bump 240ms ease-out; }
.stampede-meter.burst { animation: stampede-meter-burst 700ms ease-out; }
.stampede-meter[data-heat="blazing"]::before {
animation: stampede-meter-blaze 1.2s ease-in-out infinite alternate;
animation-play-state: var(--idle-play, running);
}
.stampede-pip.reset { animation: stampede-pip-reset 420ms ease-out; }
.stampede-herd.landed { animation: stampede-herd-stamp 520ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.stampede-herd.landed::after {
content: "";
position: absolute;
inset: 6%;
border-radius: 50%;
border: 3px solid var(--stampede-ring);
opacity: 0;
pointer-events: none;
animation: stampede-herd-ring 620ms ease-out;
}
.stampede-mystery[data-phase="landed"] { animation: stampede-mystery-slam 360ms cubic-bezier(0.2, 1.4, 0.4, 1); }
}
@keyframes stampede-meter-bump {
0% { transform: scale(1); filter: brightness(1); }
35% { transform: scale(1.06); filter: brightness(1.45); }
100% { transform: scale(1); filter: brightness(1); }
}
@keyframes stampede-meter-burst {
0% { transform: scale(1); filter: brightness(1); }
25% { transform: scale(1.14); filter: brightness(2); }
100% { transform: scale(1); filter: brightness(1); }
}
@keyframes stampede-meter-blaze { from { opacity: 0.25; } to { opacity: 0.8; } }
@keyframes stampede-pip-reset {
0% { transform: scale(1.7); }
100% { transform: scale(1); }
}
@keyframes stampede-herd-stamp {
0% { transform: scale(1.7); opacity: 0.2; filter: brightness(2.2); }
45% { transform: scale(0.9); opacity: 1; filter: brightness(1.6); }
70% { transform: scale(1.06); filter: brightness(1.2); }
100% { transform: scale(1); filter: none; }
}
@keyframes stampede-herd-ring {
0% { transform: scale(0.5); opacity: 1; }
100% { transform: scale(1.6); opacity: 0; }
}
@keyframes stampede-mystery-slam {
0% { transform: scale(2); opacity: 0.2; }
100% { transform: scale(1); opacity: 1; }
}

/* Source: css/aurora.css */
.app.aurora, .aurora-show, .aurora-pot, .aurora-fly, .aurora-flash, .aurora-spill, .pt-aurora, .paytable .aurora-coin {
--aurora-sky: #060a26;
--aurora-night: #120a33;
--aurora-green: #3dffb4;
--aurora-teal: #29d3e8;
--aurora-violet: #a56bff;
--aurora-magenta: #ff5fd6;
--aurora-glass: #0b1238;
--aurora-glass-light: #1a2a5e;
--aurora-veil: #050a1eeb;
--aurora-go-light: #79ed8d;
--aurora-go: #28a34b;
--aurora-go-deep: #124b28;
--pot-violet: #8a3cff;
--pot-violet-deep: #33106e;
--pot-ruby: #e0234e;
--pot-ruby-deep: #5e0a20;
--pot-sapphire: #2a6dff;
--pot-sapphire-deep: #0a2470;
--pot-gold: #f2b631;
--pot-gold-deep: #7a4a06;
}

.app.aurora::before {
background:
radial-gradient(ellipse 60% 22% at 30% 12%, #3dffb433, transparent 70%),
radial-gradient(ellipse 55% 20% at 72% 18%, #a56bff40, transparent 70%),
radial-gradient(ellipse 80% 30% at 50% 30%, #29d3e826, transparent 70%),
linear-gradient(var(--aurora-sky), var(--aurora-night) 50%, var(--bg-deep));
}

.app.aurora {
--reel-frame: url("../art/frames/aurora.webp");
--cell: calc((min(100vw, 520px) - 32px - 34px - 24px) / 5);
--aurora-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / 4));
}
.app.aurora.doubling {
--aurora-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 356px) / 8));
}
.aurora .reel, .aurora-top-reel {
height: calc(var(--aurora-cell-height) * 4);
background:
linear-gradient(180deg, #0009, transparent 22%, #ffffff0d 50%, transparent 78%, #0009),
radial-gradient(ellipse at 50% 50%, var(--aurora-glass-light), var(--aurora-glass) 82%);
}
.aurora .cell, .aurora-top .cell { height: var(--aurora-cell-height); }
.aurora .cell.letter, .aurora-top .cell.letter { font-size: calc(var(--aurora-cell-height) * .7); }
.aurora .sym-img, .aurora-top .sym-img { max-height: var(--aurora-cell-height); }
.aurora .letter-9 .glyph, .aurora-top .letter-9 .glyph, .pt-aurora .letter-9 .glyph { color: var(--jade); }

.app.aurora .win-plate { max-width: calc(100% + 36px); letter-spacing: 0.05em; }

.cell.as-bison { --glow: #ff9a4a99; }
.cell.as-eagle { --glow: #ffd24a80; }
.cell.as-cougar { --glow: #ffb14a80; }
.cell.as-wolf { --glow: #a56bff80; }
.cell.as-elk { --glow: #3dffb466; }
.cell.as-dawn { --glow: #ffd860cc; }

.aurora-sign {
flex: 1;
min-height: 134px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: stretch;
gap: 4px;
position: relative;
margin: 5px 0 22px;
container-type: size;
}
.aurora-sign[hidden] { display: none; }
.aurora-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.aurora-scene {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
border-radius: var(--radius);
mask-image: linear-gradient(transparent, #000 10%, #000 70%, transparent);
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 70%, transparent);
}
.aurora-depth {
position: absolute;
inset: calc(-1 * var(--parallax-reach));
background: var(--aurora-layer) center var(--aurora-scene-y, 50%) / cover no-repeat;
}
.aurora-far { --aurora-layer: url("../art/aurora/scene-far.webp"); }
.aurora-mid { --aurora-layer: url("../art/aurora/scene-mid.webp"); --win-mask: var(--aurora-layer) center var(--aurora-scene-y, 50%) / cover no-repeat; }
.aurora-frame { --aurora-layer: url("../art/aurora/scene-frame.webp"); }
.aurora-scene::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(transparent 20%, #080d2f55 56%, #080d2fa6 100%);
}

.aurora-curtain {
position: absolute;
inset: -12% -16% 8%;
background: radial-gradient(ellipse 65% 35% at 38% 40%, var(--curtain-light), transparent 78%);
transform-origin: 50% 0;
opacity: .14;
animation: aurora-curtain-drift 17s ease-in-out infinite alternate;
}
.aurora-curtain-jade {
--curtain-light: #8fffc977;
}
.aurora-curtain-violet {
--curtain-light: #be83fa66;
inset: 1% -24% -9%;
animation-duration: 23s;
animation-delay: -11s;
animation-direction: alternate-reverse;
}
.aurora-curtain-teal {
--curtain-light: #48def344;
inset: -26% -9% 24%;
animation-duration: 29s;
animation-delay: -7s;
}
.aurora-ripple {
--loop-tile: url("../art/aurora/ripple-tile.webp");
--loop-tile-w: 160px;
--loop-tile-h: 100%;
--loop-period: 14s;
--loop-mask: url("../art/aurora/scene-mid.webp") center var(--aurora-scene-y, 50%) / cover no-repeat;
opacity: .6;
}
@keyframes aurora-curtain-drift {
0% { transform: translate3d(-3%, -2%, 0) skewX(-4deg); opacity: .08; }
50% { transform: translate3d(1%, 2%, 0) skewX(0deg); opacity: .18; }
100% { transform: translate3d(4%, -1%, 0) skewX(4deg); opacity: .12; }
}
body.scene-motion-paused .aurora-curtain {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.aurora-curtain { animation: none; }
}

.aurora-jackpots { flex: none; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; align-items: end; }
.aurora-jackpot {
min-width: 0;
padding: 4px 6px;
text-align: center;
border: 2px solid var(--gold);
border-radius: 8px;
background: linear-gradient(var(--aurora-glass-light), var(--bg-deep));
box-shadow: inset 0 1px 0 #fff3, 0 2px 0 var(--gold-deep);
}
.aurora-jackpot.grand { padding-block: 5px; border-color: var(--gold-light); box-shadow: inset 0 1px 0 #fff4, 0 2px 0 var(--gold-deep), 0 0 10px #ffd24a66; }
.aurora-jackpot-name { display: block; font: 12px/1.05 var(--display); letter-spacing: .05em; color: var(--jp-major); text-shadow: 0 1px 0 #000; }
.aurora-jackpot.grand .aurora-jackpot-name { color: var(--cabinet-grand-ink); }
.aurora-jackpot.major .aurora-jackpot-name { color: var(--jp-major); }
.aurora-jackpot.minor .aurora-jackpot-name { color: var(--cabinet-minor-ink); }
.aurora-jackpot-value { display: block; font: var(--type-readout)/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; }
.aurora-jackpot.grand .aurora-jackpot-value { font-size: var(--type-lead); }
.aurora-jackpot.flare { animation: aurora-flare 1.2s ease-out; }
@keyframes aurora-flare { 30% { transform: scale(1.08); filter: brightness(1.6); } }

.aurora-title {
align-self: center;
margin-top: 3px;
padding-inline: 4px;
font: 22px/1.05 var(--display);
letter-spacing: .06em;
text-align: center;
}
.aurora-title, .aurora-show-panel h2, .aurora-show-main {
color: transparent;
background: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px #000b);
}
.aurora-title {
filter: drop-shadow(0 1px 0 var(--bg-deep)) drop-shadow(0 0 3px var(--bg-deep)) drop-shadow(0 2px 3px var(--bg-deep));
}
.aurora-status { flex: none; text-align: center; color: var(--text); font: 11px/1.2 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aurora-fly, .aurora-spill, .aurora-flash { position: fixed; pointer-events: none; z-index: 2; }
.aurora-fly.violet { --aurora-coin-art: url("../art/aurora/coin-violet.webp"); }
.aurora-fly.ruby { --aurora-coin-art: url("../art/aurora/coin-ruby.webp"); }
.aurora-fly.sapphire { --aurora-coin-art: url("../art/aurora/coin-sapphire.webp"); }
.aurora-fly.gold { --aurora-coin-art: url("../art/ui/coin-gold.webp"); }
.aurora-fly {
background: var(--aurora-coin-art) center / contain no-repeat;
filter: drop-shadow(0 0 7px var(--pot-band));
}
.aurora-spill {
width: 10px;
height: 10px;
margin: -5px 0 0 -5px;
background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
animation: aurora-spill .75s cubic-bezier(.2, .7, .4, 1) both;
}
@keyframes aurora-spill {
60% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
to { transform: translate(var(--dx), calc(var(--dy) + 26px)); opacity: 0; }
}
.aurora-flash {
border-radius: 50%;
background:
radial-gradient(circle, #fff 0 12%, var(--gold-light) 22%, transparent 48%),
repeating-conic-gradient(from 10deg, #fff9 0 6deg, transparent 6deg 30deg);
mask-image: radial-gradient(circle, #000 30%, transparent 70%);
-webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
animation: aurora-flash .5s ease-out both;
}
@keyframes aurora-flash {
from { transform: scale(.3) rotate(0deg); opacity: 1; }
to { transform: scale(1.15) rotate(35deg); opacity: 0; }
}

.cell.aurora-coin {
--coin: var(--pot-gold);
--coin-deep: var(--pot-gold-deep);
background: radial-gradient(circle at 50% 40%, var(--coin), var(--coin-deep) 78%);
box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 3px var(--gold-deep);
border-radius: 6px;
}
.cell.aurora-coin.violet { --coin: var(--pot-violet); --coin-deep: var(--pot-violet-deep); }
.cell.aurora-coin.ruby { --coin: var(--pot-ruby); --coin-deep: var(--pot-ruby-deep); }
.cell.aurora-coin.sapphire { --coin: var(--pot-sapphire); --coin-deep: var(--pot-sapphire-deep); }
.cell.aurora-coin.gold { --coin: #b47a14; --coin-deep: #3a2204; }
.aurora-coin-face {
width: min(92%, calc(var(--aurora-cell-height, var(--cell)) * .94));
aspect-ratio: 1;
display: block;
filter: drop-shadow(0 2px 3px #0008);
}
.aurora-coin-face > .sym-img { width: 100%; height: 100%; max-height: none; }
.cell.aurora-coin.lit { box-shadow: inset 0 0 0 2px var(--gold-light), inset 0 0 0 3px var(--gold-deep), 0 0 10px var(--coin); }
.app.aurora .grid.has-win .cell.aurora-coin.lit,
.app.aurora :is(.grid, .aurora-top-grid).cycling .cell.aurora-coin.lit { opacity: 1; }

.cell.aurora-surged { box-shadow: inset 0 0 0 2px var(--aurora-violet), inset 0 0 12px var(--pot-violet); }
.reel.aurora-surging { box-shadow: 0 0 0 1px var(--aurora-violet), 0 0 14px var(--pot-violet), inset 0 0 18px var(--pot-violet); }
.aurora-top-reel.aurora-surging { box-shadow: 0 0 0 1px var(--aurora-violet), 0 0 14px var(--pot-violet), inset 0 0 18px var(--pot-violet); }
.aurora-surging::after {
content: "";
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
background: linear-gradient(180deg, transparent, var(--pot-violet) 42%, #fff 50%, var(--pot-violet) 58%, transparent);
opacity: 0;
animation: aurora-surge-wave .9s ease-out calc(var(--surge-i, 0) * .18s) both;
}
@keyframes aurora-surge-wave {
0% { opacity: .9; transform: translateY(100%); }
100% { opacity: 0; transform: translateY(-100%); }
}
.aurora-top-reel.copy-sweep::after {
content: "";
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
background: linear-gradient(0deg, transparent, var(--pot-sapphire) 40%, #fff 50%, var(--pot-sapphire) 60%, transparent);
animation: aurora-copy-sweep .6s ease-out both;
}
@keyframes aurora-copy-sweep {
0% { opacity: .95; transform: translateY(100%); }
100% { opacity: 0; transform: translateY(-100%); }
}
.aurora-flash.surged {
background:
radial-gradient(circle, #fff 0 14%, var(--pot-violet) 28%, transparent 52%),
repeating-conic-gradient(from 0deg, #fffb 0 5deg, transparent 5deg 45deg);
}
.aurora-prize .sym-face { transform: scale(.82) translateY(-6%); }
.aurora-value {
position: absolute;
bottom: 3%;
left: 4%;
right: 4%;
color: var(--gold-light);
background: var(--bg-deep);
border: 1px solid var(--gold-deep);
border-radius: 6px;
padding: 1px 2px;
text-align: center;
font: 11px/1 var(--display);
letter-spacing: .02em;
white-space: nowrap;
overflow: hidden;
text-shadow: 0 1px 0 #000;
}
.aurora-value.jp.minor { color: var(--jp-minor); }
.aurora-value.jp.major { color: var(--jp-major); }
.aurora-value.jp.grand { color: var(--jp-grand); border-color: var(--gold); }
.aurora-prize.hit .aurora-value { border-color: var(--gold-light); box-shadow: 0 0 8px var(--gold); }
.aurora-prize.missed .aurora-value { opacity: .5; }
.aurora-dark { background: var(--bg-deep); }

.aurora-top { display: none; position: relative; flex: none; align-self: center; margin-top: 14px; }
.aurora-sign.double .aurora-top { display: block; }
.aurora-sign.double .aurora-pots, .aurora-sign.double .aurora-title { display: none; }
.aurora-top-grid {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: repeat(5, var(--cell));
gap: 3px;
padding: 6px;
border: 3px solid #ffe680;
border-radius: 6px;
background: linear-gradient(180deg, #0a1240, #050826);
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px 1px var(--gold), 0 0 22px 4px rgba(255, 200, 60, .6), inset 0 0 18px rgba(0, 0, 0, .8);
}
.aurora-top-reel { position: relative; overflow: hidden; border-radius: 3px; transition: filter .3s; }
.aurora-top-strip { display: flex; flex-direction: column; will-change: transform; }
.aurora-top-strip .cell { width: var(--cell); }
.aurora-top-strip.copied { animation: aurora-copied .5s ease-out; }
@keyframes aurora-copied { from { filter: brightness(2.2); } }
.aurora-top:not(.live) .aurora-top-reel { filter: brightness(.55) saturate(.6); }
.aurora-top .aurora-dark { background: transparent; }
.aurora-top-note {
position: absolute;
top: 50%;
left: 50%;
width: 78%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 6px 8px 8px;
text-align: center;
text-shadow: 0 1px 0 #000, 0 0 6px #000;
background: linear-gradient(var(--aurora-glass-light), var(--bg-deep));
border: 2px solid var(--gold-deep);
border-radius: 8px;
box-shadow: 0 0 0 1px #0008, 0 4px 10px #000a;
}
.aurora-top-label {
color: var(--gold-light);
font: 1rem/1.1 var(--display);
letter-spacing: .06em;
}
.aurora-top-hint {
color: var(--text);
font-size: .8rem;
font-weight: 600;
line-height: 1.3;
}
.aurora-top.live .aurora-top-note { display: none; }

.aurora-show { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: max(20px, var(--safe-top)) 20px max(20px, var(--safe-bottom)); z-index: 25; background: var(--aurora-veil); }
.aurora-show.show { display: flex; }
.aurora-show-panel { width: min(100%, 380px); max-height: 100%; overflow-y: auto; padding: 20px 16px; text-align: center; color: var(--text); }
.aurora-show-panel h2 { margin: 0 0 10px; font: 28px/1.1 var(--display); letter-spacing: .04em; text-wrap: balance; }
.aurora-show-main { font: 40px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.aurora-show-bonus { color: var(--gold-light); font: var(--type-readout)/1.2 var(--display); letter-spacing: .04em; }
.aurora-show-sub { margin: 12px auto 18px; max-width: 300px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.aurora-show-panel button { display: block; width: min(100%, 240px); min-height: 56px; margin: 0 auto 4px; padding: 8px 20px; color: var(--text); border: 3px solid var(--gold); border-radius: var(--radius); background: linear-gradient(var(--aurora-go-light), var(--aurora-go)); box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--aurora-go-deep), inset 0 1px 0 #fff6; font: 20px/1 var(--display); letter-spacing: .08em; text-shadow: 0 1px 0 #000; }

.paytable .pt-page .aurora-coin { width: 44px; height: 44px; }

@container (max-height: 176px) {
.aurora-title { display: none; }
}
@media (max-height: 700px) {
.aurora-show-panel h2 { font-size: 24px; }
.aurora-show-main { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
.aurora-jackpot.flare, .aurora-top-strip.copied { animation: none; }
.aurora-surging::after, .aurora-top-reel.copy-sweep::after { content: none; }
}

.pt-aurora-prizes .pt-row > .pt-aurora-prize { text-shadow: var(--jp-outline); }
.pt-aurora-prizes .pt-aurora-prize.grand { color: var(--jp-grand); }
.pt-aurora-prizes .pt-aurora-prize.major { color: var(--jp-major); }
.pt-aurora-prizes .pt-aurora-prize.minor { color: var(--jp-minor); }

.app.aurora {
--machine-accent: #5cf5a8;
--machine-accent-2: #a56bff;
}

/* Source: css/aurora-pots.css */

.aurora-pots { position: relative; flex: 1 1 0; min-height: 44px; max-height: 118px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; container-type: size; }
.aurora-pot {
position: relative;
justify-self: center;
width: min(100%, 120cqh);
aspect-ratio: 120 / 100;
min-height: 44px;
padding: 0;
border-radius: 12px;
-webkit-tap-highlight-color: transparent;
}
.aurora-pot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.aurora-pot-art, .aurora-pot-glow { transition: opacity .3s, filter .3s; }
.aurora-pot { --swell: 1; --rest-glow: 0; }
.aurora-pot[data-fullness="brimming"] { --swell: 1.03; --rest-glow: .3; }
.aurora-pot[data-fullness="overflowing"] { --swell: 1.06; --rest-glow: .5; }
.aurora-pot[data-fullness="crackling"] { --swell: 1.09; --rest-glow: .65; }
.aurora-pot-art { transform: scale(var(--swell, 1)); transform-origin: 50% 72.5%; transition: opacity .3s, filter .3s, transform .4s; }
.aurora-pot-frames { transform: scale(var(--swell, 1)); transform-origin: 50% 77.0833%; transition: transform .4s; }
.aurora-pot.violet, .aurora-pot-tip.violet, .aurora-show-pot.violet, .aurora-fly.violet, .aurora-flash.violet { --pot-band: var(--pot-violet); --pot-deep: var(--pot-violet-deep); }
.aurora-pot.ruby, .aurora-pot-tip.ruby, .aurora-show-pot.ruby, .aurora-fly.ruby, .aurora-flash.ruby { --pot-band: var(--pot-ruby); --pot-deep: var(--pot-ruby-deep); }
.aurora-pot.sapphire, .aurora-pot-tip.sapphire, .aurora-show-pot.sapphire, .aurora-fly.sapphire, .aurora-flash.sapphire { --pot-band: var(--pot-sapphire); --pot-deep: var(--pot-sapphire-deep); }
.aurora-fly.gold, .aurora-flash.gold { --pot-band: var(--pot-gold); --pot-deep: var(--pot-gold-deep); }
.aurora-pot-art { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.aurora-pot-name {
position: absolute;
left: 0;
right: 0;
top: 64%;
height: 17%;
display: flex;
align-items: center;
justify-content: center;
color: var(--text);
font: 14px/1 var(--display);
letter-spacing: .03em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 4px #000;
}
.aurora-pot-glow {
position: absolute;
inset: -12% -8% 0;
border-radius: 50%;
background: radial-gradient(closest-side, var(--pot-band), transparent);
opacity: var(--rest-glow, 0);
transition: opacity .3s;
pointer-events: none;
}
.aurora-pot.violet { --pot-frames: url("../art/aurora/pot-fill-violet.webp"); }
.aurora-pot.ruby { --pot-frames: url("../art/aurora/pot-fill-ruby.webp"); }
.aurora-pot.sapphire { --pot-frames: url("../art/aurora/pot-fill-sapphire.webp"); }
.aurora-pot-frames {
position: absolute; left: 0; bottom: 0; width: 100%; height: 120%;
background-image: var(--pot-frames); background-size: 400% 100%;
background-position: 0% 0%; background-repeat: no-repeat;
opacity: 0; pointer-events: none;
}
.aurora-pot.fill .aurora-pot-frames { animation: aurora-pot-frames .48s steps(1, end); }
.aurora-pot.fill .aurora-pot-art { animation: aurora-pot-still .48s steps(1, end); }
@keyframes aurora-pot-frames {
0% { opacity: 1; background-position: 0% 0%; }
25% { opacity: 1; background-position: 33.333333% 0%; }
50% { opacity: 1; background-position: 66.666667% 0%; }
75% { opacity: 1; background-position: 100% 0%; }
100% { opacity: 0; background-position: 0% 0%; }
}
@keyframes aurora-pot-still { 0%, 99.99% { opacity: 0; } 100% { opacity: 1; } }
.aurora-sign[hidden] .aurora-pot-frames,
.aurora-sign[hidden] .aurora-pot-art,
.aurora-sign[hidden] .aurora-pot-glow,
.aurora-sign[hidden] .aurora-pot::before { animation: none; }
body.scene-motion-paused .aurora-pot-frames,
body.scene-motion-paused .aurora-pot-art,
body.scene-motion-paused .aurora-pot .aurora-pot-glow,
body.scene-motion-paused .aurora-pot[data-fullness="crackling"]::before,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .aurora-pot-frames,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .aurora-pot-art,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .aurora-pot .aurora-pot-glow,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .aurora-pot[data-fullness="crackling"]::before { animation-play-state: paused; }
.aurora-pot[data-fullness="crackling"] .aurora-pot-glow { animation: aurora-pot-crackle 1.3s steps(1, end) infinite; }
@keyframes aurora-pot-crackle {
0% { opacity: .65; transform: scale(1); }
12% { opacity: .95; transform: scale(1.06); }
20% { opacity: .5; transform: scale(.97); }
41% { opacity: .85; transform: scale(1.04); }
47% { opacity: .4; transform: scale(1); }
68% { opacity: 1; transform: scale(1.08); }
75% { opacity: .6; transform: scale(.98); }
90% { opacity: .8; transform: scale(1.03); }
}
.aurora-pot[data-fullness="crackling"]::before {
content: "";
position: absolute;
inset: -6% -4% 30%;
z-index: 1;
pointer-events: none;
background:
radial-gradient(circle at 18% 60%, #fff 0 2px, var(--pot-band) 3px, transparent 5px),
radial-gradient(circle at 52% 22%, #fff 0 2px, var(--pot-band) 3px, transparent 5px),
radial-gradient(circle at 84% 50%, #fff 0 2px, var(--pot-band) 3px, transparent 5px),
linear-gradient(115deg, transparent 44%, #fffc 47%, var(--pot-band) 50%, transparent 53%) 0 0 / 38% 100% no-repeat;
animation: aurora-pot-sparks 1.1s steps(1, end) infinite;
}
@keyframes aurora-pot-sparks {
0% { opacity: 1; transform: translate(0, 0); }
18% { opacity: 0; }
30% { opacity: 1; transform: translate(4px, -3px) scaleX(-1); }
52% { opacity: 0; }
60% { opacity: 1; transform: translate(-3px, 2px); }
82% { opacity: .3; transform: translate(2px, -4px) scaleX(-1); }
}
.aurora-pot.near-burst { animation: aurora-pot-wobble .26s ease-in-out; }
.aurora-pot.near-burst::after {
content: "";
position: absolute;
left: 12%;
right: 12%;
top: 4%;
height: 34%;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(closest-side, #fff, var(--pot-band) 55%, transparent);
animation: aurora-pot-lid .26s ease-out both;
}
@keyframes aurora-pot-wobble {
20% { transform: rotate(-4deg) scale(1.05); }
45% { transform: rotate(4deg) translateY(-3px) scale(1.08); }
70% { transform: rotate(-2deg) scale(1.04); }
}
@keyframes aurora-pot-lid {
from { opacity: 0; transform: translateY(8px) scale(.6); }
50% { opacity: 1; transform: translateY(-5px) scale(1.15); }
to { opacity: 0; transform: translateY(-9px) scale(1); }
}
.aurora-pot.strike { animation: aurora-pot-strike .5s ease-out; }
.aurora-pot.strike::after {
content: "";
position: absolute;
left: 38%;
top: -60%;
width: 24%;
height: 130%;
pointer-events: none;
background: linear-gradient(180deg, transparent, #fff 20%, var(--pot-band) 55%, #fff 90%);
clip-path: polygon(40% 0, 70% 0, 52% 38%, 85% 38%, 20% 100%, 38% 52%, 10% 52%);
filter: drop-shadow(0 0 6px var(--pot-band));
animation: aurora-pot-bolt .5s ease-out both;
}
@keyframes aurora-pot-strike {
0% { filter: brightness(3) saturate(.4); }
35% { filter: brightness(1.8); }
100% { filter: none; }
}
@keyframes aurora-pot-bolt {
0% { opacity: 1; transform: scaleY(.2); transform-origin: 50% 0; }
25% { opacity: 1; transform: scaleY(1); }
100% { opacity: 0; transform: scaleY(1); }
}
.aurora-pot.burst .aurora-pot-glow { opacity: 1; animation: aurora-pot-burst .9s ease-in-out infinite alternate; }
@keyframes aurora-pot-burst { from { transform: scale(.85); } to { transform: scale(1.12); } }
.aurora-pot.on .aurora-pot-glow { opacity: .7; animation: none; }
.aurora-pot.off:not(.burst) .aurora-pot-glow { opacity: 0; animation: none; }
.aurora-pot.off:not(.burst) .aurora-pot-art, .aurora-show-pot:not(.on) .aurora-pot-art { opacity: .38; filter: saturate(.35); }

.aurora-pot-state {
position: absolute;
top: 2%;
left: 50%;
transform: translateX(-50%);
padding: 2px 5px;
border: 1px solid var(--pot-band);
border-radius: 4px;
background: #000c;
color: var(--text);
font: var(--type-label)/1 var(--display);
letter-spacing: .04em;
white-space: nowrap;
pointer-events: none;
}
.aurora-pot-state:empty { display: none; }
.aurora-pot.on .aurora-pot-state, .aurora-show-pot.on .aurora-pot-state { border-color: var(--gold-light); color: var(--gold-light); }

.aurora-sign:has(.aurora-pot-tip:not([hidden])) { z-index: 4; }
.aurora-sign:has(.aurora-pot-tip:not([hidden])) .aurora-status { visibility: hidden; }
.aurora-pot-tip {
position: absolute;
left: 0;
right: 0;
top: calc(100% + 8px);
display: flex;
flex-direction: column;
gap: 3px;
padding: 8px 12px 9px;
text-align: center;
border: 2px solid var(--pot-band);
border-radius: 8px;
background: linear-gradient(var(--aurora-glass-light), var(--bg-deep));
box-shadow: 0 0 0 1px var(--pot-deep), 0 4px 12px #000a;
}
.aurora-pot-tip[hidden] { display: none; }
.aurora-pot-tip::after {
content: "";
position: absolute;
bottom: 100%;
left: var(--tip-x, 50%);
margin-left: -8px;
border: 8px solid transparent;
border-bottom-color: var(--pot-band);
}
.aurora-pot-tip-name { color: var(--gold-light); font: var(--type-readout)/1.1 var(--display); letter-spacing: .05em; text-shadow: 0 1px 0 #000; }
.aurora-pot-tip-effect { color: var(--text); font: 400 .85rem/1.3 var(--body); }
.aurora-pot-tip-when, .aurora-pot-tip-odds { color: var(--muted); font: 400 .8125rem/1.3 var(--body); }

.aurora-show-pots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; height: 92px; margin: 0 auto 10px; --show-pot-w: 110px; }
.aurora-show-pots.with-effects { align-items: start; height: auto; }
.aurora-show-entry { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.aurora-show-pot { position: relative; justify-self: center; width: min(100%, var(--show-pot-w)); aspect-ratio: 120 / 100; }
.aurora-show-effect { color: var(--gold-light); font: 14px/1.1 var(--display); letter-spacing: .04em; text-align: center; }
@media (max-height: 700px) {
.aurora-show-pots { height: 72px; --show-pot-w: 86px; }
}
.aurora-show-pot.on .aurora-pot-glow { opacity: .85; }

@media (prefers-reduced-motion: reduce) {
.aurora-pot.fill .aurora-pot-frames, .aurora-pot.fill .aurora-pot-art, .aurora-pot.burst .aurora-pot-glow,
.aurora-pot[data-fullness="crackling"] .aurora-pot-glow { animation: none; }
.aurora-pot[data-fullness="crackling"]::before, .aurora-pot.near-burst, .aurora-pot.strike { animation: none; }
.aurora-pot.near-burst::after, .aurora-pot.strike::after { content: none; }
.aurora-pot-art, .aurora-pot-frames, .aurora-pot-glow { transition: none; }
}

/* Source: css/express.css */
.app.express, .express-pick, .express-show, .pt-express, .pt-express-trains, .paytable .express-sym, .paytable .express-coin {
--express-sky: #120632;
--express-iron: #1c1124;
--express-dusk: #4a1a5c;
--express-mesa: #2a0f3a;
--express-glass: #1a0b33;
--express-glass-light: #3a1a5e;
--express-rail: #f2b631;
--express-sleeper: #4a2a16;
--express-veil: #0c0420eb;
--express-tile: #241040;
--express-tile-deep: #0c0518;
--express-nova: #1d4fd8;
--express-nova-deep: #071a52;
--express-goldcoin: #b3122e;
--express-goldcoin-deep: #3d0410;
--express-sign-yellow: #ffd23a;
--express-sign-deep: #2a1400;
--express-go-light: #79ed8d;
--express-go: #28a34b;
--express-go-deep: #124b28;
--express-ruby: #e0234e;
--express-ruby-light: #ff7a8f;
--express-ruby-deep: #5e0a20;
--express-emerald: #1fb35e;
--express-emerald-light: #7cf0a6;
--express-emerald-deep: #0a4424;
--express-sapphire: #2a6dff;
--express-sapphire-light: #86b0ff;
--express-sapphire-deep: #0a2470;
--express-amethyst: #9a46ff;
--express-amethyst-light: #d2a8ff;
--express-amethyst-deep: #34106e;
--express-gold: #e8a92a;
--express-gold-light: #ffe38a;
--express-gold-deep: #7a4a06;
}

.app.express::before {
background:
linear-gradient(#12063299, transparent 18%, #0c042066 52%, var(--express-sky) 78%, var(--bg-deep)),
url("../art/halls/express-viaduct.webp") center top / auto 52% no-repeat,
linear-gradient(var(--express-sky), var(--express-dusk) 48%, var(--bg-deep));
}

.app.express {
--reel-frame: url("../art/kits/goldrush/frame.webp");
--cell: calc((min(100vw, 520px) - 32px - 34px - 24px) / 5);
--express-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / 4));
}
.express .reel {
height: calc(var(--express-cell-height) * 4);
background:
linear-gradient(180deg, #0009, transparent 22%, #ffffff0d 50%, transparent 78%, #0009),
radial-gradient(ellipse at 50% 50%, var(--express-glass-light), var(--express-glass) 82%);
}
.express .cell { height: var(--express-cell-height); }
.express .cell.letter { font-size: calc(var(--express-cell-height) * .7); }
.express .sym-img { max-height: var(--express-cell-height); }
.express .letter-9 .glyph, .pt-express .letter-9 .glyph { color: var(--jade); }

.cell.as-ruby { --glow: #ff3a6a99; }
.cell.as-emerald { --glow: #3dff9a80; }
.cell.as-sapphire { --glow: #4a8aff99; }
.cell.as-amethyst { --glow: #b46aff99; }
.cell.as-cash { --glow: #ff4a4a80; }
.cell.as-star, .cell.as-line { --glow: #ffd86acc; }

body.at-express .cell.express-sym::before, .paytable .cell.express-sym::before {
background:
radial-gradient(ellipse at 50% 40%, var(--glow), transparent 75%),
linear-gradient(145deg, var(--express-tile), var(--express-tile-deep));
}
.cell.express-coin.as-coin { --glow: #4a8aff; }
.cell.express-coin.as-gold { --glow: #ff3a5a; }
body.at-express .cell.express-coin::before, .paytable .cell.express-coin::before {
background: radial-gradient(circle at 50% 45%, var(--glow), transparent 72%),
linear-gradient(145deg, var(--express-nova), var(--express-nova-deep));
}
body.at-express .cell.express-coin.as-gold::before, .paytable .cell.express-coin.as-gold::before {
background: radial-gradient(circle at 50% 45%, var(--glow), transparent 72%),
linear-gradient(145deg, var(--express-goldcoin), var(--express-goldcoin-deep));
}

.express-value {
position: absolute;
pointer-events: none;
color: var(--gold-light);
font-family: var(--display);
letter-spacing: .02em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 4px #000;
}
.express-value.cash {
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text);
font-size: max(12px, calc(var(--express-cell-height, var(--cell)) * .32));
-webkit-text-stroke: 2px var(--bg-deep);
paint-order: stroke fill;
}
.express-value.train {
left: 6%;
right: 6%;
bottom: 4%;
padding: 1px 2px;
text-align: center;
font-size: 11px;
line-height: 1.1;
background: var(--bg-deep);
border: 1px solid var(--gold);
border-radius: 6px;
overflow: hidden;
}
.cell.priced .express-value.train { animation: express-priced .45s ease-out; }
@keyframes express-priced { 40% { transform: scale(1.25); } }

.express-tag {
position: absolute;
left: 50%;
bottom: 4%;
transform: translateX(-50%);
padding: 0 .3em;
border-radius: 4px;
background: linear-gradient(180deg, var(--express-ruby), var(--express-ruby-deep));
box-shadow: 0 0 0 1.5px var(--gold-light);
color: var(--gold-light);
font-family: var(--display);
font-size: max(.7rem, calc(var(--express-cell-height, var(--cell)) * .17));
letter-spacing: .05em;
line-height: 1.15;
white-space: nowrap;
}
.cell.as-line .express-tag { background: linear-gradient(180deg, var(--express-gold), var(--express-gold-deep)); color: var(--text); }

.express .cell.lit { box-shadow: inset 0 0 0 2px var(--gold-light); }
.express .cell.collecting { box-shadow: inset 0 0 0 3px var(--gold-light), inset 0 0 14px var(--gold); }
.express .cell.collected .sym-face { filter: brightness(.5) saturate(.55); }
.express .cell.collected .express-value { opacity: .7; }
.app.express .grid.has-win .cell.express-sym, .app.express .grid.cycling .cell.express-sym { opacity: 1; }

.express-look { display: none; }
.app.express .express-look.show {
position: absolute;
left: 50%;
top: 50%;
z-index: 6;
width: 128px;
height: 128px;
margin: -64px 0 0 -64px;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
animation: express-look 1.1s ease-out both;
}
.express-look.show::before {
content: "";
position: absolute;
inset: 16%;
transform: rotate(45deg);
border: 4px solid var(--express-sign-deep);
border-radius: 10px;
background: linear-gradient(var(--gold-light), var(--express-sign-yellow) 55%, var(--gold));
box-shadow: 0 0 0 3px var(--express-sign-yellow), 0 6px 14px #000a;
}
.express-look-text {
position: relative;
width: 64px;
text-align: center;
color: var(--express-sign-deep);
font: 26px/.9 var(--display);
letter-spacing: .04em;
}
@keyframes express-look {
0% { transform: scale(.3); opacity: 0; }
18% { transform: scale(1.12); opacity: 1; }
30%, 82% { transform: scale(1); opacity: 1; }
100% { transform: scale(1.05); opacity: 0; }
}

.express-sign {
flex: 1;
min-height: 134px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: stretch;
gap: 4px;
position: relative;
margin: 5px 0 22px;
container: express-sign / size;
}
.express-sign[hidden] { display: none; }
.express-scene {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
border-radius: var(--radius);
background: var(--express-sky);
mask-image: linear-gradient(#000 80%, transparent);
-webkit-mask-image: linear-gradient(#000 80%, transparent);
}
.express-scene > [data-parallax] { position: absolute; inset: calc(-1 * var(--parallax-bleed)); }
.express-scene > [data-parallax="mid"] { --win-mask: url("../art/express/scene/mid.webp") 50% 50% / cover no-repeat; }
.express-scene::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(transparent 58%, #0c041e40 78%, #08041399);
}
.express-scene-art { position: absolute; inset: 0; background: 50% 50% / cover no-repeat; }
.express-scene-art.far { background-image: url("../art/express/scene/far.webp"); }
.express-scene-art.mid { background-image: url("../art/express/scene/mid.webp"); }
.express-scene-art.frame { background-image: url("../art/express/scene/frame.webp"); }
.express-scene-glow {
position: absolute;
width: 90%;
height: 60%;
left: 5%;
top: 18%;
background: radial-gradient(ellipse, #ffd86a33, transparent 68%);
animation: express-glow 11s ease-in-out infinite alternate;
}
.express-scene-stars {
position: absolute;
inset: 0 0 50%;
background:
radial-gradient(circle at 12% 30%, #fff2cd 0 1px, transparent 1.6px),
radial-gradient(circle at 34% 12%, #fff2cd 0 .8px, transparent 1.4px),
radial-gradient(circle at 58% 36%, #fff2cd 0 1px, transparent 1.7px),
radial-gradient(circle at 80% 14%, #fff2cd 0 1.1px, transparent 1.8px),
radial-gradient(circle at 92% 40%, #fff2cd 0 .8px, transparent 1.4px);
opacity: .6;
animation: express-stars 7s ease-in-out infinite alternate;
}
.express-glint {
--loop-tile: url("../art/scene-loops/express-glint-tile.webp");
--loop-tile-w: 192px;
--loop-tile-h: 64px;
--loop-period: 22s;
--loop-mask: url("../art/express/scene/mid.webp") 50% 50% / cover no-repeat;
opacity: .26;
}
@keyframes express-glow { from { transform: translateX(-4%) scale(.95); opacity: .5; } to { transform: translateX(4%) scale(1.05); opacity: .9; } }
@keyframes express-stars { from { opacity: .3; } to { opacity: .8; } }
body.scene-motion-paused .express-scene-glow,
body.scene-motion-paused .express-scene-stars,
.express-sign[hidden] .express-scene-glow,
.express-sign[hidden] .express-scene-stars { animation-play-state: paused; }

.express-title { flex: none; font: 22px/1.05 var(--display); letter-spacing: .06em; text-align: center; }
.express-title, .express-pick-panel h2, .express-show-panel h2, .express-show-main {
color: transparent;
background: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px #000b);
}
.express-status { flex: none; text-align: center; color: var(--text); font: 11px/1.2 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.express-jackpots { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.express-jackpot {
position: relative;
min-width: 0;
padding: 4px 6px;
text-align: center;
border: 2px solid var(--gold);
border-radius: 8px;
background: linear-gradient(var(--express-glass-light), var(--bg-deep));
box-shadow: inset 0 1px 0 #fff3, 0 2px 0 var(--gold-deep);
}
.express-jackpot.grand { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 10px; border-width: 3px; border-color: var(--gold-light); }
.express-jackpot-name { display: block; font: 12px/1.05 var(--display); letter-spacing: .05em; color: var(--jp-major); text-shadow: 0 1px 0 #000; }
.express-jackpot.grand .express-jackpot-name { color: var(--cabinet-grand-ink); font-size: 13px; }
.express-jackpot.major .express-jackpot-name { color: var(--jp-major); }
.express-jackpot.minor .express-jackpot-name { color: var(--cabinet-minor-ink); }
.express-jackpot.mini .express-jackpot-name { color: var(--jp-mini); }
.express-jackpot-value { display: block; font: 15px/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; }
.express-jackpot.grand .express-jackpot-value { min-width: 0; font-size: var(--type-lead); }
.express-jackpot::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 14px 4px var(--gold-light); opacity: 0; pointer-events: none; }
.express-jackpot.flare { animation: express-flare 1s ease-out; }
.express-jackpot.flare::after { animation: express-flare-glow 1s ease-out; }
@keyframes express-flare { 30% { transform: scale(1.08); } }
@keyframes express-flare-glow { 30% { opacity: 1; } }

@container express-sign (max-height: 211px) {
.express-jackpots { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.express-jackpot.grand { grid-column: auto; display: block; padding: 4px 6px; border-width: 2px; }
.express-jackpot.grand .express-jackpot-name { font-size: 12px; }
.express-jackpot.grand .express-jackpot-value { font-size: var(--type-readout); }
}
@container express-sign (max-height: 170px) {
.express-title { display: none; }
}

.app.express .win-plate {
bottom: -17px;
padding-block: 1px 0;
}

.express-pick, .express-show {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: max(20px, var(--safe-top)) 16px max(20px, var(--safe-bottom));
z-index: 25;
background: var(--express-veil);
}
.express-pick.show, .express-show.show { display: flex; }
.express-pick-panel, .express-show-panel {
width: min(100%, 380px);
max-height: 100%;
overflow-y: auto;
padding: 20px 12px;
text-align: center;
color: var(--text);
animation: express-panel-in .35s ease-out both;
}
@keyframes express-panel-in { from { transform: scale(.88); opacity: 0; } }
.express-pick-panel h2, .express-show-panel h2 { margin: 0 0 6px; font: 30px/1.1 var(--display); letter-spacing: .04em; }
.express-pick-sub { margin: 0 0 14px; color: var(--muted); font: 14px/1.2 var(--display); letter-spacing: .06em; }
.express-pick-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.express-choice {
min-height: 176px;
padding: 10px 6px 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
color: var(--text);
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(var(--express-glass-light), var(--express-glass) 60%, var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 #0009, inset 0 1px 0 #fff4;
transition: opacity .25s, transform .25s;
}
.express-choice:active { transform: scale(.97); }
.express-choice-art { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 3px 4px #000a); }
.express-choice-name { font: 16px/1.05 var(--display); letter-spacing: .05em; text-shadow: 0 1px 0 #000; }
.express-choice-value { color: var(--gold-light); font: clamp(1.125rem, 5.6vw, 1.375rem)/1.1 var(--display); letter-spacing: .03em; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.express-pick.chosen .express-choice { opacity: .35; }
.express-pick.chosen.free .express-choice.free, .express-pick.chosen.line .express-choice.line {
opacity: 1;
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 #0009, 0 0 18px var(--gold);
transform: scale(1.04);
}
.express-pick-note { margin: 14px auto 0; max-width: 300px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.express-show-hero { display: block; width: 120px; height: 120px; margin: 4px auto 8px; object-fit: contain; filter: drop-shadow(0 0 14px #ffd86a99); }
.express-show-main { font: 40px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.express-show-sub { margin: 12px auto 18px; max-width: 300px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.express-show-panel button {
display: block;
width: min(100%, 240px);
min-height: 56px;
margin: 0 auto 4px;
padding: 8px 20px;
color: var(--text);
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(var(--express-go-light), var(--express-go));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--express-go-deep), inset 0 1px 0 #fff6;
font: 20px/1 var(--display);
letter-spacing: .08em;
text-shadow: 0 1px 0 #000;
}

.pt-express-trains .pt-row { grid-template-columns: 52px 1fr 1.4fr .8fr; }
.pt-express-jackpot.grand .pt-express-jackpot-name { color: var(--jp-grand); }
.pt-express-jackpot.major .pt-express-jackpot-name { color: var(--jp-major); }
.pt-express-jackpot.minor .pt-express-jackpot-name { color: var(--jp-minor); }
.pt-express-jackpot.mini .pt-express-jackpot-name { color: var(--jp-mini); }

@media (max-height: 700px) {
.express-pick-panel h2, .express-show-panel h2 { font-size: 26px; }
.express-choice { min-height: 150px; }
.express-choice-art { width: 64px; height: 64px; }
.express-show-hero { width: 92px; height: 92px; }
.express-show-main { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
.express-scene-glow, .express-scene-stars, .express-jackpot.flare, .express-jackpot.flare::after,
.cell.priced .express-value.train, .express-pick-panel, .express-show-panel { animation: none; }
.app.express .express-look.show { animation: none; }
}

.app.express {
--machine-accent: #ffe38a;
--machine-accent-2: #ff5a6e;
}

/* Source: css/jade.css */
:root {
--jade-hall: #071b22;
--jade-glass: #10382f;
--jade-panel: #0c292e;
--jade-gold: #ffe5a2;
--jade-choice: #7fe3b5;
--jade-sapphire: #99c7ff;
--jade-crimson: #ff9faa;
--jade-amethyst: #d5b7ff;
--jade-mystery: #86eae5;
--jade-seal: #fc594e;
}

.app.jade {
--reel-frame: url("../art/kits/jadeserpent/frame.webp");
}

.app.jade::before {
background: linear-gradient(180deg, var(--jade-glass), var(--jade-hall) 48%, var(--bg-deep));
}

#app.jade[data-jade-profile] {
--jade-tone: var(--jade-choice);
--jade-glow: color-mix(in srgb, var(--jade-tone) 55%, transparent);
--jade-tone-deep: color-mix(in srgb, var(--jade-tone) 28%, #03130f);
}
#app.jade[data-jade-profile="sapphire"] { --jade-tone: var(--jade-sapphire); }
#app.jade[data-jade-profile="crimson"] { --jade-tone: var(--jade-crimson); }
#app.jade[data-jade-profile="amethyst"] { --jade-tone: var(--jade-amethyst); }
#app.jade[data-jade-profile="gold"] { --jade-tone: var(--jade-gold); }

#app.jade[data-jade-profile]::before {
background: radial-gradient(ellipse at 50% 42%, var(--jade-glow), transparent 66%),
linear-gradient(180deg, var(--jade-glass), var(--jade-hall) 48%, var(--bg-deep));
}
#app.jade[data-jade-profile] .grid { box-shadow: 0 0 0 1px var(--gold-dark), 0 0 18px 3px var(--jade-glow); }
#app.jade[data-jade-profile] .jade-status { color: var(--jade-tone); }
#app.jade[data-jade-profile] .cell.wild { --glow: var(--jade-glow); }
#app.jade[data-jade-profile] .wild-tag {
background: linear-gradient(180deg, var(--jade-tone-deep), var(--jade-hall));
box-shadow: 0 0 0 1.5px var(--jade-tone);
color: var(--jade-tone);
}
#app.jade[data-jade-profile] .wild-badge-face {
border-color: var(--jade-tone);
box-shadow: 0 0 10px var(--jade-tone), 0 2px 4px #000b;
color: var(--jade-tone);
}

#app.jade.jade-free .jade-scene [data-parallax="far"] .jade-depth {
background-image: linear-gradient(#071b2240, #071b2299), url("../art/backdrops/jadeserpent/free-games.webp");
}

#app.jade .grid {
background: var(--jade-hall);
box-shadow: 0 0 0 1px var(--gold-dark), 0 0 12px #60e8a766;
}

#app.jade .reel {
background: radial-gradient(ellipse, var(--jade-glass), var(--jade-hall));
}

.jade-sign {
position: relative;
isolation: isolate;
display: grid;
align-items: center;
justify-items: center;
gap: 4px;
min-height: 132px;
padding: 8px;
text-align: center;
}

.jade-sign[hidden], .jade-choice[hidden] { display: none; }
.jade-scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.jade-scene [data-parallax] { position: absolute; inset: -12px; }
.jade-depth {
position: absolute;
inset: -8px;
background: center / cover no-repeat;
animation: jade-scene-drift 24s ease-in-out infinite;
}
.jade-scene [data-parallax="far"] .jade-depth {
background-image: linear-gradient(#071b2240, #071b22aa), url("../art/kits/jadeserpent/scene.webp");
}
.jade-scene [data-parallax="mid"] .jade-depth {
background-image: url("../art/scene-layers/jadeserpent/mid.webp");
animation-delay: -7s;
}
.jade-scene [data-parallax="frame"] .jade-depth {
background-image: url("../art/scene-layers/jadeserpent/frame.webp");
animation-delay: -13s;
}

.jade-mist {
--loop-tile: url("../art/scene-loops/jade-mist-tile.webp");
--loop-tile-w: 192px;
--loop-tile-h: 64px;
--loop-period: 26s;
--loop-mask: linear-gradient(transparent 34%, #000 53%, transparent 70%);
opacity: .24;
}

@keyframes jade-scene-drift {
0%, 100% { transform: translateX(-3px); }
50% { transform: translateX(3px); }
}

.jade-title {
margin: 0;
color: var(--jade-gold);
font: 800 clamp(18px, 3.2vw, 30px)/1.06 var(--display);
text-shadow: 0 2px 2px #000, 0 0 14px #071b22;
text-wrap: balance;
}

.jade-status {
color: var(--jade-gold);
font: 800 .85rem/1.3 var(--display);
text-shadow: 0 1px 2px #000, 0 0 8px #000;
}

.jade-ante {
display: grid;
place-content: center;
min-height: 44px;
min-width: 44px;
max-width: 100%;
padding: 3px 8px;
border: 1px solid var(--gold);
border-radius: 8px;
color: var(--jade-gold);
background: var(--jade-hall);
font: 800 .8rem/1.15 var(--display);
cursor: pointer;
}
.jade-ante span { font-size: .74rem; }
.jade-ante[aria-pressed="true"] { background: var(--jade-glass); box-shadow: inset 0 0 0 2px var(--jade-choice); }
.jade-ante:disabled { cursor: default; }

.jade-symbol-tag {
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
border-radius: 3px;
padding: 1px 4px;
background: var(--jade-hall);
color: var(--jade-gold);
font: 800 clamp(8px, 1.5vw, 11px)/1.1 var(--display);
white-space: nowrap;
}
.as-red-seal .sym-face { filter: sepia(.6) saturate(3) hue-rotate(307deg); }
.as-red-seal .jade-symbol-tag { color: var(--jade-seal); }

#app.jade .sting.seal {
background: radial-gradient(circle at 50% 50%, #ffe2da 0, var(--jade-seal) 34%, transparent 72%);
animation-duration: 560ms;
}
#app.jade .sting.wild {
background: radial-gradient(circle at 50% 50%, #f1fff6 0, var(--jade-choice) 38%, transparent 76%);
}

.cell.jade-trigger .sym-face { animation: jade-trigger 900ms ease-out; }
@keyframes jade-trigger {
35% { transform: scale(1.22); filter: brightness(1.6) drop-shadow(0 0 12px var(--jade-gold)); }
}

.cell.jade-seal-stamp { animation: jade-seal-ring 760ms ease-out; }
.cell.jade-seal-stamp .sym-face { animation: jade-seal-stamp 760ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes jade-seal-ring {
from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--jade-seal) 85%, transparent); }
to { box-shadow: 0 0 0 18px transparent; }
}
@keyframes jade-seal-stamp {
from { opacity: .4; transform: scale(1.9); filter: sepia(.6) saturate(3) hue-rotate(307deg) brightness(2) drop-shadow(0 0 14px var(--jade-seal)); }
45% { opacity: 1; transform: scale(.92); filter: sepia(.6) saturate(3) hue-rotate(307deg) brightness(1.6) drop-shadow(0 0 16px var(--jade-seal)); }
}

.jade-seal-beam {
position: fixed;
z-index: 44;
height: 8px;
margin-top: -4px;
border-radius: 4px;
background: linear-gradient(90deg, transparent, var(--jade-seal), #fff0e6 50%, var(--jade-seal), transparent);
box-shadow: 0 0 16px var(--jade-seal);
pointer-events: none;
transform-origin: 0 50%;
animation: jade-seal-beam 760ms ease-out forwards;
}
@keyframes jade-seal-beam {
from { opacity: 0; transform: rotate(var(--beam-angle)) scaleX(0); }
30% { opacity: 1; transform: rotate(var(--beam-angle)) scaleX(1); }
to { opacity: 0; transform: rotate(var(--beam-angle)) scaleX(1); }
}

html.landscape #app > .jade-sign:not([hidden]) {
grid-template-columns: minmax(0, 1fr) var(--ls-reels-w) minmax(0, 1fr);
grid-template-rows: var(--ls-strip) 1fr;
min-height: 0;
padding: 0;
}

html.landscape .jade-title { grid-area: 1 / 1 / 2 / -1; }
html.landscape .jade-status { grid-area: 2 / 1; }
html.landscape .jade-ante { grid-area: 2 / 3; }

.jade-picker {
position: fixed;
inset: 0;
z-index: 39;
display: none;
place-items: center;
padding: max(12px, var(--safe-top)) max(16px, var(--safe-right)) max(12px, var(--safe-bottom)) max(16px, var(--safe-left));
background: #040d14d9;
}

.jade-picker.open { display: grid; }
.jade-pick-panel {
width: min(100%, 602px);
padding: clamp(12px, 4dvh, 24px);
border: 2px solid var(--gold);
border-radius: 14px;
color: var(--jade-gold);
background: linear-gradient(#0c292eeb, #071b22fa), url("../art/kits/jadeserpent/scene.webp") center / cover;
text-align: center;
box-shadow: 0 12px 44px #000b;
}

.jade-pick-panel h2 { margin: 0; font: 800 clamp(20px, 4vw, 30px)/1.1 var(--display); }
#jade-locked-bet { margin: 6px 0 12px; font: 700 .78rem/1.2 var(--display); }
.jade-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jade-choice {
--choice-tone: var(--jade-choice);
min-height: 66px;
display: grid;
align-content: center;
justify-items: center;
gap: 3px;
padding: 5px 3px;
border: 1px solid var(--choice-tone);
border-radius: 8px;
background: linear-gradient(150deg, color-mix(in srgb, var(--choice-tone) 19%, var(--jade-panel)), var(--jade-hall));
color: var(--text);
cursor: pointer;
}
.choice-sapphire { --choice-tone: var(--jade-sapphire); }
.choice-crimson { --choice-tone: var(--jade-crimson); }
.choice-amethyst { --choice-tone: var(--jade-amethyst); }
.choice-gold { --choice-tone: var(--jade-gold); }
.choice-mystery { --choice-tone: var(--jade-mystery); }
.jade-choice:focus-visible, .jade-ante:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.jade-choice-name { color: var(--choice-tone); font: 800 .95rem/1.1 var(--display); }
.jade-choice-games, .jade-choice-multipliers { font: 600 .75rem/1.15 var(--body); }

.jade-choices[hidden], .jade-reveal[hidden] { display: none; }
.jade-reveal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jade-slot {
--slot-tone: var(--jade-mystery);
display: grid;
place-content: center;
min-height: 78px;
padding: 8px 6px;
border: 1px solid var(--slot-tone);
border-radius: 8px;
background: linear-gradient(150deg, color-mix(in srgb, var(--slot-tone) 19%, var(--jade-panel)), var(--jade-hall));
color: var(--slot-tone);
font: 800 1.2rem/1.15 var(--display);
text-align: center;
}
.jade-slot[data-profile="jade"] { --slot-tone: var(--jade-choice); }
.jade-slot[data-profile="sapphire"] { --slot-tone: var(--jade-sapphire); }
.jade-slot[data-profile="crimson"] { --slot-tone: var(--jade-crimson); }
.jade-slot[data-profile="amethyst"] { --slot-tone: var(--jade-amethyst); }
.jade-slot[data-profile="gold"] { --slot-tone: var(--jade-gold); }
.jade-slot.locked {
box-shadow: inset 0 0 0 2px var(--slot-tone), 0 0 16px color-mix(in srgb, var(--slot-tone) 70%, transparent);
animation: jade-slot-lock 420ms ease-out;
}
@keyframes jade-slot-lock {
from { transform: scale(1.08); }
}

.jade-show {
position: fixed;
inset: 0;
z-index: 39;
display: none;
align-items: center;
justify-content: center;
padding: max(16px, var(--safe-top)) max(20px, var(--safe-right)) max(16px, var(--safe-bottom)) max(20px, var(--safe-left));
background: #040d14e6;
}
.jade-show.show { display: flex; }
.jade-show-panel {
--show-tone: var(--jade-choice);
width: min(100%, 380px);
max-height: 100%;
overflow-y: auto;
padding: 18px 16px;
text-align: center;
color: var(--jade-gold);
}
.jade-show[data-profile="sapphire"] .jade-show-panel { --show-tone: var(--jade-sapphire); }
.jade-show[data-profile="crimson"] .jade-show-panel { --show-tone: var(--jade-crimson); }
.jade-show[data-profile="amethyst"] .jade-show-panel { --show-tone: var(--jade-amethyst); }
.jade-show[data-profile="gold"] .jade-show-panel { --show-tone: var(--jade-gold); }
.jade-show-panel h2 {
margin: 0 0 10px;
font: 30px/1.1 var(--display);
letter-spacing: .04em;
color: var(--jade-gold);
text-shadow: 0 2px 3px #000;
}
.jade-show-hero {
display: block;
width: 112px;
height: 112px;
margin: 0 auto 10px;
object-fit: contain;
filter: drop-shadow(0 0 22px var(--show-tone));
}
.jade-show-main {
font: 42px/1.2 var(--display);
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
color: var(--show-tone);
}
.jade-show-sub { margin: 12px auto 18px; max-width: 290px; font: 500 15px/1.35 var(--body); color: var(--text); }
.jade-show-panel button {
display: block;
width: min(100%, 240px);
min-height: 56px;
margin: 0 auto 4px;
padding: 8px 20px;
color: #04140f;
border: 2px solid var(--gold-dark);
border-radius: 8px;
background: linear-gradient(var(--jade-gold), var(--show-tone));
font: 20px/1 var(--display);
letter-spacing: .08em;
cursor: pointer;
}
.jade-show-panel button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
html.landscape .jade-show-panel {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
width: min(100%, 560px);
padding: 10px 16px;
}
html.landscape .jade-show-panel > h2 { grid-column: 2; margin: 0 0 6px; font-size: 26px; }
html.landscape .jade-show-hero { grid-row: 1 / span 4; width: 120px; height: 120px; margin: 0 14px 0 0; }
html.landscape .jade-show-main { grid-column: 2; font-size: 36px; }
html.landscape .jade-show-sub { grid-column: 2; margin: 4px 0 10px; }
html.landscape .jade-show-panel > button { grid-column: 2; width: 100%; margin: 0; }

.pt-jade-ways .pt-row { grid-template-columns: 1fr repeat(3, 1fr); }
.pt-jade-free .pt-row { grid-template-columns: 1fr .55fr 1.25fr; }
.pt-jade-scatter .pt-row { grid-template-columns: 1fr 1fr; }
html.landscape .pt-page:has(.jade-help) { padding-bottom: 4px; mask-image: none; }
html.landscape .jade-help { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
html.landscape .jade-help .pt-heading { margin: 4px 0; }
html.landscape .jade-help .pt-row { min-height: 18px; padding: 1px 0; }
html.landscape .pt-jade-ways .pt-row:not(.pt-head) { padding-block: 0; }
html.landscape .jade-help .pt-note { margin-top: 3px; line-height: 1.25; }
.jade-help .pt-sym img { display: block; width: 19px; height: 19px; object-fit: contain; }
.pt-jade-ways .cell.letter { --cell: 19px; }
.jade-help .pt-head > span:not(:first-child) { justify-self: center; }

@media (max-width: 430px) {
.jade-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
.jade-depth, .jade-slot.locked, .cell.jade-trigger .sym-face,
.cell.jade-seal-stamp, .cell.jade-seal-stamp .sym-face { animation: none; }
.jade-seal-beam { display: none; }
}

/* Source: css/frontier.css */
html.landscape #app.frontier { --ls-pad: 4px; --ls-aspect: 1.2; --ls-strip: 38px; --chip-band: 4px; }
#app.frontier { --reel-frame: url("../art/kits/savanna/frame.webp"); }
#frontier-pots > span, #frontier-status { --frontier-plate: #261508; --frontier-plate-light: #4c2d12; }
.frontier .reel { height: calc(4 * var(--ls-cell-h)); background: linear-gradient(#352313,#624025 50%,#302014); }
.frontier .cell { height: var(--ls-cell-h); }
.frontier .cell.letter { font-size: calc(var(--ls-cell-h) * .7); }
.frontier .sym-img { max-height: var(--ls-cell-h); }
.frontier-sign:not([hidden]) {
position: relative; isolation: isolate; display: grid; align-items: center; justify-items: center;
grid-template-columns: minmax(0,1fr) var(--ls-reels-w) minmax(0,1fr);
grid-template-rows: var(--ls-strip) 1fr;
color: var(--gold-light); text-align: center; text-shadow: 0 2px 3px #201003;
text-transform: uppercase; letter-spacing: .04em; --wheel: min(16vw,29vh);
}
html.landscape .frontier-sign:not([hidden]) {
margin: 0 calc(-1 * var(--ls-r)) 0 calc(-1 * var(--ls-l));
padding: 0 var(--ls-r) 4px var(--ls-l);
}
.frontier-scenery { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #442912; }
.frontier-scenery > [data-parallax] { position: absolute; inset: calc(-1 * var(--parallax-bleed)); }
.frontier-scenery i { position: absolute; inset: -5%; background-size: cover; background-position: center; }
.frontier-distance { background-image: linear-gradient(#25150e44,#26170b99),url("../art/kits/savanna/scene.webp"); animation: frontier-drift 32s ease-in-out infinite alternate; }
.frontier-sun { background: radial-gradient(ellipse at 20% 10%,#ffe7a95c,transparent 55%); animation: frontier-drift 17s ease-in-out infinite alternate-reverse; }
.frontier-scenery .frontier-flowers { inset: auto -2% -12% auto; height: 48%; width: 25%; opacity: .65; background: url("../art/kits/savanna/decor-protea-bloom.webp") right bottom / contain no-repeat; animation: frontier-drift 9s ease-in-out infinite alternate; }
@keyframes frontier-drift { to { transform: translateX(3%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .frontier-scenery .machine-scene-motion { animation: none; } }
.frontier-brand, .frontier-bonus { grid-row: 1 / 3; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 3px; min-width: 0; }
.frontier-brand { grid-column: 1; }
.frontier-brand > strong {
font: clamp(18px,2.6vw,32px)/1 var(--display); white-space: nowrap; text-shadow: none;
background-image: var(--gold-bevel); -webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}
#frontier-pots { display: grid; gap: 2px; width: 100%; font-size: clamp(11px,1.7vw,16px); }
#frontier-pots > span {
position: relative; padding: 1px 6px; font-family: var(--display); letter-spacing: .03em;
border: 2px solid var(--gold); border-radius: 6px;
background: linear-gradient(var(--frontier-plate-light), var(--frontier-plate));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 4px rgba(0, 0, 0, 0.5);
}
#frontier-pots > .grand { border-color: var(--jp-grand); }
#frontier-pots > .major { border-color: var(--jp-major); }
#frontier-pots > .minor { border-color: var(--jp-minor); }
#frontier-pots > .mini { border-color: var(--jp-mini); }
.frontier-prize-name { font-family: var(--display); text-shadow: var(--jp-outline); }
.grand > .frontier-prize-name { color: var(--jp-grand); }
.major > .frontier-prize-name { color: var(--jp-major); }
.minor > .frontier-prize-name { color: var(--jp-minor); }
.mini > .frontier-prize-name { color: var(--jp-mini); }
.frontier-bank { grid-column: 2; grid-row: 1; width: 96%; font: 13px/1 var(--display); color: var(--text); text-shadow: 0 1px 0 #000; }
#frontier-meter { display: grid; grid-template-columns: repeat(15,1fr); gap: 2px; }
#frontier-meter i { height: 7px; border: 1px solid #cfab63; border-radius: 2px; background: #372612; }
#frontier-meter .banked { background: #ffca52; box-shadow: 0 0 4px gold; }
.frontier-bonus { grid-column: 3; }
.frontier-pointer { position: relative; width: var(--wheel); aspect-ratio: 1; }
.frontier-flapper { position: absolute; z-index: 2; top: -8px; left: 50%; width: 16px; height: 14px; transform: translateX(-50%); transform-origin: 50% 0; background: linear-gradient(#fff6c8,#e7a93c); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 1px 2px #201003); }
#frontier-disc { position: absolute; inset: 0; border-radius: 50%; border: 3px ridge #ffd674; box-shadow: 0 3px 9px #261509; }
#frontier-disc span {
position: absolute; top: 50%; left: 50%; transform-origin: 0 0; white-space: nowrap;
transform: rotate(var(--wedge)) translateX(calc(var(--wheel) * .275)) rotate(var(--flip, 0deg)) translate(-50%, -50%);
font: clamp(11px,1.4vw,13px)/1 var(--display); letter-spacing: .02em; color: var(--text); text-shadow: 0 1px 0 #000, 0 0 2px #000;
}
#frontier-disc span.hit { color: #fff3a6; text-shadow: 0 0 6px #ffca52, 0 0 14px #ff9d2e; }
#frontier-meter .milestone { border-color: #fff1ae; box-shadow: inset 0 0 0 1px #ffca52; }
#frontier-meter .milestone.banked { box-shadow: 0 0 7px 2px #ffca52; }
.frontier-jackpot { transition: transform .2s ease-out; }
.frontier-jackpot.flare, .frontier-jackpot.handpay { animation: frontier-flare .9s ease-out; }
@keyframes frontier-flare { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 16px 4px #ffca52; } 100% { transform: scale(1); } }
.frontier .cell.frontier-morph { animation: frontier-morph .65s ease-out; }
@keyframes frontier-morph { 0% { filter: brightness(2.6) saturate(1.6); transform: scale(1.14); } 100% { filter: none; transform: scale(1); } }
.frontier-show { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: max(20px, var(--safe-top)) 20px max(20px, var(--safe-bottom)); z-index: 25; background: #1d0f04d9; }
.frontier-show.show { display: flex; }
.frontier-show-panel { width: min(100%, 380px); max-height: 100%; overflow-y: auto; padding: 20px 16px; text-align: center; color: var(--text); }
.frontier-show-panel h2 { margin: 0 0 12px; font: 30px/1.1 var(--display); letter-spacing: .04em; color: #ffe8aa; text-shadow: 0 2px 3px #201003; }
.frontier-show-hero { display: block; width: 112px; height: 112px; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 0 24px #ff9d2e); }
.frontier-show-main { font: 42px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; color: #ffca52; }
.frontier-show-sub { margin: 14px auto 20px; max-width: 290px; font: 500 15px/1.35 var(--body); color: var(--text); }
.frontier-show-panel button { display: block; width: min(100%, 240px); min-height: 56px; margin: 0 auto 4px; padding: 8px 20px; color: #311b07; border: 2px solid #9e6b20; border-radius: 8px; background: linear-gradient(#fff2b2,#e7a93c); font: 20px/1 var(--display); letter-spacing: .08em; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .frontier .cell.frontier-morph, .frontier-jackpot.flare, .frontier-jackpot.handpay { animation: none; } }
html.landscape .frontier-show-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; width: min(100%, 560px); padding: 10px 16px; }
html.landscape .frontier-show-panel > h2 { grid-column: 2; margin: 0 0 6px; font-size: 26px; }
html.landscape .frontier-show-hero { grid-row: 1 / span 4; width: 120px; height: 120px; margin: 0 14px 0 0; }
html.landscape .frontier-show-main { grid-column: 2; font-size: 36px; }
html.landscape .frontier-show-sub { grid-column: 2; margin: 4px 0 10px; }
html.landscape .frontier-show-panel > button { grid-column: 2; width: 100%; margin: 0; }
#frontier-status {
max-width: 100%; padding: 3px 8px; font: clamp(12px,1.7vw,15px)/1.1 var(--display); text-wrap: balance;
color: var(--text); text-shadow: 0 1px 0 #000;
border: 1px solid var(--gold-deep); border-radius: 6px;
background: linear-gradient(var(--frontier-plate-light), var(--frontier-plate));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.5);
}
#frontier-turn { min-height: 44px; padding: 4px 6px; font-family: var(--display); font-size: var(--type-key); line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; color: #311b07; background: linear-gradient(#fff2b2,#e7a93c); border: 2px solid #9e6b20; border-radius: 8px; cursor: pointer; }
.pt-frontier-pays .pt-row { grid-template-columns: 1.5fr repeat(3, 1fr); }

html:not(.landscape) #app.frontier {
--ls-cell-h: min(var(--cell), calc((100dvh - var(--safe-top) - var(--safe-bottom) - 408px) / 4));
}
html:not(.landscape) .frontier-sign:not([hidden]) {
--wheel: clamp(96px, 14vh, 120px);
flex: 1; min-height: 126px; grid-template-columns: minmax(0,1.2fr) var(--wheel) minmax(0,1fr);
grid-template-rows: 1fr auto auto 1fr 28px; column-gap: 6px; margin: 3px 0 20px;
}
html:not(.landscape) .frontier-brand { grid-row: 1 / 5; }
html:not(.landscape) .frontier-brand > strong { white-space: normal; text-wrap: balance; }
html:not(.landscape) .frontier-bank { grid-column: 1 / -1; grid-row: 5; }
html:not(.landscape) .frontier-bonus { display: contents; }
html:not(.landscape) .frontier-pointer { grid-column: 2; grid-row: 1 / 5; }
html:not(.landscape) #frontier-status { grid-column: 3; grid-row: 2; }
html:not(.landscape) #frontier-turn { grid-column: 3; grid-row: 3; margin-top: 6px; min-height: 48px; }

/* Source: css/express-railway.css */

.express-track {
position: relative;
flex: 1 1 0;
min-height: 40px;
max-height: 92px;
overflow: hidden;
container-type: size;
border-radius: 6px;
}
.express-rails {
position: absolute;
left: 0;
right: 0;
bottom: 4%;
height: 16%;
background:
linear-gradient(var(--express-rail), var(--express-gold-deep)) left top / 100% 3px no-repeat,
linear-gradient(var(--express-rail), var(--express-gold-deep)) left bottom / 100% 3px no-repeat,
repeating-linear-gradient(90deg, var(--express-sleeper) 0 7px, transparent 7px 20px);
opacity: .9;
}
.express-station {
position: absolute;
left: 62%;
top: 6%;
bottom: 8%;
width: 2px;
margin-left: -1px;
background: linear-gradient(transparent, var(--gold-light) 30%, var(--gold) 80%, transparent);
box-shadow: 0 0 8px var(--gold);
opacity: .55;
}
.express-train {
--loco-h: 84cqh;
--loco-plate: url("../art/express/train/gold-loco.webp");
--car-plate: url("../art/express/train/gold-car.webp");
position: absolute;
left: 0;
bottom: 12%;
display: flex;
align-items: flex-end;
gap: 4px;
will-change: transform;
}
.express-train.parked { left: auto; right: 3%; opacity: .7; }
.express-train.ruby { --loco-plate: url("../art/express/train/ruby-loco.webp"); --car-plate: url("../art/express/train/ruby-car.webp"); }
.express-train.emerald { --loco-plate: url("../art/express/train/emerald-loco.webp"); --car-plate: url("../art/express/train/emerald-car.webp"); }
.express-train.sapphire { --loco-plate: url("../art/express/train/sapphire-loco.webp"); --car-plate: url("../art/express/train/sapphire-car.webp"); }
.express-train.amethyst { --loco-plate: url("../art/express/train/amethyst-loco.webp"); --car-plate: url("../art/express/train/amethyst-car.webp"); }
.express-loco, .express-car {
flex: none;
background: center / 100% 100% no-repeat;
filter: drop-shadow(0 2px 2px #000a);
}
.express-car { background-image: var(--car-plate); }
.express-loco { position: relative; overflow: hidden; height: var(--loco-h); aspect-ratio: 576 / 240; }
.express-wheels {
position: absolute;
left: 0;
top: 0;
width: 400%;
height: 100%;
background: var(--loco-plate) 0 0 / 100% 100% no-repeat;
}
.express-train.running .express-wheels { animation: express-wheels var(--wheel-ms, 320ms) steps(4, jump-none) infinite; }
@keyframes express-wheels { to { transform: translateX(-75%); } }
.express-steam {
--sw: calc(var(--loco-h) * 2.4 * .66);
position: absolute;
display: none;
left: calc(var(--loco-h) * .5376 - var(--sw) * 2 / 381);
bottom: calc(var(--loco-h) * .855 - var(--sw) * 109 / 381 * .57);
width: var(--sw);
aspect-ratio: 381 / 109;
overflow: hidden;
pointer-events: none;
transform-origin: 0 43%;
opacity: .88;
}
.express-steam-strip {
display: block;
width: 600%;
height: 100%;
background: url("../art/express/train/steam.webp") 0 0 / 100% 100% no-repeat;
}
.express-train.running .express-steam { display: block; }
.express-train.running .express-steam-strip { animation: express-steam 600ms steps(6, jump-none) infinite alternate; }
.express-steam.puff { display: block; animation: express-puff 600ms ease-out 1; }
.express-steam.puff .express-steam-strip { animation: express-steam 600ms steps(6, jump-none) 1 forwards; }
@keyframes express-steam { to { transform: translateX(-83.333%); } }
@keyframes express-puff {
0% { opacity: 0; transform: scale(.7); filter: brightness(1.3); }
25% { opacity: 1; filter: brightness(1.5); }
100% { opacity: 0; transform: scale(1.12); filter: brightness(1.2); }
}
body.in-lobby #app :is(.express-wheels, .express-steam, .express-steam-strip, .express-crossing .reel.teasing::after, .cell.train-active .sym-face),
body.destination-active #app :is(.express-wheels, .express-steam, .express-steam-strip, .express-crossing .reel.teasing::after, .cell.train-active .sym-face),
body.scene-motion-paused #app :is(.express-wheels, .express-steam, .express-steam-strip, .express-crossing .reel.teasing::after, .cell.train-active .sym-face),
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app :is(.express-wheels, .express-steam, .express-steam-strip, .express-crossing .reel.teasing::after, .cell.train-active .sym-face),
:is(#app[hidden], #app [hidden]) :is(.express-wheels, .express-steam, .express-steam-strip, .express-crossing .reel.teasing::after, .cell.train-active .sym-face) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
.express-train.running .express-wheels { animation: none; }
.express-steam, .express-train.running .express-steam, .express-steam.puff { display: none; }
.express-car.caboose-hit, .app.express .express-repeat-badge.show,
.app.express .grid.tease.express-crossing .reel.teasing::after,
.app.express .cell.train-active .sym-face { animation: none; }
}
.express-car {
--car-h: max(70cqh, 37px);
position: relative;
box-sizing: border-box;
height: var(--car-h);
width: calc(var(--car-h) * 576 / 228);
padding: calc(var(--car-h) * .445 - .38em) 4px 0;
display: flex;
align-items: flex-start;
justify-content: center;
color: var(--text);
font: max(11px, calc(var(--car-h) * .3))/1 var(--display);
letter-spacing: .02em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 3px #000;
}
.express-car.passed { filter: brightness(1.2) drop-shadow(0 0 3px var(--gold-light)); }
.express-car.jp { --car-plate: url("../art/express/train/gold-car.webp"); text-shadow: var(--jp-outline); }
.express-car.jp.grand { color: var(--jp-grand); }
.express-car.jp.major { color: var(--jp-major); }
.express-car.jp.minor { color: var(--jp-minor); }
.express-car.jp.mini { color: var(--jp-mini); }
.express-train.caboose-hold .express-wheels { animation-play-state: paused; }
.express-train.braking .express-car.jp,
.express-train.caboose-hold .express-car.jp { filter: brightness(1.3) drop-shadow(0 0 6px var(--gold-light)); }
.express-car.caboose-hit { animation: express-caboose-hit 520ms ease-out; }
@keyframes express-caboose-hit {
0% { transform: scale(1); }
35% { transform: scale(1.16); }
100% { transform: scale(1); }
}

.express-meter {
flex: none;
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
padding: 3px 8px;
border: 1px solid var(--gold-deep);
border-radius: 6px;
background: linear-gradient(var(--express-glass), var(--bg-deep));
box-shadow: inset 0 1px 0 #fff2;
}
.express-meter.idle { visibility: hidden; }
.express-meter-name { flex: none; color: var(--text); font: 12px/1.15 var(--display); letter-spacing: .04em; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.express-meter-value { min-width: 0; color: var(--gold-light); font: 16px/1.1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-align: right; }

.app.express .grid.tease.express-crossing .reel.teasing {
box-shadow: 0 0 0 2px var(--express-sign-yellow), 0 0 20px var(--express-gold), inset 0 0 18px #fff5cc99;
}
.app.express .grid.tease.express-crossing .reel.teasing::after {
background:
radial-gradient(ellipse 68% 24% at 50% 4%, #fffbe6cc, #ffd86a66 48%, transparent 76%),
linear-gradient(180deg, #fff4c84d 0%, #ffb73226 52%, transparent 90%),
linear-gradient(90deg, #ff4b5c66, transparent 14%, transparent 86%, #ffd23a77);
animation: express-headlamp 340ms ease-in-out infinite alternate;
}
@keyframes express-headlamp {
from { opacity: .68; }
to { opacity: 1; }
}

.app.express .grid.express-train-focus .cell.lit:not(.train-active) {
opacity: .55;
transition: opacity 180ms ease-out;
}
.app.express .cell.train-active {
box-shadow: inset 0 0 0 3px var(--gold-light), 0 0 14px var(--glow, var(--gold));
z-index: 2;
}
.app.express .cell.train-active .sym-face {
animation: express-train-spot 560ms ease-in-out infinite alternate;
}
@keyframes express-train-spot {
from { transform: scale(1); }
to { transform: scale(1.08); }
}

.beam.express-transfer.ruby {
background: linear-gradient(180deg, #fff, var(--express-ruby-light, #ff7a8f) 32%, var(--express-ruby, #e0234e));
box-shadow: 0 0 12px #ff7a8f, 0 0 22px #e0234e;
}
.beam.express-transfer.emerald {
background: linear-gradient(180deg, #fff, var(--express-emerald-light, #7cf0a6) 32%, var(--express-emerald, #1fb35e));
box-shadow: 0 0 12px #7cf0a6, 0 0 22px #1fb35e;
}
.beam.express-transfer.sapphire {
background: linear-gradient(180deg, #fff, var(--express-sapphire-light, #86b0ff) 32%, var(--express-sapphire, #2a6dff));
box-shadow: 0 0 12px #86b0ff, 0 0 22px #2a6dff;
}
.beam.express-transfer.amethyst {
background: linear-gradient(180deg, #fff, var(--express-amethyst-light, #d2a8ff) 32%, var(--express-amethyst, #9a46ff));
box-shadow: 0 0 12px #d2a8ff, 0 0 22px #9a46ff;
}

.express-repeat-badge { display: none; }
.app.express .express-repeat-badge.show {
position: absolute;
left: 50%;
top: 14%;
z-index: 6;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 14px;
border: 2px solid var(--gold-light);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--express-gold), var(--express-gold-deep));
box-shadow: 0 0 0 1px var(--express-sign-deep), 0 4px 14px #000b, inset 0 1px 0 #fff6;
color: var(--text);
font: 22px/1.05 var(--display);
letter-spacing: .06em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 6px #0008;
pointer-events: none;
transform: translateX(-50%);
animation: express-repeat-stamp 320ms cubic-bezier(.2, 1.25, .4, 1) both;
}
.app.express .express-repeat-badge.t2 {
border-color: var(--express-sign-yellow);
background: linear-gradient(180deg, var(--express-sign-yellow), #b85c00);
box-shadow: 0 0 0 1px var(--express-sign-deep), 0 0 16px var(--express-gold), 0 4px 14px #000b;
font-size: 25px;
}
.app.express .express-repeat-badge.t3 {
border-color: #fff3b0;
background: linear-gradient(180deg, var(--express-ruby-light), var(--express-ruby) 55%, var(--express-ruby-deep));
box-shadow: 0 0 0 2px var(--express-sign-yellow), 0 0 20px var(--express-ruby-light), 0 4px 16px #000c;
font-size: 28px;
}
@keyframes express-repeat-stamp {
0% { transform: translateX(-50%) scale(.55); opacity: 0; }
65% { transform: translateX(-50%) scale(1.16); opacity: 1; }
100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Source: css/phoenix.css */
:root {
--phoenix-hall: #240718;
--phoenix-glass: #3a091c;
--phoenix-glass-light: #561124;
--phoenix-plate: #633217;
--phoenix-ruby: #b91734;
--phoenix-ember: #ec761e;
--phoenix-gold: #f3cb49;
--phoenix-glow: #cf548b;
--phoenix-veil: #160512eb;
--phoenix-ember-air: #f388285c;
--phoenix-star-light: #ffe7b8;
--phoenix-go-light: #79ed8d;
--phoenix-go: #28a34b;
--phoenix-go-deep: #124b28;
}
.app.phoenix {
--reel-frame: url("../art/kits/phoenix/frame.webp");
--phoenix-rows: var(--reel-rows, 3);
--cell: calc((min(100vw, 520px) - 90px) / 5);
--phoenix-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / var(--phoenix-rows)));
}
.app.phoenix::before {
background: radial-gradient(ellipse at 50% 24%, var(--phoenix-ember-air), transparent 62%), linear-gradient(var(--phoenix-hall), var(--phoenix-glass) 52%, var(--bg-deep));
}
.phoenix .grid { background: linear-gradient(180deg, var(--phoenix-glass), var(--bg-deep)); }
.phoenix .grid.phoenix-expand { animation: phoenix-grid-expand 520ms cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes phoenix-grid-expand { 0% { transform: scaleY(0.86); transform-origin: bottom center; filter: brightness(1.3); } 55% { transform: scaleY(1.03); transform-origin: bottom center; filter: brightness(1.16); } 100% { transform: scaleY(1); transform-origin: bottom center; filter: brightness(1); } }
.phoenix .reel { height: calc(var(--phoenix-cell-height) * var(--phoenix-rows)); background: linear-gradient(var(--phoenix-glass), var(--phoenix-glass-light) 50%, var(--phoenix-glass)); transition: height 280ms cubic-bezier(0.22, 0.85, 0.3, 1); }
.phoenix .cell { height: var(--phoenix-cell-height); }
.phoenix .cell.letter { font-size: calc(var(--phoenix-cell-height) * 0.7); }
.phoenix .sym-img { max-height: calc(var(--phoenix-cell-height) * 0.9); }
.app.phoenix .win-plate { max-width: calc(100% + 36px); letter-spacing: 0.05em; }
.app.phoenix[data-phoenix-rows="4"] .grid { box-shadow: 0 0 14px rgba(236, 118, 30, 0.45), inset 0 0 12px rgba(243, 203, 73, 0.18); }
.app.phoenix[data-phoenix-rows="5"] .grid { box-shadow: 0 0 20px rgba(236, 118, 30, 0.62), inset 0 0 16px rgba(243, 203, 73, 0.28); }
.app.phoenix[data-phoenix-rows="6"] .grid { box-shadow: 0 0 26px rgba(243, 203, 73, 0.78), 0 0 14px rgba(185, 23, 52, 0.65), inset 0 0 20px rgba(255, 224, 112, 0.34); }
.app.phoenix[data-phoenix-rows="5"] .phoenix-gold-tag, .app.phoenix[data-phoenix-rows="5"] .phoenix-gong-tag,
.app.phoenix[data-phoenix-rows="6"] .phoenix-gold-tag, .app.phoenix[data-phoenix-rows="6"] .phoenix-gong-tag { padding: 0 3px; line-height: 1; bottom: 1px; }
.phoenix .cell.is-gold::before {
border-color: var(--phoenix-gold);
background: radial-gradient(ellipse at 50% 35%, rgba(255, 212, 82, 0.5), transparent 76%), linear-gradient(145deg, #683b07, #2b1204);
box-shadow: inset 0 0 0 1px #ffdf72, inset 0 0 10px rgba(255, 200, 56, 0.45);
}
.phoenix .cell.is-gold.gold-wash { animation: phoenix-gold-wash 620ms ease-out; }
@keyframes phoenix-gold-wash { 0% { filter: brightness(1); } 35% { filter: brightness(1.65) saturate(1.45); transform: scale(1.06); } 100% { filter: brightness(1); transform: scale(1); } }
.phoenix .cell.is-regular .sym-img { filter: saturate(0.55) brightness(0.86); }
.phoenix .cell.is-gold .sym-img { filter: saturate(1.2) brightness(1.08) drop-shadow(0 0 4px rgba(255, 212, 82, 0.65)); }
.phoenix-gold-tag, .phoenix-gong-tag {
position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 4px;
font-family: var(--display); font-size: 11px; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
}
.phoenix-gold-tag { background: linear-gradient(180deg, #ffe98a, #c78112); border: 1px solid var(--gold-deep); color: var(--gold-deep); }
.phoenix-gong-tag { background: linear-gradient(180deg, var(--phoenix-ruby), #520918); border: 1px solid var(--gold); color: var(--text); text-shadow: 0 1px 0 #000; }
.phoenix-sign {
flex: 1; min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
gap: 4px; position: relative; margin: 5px 0 22px; container: phoenix-sign / size;
}
.phoenix-sign[hidden] { display: none; }
.phoenix-scene {
position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; border-radius: var(--radius);
background: var(--phoenix-hall); mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent);
}
.phoenix-depth { position: absolute; inset: calc(var(--parallax-bleed) * -1); }
.phoenix-scene-art { position: absolute; inset: calc(var(--parallax-bleed) - var(--parallax-reach)); background: center / cover no-repeat; }
.phoenix-scene-far { background-image: url("../art/kits/phoenix/scene.webp"); }
.phoenix-scene-mid { background-image: url("../art/scene-layers/phoenix/mid.webp"); }
.phoenix-scene-frame { background-image: url("../art/scene-layers/phoenix/frame.webp"); }
.phoenix-scene-glow {
position: absolute; width: 112%; height: 68%; top: -8%; left: -18%;
background: radial-gradient(ellipse, var(--phoenix-ember-air), transparent 68%); opacity: 0.65; animation: phoenix-ember-air 13s ease-in-out infinite alternate;
}
.phoenix-sign.free .phoenix-scene-glow {
opacity: 0.92;
background: radial-gradient(ellipse, rgba(243, 203, 73, 0.54), rgba(185, 23, 52, 0.3) 54%, transparent 74%);
}
.phoenix-sign.free .phoenix-ember { opacity: 0.9; }
.phoenix-sign.free .phoenix-title { filter: drop-shadow(0 0 8px rgba(243, 203, 73, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)); }
.phoenix-sign.free .phoenix-status {
border-color: var(--phoenix-gold);
background: linear-gradient(180deg, #8b1c2a, #3a0815);
color: var(--gold-light);
box-shadow: 0 0 10px rgba(243, 203, 73, 0.45);
}
.app.phoenix[data-phoenix-gold="5"] .phoenix-scene-glow { opacity: 0.82; }
.phoenix-scene-stars {
position: absolute; inset: 0 0 48%; opacity: 0.55; animation: phoenix-star-air 8s ease-in-out infinite alternate;
background:
radial-gradient(circle at 18% 26%, var(--phoenix-star-light) 0 1px, transparent 1.7px),
radial-gradient(circle at 74% 16%, var(--phoenix-star-light) 0 0.9px, transparent 1.5px),
radial-gradient(circle at 86% 42%, var(--phoenix-star-light) 0 1.1px, transparent 1.8px),
radial-gradient(circle at 32% 14%, var(--phoenix-star-light) 0 0.8px, transparent 1.4px);
}
.phoenix-ember {
--loop-tile: url("../art/scene-loops/phoenix-ember-tile.webp");
--loop-tile-w: 192px; --loop-tile-h: 64px; --loop-period: 20s;
--loop-mask: linear-gradient(transparent 34%, #000 48%, #000 72%, transparent 88%);
opacity: 0.58;
}
@keyframes phoenix-ember-air { from { transform: translateX(-3%) rotate(-3deg); opacity: 0.45; } to { transform: translateX(14%) rotate(4deg); opacity: 0.8; } }
@keyframes phoenix-star-air { from { opacity: 0.3; } to { opacity: 0.72; } }
body.scene-motion-paused .phoenix-scene-glow, body.scene-motion-paused .phoenix-scene-stars,
.phoenix-sign[hidden] .phoenix-scene-glow, .phoenix-sign[hidden] .phoenix-scene-stars { animation-play-state: paused; }
.phoenix-title {
font-family: var(--display); font-size: 20px; line-height: 1.05; letter-spacing: 0.05em; text-align: center; text-transform: uppercase;
background: var(--gold-bevel); -webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}
.phoenix-jackpots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.phoenix-jackpot {
position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0;
padding: 10px 4px; border-radius: 6px; border: 2px solid var(--gold);
background: linear-gradient(180deg, var(--phoenix-glass-light), var(--phoenix-hall));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.5); transition: opacity 180ms ease;
}
.phoenix-jackpot.grand { border-color: var(--jp-grand); }
.phoenix-jackpot.major { border-color: var(--jp-major); }
.phoenix-jackpot.minor { border-color: var(--jp-minor); }
.phoenix-jackpot.mini { border-color: var(--jp-mini); }
.phoenix-jackpot.locked { opacity: 0.58; filter: grayscale(0.35); }
.phoenix-jackpot.flare { animation: phoenix-flare 650ms ease-out; }
.phoenix-jackpot.unlock-burst { animation: phoenix-unlock-burst 680ms cubic-bezier(0.2, 0.88, 0.3, 1); }
@keyframes phoenix-flare { 0%, 100% { scale: 1; } 40% { scale: 1.08; } }
@keyframes phoenix-unlock-burst {
0% { transform: scale(0.94); box-shadow: 0 0 0 0 rgba(255, 224, 112, 0.85); }
45% { transform: scale(1.09); box-shadow: 0 0 18px 4px rgba(255, 224, 112, 0.82); filter: brightness(1.35); }
100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.5); filter: brightness(1); }
}
.phoenix-jackpot-name { font-family: var(--display); font-size: 12px; line-height: 1; letter-spacing: 0.04em; text-shadow: var(--jp-outline); display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap; max-width: 100%; }
.phoenix-jackpot.grand .phoenix-jackpot-name { color: var(--jp-grand); }
.phoenix-jackpot.major .phoenix-jackpot-name { color: var(--jp-major); }
.phoenix-jackpot.minor .phoenix-jackpot-name { color: var(--jp-minor); }
.phoenix-jackpot.mini .phoenix-jackpot-name { color: var(--jp-mini); }
.phoenix-jackpot-value {
max-width: 100%; overflow: hidden; font-family: var(--display); font-size: var(--type-readout); line-height: 1.08;
font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap;
}
.phoenix-jackpot.grand .phoenix-jackpot-value { font-size: var(--type-lead); }
.phoenix-jackpot-lock { font-family: var(--display); font-size: 11px; line-height: 1; letter-spacing: 0.04em; color: var(--text); text-shadow: 0 1px 0 #000; }
.phoenix-jackpot-lock:empty { display: none; }
.phoenix-pot {
position: relative; align-self: center; width: 68px; height: 58px; display: flex; align-items: center; justify-content: center; transition: transform 220ms ease;
}
@container phoenix-sign (max-height: 225px) { .phoenix-pot { width: 50px; height: 42px; } .phoenix-jackpot { padding: 7px 4px; } }
.phoenix-pot-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)); }
.phoenix-pot.stage-1 { transform: scale(1.04); }
.phoenix-pot.stage-2 { transform: scale(1.09); }
.phoenix-pot.stage-3 { transform: scale(1.14); }
.phoenix-pot.rattle { animation: phoenix-pot-rattle 420ms ease-in-out; }
.phoenix-pot.near-snap { animation: phoenix-pot-near-snap 520ms ease-in-out; }
.phoenix-pot.snap { animation: phoenix-pot-snap 620ms ease-out; }
@keyframes phoenix-pot-rattle { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 50% { rotate: 7deg; } 75% { rotate: -4deg; } }
@keyframes phoenix-pot-near-snap { 0%, 100% { transform: scale(1.09) rotate(0deg); } 30% { transform: scale(1.19) rotate(-6deg); } 60% { transform: scale(1.15) rotate(5deg); } 80% { transform: scale(1.06) rotate(-2deg); } }
@keyframes phoenix-pot-snap { 0% { scale: 1; } 45% { scale: 1.24; } 75% { scale: 0.92; } 100% { scale: 1.08; } }
.phoenix-gold-bar {
display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 8px; border-radius: 8px;
border: 2px solid var(--gold); background: linear-gradient(180deg, var(--phoenix-plate), var(--phoenix-hall));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 0 var(--gold-deep); color: var(--gold-light); font-family: var(--display); cursor: pointer;
}
.app.phoenix[data-phoenix-gold="3"] .phoenix-gold-bar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 10px rgba(236, 118, 30, 0.42), 0 2px 0 var(--gold-deep); }
.app.phoenix[data-phoenix-gold="4"] .phoenix-gold-bar { border-color: var(--phoenix-gold); box-shadow: inset 0 1px 0 rgba(255, 240, 170, 0.32), 0 0 14px rgba(243, 203, 73, 0.54), 0 2px 0 var(--gold-deep); }
.app.phoenix[data-phoenix-gold="5"] .phoenix-gold-bar {
border-color: #fff2a8; background: linear-gradient(180deg, #8f5012, #43180b);
box-shadow: inset 0 1px 0 rgba(255, 245, 190, 0.45), 0 0 18px rgba(243, 203, 73, 0.72), 0 2px 0 var(--gold-deep);
}
.phoenix-gold-bar.gold-step { animation: phoenix-gold-step 520ms ease-out; }
@keyframes phoenix-gold-step { 0% { filter: brightness(1); } 40% { filter: brightness(1.5); transform: scale(1.04); } 100% { filter: brightness(1); transform: scale(1); } }
.phoenix-gold-bar:disabled { opacity: 0.72; cursor: default; }
.phoenix-gold-count { flex: none; font-family: var(--display); font-size: 13px; line-height: 1; letter-spacing: 0.05em; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.phoenix-gold-icons { display: flex; align-items: center; gap: 3px; }
.phoenix-gold-pip {
width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--gold-deep); background: linear-gradient(180deg, #2d101d, #13040c);
display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.phoenix-gold-pip.on { border-color: var(--phoenix-gold); background: linear-gradient(180deg, #754409, #361704); box-shadow: inset 0 0 5px rgba(255, 214, 72, 0.55); }
.phoenix-gold-pip.gold-pop { animation: phoenix-gold-pop 480ms cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes phoenix-gold-pop { 0% { transform: scale(0.75); filter: brightness(1.8); } 55% { transform: scale(1.22); filter: brightness(1.35); } 100% { transform: scale(1); filter: brightness(1); } }
.phoenix-gold-pip.off { opacity: 0.36; filter: grayscale(0.7); }
.phoenix-gold-pip-img { width: 20px; height: 20px; object-fit: contain; }
.phoenix-status {
padding: 2px 8px; border-radius: 6px; border: 1px solid var(--gold-deep); background: linear-gradient(180deg, var(--phoenix-glass), var(--bg-deep));
font-family: var(--display); font-size: 12px; line-height: 1.15; letter-spacing: 0.04em; text-align: center;
color: var(--text); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}
@media (orientation: portrait) and (max-height: 700px) {
html:not(.landscape) .phoenix-sign:not([hidden]) {
display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: max-content; align-content: end; align-items: center;
}
.phoenix-sign > :is(.phoenix-jackpots, .phoenix-title, .phoenix-status) { grid-column: 1 / -1; }
}
.phoenix-spark {
position: fixed; width: 14px; height: 14px; border-radius: 50%;
background: radial-gradient(circle, #fff8d6 0 32%, var(--phoenix-gold) 55%, transparent 100%); pointer-events: none; z-index: 40;
}
.phoenix-ways-pop { color: var(--gold-light); text-shadow: 0 2px 0 #000, 0 0 14px rgba(243, 203, 73, 0.85); }
@media (prefers-reduced-motion: reduce) {
.phoenix .reel { transition: none; }
.phoenix .grid.phoenix-expand, .phoenix .cell.is-gold.gold-wash, .phoenix-gold-bar.gold-step,
.phoenix-gold-pip.gold-pop, .phoenix-jackpot.unlock-burst, .phoenix-pot.near-snap { animation: none; }
}

/* Source: css/phoenix-features.css */
.phoenix-pot-pick, .phoenix-free-pick, .phoenix-show {
position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center;
padding: max(12px, var(--safe-top)) max(14px, var(--safe-right)) max(12px, var(--safe-bottom)) max(14px, var(--safe-left));
background: radial-gradient(circle at 50% 44%, rgba(185, 23, 52, 0.32), var(--phoenix-veil) 72%), rgba(10, 2, 12, 0.88);
opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms ease, visibility 220ms ease;
}
.phoenix-pot-pick.show, .phoenix-free-pick.show, .phoenix-show.show { opacity: 1; visibility: visible; pointer-events: auto; }
.phoenix-pot-panel, .phoenix-free-panel, .phoenix-show-panel {
position: relative; width: min(100%, 660px); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
padding: 14px 16px; border-radius: 16px; border: 3px solid var(--gold);
background: linear-gradient(180deg, var(--phoenix-glass-light), var(--phoenix-hall) 62%, var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 12px 32px rgba(0, 0, 0, 0.78);
transform: scale(0.92); transition: transform 220ms cubic-bezier(0.2, 0.85, 0.3, 1);
}
.phoenix-pot-pick.show .phoenix-pot-panel, .phoenix-free-pick.show .phoenix-free-panel, .phoenix-show.show .phoenix-show-panel { transform: scale(1); }
.phoenix-pot-panel > h2, .phoenix-free-panel > h2, .phoenix-show-panel > h2 {
margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.05; letter-spacing: 0.05em; text-align: center; text-transform: uppercase;
background: var(--gold-bevel); -webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.phoenix-pot-sub, .phoenix-free-sub, .phoenix-show-sub {
margin: 0; font-family: var(--display); font-size: 14px; line-height: 1.2; letter-spacing: 0.04em; text-align: center; color: var(--text); text-shadow: 0 1px 0 #000;
}
.phoenix-show-sub { font-family: var(--body); font-size: 13px; color: var(--muted); text-shadow: none; }
.phoenix-pot-trackers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.phoenix-pot-track {
display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--gold-deep); background: rgba(12, 3, 14, 0.72);
transition: border-color 180ms ease, box-shadow 180ms ease;
}
.phoenix-pot-track.won { border-color: var(--phoenix-gold); box-shadow: 0 0 12px rgba(243, 203, 73, 0.65); }
.phoenix-pot-track.match-point { border-color: var(--phoenix-gold); background: rgba(96, 18, 30, 0.9); animation: phoenix-match-pulse 900ms ease-in-out infinite; }
.phoenix-pot-track.grand.match-point { border-color: var(--jp-grand); box-shadow: 0 0 16px rgba(255, 86, 118, 0.82); animation-duration: 620ms; }
.phoenix-pot-track.major.match-point { border-color: var(--jp-major); box-shadow: 0 0 14px rgba(255, 198, 66, 0.78); animation-duration: 720ms; }
.phoenix-pot-track.doubled { border-color: var(--phoenix-gold); }
.phoenix-pot-track-name { font-family: var(--display); font-size: 13px; line-height: 1; text-shadow: var(--jp-outline); }
.phoenix-pot-track-value { font-family: var(--display); font-size: 11px; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; }
.phoenix-pot-track.doubled .phoenix-pot-track-value { color: #fff6b8; text-shadow: 0 0 8px rgba(243, 203, 73, 0.85); }
.phoenix-pot-track.grand .phoenix-pot-track-name { color: var(--jp-grand); }
.phoenix-pot-track.major .phoenix-pot-track-name { color: var(--jp-major); }
.phoenix-pot-track.minor .phoenix-pot-track-name { color: var(--jp-minor); }
.phoenix-pot-track.mini .phoenix-pot-track-name { color: var(--jp-mini); }
.phoenix-pot-track-pips { display: flex; gap: 3px; }
.phoenix-pot-pip { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold-deep); background: rgba(255, 255, 255, 0.12); }
.phoenix-pot-pip.on { background: var(--phoenix-gold); border-color: #fff3b0; }
.phoenix-pot-track.match-point .phoenix-pot-pip.on { animation: phoenix-pip-pulse 680ms ease-in-out infinite; }
.phoenix-pot-double {
padding: 2px 10px; border-radius: 6px; border: 1px solid var(--phoenix-gold); background: linear-gradient(180deg, #b86c08, #5c2a04);
font-family: var(--display); font-size: 14px; letter-spacing: 0.06em; color: var(--gold-light); text-shadow: 0 1px 0 #000;
}
.phoenix-pot-double.flare, .phoenix-pot-trackers.double-surge { animation: phoenix-double-surge 560ms ease-out; }
.phoenix-pot-pick.doubled .phoenix-pot-panel {
border-color: #fff0a0;
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 28px rgba(243, 203, 73, 0.45), 0 12px 32px rgba(0, 0, 0, 0.78);
}
.phoenix-pot-board { width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; perspective: 720px; }
.phoenix-pot-board > .float-text { z-index: 70; }
.phoenix-coin {
position: relative; min-height: 54px; aspect-ratio: 1.25 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 4px; border-radius: 10px; border: 2px solid var(--gold); background: linear-gradient(180deg, #6b1d28, #2c0714);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--gold-deep); color: var(--text); font-family: var(--display); cursor: pointer;
}
.phoenix-coin-face { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.phoenix-coin.flipping { animation: phoenix-coin-flip 340ms cubic-bezier(0.22, 0.8, 0.3, 1); transform-style: preserve-3d; }
.phoenix-pot-pick.match-point .phoenix-coin:not(.open):not(.ghost) { animation: phoenix-coin-shimmer 1.1s ease-in-out infinite; }
.phoenix-pot-pick[data-match-tier="grand"] .phoenix-coin:not(.open):not(.ghost),
.phoenix-pot-pick[data-match-tier="major"] .phoenix-coin:not(.open):not(.ghost) { border-color: #ffe88e; animation-duration: 760ms; }
.phoenix-coin.open { background: linear-gradient(180deg, #3c1124, #170411); border-color: var(--gold-deep); cursor: default; }
.phoenix-coin.double-glow {
border-color: #fff2a8; background: linear-gradient(180deg, #9c590a, #411d04);
box-shadow: 0 0 16px rgba(255, 224, 112, 0.82), inset 0 0 10px rgba(255, 232, 140, 0.55);
}
.phoenix-coin.ghost {
opacity: 0.46; filter: saturate(0.55) brightness(0.8);
background: linear-gradient(180deg, #2b0d1b, #12040c); border-color: rgba(212, 165, 58, 0.4);
cursor: default; animation: phoenix-ghost-in 320ms ease-out;
}
.phoenix-coin.match { border-color: var(--phoenix-gold); box-shadow: 0 0 12px rgba(255, 212, 82, 0.7), inset 0 0 8px rgba(255, 212, 82, 0.45); }
.phoenix-coin-art { width: 34px; height: 34px; object-fit: contain; }
.phoenix-coin-label { font-family: var(--display); font-size: 12px; line-height: 1; letter-spacing: 0.04em; text-shadow: var(--jp-outline); }
.phoenix-coin.grand .phoenix-coin-label { color: var(--jp-grand); }
.phoenix-coin.major .phoenix-coin-label { color: var(--jp-major); }
.phoenix-coin.minor .phoenix-coin-label { color: var(--jp-minor); }
.phoenix-coin.mini .phoenix-coin-label { color: var(--jp-mini); }
.phoenix-coin.double .phoenix-coin-label { color: var(--gold-light); }
@keyframes phoenix-coin-flip { 0% { transform: rotateY(180deg) scale(0.92); } 50% { transform: rotateY(90deg) scale(1.08); } 100% { transform: rotateY(0deg) scale(1); } }
@keyframes phoenix-match-pulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.05); filter: brightness(1.26); } }
@keyframes phoenix-pip-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); box-shadow: 0 0 8px #ffe98a; } }
@keyframes phoenix-coin-shimmer { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--gold-deep); } 50% { box-shadow: inset 0 0 10px rgba(255, 224, 112, 0.45), 0 0 14px rgba(255, 212, 82, 0.55), 0 3px 0 var(--gold-deep); } }
@keyframes phoenix-double-surge { 0% { transform: scale(0.94); filter: brightness(1.65); } 50% { transform: scale(1.06); filter: brightness(1.3); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes phoenix-ghost-in { from { opacity: 0.1; transform: scale(0.94); } to { opacity: 0.46; transform: scale(1); } }
.phoenix-free-choices { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phoenix-free-choice {
min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
padding: 8px 6px; border-radius: 12px; border: 2px solid var(--gold); background: linear-gradient(180deg, #69142a, #2c0716);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--gold-deep); color: var(--text); font-family: var(--display); cursor: pointer;
}
.phoenix-free-choice.mystery { border-color: var(--phoenix-ember); background: linear-gradient(180deg, #6e2910, #2c0a12); }
.phoenix-free-choice.picked { border-color: var(--phoenix-gold); box-shadow: 0 0 14px rgba(255, 212, 82, 0.72); }
.phoenix-free-count { font-family: var(--display); font-size: 30px; line-height: 0.95; color: var(--gold-light); text-shadow: 0 2px 0 #000; }
.phoenix-free-label { font-family: var(--display); font-size: 13px; line-height: 1; letter-spacing: 0.04em; color: var(--text); text-shadow: 0 1px 0 #000; }
.phoenix-free-grid { font-family: var(--display); font-size: 11px; line-height: 1.1; letter-spacing: 0.03em; color: var(--gold); text-shadow: 0 1px 0 #000; text-align: center; }
.phoenix-mystery-roulette { width: 100%; max-width: 340px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phoenix-mystery-roulette[hidden] { display: none; }
.phoenix-mystery-slot {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 10px;
border-radius: 10px; border: 2px solid var(--phoenix-ember); background: linear-gradient(180deg, #4b1220, #1f050f);
}
.phoenix-mystery-slot.spinning { border-color: var(--phoenix-gold); animation: phoenix-slot-spin 200ms ease-in-out infinite alternate; }
.phoenix-mystery-slot.locked {
border-color: #fff0a0; background: linear-gradient(180deg, #7e450b, #361306);
box-shadow: 0 0 14px rgba(255, 212, 82, 0.72);
}
.phoenix-mystery-slot-label { font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; color: var(--gold); }
.phoenix-mystery-slot-val { font-family: var(--display); font-size: 20px; line-height: 1.05; color: var(--gold-light); text-shadow: 0 2px 0 #000; }
@keyframes phoenix-slot-spin { from { transform: translateY(-2px); filter: brightness(1.05); } to { transform: translateY(2px); filter: brightness(1.25); } }
.phoenix-show-hero { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }
.phoenix-show-main {
width: 100%; font-family: var(--display); font-size: 40px; line-height: 1; text-align: center; white-space: nowrap;
color: var(--gold-light); text-shadow: 0 2px 0 var(--gold-deep), 0 4px 12px rgba(0, 0, 0, 0.75);
}
.phoenix-show-panel > button {
min-width: 180px; max-width: 240px; min-height: 46px; padding: 8px 24px; border-radius: 14px;
border: 2px solid var(--phoenix-go-light); background: linear-gradient(180deg, var(--phoenix-go-light), var(--phoenix-go) 55%, var(--phoenix-go-deep));
box-shadow: 0 3px 0 #092a14; font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; color: var(--text); text-shadow: 0 1px 0 #000; cursor: pointer;
}
.pt-phoenix-jp.grand .pt-phoenix-jp-name{color:var(--jp-grand);text-shadow:var(--jp-outline)}
.pt-phoenix-jp.major .pt-phoenix-jp-name{color:var(--jp-major);text-shadow:var(--jp-outline)}
.pt-phoenix-jp.minor .pt-phoenix-jp-name{color:var(--jp-minor);text-shadow:var(--jp-outline)}
.pt-phoenix-jp.mini .pt-phoenix-jp-name{color:var(--jp-mini);text-shadow:var(--jp-outline)}
.pt-phoenix-jp.locked{opacity:.58}
.pt-phoenix-gold,.pt-phoenix-current{color:var(--gold-light)}
html.landscape #app.phoenix{--ls-pad:4px;--ls-aspect:1.15;--ls-cell-h:clamp(30px,calc((var(--ls-stage-h) - var(--ls-strip) - var(--ls-pad) - var(--chip-band) - 8px - (var(--ls-rows) - 1) * 3px) / var(--ls-rows)),120px);--phoenix-cell-height:var(--ls-cell-h)}
html.landscape #app>.phoenix-sign:not([hidden]){display:grid;grid-template-columns:[side-l] minmax(0,1fr) [mid] var(--ls-reels-w) [side-r] minmax(0,1fr) [end];grid-template-rows:[strip] var(--ls-strip) repeat(6,minmax(0,1fr));align-items:center;justify-items:center;gap:0 8px;min-height:0;margin:0 calc(-1 * var(--ls-r)) 0 calc(-1 * var(--ls-l));padding:0 var(--ls-r) 4px var(--ls-l);overflow:visible;container-type:normal}
html.landscape #app .phoenix-scene{border-radius:0;mask-image:none;-webkit-mask-image:none}
html.landscape #app .phoenix-jackpots{grid-column:side-l/end;grid-row:strip;align-self:center;width:100%;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.05fr) minmax(0,1fr) minmax(0,1fr);gap:5px}
html.landscape #app .phoenix-jackpot{justify-self:stretch;height:34px;flex-direction:row;gap:4px;padding:0 5px}
html.landscape #app .phoenix-jackpot-lock{display:none}
html.landscape #app .phoenix-jackpot-name{flex:none;font-size:12px}
html.landscape #app .phoenix-jackpot-value{flex:0 1 auto;font-size:var(--type-readout)}
html.landscape #app .phoenix-jackpot.grand .phoenix-jackpot-value{font-size:1.1rem}
html.landscape #app .phoenix-title{grid-column:side-l;grid-row:2/span 2;font-size:18px;white-space:normal}
html.landscape #app .phoenix-pot{grid-column:side-l;grid-row:4/span 4;width:82px;height:76px}
html.landscape #app .phoenix-gold-bar{grid-column:side-r;grid-row:2/span 3;justify-self:stretch;flex-direction:column;gap:4px;padding:5px 6px}
html.landscape #app .phoenix-gold-pip{width:20px;height:20px}
html.landscape #app .phoenix-gold-pip-img{width:17px;height:17px}
html.landscape #app .phoenix-status{grid-column:side-r;grid-row:5/span 3;justify-self:stretch;white-space:pre-line;text-overflow:clip;text-wrap:balance}
html.landscape .phoenix-pot-panel,html.landscape .phoenix-free-panel,html.landscape .phoenix-show-panel{padding:8px 14px;gap:5px}
html.landscape .phoenix-pot-panel>h2,html.landscape .phoenix-free-panel>h2,html.landscape .phoenix-show-panel>h2{font-size:22px}
html.landscape .phoenix-pot-board{max-width:520px;gap:6px}
html.landscape .phoenix-coin{aspect-ratio:auto;min-height:46px;height:56px;padding:2px 4px}
html.landscape .phoenix-coin-art{width:28px;height:28px}
html.landscape .phoenix-free-pick.roulette .phoenix-free-choice{min-height:64px;padding:4px 6px}
@media (max-width:560px){.phoenix-free-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.phoenix-free-choice.mystery{grid-column:1/-1;min-height:54px;flex-direction:row;gap:10px}}
@media (prefers-reduced-motion:reduce){
.phoenix-coin.flipping,.phoenix-coin.ghost,.phoenix-pot-track.match-point,.phoenix-pot-track.match-point .phoenix-pot-pip.on,
.phoenix-pot-pick.match-point .phoenix-coin:not(.open):not(.ghost),.phoenix-pot-double.flare,.phoenix-pot-trackers.double-surge,
.phoenix-mystery-slot.spinning{animation:none}
}

/* Source: css/ascent.css */
.app.ascent, .ascent-show, .pt-ascent, .pt-ascent-gates, .pt-ascent-jackpots, .paytable .ascent-orb, .paytable .ascent-pyramid {
--ascent-night: #070a2c;
--ascent-lapis: #15237a;
--ascent-lapis-light: #2c44b8;
--ascent-lapis-deep: #060a24;
--ascent-turquoise: #2fd8d0;
--ascent-turquoise-deep: #0b5a66;
--ascent-ruby: #e0234e;
--ascent-ruby-deep: #5e0a20;
--ascent-sand: #c99a4e;
--ascent-sand-light: #ecc983;
--ascent-sand-deep: #4a3212;
--ascent-stone: #3a2a14;
--ascent-stone-deep: #1a1206;
--ascent-veil: #05071ceb;
--ascent-go-light: #79ed8d;
--ascent-go: #28a34b;
--ascent-go-deep: #124b28;
}

.app.ascent::before {
background:
linear-gradient(#070a2c99, transparent 18%, #05071c66 52%, var(--ascent-night) 78%, var(--bg-deep)),
radial-gradient(ellipse 70% 30% at 30% 14%, #ffb43a33, transparent 70%),
linear-gradient(var(--ascent-night), var(--ascent-lapis-deep) 48%, var(--bg-deep));
}

.app.ascent {
--reel-frame: url("../art/kits/pharaoh/frame.webp");
--cell: calc((min(100vw, 520px) - 32px - 34px - 24px) / 5);
--ascent-cell-h: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / 3));
}
.app.ascent.chamber {
--ascent-cell-h: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 330px) / 6));
}
.app.ascent .grid { --reel-rows: 3; }
.app.ascent.chamber .grid { --reel-rows: 6; }
.ascent .reel {
height: calc(var(--ascent-cell-h) * var(--reel-rows));
background:
linear-gradient(180deg, #0009, transparent 22%, #ffffff0d 50%, transparent 78%, #0009),
radial-gradient(ellipse at 50% 50%, var(--ascent-lapis), var(--ascent-lapis-deep) 82%);
}
.ascent .cell { height: var(--ascent-cell-h); }
.ascent .sym-img { max-height: var(--ascent-cell-h); }
.app.ascent.ascent-grow .reel, .app.ascent.ascent-grow .cell { transition: height .7s cubic-bezier(.3, .8, .3, 1); }

.cell.as-queen { --glow: #ffd86acc; }
.cell.as-sphinx { --glow: #2fd8d099; }
.cell.as-beetle { --glow: #4a8aff99; }
.cell.as-ankh { --glow: #ffb43a80; }
.cell.as-eye { --glow: #2fd8d080; }
.cell.as-vase { --glow: #b46aff80; }
.cell.as-wild { --glow: #ffe38acc; }
.cell.ascent-pyramid { --glow: #ffb43a; }

.ascent-tag {
position: absolute;
left: 50%;
bottom: 3%;
transform: translateX(-50%);
padding: 0 .3em;
border-radius: 4px;
background: linear-gradient(180deg, var(--ascent-lapis-light), var(--ascent-lapis-deep));
box-shadow: 0 0 0 1.5px var(--gold-light);
color: var(--gold-light);
font: max(11px, calc(var(--ascent-cell-h, var(--cell)) * .16))/1.15 var(--display);
letter-spacing: .05em;
white-space: nowrap;
}

.cell.ascent-empty {
background: radial-gradient(circle at 50% 50%, #ffffff0a, transparent 70%);
}
.cell.ascent-locked {
background:
repeating-linear-gradient(90deg, transparent 0 calc(50% - 1px), #0006 calc(50% - 1px) 50%, transparent 50%),
linear-gradient(180deg, transparent calc(50% - 1px), #0006 calc(50% - 1px) 50%, transparent 50%),
linear-gradient(160deg, var(--ascent-stone), var(--ascent-stone-deep));
}

.ascent-orb { --orb-glow: transparent; }
.ascent-orb.kind-collector { --orb-glow: #ff3a5ab3; }
.ascent-orb.kind-boost { --orb-glow: #2fd8d0b3; }
.ascent-orb.kind-jackpot { --orb-glow: #ffd86a80; }
.cell.ascent-orb::before {
content: "";
position: absolute;
inset: 4%;
border-radius: 50%;
background: radial-gradient(circle, var(--orb-glow), transparent 70%);
pointer-events: none;
}
.ascent-orb .sym-face { position: relative; }
.ascent-orb-art {
position: absolute;
top: 50%;
left: 50%;
width: min(72%, calc(var(--ascent-cell-h, var(--cell)) * .72));
aspect-ratio: 1;
transform: translate(-50%, -54%);
border-radius: 50%;
background: center / cover no-repeat;
pointer-events: none;
}
.kind-collector .ascent-orb-art {
background-image: url("../art/kits/pharaoh/premium1-star-queen.webp");
background-size: 120%;
background-position: 50% 30%;
box-shadow: 0 0 0 2px var(--ascent-ruby), 0 0 8px var(--ascent-ruby);
}
.kind-boost .ascent-orb-art {
background-image: url("../art/kits/pharaoh/upgrade-star-seal.webp");
background-size: 92%;
border-radius: 0;
box-shadow: none;
}
.ascent-value {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--gold-light);
font: max(11px, calc(var(--ascent-cell-h, var(--cell)) * .3))/1 var(--display);
letter-spacing: .02em;
white-space: nowrap;
-webkit-text-stroke: 2px var(--bg-deep);
paint-order: stroke fill;
pointer-events: none;
}
.ascent-value.jp { font-size: max(11px, calc(var(--ascent-cell-h, var(--cell)) * .24)); }
.ascent-value.jp.mini { color: var(--jp-mini); }
.ascent-value.jp.minor { color: var(--jp-minor); }
.ascent-value.jp.major { color: var(--jp-major); }
.kind-collector .ascent-value, .kind-boost .ascent-value {
inset: auto 4% 0;
padding: 1px 2px;
border-radius: 6px;
font-size: max(11px, calc(var(--ascent-cell-h, var(--cell)) * .22));
-webkit-text-stroke: 0;
text-shadow: 0 1px 0 #000;
}
.kind-collector .ascent-value { background: linear-gradient(var(--ascent-ruby), var(--ascent-ruby-deep)); box-shadow: 0 0 0 1px var(--gold-light); }
.kind-boost .ascent-value { background: linear-gradient(var(--ascent-turquoise-deep), var(--ascent-lapis-deep)); box-shadow: 0 0 0 1px var(--ascent-turquoise); }
.ascent-orb-decor { opacity: .55; }

.app.ascent .grid.hold-intro .cell:not(.ascent-orb) { opacity: .35; transition: opacity .3s; }
.app.ascent .cell.ascent-orb.locked { box-shadow: inset 0 0 0 1px #ffe38a66; }
.app.ascent .cell.ascent-orb.collecting { box-shadow: inset 0 0 0 3px var(--ascent-ruby), inset 0 0 14px var(--ascent-ruby); }
.app.ascent .cell.ascent-orb.collected .sym-face { filter: brightness(.55) saturate(.6); }
.app.ascent .cell.ascent-orb.absorbed .ascent-value { animation: ascent-absorb .4s ease-out; }
.app.ascent .cell.ascent-orb.charged, .app.ascent .cell.ascent-orb.boosted { animation: ascent-charge .5s ease-out; }
.app.ascent .cell.ascent-orb.boosting { animation: ascent-charge .7s ease-out; box-shadow: inset 0 0 0 3px var(--ascent-turquoise); }
@keyframes ascent-absorb { 40% { transform: scale(1.25); color: #fff; } }
@keyframes ascent-charge { 35% { transform: scale(1.14); filter: brightness(1.5); } }
.ascent-beam.boost { background: linear-gradient(180deg, #fff, var(--ascent-turquoise) 30%, var(--ascent-lapis-light)); box-shadow: 0 0 12px var(--ascent-turquoise); }
.float-text.ascent-pop {
color: var(--ascent-turquoise);
font: 16px/1 var(--display);
-webkit-text-stroke: 2px var(--bg-deep);
paint-order: stroke fill;
}
.float-text.free-pop.ascent-open { color: var(--ascent-sand-light); }

.ascent-gates { display: none; }
.app.ascent.chamber .ascent-gates {
display: block;
position: absolute;
inset: 0;
z-index: 4;
pointer-events: none;
}
.ascent-gate {
position: absolute;
left: 6px;
right: 6px;
top: calc(6px + var(--gate-row) * var(--ascent-cell-h));
height: var(--ascent-cell-h);
display: flex;
align-items: center;
gap: 8px;
padding: 0 10px;
color: var(--ascent-sand-light);
background:
linear-gradient(180deg, #ffe38a33, transparent 18%, transparent 82%, #0008),
linear-gradient(160deg, var(--ascent-stone), var(--ascent-stone-deep));
border-top: 2px solid var(--ascent-sand);
opacity: .82;
transition: opacity .3s, visibility .3s;
}
.ascent-gate.next { opacity: 1; border-top-color: var(--gold-light); }
.ascent-gate.met { box-shadow: inset 0 0 14px var(--gold); }
.ascent-gate.open { opacity: 0; visibility: hidden; }
.ascent-gate.opening { visibility: visible; animation: ascent-gate-open var(--ascent-unlock, 1.1s) ease-in both; }
@keyframes ascent-gate-open {
0% { opacity: 1; filter: brightness(1); }
30% { opacity: 1; filter: brightness(1.8); box-shadow: inset 0 0 24px var(--gold-light); }
100% { opacity: 0; translate: 0 -40%; filter: brightness(1.4); }
}
.ascent-gate-need { flex: none; display: flex; align-items: center; gap: 4px; }
.ascent-gate-mark {
width: min(24px, calc(var(--ascent-cell-h) * .62));
aspect-ratio: 1;
background: url("../art/kits/pharaoh/bonus-sun-disc.webp") center / contain no-repeat;
}
.ascent-gate-count { font: max(13px, calc(var(--ascent-cell-h) * .4))/1 var(--display); color: var(--gold-light); text-shadow: 0 1px 0 #000; }
.ascent-gate-bar {
flex: 1;
height: 6px;
border-radius: 3px;
overflow: hidden;
background: #0009;
box-shadow: 0 0 0 1px var(--ascent-sand-deep);
}
.ascent-gate-fill {
display: block;
height: 100%;
transform-origin: left;
background: linear-gradient(90deg, var(--ascent-sand), var(--gold-light));
transition: transform .3s;
}
.ascent-gate-progress { flex: none; min-width: 3.4em; text-align: right; font: 13px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .03em; text-shadow: 0 1px 0 #000; }

.ascent-sign {
flex: 1;
min-height: 134px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: stretch;
gap: 4px;
position: relative;
margin: 5px 0 22px;
container: ascent-sign / size;
}
.app.ascent.chamber .ascent-sign { min-height: 72px; }
.ascent-sign[hidden] { display: none; }
.ascent-scene {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
border-radius: var(--radius);
background: var(--ascent-night);
mask-image: linear-gradient(#000 80%, transparent);
-webkit-mask-image: linear-gradient(#000 80%, transparent);
}
.ascent-scene > [data-parallax] { position: absolute; inset: calc(-1 * var(--parallax-bleed)); }
.ascent-scene::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(transparent 50%, #05071c40 74%, #05071ca6);
}
.ascent-scene-art { position: absolute; inset: 0; background: 50% 62% / cover no-repeat; }
.ascent-scene-art.far { background-image: url("../art/kits/pharaoh/scene.webp"); }
.ascent-scene-art.mid { background-image: url("../art/scene-layers/pharaoh/mid.webp"); }
.ascent-scene-art.frame { background-image: url("../art/scene-layers/pharaoh/frame.webp"); }
.ascent-scene-sun {
position: absolute;
width: 70%;
height: 50%;
left: 2%;
top: 14%;
background: radial-gradient(ellipse, #ffd86a40, transparent 68%);
animation: ascent-sun 12s ease-in-out infinite alternate;
}
.ascent-obelisk {
position: absolute;
bottom: calc(var(--parallax-bleed) + 2%);
width: 22%;
aspect-ratio: 1;
background: url("../art/kits/pharaoh/decor-obelisk.webp") center bottom / contain no-repeat;
filter: drop-shadow(0 4px 6px #000a) brightness(.85);
}
.ascent-obelisk.left { left: calc(var(--parallax-bleed) - 6%); }
.ascent-obelisk.right { right: calc(var(--parallax-bleed) - 6%); }
.ascent-heat {
--loop-tile: url("../art/scene-loops/ascent-sand-tile.webp");
--loop-tile-w: 192px;
--loop-tile-h: 64px;
--loop-period: 24s;
--loop-mask: url("../art/scene-layers/pharaoh/mid.webp") 50% 62% / cover no-repeat;
opacity: .3;
}
.ascent-scene-stars {
position: absolute;
inset: 0 0 55%;
background:
radial-gradient(circle at 14% 26%, #fff2cd 0 1px, transparent 1.6px),
radial-gradient(circle at 38% 10%, #fff2cd 0 .8px, transparent 1.4px),
radial-gradient(circle at 62% 30%, #fff2cd 0 1px, transparent 1.7px),
radial-gradient(circle at 78% 12%, #fff2cd 0 1.1px, transparent 1.8px),
radial-gradient(circle at 90% 36%, #fff2cd 0 .8px, transparent 1.4px);
opacity: .6;
animation: ascent-stars 7s ease-in-out infinite alternate;
}
.ascent-scene-dust {
position: absolute;
inset: 52% -10% 10%;
background: radial-gradient(ellipse 40% 30% at 30% 60%, #ecc98326, transparent 70%),
radial-gradient(ellipse 35% 25% at 75% 50%, #ecc9831f, transparent 70%);
animation: ascent-dust 16s ease-in-out infinite alternate;
}
@keyframes ascent-stars { from { opacity: .3; } to { opacity: .85; } }
@keyframes ascent-dust { from { transform: translateX(-5%); opacity: .5; } to { transform: translateX(5%); opacity: 1; } }
@keyframes ascent-sun { from { transform: translateX(-4%) scale(.95); opacity: .5; } to { transform: translateX(5%) scale(1.06); opacity: .95; } }
body.scene-motion-paused :is(.ascent-scene-sun, .ascent-scene-stars, .ascent-scene-dust),
.ascent-sign[hidden] :is(.ascent-scene-sun, .ascent-scene-stars, .ascent-scene-dust) { animation-play-state: paused; }

.ascent-title { flex: none; font: 22px/1.05 var(--display); letter-spacing: .06em; text-align: center; }
.ascent-title, .ascent-show-panel h2, .ascent-show-main {
color: transparent;
background: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px #000b);
}
.ascent-status { flex: none; text-align: center; color: var(--text); font: 11px/1.2 var(--display); letter-spacing: .03em; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ascent-meter {
flex: none;
display: flex;
justify-content: center;
align-items: baseline;
gap: 10px;
padding: 3px 10px;
border: 2px solid var(--ascent-sand);
border-radius: 8px;
background: linear-gradient(var(--ascent-lapis), var(--bg-deep));
font-family: var(--display);
white-space: nowrap;
overflow: hidden;
}
.ascent-meter-name { color: var(--ascent-turquoise); font-size: 14px; letter-spacing: .05em; text-shadow: 0 1px 0 #000; }
.ascent-meter-name.reset { animation: ascent-reset .6s ease-out; }
@keyframes ascent-reset { 40% { transform: scale(1.18); color: #fff; } }
.ascent-meter-value { color: var(--gold-light); font-size: 14px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000; overflow: hidden; text-overflow: ellipsis; }

.ascent-jackpots { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ascent-jackpot {
position: relative;
min-width: 0;
padding: 4px 6px;
text-align: center;
border: 2px solid var(--gold);
border-radius: 8px;
background: linear-gradient(var(--ascent-lapis-light), var(--bg-deep));
box-shadow: inset 0 1px 0 #fff3, 0 2px 0 var(--gold-deep);
}
.ascent-jackpot.grand { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 10px; border-width: 3px; border-color: var(--gold-light); }
.ascent-jackpot-name { display: block; font: 12px/1.05 var(--display); letter-spacing: .05em; text-shadow: 0 1px 0 #000; }
.ascent-jackpot.grand .ascent-jackpot-name { color: var(--cabinet-grand-ink); font-size: 13px; }
.ascent-jackpot.major .ascent-jackpot-name { color: var(--jp-major); }
.ascent-jackpot.minor .ascent-jackpot-name { color: var(--cabinet-minor-ink); }
.ascent-jackpot.mini .ascent-jackpot-name { color: var(--jp-mini); }
.ascent-jackpot-value { display: block; font: 15px/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; }
.ascent-jackpot.grand .ascent-jackpot-value { min-width: 0; font-size: var(--type-lead); }
.ascent-jackpot::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 14px 4px var(--gold-light); opacity: 0; pointer-events: none; }
.ascent-jackpot.flare { animation: ascent-flare 1s ease-out; }
.ascent-jackpot.flare::after { animation: ascent-flare-glow 1s ease-out; }
@keyframes ascent-flare { 30% { transform: scale(1.08); } }
@keyframes ascent-flare-glow { 30% { opacity: 1; } }

@container ascent-sign (max-height: 211px) {
.ascent-jackpots { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.ascent-jackpot.grand { grid-column: auto; display: block; padding: 4px 6px; border-width: 2px; }
.ascent-jackpot.grand .ascent-jackpot-name { font-size: 12px; }
.ascent-jackpot.grand .ascent-jackpot-value { font-size: var(--type-readout); }
}
@container ascent-sign (max-height: 170px) {
.ascent-title { display: none; }
}
@container ascent-sign (max-height: 110px) {
.ascent-status { display: none; }
.ascent-jackpot { padding: 2px 4px; }
.ascent-jackpot-name { display: inline; margin-right: 4px; font-size: 11px; }
.ascent-jackpot-value, .ascent-jackpot.grand .ascent-jackpot-value { font-size: 13px; }
.ascent-meter { padding: 1px 8px; }
}

.app.ascent .win-plate {
bottom: -17px;
padding-block: 1px 0;
}

.ascent-show {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: max(20px, var(--safe-top)) 16px max(20px, var(--safe-bottom));
z-index: 25;
background: var(--ascent-veil);
}
.ascent-show.show { display: flex; }
.ascent-show-panel {
width: min(100%, 380px);
max-height: 100%;
overflow-y: auto;
padding: 20px 12px;
text-align: center;
color: var(--text);
animation: ascent-panel-in .35s ease-out both;
}
@keyframes ascent-panel-in { from { transform: scale(.88); opacity: 0; } }
.ascent-show-panel h2 { margin: 0 0 6px; font: 30px/1.1 var(--display); letter-spacing: .04em; }
.ascent-show-hero { display: block; width: 120px; height: 120px; margin: 4px auto 8px; object-fit: contain; filter: drop-shadow(0 0 14px #ffd86a99); }
.ascent-show-main { font: 40px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ascent-show-sub { margin: 12px auto 12px; max-width: 300px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.ascent-show-jackpots:empty { display: none; }
.ascent-show-jackpots { margin: 0 auto 14px; max-width: 300px; }
.ascent-show-panel button {
display: block;
width: min(100%, 240px);
min-height: 56px;
margin: 0 auto 4px;
padding: 8px 20px;
color: var(--text);
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(var(--ascent-go-light), var(--ascent-go));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--ascent-go-deep), inset 0 1px 0 #fff6;
font: 20px/1 var(--display);
letter-spacing: .08em;
text-shadow: 0 1px 0 #000;
}

.pt-ascent-gates .pt-row, .pt-ascent-jackpots .pt-row { grid-template-columns: 1fr 1fr 1fr; }
.pt-ascent-jackpots .pt-row { grid-template-columns: 1fr 1.4fr; }
.pt-ascent-jackpot.grand .pt-ascent-jackpot-name { color: var(--jp-grand); }
.pt-ascent-jackpot.major .pt-ascent-jackpot-name { color: var(--jp-major); }
.pt-ascent-jackpot.minor .pt-ascent-jackpot-name { color: var(--jp-minor); }
.pt-ascent-jackpot.mini .pt-ascent-jackpot-name { color: var(--jp-mini); }
.paytable .pt-scatter-faces .cell.ascent-orb { --cell: 64px; --ascent-cell-h: 64px; width: 64px; height: 64px; }
.paytable .pt-scatter-faces .cell.ascent-orb .sym-img { max-height: 64px; }

@media (max-height: 700px) {
.ascent-show-panel h2 { font-size: 26px; }
.ascent-show-hero { width: 92px; height: 92px; }
.ascent-show-main { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
.ascent-scene-sun, .ascent-scene-stars, .ascent-scene-dust, .ascent-jackpot.flare, .ascent-jackpot.flare::after, .ascent-show-panel,
.ascent-gate.opening, .ascent-meter-name.reset,
.app.ascent .cell.ascent-orb.absorbed .ascent-value, .app.ascent .cell.ascent-orb.charged,
.app.ascent .cell.ascent-orb.boosted, .app.ascent .cell.ascent-orb.boosting { animation: none; }
.app.ascent.ascent-grow .reel, .app.ascent.ascent-grow .cell, .ascent-gate, .ascent-gate-fill { transition: none; }
}

.app.ascent {
--machine-accent: #ffe38a;
--machine-accent-2: #2fd8d0;
}

/* Source: css/ascent-chamber.css */
.ascent-gate.opening { transition: none; }

.ascent-gate.near { border-top-color: var(--gold-light); box-shadow: inset 0 0 14px var(--gold); }
.ascent-gate.near .ascent-gate-progress { color: #fff; transform-origin: right center; }
.ascent-gate.near::after {
content: "";
position: absolute;
inset: 0;
box-shadow: inset 0 0 20px var(--gold-light);
opacity: 0;
pointer-events: none;
}

.app.ascent .cell.ascent-orb.locking { box-shadow: inset 0 0 0 2px var(--gold-light); }

@media (prefers-reduced-motion: no-preference) {
.ascent-gate.near::after { animation: ascent-gate-near 1s ease-in-out infinite; animation-play-state: var(--idle-play, running); }
.ascent-gate.near .ascent-gate-progress { animation: ascent-near-text 1s ease-in-out infinite; animation-play-state: var(--idle-play, running); }

.ascent-gate.opening::before, .ascent-gate.opening::after {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 150%;
box-shadow: none;
pointer-events: none;
opacity: 0;
animation: ascent-dust-burst .8s ease-out both;
}
.ascent-gate.opening::before {
background:
radial-gradient(circle at 10% 60%, var(--ascent-sand-light) 0 3px, transparent 4px),
radial-gradient(circle at 30% 40%, var(--ascent-sand) 0 4px, transparent 5px),
radial-gradient(circle at 50% 65%, var(--ascent-sand-light) 0 2px, transparent 3px),
radial-gradient(circle at 70% 45%, var(--ascent-sand) 0 3px, transparent 4px),
radial-gradient(circle at 90% 60%, var(--ascent-sand-light) 0 4px, transparent 5px);
}
.ascent-gate.opening::after {
animation-delay: .08s;
background:
radial-gradient(circle at 20% 50%, var(--ascent-sand) 0 2px, transparent 3px),
radial-gradient(circle at 40% 70%, var(--ascent-sand-light) 0 3px, transparent 4px),
radial-gradient(circle at 60% 40%, var(--ascent-sand) 0 4px, transparent 5px),
radial-gradient(circle at 80% 65%, var(--ascent-sand-light) 0 2px, transparent 3px);
}

.app.ascent .grid.ascent-shake { animation: ascent-shake .45s linear; }

.app.ascent .cell.kind-collector.impact::after, .app.ascent .cell.kind-boost.impact::after {
content: "";
position: absolute;
inset: 6%;
border-radius: 50%;
border: 3px solid var(--ascent-ruby);
box-shadow: 0 0 12px var(--ascent-ruby), inset 0 0 10px var(--ascent-ruby);
pointer-events: none;
animation: ascent-impact-ring .6s ease-out both;
}
.app.ascent .cell.kind-boost.impact::after {
border-color: var(--ascent-turquoise);
box-shadow: 0 0 12px var(--ascent-turquoise), inset 0 0 10px var(--ascent-turquoise);
}

.app.ascent .cell.ascent-orb.doubled { animation: ascent-charge-big .8s ease-out; }
.app.ascent .cell.ascent-orb.locking { animation: ascent-lock .4s ease-out; }
}

.float-text.ascent-pop.big { font-size: 24px; color: #fff; text-shadow: 0 0 10px var(--ascent-turquoise); }

@keyframes ascent-gate-near { 50% { opacity: 1; } }
@keyframes ascent-near-text { 50% { scale: 1.14; } }
@keyframes ascent-dust-burst {
0% { opacity: 0; translate: 0 -10%; scale: .6 1; }
20% { opacity: 1; }
100% { opacity: 0; translate: 0 40%; scale: 1.25 1.1; }
}
@keyframes ascent-shake {
0%, 100% { translate: 0 0; }
15% { translate: var(--ascent-shake) calc(var(--ascent-shake) * -.6); }
35% { translate: calc(var(--ascent-shake) * -1) calc(var(--ascent-shake) * .5); }
55% { translate: calc(var(--ascent-shake) * .6) calc(var(--ascent-shake) * -.3); }
75% { translate: calc(var(--ascent-shake) * -.4) calc(var(--ascent-shake) * .2); }
}
@keyframes ascent-impact-ring {
0% { opacity: 1; scale: .55; }
100% { opacity: 0; scale: 1.5; }
}
@keyframes ascent-charge-big { 30% { transform: scale(1.3); filter: brightness(1.9); } }
@keyframes ascent-lock { 40% { transform: scale(1.16); filter: brightness(1.6); } }

/* Source: css/ascent-sign.css */
#ascent-sign[data-mode="free"] {
border-radius: var(--radius);
box-shadow: 0 0 20px 3px #ffa72877, inset 0 0 26px #ffc45a4d;
}
#ascent-sign[data-mode="free"]::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: var(--radius);
background: radial-gradient(ellipse 85% 70% at 50% 100%, #ff9a2e8c, transparent 72%),
radial-gradient(ellipse 40% 50% at 12% 30%, #ffd86a59, transparent 70%),
radial-gradient(ellipse 40% 50% at 88% 30%, #ffd86a59, transparent 70%);
pointer-events: none;
animation: ascent-torch 3.4s ease-in-out infinite alternate;
}
@keyframes ascent-torch { from { opacity: .55; } to { opacity: 1; } }
body.scene-motion-paused #ascent-sign[data-mode="free"]::after { animation-play-state: paused; }

.app.ascent.ascent-free::before {
background:
linear-gradient(#070a2c99, transparent 18%, #05071c66 52%, var(--ascent-night) 78%, var(--bg-deep)),
radial-gradient(ellipse 80% 38% at 50% 12%, #ffa7288c, transparent 72%),
linear-gradient(var(--ascent-night), #2a1606 48%, var(--bg-deep));
}
.app.ascent-free .grid {
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px 2px var(--gold), 0 0 26px 6px #ff9a2e99, inset 0 0 18px rgba(0, 0, 0, 0.8);
}
.app.ascent-free .ascent-jackpot { border-color: var(--gold-light); box-shadow: inset 0 1px 0 #fff3, 0 2px 0 var(--gold-deep), 0 0 8px #ffa72873; }

#ascent-sign[data-mode="free"] .ascent-status {
align-self: center;
max-width: 100%;
padding: 3px 16px;
border: 2px solid var(--gold-light);
border-radius: var(--radius);
background: linear-gradient(#a85a0cf2, #5e2d06f2);
color: var(--gold-light);
font-size: 14px;
letter-spacing: .08em;
text-shadow: 0 1px 0 #000, 0 0 8px #ffd45a99;
box-shadow: 0 0 12px 1px #ffa728b3, inset 0 1px 0 #fff6;
}
@container ascent-sign (max-height: 110px) {
#ascent-sign[data-mode="free"] .ascent-status { display: block; }
}

@media (prefers-reduced-motion: reduce) {
#ascent-sign[data-mode="free"]::after { animation: none; opacity: .8; }
}

.ascent-jackpot.grand.double {
box-shadow: inset 0 1px 0 #fff3, 0 2px 0 var(--gold-deep), 0 0 12px 1px #ffd45a8c;
}
.ascent-jackpot-chip {
position: absolute;
top: -9px;
right: -3px;
padding: 1px 6px;
border: 1.5px solid var(--gold-light);
border-radius: var(--radius);
background: linear-gradient(#e0a01a, #8a5206);
color: #fff;
font: 11px/1.2 var(--display);
letter-spacing: .04em;
text-shadow: 0 1px 0 #000;
pointer-events: none;
}

/* Source: css/mischief.css */
:root {
--mischief-hall: #0a201b;
--mischief-glass: #103229;
--mischief-glass-light: #194d3d;
--mischief-plate: #2b1d4a;
--mischief-emerald: #1ea866;
--mischief-violet: #6d2ca8;
--mischief-gold: #f5ce52;
--mischief-veil: #081814eb;
--mischief-glow-air: #2fd47a52;
--mischief-violet-air: #9d4edd44;
--mischief-star-light: #e5ffea;
--mischief-go-light: #79ed8d;
--mischief-go: #28a34b;
--mischief-go-deep: #124b28;
}
.app.mischief {
--reel-frame: url("../art/kits/clover/frame.webp");
}
html:not(.landscape) #app.mischief {
--cell: calc((min(100vw, 520px) - 90px) / 5);
--mischief-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - 410px) / 3));
}
.app.mischief::before {
background: radial-gradient(ellipse at 50% 24%, var(--mischief-glow-air), transparent 62%),
linear-gradient(var(--mischief-hall), var(--mischief-glass) 52%, var(--bg-deep));
}
.mischief .grid {
background: linear-gradient(180deg, var(--mischief-glass), var(--bg-deep));
}
.mischief .reel {
height: calc(var(--mischief-cell-height) * 3);
background: linear-gradient(var(--mischief-glass), var(--mischief-glass-light) 50%, var(--mischief-glass));
}
.mischief .cell { height: var(--mischief-cell-height); }
.mischief .cell.letter { font-size: calc(var(--mischief-cell-height) * 0.7); }
.mischief .sym-img { max-height: calc(var(--mischief-cell-height) * 0.9); }
.app.mischief .win-plate { max-width: calc(100% + 36px); letter-spacing: 0.05em; }
.mischief .cell.tossed-wild::before {
border-color: var(--mischief-gold);
background: radial-gradient(ellipse at 50% 40%, rgba(47, 212, 122, 0.55), rgba(109, 44, 168, 0.4) 72%), linear-gradient(145deg, #165e40, #231040);
box-shadow: inset 0 0 0 1px #ffdf72, inset 0 0 12px rgba(78, 240, 154, 0.55);
}
.mischief-scatter-tag {
position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 4px;
font-family: var(--display); font-size: 11px; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase;
white-space: nowrap; pointer-events: none;
background: linear-gradient(180deg, var(--mischief-violet), #35105a); border: 1px solid var(--gold);
color: var(--text); text-shadow: 0 1px 0 #000;
}
.mischief-sign {
flex: 1; min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
gap: 4px; position: relative; margin: 5px 0 22px; container: mischief-sign / size;
}
.mischief-sign[hidden] { display: none; }
.mischief-scene {
position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; border-radius: var(--radius);
background: var(--mischief-hall); mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent);
}
.mischief-depth { position: absolute; inset: calc(var(--parallax-bleed) * -1); }
.mischief-depth[data-parallax="mid"] {
--win-mask: url("../art/scene-layers/clover/mid.webp") center / cover no-repeat;
}
.mischief-scene-art { position: absolute; inset: calc(var(--parallax-bleed) - var(--parallax-reach)); background: center / cover no-repeat; }
.mischief-scene-far { background-image: url("../art/kits/clover/scene.webp"); }
.mischief-scene-mid { background-image: url("../art/scene-layers/clover/mid.webp"); }
.mischief-scene-frame { background-image: url("../art/scene-layers/clover/frame.webp"); }
.mischief-scene-glow {
position: absolute; width: 112%; height: 68%; top: -8%; left: -18%;
background: radial-gradient(ellipse, var(--mischief-glow-air), var(--mischief-violet-air) 46%, transparent 72%);
opacity: 0.65; animation: mischief-glow-drift 13s ease-in-out infinite alternate;
}
.mischief-scene-stars {
position: absolute; inset: 0 0 46%; opacity: 0.58; animation: mischief-star-twinkle 8s ease-in-out infinite alternate;
background:
radial-gradient(circle at 16% 24%, var(--mischief-star-light) 0 1px, transparent 1.8px),
radial-gradient(circle at 72% 18%, var(--mischief-star-light) 0 0.9px, transparent 1.6px),
radial-gradient(circle at 84% 40%, var(--mischief-gold) 0 1.1px, transparent 1.9px),
radial-gradient(circle at 34% 16%, var(--mischief-star-light) 0 0.9px, transparent 1.5px);
}
.mischief-spark {
--loop-tile: url("../art/scene-loops/mischief-spark-tile.webp");
--loop-tile-w: 192px; --loop-tile-h: 64px; --loop-period: 20s;
--loop-mask: linear-gradient(transparent 32%, #000 48%, #000 74%, transparent 90%);
opacity: 0.56;
}
@keyframes mischief-glow-drift { from { transform: translateX(-3%) rotate(-2deg); opacity: 0.45; } to { transform: translateX(12%) rotate(3deg); opacity: 0.78; } }
@keyframes mischief-star-twinkle { from { opacity: 0.3; } to { opacity: 0.74; } }
.mischief-title {
font-family: var(--display); font-size: 20px; line-height: 1.05; letter-spacing: 0.05em; text-align: center; text-transform: uppercase;
background: var(--gold-bevel); -webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}
.mischief-jackpots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mischief-jackpot {
position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0;
padding: 8px 4px; border-radius: 6px; border: 2px solid var(--gold);
background: linear-gradient(180deg, var(--mischief-glass-light), var(--mischief-hall));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.mischief-jackpot.grand { border-color: var(--jp-grand); }
.mischief-jackpot.major { border-color: var(--jp-major); }
.mischief-jackpot.minor { border-color: var(--jp-minor); }
.mischief-jackpot.mini { border-color: var(--jp-mini); }
.mischief-jackpot.flare { animation: mischief-flare 650ms ease-out; }
@keyframes mischief-flare { 0%, 100% { scale: 1; } 40% { scale: 1.08; } }
.mischief-jackpot-name { font-family: var(--display); font-size: 12px; line-height: 1; letter-spacing: 0.04em; text-shadow: var(--jp-outline); }
.mischief-jackpot.grand .mischief-jackpot-name { color: var(--jp-grand); }
.mischief-jackpot.major .mischief-jackpot-name { color: var(--jp-major); }
.mischief-jackpot.minor .mischief-jackpot-name { color: var(--jp-minor); }
.mischief-jackpot.mini .mischief-jackpot-name { color: var(--jp-mini); }
.mischief-jackpot-value {
max-width: 100%; overflow: hidden; font-family: var(--display); font-size: var(--type-readout); line-height: 1.08;
font-variant-numeric: tabular-nums; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap;
}
.mischief-jackpot.grand .mischief-jackpot-value { font-size: var(--type-lead); }
.mischief-row {
display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mischief-mascot {
position: relative; width: 66px; height: 66px; flex: none; display: flex; align-items: center; justify-content: center;
transition: transform 260ms cubic-bezier(0.22, 1.25, 0.36, 1);
}
.mischief-mascot-img {
width: 100%; height: 100%; object-fit: contain;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.72));
}
.mischief-mascot.wake {
transform: translate(10px, -6px) scale(1.18);
z-index: 6;
}
.mischief-mascot.wake .mischief-mascot-img {
filter: drop-shadow(0 0 12px rgba(245, 206, 82, 0.85)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.72));
}
.mischief-callout {
position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 5px;
border: 1px solid var(--mischief-gold); background: linear-gradient(180deg, var(--mischief-violet), #2b0b48);
font-family: var(--display); font-size: 11px; line-height: 1.05; letter-spacing: 0.05em;
color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; pointer-events: none;
}
.mischief-ante {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
min-width: 120px; min-height: 44px; padding: 4px 10px; border-radius: 8px;
border: 2px solid var(--gold-deep); background: linear-gradient(180deg, var(--mischief-plate), var(--mischief-hall));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 #071411;
color: var(--text); font-family: var(--display); cursor: pointer;
}
.mischief-ante.on {
border-color: var(--mischief-gold);
background: linear-gradient(180deg, var(--mischief-emerald), #105c38);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 10px rgba(47, 212, 122, 0.45);
}
.mischief-ante:disabled { opacity: 0.65; cursor: default; }
.mischief-ante-name { font-family: var(--display); font-size: 13px; line-height: 1; letter-spacing: 0.05em; color: var(--gold-light); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.mischief-ante-state { font-family: var(--display); font-size: 11px; line-height: 1; letter-spacing: 0.04em; color: var(--text); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.mischief-status {
padding: 2px 8px; border-radius: 6px; border: 1px solid var(--gold-deep);
background: linear-gradient(180deg, var(--mischief-glass), var(--bg-deep));
font-family: var(--display); font-size: 12px; line-height: 1.15; letter-spacing: 0.04em; text-align: center;
color: var(--text); text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mischief-stamp {
position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%) scale(0.5); z-index: 12;
padding: 4px 16px; border-radius: 10px; border: 2px solid var(--mischief-gold);
background: linear-gradient(180deg, var(--mischief-emerald), #0f5232);
box-shadow: 0 0 18px rgba(245, 206, 82, 0.8), 0 4px 12px rgba(0, 0, 0, 0.7);
font-family: var(--display); font-size: 32px; line-height: 1; letter-spacing: 0.05em;
color: var(--gold-light); text-shadow: 0 2px 0 #000; pointer-events: none; opacity: 0;
}
.mischief-callout[hidden], .mischief-stamp[hidden] { display: none; }
.mischief-stamp.show { animation: mischief-stamp-hit 520ms cubic-bezier(0.2, 1.35, 0.35, 1) forwards; }
@keyframes mischief-stamp-hit {
0% { opacity: 0; transform: translateX(-50%) scale(1.9) rotate(-10deg); }
55% { opacity: 1; transform: translateX(-50%) scale(0.96) rotate(3deg); }
100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
}
.mischief-toss-wild {
position: fixed; width: 46px; height: 46px; object-fit: contain; pointer-events: none; z-index: 45;
filter: drop-shadow(0 0 8px rgba(245, 206, 82, 0.9));
}
@container mischief-sign (max-height: 225px) {
.mischief-mascot { width: 48px; height: 48px; }
.mischief-jackpot { padding: 5px 4px; }
}
@media (prefers-reduced-motion: reduce) {
.mischief-mascot { transition: none; }
.mischief-mascot.wake { transform: none; }
.mischief-stamp.show { animation: none; opacity: 1; transform: translateX(-50%) scale(1); }
.mischief-jackpot.flare { animation: none; }
}

/* Source: css/mischief-features.css */
.mischief-wheel, .mischief-pick, .mischief-show {
position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center;
padding: max(10px, var(--safe-top)) max(14px, var(--safe-right)) max(10px, var(--safe-bottom)) max(14px, var(--safe-left));
background: radial-gradient(circle at 50% 44%, rgba(30, 168, 102, 0.28), var(--mischief-veil) 72%), rgba(4, 14, 11, 0.88);
opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms ease, visibility 220ms ease;
}
.mischief-wheel.show, .mischief-pick.show, .mischief-show.show { opacity: 1; visibility: visible; pointer-events: auto; }
.mischief-wheel-panel, .mischief-pick-panel, .mischief-show-panel {
position: relative; width: min(100%, 660px); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
padding: 12px 16px; border-radius: 16px; border: 3px solid var(--gold);
background: linear-gradient(180deg, var(--mischief-glass-light), var(--mischief-hall) 62%, var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 12px 32px rgba(0, 0, 0, 0.78);
transform: scale(0.92); transition: transform 220ms cubic-bezier(0.2, 0.85, 0.3, 1);
}
.mischief-wheel.show .mischief-wheel-panel,
.mischief-pick.show .mischief-pick-panel,
.mischief-show.show .mischief-show-panel { transform: scale(1); }
.mischief-wheel-panel > h2, .mischief-pick-panel > h2, .mischief-show-panel > h2 {
margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.05; letter-spacing: 0.05em; text-align: center; text-transform: uppercase;
background: var(--gold-bevel); -webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.mischief-wheel-sub, .mischief-pick-sub, .mischief-show-sub {
margin: 0; font-family: var(--display); font-size: 14px; line-height: 1.2; letter-spacing: 0.04em; text-align: center;
color: var(--text); text-shadow: 0 1px 0 #000;
}
.mischief-show-sub { font-family: var(--body); font-size: 13px; color: var(--muted); text-shadow: none; }
.mischief-wheel-stage {
position: relative; width: 224px; height: 224px; flex: none; display: flex; align-items: center; justify-content: center;
}
.mischief-wheel-pointer {
position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 4;
width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--mischief-gold);
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}
.mischief-wheel-disc {
position: relative; width: 100%; height: 100%; border-radius: 50%; border: 5px solid var(--gold);
box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--gold-deep), 0 8px 22px rgba(0, 0, 0, 0.72);
overflow: hidden;
}
.mischief-wedge-label {
position: absolute; top: 50%; left: 50%; width: 46%; height: 18px; margin-top: -9px; transform-origin: left center;
display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
font-family: var(--display); font-size: 13px; line-height: 1; letter-spacing: 0.04em;
color: var(--gold-light); text-shadow: 0 1px 2px #000; pointer-events: none;
}
.mischief-wedge-label.jp.grand { color: var(--jp-grand); text-shadow: var(--jp-outline); }
.mischief-wedge-label.jp.major { color: var(--jp-major); text-shadow: var(--jp-outline); }
.mischief-wedge-label.jp.minor { color: var(--jp-minor); text-shadow: var(--jp-outline); }
.mischief-wedge-label.jp.mini { color: var(--jp-mini); text-shadow: var(--jp-outline); }
.mischief-wheel-hub {
position: absolute; z-index: 3; width: 58px; height: 58px; border-radius: 50%;
border: 3px solid var(--gold); background: radial-gradient(circle, var(--mischief-plate), var(--mischief-hall));
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.mischief-wheel-hub-img { width: 48px; height: 48px; object-fit: contain; }
.mischief-wheel-spin, .mischief-show-panel > button {
min-width: 184px; max-width: 260px; min-height: 46px; padding: 8px 24px; border-radius: 14px;
border: 2px solid var(--mischief-go-light); background: linear-gradient(180deg, var(--mischief-go-light), var(--mischief-go) 55%, var(--mischief-go-deep));
box-shadow: 0 3px 0 #092a14; font-family: var(--display); font-size: 18px; letter-spacing: 0.06em;
color: var(--text); text-shadow: 0 1px 0 #000; cursor: pointer;
}
.mischief-wheel-spin:disabled { opacity: 0.65; cursor: default; }
.mischief-pick-trackers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mischief-pick-track {
display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--gold-deep);
background: rgba(8, 22, 18, 0.76);
}
.mischief-pick-track.won { border-color: var(--mischief-gold); }
.mischief-pick-track-name { font-family: var(--display); font-size: 13px; line-height: 1; text-shadow: var(--jp-outline); }
.mischief-pick-track.grand .mischief-pick-track-name { color: var(--jp-grand); }
.mischief-pick-track.major .mischief-pick-track-name { color: var(--jp-major); }
.mischief-pick-track.minor .mischief-pick-track-name { color: var(--jp-minor); }
.mischief-pick-track.mini .mischief-pick-track-name { color: var(--jp-mini); }
.mischief-pick-pips { display: flex; gap: 3px; }
.mischief-pick-pip { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold-deep); background: rgba(255, 255, 255, 0.14); }
.mischief-pick-pip.on { background: var(--mischief-gold); border-color: #fff3b0; }
.mischief-pick-board { width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mischief-tile {
position: relative; min-height: 54px; aspect-ratio: 1.22 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 4px; border-radius: 10px; border: 2px solid var(--gold);
background: linear-gradient(180deg, #1b5c46, #0b2920);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 var(--gold-deep);
color: var(--text); font-family: var(--display); cursor: pointer;
}
.mischief-tile.open { background: linear-gradient(180deg, #2b184a, #100824); border-color: var(--gold-deep); cursor: default; }
.mischief-tile.peek { opacity: 0.45; background: linear-gradient(180deg, #182b28, #0b1615); border-color: var(--gold-deep); cursor: default; }
.mischief-tile.match { border-color: var(--mischief-gold); box-shadow: 0 0 12px rgba(245, 206, 82, 0.75), inset 0 0 8px rgba(47, 212, 122, 0.5); }
.mischief-tile-art { width: 34px; height: 34px; object-fit: contain; }
.mischief-tile-label { font-family: var(--display); font-size: 12px; line-height: 1; letter-spacing: 0.04em; text-shadow: var(--jp-outline); }
.mischief-tile.grand .mischief-tile-label { color: var(--jp-grand); }
.mischief-tile.major .mischief-tile-label { color: var(--jp-major); }
.mischief-tile.minor .mischief-tile-label { color: var(--jp-minor); }
.mischief-tile.mini .mischief-tile-label { color: var(--jp-mini); }
.mischief-show-hero { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.72)); }
.mischief-show-main {
width: 100%; font-family: var(--display); font-size: 40px; line-height: 1; text-align: center; white-space: nowrap;
color: var(--gold-light); text-shadow: 0 2px 0 var(--gold-deep), 0 4px 12px rgba(0, 0, 0, 0.75);
}
.pt-mischief-jp { font-family: var(--display); text-shadow: var(--jp-outline); justify-self: start; }
.pt-mischief-jp.grand { color: var(--jp-grand); }
.pt-mischief-jp.major { color: var(--jp-major); }
.pt-mischief-jp.minor { color: var(--jp-minor); }
.pt-mischief-jp.mini { color: var(--jp-mini); }
.pt-mischief-scatters .pt-row { grid-template-columns: 66px minmax(0, 1fr) minmax(0, 1fr); }
.pt-mischief-scatters .pt-row > span:last-child { justify-self: end; }
.pt-mischief-surprises .pt-row { grid-template-columns: minmax(98px, 0.85fr) minmax(0, 1.8fr); justify-items: start; gap: 10px; }
.pt-mischief-surprises .pt-row.pt-head > span:not(:first-child) { justify-self: start; }
.pt-mischief-name { color: var(--gold-light); text-transform: uppercase; font-size: 0.78rem; }
.pt-mischief-jackpots .pt-row { grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1fr); }
.pt-mischief-jackpots .pt-row > span:nth-child(2), .pt-mischief-jackpots .pt-row > span:last-child { justify-self: end; }
.pt-mischief-type { font-family: var(--body); font-size: 0.78rem; color: var(--muted); text-shadow: none; }
html.landscape #app.mischief {
--ls-pad: 4px; --ls-aspect: 1.15;
--ls-cell-h: clamp(30px, calc((var(--ls-stage-h) - var(--ls-strip) - var(--ls-pad) - var(--chip-band) - 26px - 6px) / 3), 120px);
--mischief-cell-height: var(--ls-cell-h);
}
html.landscape #app > .mischief-sign:not([hidden]) {
display: grid;
grid-template-columns: [side-l] minmax(0, 1fr) [mid] var(--ls-reels-w) [side-r] minmax(0, 1fr) [end];
grid-template-rows: [strip] var(--ls-strip) repeat(6, minmax(0, 1fr));
align-items: center; justify-items: center; gap: 0 8px;
min-height: 0; margin: 0 calc(-1 * var(--ls-r)) 0 calc(-1 * var(--ls-l));
padding: 0 var(--ls-r) 4px var(--ls-l); overflow: visible; container-type: normal;
}
html.landscape #app .mischief-scene { border-radius: 0; mask-image: none; -webkit-mask-image: none; }
html.landscape #app .mischief-scene::after {
content: ""; position: absolute; inset: 0;
background: radial-gradient(ellipse 36% 42% at 11% 26%, rgba(6, 24, 16, 0.82), rgba(6, 24, 16, 0.55) 55%, transparent 78%);
}
html.landscape #app .mischief-jackpots {
grid-column: side-l / end; grid-row: strip; align-self: center; width: 100%;
display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 5px;
}
html.landscape #app .mischief-jackpot { justify-self: stretch; height: 26px; flex-direction: row; gap: 5px; padding: 0 5px; }
html.landscape #app .mischief-jackpot-name { flex: none; font-size: 12px; }
html.landscape #app .mischief-jackpot-value { flex: 0 1 auto; font-size: var(--type-readout); }
html.landscape #app .mischief-jackpot.grand .mischief-jackpot-value { font-size: 1.1rem; }
html.landscape #app .mischief-title {
grid-column: side-l; grid-row: 2 / span 2; font-size: 18px; white-space: normal;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(4, 18, 12, 0.85));
}
html.landscape #app .mischief-row { display: contents; }
html.landscape #app .mischief-mascot { grid-column: side-l; grid-row: 4 / span 4; width: 92px; height: 92px; }
html.landscape #app .mischief-ante { grid-column: side-r; grid-row: 2 / span 3; justify-self: stretch; min-width: 0; padding: 5px 6px; }
html.landscape #app .mischief-status { grid-column: side-r; grid-row: 5 / span 3; justify-self: stretch; white-space: pre-line; text-overflow: clip; text-wrap: balance; }
html.landscape #app .mischief-status-dot { display: none; }
html.landscape #app .mischief-stamp { grid-column: mid; grid-row: 4 / span 2; position: relative; left: auto; bottom: auto; transform: scale(0.5); }
html.landscape #app .mischief-stamp.show { animation: mischief-stamp-ls 520ms cubic-bezier(0.2, 1.35, 0.35, 1) forwards; }
@keyframes mischief-stamp-ls {
0% { opacity: 0; transform: scale(1.9) rotate(-10deg); }
55% { opacity: 1; transform: scale(0.96) rotate(3deg); }
100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
html.landscape .mischief-wheel-panel {
display: grid; grid-template-columns: 204px minmax(0, 1fr); grid-template-rows: auto auto auto;
align-items: center; justify-items: center; column-gap: 20px; row-gap: 8px; padding: 10px 18px;
}
html.landscape .mischief-wheel-stage { grid-column: 1; grid-row: 1 / span 3; width: 196px; height: 196px; }
html.landscape .mischief-wheel-panel > h2 { grid-column: 2; grid-row: 1; font-size: 22px; }
html.landscape .mischief-wheel-sub { grid-column: 2; grid-row: 2; }
html.landscape .mischief-wheel-spin { grid-column: 2; grid-row: 3; }
html.landscape .mischief-pick-panel, html.landscape .mischief-show-panel { padding: 8px 14px; gap: 5px; }
html.landscape .mischief-pick-panel > h2, html.landscape .mischief-show-panel > h2 { font-size: 22px; }
html.landscape .mischief-pick-board { max-width: 520px; gap: 6px; }
html.landscape .mischief-tile { aspect-ratio: auto; min-height: 46px; height: 54px; padding: 2px 4px; }
html.landscape .mischief-tile-art { width: 28px; height: 28px; }
html.landscape .mischief-show-hero { width: 88px; height: 88px; }
@media (prefers-reduced-motion: reduce) {
.mischief-wheel, .mischief-pick, .mischief-show,
.mischief-wheel-panel, .mischief-pick-panel, .mischief-show-panel { transition: none; }
html.landscape #app .mischief-stamp.show { animation: none; opacity: 1; transform: scale(1); }
}

/* Source: css/studio.css */

#app.studio {
--cell: calc((min(100vw, 520px) - 32px - 34px - 24px) / 5);
--studio-cell-height: min(var(--cell), calc((var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - var(--studio-reserve, 380px)) / var(--reel-rows, 3)));
}
#app.studio .reel { height: calc(var(--studio-cell-height) * var(--reel-rows, 3)); }
#app.studio .cell { height: var(--studio-cell-height); }
#app.studio .cell.letter { font-size: calc(var(--studio-cell-height) * 0.7); }
#app.studio .cell.letter-Q { font-size: calc(var(--studio-cell-height) * 0.66); }
#app.studio .cell.letter-10 { font-size: calc(var(--studio-cell-height) * 0.5); }
#app.studio .sym-img { max-height: var(--studio-cell-height); }

body.at-studio:not(.in-lobby) { background: var(--bg-deep); }
.app.studio::before {
background:
radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0 0.55px, transparent 1px) 0 0 / 97px 131px,
radial-gradient(circle at 70% 36%, rgba(255, 255, 255, 0.4) 0 0.5px, transparent 1px) 0 0 / 151px 113px,
radial-gradient(ellipse at 50% 24%, var(--kit-glow-soft, transparent), transparent 52%),
radial-gradient(ellipse at 12% 62%, var(--kit-primary-soft, transparent), transparent 55%),
radial-gradient(ellipse at 88% 66%, var(--kit-primary-soft, transparent), transparent 55%),
linear-gradient(180deg, var(--studio-hall, var(--bg)), var(--studio-glass, var(--bg)) 46%, var(--bg-deep));
}
#app.studio .grid {
background: linear-gradient(180deg, var(--studio-glass-light, var(--navy)), var(--studio-hall, var(--navy-deep)));
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px 1px var(--gold), 0 0 24px 5px var(--kit-primary-soft, transparent), inset 0 0 18px rgba(0, 0, 0, 0.8);
}
#app.studio .reel {
box-shadow: 0 0 0 1px var(--kit-primary-soft, rgba(255, 211, 77, 0.5)), inset 1px 0 0 rgba(255, 255, 255, 0.08), inset -1px 0 0 rgba(0, 0, 0, 0.5);
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, rgba(255, 255, 255, 0.05) 50%, transparent 78%, rgba(0, 0, 0, 0.55)),
radial-gradient(ellipse at 50% 50%, var(--studio-glass-light, var(--navy)), var(--studio-glass, var(--navy-deep)) 82%);
}
#app.studio.studio-holding .reel { background: radial-gradient(ellipse at 50% 50%, var(--studio-glass, var(--navy)), var(--studio-hall, var(--bg-deep)) 86%); }
#app.studio.studio-holding .grid { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px 2px var(--kit-primary, var(--gold)), 0 0 28px 6px var(--kit-primary-soft, transparent), inset 0 0 18px rgba(0, 0, 0, 0.8); }
#app.studio.studio-free .grid { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px 2px var(--kit-secondary, var(--gold)), 0 0 28px 6px var(--kit-secondary-soft, transparent), inset 0 0 18px rgba(0, 0, 0, 0.8); }
#app.studio .win-plate { max-width: calc(100% + 36px); letter-spacing: 0.05em; background: linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep)); }

.studio-sym { --glow: var(--kit-accent-soft, rgba(255, 196, 60, 0.5)); }
.studio-sym.studio-r1 { --glow: var(--kit-glow-soft, rgba(255, 92, 40, 0.6)); }
.studio-sym.studio-wild { --glow: var(--kit-accent, var(--gold)); }
.studio-sym.studio-bonus { --glow: var(--kit-primary-soft, rgba(60, 220, 200, 0.5)); }
.studio-sym.studio-scatter { --glow: var(--kit-secondary-soft, rgba(255, 70, 150, 0.5)); }
body:not(.at-drums) .cell.sym.studio-sym::before {
border-color: var(--gold-dark);
background:
linear-gradient(var(--gold-light), var(--gold-light)) left 3px top 3px / 12% 2px no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) left 3px top 3px / 2px 12% no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) right 3px top 3px / 12% 2px no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) right 3px top 3px / 2px 12% no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) left 3px bottom 3px / 12% 2px no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) left 3px bottom 3px / 2px 12% no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) right 3px bottom 3px / 12% 2px no-repeat,
linear-gradient(var(--gold-light), var(--gold-light)) right 3px bottom 3px / 2px 12% no-repeat,
radial-gradient(ellipse at 50% 35%, var(--glow), transparent 80%),
linear-gradient(145deg, var(--studio-glass-light, var(--lacquer)), var(--studio-hall, var(--bg-deep)));
box-shadow: inset 0 0 0 1px var(--gold-deep);
}
body:not(.at-drums) .cell.sym.studio-bonus::before,
body:not(.at-drums) .cell.sym.studio-scatter::before { display: none; }
body.at-studio .cell.wild .wild-tag, .pt-studio .cell.wild .wild-tag {
background: linear-gradient(180deg, var(--studio-plate, var(--violet)), var(--bg-deep));
box-shadow: 0 0 0 1.5px var(--gold);
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
}
.studio-value {
position: absolute;
left: 50%;
top: 50%;
max-width: 80%;
overflow: hidden;
transform: translate(-50%, -50%);
color: var(--text);
font: max(11px, calc(var(--studio-cell-height, var(--cell)) * 0.25))/1.05 var(--display);
letter-spacing: 0.02em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 4px #000, 0 0 8px #000;
pointer-events: none;
}
.cell.studio-bonus.jp .studio-value { color: var(--gold-light); font-size: max(11px, calc(var(--studio-cell-height, var(--cell)) * 0.2)); letter-spacing: 0.05em; }
.cell.studio-bonus.jp-grand .studio-value { color: var(--jp-grand); }
.cell.studio-bonus.jp-major .studio-value { color: var(--jp-major); }
.cell.studio-bonus.jp-minor .studio-value { color: var(--jp-minor); }
.cell.studio-bonus.jp-mini .studio-value { color: var(--jp-mini); }
.studio-mult { position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: 52%; aspect-ratio: 1; pointer-events: none; }
.studio-mult-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); }
.studio-mult-value { position: relative; color: var(--text); font: max(11px, calc(var(--studio-cell-height, var(--cell)) * 0.2))/1 var(--display); text-shadow: 0 1px 0 #000, 0 0 4px #000; }
#app.studio .grid.has-win .cell.studio-bonus.locked,
#app.studio .grid.cycling .cell.studio-bonus.locked { opacity: 1; }
.cell.studio-sym.hit .sym-face { animation: studio-hit 600ms ease-in-out infinite alternate; }
.cell.studio-bonus.locked::after {
content: "";
position: absolute;
inset: 2px;
border-radius: 8px;
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 10px var(--kit-primary-soft, transparent), 0 0 8px var(--kit-primary-soft, transparent);
pointer-events: none;
}
.cell.studio-bonus.landed { animation: studio-land 480ms ease-out; }
.cell.studio-bonus.collected { animation: studio-collect 420ms ease-out; opacity: 0.82; }
.cell.studio-dark {
border-radius: 6px;
background: radial-gradient(60% 40% at 50% 50%, var(--kit-primary-soft, rgba(54, 220, 196, 0.08)), transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12));
box-shadow: inset 0 0 0 1px var(--kit-primary-soft, rgba(255, 255, 255, 0.1));
opacity: 0.85;
}

.app.studio {
--machine-accent: var(--kit-accent, #69d9ff);
--machine-accent-2: var(--kit-glow, #e46cff);
}

/* Source: css/studio-sign-features.css */
.studio-sign {
position: relative;
isolation: isolate;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 5px;
padding: 6px 0 16px;
container: studio-sign / size;
}
.studio-sign[hidden] { display: none; }
.studio-scene {
position: absolute;
inset: 0 -16px 10px;
z-index: -1;
overflow: hidden;
pointer-events: none;
-webkit-mask-image: linear-gradient(transparent, #000 16%, #000 58%, transparent 98%);
mask-image: linear-gradient(transparent, #000 16%, #000 58%, transparent 98%);
}
.studio-depth { position: absolute; inset: calc(-1 * var(--parallax-reach)); }
.studio-scene-art, .studio-scene-mid, .studio-scene-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.studio-scene::after {
content: "";
position: absolute;
z-index: 2;
inset: 0;
background: linear-gradient(180deg, transparent 18%, var(--studio-hall, var(--bg-deep)) 92%);
opacity: 0.8;
}
.studio-light, .studio-stars, .studio-dust { position: absolute; z-index: 1; pointer-events: none; }
.studio-light {
top: -20%;
left: 18%;
width: 64%;
height: 90%;
background: radial-gradient(closest-side, var(--kit-glow-soft, rgba(255, 255, 255, 0.3)), transparent);
opacity: 0.6;
animation: studio-light 14s ease-in-out infinite alternate;
}
.studio-stars {
inset: 0 0 48%;
background:
radial-gradient(circle at 14% 30%, var(--text) 0 1px, transparent 1.7px),
radial-gradient(circle at 31% 12%, var(--gold-light) 0 0.8px, transparent 1.5px),
radial-gradient(circle at 63% 22%, var(--text) 0 1px, transparent 1.8px),
radial-gradient(circle at 82% 9%, var(--gold-light) 0 0.8px, transparent 1.4px),
radial-gradient(circle at 92% 38%, var(--text) 0 0.9px, transparent 1.6px);
opacity: 0.5;
animation: studio-stars 6s ease-in-out infinite alternate;
}
.studio-dust {
top: 30%;
left: -10%;
width: 120%;
height: 40%;
background:
radial-gradient(ellipse at 20% 60%, var(--kit-primary-soft, rgba(255, 255, 255, 0.2)), transparent 40%),
radial-gradient(ellipse at 78% 40%, var(--kit-secondary-soft, rgba(255, 255, 255, 0.15)), transparent 38%),
radial-gradient(circle at 34% 30%, var(--kit-accent, var(--gold)) 0 1.2px, transparent 2.2px),
radial-gradient(circle at 70% 70%, var(--kit-accent, var(--gold)) 0 1px, transparent 2px);
opacity: 0.4;
animation: studio-dust 18s ease-in-out infinite alternate;
}
.studio-title {
flex: none;
margin-block: auto;
text-align: center;
font: 1.3rem/1.05 var(--display);
letter-spacing: 0.06em;
white-space: nowrap;
}
.studio-title-word {
display: inline-block;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 1px #000);
}
.studio-title-word.key { font-size: 1.22em; }

.studio-jackpots { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.studio-jackpots.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-jackpots.count-2, .studio-jackpots.count-1 { grid-template-columns: minmax(0, 1fr); }
.studio-jackpot {
position: relative;
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
padding: 4px 6px 4px 2px;
border: 2px solid var(--gold);
border-radius: 9px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%),
linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.55);
}
.studio-jackpot:first-child { grid-column: 1 / -1; padding: 4px 12px 4px 4px; }
.studio-jackpot:first-child:not(:only-child) { justify-self: center; width: min(100%, 300px); box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.55), 0 0 14px var(--kit-accent-soft, transparent); }
.studio-jackpot-art { flex: none; width: 34px; height: 34px; margin: -5px 0 -5px -8px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7)); }
.studio-jackpot:first-child .studio-jackpot-art { width: 40px; height: 40px; margin: -6px 2px -6px -10px; }
.studio-jackpot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.studio-jackpot-name { color: var(--text); font: 0.72rem/1.1 var(--display); letter-spacing: 0.08em; text-shadow: var(--jp-outline); }
.studio-jackpot:first-child .studio-jackpot-name { font-size: clamp(0.85rem, 3.6vw, 1rem); }
.studio-jackpot.grand .studio-jackpot-name { color: var(--cabinet-grand-ink); }
.studio-jackpot.major .studio-jackpot-name { color: var(--jp-major); }
.studio-jackpot.minor .studio-jackpot-name { color: var(--cabinet-minor-ink); }
.studio-jackpot.mini .studio-jackpot-name { color: var(--jp-mini); }
.studio-jackpot-value {
display: block;
max-width: 100%;
overflow: hidden;
font: var(--type-readout)/1.12 var(--display);
font-variant-numeric: tabular-nums;
white-space: nowrap;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}
.studio-jackpot:first-child .studio-jackpot-value { font-size: 1.3rem; }
.studio-jackpot.hit { animation: studio-jackpot-hit 900ms ease-out; }
.studio-jackpot.hit.handpay { animation-iteration-count: infinite; }

.studio-hint {
flex: none;
display: flex;
justify-content: center;
gap: 6px;
color: var(--text);
font: 0.7rem/1.15 var(--display);
letter-spacing: 0.025em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 6px #000;
}
.studio-hint-item { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.studio-hint-item[hidden] { display: none; }
.studio-hint-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.studio-hint-art { flex: none; width: 1.55em; height: 1.55em; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); }
.studio-sign.hold .studio-hint, .studio-sign.free .studio-hint { color: var(--gold-light); }

.studio-board {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
min-width: 0;
padding: 3px 12px;
border: 1px solid var(--gold-deep);
border-radius: 6px;
background: linear-gradient(180deg, var(--studio-glass-light, var(--navy)), var(--studio-glass, var(--navy-deep)));
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
white-space: nowrap;
}
.studio-status { color: var(--text); font: clamp(0.85rem, 3.8vw, var(--type-readout))/1.15 var(--display); letter-spacing: 0.04em; text-shadow: 0 1px 0 #000; }
.studio-detail { overflow: hidden; text-overflow: ellipsis; color: var(--text); font: clamp(0.7rem, 3.3vw, 0.85rem)/1.2 var(--display); letter-spacing: 0.04em; text-shadow: 0 1px 0 #000; }
.studio-pips { display: none; gap: 4px; }
.studio-sign.hold .studio-pips { display: flex; }
.studio-pip { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--studio-glass-light, var(--navy)), var(--studio-hall, var(--bg-deep))); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7); }
.studio-pip.lit { background: radial-gradient(circle at 35% 30%, var(--text), var(--kit-primary, var(--jade)) 45%, var(--studio-glass, var(--bg-deep)) 90%); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px var(--kit-primary, var(--jade)); }
.studio-pip.reset { animation: studio-pip 420ms ease-out; }
.studio-sign.hold .studio-board, .studio-sign.free .studio-board {
border-color: var(--gold);
background: linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep));
}
.studio-sign.hold .studio-status, .studio-sign.free .studio-status { color: var(--gold-light); }
.studio-sign.hold .studio-status { font-size: 1.05rem; }
.studio-sign.hold .studio-detail { color: var(--gold-light); }
.studio-sign.hold :is(.studio-hint, .studio-wilds) { color: var(--muted); }

.studio-wilds {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
color: var(--gold-light);
font: clamp(0.75rem, 3.4vw, 0.88rem)/1.1 var(--display);
letter-spacing: 0.05em;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.8);
}
.studio-wilds .studio-wild { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: radial-gradient(circle, var(--kit-accent-soft, transparent), transparent 70%); }
.studio-wilds .studio-wild .sym-img { width: 1.55em; height: 1.55em; }

@container studio-sign (min-height: 290px) {
.studio-title { font-size: clamp(1.4rem, 7vw, 1.9rem); }
.studio-jackpot:first-child .studio-jackpot-art { width: 52px; height: 52px; margin: -9px 4px -9px -14px; }
.studio-jackpot:first-child .studio-jackpot-name { font-size: 0.85rem; }
.studio-jackpot:first-child .studio-jackpot-value { font-size: clamp(1rem, 4.9vw, var(--type-lead)); }
.studio-jackpot-art { width: 34px; height: 34px; margin: -5px 0 -5px -8px; }
.studio-jackpot-value { font-size: clamp(0.85rem, 3.8vw, var(--type-readout)); }
.studio-hint { flex-direction: column; align-items: center; gap: 1px; font-size: clamp(0.75rem, 3.4vw, 0.86rem); letter-spacing: 0.05em; }
.studio-hint-art { width: 1.7em; height: 1.7em; }
}
@container studio-sign (max-height: 200px) {
.studio-sign { gap: 2px; padding-top: 2px; }
.studio-title { font-size: 1.05rem; }
.studio-jackpots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.studio-jackpots.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-jackpots.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-jackpot, .studio-jackpot:first-child { grid-column: auto; padding: 1px 3px 1px 1px; gap: 2px; }
.studio-jackpot:first-child:not(:only-child) { width: auto; justify-self: stretch; }
.studio-jackpot-art, .studio-jackpot:first-child .studio-jackpot-art { width: 22px; height: 22px; margin: -2px 0 -2px -3px; }
.studio-jackpot-name, .studio-jackpot:first-child .studio-jackpot-name { font-size: 0.7rem; letter-spacing: 0.04em; }
.studio-jackpot-value, .studio-jackpot:first-child .studio-jackpot-value { font-size: 0.92rem; }
.studio-board { padding: 1px 10px; }
.studio-status { font-size: 0.95rem; }
.studio-wilds { font-size: 0.72rem; }
}
@container studio-sign (max-height: 150px) {
.studio-title { display: none; }
}

.studio-show {
position: fixed;
inset: 0;
z-index: 44;
display: flex;
align-items: center;
justify-content: center;
padding: max(16px, var(--safe-top)) 16px max(16px, var(--safe-bottom));
isolation: isolate;
background: radial-gradient(circle at 50% 42%, var(--studio-glass-light, var(--bg)), var(--studio-hall, var(--bg-deep)) 72%);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 220ms ease, visibility 0s linear 220ms;
touch-action: manipulation;
}
.studio-show.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 220ms ease; }
.studio-show-scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; pointer-events: none; }
.studio-show::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background:
radial-gradient(circle at 50% 36%, var(--kit-glow-soft, transparent), transparent 46%),
linear-gradient(180deg, var(--studio-hall, var(--bg-deep)), transparent 30%, transparent 62%, var(--studio-hall, var(--bg-deep)));
}
.studio-show-panel {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
width: min(100%, 360px);
max-height: 100%;
overflow-y: auto;
padding: 12px 8px;
text-align: center;
}
.studio-show.show .studio-show-panel { animation: studio-rise 340ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
.studio-show-title, .studio-show-main {
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
}
.studio-show-title:empty { display: none; }
.studio-show-title { margin: 0; font: clamp(1.9rem, 9vw, 2.6rem)/1.05 var(--display); letter-spacing: 0.05em; white-space: nowrap; }
.studio-show-hero { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 6px 0; }
.studio-show-rays {
position: absolute;
inset: -34%;
border-radius: 50%;
background:
radial-gradient(closest-side, var(--kit-accent-soft, transparent), transparent 70%),
repeating-conic-gradient(from 0deg, var(--kit-accent-soft, rgba(255, 212, 90, 0.3)) 0 7deg, transparent 7deg 22deg);
-webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
animation: studio-rays 24s linear infinite;
}
.studio-show:not(.show) .studio-show-rays { animation-play-state: paused; }
.studio-show-art { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px var(--kit-glow-soft, transparent)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
.studio-show-main {
max-width: 100%;
overflow: hidden;
padding: 8px 12px;
margin: -8px 0;
font: clamp(2.3rem, 12vw, 3.4rem)/1 var(--display);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.studio-show-sub { color: var(--gold-light); font: 1.05rem/1.2 var(--display); letter-spacing: 0.06em; text-shadow: 0 1px 0 #000; }
.studio-show-sub:empty, .studio-show-note:empty, .studio-show-jackpots:empty { display: none; }
.studio-show-jackpots { width: 100%; max-width: 300px; }
.studio-show-jackpot { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--hairline); text-shadow: 0 1px 0 #000; }
.studio-show-jackpot-art { flex: none; width: 22px; height: 22px; object-fit: contain; }
.studio-show-jackpot-name { flex: 1; text-align: left; color: var(--text); font: 0.9rem/1.2 var(--display); letter-spacing: 0.06em; }
.studio-show-jackpot.grand .studio-show-jackpot-name { color: var(--jp-grand); }
.studio-show-jackpot.major .studio-show-jackpot-name { color: var(--jp-major); }
.studio-show-jackpot.minor .studio-show-jackpot-name { color: var(--jp-minor); }
.studio-show-jackpot.mini .studio-show-jackpot-name { color: var(--jp-mini); }
.studio-show-jackpot-amount { color: var(--gold-light); font: 1.05rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.studio-show-note { max-width: 300px; margin: 0; color: var(--muted); font: 400 0.8125rem/1.4 var(--body); }
.studio-show-go {
width: min(100%, 240px);
min-height: 56px;
margin-top: 4px;
padding: 8px 16px;
border: 3px solid var(--gold);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--go-light), var(--go) 55%, var(--go-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 var(--go-dark), inset 0 1px 0 rgba(255, 255, 255, 0.4);
color: var(--text);
font: 1.25rem/1 var(--display);
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
touch-action: manipulation;
}
.studio-show-go:active { transform: translateY(3px); }
.studio-show-go:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
@media (max-height: 700px) {
.studio-show-panel { gap: 6px; }
.studio-show-hero { width: 112px; height: 112px; margin: 2px 0; }
.studio-show-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
.studio-show-main { font-size: clamp(2rem, 10vw, 2.8rem); }
}

.pt-tabs:has(> .pt-tab:nth-child(7)) .pt-tab { padding-left: 2px; padding-right: 2px; letter-spacing: 0; }
.pt-studio .cell.studio-bonus .studio-value, .pt-studio .studio-mult-value { font-size: 11px; }
.pt-studio-mults { gap: 18px; --cell: 52px; }
.pt-studio-mults .cell.wild .wild-tag { display: none; }
.pt-studio-mult { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pt-studio-mult small { color: var(--gold-light); font: 0.75rem/1.2 var(--display); letter-spacing: 0.04em; text-shadow: 0 1px 0 #000; }
.pt-studio-bonuses { flex-wrap: wrap; gap: 8px; --cell: 52px; }
.pt-studio-awards .pt-row, .pt-studio-scatter .pt-row { grid-template-columns: 1fr 1fr; }
.pt-studio-games { justify-self: end; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.pt-studio-jackpots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.pt-studio-jackpot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border-bottom: 1px solid var(--hairline); }
.pt-studio-medal { flex: none; width: 40px; height: 40px; object-fit: contain; }
.pt-studio-jackpot-text { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 0 #000; }
.pt-studio-jackpot-name { color: var(--text); font: 0.75rem/1.2 var(--display); letter-spacing: 0.08em; }
.pt-studio-jackpot.grand .pt-studio-jackpot-name { color: var(--jp-grand); }
.pt-studio-jackpot.major .pt-studio-jackpot-name { color: var(--jp-major); }
.pt-studio-jackpot.minor .pt-studio-jackpot-name { color: var(--jp-minor); }
.pt-studio-jackpot.mini .pt-studio-jackpot-name { color: var(--jp-mini); }
.pt-studio-jackpot-amount { overflow: hidden; color: var(--gold-light); font: 1.05rem/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }

/* Source: css/studio-sign-motion.css */

@keyframes studio-light { from { transform: translateX(-12%) scale(0.92); opacity: 0.45; } to { transform: translateX(12%) scale(1.08); opacity: 0.8; } }
@keyframes studio-stars { from { opacity: 0.25; transform: translateY(0); } to { opacity: 0.75; transform: translateY(2%); } }
@keyframes studio-dust { from { transform: translateX(-6%) translateY(4%); opacity: 0.25; } to { transform: translateX(6%) translateY(-6%); opacity: 0.55; } }
@keyframes studio-hit { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes studio-land { 0% { transform: scale(0.2); opacity: 0.2; } 100% { transform: scale(1); opacity: 1; } }
@keyframes studio-collect { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.16); opacity: 1; } 100% { transform: scale(1); opacity: 0.82; } }
@keyframes studio-jackpot-hit { 0% { transform: scale(1); } 30% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes studio-pip { from { transform: scale(1.6); } to { transform: scale(1); } }
@keyframes studio-rise { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes studio-rays { to { transform: rotate(360deg); } }
@keyframes studio-hold-dim { from { opacity: 0; transform: scale(0.9); } to { opacity: 0.85; transform: none; } }
@keyframes studio-hold-lock { 0% { transform: scale(1); } 35% { transform: scale(1.18); filter: brightness(1.5); } 100% { transform: scale(1); } }
.grid.hold-intro .cell.studio-dark { animation: studio-hold-dim 700ms ease-out 350ms backwards; }
.grid.hold-intro .cell.studio-bonus.locked { animation: studio-hold-lock 700ms ease-out; }
@media (prefers-reduced-motion: reduce) {
.grid.hold-intro .cell.studio-dark, .grid.hold-intro .cell.studio-bonus.locked { animation: none; }
.studio-light, .studio-stars, .studio-dust,
.cell.studio-sym.hit .sym-face, .cell.studio-bonus.landed, .cell.studio-bonus.collected,
.studio-jackpot.hit, .studio-pip.reset,
.studio-show.show .studio-show-panel, .studio-show-rays { animation: none; }
.studio-show, .studio-show.show { transition: none; }
}

/* Source: css/studio-grids.css */
.studio-extra {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
min-height: 44px;
padding: 4px 8px;
border: 2px solid var(--gold);
border-radius: 9px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%),
linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.55);
color: var(--text);
font-family: var(--display);
text-align: left;
cursor: pointer;
}
.studio-extra:disabled { opacity: 0.6; cursor: default; }
.studio-extra:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.studio-extra-track {
position: relative;
flex: none;
width: 32px;
height: 18px;
border-radius: 9px;
background: rgba(0, 0, 0, 0.6);
box-shadow: inset 0 0 0 1.5px var(--gold-deep);
}
.studio-extra-track::after {
content: "";
position: absolute;
left: 2px;
top: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--gold-deep);
transition: transform 160ms ease-out, background-color 160ms;
}
.studio-extra.on .studio-extra-track { background: var(--kit-secondary, var(--gold)); }
.studio-extra.on .studio-extra-track::after { background: var(--text); transform: translateX(14px); }
.studio-extra-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.studio-extra-name { font-size: max(11px, 0.85rem); letter-spacing: 0.06em; white-space: nowrap; }
.studio-extra-state { color: var(--gold-light); font-size: max(11px, 0.72rem); letter-spacing: 0.05em; white-space: nowrap; }

.studio-field { display: none; }
.studio-sym.studio-collect { --glow: var(--kit-glow, rgba(255, 92, 40, 0.8)); }
.cell.studio-collect .sym-face { filter: drop-shadow(0 0 4px var(--kit-glow, rgba(255, 92, 40, 0.8))); }
.studio-ladder, .studio-tile { font-family: var(--display); }
.studio-tile-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
padding: 0 6px;
border-radius: 6px 6px 0 0;
background: linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep);
color: var(--kit-accent, var(--gold-light));
font-size: max(11px, 0.72rem);
letter-spacing: 0.06em;
line-height: var(--fg-head, 15px);
white-space: nowrap;
}
.studio-tile-win { color: var(--text); font-variant-numeric: tabular-nums; opacity: 0.8; }
.studio-tile-win.won { color: var(--gold-light); opacity: 1; }
.studio-ladder {
display: flex;
flex-direction: column;
gap: 4px;
padding: 5px 6px;
border: 2px solid var(--gold);
border-radius: 9px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
linear-gradient(180deg, var(--studio-plate, var(--lacquer)), var(--bg-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 8px rgba(0, 0, 0, 0.6);
color: var(--text);
letter-spacing: 0.05em;
}
.studio-ladder-board { display: flex; flex-direction: column; align-items: center; font-size: max(11px, 0.78rem); line-height: 1.1; }
.studio-ladder-won { color: var(--gold-light); }
.studio-tally {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas: "art count" "next next";
align-items: center;
column-gap: 8px;
justify-items: start;
padding: 2px 4px;
border-radius: 7px;
background: rgba(0, 0, 0, 0.35);
}
.studio-tally-art { grid-area: art; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 5px var(--kit-glow, #ff5c28)); }
.studio-tally-count { grid-area: count; font-size: 1.7rem; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.studio-tally-next { grid-area: next; font-size: max(11px, 0.72rem); line-height: 1.1; }
.studio-rungs { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
.studio-rung {
display: flex;
align-items: center;
gap: 6px;
padding: 2px 4px 2px 2px;
border: 1px solid var(--gold-deep);
border-radius: 6px;
opacity: 0.7;
}
.studio-rung-at {
flex: none;
min-width: 26px;
padding: 3px 0;
border-radius: 5px;
background: var(--gold-deep);
text-align: center;
font-size: 0.95rem;
line-height: 1;
}
.studio-rung-text { display: flex; flex-direction: column; min-width: 0; font-size: max(11px, 0.7rem); line-height: 1.05; }
.studio-rung-line { white-space: nowrap; }
.studio-rung.reached { opacity: 1; border-color: var(--gold); background: var(--kit-primary-soft, rgba(255, 200, 60, 0.18)); }
.studio-rung.reached .studio-rung-at { background: var(--gold); color: #1a0b00; }
.studio-rung.next { opacity: 1; border-color: var(--kit-accent, var(--gold-light)); box-shadow: 0 0 6px var(--kit-accent-soft, transparent); }
.studio-ladder-dock { margin-top: auto; }
.studio-ladder-dock .studio-extra { width: 100%; }
.studio-pepper-fly {
position: fixed;
z-index: 70;
object-fit: contain;
pointer-events: none;
filter: drop-shadow(0 0 6px var(--kit-glow, #ff5c28));
}
#app.studio .reel.studio-wild-lock {
box-shadow: 0 0 0 2px var(--gold), 0 0 12px var(--kit-glow, rgba(255, 92, 40, 0.85)),
inset 0 0 14px var(--kit-accent-soft, rgba(255, 170, 40, 0.65));
}
#app.studio .reel.studio-wild-lock::after {
content: "WILD";
position: absolute;
z-index: 4;
left: 50%;
top: 2px;
transform: translateX(-50%);
padding: 0 4px;
border-radius: 3px;
background: linear-gradient(180deg, var(--gold-light), var(--gold));
color: #1a0b00;
font-family: var(--display);
font-size: max(11px, 0.7rem);
line-height: 1.15;
letter-spacing: 0.08em;
pointer-events: none;
}
.sting.collect {
background: radial-gradient(circle at 50% 50%, #fff3c4 0, var(--kit-glow, #ff5c28) 38%, transparent 72%);
}
.studio-rung.near {
border-color: var(--gold-light);
box-shadow: 0 0 8px var(--kit-glow, rgba(255, 92, 40, 0.8));
animation: studio-rung-near 800ms ease-in-out infinite alternate;
}
.studio-rung-banner {
position: absolute;
z-index: 6;
left: 50%;
top: 6px;
transform: translateX(-50%);
max-width: 92%;
padding: 3px 10px;
border: 2px solid var(--gold);
border-radius: 8px;
background: linear-gradient(180deg, rgba(255, 190, 60, 0.95), rgba(200, 60, 10, 0.95));
box-shadow: 0 0 14px var(--kit-glow, rgba(255, 92, 40, 0.9)), 0 3px 8px rgba(0, 0, 0, 0.6);
color: #fff8e6;
font-family: var(--display);
font-size: max(12px, 0.9rem);
letter-spacing: 0.06em;
line-height: 1.15;
text-align: center;
white-space: nowrap;
pointer-events: none;
}
.studio-rung-banner.show { animation: studio-rung-pop 420ms ease-out; }
.studio-tile-win.pop { display: inline-block; animation: studio-tile-pop 380ms ease-out; }
#app.studio.studio-extra-on .grid {
box-shadow: 0 0 12px var(--kit-glow, rgba(255, 92, 40, 0.55)), inset 0 0 8px rgba(255, 150, 40, 0.25);
}
#app.studio.studio-extra-on .studio-extra.on {
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 10px var(--kit-glow, rgba(255, 92, 40, 0.8)), 0 3px 6px rgba(0, 0, 0, 0.55);
}
@keyframes studio-ember { from { filter: drop-shadow(0 0 2px var(--kit-glow, #ff5c28)); } to { filter: drop-shadow(0 0 7px var(--kit-glow, #ff5c28)); } }
@keyframes studio-tile-open { from { transform: scale(0.82); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
@keyframes studio-tally-pulse { 40% { transform: scale(1.35); } }
@keyframes studio-rung-just { from { box-shadow: 0 0 0 0 var(--gold-light); } to { box-shadow: 0 0 0 10px transparent; } }
@keyframes studio-rung-near { from { box-shadow: 0 0 4px var(--kit-glow, rgba(255, 92, 40, 0.5)); } to { box-shadow: 0 0 12px var(--kit-glow, rgba(255, 92, 40, 0.95)); } }
@keyframes studio-rung-pop { from { transform: translateX(-50%) scale(0.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes studio-tile-pop { 40% { transform: scale(1.3); } }
.cell.studio-collect .sym-face { animation: studio-ember 900ms ease-in-out infinite alternate; }
.studio-tile.opening { animation: studio-tile-open 480ms ease-out; }
.studio-tally.pulse .studio-tally-count { display: inline-block; animation: studio-tally-pulse 320ms ease-out; }
.studio-rung.just { animation: studio-rung-just 700ms ease-out; }
@media (prefers-reduced-motion: reduce) {
.cell.studio-collect .sym-face, .studio-tile.opening, .studio-tally.pulse .studio-tally-count, .studio-rung.just,
.studio-rung.near, .studio-rung-banner.show, .studio-tile-win.pop { animation: none; }
.studio-extra-track::after { transition: none; }
}
.pt-studio-ladder .pt-row { grid-template-columns: 1fr 1fr 2fr; }
.pt-studio-ladder .pt-row > span { justify-self: center; text-align: center; }

/* Source: css/motion.css */
.motion-rig { position: absolute; inset: 0; pointer-events: none; }
.motion-rig > .sym-face { display: grid; place-items: center; width: 100%; height: 100%; }
#app.studio .motion-rig > .sym-face > .sym-img { max-width: 90%; max-height: 90%; }
.motion-layer { animation: var(--motion-idle) var(--motion-idle-ms) ease-in-out infinite; transform-origin: var(--motion-pivot); }
.motion-layer.motion-win { animation: var(--motion-win) var(--motion-win-ms) ease-in-out 1; }
.cell.studio-sym.hit .motion-rig .sym-face { animation: none; }
.motion-effect { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.motion-effect.win-frame-overlay { inset: -6%; z-index: 6; overflow: visible; }
.motion-effect.win-frame-overlay .motion-effect-window { width: 100%; height: 100%; max-height: none; aspect-ratio: auto !important; }
.motion-effect.win-frame-overlay.win-frame-fused { bottom: auto; height: calc(100% * var(--win-frame-span, 1) + 12%); }
.cell.win-frame-host { z-index: 2; }
.motion-effect-window { width: 100%; height: auto; max-height: 100%; overflow: hidden; position: relative; }
.motion-effect-strip { display: block; position: absolute; left: 0; top: 0; max-width: none; width: calc(100% * var(--motion-frames)); height: 100%; animation: var(--motion-strip-name) var(--motion-strip-ms) steps(1, end) infinite; }
body.in-lobby #app .motion-layer,
body.in-lobby #app .motion-effect-strip,
body.destination-active #app .motion-layer,
body.destination-active #app .motion-effect-strip,
body.scene-motion-paused .motion-layer,
body.scene-motion-paused .motion-effect-strip,
body:has(#grid :is(.spinning, .cell-spin)) #app .motion-layer,
body:has(#grid :is(.spinning, .cell-spin)) #app .motion-effect:not([data-land]) .motion-effect-strip,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .motion-layer,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .motion-effect-strip,
[hidden] .motion-layer, [hidden] .motion-effect-strip { animation-play-state: paused; }
body.in-lobby #app .motion-effect,
body.destination-active #app .motion-effect,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .motion-effect { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
.motion-layer, .motion-layer.motion-win { animation: none; transform: none; opacity: 1; }
.motion-effect { display: none; }
}
.motion-moment { position: absolute; inset: auto; overflow: visible; z-index: -1; }
.motion-moment .motion-effect-window { width: 100%; height: 100%; max-height: none; }
.motion-moment.moment-rise { left: 34px; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); }
.motion-moment.moment-burst { left: 34px; top: 50%; width: 240px; height: 240px; transform: translate(-50%, -50%); }
.motion-moment.moment-fx { transform: translate(-50%, -50%); opacity: 0; animation: moment-fx-on 1ms steps(1, end) var(--fx-delay, 0ms) forwards; }
.motion-moment.moment-fx .motion-effect-strip { animation-delay: var(--fx-delay, 0ms); }
@keyframes moment-fx-on { to { opacity: 1; } }
.motion-moment.moment-ring { z-index: auto; transform: translate(-50%, -50%); }
.motion-moment.moment-strike { z-index: auto; transform: translate(-50%, -85%); }
.motion-moment.moment-trail { z-index: auto; animation: motion-trail-fly var(--trail-ms) var(--trail-delay) cubic-bezier(0.45, 0, 0.3, 1) both; }
@keyframes motion-trail-fly {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--trail-turn)); }
10% { opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--trail-x) * 0.1), calc(var(--trail-y) * 0.1)) rotate(var(--trail-turn)); }
85% { opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--trail-x) * 0.85), calc(var(--trail-y) * 0.85)) rotate(var(--trail-turn)); }
100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--trail-x), var(--trail-y)) rotate(var(--trail-turn)); }
}
body.scene-motion-paused .motion-moment, body.scene-motion-paused .motion-moment .motion-effect-strip,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) :is(.motion-moment:not(.moment-fx), .motion-moment:not(.moment-fx) .motion-effect-strip) { animation-play-state: paused; }
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) #fx-layer .motion-moment { visibility: hidden; }

@keyframes motion-dragon-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.46875%) rotate(0.6deg) scale(1.004, 1.008); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-dragon-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, 0.625%) rotate(-1.25deg) scale(1.025, 0.975); }
50% { transform: translate(0%, -1.25%) rotate(-5deg) scale(0.985, 1.018); }
78% { transform: translate(0%, 0.3125%) rotate(1deg) scale(1.008, 0.995); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-lion-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.3125%) rotate(0.4deg) scale(1.004, 1.008); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-lion-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, 0.625%) rotate(-0.75deg) scale(1.025, 0.975); }
50% { transform: translate(0%, -1.25%) rotate(-3deg) scale(0.985, 1.018); }
78% { transform: translate(0%, 0.3125%) rotate(0.6deg) scale(1.008, 0.995); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiger-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiger-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.02, 1.02); }
70% { transform: translate(0%, 0.3125%) rotate(0deg) scale(1.008, 1.008); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-koi-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.625%) rotate(1deg) scale(1.004, 1.008); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-koi-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, 0.625%) rotate(-1.5deg) scale(1.025, 0.975); }
50% { transform: translate(0%, -1.25%) rotate(-6deg) scale(0.985, 1.018); }
78% { transform: translate(0%, 0.3125%) rotate(1.2deg) scale(1.008, 0.995); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-turtle-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.375%) rotate(-0.5deg) scale(1.004, 1.008); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-turtle-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, 0.625%) rotate(1deg) scale(1.025, 0.975); }
50% { transform: translate(0%, -1.25%) rotate(4deg) scale(0.985, 1.018); }
78% { transform: translate(0%, 0.3125%) rotate(-0.8deg) scale(1.008, 0.995); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-thunder-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.21874999999999997%) rotate(-0.25deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-thunder-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.625%) rotate(-1.4deg) scale(1.018, 1.018); }
65% { transform: translate(0%, 0.3125%) rotate(0.6deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-wind-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(0.4deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-wind-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, 0%) rotate(3deg) scale(1.015, 1.015); }
70% { transform: translate(0%, 0%) rotate(-1.5deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-cloud-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(-0.10937499999999999%, -0.25%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-cloud-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
35% { transform: translate(-0.3125%, -0.625%) rotate(-1.1deg) scale(1.015, 1.015); }
70% { transform: translate(0.3125%, 0%) rotate(0.6deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-drum-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(-0.3deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-drum-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, 0%) rotate(-1.8deg) scale(1.018, 1.018); }
55.00000000000001% { transform: translate(0%, 0%) rotate(1.5deg) scale(1.012, 1.012); }
80% { transform: translate(0%, 0%) rotate(-0.6deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-bell-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(0.45deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-bell-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, 0%) rotate(3deg) scale(1, 1); }
55.00000000000001% { transform: translate(0%, 0%) rotate(-2.4deg) scale(1, 1); }
80% { transform: translate(0%, 0%) rotate(1.2deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-bison-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.375%) rotate(-0.5deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-bison-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(-0.55deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(2.2deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(-0.77deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-eagle-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.3125%) rotate(0.85deg) scale(1.003, 1.003); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-eagle-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(0.75deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(-3deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(1.05deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-wolf-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.34375000000000006%) rotate(0.65deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-wolf-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(0.675deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(-2.7deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(0.945deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-cougar-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.43749999999999994%) rotate(-0.6deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-cougar-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(-0.625deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(2.5deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(-0.875deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-elk-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.3125%) rotate(-0.55deg) scale(1.003, 1.003); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-elk-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(-0.65deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(2.6deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(-0.91deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-dawn-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.53125%) rotate(0.5deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-dawn-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
16% { transform: translate(0%, 0.46875%) rotate(0.5deg) scale(1.015, 0.98); }
43% { transform: translate(0%, -0.9375%) rotate(-2deg) scale(0.97, 0.98); }
70% { transform: translate(0%, -0.3125%) rotate(0.7deg) scale(0.997, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.21874999999999997%) rotate(-0.35deg) scale(0.985, 0.985); }
43% { transform: translate(0%, -0.46875%) rotate(1.2deg) scale(1.035, 1.035); }
68% { transform: translate(0%, -0.125%) rotate(-0.55deg) scale(1.012, 1.012); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pharaoh-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.21874999999999997%) rotate(-0.35deg) scale(0.985, 0.985); }
43% { transform: translate(0%, -0.46875%) rotate(1.2deg) scale(1.035, 1.035); }
68% { transform: translate(0%, -0.125%) rotate(-0.55deg) scale(1.012, 1.012); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-phoenix-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.17265625%) rotate(0.2125deg) scale(1.0017, 1.0034); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.18593749999999998%) rotate(-0.2975deg) scale(0.98725, 0.98725); }
43% { transform: translate(0%, -0.3984375%) rotate(1.02deg) scale(1.02975, 1.02975); }
68% { transform: translate(0%, -0.10625000000000001%) rotate(-0.4675deg) scale(1.0102, 1.0102); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-panda-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.21874999999999997%) rotate(-0.35deg) scale(0.985, 0.985); }
43% { transform: translate(0%, -0.46875%) rotate(1.2deg) scale(1.035, 1.035); }
68% { transform: translate(0%, -0.125%) rotate(-0.55deg) scale(1.012, 1.012); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-goldrush-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.17265625%) rotate(-0.2125deg) scale(1.0017, 1.0034); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.18593749999999998%) rotate(-0.2975deg) scale(0.98725, 0.98725); }
43% { transform: translate(0%, -0.3984375%) rotate(1.02deg) scale(1.02975, 1.02975); }
68% { transform: translate(0%, -0.10625000000000001%) rotate(-0.4675deg) scale(1.0102, 1.0102); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-tiki-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.21874999999999997%) rotate(-0.35deg) scale(0.985, 0.985); }
43% { transform: translate(0%, -0.46875%) rotate(1.2deg) scale(1.035, 1.035); }
68% { transform: translate(0%, -0.125%) rotate(-0.55deg) scale(1.012, 1.012); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sahara-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.12474406249999999%) rotate(0.153531deg) scale(1.001228, 1.002457); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.13434000000000001%) rotate(-0.214944deg) scale(0.990788, 0.990788); }
43% { transform: translate(0%, -0.2878709375%) rotate(0.73695deg) scale(1.021494, 1.021494); }
68% { transform: translate(0%, -0.076765625%) rotate(-0.337769deg) scale(1.00737, 1.00737); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-pompeii-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium1-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium1-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
19% { transform: translate(0%, 0.25%) rotate(-0.3deg) scale(1.008, 0.986); }
44% { transform: translate(0%, -0.53125%) rotate(0.75deg) scale(0.996, 1.018); }
70% { transform: translate(0%, 0.15625%) rotate(-0.25deg) scale(1.006, 0.994); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium2-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium2-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium3-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium3-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, -0.375%) rotate(0.65deg) scale(1.02, 1.02); }
64% { transform: translate(0%, 0.09375%) rotate(-0.3deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium4-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium4-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium5-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium5-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium6-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-premium6-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-wild-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(-0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-wild-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.21874999999999997%) rotate(-0.35deg) scale(0.985, 0.985); }
43% { transform: translate(0%, -0.46875%) rotate(1.2deg) scale(1.035, 1.035); }
68% { transform: translate(0%, -0.125%) rotate(-0.55deg) scale(1.012, 1.012); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-bonus-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-bonus-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-scatter-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-scatter-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
20% { transform: translate(0%, -0.375%) rotate(0deg) scale(1.024, 1.024); }
40% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
64% { transform: translate(0%, -0.25%) rotate(0deg) scale(1.02, 1.02); }
84% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-upgrade-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-clover-upgrade-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.21874999999999997%) rotate(0deg) scale(0.62, 1); }
45% { transform: translate(0%, -0.3125%) rotate(0deg) scale(0.15, 1); }
67% { transform: translate(0%, -0.15625%) rotate(0deg) scale(0.72, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-mini-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-mini-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-minor-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-minor-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-major-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-major-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-grand-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-jackpot-grand-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-multiplier-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-multiplier-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.17187500000000003%) rotate(0deg) scale(0.986, 0.986); }
43% { transform: translate(0%, -0.625%) rotate(0deg) scale(1.03, 1.03); }
72% { transform: translate(0%, -0.09375%) rotate(0deg) scale(1.009, 1.009); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-collect-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.203125%) rotate(0.25deg) scale(1.002, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-shared-collect-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
18% { transform: translate(0%, 0.15625%) rotate(-0.2deg) scale(1.008, 0.985); }
43% { transform: translate(0%, -0.625%) rotate(0.45deg) scale(0.994, 1.016); }
70% { transform: translate(0%, 0.1875%) rotate(-0.2deg) scale(1.014, 0.987); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-solar-flare-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, -0.21874999999999997%) rotate(-0.25deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-solar-flare-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, -0.625%) rotate(-1.4deg) scale(1.018, 1.018); }
65% { transform: translate(0%, 0.3125%) rotate(0.6deg) scale(1.006, 1.006); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-gravity-vortex-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(0.4deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-gravity-vortex-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
30% { transform: translate(0%, 0%) rotate(3deg) scale(1.015, 1.015); }
70% { transform: translate(0%, 0%) rotate(-1.5deg) scale(1.005, 1.005); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sun-gong-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(-0.3deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-sun-gong-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, 0%) rotate(-1.8deg) scale(1.018, 1.018); }
55.00000000000001% { transform: translate(0%, 0%) rotate(1.5deg) scale(1.012, 1.012); }
80% { transform: translate(0%, 0%) rotate(-0.6deg) scale(1.004, 1.004); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-corona-bell-body-idle {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
50% { transform: translate(0%, 0%) rotate(0.45deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-corona-bell-body-win {
0% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
25% { transform: translate(0%, 0%) rotate(3deg) scale(1, 1); }
55.00000000000001% { transform: translate(0%, 0%) rotate(-2.4deg) scale(1, 1); }
80% { transform: translate(0%, 0%) rotate(1.2deg) scale(1, 1); }
100% { transform: translate(0%, 0%) rotate(0deg) scale(1, 1); }
}

@keyframes motion-effect-win-sparkle {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-coin-burst {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-lightning-strike {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-fire-ring {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-orb-lock {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-wild-column {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-multiplier-flare {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-upgrade-puff {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-jackpot-burst {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-feature-swirl {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-respin-reset {
0% { transform: translateX(0%); }
12.5% { transform: translateX(-12.5%); }
25% { transform: translateX(-25%); }
37.5% { transform: translateX(-37.5%); }
50% { transform: translateX(-50%); }
62.5% { transform: translateX(-62.5%); }
75% { transform: translateX(-75%); }
87.5% { transform: translateX(-87.5%); }
100% { transform: translateX(-87.5%); }
}

@keyframes motion-effect-jackpot-reveal-mini {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-jackpot-reveal-minor {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-jackpot-reveal-major {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-jackpot-reveal-grand {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-pot-fill {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-pot-burst {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-collect-comet {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-free-games-flourish {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-premiere-confetti {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-gem-shatter {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-level-up-rise {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-shockwave-ring {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-star-trail {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-win-frame-gold {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-win-frame-electric {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-win-frame-flame {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-win-frame-jade {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-win-frame-ruby {
0% { transform: translateX(0%); }
8.333333333333332% { transform: translateX(-8.333333333333332%); }
16.666666666666664% { transform: translateX(-16.666666666666664%); }
25% { transform: translateX(-25%); }
33.33333333333333% { transform: translateX(-33.33333333333333%); }
41.66666666666667% { transform: translateX(-41.66666666666667%); }
50% { transform: translateX(-50%); }
58.333333333333336% { transform: translateX(-58.333333333333336%); }
66.66666666666666% { transform: translateX(-66.66666666666666%); }
75% { transform: translateX(-75%); }
83.33333333333334% { transform: translateX(-83.33333333333334%); }
91.66666666666666% { transform: translateX(-91.66666666666666%); }
100% { transform: translateX(-91.66666666666666%); }
}

@keyframes motion-effect-burst-spark {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-burst-star {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-crossette {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-cyan {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-gold {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-pink {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-rainbow {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-firework-violet {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-glitter-fall {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-nova-ring {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

@keyframes motion-effect-shooting-star {
0% { transform: translateX(0%); }
6.25% { transform: translateX(-6.25%); }
12.5% { transform: translateX(-12.5%); }
18.75% { transform: translateX(-18.75%); }
25% { transform: translateX(-25%); }
31.25% { transform: translateX(-31.25%); }
37.5% { transform: translateX(-37.5%); }
43.75% { transform: translateX(-43.75%); }
50% { transform: translateX(-50%); }
56.25% { transform: translateX(-56.25%); }
62.5% { transform: translateX(-62.5%); }
68.75% { transform: translateX(-68.75%); }
75% { transform: translateX(-75%); }
81.25% { transform: translateX(-81.25%); }
87.5% { transform: translateX(-87.5%); }
93.75% { transform: translateX(-93.75%); }
100% { transform: translateX(-93.75%); }
}

/* Source: css/motion-poses.css */
.sym-face.pose-on { position: relative; }
.sym-face.pose-on > .sym-img { visibility: hidden; }
.motion-pose { position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: calc(100% * var(--pose-frames)) 100%; animation: var(--pose-name) var(--pose-ms) step-end 1 forwards; }
.motion-pose.pose-loop { animation-iteration-count: infinite; }
body.in-lobby #app .motion-pose,
body.destination-active #app .motion-pose,
body.scene-motion-paused .motion-pose,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .motion-pose,
[hidden] .motion-pose { animation-play-state: paused; }
body:has(#grid :is(.spinning, .cell-spin)) #app .motion-pose:not([data-pose="land"]) { animation-play-state: paused; }
.motion-pose.pose-idle { animation-delay: var(--idle-delay, 0s); }
.cell:is(.win, .hit) .motion-pose.pose-idle { animation: none; }
@media (prefers-reduced-motion: reduce) {
.motion-pose { display: none; }
.sym-face.pose-on > .sym-img { visibility: visible; }
}

@keyframes motion-pose-thunder-coin-ruby-turn {
0% { background-position: 0% 0; }
0.9259259259259258% { background-position: 12.5% 0; }
1.8518518518518516% { background-position: 25% 0; }
2.7777777777777777% { background-position: 37.5% 0; }
3.7037037037037033% { background-position: 50% 0; }
4.62962962962963% { background-position: 62.5% 0; }
5.555555555555555% { background-position: 75% 0; }
6.481481481481483% { background-position: 87.5% 0; }
7.4074074074074066% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-thunder-coin-ruby-land {
0% { background-position: 100% 0; }
16.666666666666664% { background-position: 50% 0; }
33.33333333333333% { background-position: 62.5% 0; }
50% { background-position: 75% 0; }
66.66666666666666% { background-position: 87.5% 0; }
83.33333333333334% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-thunder-coin-sapphire-turn {
0% { background-position: 0% 0; }
0.9259259259259258% { background-position: 12.5% 0; }
1.8518518518518516% { background-position: 25% 0; }
2.7777777777777777% { background-position: 37.5% 0; }
3.7037037037037033% { background-position: 50% 0; }
4.62962962962963% { background-position: 62.5% 0; }
5.555555555555555% { background-position: 75% 0; }
6.481481481481483% { background-position: 87.5% 0; }
7.4074074074074066% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-thunder-coin-sapphire-land {
0% { background-position: 100% 0; }
16.666666666666664% { background-position: 50% 0; }
33.33333333333333% { background-position: 62.5% 0; }
50% { background-position: 75% 0; }
66.66666666666666% { background-position: 87.5% 0; }
83.33333333333334% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-thunder-coin-violet-turn {
0% { background-position: 0% 0; }
0.9259259259259258% { background-position: 12.5% 0; }
1.8518518518518516% { background-position: 25% 0; }
2.7777777777777777% { background-position: 37.5% 0; }
3.7037037037037033% { background-position: 50% 0; }
4.62962962962963% { background-position: 62.5% 0; }
5.555555555555555% { background-position: 75% 0; }
6.481481481481483% { background-position: 87.5% 0; }
7.4074074074074066% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-thunder-coin-violet-land {
0% { background-position: 100% 0; }
16.666666666666664% { background-position: 50% 0; }
33.33333333333333% { background-position: 62.5% 0; }
50% { background-position: 75% 0; }
66.66666666666666% { background-position: 87.5% 0; }
83.33333333333334% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-blooming-lotus-land {
0% { background-position: 100% 0; }
16.666666666666664% { background-position: 80% 0; }
33.33333333333333% { background-position: 60% 0; }
50% { background-position: 40% 0; }
66.66666666666666% { background-position: 20% 0; }
83.33333333333334% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-storm-cloud-brew {
0% { background-position: 20% 0; }
25% { background-position: 40% 0; }
50% { background-position: 60% 0; }
75% { background-position: 40% 0; }
100% { background-position: 40% 0; }
}

@keyframes motion-pose-dragon-win-win {
0% { background-position: 0% 0; }
11.11111111111111% { background-position: 14.285714285714285% 0; }
22.22222222222222% { background-position: 28.57142857142857% 0; }
33.33333333333333% { background-position: 42.857142857142854% 0; }
44.44444444444444% { background-position: 57.14285714285714% 0; }
55.55555555555556% { background-position: 71.42857142857143% 0; }
66.66666666666666% { background-position: 85.71428571428571% 0; }
77.77777777777779% { background-position: 100% 0; }
88.88888888888889% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-envelope-win-win {
0% { background-position: 0% 0; }
11.11111111111111% { background-position: 14.285714285714285% 0; }
22.22222222222222% { background-position: 28.57142857142857% 0; }
33.33333333333333% { background-position: 42.857142857142854% 0; }
44.44444444444444% { background-position: 57.14285714285714% 0; }
55.55555555555556% { background-position: 71.42857142857143% 0; }
66.66666666666666% { background-position: 85.71428571428571% 0; }
77.77777777777779% { background-position: 100% 0; }
88.88888888888889% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-koi-win-win {
0% { background-position: 0% 0; }
11.11111111111111% { background-position: 14.285714285714285% 0; }
22.22222222222222% { background-position: 28.57142857142857% 0; }
33.33333333333333% { background-position: 42.857142857142854% 0; }
44.44444444444444% { background-position: 57.14285714285714% 0; }
55.55555555555556% { background-position: 71.42857142857143% 0; }
66.66666666666666% { background-position: 85.71428571428571% 0; }
77.77777777777779% { background-position: 100% 0; }
88.88888888888889% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-lion-win-win {
0% { background-position: 0% 0; }
11.11111111111111% { background-position: 14.285714285714285% 0; }
22.22222222222222% { background-position: 28.57142857142857% 0; }
33.33333333333333% { background-position: 42.857142857142854% 0; }
44.44444444444444% { background-position: 57.14285714285714% 0; }
55.55555555555556% { background-position: 71.42857142857143% 0; }
66.66666666666666% { background-position: 85.71428571428571% 0; }
77.77777777777779% { background-position: 100% 0; }
88.88888888888889% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-tree-wild-win {
0% { background-position: 0% 0; }
14.285714285714285% { background-position: 20% 0; }
28.57142857142857% { background-position: 40% 0; }
42.857142857142854% { background-position: 60% 0; }
57.14285714285714% { background-position: 80% 0; }
71.42857142857143% { background-position: 100% 0; }
85.71428571428571% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-turtle-win-win {
0% { background-position: 0% 0; }
11.11111111111111% { background-position: 14.285714285714285% 0; }
22.22222222222222% { background-position: 28.57142857142857% 0; }
33.33333333333333% { background-position: 42.857142857142854% 0; }
44.44444444444444% { background-position: 57.14285714285714% 0; }
55.55555555555556% { background-position: 71.42857142857143% 0; }
66.66666666666666% { background-position: 85.71428571428571% 0; }
77.77777777777779% { background-position: 100% 0; }
88.88888888888889% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-nova-coin-turn {
0% { background-position: 0% 0; }
0.9259259259259258% { background-position: 12.5% 0; }
1.8518518518518516% { background-position: 25% 0; }
2.7777777777777777% { background-position: 37.5% 0; }
3.7037037037037033% { background-position: 50% 0; }
4.62962962962963% { background-position: 62.5% 0; }
5.555555555555555% { background-position: 75% 0; }
6.481481481481483% { background-position: 87.5% 0; }
7.4074074074074066% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

@keyframes motion-pose-nova-coin-land {
0% { background-position: 100% 0; }
16.666666666666664% { background-position: 50% 0; }
33.33333333333333% { background-position: 62.5% 0; }
50% { background-position: 75% 0; }
66.66666666666666% { background-position: 87.5% 0; }
83.33333333333334% { background-position: 0% 0; }
100% { background-position: 0% 0; }
}

/* Source: css/studio-show.css */
.app.studio.studio-backdrop {
background-image: var(--studio-backdrop);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.app.studio.studio-backdrop::before { background: transparent; }
.app.studio.studio-backdrop .studio-scene { opacity: 0.45; }

.studio-show.studio-show-backdrop .studio-show-scene { opacity: 1; }

/* Source: css/screens.css */
.sheet.destination-screen {
align-items: stretch;
padding: 0;
background: var(--bg-deep);
transition: none;
}

.sheet.destination-screen > .sheet-panel {
width: 100%;
max-width: none;
height: 100%;
max-height: none;
min-height: 0;
padding: calc(var(--safe-top) + 82px) max(20px, var(--safe-right)) calc(var(--safe-bottom) + 8px) max(20px, var(--safe-left));
overflow: hidden;
border: 0;
border-radius: 0;
background-color: var(--bg-deep);
box-shadow: none;
transform: none;
opacity: 1;
transition: none;
visibility: inherit;
isolation: isolate;
}

.sheet.destination-screen.open > .sheet-panel {
transform-origin: 50% 50%;
animation: destination-panel-scale 250ms ease-out backwards,
destination-panel-fade 200ms ease backwards;
}

@keyframes destination-panel-scale {
from { transform: scale(0.96); }
to { transform: none; }
}

@keyframes destination-panel-fade {
from { opacity: 0; }
to { opacity: 1; }
}

.destination-screen .sheet-title {
top: calc(var(--safe-top) + 20px);
left: max(20px, var(--safe-left));
right: max(76px, calc(var(--safe-right) + 60px));
width: auto;
min-width: 0;
max-width: none;
padding: 0;
transform: none;
clip-path: none;
background-color: transparent;
background-image: var(--gold-bevel);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
font-family: var(--title);
word-spacing: 0.12em;
font-size: 1.4rem;
line-height: 1.3;
letter-spacing: 0.025em;
text-align: left;
filter: drop-shadow(0 2px 0 var(--gold-deep));
z-index: 2;
}

:is(.destination-screen, .wheel) .screen-close {
position: absolute;
top: calc(var(--safe-top) + 14px);
right: max(16px, var(--safe-right));
z-index: 3;
display: grid;
place-items: center;
width: 46px;
height: 46px;
min-width: 46px;
min-height: 46px;
padding: 11px;
border: 2px solid var(--gold-light);
border-radius: 50%;
background: linear-gradient(180deg, var(--violet), var(--sheet-base));
color: var(--text);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--bg-deep);
transform: none;
transition: transform 100ms ease;
}

:is(.destination-screen, .wheel) .screen-close svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 3;
stroke-linecap: round;
}

:is(.destination-screen, .wheel) .screen-close:active { transform: translateY(2px); }
.destination-screen button:focus-visible {
outline: 3px solid var(--neon-cyan);
outline-offset: 3px;
}

.destination-screen .inbox-head { position: static; }

body.destination-active #lobby,
body.destination-active #app { visibility: hidden; }

body.destination-active > :is(#lobby, #app) *,
body.destination-active > :is(#lobby, #app) *::before,
body.destination-active > :is(#lobby, #app) *::after {
animation-play-state: paused !important;
}

@media (min-width: 760px) {
.sheet.destination-screen > .sheet-panel {
padding-left: max(32px, var(--safe-left));
padding-right: max(32px, var(--safe-right));
}
.destination-screen .sheet-title { left: max(32px, var(--safe-left)); }
}

@media (prefers-reduced-motion: reduce) {
.sheet.destination-screen.open > .sheet-panel { animation: none; }
:is(.destination-screen, .wheel) .screen-close { transition: none; }
}

/* Source: css/store-screen.css */
#shop.destination-screen {
--shop-velvet-deep: #210914;
--shop-velvet: #580c2b;
--shop-velvet-lit: #9b2050;
--shop-display-top: #6b1647;
--shop-display-base: #300d25;
--shop-glass: #240a19;
--shop-gold-hairline: rgba(255, 212, 90, 0.24);
background:
radial-gradient(ellipse at 50% 8%, rgba(255, 212, 90, 0.13), transparent 45%),
radial-gradient(ellipse at 50% 65%, var(--shop-velvet-lit), transparent 72%),
linear-gradient(180deg, var(--shop-velvet), var(--shop-velvet-deep));
background-color: var(--shop-velvet-deep);
}

#shop.destination-screen .shop-panel {
padding-top: calc(var(--safe-top) + 66px);
background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
url("../art/ui/shop-background.webp") center / cover no-repeat;
background-color: var(--shop-velvet-deep);
}

#shop.destination-screen .shop-panel::before { content: none; }

#shop.destination-screen .shop-panel::after {
content: "";
position: absolute;
top: calc(var(--safe-top) + 64px);
left: 20px;
right: 20px;
height: 1px;
background: linear-gradient(90deg, transparent, var(--gold-dark) 20% 80%, transparent);
pointer-events: none;
}

#shop.destination-screen .sheet-title {
letter-spacing: 0.025em;
}

#shop.destination-screen .screen-close {
background: linear-gradient(180deg, var(--shop-velvet-lit), var(--shop-velvet-deep));
color: var(--gold-light);
}

#shop.destination-screen .shop-body {
position: relative;
width: 100%;
max-width: 1100px;
align-self: center;
margin: 0;
padding: 2px 4px 6px;
overflow: clip;
touch-action: manipulation;
}

#shop.destination-screen .pack-list {
flex: 1 1 0;
min-height: 0;
height: 100%;
grid-template-rows: repeat(3, minmax(0, 1fr));
gap: 6px 13px;
padding: 0 1px;
}

#shop.destination-screen .pack {
min-height: 0;
display: grid;
grid-template-rows: minmax(40px, 1fr) 18px 15px 22px 14px 32px;
justify-items: center;
padding: 2px 6px;
border-radius: 9px;
border: 2px solid var(--gold);
background:
radial-gradient(ellipse at 50% 30%, rgba(255, 212, 90, 0.14), transparent 58%),
linear-gradient(180deg, var(--shop-display-top), var(--shop-display-base) 75%, var(--shop-glass));
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.4), 0 4px 0 var(--gold-deep);
}

#shop.destination-screen .pack::before {
content: "";
position: absolute;
inset: 4px;
border: 1px solid var(--shop-gold-hairline);
border-radius: 5px;
pointer-events: none;
}

#shop.destination-screen .pack-display {
position: relative;
width: 100%;
height: 100%;
min-height: 0;
overflow: hidden;
}

#shop.destination-screen .pack-art {
position: absolute;
bottom: -28px;
left: 50%;
width: clamp(88px, calc(100cqh - 70px), 124px);
margin: 0;
transform: translateX(-50%);
filter: drop-shadow(0 6px 3px rgba(0, 0, 0, 0.5));
}

#shop.destination-screen .pack-art img { transform: translateY(-14px); }

#shop.destination-screen .has-planet .pack-art { left: 32%; }

#shop.destination-screen .pack-planet {
position: absolute;
bottom: 0;
right: 18%;
width: clamp(38px, calc(100cqh - 106px), 80px);
height: clamp(38px, calc(100cqh - 106px), 80px);
filter: drop-shadow(0 0 5px var(--p-glow));
}

#shop.destination-screen .pack-art::before {
font-size: 14px;
}

#shop.destination-screen .pack-art::after {
font-size: 11px;
}

#shop.destination-screen .pack-ribbon {
width: calc(100% + 10px);
padding: 2px 9px;
font-size: 12px;
letter-spacing: 0.06em;
}

#shop.destination-screen .pack-ribbon::before {
background:
linear-gradient(180deg, var(--gold), var(--gold-dark)) top / 100% 1px no-repeat,
linear-gradient(180deg, var(--gold), var(--gold-dark)) bottom / 100% 1px no-repeat,
linear-gradient(180deg, var(--shop-velvet-lit), var(--shop-velvet) 60%, var(--shop-velvet-deep));
}

#shop.destination-screen .pack-amount {
gap: 4px;
margin-top: 0;
min-height: 0;
padding-inline: 3px;
}

#shop.destination-screen .pack {
height: 100%;
}

#shop.destination-screen .pack-ribbon {
margin-bottom: 0;
}

#shop.destination-screen .pack-was {
position: relative;
z-index: 1;
display: block;
max-width: 100%;
margin-top: 0;
overflow: hidden;
color: var(--text);
font-family: var(--display);
font-size: 13px;
letter-spacing: 0.015em;
line-height: 1.05;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
text-decoration: line-through;
text-decoration-color: color-mix(in srgb, var(--ruby) 62%, transparent);
text-decoration-thickness: 1px;
}

#shop.destination-screen .pack-was[hidden] {
visibility: hidden;
}

#shop.destination-screen .pack-coin.credits-coin {
width: 17px;
height: 17px;
}

#shop.destination-screen .pack-coins {
max-width: calc(100% - 21px);
font-size: 19px;
letter-spacing: 0;
}

#shop.destination-screen .pack-price {
width: 86%;
min-height: 32px;
margin-top: 0;
border-radius: 5px;
font-size: 18px;
}

#shop.destination-screen .pack-tag {
top: 9px;
left: 4px;
padding: 2px 4px;
font-size: 11px;
border-radius: 3px;
transform: rotate(-7deg);
}

#shop.destination-screen .pack-tag-best {
margin-top: 1px;
padding-top: 1px;
}

#shop.destination-screen .pack-card {
min-height: 0;
container-type: size;
border-radius: 9px;
}

#shop.destination-screen .pack-card.pick::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: 0 0 0 2px var(--gold-light), 0 0 6px 2px var(--gold), inset 0 0 12px rgba(255, 212, 90, 0.5);
opacity: 0.5;
pointer-events: none;
}

#shop.destination-screen.open .pack-card.pick::after {
animation: pack-pick-halo 2.4s ease-in-out infinite;
}

@keyframes pack-pick-halo {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}

#shop.destination-screen .pack-tag.tag-top-pick {
--tag-neon: var(--neon-gold);
background: linear-gradient(180deg, var(--gold-deep), var(--navy-deep));
}

#shop.destination-screen .pack-card.bought {
animation: pack-bought 400ms ease-out;
}

#shop.destination-screen .pack-card.bought::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border-radius: inherit;
background: radial-gradient(ellipse at 50% 40%, var(--bought-flash-hi), var(--bought-flash-lo) 60%, transparent);
opacity: 0;
pointer-events: none;
animation: pack-bought-flash 400ms ease-out;
}

@keyframes pack-bought {
0%, 100% { transform: none; }
35% { transform: translateY(-6px); }
}

@keyframes pack-bought-flash {
0%, 100% { opacity: 0; }
25% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
#shop.destination-screen .pack-card.pick::after,
#shop.destination-screen.open .pack-card.pick::after {
animation: none;
opacity: 0.8;
}

#shop.destination-screen .pack-card.bought,
#shop.destination-screen .pack-card.bought::before {
animation: none;
}
}

#shop.destination-screen .pack-info::before {
background: linear-gradient(180deg, var(--shop-display-top), var(--shop-glass));
}

#shop.destination-screen .pack:focus-visible,
#shop.destination-screen .pack-info:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: 4px;
}

@media (min-width: 700px) {
#shop.destination-screen .pack-list {
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-rows: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 700px) and (max-height: 500px) {
#shop.destination-screen .pack-tag { font-size: 11px; }
#shop.destination-screen .pack-ribbon { letter-spacing: 0; }
}

#shop.destination-screen .pack-points {
margin-top: 0;
color: var(--text);
font-size: 12px;
letter-spacing: 0.025em;
line-height: 1.1;
}

#shop.destination-screen .pack-points.reach { color: var(--gold); }

#shop.destination-screen .pack:disabled {
opacity: 0.65;
}

.level-up.purchase-up {
padding-top: calc(var(--safe-top) + 32px);
background: radial-gradient(circle at 50% 42%, var(--purchase-glow), var(--purchase-plum) 48%, var(--purchase-night) 76%), var(--bg-deep);
}

.level-up-title.purchase-title {
font-size: min(2rem, 8vw);
white-space: nowrap;
}

.purchase-up.tier-0 .pearl-open-rays { opacity: 0.35; }
.purchase-up.tier-1 .pearl-open-rays { opacity: 0.6; }
.purchase-up.tier-2 .pearl-open-rays { opacity: 0.9; }

.purchase-hero {
position: relative;
display: flex;
justify-content: center;
}

.purchase-art.pack-art {
margin-bottom: 0;
}

.purchase-up.tier-0 .purchase-art.pack-art { width: 112px; }
.purchase-up.tier-1 .purchase-art.pack-art { width: 140px; }
.purchase-up.tier-2 .purchase-art.pack-art { width: 172px; }

.purchase-coin.credits-coin {
width: 96px;
height: 96px;
}

.purchase-up.tier-2 .purchase-coin.credits-coin {
width: 128px;
height: 128px;
}

.purchase-prizes .spire-up-prize {
display: grid;
flex: 0 1 104px;
min-width: 0;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 60px minmax(1.4rem, auto) auto;
align-items: center;
justify-items: center;
row-gap: 4px;
}

.purchase-prizes.four .spire-up-prize {
flex-basis: 82px;
}

.purchase-prizes .spire-up-prize.coins {
flex-basis: 144px;
}

.purchase-prizes .spire-up-amount { letter-spacing: 0.02em; }

.purchase-prizes .coins .spire-up-amount {
width: 100%;
white-space: nowrap;
}

.purchase-prizes .spire-up-label {
margin: 0;
color: var(--text);
font-size: 13px;
letter-spacing: 0.04em;
line-height: 1.1;
text-align: center;
white-space: normal;
overflow-wrap: anywhere;
}

.purchase-prizes .spire-up-mark.credits-coin {
box-shadow: none;
}

.purchase-points-mark {
width: 60px;
height: 60px;
object-fit: contain;
}

html.landscape .purchase-up.show > .purchase-hero {
grid-column: 1;
grid-row: 1 / span 4;
align-self: center;
margin: 0;
}

.purchase-collect.reward-collect {
display: block;
width: 100%;
max-width: 240px;
color: var(--gold-ink);
text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
.purchase-up .pearl-open-rays {
animation: none;
}

.purchase-up .spire-up-prize {
animation: none;
}
}

/* Source: css/rush-screen.css */
#rush-sheet.destination-screen {
--rush-night: #060e25;
--rush-indigo: #16274d;
--rush-teal: #103f4b;
--rush-glass: #0b203b;
--rush-ice: #99f3ef;
--rush-nebula: rgba(32, 185, 185, 0.14);
--rush-orbit: rgba(123, 230, 230, 0.12);
--rush-rail: rgba(241, 199, 103, 0.48);
}

#rush-sheet.destination-screen .rush-panel {
gap: 14px;
background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
url("../art/ui/rush-background.webp") center / cover no-repeat;
background-color: var(--rush-night);
}

#rush-sheet.destination-screen .sheet-title {
letter-spacing: 0.12em;
}

#rush-sheet.destination-screen .rush-head {
position: relative;
flex-direction: column;
align-items: stretch;
gap: 7px;
padding: 4px 2px 0;
}

#rush-sheet.destination-screen .rush-meter {
flex: none;
height: 54px;
}

#rush-sheet.destination-screen .rush-meter-mark {
width: 52px;
height: 52px;
filter: drop-shadow(0 0 18px var(--neon-cyan));
}

#rush-sheet.destination-screen .rush-meter-bar {
height: 33px;
margin: 0 18px 0 26px;
border-radius: 4px;
background: linear-gradient(180deg, var(--rush-night), var(--rush-glass));
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 -1px 0 var(--rush-ice), 0 0 0 1px var(--gold-deep);
}

#rush-sheet.destination-screen .rush-meter-fill {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 45%, rgba(0, 0, 0, 0.18)),
linear-gradient(90deg, var(--neon-pink), var(--magenta) 48%, var(--neon-cyan));
}

#rush-sheet.destination-screen .rush-meter-text {
left: 54px;
right: 36px;
font-size: 1rem;
letter-spacing: 0.07em;
}

#rush-sheet.destination-screen .rush-meter-tier {
width: 39px;
height: 39px;
font-size: 1.05rem;
}

#rush-sheet.destination-screen .rush-meter-boost {
left: 25px;
top: -3px;
bottom: auto;
min-width: 27px;
height: 20px;
font-size: 0.75rem;
line-height: 18px;
text-align: center;
}

#rush-sheet.destination-screen .rush-head-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-width: 0;
}

#rush-sheet.destination-screen .rush-overflow {
min-width: 0;
margin: 0;
color: var(--text);
font-family: var(--body);
font-size: 0.8125rem;
line-height: 1.2;
text-shadow: 0 1px 2px #000;
}

#rush-sheet.destination-screen .rush-overflow.on,
#rush-sheet.destination-screen .rush-overflow.full {
color: var(--neon-cyan);
font-family: var(--display);
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
}

#rush-sheet.destination-screen .rush-overflow.full {
color: var(--gold-light);
}

#rush-sheet.destination-screen .rush-timer {
align-self: flex-end;
margin: 0;
padding: 3px 8px;
background: var(--rush-night);
font-size: 0.75rem;
}

#rush-sheet.destination-screen .rush-tabs { gap: 5px; }

#rush-sheet.destination-screen .rush-tab {
min-height: 48px;
border: 1px solid var(--rush-orbit);
border-bottom: 3px solid var(--gold-deep);
border-radius: 4px;
background: linear-gradient(180deg, var(--rush-indigo), var(--rush-night));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 rgba(0, 0, 0, 0.4);
}

#rush-sheet.destination-screen .rush-tab.active {
color: var(--text);
border-color: var(--rush-ice);
border-bottom-color: var(--gold-light);
background: linear-gradient(180deg, var(--rush-teal), var(--rush-glass));
}

#rush-sheet.destination-screen .rush-tab-label {
font-size: 0.9rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

#rush-sheet.destination-screen .rush-tab.active .rush-tab-label { color: var(--rush-ice); text-shadow: 0 1px 0 #000; }
#rush-sheet.destination-screen .rush-tab .rush-tab-count { top: -5px; right: -3px; }

#rush-sheet.destination-screen .rush-page {
gap: 8px;
scrollbar-width: thin;
scrollbar-color: var(--gold-deep) transparent;
}

#rush-sheet.destination-screen :is(#rush-daily, #rush-task-list).scrolled {
mask-image: linear-gradient(transparent, #000 8px);
}

#rush-sheet.destination-screen .rush-page-timer {
align-self: flex-start;
margin: 1px 0 0;
padding: 4px 8px;
font-size: 0.75rem;
background: var(--rush-night);
}

#rush-sheet.destination-screen .rush-mission {
grid-template-columns: 70px minmax(0, 1fr) 76px;
min-height: 110px;
gap: 10px;
padding: 12px 0;
border-bottom-color: var(--rush-rail);
}

#rush-sheet.destination-screen .rush-mission-art {
width: 70px;
height: 90px;
border: 1px solid var(--gold);
border-radius: 4px;
object-position: 50% 18%;
box-shadow: 0 0 0 1px var(--gold-deep), 0 5px 8px rgba(0, 0, 0, 0.4);
}

#rush-sheet.destination-screen .rush-mission-body { gap: 9px; }
#rush-sheet.destination-screen .rush-mission-text { font-size: 0.95rem; line-height: 1.25; letter-spacing: 0.035em; }
.rush-mission-event {
display: block;
font-family: var(--display);
font-size: 0.8rem;
color: var(--gold-light);
text-shadow: 0 1px 0 #000;
letter-spacing: 0.04em;
}
.rush-mission-event[hidden] { display: none; }
#rush-sheet.destination-screen .rush-mission-meter { gap: 8px; }
#rush-sheet.destination-screen .rush-mission-pct { min-width: 34px; font-size: 0.95rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-mission-bet { flex-wrap: wrap; gap: 4px; }
#rush-sheet.destination-screen .rush-mission-bet-name { font-size: 0.7rem; }
#rush-sheet.destination-screen .rush-mission-bet-coins { font-size: 0.82rem; }
#rush-sheet.destination-screen .rush-mission-side { gap: 9px; }
#rush-sheet.destination-screen .rush-reward { justify-content: center; gap: 5px; }
#rush-sheet.destination-screen .rush-reward-mark { width: 20px; height: 20px; }
#rush-sheet.destination-screen .rush-reward-text { font-size: 1.1rem; }
#rush-sheet.destination-screen .rush-key { min-height: 44px; border-radius: 5px; }
#rush-sheet.destination-screen .rush-key-label { font-size: 1rem; }

#rush-sheet.destination-screen .rush-bar {
height: 9px;
border-radius: 3px;
background: var(--rush-night);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.75), 0 1px 0 var(--rush-orbit);
filter: none;
}

#rush-sheet.destination-screen .rush-bar-fill {
border-radius: 2px;
background: linear-gradient(180deg, var(--rush-ice), var(--neon-cyan) 42%, var(--rush-teal));
}

#rush-sheet.destination-screen .rush-task.done .rush-bar-fill {
background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
}

#rush-sheet.destination-screen .rush-gift {
position: relative;
grid-template-columns: 82px minmax(0, 1fr) 82px;
min-height: 112px;
padding: 12px 0 16px;
gap: 10px;
border-bottom-color: var(--rush-rail);
}

#rush-sheet.destination-screen .rush-gift-art {
width: 82px;
height: 80px;
background: radial-gradient(ellipse, var(--rush-nebula), transparent 70%);
}

#rush-sheet.destination-screen .rush-gift-art .chest { width: 70px; height: 52px; transform: rotate(-7deg); }
#rush-sheet.destination-screen .rush-gift-art .chest::after { width: 16px; height: 16px; margin-left: -8px; }
#rush-sheet.destination-screen .rush-gift-name { font-size: 1.5rem; letter-spacing: 0.08em; }
#rush-sheet.destination-screen .rush-gift-text { font-size: 0.8125rem; line-height: 1.35; }
#rush-sheet.destination-screen .rush-gift-body { gap: 6px; }
#rush-sheet.destination-screen .rush-gift-open { min-height: 52px; border-radius: 5px; }

#rush-sheet.destination-screen .rush-task {
grid-template-columns: 30px minmax(0, 1fr) 65px;
min-height: 68px;
gap: 11px;
padding: 10px 0;
border-bottom-color: var(--rush-orbit);
}

#rush-sheet.destination-screen .rush-task-icon { color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-task-text { font-size: 0.9rem; }
#rush-sheet.destination-screen .rush-task-body { gap: 8px; }
#rush-sheet.destination-screen .rush-task-count { font-size: 0.75rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-week { margin-top: auto; padding: 16px 0 8px; gap: 12px; }
#rush-sheet.destination-screen .rush-week-name { color: var(--gold-light); font-size: 0.95rem; }
#rush-sheet.destination-screen .rush-week-timer { padding: 3px 6px; background: var(--rush-night); font-size: 0.75rem; }
#rush-sheet.destination-screen .rush-week-steps { gap: 3px; }
#rush-sheet.destination-screen .rush-step {
gap: 5px;
padding: 7px 1px;
background: none;
clip-path: none;
box-shadow: inset 0 -2px 0 var(--rush-orbit);
}

#rush-sheet.destination-screen .rush-step.done { background: none; box-shadow: inset 0 -3px 0 var(--gold); }
#rush-sheet.destination-screen .rush-step-day { font-size: 0.75rem; }
#rush-sheet.destination-screen .rush-step-mark { height: 22px; }
#rush-sheet.destination-screen .rush-step-coins { font-size: 0.875rem; }
#rush-sheet.destination-screen .rush-week-ready { padding-top: 5px; grid-template-columns: 28px minmax(0, 1fr) 96px; }
#rush-sheet.destination-screen .rush-week-ready-coins { font-size: 1.05rem; white-space: normal; }
#rush-sheet.destination-screen .rush-week-collect { min-height: 48px; border-radius: 5px; font-size: 1rem; }

#rush-sheet.destination-screen .rush-boosters { flex: none; padding-bottom: 6px; border-bottom: 1px solid var(--rush-rail); }
#rush-sheet.destination-screen .rush-booster { grid-template-columns: 38px minmax(0, 1fr) 92px; min-height: 52px; gap: 9px; }
#rush-sheet.destination-screen .rush-booster + .rush-booster { border-top-color: var(--rush-orbit); }
#rush-sheet.destination-screen .rush-booster-mark { width: 38px; height: 38px; }
#rush-sheet.destination-screen .rush-booster-name { font-size: 0.88rem; }
#rush-sheet.destination-screen .rush-booster-state { font-size: 0.72rem; }
#rush-sheet.destination-screen .rush-boost-buy { min-height: 44px; border-radius: 5px; font-size: 1rem; }

#rush-sheet.destination-screen #rush-tower .rush-tower-list {
gap: 8px;
padding: 12px 11px 22px;
background:
linear-gradient(90deg, transparent 7px, var(--rush-rail) 7px 9px, transparent 9px calc(100% - 9px), var(--rush-rail) calc(100% - 9px) calc(100% - 7px), transparent calc(100% - 7px)),
radial-gradient(ellipse at 50% 45%, var(--rush-nebula), transparent 65%);
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 10px), transparent);
mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 10px), transparent);
}

#rush-sheet.destination-screen .rush-tier {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 74px;
grid-template-rows: 31px minmax(30px, auto);
gap: 6px 6px;
min-height: 90px;
padding: 4px 8px 14px;
}

#rush-sheet.destination-screen .rush-tier::before {
left: -7px;
right: -7px;
bottom: 2px;
height: 9px;
background: var(--gold-rim);
opacity: 1;
clip-path: polygon(0 0, 6% 43%, 94% 43%, 100% 0, 98% 73%, 92% 100%, 8% 100%, 2% 73%);
}

#rush-sheet.destination-screen .rush-tier .spire-ribbon {
grid-column: 1 / -1;
justify-self: center;
width: 160px;
height: 31px;
}

#rush-sheet.destination-screen .rush-tier .spire-ribbon-name { font-size: 1rem; letter-spacing: 0.12em; }
#rush-sheet.destination-screen .rush-tier-need { height: auto; min-height: 30px; padding: 0; justify-content: flex-start; gap: 6px; border-radius: 3px; }
#rush-sheet.destination-screen .rush-tier-text { font-size: 0.95rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-tier-mark { width: 20px; height: 20px; }
#rush-sheet.destination-screen .rush-tier .spire-prize { justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
#rush-sheet.destination-screen .rush-tier .spire-prize:has(.rush-tier-boost) { flex-wrap: nowrap; }
#rush-sheet.destination-screen .rush-tier:has(.rush-tier-boost) { grid-template-columns: minmax(0, 1fr) max-content 74px; }
@media (max-width: 359px) {
#rush-sheet.destination-screen .rush-tier .spire-prize:has(.rush-tier-boost) { flex-wrap: wrap; }
#rush-sheet.destination-screen .rush-tier:has(.rush-tier-boost) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 74px; }
}
#rush-sheet.destination-screen .rush-tier .spire-check { margin-left: 4px; }
#rush-sheet.destination-screen .rush-tier .spire-prize-coins { font-size: 1.35rem; letter-spacing: 0.04em; }
#rush-sheet.destination-screen .rush-tier.paid { opacity: 0.78; }
#rush-sheet.destination-screen .rush-tier .spire-coin { width: 19px; height: 19px; }
#rush-sheet.destination-screen .rush-tier .spire-planet { width: 20px; height: 20px; font-size: 20px; }
#rush-sheet.destination-screen .rush-tier .rush-pass-cell { align-self: stretch; }
#rush-sheet.destination-screen .rush-tier .rush-pass-cell .spire-planet { width: 18px; height: 18px; font-size: 18px; }

#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-need {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
padding: 4px 6px;
background: var(--rush-glass);
box-shadow: 0 0 18px var(--rush-nebula), inset 0 0 0 1px var(--rush-ice);
}

#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-need { align-items: center; row-gap: 3px; column-gap: 5px; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-bar { grid-column: 2; grid-row: 2; width: 100%; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-text { grid-column: 1 / -1; grid-row: 1; justify-self: end; font-size: 0.8rem; text-align: right; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-lock { grid-column: 1; grid-row: 1; justify-self: start; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-you { grid-column: 1; grid-row: 2; padding: 1px 4px; font-size: 0.7rem; }
#rush-sheet.destination-screen .rush-tier.vault { min-height: 108px; }
#rush-sheet.destination-screen .rush-tier.vault .spire-ribbon { width: 200px; height: 34px; }
#rush-sheet.destination-screen .rush-tier.vault .spire-ribbon-name { font-size: 1.2rem; }
#rush-sheet.destination-screen .rush-tier.vault .spire-prize-coins { font-size: 1.6rem; }

@media (max-height: 720px) and (max-width: 759px) {
#rush-sheet.destination-screen .rush-panel { gap: 9px; }
#rush-sheet.destination-screen .rush-head { gap: 4px; padding-top: 0; }
#rush-sheet.destination-screen .rush-meter { height: 46px; }
#rush-sheet.destination-screen .rush-meter-mark { width: 44px; height: 44px; }
#rush-sheet.destination-screen .rush-meter-text { left: 46px; font-size: 0.9rem; }
#rush-sheet.destination-screen .rush-tab { min-height: 44px; }
#rush-sheet.destination-screen .rush-page { gap: 5px; }
#rush-sheet.destination-screen .rush-mission { min-height: 96px; padding: 9px 0; }
#rush-sheet.destination-screen .rush-mission-art { height: 78px; }
#rush-sheet.destination-screen .rush-mission-body { gap: 6px; }
#rush-sheet.destination-screen .rush-gift { min-height: 94px; padding: 6px 0 10px; }
#rush-sheet.destination-screen .rush-task { min-height: 60px; padding: 8px 0; }
#rush-sheet.destination-screen .rush-week { padding-top: 10px; gap: 8px; }
#rush-sheet.destination-screen .rush-booster { min-height: 49px; }
}

@media (min-width: 760px) {
#rush-sheet.destination-screen .rush-panel { gap: 12px; }
#rush-sheet.destination-screen .rush-head,
#rush-sheet.destination-screen .rush-tabs { width: min(760px, 100%); align-self: center; }
#rush-sheet.destination-screen .rush-head { flex-direction: row; align-items: center; }
#rush-sheet.destination-screen .rush-meter { flex: 1; }
#rush-sheet.destination-screen .rush-timer { align-self: center; }
#rush-sheet.destination-screen .rush-head-line { flex: none; max-width: 52%; }
#rush-sheet.destination-screen .rush-page { width: min(1000px, 100%); align-self: center; }
#rush-sheet.destination-screen #rush-mission-list,
#rush-sheet.destination-screen #rush-bolt-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#rush-sheet.destination-screen .rush-mission { grid-template-columns: 72px minmax(0, 1fr); padding: 12px 0; align-items: start; }
#rush-sheet.destination-screen .rush-mission-art { grid-row: 1 / 3; width: 72px; height: 126px; }
#rush-sheet.destination-screen .rush-mission-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
#rush-sheet.destination-screen .rush-key { min-width: 84px; }
#rush-sheet.destination-screen #rush-daily { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 12px 36px; }
#rush-sheet.destination-screen #rush-daily[hidden] { display: none; }
#rush-sheet.destination-screen #rush-daily-timer { grid-column: 1; justify-self: start; }
#rush-sheet.destination-screen .rush-gift { grid-column: 1; }
#rush-sheet.destination-screen #rush-task-list { grid-column: 2; grid-row: 1 / 4; }
#rush-sheet.destination-screen .rush-week { grid-column: 1; margin-top: 0; }
#rush-sheet.destination-screen #rush-tower { width: min(760px, 100%); }
#rush-sheet.destination-screen .rush-boosters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
#rush-sheet.destination-screen .rush-booster + .rush-booster { border-top: 0; }
#rush-sheet.destination-screen #rush-tower .rush-tower-list { padding-left: 20px; padding-right: 20px; }
#rush-sheet.destination-screen .rush-tier { padding-left: 70px; padding-right: 70px; }
}

#rush-sheet.destination-screen .rush-stretch .credits-coin.rush-reward-mark { width: 18px; height: 18px; }
#rush-sheet.destination-screen .rush-stretch.shut { opacity: 0.62; }
#rush-sheet.destination-screen .rush-stretch.open .rush-task-icon { color: var(--gold-light); }

/* Source: css/voyage-screen.css */
:root {
--voyage-night: #07041a;
--voyage-deep: #150a38;
--voyage-glass: #0b0826;
--voyage-orbit: rgba(222, 214, 255, 0.1);
--voyage-line: rgba(210, 200, 255, 0.34);
--voyage-dim: rgba(214, 206, 255, 0.5);
}

#voyage-sheet.destination-screen .voyage-panel {
gap: 10px;
background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
url("../art/ui/voyage-background.webp") center / cover no-repeat;
background-color: var(--voyage-night);
}


.voyage-head {
flex: none;
display: flex;
flex-direction: column;
gap: 8px;
}

.voyage-meter {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 0 14px 0 6px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--voyage-night), var(--voyage-glass));
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 -1px 0 var(--starlight-deep), 0 0 0 1px var(--gold-deep);
}

.voyage-meter-mark {
flex: none;
width: 36px;
height: 36px;
}

.voyage-starlight {
color: var(--starlight);
font-family: var(--display);
font-size: 1.45rem;
line-height: 1;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
}

.voyage-meter-label {
color: var(--muted);
font-family: var(--display);
font-size: 0.75rem;
letter-spacing: 0.06em;
}

.voyage-rank {
display: grid;
grid-template-columns: 46px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
min-height: 52px;
padding-bottom: 8px;
border-bottom: 1px solid var(--hairline);
}

.voyage-rank-body {
display: grid;
gap: 4px;
min-width: 0;
}

.voyage-rank-name {
overflow: hidden;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-family: var(--display);
font-size: 1.05rem;
line-height: 1.15;
letter-spacing: 0.06em;
white-space: nowrap;
text-overflow: ellipsis;
filter: drop-shadow(0 1px 0 var(--gold-deep));
}

.voyage-rank-track {
position: relative;
display: block;
height: 8px;
overflow: hidden;
border-radius: 4px;
background: var(--voyage-night);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--gold-deep);
}

.voyage-rank-fill {
display: block;
width: 0;
height: 100%;
border-radius: 4px;
background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
}

.voyage-rank-count {
color: var(--muted);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.06em;
}

.voyage-rank:has(> .voyage-rank-claim:not([hidden])) {
grid-template-rows: auto auto;
row-gap: 4px;
}

.voyage-rank:has(> .voyage-rank-claim:not([hidden])) .voyage-rank-badge,
.voyage-rank:has(> .voyage-rank-claim:not([hidden])) .voyage-rank-body {
grid-row: 1 / 3;
}

.voyage-rank:has(> .voyage-rank-claim:not([hidden])) .voyage-rank-prize {
grid-column: 3;
grid-row: 2;
}

.voyage-rank:has(> .voyage-rank-claim:not([hidden])) .voyage-rank-claim {
grid-column: 3;
grid-row: 1;
}

.voyage-rank-prize {
font-family: var(--display);
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
}

.voyage-rank-reward {
display: flex;
align-items: center;
gap: 4px;
white-space: nowrap;
}

.voyage-rank-mark {
width: 20px;
height: 20px;
}

.voyage-rank-mark.pearl {
font-size: 20px;
}

.voyage-rank-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.8rem;
line-height: 1;
letter-spacing: 0.04em;
}

.voyage-rank-queue {
display: inline-block;
margin-left: 6px;
padding: 2px 5px;
border-radius: 6px;
background: var(--gold-deep);
color: var(--gold-light);
font-size: 0.72rem;
line-height: 1;
vertical-align: 2px;
}

.voyage-rank-prize[hidden],
.voyage-rank-queue[hidden],
.voyage-rank-claim[hidden] {
display: none;
}

.voyage-rank-claim {
min-width: 84px;
min-height: 44px;
padding: 0 14px;
border-radius: 10px;
border: 2px solid var(--gold);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.6);
color: var(--gold-deep);
font-family: var(--display);
font-size: 1rem;
letter-spacing: 0.08em;
}

.voyage-rank-claim:active {
transform: translateY(2px);
}


.voyage-plate {
display: inline-block;
padding: 3px 8px;
border-radius: 6px;
border: 1px solid var(--gold-deep);
background: linear-gradient(180deg, var(--voyage-glass), var(--voyage-night));
color: var(--gold-light);
font-family: var(--display);
font-size: 0.75rem;
line-height: 1.15;
letter-spacing: 0.05em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}


.voyage-galaxy {
flex: 1 1 auto;
min-height: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
gap: 14px 12px;
padding: 4px 0 8px;
overflow-y: auto;
overscroll-behavior: contain;
}

.voyage-galaxy[hidden],
.voyage-sector[hidden] {
display: none;
}

.voyage-medal {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
min-height: 44px;
padding: 0;
background: none;
border: 0;
color: var(--text);
}

.voyage-medal:active .voyage-medal-ring {
transform: translateY(2px);
}

.voyage-medal-ring {
position: relative;
display: grid;
place-items: center;
width: min(118px, 100%);
aspect-ratio: 1;
}

.voyage-medal-name {
max-width: 100%;
color: var(--text);
font-family: var(--display);
font-size: 0.72rem;
line-height: 1.1;
letter-spacing: 0.05em;
text-align: center;
text-shadow: 0 1px 2px #000, 0 0 5px #000, 0 0 8px var(--voyage-night);
}

.voyage-medal.ready .voyage-medal-plate {
border-color: var(--starlight-deep);
color: var(--starlight);
}


.voyage-orbit {
fill: none;
stroke: var(--voyage-orbit);
stroke-width: 0.6;
}

.voyage-orbit.inner {
stroke-dasharray: 1.5 2.5;
}

.voyage-line-art {
stroke: var(--voyage-line);
stroke-width: 1;
stroke-dasharray: 2 2;
stroke-linecap: round;
}

.voyage-line-art.lit {
stroke: var(--gold-light);
stroke-width: 1.4;
stroke-dasharray: none;
}

.voyage-star-dot {
fill: var(--voyage-dim);
}

.voyage-star-art.lit .voyage-star-dot {
fill: var(--text);
}

.voyage-star-art.next .voyage-star-dot {
fill: var(--starlight-light);
}

.voyage-star-halo {
opacity: 0.9;
}

.voyage-medal-chart .voyage-star-dot {
transform-box: fill-box;
transform-origin: center;
transform: scale(1.6);
}

.voyage-medal-chart .voyage-line-art {
stroke-width: 1.8;
stroke: rgba(210, 200, 255, 0.5);
}

.voyage-medal-chart .voyage-line-art.lit {
stroke: var(--gold-light);
stroke-width: 2.2;
}

.voyage-medal-chart .voyage-star-ring,
.voyage-medal-chart .voyage-star-fill {
stroke-width: 1.8;
}

.voyage-star-ring {
fill: none;
stroke: var(--starlight);
stroke-width: 0.9;
opacity: 0.55;
}

.voyage-star-fill {
fill: none;
stroke: var(--starlight);
stroke-width: 1.8;
stroke-linecap: round;
}

.voyage-chart .voyage-star-art.next .voyage-star-ring {
transform-box: fill-box;
transform-origin: center;
animation: voyage-next 1.8s ease-in-out infinite;
}

.voyage-star-art.flare .voyage-star-halo,
.voyage-star-art.flare .voyage-star-dot {
transform-box: fill-box;
transform-origin: center;
animation: voyage-flare 700ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes voyage-next {
0%, 100% { transform: scale(1); opacity: 0.55; }
50% { transform: scale(1.25); opacity: 0.9; }
}

@keyframes voyage-flare {
0% { transform: scale(0.3); opacity: 0.4; }
45% { transform: scale(2.2); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}


.voyage-sector {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
gap: 8px;
overflow-y: auto;
overscroll-behavior: contain;
}

.voyage-sector-head {
flex: none;
display: flex;
align-items: center;
gap: 10px;
}

.voyage-back {
flex: none;
min-width: 44px;
min-height: 44px;
padding: 0 12px;
border-radius: 10px;
background: linear-gradient(180deg, var(--sapphire), var(--key-blue) 55%, var(--navy));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--navy-deep), inset 0 1px 0 rgba(255, 255, 255, 0.35);
color: var(--text);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.voyage-back:active {
transform: translateY(2px);
}

.voyage-sector-name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-family: var(--display);
font-size: 1.1rem;
letter-spacing: 0.06em;
white-space: nowrap;
text-overflow: ellipsis;
filter: drop-shadow(0 1px 0 var(--gold-deep));
}

.voyage-sky {
flex: 1 1 auto;
min-height: 210px;
display: flex;
align-items: center;
justify-content: center;
container-type: size;
}

.voyage-sky-frame {
position: relative;
flex: none;
width: min(100cqw, 100cqh, 320px);
height: min(100cqw, 100cqh, 320px);
}

.voyage-chart {
display: block;
width: 100%;
height: 100%;
}

.voyage-chart .voyage-star-dot {
transform-box: fill-box;
transform-origin: center;
transform: scale(1.3);
}

.voyage-title-row {
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.voyage-name {
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-family: var(--display);
font-size: 1.35rem;
letter-spacing: 0.06em;
filter: drop-shadow(0 2px 0 var(--gold-deep));
}

.voyage-trades {
flex: none;
display: flex;
justify-content: center;
align-items: stretch;
gap: 10px;
}

.voyage-trade {
display: grid;
grid-template-rows: 44px auto minmax(0.9em, auto) 44px;
justify-items: center;
align-items: center;
row-gap: 3px;
width: 92px;
}

.voyage-trades.four {
gap: 6px;
}

.voyage-trades.four .voyage-trade {
grid-template-columns: minmax(0, 1fr);
width: 82px;
min-width: 0;
}

.voyage-trades.four .voyage-trade-label {
min-height: 2.2em;
font-size: 0.75rem;
line-height: 1.1;
white-space: normal;
text-align: center;
}

.voyage-trade-mark {
width: 42px;
height: 42px;
}

.voyage-trade-mark.pearl {
font-size: 42px;
}

.voyage-trade-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 1.1rem;
line-height: 1.05;
letter-spacing: 0.04em;
text-align: center;
white-space: nowrap;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.voyage-trade.planet .voyage-trade-amount {
color: var(--text);
}

.voyage-trade.points .voyage-trade-amount {
color: var(--bolt);
}

.voyage-trade-label {
align-self: start;
color: var(--muted);
font-family: var(--display);
font-size: 0.7rem;
line-height: 1;
letter-spacing: 0.06em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.voyage-trade-key {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
min-height: 44px;
padding: 0 6px;
border-radius: 10px;
background: var(--voyage-trade-dim-base);
box-shadow: 0 0 0 1px var(--voyage-trade-dim-rim);
}

.voyage-trade-key:not(.short):not(:disabled) {
background: linear-gradient(180deg, var(--sapphire), var(--key-blue) 55%, var(--navy));
box-shadow: 0 0 0 1px var(--gold-dark), 0 3px 0 var(--navy-deep), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.voyage-trade-key.short {
background-image: linear-gradient(180deg, var(--voyage-trade-dim-top), var(--voyage-trade-dim-base));
box-shadow: 0 0 0 1px var(--voyage-trade-dim-rim), 0 2px 0 var(--voyage-trade-dim-lip),
inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.voyage-trade-key:not(:disabled):active {
transform: translateY(2px);
}

.voyage-trade-price-mark {
flex: none;
width: 20px;
height: 20px;
}

.voyage-trade-price {
color: var(--starlight);
font-family: var(--display);
font-size: 1.05rem;
line-height: 1;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.voyage-trade-key:is(.short, :disabled) .voyage-trade-price {
color: var(--muted);
}

.voyage-trade-key:is(.short, :disabled) .voyage-trade-price-mark {
opacity: 0.65;
}

.voyage-trade-key:disabled {
opacity: 0.45;
}

.voyage-trade-done {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--starlight);
font-family: var(--display);
font-size: 0.85rem;
line-height: 1;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

.voyage-trade-done-mark {
flex: none;
width: 16px;
height: 16px;
filter: drop-shadow(0 0 3px rgba(255, 212, 90, 0.75));
}

.voyage-star-art.charge .voyage-star-fill {
transform-box: fill-box;
transform-origin: center;
animation: voyage-charge 600ms ease-out var(--voyage-charge-delay, 0ms) both;
}

body:not(.scene-motion-paused):has(> #voyage-sheet[aria-hidden="false"]) #fx-layer .motion-moment.voyage-trail {
visibility: visible;
}

body:not(.scene-motion-paused):has(> #voyage-sheet[aria-hidden="false"]) #fx-layer :is(.voyage-trail, .voyage-trail .motion-effect-strip) {
animation-play-state: running;
}

@keyframes voyage-charge {
0% { transform: rotate(-90deg) scale(1); opacity: 0.6; }
40% { transform: rotate(-90deg) scale(1.45); opacity: 1; }
100% { transform: rotate(-90deg) scale(1); opacity: 1; }
}

.float-text.voyage-gain {
z-index: auto;
padding: 1px 8px;
border-radius: 8px;
background: rgba(8, 4, 19, 0.78);
box-shadow: 0 0 0 1px rgba(255, 212, 90, 0.45);
transform: translate(-50%, -100%);
color: var(--gold-light);
font-size: 1.35rem;
letter-spacing: 0.04em;
text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 212, 90, 0.7);
animation: voyage-gain-up 900ms ease-out forwards;
}

@keyframes voyage-gain-up {
0% { opacity: 0; transform: translate(-50%, -100%); }
15% { opacity: 1; transform: translate(-50%, -100%); }
70% { opacity: 1; }
100% { opacity: 0; transform: translate(-50%, calc(-100% - 44px)); }
}

.voyage-trade.got .voyage-trade-mark,
.voyage-trade.got .voyage-trade-amount {
opacity: 0.5;
}

.voyage-ledger {
flex: none;
display: flex;
flex-direction: column;
}

.voyage-line {
display: flex;
align-items: center;
gap: 10px;
min-height: 36px;
border-top: 1px solid var(--hairline);
border-bottom: 1px solid var(--hairline);
}

.voyage-line-label {
flex: none;
min-width: 72px;
color: var(--text);
font-family: var(--display);
font-size: 0.78rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.voyage-bonus {
margin-left: auto;
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}

.voyage-bonus.paid {
opacity: 0.5;
}

.voyage-bonus-prize {
display: flex;
align-items: center;
gap: 5px;
white-space: nowrap;
}

.voyage-bonus-mark {
width: 22px;
height: 22px;
}

.voyage-bonus-mark.pearl {
font-size: 22px;
}

.voyage-bonus-amount {
color: var(--gold-light);
font-family: var(--display);
font-size: 1rem;
line-height: 1;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.voyage-bonus-prize.planet .voyage-bonus-amount {
color: var(--text);
}

.voyage-bonus-prize.points .voyage-bonus-amount {
color: var(--bolt);
}

.voyage-note {
flex: none;
margin: 0;
color: var(--muted);
font-size: 0.8125rem;
line-height: 1.3;
text-align: center;
}

.float-text.voyage-spend {
color: var(--starlight);
text-shadow: 0 0 8px rgba(93, 255, 176, 0.7), 0 2px 4px rgba(0, 0, 0, 0.8);
}

#voyage-sheet.in-sector .voyage-rank {
display: none;
}


.level-up.voyage-up {
background: radial-gradient(circle at 50% 42%, #3a1d7a, var(--bg-deep) 72%);
}

.level-up-title.voyage-up-title {
font-size: 2.3rem;
white-space: nowrap;
filter: drop-shadow(0 2px 0 var(--gold-deep)) drop-shadow(0 0 7px rgba(255, 106, 220, 0.6));
}

.level-up-stage.voyage-up-stage {
width: 200px;
height: 190px;
}

.voyage-up-chart {
position: relative;
width: 190px;
height: 190px;
animation: spire-gem-in 700ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.voyage-up-chart[hidden],
.voyage-up-badge[hidden] {
display: none;
}

.voyage-rank-badge.voyage-up-badge {
width: 124px;
height: 124px;
animation: spire-gem-in 700ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.voyage-up-badge .voyage-rank-step {
font-size: 2.4rem;
-webkit-text-stroke-width: 4px;
}

.voyage-up-rank-number {
display: grid;
justify-items: center;
color: var(--text);
font-family: var(--display);
font-size: 0.75rem;
line-height: 1;
letter-spacing: 0.05em;
-webkit-text-stroke: 3px var(--metal-deep);
paint-order: stroke fill;
}

.voyage-rank-division {
font-family: var(--body);
font-weight: 600;
}

.voyage-up-name {
color: var(--text);
font-family: var(--display);
font-size: 1.3rem;
letter-spacing: 0.08em;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
}

.voyage-up-actions {
display: grid;
width: min(240px, 100%);
}

.voyage-up-actions > button {
grid-area: 1 / 1;
width: 100%;
}

.tier-points-mark.spire-up-mark {
width: 60px;
height: 60px;
}

.voyage-up-prize.points .spire-up-amount {
color: var(--bolt);
}

@media (max-height: 790px) {
.voyage-galaxy { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.voyage-medal-ring { width: min(92px, 100%); }
}

@media (max-height: 700px) {
.voyage-galaxy { gap: 8px 8px; }
.voyage-medal-ring { width: min(80px, 100%); }
.voyage-sector { gap: 4px; }
.voyage-sky { min-height: 170px; }
.voyage-name { font-size: 1.15rem; }
.voyage-line { min-height: 30px; }
.voyage-trade { grid-template-rows: 30px auto minmax(0.9em, auto) 44px; row-gap: 2px; }
.voyage-trade-mark { width: 30px; height: 30px; }
.voyage-trade-mark.pearl { font-size: 30px; }
.level-up-stage.voyage-up-stage { height: 150px; }
.voyage-up-chart { width: 150px; height: 150px; }
}

@media (min-width: 700px) and (orientation: landscape) {
.voyage-galaxy { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.voyage-sector {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-rows: auto auto auto auto;
align-content: start;
gap: 4px 20px;
}
.voyage-sky { grid-column: 1; grid-row: 1 / 4; min-height: 170px; }
.voyage-note { grid-column: 1; grid-row: 4; align-self: center; }
.voyage-sector-head { grid-column: 2; grid-row: 1; }
.voyage-title-row { grid-column: 2; grid-row: 2; }
.voyage-trades { grid-column: 2; grid-row: 3; }
.voyage-ledger { grid-column: 2; grid-row: 4; }
}

@media (prefers-reduced-motion: reduce) {
.voyage-chart .voyage-star-art.next .voyage-star-ring,
.voyage-star-art.flare .voyage-star-halo,
.voyage-star-art.flare .voyage-star-dot,
.voyage-star-art.charge .voyage-star-fill,
.voyage-up-chart,
.voyage-rank-badge.voyage-up-badge {
animation: none;
}

.float-text.voyage-gain { animation: voyage-gain-fade 400ms ease-in 700ms both; }
}

@keyframes voyage-gain-fade {
to { opacity: 0; }
}

/* Source: css/voyage-sky.css */
.voyage-stars {
position: absolute;
inset: 0;
container-type: inline-size;
}

.voyage-star-key {
position: absolute;
width: 44px;
height: 44px;
margin: -22px 0 0 -22px;
padding: 0;
border: 0;
border-radius: 50%;
background: none;
}

.voyage-star-key[aria-pressed="true"]::before {
content: "";
position: absolute;
inset: calc(16px - 7.86cqw);
border-radius: 50%;
border: 2px solid var(--gold);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 1px var(--gold-deep);
}

.voyage-star-key:focus-visible {
outline: 2px solid var(--gold-light);
outline-offset: -2px;
}


.voyage-encore-ring,
.voyage-encore-fill {
fill: none;
stroke: var(--starlight);
}

.voyage-encore-ring {
stroke-width: 0.8;
opacity: 0.45;
}

.voyage-encore-fill {
stroke-width: 1.8;
stroke-linecap: round;
}

.voyage-title-row {
flex-wrap: wrap;
row-gap: 4px;
}

.voyage-return {
flex: none;
min-width: 44px;
min-height: 44px;
padding: 0 12px;
border-radius: 10px;
background: linear-gradient(180deg, var(--sapphire), var(--key-blue) 55%, var(--navy));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--navy-deep), inset 0 1px 0 rgba(255, 255, 255, 0.35);
color: var(--starlight);
font-family: var(--display);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.voyage-return:active {
transform: translateY(2px);
}

.voyage-return[hidden] {
display: none;
}

/* Source: css/voyage-metal.css */

.voyage-rank-badge {
--metal-deep: #4a2208;
position: relative;
flex: none;
display: grid;
place-items: center;
width: 46px;
height: 46px;
background: url("../art/voyage/rank-bronze.webp") center / 114% no-repeat;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.voyage-rank-badge[data-tier="silver"] {
--metal-deep: #2c3466;
background-image: url("../art/voyage/rank-silver.webp");
}

.voyage-rank-badge[data-tier="gold"] {
--metal-deep: var(--gold-deep);
background-image: url("../art/voyage/rank-gold.webp");
}

.voyage-rank-badge[data-tier="top"] {
--metal-deep: var(--starlight-deep);
background-image: url("../art/voyage/rank-top.webp");
}

.voyage-rank-step {
position: relative;
color: var(--text);
font-family: var(--display);
font-size: 0.95rem;
line-height: 1;
-webkit-text-stroke: 3px var(--metal-deep);
paint-order: stroke fill;
}

.voyage-medal-ring {
background: radial-gradient(circle closest-side, #2a1660, var(--voyage-night) 92%, transparent 100%)
center / 72% 72% no-repeat;
}

.voyage-medal-ring::before {
content: "";
position: absolute;
inset: -12%;
background: url("../art/voyage/sector-ring.webp") center / contain no-repeat;
filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.6));
pointer-events: none;
}

.voyage-medal.ready .voyage-medal-ring::before {
background-image: url("../art/voyage/sector-ring-ready.webp");
}

.voyage-medal.done .voyage-medal-ring {
background-image: radial-gradient(circle closest-side, #4a2a7a, var(--voyage-night) 92%, transparent 100%);
}

.voyage-medal-chart {
width: 70%;
height: 70%;
}

.voyage-medal-lock {
display: none;
}

.voyage-medal.locked .voyage-medal-chart {
opacity: 0.25;
}

.voyage-medal.locked .voyage-medal-lock {
position: absolute;
display: block;
width: 40%;
aspect-ratio: 1;
background: url("../art/voyage/padlock.webp") center / contain no-repeat;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.voyage-medal-mark {
position: absolute;
right: 0;
bottom: 0;
z-index: 1;
width: 26%;
height: 26%;
pointer-events: none;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

.voyage-medal.locked .voyage-medal-mark {
display: none;
}

.voyage-medal.wander .voyage-medal-plate {
display: inline-flex;
align-items: center;
padding: 3px 6px;
}

.voyage-medal-left {
margin-left: 5px;
padding-left: 5px;
border-left: 1px solid var(--gold-deep);
color: var(--text);
text-transform: none;
}

/* Source: css/voyage-quiet.css */
:root {
--voyage-hush: color-mix(in srgb, var(--voyage-night) 72%, transparent);
}

#voyage-sheet.in-sector .voyage-panel::before {
content: "";
position: absolute;
z-index: -1;
inset: auto 0 0;
height: 300px;
background: linear-gradient(transparent, var(--voyage-hush) 96px);
pointer-events: none;
}

html.landscape #voyage-sheet.in-sector .voyage-panel::before {
inset: 0 0 0 30%;
height: auto;
background: linear-gradient(90deg, transparent, var(--voyage-hush) 16%);
-webkit-mask-image: linear-gradient(transparent 40px, #000 130px);
mask-image: linear-gradient(transparent 40px, #000 130px);
}

/* Source: css/atlas-screen.css */
#atlas-sheet.destination-screen {
--atlas-desk: #21140f;
--atlas-desk-light: #533921;
--atlas-paper: #e5c998;
--atlas-bronze: #b58b4d;
--atlas-ink: #140b20;
--atlas-leather: #382346;
--atlas-leather-light: #644669;
--atlas-map-line: rgba(229, 201, 152, 0.24);
background: var(--atlas-desk);
}

#atlas-sheet.destination-screen .atlas-panel {
gap: 12px;
background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
url("../art/ui/atlas-background.webp") center / cover no-repeat;
background-color: var(--atlas-desk);
}

#atlas-sheet.destination-screen .atlas-view[hidden] { display: none; }

#atlas-sheet.destination-screen .sheet-title {
background-image: var(--gold-bevel);
letter-spacing: 0.1em;
}

#atlas-sheet.destination-screen .atlas-head {
padding: 0 0 10px;
border-bottom: 1px solid var(--atlas-map-line);
}

#atlas-sheet.destination-screen .atlas-season {
color: var(--atlas-paper);
font-size: 14px;
letter-spacing: 0.12em;
}

#atlas-sheet.destination-screen .atlas-season-head {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 3px;
min-width: 0;
}

#atlas-sheet.destination-screen .atlas-season-head .atlas-season { line-height: 1.2; }

#atlas-sheet.destination-screen .atlas-season-ends {
padding: 2px 7px 3px;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: linear-gradient(var(--atlas-ink), var(--atlas-desk));
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
color: var(--text);
font-family: var(--display);
font-size: 12px;
line-height: 1.2;
letter-spacing: 0.06em;
text-transform: none;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

#atlas-sheet.destination-screen .atlas-season-ends.urgent { color: var(--ruby); }

#atlas-sheet.destination-screen .atlas-dust {
min-height: 46px;
border-radius: 6px;
border-color: var(--atlas-bronze);
background: linear-gradient(var(--atlas-leather), var(--atlas-ink));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 0 rgba(0, 0, 0, 0.4);
}

#atlas-sheet.destination-screen .atlas-dust-icon,
#atlas-sheet.destination-screen .atlas-dust-name {
color: var(--atlas-paper);
}

#atlas-sheet.destination-screen .atlas-dust-amount { font-size: 20px; }

#atlas-sheet.destination-screen .atlas-albums {
gap: 18px;
padding: 4px 3px 18px;
scrollbar-color: var(--atlas-bronze) var(--atlas-desk);
}

#atlas-sheet.destination-screen .atlas-album {
position: relative;
grid-template-columns: 96px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 16px;
row-gap: 8px;
padding: 10px 4px 14px;
border-bottom-color: var(--atlas-map-line);
}

#atlas-sheet.destination-screen .atlas-album-art {
isolation: isolate;
grid-row: 1 / 3;
height: 130px;
}

#atlas-sheet.destination-screen .atlas-album-art::before {
content: "";
position: absolute;
width: 125px;
height: 125px;
border-radius: 50%;
background: radial-gradient(circle, var(--atlas-bronze), transparent 68%);
opacity: 0.35;
}

#atlas-sheet.destination-screen .atlas-book {
width: 104px;
height: 104px;
filter: drop-shadow(6px 8px 8px rgba(0, 0, 0, 0.55));
}

#atlas-sheet.destination-screen .atlas-album-body { gap: 6px; }
#atlas-sheet.destination-screen .atlas-album-count { font-size: 25px; line-height: 1.2; letter-spacing: 0.04em; }
#atlas-sheet.destination-screen .atlas-album-prize { color: var(--atlas-paper); font-size: 13px; line-height: 1.4; }
#atlas-sheet.destination-screen .atlas-album > .atlas-claim { justify-self: start; min-width: 120px; }

#atlas-sheet.destination-screen .atlas-claim {
min-height: 46px;
padding: 6px 16px;
border-radius: 7px;
background: linear-gradient(var(--atlas-leather-light), var(--atlas-leather));
border-color: var(--atlas-bronze);
color: var(--text);
font-size: 16px;
letter-spacing: 0.08em;
}

#atlas-sheet.destination-screen .atlas-album.complete .atlas-claim,
#atlas-sheet.destination-screen .atlas-set.complete .atlas-claim {
background: var(--gold-bevel);
color: var(--gold-deep);
text-shadow: none;
}

#atlas-sheet.destination-screen .atlas-set .atlas-claim.buy {
max-width: 240px;
min-height: 46px;
background: var(--gold-bevel);
border-color: var(--gold-light);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
color: var(--gold-deep);
text-shadow: none;
}

#atlas-sheet.destination-screen .atlas-set .atlas-claim.buy:active { transform: translateY(2px); }

#atlas-sheet.destination-screen .atlas-shelf {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: start;
gap: 16px 10px;
padding: 0 0 14px;
}

#atlas-sheet.destination-screen .atlas-shelf::before {
content: "COLLECTIONS";
flex: 0 0 100%;
font-family: var(--display);
color: var(--gold-light);
font-size: 14px;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

#atlas-sheet.destination-screen .atlas-medal { width: calc((100% - 20px) / 3); gap: 6px; min-height: 140px; }

#atlas-sheet.destination-screen .atlas-medal-ring {
width: 84px;
height: 84px;
border: 4px double var(--atlas-bronze);
background:
radial-gradient(circle at 38% 26%, var(--atlas-leather-light), var(--atlas-leather) 52%, var(--atlas-ink));
box-shadow: 0 0 0 2px var(--atlas-desk), 0 0 0 3px var(--atlas-bronze), inset 0 0 0 3px var(--atlas-ink), 0 5px 0 rgba(0, 0, 0, 0.5);
}

#atlas-sheet.destination-screen .atlas-medal-name {
display: grid;
align-items: end;
min-height: 30px;
width: 100%;
color: var(--text);
font-size: 12px;
line-height: 1.2;
white-space: normal;
text-shadow: 0 1px 2px #000, 0 0 5px #000;
}
#atlas-sheet.destination-screen .atlas-medal-count { color: var(--atlas-paper); border-color: var(--atlas-bronze); background: var(--atlas-ink); font-size: 13px; }
#atlas-sheet.destination-screen .atlas-medal.complete .atlas-medal-count { background: var(--gold-bevel); color: var(--gold-deep); }
#atlas-sheet.destination-screen .atlas-medal-new { right: calc(50% - 44px); }

#atlas-sheet.destination-screen .atlas-track-wrap { padding: 16px 0 10px; border-color: var(--atlas-map-line); }
#atlas-sheet.destination-screen .atlas-track-title { margin-bottom: 12px; color: var(--gold-light); font-size: 14px; letter-spacing: 0.08em; text-shadow: 0 1px 2px #000; }
#atlas-sheet.destination-screen .atlas-stop-sets { color: var(--text); font-size: 12px; text-shadow: 0 1px 0 #000; }
#atlas-sheet.destination-screen .atlas-stop-amount { font-size: 13px; }
#atlas-sheet.destination-screen .atlas-workshop { padding-top: 2px; }
#atlas-sheet.destination-screen #atlas-exchange { padding-top: 14px; border-top: 1px solid var(--atlas-map-line); }
#atlas-sheet.destination-screen .atlas-trade-title { margin-top: 0; color: var(--gold-light); font-size: 19px; letter-spacing: 0.08em; }
#atlas-sheet.destination-screen .atlas-guide { color: var(--atlas-paper); font-size: 13px; margin: 8px 0 16px; }
#atlas-sheet.destination-screen .atlas-trades { gap: 6px; padding: 4px 0 15px; }
#atlas-sheet.destination-screen .atlas-planet-name { font-size: 11px; }
#atlas-sheet.destination-screen .atlas-planet-offer .pearl { width: 44px; height: 44px; }
#atlas-sheet.destination-screen .atlas-trade { min-height: 48px; border-color: var(--atlas-bronze); border-radius: 6px; background: linear-gradient(var(--atlas-leather-light), var(--atlas-leather)); font-size: 12px; }
#atlas-sheet.destination-screen .atlas-trade:disabled { opacity: 0.65; }

#atlas-sheet.destination-screen .atlas-action {
min-height: 56px;
margin: 4px auto 8px;
border: 3px solid var(--gold);
border-radius: 8px;
background: var(--gold-bevel);
color: var(--gold-deep);
box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 0 var(--atlas-ink);
text-shadow: none;
font-size: 20px;
letter-spacing: 0.07em;
}

#atlas-sheet.destination-screen .atlas-book-view { gap: 12px; }
#atlas-sheet.destination-screen .atlas-sets { padding: 8px 5px 16px; scrollbar-color: var(--atlas-bronze) var(--atlas-desk); }
#atlas-sheet.destination-screen .atlas-set { gap: 18px; }
#atlas-sheet.destination-screen .atlas-set-head { gap: 12px; padding-bottom: 8px; }
#atlas-sheet.destination-screen .atlas-set-name { font-size: 26px; }
#atlas-sheet.destination-screen .atlas-set-bar { width: 172px; height: 20px; }
#atlas-sheet.destination-screen .atlas-set-fill { background: linear-gradient(var(--atlas-paper), var(--atlas-bronze)); }
#atlas-sheet.destination-screen .atlas-set-count { font-size: 13px; }
#atlas-sheet.destination-screen .atlas-set .atlas-grid { gap: 22px 10px; padding: 10px 1px 6px; }
#atlas-sheet.destination-screen .atlas-card { border-radius: 5px; min-height: 130px; box-shadow: 0 0 0 1px var(--atlas-ink), inset 0 0 0 2px rgba(0, 0, 0, 0.3), 2px 4px 0 rgba(0, 0, 0, 0.5); }
#atlas-sheet.destination-screen .atlas-card.missing { --frame: var(--atlas-bronze); background: linear-gradient(var(--atlas-leather), var(--atlas-ink)); }
#atlas-sheet.destination-screen .atlas-card.missing .atlas-card-name { opacity: 0.8; }
#atlas-sheet.destination-screen .atlas-slot.last .atlas-card.missing { box-shadow: 0 0 0 1px var(--gold), inset 0 0 0 2px rgba(0, 0, 0, 0.3), 2px 4px 0 rgba(0, 0, 0, 0.5); }
#atlas-sheet.destination-screen .atlas-card-name { font-size: 11px; }
#atlas-sheet.destination-screen .atlas-card-count { font-size: 12px; }
#atlas-sheet.destination-screen .atlas-slot-stars { font-size: 13px; }
#atlas-sheet.destination-screen .atlas-slot.missing .atlas-slot-stars { color: var(--atlas-paper); }
#atlas-sheet.destination-screen .atlas-set-prize { padding: 10px 0; border-top: 1px solid var(--atlas-map-line); }
#atlas-sheet.destination-screen .atlas-set-prize .atlas-claim-reward { font-size: 25px; }
#atlas-sheet.destination-screen .atlas-strip-row { border-top-color: var(--atlas-map-line); padding: 10px 0 4px; gap: 8px; }
#atlas-sheet.destination-screen .atlas-back { min-width: 56px; color: var(--atlas-paper); }
#atlas-sheet.destination-screen .atlas-strip { overflow-x: auto; overflow-y: hidden; justify-content: space-between; gap: 8px; padding: 7px 4px 6px; }
#atlas-sheet.destination-screen .atlas-chip .atlas-medal-ring { width: 44px; height: 44px; border-width: 2px; }
#atlas-sheet.destination-screen .atlas-chip.current .atlas-medal-ring { opacity: 1; border-color: var(--gold-light); box-shadow: 0 0 0 2px var(--atlas-ink), 0 0 0 3px var(--gold-light); }

#atlas-sheet.destination-screen .atlas-past { flex: none; padding-top: 14px; border-top: 1px solid var(--atlas-map-line); }
#atlas-sheet.destination-screen .atlas-past[hidden] { display: none; }
#atlas-sheet.destination-screen .atlas-past-list { display: flex; flex-direction: column; }
#atlas-sheet.destination-screen .atlas-past-row {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 2px;
border-bottom: 1px solid var(--atlas-map-line);
}
#atlas-sheet.destination-screen .atlas-past-row:last-child { border-bottom: 0; }
#atlas-sheet.destination-screen .atlas-past-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#atlas-sheet.destination-screen .atlas-past-name {
overflow: hidden;
color: var(--gold-light);
font-family: var(--display);
font-size: 19px;
line-height: 1.15;
letter-spacing: 0.06em;
text-overflow: ellipsis;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}
#atlas-sheet.destination-screen .atlas-past-count,
#atlas-sheet.destination-screen .atlas-past-label {
color: var(--atlas-paper);
font-family: var(--display);
font-size: 13px;
letter-spacing: 0.08em;
font-variant-numeric: tabular-nums;
}
#atlas-sheet.destination-screen .atlas-past-group { white-space: nowrap; }
#atlas-sheet.destination-screen .atlas-past-view { flex: none; min-width: 88px; }
#atlas-sheet.destination-screen .atlas-archive-sets { display: flex; flex-direction: column; gap: 28px; }
#atlas-sheet.destination-screen .atlas-past-summary {
display: flex;
flex-direction: column;
gap: 8px;
padding: 4px 2px 16px;
border-bottom: 1px solid var(--atlas-map-line);
}
#atlas-sheet.destination-screen .atlas-past-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#atlas-sheet.destination-screen .atlas-past-value {
color: var(--gold-light);
font-family: var(--display);
font-size: 17px;
letter-spacing: 0.05em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}
#atlas-sheet.destination-screen .atlas-past-prize {
padding: 10px 0 0;
border-top: 1px solid var(--atlas-map-line);
color: var(--atlas-paper);
font-family: var(--display);
font-size: 16px;
letter-spacing: 0.08em;
text-align: center;
}
#atlas-sheet.destination-screen .atlas-set.claimed .atlas-past-prize { color: var(--gold-light); }

@media (min-width: 760px) and (max-height: 650px) {
#atlas-sheet.destination-screen .atlas-head { padding-bottom: 4px; }
#atlas-sheet.destination-screen .atlas-albums {
display: grid;
grid-template-columns: minmax(280px, 1fr) minmax(270px, 0.9fr);
grid-template-rows: auto auto auto;
align-content: start;
column-gap: 40px;
row-gap: 12px;
}
#atlas-sheet.destination-screen .atlas-album { grid-column: 1; grid-row: 1; padding-top: 4px; }
#atlas-sheet.destination-screen .atlas-shelf { grid-column: 2; grid-row: 1 / 3; gap: 16px 10px; }
#atlas-sheet.destination-screen .atlas-track-wrap { grid-column: 1; grid-row: 2; }
#atlas-sheet.destination-screen .atlas-albums > .atlas-workshop:not(#atlas-exchange) { grid-column: 1; grid-row: 3; }
#atlas-sheet.destination-screen #atlas-exchange { grid-column: 1 / -1; grid-row: 4; }
#atlas-sheet.destination-screen .atlas-past { grid-column: 1 / -1; grid-row: 5; }
#atlas-sheet.destination-screen .atlas-trades { max-width: 560px; margin: 0 auto; }
#atlas-sheet.destination-screen .atlas-set { gap: 12px; }
#atlas-sheet.destination-screen .atlas-set .atlas-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 850px; width: 100%; margin: 0 auto; }
#atlas-sheet.destination-screen .atlas-card { aspect-ratio: 3 / 4; min-height: 140px; }
#atlas-sheet.destination-screen .atlas-strip-row { max-width: 550px; width: 100%; margin: 0 auto; }
}

@media (max-width: 759px) and (max-height: 720px) {
#atlas-sheet.destination-screen .atlas-panel { gap: 8px; }
#atlas-sheet.destination-screen .atlas-albums { gap: 14px; }
#atlas-sheet.destination-screen .atlas-album { padding: 8px 4px 16px; }
#atlas-sheet.destination-screen .atlas-album-art { height: 112px; }
#atlas-sheet.destination-screen .atlas-medal { min-height: 128px; gap: 6px; }
#atlas-sheet.destination-screen .atlas-medal-ring { width: 76px; height: 76px; }
#atlas-sheet.destination-screen .atlas-medal-new { right: calc(50% - 40px); }
#atlas-sheet.destination-screen .atlas-shelf { gap: 16px 10px; }
#atlas-sheet.destination-screen .atlas-set { gap: 12px; }
#atlas-sheet.destination-screen .atlas-set-head { gap: 8px; }
}

@media (max-width: 359px) {
#atlas-sheet.destination-screen .atlas-past-row { gap: 10px; }
#atlas-sheet.destination-screen .atlas-past-name { white-space: normal; text-overflow: clip; }
#atlas-sheet.destination-screen .atlas-past-view { min-width: 72px; padding: 6px 12px; }
}

/* Source: css/player-screens.css */

#inbox-sheet.destination-screen {
--mail-canopy: #6a163d;
--mail-velvet: #29102b;
--mail-shadow: #120a19;
--mail-light: #f4bbd5;
}

#inbox-sheet.destination-screen .inbox-panel {
gap: 16px;
background: linear-gradient(180deg, rgba(0, 0, 0, .22) 25%, rgba(0, 0, 0, .50) 55%, rgba(0, 0, 0, .58)),
url("../art/ui/inbox-background.webp") center / cover no-repeat;
background-color: var(--mail-shadow);
}

#inbox-sheet.destination-screen .inbox-head {
position: static;
justify-content: center;
min-height: 102px;
margin: -4px 0 0;
}

#inbox-sheet.destination-screen .inbox-envelope {
width: 104px;
height: 84px;
margin: 0;
filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(255, 212, 90, 0.2));
}

#inbox-sheet.destination-screen .inbox-tabs {
gap: 0;
padding: 0 0 12px;
border-bottom: 1px solid var(--hairline);
}

#inbox-sheet.destination-screen .inbox-tab {
flex-direction: column;
gap: 7px;
min-height: 62px;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
color: var(--mail-light);
}

#inbox-sheet.destination-screen .inbox-tab.active {
color: var(--gold-light);
box-shadow: inset 0 -3px 0 var(--gold);
}

#inbox-sheet.destination-screen .inbox-tab-icon { width: 22px; height: 22px; }
#inbox-sheet.destination-screen .inbox-tab-label { font-size: 13px; letter-spacing: 0.08em; }

#inbox-sheet.destination-screen .inbox-grid { padding: 0 2px 12px; }
#inbox-sheet.destination-screen .inbox-grid.event-calendar { display: flex; }
#inbox-sheet.destination-screen .inbox-event-views { flex: none; margin-bottom: 0; }
#inbox-sheet.destination-screen .inbox-event-views .inbox-tab { min-height: 44px; }
#inbox-sheet.destination-screen .event-calendar-date.inbox-tab { min-height: 54px; gap: 0; }
#inbox-sheet.destination-screen .inbox-empty { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; justify-content: safe center; }
#inbox-sheet.destination-screen .inbox-empty-card,
#inbox-sheet.destination-screen .inbox-empty-text { flex: none; }
#inbox-sheet.destination-screen .inbox-tile { min-height: 112px; gap: 5px 10px; padding: 16px 0; }
#inbox-sheet.destination-screen .inbox-tile-face { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 5px 12px; }
#inbox-sheet.destination-screen .inbox-tile-art { width: 62px; height: 62px; overflow: visible; }
#inbox-sheet.destination-screen .inbox-tile-art .inbox-symbol,
#inbox-sheet.destination-screen .inbox-tile-art .inbox-icon,
#inbox-sheet.destination-screen .inbox-tile-art .inbox-star,
#inbox-sheet.destination-screen .inbox-tile-art .pearl,
#inbox-sheet.destination-screen .inbox-tile-art .wheel-icon,
#inbox-sheet.destination-screen .inbox-tile-art .credits-coin,
#inbox-sheet.destination-screen .inbox-tile-art .lobby-pig,
#inbox-sheet.destination-screen .inbox-tile-art .rush-mark { width: 50px; height: 50px; }
#inbox-sheet.destination-screen .inbox-tile-art .inbox-icon { width: 48px; height: 48px; object-fit: contain; }
#inbox-sheet.destination-screen .inbox-tile-art .inbox-photo { width: 54px; height: 62px; }
#inbox-sheet.destination-screen .inbox-tile-art .atlas-button-icon { width: 46px; height: 46px; }
#inbox-sheet.destination-screen .inbox-tile-art .inbox-glyph { font-size: 42px; }
#inbox-sheet.destination-screen .inbox-tile-art .chest { transform: scale(1.3); }
#inbox-sheet.destination-screen .inbox-tile-art .pass-mark { width: 56px; height: 36px; font-size: 22px; }
#inbox-sheet.destination-screen .inbox-tile-kicker { font-size: 12px; color: var(--mail-light); }
#inbox-sheet.destination-screen .inbox-tile-band { font-size: 22px; letter-spacing: 0.045em; }
#inbox-sheet.destination-screen .inbox-tile-caption { padding-left: 74px; color: var(--text); }
#inbox-sheet.destination-screen .inbox-tile-timer { padding: 5px; font-size: 11px; background: var(--mail-shadow); }
#inbox-sheet.destination-screen .inbox-tile::after { color: var(--gold); font-size: 26px; }

#rank-sheet.destination-screen {
--rank-roof: #174797;
--rank-hall: #0b2353;
--rank-floor: #060c25;
}

#rank-sheet.destination-screen .rank-panel {
background: linear-gradient(90deg, rgba(6, 12, 37, .58), rgba(6, 12, 37, .84) 14%, rgba(6, 12, 37, .84) 86%, rgba(6, 12, 37, .58)),
linear-gradient(180deg, rgba(6, 12, 37, .2), rgba(6, 12, 37, .45)),
url("../art/ui/rank-background.webp") center / cover no-repeat;
background-color: var(--rank-floor);
}

#rank-sheet.destination-screen .rank-head {
position: relative;
flex-direction: column;
gap: 11px;
margin: 0 0 18px;
}

#rank-sheet.destination-screen .level-star.rank-star { width: 112px; height: 112px; font-size: 34px; }
#rank-sheet.destination-screen .level-star.rank-star.long { font-size: 25px; }
#rank-sheet.destination-screen .level-star.rank-star > span { margin-top: 11px; }
#rank-sheet.destination-screen .rank-info { flex: none; width: min(100%, 290px); gap: 10px; }
#rank-sheet.destination-screen .rank-title { justify-content: center; gap: 9px; }
#rank-sheet.destination-screen .rank-name { flex: 0 1 auto; font-size: 29px; text-align: center; }
#rank-sheet.destination-screen .rank-bar { height: 24px; border-radius: 6px; }
#rank-sheet.destination-screen .rank-xp { font-size: 13px; }
#rank-sheet.destination-screen .rank-next { margin: 0 0 20px; }
#rank-sheet.destination-screen .rank-next-item { min-height: 42px; padding: 9px 0; }
#rank-sheet.destination-screen .rank-next-text { grid-template-columns: 68px minmax(0, 1fr) auto; }
#rank-sheet.destination-screen .rank-next-label { font-size: 12px; letter-spacing: .03em; }
#rank-sheet.destination-screen .rank-next-value { font-size: 15px; }
#rank-sheet.destination-screen .rank-next-sub { font-size: 12px; }
#rank-sheet.destination-screen .rank-next-amount { font-size: 15px; }
#rank-sheet.destination-screen .rank-heading { padding: 0 0 10px; margin: 0; }
#rank-sheet.destination-screen .rank-heading-name { font-size: 18px; letter-spacing: 0.08em; color: var(--text); }
#rank-sheet.destination-screen .rank-stars { font-size: 16px; }
#rank-sheet.destination-screen .rank-list { padding: 0 2px 10px; }
#rank-sheet.destination-screen .star-row { grid-template-columns: 30px minmax(0, 1fr) 84px; gap: 10px; padding: 14px 0; }
#rank-sheet.destination-screen .star-icon { width: 30px; height: 30px; }
#rank-sheet.destination-screen .star-name { font-size: 15px; }
#rank-sheet.destination-screen .star-claim { min-height: 52px; }

:root #rank-sheet.destination-screen :is(.rank-next-item, .star-row, .rank-loyalty) {
padding-inline: 12px;
margin-bottom: 6px;
border-bottom: 0;
border-radius: 8px;
background: linear-gradient(180deg, rgba(34, 44, 104, .72), rgba(10, 14, 44, .86));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .35);
}
:root #rank-sheet.destination-screen .star-row { padding-inline: 10px 8px; }

#profile-sheet.destination-screen { --profile-velvet: #071d15; }
#profile-sheet.destination-screen .profile-panel {
background: linear-gradient(180deg, rgba(0, 0, 0, .30) 30%, rgba(0, 0, 0, .48)),
url("../art/ui/profile-background.webp") center / cover no-repeat;
background-color: var(--profile-velvet);
}

#profile-sheet .profile-head {
flex: none;
display: flex;
align-items: center;
gap: 16px;
margin: 0 0 18px;
}

#profile-sheet .profile-scroll {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
padding: 7px 4px 12px;
}

#profile-sheet .profile-name-form { margin-bottom: 16px; }
#profile-sheet .profile-name-entry { display: flex; gap: 10px; margin-top: 6px; }
#profile-sheet .profile-name-entry .cosmetic-action { color: var(--gold-ink); text-shadow: none; }
#profile-sheet input {
flex: 1;
min-width: 0;
min-height: 44px;
border: 1px solid var(--gold-deep);
border-radius: var(--radius);
padding: 6px 10px;
background: var(--navy-deep);
color: var(--text);
font: 22px var(--display);
text-shadow: 0 1px 0 #000;
}
#profile-sheet input:focus-visible { outline: 2px solid var(--neon-cyan); }
#profile-sheet .profile-help { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#profile-sheet #profile-name-status:empty { display: none; }
#profile-sheet .profile-portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
#profile-sheet .profile-portrait-key {
display: flex;
flex-direction: column;
align-items: center;
justify-content: start;
gap: 8px;
min-width: 0;
min-height: 44px;
padding: 8px 2px;
border: 1px solid var(--gold-deep);
border-radius: var(--radius);
background: var(--navy-deep);
color: var(--text);
font: 13px/1.1 var(--display);
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}
#profile-sheet .profile-portrait-key[aria-pressed="true"] { border-color: var(--neon-cyan); box-shadow: 0 2px 0 var(--neon-cyan); }
#profile-sheet .profile-portrait-key .profile-preview-portrait { width: 48px; height: 48px; }
#profile-sheet .profile-stats { margin: 0 0 18px; font: 17px/1.3 var(--display); text-transform: uppercase; text-shadow: 0 1px 0 #000; }
#profile-sheet .profile-stats > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
#profile-sheet .profile-stats dt { color: var(--text); }
#profile-sheet .profile-stats dd { margin: 0; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

#profile-sheet .profile-preview {
flex: none;
display: block;
padding: 7px;
}

#profile-sheet .profile-preview-portrait {
display: block;
width: 84px;
height: 84px;
border-radius: 50%;
background: var(--violet-deep) url("../art/profile-portraits/empress.webp") no-repeat center / contain;
}

#profile-sheet .profile-id { min-width: 0; }

#profile-sheet .profile-name {
color: var(--text);
font-family: var(--display);
font-size: 29px;
letter-spacing: 0.06em;
line-height: 1.1;
text-shadow: 0 1px 0 #000;
overflow-wrap: anywhere;
}

#profile-sheet .profile-rank {
color: var(--gold);
font-family: var(--display);
font-size: 15px;
letter-spacing: 0.05em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

#profile-sheet .profile-wearing {
margin-top: 3px;
color: var(--muted);
font-size: 13px;
line-height: 1.4;
}

#profile-sheet .profile-heading {
flex: none;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
padding: 0 0 10px;
border-bottom: 1px solid var(--hairline);
}

#profile-sheet .profile-heading-name {
color: var(--text);
font-family: var(--display);
font-size: 18px;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

#profile-sheet .profile-count {
display: inline-flex;
align-items: center;
gap: 0.3em;
color: var(--gold);
font-family: var(--display);
font-size: 16px;
font-variant-numeric: tabular-nums;
}

#profile-sheet .profile-list {
padding: 0 2px 8px;
}

#profile-sheet .cosmetic-row {
display: grid;
grid-template-columns: 62px minmax(0, 1fr) 86px;
align-items: center;
gap: 12px;
padding: 13px 0;
border-bottom: 1px solid var(--hairline);
}

#profile-sheet .cosmetic-swatch {
display: grid;
place-items: center;
padding: 6px;
}

#profile-sheet .cosmetic-swatch-face {
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--violet-deep) url("../art/profile-portraits/empress.webp") no-repeat center / contain;
}

#profile-sheet .cosmetic-row:not(.owned) .cosmetic-swatch-face {
opacity: 0.45;
filter: saturate(0.35);
}

#profile-sheet .cosmetic-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}

#profile-sheet .cosmetic-meta {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 2px 8px;
}

#profile-sheet .cosmetic-name {
color: var(--text);
font-family: var(--display);
font-size: 17px;
letter-spacing: 0.04em;
line-height: 1.15;
text-transform: uppercase;
text-shadow: 0 1px 0 #000;
}

#profile-sheet .cosmetic-status {
color: var(--muted);
font-family: var(--display);
font-size: 12px;
letter-spacing: 0.1em;
text-transform: uppercase;
}

#profile-sheet .cosmetic-row.owned .cosmetic-status { color: var(--gold); }
#profile-sheet .cosmetic-row.equipped .cosmetic-status { color: var(--jade); }

#profile-sheet .cosmetic-condition {
color: var(--muted);
font-size: 13px;
line-height: 1.35;
}

#profile-sheet .cosmetic-progress {
color: var(--gold-light);
font-family: var(--display);
font-size: 13px;
letter-spacing: 0.04em;
text-transform: uppercase;
font-variant-numeric: tabular-nums;
}

#profile-sheet .cosmetic-action {
min-height: 48px;
padding: 4px 2px;
border: 2px solid rgba(255, 211, 77, 0.3);
border-radius: 10px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.6);
color: var(--muted);
font-family: var(--display);
font-size: 15px;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
}

#profile-sheet .cosmetic-action:not(:disabled) {
background: var(--gold-bevel);
border-color: var(--gold-light);
color: var(--gold-deep);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

#profile-sheet .cosmetic-action:not(:disabled):active {
transform: translateY(2px);
box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 rgba(0, 0, 0, 0.6);
}

#profile-sheet .profile-note {
flex: none;
margin: 10px 0 0;
color: var(--muted);
font-size: 13px;
line-height: 1.4;
}

.cos-frame-atlas-ring {
--cos-frame-art: url("../art/profile-frames/atlas-ring.webp");
}

.cos-frame-grand-halo {
--cos-frame-art: url("../art/profile-frames/grand-halo.webp");
}

.cos-frame-atlas-ring,
.cos-frame-grand-halo {
position: relative;
overflow: visible;
border: 0;
box-shadow: none;
}

.cos-frame-atlas-ring::after,
.cos-frame-grand-halo::after,
.league-face.you[class*="cos-frame-"]::after {
content: "";
position: absolute;
inset: -9%;
width: 118%;
height: 118%;
border-radius: 0;
background: var(--cos-frame-art) center / contain no-repeat;
transform: none;
pointer-events: none;
}

.lobby-avatar-portrait[class*="cos-frame-"] {
width: 84%;
height: 84%;
margin: 8%;
mask-image: none;
}

@media (max-height: 740px) {
html:not(.landscape) #profile-sheet .profile-portrait-key { gap: 4px; padding: 6px 2px; }
html:not(.landscape) #profile-sheet .profile-portrait-key .profile-preview-portrait { width: 36px; height: 36px; }
#profile-sheet .profile-head { margin-bottom: 12px; }
#profile-sheet .profile-preview-portrait { width: 64px; height: 64px; }
#profile-sheet .profile-name { font-size: 20px; letter-spacing: 0.03em; }
#profile-sheet .cosmetic-row { padding: 10px 0; }
}

#league-sheet.destination-screen {
--league-canopy: #224e85;
--league-hall: #10283f;
--league-floor: #061222;
--league-metal: #dfb959;
}

#league-sheet.destination-screen .sheet-panel {
background: linear-gradient(180deg, rgba(0, 0, 0, .30) 30%, rgba(0, 0, 0, .55)),
url("../art/ui/league-background.webp") center / cover no-repeat;
background-color: var(--league-floor);
}

#league-sheet.destination-screen .league-ladder {
position: relative;
margin: 0 0 18px;
padding: 0 0 17px;
border-bottom: 2px solid var(--league-metal);
}

#league-sheet.destination-screen .league-tier { gap: 9px; }
#league-sheet.destination-screen .league-tier-name { font-size: 12px; letter-spacing: .02em; }
#league-sheet.destination-screen .league-rungs {
width: min(100%, 56px);
grid-template-columns: repeat(3, minmax(0, 1fr));
}
#league-sheet.destination-screen .league-rung-name { font: 600 13px / 1 var(--body); }
#league-sheet.destination-screen .league-score {
font: 600 14px var(--body);
font-variant-numeric: tabular-nums;
}
#league-sheet.destination-screen .league-tier.current .league-mark {
width: 62px;
height: 72px;
filter: drop-shadow(0 3px 0 var(--gold-deep)) drop-shadow(0 0 18px rgba(255, 212, 90, 0.28));
}

#league-sheet.destination-screen .league-info { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-bottom: 14px; text-align: left; }
#league-sheet.destination-screen .league-info-label { font-size: 13px; letter-spacing: 0.12em; color: var(--text); }
#league-sheet.destination-screen .league-timer { margin: 0; padding: 5px 10px; font-size: 18px; background: var(--league-floor); }
#league-sheet.destination-screen .league-movement { grid-column: 1 / -1; margin: 0; line-height: 1.4; text-wrap: pretty; }
#league-sheet.destination-screen .league-perk { grid-column: 1 / -1; margin: 0; font-size: 15px; }
@media (max-width: 360px) {
#league-sheet.destination-screen .league-perk { font-size: 13px; letter-spacing: 0; }
}
#league-sheet.destination-screen .league-result { padding: 0 0 12px; }
#league-sheet.destination-screen .league-list { padding: 0 2px 10px; }
#league-sheet.destination-screen :is(.league-row, .league-dock) { min-height: 62px; grid-template-columns: 36px 38px minmax(0, 1fr) auto; gap: 9px; padding: 11px 0; font-size: 15px; }
#league-sheet.destination-screen .league-place { font-size: 17px; }
#league-sheet.destination-screen .league-face { width: 36px; height: 36px; }
#league-sheet.destination-screen .league-row.active .league-avatar::after { right: 0; bottom: 0; width: 11px; height: 11px; box-shadow: 0 0 0 2px var(--navy-deep); }

/* Source: css/profile-portraits.css */
#profile-sheet .player-portrait-empress,
.lobby-avatar-portrait.player-portrait-empress,
.league-face.you.player-portrait-empress {
background: var(--violet-deep) url("../art/profile-portraits/empress.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-moon-rabbit,
.lobby-avatar-portrait.player-portrait-moon-rabbit,
.league-face.you.player-portrait-moon-rabbit {
background: var(--violet-deep) url("../art/profile-portraits/moon-rabbit.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-night-owl,
.lobby-avatar-portrait.player-portrait-night-owl,
.league-face.you.player-portrait-night-owl {
background: var(--violet-deep) url("../art/profile-portraits/night-owl.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-sun-lion,
.lobby-avatar-portrait.player-portrait-sun-lion,
.league-face.you.player-portrait-sun-lion {
background: var(--violet-deep) url("../art/profile-portraits/sun-lion.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-veiled-sovereign,
.lobby-avatar-portrait.player-portrait-veiled-sovereign,
.league-face.you.player-portrait-veiled-sovereign {
background: var(--violet-deep) url("../art/profile-portraits/veiled-sovereign.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-star-knight,
.lobby-avatar-portrait.player-portrait-star-knight,
.league-face.you.player-portrait-star-knight {
background: var(--violet-deep) url("../art/profile-portraits/star-knight.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-crystal-golem,
.lobby-avatar-portrait.player-portrait-crystal-golem,
.league-face.you.player-portrait-crystal-golem {
background: var(--violet-deep) url("../art/profile-portraits/crystal-golem.webp") no-repeat center / contain;
}
#profile-sheet .player-portrait-comet-fox,
.lobby-avatar-portrait.player-portrait-comet-fox,
.league-face.you.player-portrait-comet-fox {
background: var(--violet-deep) url("../art/profile-portraits/comet-fox.webp") no-repeat center / contain;
}

/* Source: css/player-screens-part-2.css */
#league-sheet.destination-screen .sheet-title {
font-size: clamp(1rem, 5.65vw, 1.4rem);
white-space: nowrap;
}
#league-sheet.destination-screen .sheet-title.long { font-size: clamp(.91rem, 4.8vw, 1.3rem); }
#league-sheet.destination-screen .league-heading-sub { font: 600 .89em var(--body); letter-spacing: .055em; }
#league-sheet.destination-screen :is(.league-row, .league-dock).you .league-place { color: var(--gold-light); }
#league-sheet.destination-screen :is(.league-row, .league-dock).you .league-name { color: var(--neon-cyan); }
#league-sheet.destination-screen .league-row.you { grid-template-columns: 36px 38px minmax(0, 1fr) auto auto; }
.league-you { color: var(--gold); font: 12px var(--display); text-shadow: 0 1px 0 #000; }
.league-you[hidden] { display: none; }

#pearl-sheet.destination-screen {
--planet-sky: #122855;
--planet-night: #060e26;
--planet-deep: #030713;
}

#pearl-sheet.destination-screen .sheet-panel {
background: linear-gradient(180deg, rgba(0, 0, 0, .24) 35%, rgba(0, 0, 0, .40)),
url("../art/ui/planets-background.webp") center / cover no-repeat;
background-color: var(--planet-deep);
}

#pearl-sheet.destination-screen .pearl-contents { padding: 0 2px 12px; }
#pearl-sheet.destination-screen .pearl-headline { margin: 0 0 8px; color: var(--neon-cyan); font-size: 13px; letter-spacing: 0.15em; }
#pearl-sheet.destination-screen .pearl-feature { flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; }
#pearl-sheet.destination-screen .pearl-feature-stage { width: 230px; height: 190px; }
#pearl-sheet.destination-screen .pearl-feature .pearl { width: 164px; height: 164px; margin-bottom: 48px; font-size: 164px; }
#pearl-sheet.destination-screen .pearl-feature-info { flex: none; width: 100%; gap: 7px; }
#pearl-sheet.destination-screen .pearl-feature-rarity { font-size: 24px; }
#pearl-sheet.destination-screen .pearl-feature-name { font-size: 14px; color: var(--text); }
#pearl-sheet.destination-screen .pearl-open-one { width: 200px; max-width: 200px; min-height: 56px; margin: 7px 0 0; }
#pearl-sheet.destination-screen .pearl-list { gap: 10px 4px; padding: 13px 0 8px; margin: 0 0 14px; border-top: 1px solid var(--hairline); }
#pearl-sheet.destination-screen .pearl-tile { min-height: 82px; gap: 8px; padding: 8px 2px; }
#pearl-sheet.destination-screen .pearl-tile .pearl { width: 48px; max-width: 100%; height: auto; aspect-ratio: 1; font-size: 48px; }
#pearl-sheet.destination-screen .pearl-tile-count { right: 2px; top: 0; }
#pearl-sheet.destination-screen .pearl-open-all { min-height: 48px; margin-bottom: 18px; }
#pearl-sheet.destination-screen .atlas-button { min-height: 60px; padding: 7px 4px; margin-bottom: 4px; }
#pearl-sheet.destination-screen .atlas-button-name { font-size: 21px; }
#pearl-sheet.destination-screen .atlas-button-state { font-size: 12px; }
#pearl-sheet.destination-screen .pearl-boosts { padding: 0; margin-bottom: 0; }

@media (max-height: 740px) {
#inbox-sheet.destination-screen .inbox-panel { gap: 10px; }
#inbox-sheet.destination-screen .inbox-head { min-height: 70px; }
#inbox-sheet.destination-screen .inbox-envelope { width: 82px; height: 66px; }
#inbox-sheet.destination-screen .inbox-tab { min-height: 55px; gap: 5px; }
#inbox-sheet.destination-screen .inbox-tile { min-height: 98px; padding: 12px 0; }
#rank-sheet.destination-screen .rank-head { flex-direction: row; gap: 15px; margin-bottom: 12px; }
#rank-sheet.destination-screen .level-star.rank-star { flex: none; width: 90px; height: 90px; font-size: 28px; }
#rank-sheet.destination-screen .level-star.rank-star.long { font-size: 22px; }
#rank-sheet.destination-screen .rank-info { flex: 1; width: auto; }
#rank-sheet.destination-screen .rank-title { justify-content: flex-start; gap: 6px; }
#rank-sheet.destination-screen .rank-name { font-size: 25px; text-align: left; }
#rank-sheet.destination-screen .rank-next { margin-bottom: 12px; }
#rank-sheet.destination-screen .rank-next-item { min-height: 36px; padding: 7px 0; }
#rank-sheet.destination-screen .star-row { padding: 11px 0; }
#league-sheet.destination-screen .league-ladder { margin-bottom: 12px; padding-bottom: 12px; }
#league-sheet.destination-screen .league-tier.current .league-mark { width: 54px; height: 54px; }
#league-sheet.destination-screen :is(.league-row, .league-dock) { min-height: 56px; padding: 8px 0; }
#pearl-sheet.destination-screen .pearl-feature { flex-direction: row; gap: 12px; margin-bottom: 10px; }
#pearl-sheet.destination-screen .pearl-feature-stage { width: 154px; height: 148px; }
#pearl-sheet.destination-screen .pearl-feature .pearl { width: 120px; height: 120px; font-size: 120px; }
#pearl-sheet.destination-screen .pearl-feature-info { flex: 1; width: auto; gap: 6px; }
#pearl-sheet.destination-screen .pearl-feature-rarity { font-size: 22px; }
#pearl-sheet.destination-screen .pearl-open-one { width: 100%; margin-top: 4px; }
#pearl-sheet.destination-screen .pearl-list { margin-bottom: 9px; padding-top: 9px; }
#pearl-sheet.destination-screen .pearl-open-all { margin-bottom: 10px; }
}

@media (min-width: 800px) and (max-height: 640px) {
#rank-sheet.destination-screen .rank-panel,
#league-sheet.destination-screen .sheet-panel { padding-inline: max(22px, calc((100vw - 720px) / 2)); }  #rank-sheet.destination-screen .rank-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: 90px minmax(0, 1fr) auto; gap: 10px 24px; }
#rank-sheet.destination-screen .rank-head { grid-column: 1; grid-row: 1; margin: 0; }
#rank-sheet.destination-screen .rank-next { grid-column: 1; grid-row: 2; margin: 0; min-height: 0; overflow-y: auto; align-content: start; touch-action: pan-y; }
#rank-sheet.destination-screen .rank-next-text { grid-template-columns: 58px minmax(0, 1fr); gap: 4px 8px; }
#rank-sheet.destination-screen .rank-next-sub { grid-column: 2; }
#rank-sheet.destination-screen .rank-next-item.rank .rank-next-sub { grid-row: 2; justify-self: start; }
#rank-sheet.destination-screen .rank-next-prize { grid-column: 2; grid-row: 2; justify-self: end; }
#rank-sheet.destination-screen .rank-next-coin,
#rank-sheet.destination-screen .rank-next-planet .pearl { width: 16px; height: 16px; font-size: 16px; }
#rank-sheet.destination-screen .rank-next-amount { font-size: 13px; }
#rank-sheet.destination-screen .rank-heading { grid-column: 2; grid-row: 1; align-self: end; }
#rank-sheet.destination-screen .rank-list { grid-column: 2; grid-row: 2 / 4; }
#rank-sheet.destination-screen .rank-loyalty { grid-column: 1; grid-row: 3; margin: 0; }
#inbox-sheet.destination-screen .inbox-panel { padding-inline: max(22px, calc((100vw - 820px) / 2)); }
#inbox-sheet.destination-screen .inbox-head { min-height: 56px; }
#inbox-sheet.destination-screen .inbox-envelope { width: 68px; height: 55px; }
#inbox-sheet.destination-screen .inbox-grid { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 30px; }
#inbox-sheet.destination-screen .inbox-grid[hidden] { display: none; }
#pearl-sheet.destination-screen .pearl-contents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; align-content: start; }
#pearl-sheet.destination-screen .pearl-headline { grid-column: 1 / -1; }
#pearl-sheet.destination-screen .pearl-feature { grid-column: 1; grid-row: 1 / 5; align-self: start; }
#pearl-sheet.destination-screen .pearl-list { grid-column: 2; grid-row: 1; margin: 0; }
#pearl-sheet.destination-screen .pearl-open-all { grid-column: 2; grid-row: 2; margin: 0 auto; }
#pearl-sheet.destination-screen .atlas-button { grid-column: 2; grid-row: 3; margin: 0; }
#pearl-sheet.destination-screen .voyage-button { grid-row: 4; }
#pearl-sheet.destination-screen .pearl-odds-button,
#pearl-sheet.destination-screen .pearl-odds,
#pearl-sheet.destination-screen .pearl-boosts { grid-column: 1 / -1; }
}

.league-viewport { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.league-viewport .league-list { width: 100%; }
#league-sheet .league-dock {
position: absolute;
z-index: 2;
left: 2px;
right: 2px;
width: calc(100% - 4px);
margin: 0;
border: 0;
border-radius: 0;
background: var(--league-floor);
box-shadow: none;
text-align: left;
cursor: pointer;
touch-action: manipulation;
}
#league-sheet .league-dock[hidden] { display: none; }
.league-dock.top { top: 0; }
.league-dock.bottom { bottom: 0; }
.league-dock::after {
content: "";
position: absolute;
left: 0;
right: 0;
height: 1px;
background: var(--gold);
}
.league-dock.top::after { bottom: 0; }
.league-dock.bottom::after { top: 0; }
#league-sheet .you .league-place { position: relative; }
#league-sheet .you .league-place::after {
content: "";
position: absolute;
left: 0;
top: calc(50% - 5px);
width: 5px;
height: 10px;
background: var(--gold);
clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Source: css/profile-level.css */

#profile-sheet .profile-rank {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 2px 6px;
}
#profile-sheet .profile-tier {
flex: none;
padding: 1px 4px 0;
border: 1px solid var(--muted);
border-radius: 3px;
color: var(--muted);
font-size: .8rem;
line-height: 14px;
letter-spacing: 0.03em;
text-shadow: none;
white-space: nowrap;
}
#profile-sheet .profile-rank-name { min-width: 0; }

#profile-sheet .lobby-rush {
width: 100%;
margin: 12px 0 16px;
}
html.landscape #profile-sheet .lobby-rush { margin: 10px 0 12px; }

#profile-sheet :is(.rush-level-word, .rush-tag, .rush-note) { font-size: var(--type-label); }

@media (min-height: 701px) {
#profile-sheet .lobby-rush:has(.rush-prize.noted) { height: 60px; }
#profile-sheet .rush-prize.noted { height: 48px; }
#profile-sheet .rush-prize.milestone.noted { padding-top: 13px; }
}

/* Source: css/idle-motion.css */

body.scene-motion-paused .idle-glow,
body.scene-motion-paused .idle-motes,
body.scene-motion-paused .voyage-medal-ring,
body.scene-motion-paused .voyage-rank-claim,
body.scene-motion-paused .atlas-album-art,
body.scene-motion-paused .atlas-medal-ring,
body.scene-motion-paused .inbox-envelope,
body.scene-motion-paused .rank-star,
body.scene-motion-paused .profile-preview,
body.scene-motion-paused .league-mark,
body.scene-motion-paused .pearl-feature-stage,
body.scene-motion-paused .rush-meter-mark,
body.scene-motion-paused .sheet-title,
body.scene-motion-paused .refill-buy,
body.scene-motion-paused .deal-yes,
body.scene-motion-paused .refill-art,
body.scene-motion-paused .intro-coin,
body.scene-motion-paused .streak-pip,
body.scene-motion-paused .chest,
body.scene-motion-paused .express-choice-art,
body.scene-motion-paused .express-show-panel,
body.scene-motion-paused .ascent-show-panel,
body.scene-motion-paused .stampede-show-panel,
body.scene-motion-paused .aurora-show-panel,
body.scene-motion-paused .phoenix-show-panel,
body.scene-motion-paused .phoenix-pot-panel,
body.scene-motion-paused .phoenix-free-panel,
body.scene-motion-paused .mischief-wheel-panel,
body.scene-motion-paused .mischief-pick-panel,
body.scene-motion-paused .mischief-show-panel,
body.scene-motion-paused .auto-count,
body:has(> .level-up.show, > .pearl-open.show, > .bank-screen.open, > .pay.open) .idle-glow,
body:has(> .level-up.show, > .pearl-open.show, > .bank-screen.open, > .pay.open) .idle-motes {
--idle-play: paused;
}

body.scene-motion-paused #app .plaque,
body.scene-motion-paused #app .lagoon-jackpot,
body.scene-motion-paused #app .stampede-jackpot,
body.scene-motion-paused #app .stampede-meter,
body.scene-motion-paused #app .aurora-jackpot,
body.scene-motion-paused #app .frontier-jackpot,
body.scene-motion-paused #app .express-jackpot,
body.scene-motion-paused #app .phoenix-jackpot,
body.scene-motion-paused #app .ascent-jackpot,
body.scene-motion-paused #app .mischief-jackpot,
body.scene-motion-paused #app .studio-jackpot,
body.scene-motion-paused #app .roof,
body.scene-motion-paused #app .spin-button,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .plaque,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .lagoon-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .stampede-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .stampede-meter,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .aurora-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .frontier-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .express-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .phoenix-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .ascent-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .mischief-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .studio-jackpot,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .roof,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .spin-button {
--idle-play: paused;
}


.idle-ambient {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
--idle-glow-a: rgba(255, 206, 120, 0.34);
--idle-glow-b: rgba(150, 120, 255, 0.3);
--idle-mote: rgba(255, 244, 214, 0.95);
}

.idle-glow::before,
.idle-glow::after {
content: "";
position: absolute;
width: 96%;
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(closest-side, var(--idle-glow-a), transparent);
opacity: 0.5;
}

.idle-glow::before { left: -38%; top: -6%; }
.idle-glow::after { right: -42%; top: 36%; background: radial-gradient(closest-side, var(--idle-glow-b), transparent); }

.idle-motes {
position: absolute;
inset: 0;
-webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0.2));
mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0.2));
}

.idle-motes::before,
.idle-motes::after {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
opacity: 0.3;
}

.idle-motes::before {
bottom: -220px;
background-image:
radial-gradient(circle at 12% 18%, var(--idle-mote) 0 1.4px, transparent 2.4px),
radial-gradient(circle at 63% 9%, var(--idle-mote) 0 1px, transparent 2px),
radial-gradient(circle at 38% 52%, var(--idle-mote) 0 1.6px, transparent 2.8px),
radial-gradient(circle at 86% 44%, var(--idle-mote) 0 1.1px, transparent 2.1px),
radial-gradient(circle at 22% 83%, var(--idle-mote) 0 1.2px, transparent 2.2px),
radial-gradient(circle at 71% 76%, var(--idle-mote) 0 1.5px, transparent 2.6px);
background-size: 180px 220px;
}

.idle-motes::after {
bottom: -260px;
background-image:
radial-gradient(circle at 8% 62%, var(--idle-mote) 0 1.2px, transparent 2.2px),
radial-gradient(circle at 47% 24%, var(--idle-mote) 0 1.7px, transparent 3px),
radial-gradient(circle at 79% 13%, var(--idle-mote) 0 1px, transparent 2px),
radial-gradient(circle at 58% 88%, var(--idle-mote) 0 1.4px, transparent 2.4px),
radial-gradient(circle at 93% 71%, var(--idle-mote) 0 1.1px, transparent 2.1px),
radial-gradient(circle at 30% 38%, var(--idle-mote) 0 0.9px, transparent 1.9px);
background-size: 230px 260px;
}

.destination-screen.open .idle-glow::before {
animation: idle-drift-a 17s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.destination-screen.open .idle-glow::after {
animation: idle-drift-b 23s ease-in-out -6s infinite;
animation-play-state: var(--idle-play, running);
}

.destination-screen.open .idle-motes::before {
animation: idle-rise-a 46s linear infinite, idle-twinkle 5.2s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.destination-screen.open .idle-motes::after {
animation: idle-rise-b 61s linear infinite, idle-twinkle 6.8s ease-in-out -3.4s infinite;
animation-play-state: var(--idle-play, running);
}

#voyage-sheet .idle-ambient { --idle-glow-a: rgba(176, 120, 255, 0.42); --idle-glow-b: rgba(120, 255, 214, 0.24); --idle-mote: rgba(236, 228, 255, 0.95); }
#rush-sheet .idle-ambient { --idle-glow-a: rgba(80, 220, 230, 0.3); --idle-glow-b: rgba(120, 110, 255, 0.34); --idle-mote: rgba(220, 250, 255, 0.95); }
#atlas-sheet .idle-ambient { --idle-glow-a: rgba(255, 196, 110, 0.34); --idle-glow-b: rgba(255, 150, 80, 0.22); }
#inbox-sheet .idle-ambient { --idle-glow-a: rgba(255, 140, 190, 0.3); --idle-glow-b: rgba(255, 206, 120, 0.24); --idle-mote: rgba(255, 226, 240, 0.95); }
#rank-sheet .idle-ambient,
#profile-sheet .idle-ambient { --idle-glow-a: rgba(110, 170, 255, 0.34); --idle-glow-b: rgba(255, 212, 90, 0.24); }
#league-sheet .idle-ambient { --idle-glow-a: rgba(255, 206, 110, 0.34); --idle-glow-b: rgba(110, 170, 255, 0.26); }
#pearl-sheet .idle-ambient { --idle-glow-a: rgba(110, 220, 255, 0.32); --idle-glow-b: rgba(170, 120, 255, 0.26); --idle-mote: rgba(220, 246, 255, 0.95); }
#shop .idle-ambient { --idle-glow-a: rgba(255, 120, 170, 0.26); --idle-glow-b: rgba(255, 206, 120, 0.26); }


#voyage-sheet.open .voyage-medal-ring {
animation: idle-float 4.4s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

#voyage-sheet .voyage-medal:nth-child(3n + 2) { --idle-delay: -1.5s; }
#voyage-sheet .voyage-medal:nth-child(3n) { --idle-delay: -2.9s; }

#voyage-sheet .voyage-galaxy { padding-top: 10px; }

.voyage-medal.ready .voyage-medal-ring::after {
content: "";
position: absolute;
inset: 14%;
border-radius: 50%;
box-shadow: inset 0 0 18px 4px var(--starlight);
opacity: 0.3;
pointer-events: none;
}

#voyage-sheet.open .voyage-medal.ready .voyage-medal-ring::after {
animation: idle-breathe 2.6s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.voyage-rank-claim {
position: relative;
overflow: hidden;
}

.voyage-rank-claim::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
translate: -101% 0;
pointer-events: none;
}

#voyage-sheet.open .voyage-rank-claim:not([hidden])::after {
animation: idle-glint 3.6s ease-in-out 1.2s infinite;
animation-play-state: var(--idle-play, running);
}

#atlas-sheet.open .atlas-album-art {
animation: idle-sway 5.6s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#atlas-sheet.open .atlas-medal:not(.complete) .atlas-medal-ring {
animation: idle-float 4.6s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

#atlas-sheet .atlas-medal:nth-child(3n + 2) { --idle-delay: -1.6s; }
#atlas-sheet .atlas-medal:nth-child(3n) { --idle-delay: -3.1s; }

#inbox-sheet.open .inbox-envelope {
animation: idle-sway 4.8s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#rank-sheet .rank-star {
filter: none;
isolation: isolate;
}

#rank-sheet .rank-star::after {
content: "";
position: absolute;
inset: -18%;
z-index: -1;
border-radius: 50%;
background: radial-gradient(closest-side, transparent 62%, rgba(255, 212, 90, 0.55) 78%, transparent);
opacity: 0.35;
pointer-events: none;
}

#rank-sheet.open .rank-star::after {
animation: idle-breathe 3.6s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#profile-sheet.open .profile-preview {
animation: idle-float 4.2s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#league-sheet.open .league-tier.current .league-mark {
animation: idle-float 3.8s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#pearl-sheet.open .pearl-feature-stage::before {
animation: idle-breathe 3.2s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

#rush-sheet.open .rush-meter-mark {
animation: idle-spark 3s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}


.sheet:not(.destination-screen) .sheet-title::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
translate: -101% 0;
pointer-events: none;
}

.sheet.open:not(.destination-screen) .sheet-title::after {
animation: idle-glint 5.2s ease-in-out 0.8s infinite;
animation-play-state: var(--idle-play, running);
}

.deal-yes.intro-play {
position: relative;
overflow: hidden;
}

.deal-yes.intro-play::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
translate: -101% 0;
pointer-events: none;
}

.sheet.open .refill-buy::after,
.sheet.open .deal-yes.intro-play::after {
animation: idle-glint 3.6s ease-in-out 2s infinite;
animation-play-state: var(--idle-play, running);
}

.sheet.open .refill-art {
animation: refill-bob 3.2s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.intro-sheet.open .intro-coin {
animation: idle-float 3.4s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.streak-sheet.open .streak-pip.break {
animation: idle-blink 1.8s ease-in-out 0.6s infinite;
animation-play-state: var(--idle-play, running);
}


.deal.open .deal-chest:not(:disabled, .mine, .opening, .opened, .chosen) .chest::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(115deg, transparent 44%, #fff6d6 50%, transparent 56%);
mix-blend-mode: screen;
-webkit-mask: url("../art/ui/capsule.webp") center / 100% 100% no-repeat;
mask: url("../art/ui/capsule.webp") center / 100% 100% no-repeat;
opacity: 0;
pointer-events: none;
animation: idle-capsule 4.8s ease-in-out calc(-0.2s * var(--i)) infinite;
animation-play-state: var(--idle-play, running);
}

body.scene-motion-paused #deal .deal-chest .chest::after { visibility: hidden; }

/* Source: css/idle-motion-machines.css */


#app #jackpots .plaque.jackpot::before,
#app .lagoon-jackpot::before,
#app .stampede-jackpot::before,
#app .aurora-jackpot::before,
#app .frontier-jackpot::before,
#app .express-jackpot::before,
#app .phoenix-jackpot::before,
#app .ascent-jackpot::before,
#app .mischief-jackpot::before,
#app .studio-jackpot::before {
content: "";
position: absolute;
top: -7px;
right: 5px;
z-index: 1;
width: 18px;
height: 18px;
background:
radial-gradient(circle, #fff 0 1.3px, rgba(255, 236, 170, 0.9) 2.2px, transparent 4.5px),
linear-gradient(90deg, transparent, rgba(255, 246, 214, 0.95) 50%, transparent) center / 100% 1.5px no-repeat,
linear-gradient(180deg, transparent, rgba(255, 246, 214, 0.95) 50%, transparent) center / 1.5px 100% no-repeat;
opacity: 0;
scale: 0.2;
pointer-events: none;
}

#app .lagoon-jackpot,
#app .aurora-jackpot {
position: relative;
}

#app #jackpots .plaque.jackpot::before,
#app .lagoon-jackpot::before,
#app .stampede-jackpot::before,
#app .aurora-jackpot::before,
#app .frontier-jackpot::before,
#app .express-jackpot::before,
#app .phoenix-jackpot::before,
#app .ascent-jackpot::before,
#app .mischief-jackpot::before,
#app .studio-jackpot::before {
animation: idle-plaque-glint 4.4s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

#app :is(.plaque.jackpot, .lagoon-jackpot, .stampede-jackpot, .aurora-jackpot, .express-jackpot, .phoenix-jackpot, .ascent-jackpot, .frontier-jackpot, .mischief-jackpot, .studio-jackpot).major { --idle-delay: -3.3s; }
#app :is(.plaque.jackpot, .lagoon-jackpot, .stampede-jackpot, .aurora-jackpot, .express-jackpot, .phoenix-jackpot, .ascent-jackpot, .frontier-jackpot, .mischief-jackpot, .studio-jackpot).minor { --idle-delay: -2.2s; }
#app :is(.plaque.jackpot, .lagoon-jackpot, .stampede-jackpot, .aurora-jackpot, .express-jackpot, .phoenix-jackpot, .ascent-jackpot, .frontier-jackpot, .mischief-jackpot, .studio-jackpot).mini { --idle-delay: -1.1s; }

#app #tower .roof::after {
animation: idle-crystal 3.6s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

@media (prefers-reduced-motion: no-preference) {
#grid:not(:has(.spinning, .cell-spin)) .cell.idle-on:not(.win, .hit) :is(.sym-face:not(.has-idle-pose, .pose-on), .koi-pearl-orb) {
animation: var(--idle-sym) 9s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}
}

#grid .cell[data-idle="breathe"] { --idle-sym: idle-sym-breathe; }
#grid .cell[data-idle="sway"] { --idle-sym: idle-sym-sway; }
#grid .cell[data-idle="flick"] { --idle-sym: idle-sym-flick; }
#grid .cell[data-idle="turn"] { --idle-sym: idle-sym-turn; }
#grid .cell[data-idle="spin"] { --idle-sym: idle-sym-spin; }

body.in-lobby #app .idle-on,
body.destination-active #app .idle-on,
body.scene-motion-paused #app .idle-on,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) #app .idle-on {
--idle-play: paused;
}

#app .spin-button::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: 0 0 14px 3px rgba(125, 255, 90, 0.8);
opacity: 0;
pointer-events: none;
}

#app .spin-button:where(:not(.stop, .auto, .broke, .busy, :disabled))::after {
animation: idle-spin-breathe 2.8s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}


:root {
--parallax-drift: 6px;
--parallax-spin: 6px;
--parallax-land: 2.5px;
--parallax-reach: 12px;
}

[data-parallax] {
--parallax-depth: 0;
--parallax-bleed: calc(var(--parallax-reach) * var(--parallax-depth));
pointer-events: none;
animation: idle-parallax 26s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

[data-parallax="far"] { --parallax-depth: 0.25; }
[data-parallax="mid"] { --parallax-depth: 0.55; }
[data-parallax="frame"] { --parallax-depth: 1; }


.express-pick.show .express-choice-art {
animation: idle-float 3.8s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

.express-choice.line { --idle-delay: -1.9s; }

.express-show.show .express-show-hero,
.studio-show.show .studio-show-hero,
.ascent-show.show .ascent-show-hero,
.stampede-show.show .stampede-show-hero,
.phoenix-show.show .phoenix-show-hero,
.mischief-show.show .mischief-show-hero {
animation: idle-breathe-scale 3.2s ease-in-out infinite;
animation-play-state: var(--idle-play, running);
}

.aurora-show.show .aurora-show-pot.on {
animation: idle-float 3.6s ease-in-out var(--idle-delay, 0s) infinite;
animation-play-state: var(--idle-play, running);
}

.aurora-show-pot:nth-child(2) { --idle-delay: -1.2s; }
.aurora-show-pot:nth-child(3) { --idle-delay: -2.4s; }

.express-show-panel button,
.studio-show-panel button,
.ascent-show-panel button,
.stampede-show-panel button,
.aurora-show-panel button,
.mischief-show-panel button,
.auto-count {
position: relative;
overflow: hidden;
}

.express-show-panel button::after,
.studio-show-panel button::after,
.ascent-show-panel button::after,
.stampede-show-panel button::after,
.aurora-show-panel button::after,
.mischief-show-panel button::after,
.auto-count::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
translate: -101% 0;
pointer-events: none;
}

.express-show.show .express-show-panel button::after,
.studio-show.show .studio-show-panel button::after,
.ascent-show.show .ascent-show-panel button::after,
.stampede-show.show .stampede-show-panel button::after,
.aurora-show.show .aurora-show-panel button::after,
.mischief-show.show .mischief-show-panel button::after {
animation: idle-glint 3.6s ease-in-out 1.2s infinite;
animation-play-state: var(--idle-play, running);
}

.auto-picker.open .auto-count::after {
animation: idle-glint-wave 4.8s ease-in-out var(--idle-delay, 0.8s) infinite;
animation-play-state: var(--idle-play, running);
}

.auto-count:nth-child(2) { --idle-delay: 0.95s; }
.auto-count:nth-child(3) { --idle-delay: 1.1s; }
.auto-count:nth-child(4) { --idle-delay: 1.25s; }
.auto-count:nth-child(5) { --idle-delay: 1.4s; }
.auto-count:nth-child(6) { --idle-delay: 1.55s; }


@keyframes idle-sym-breathe {
0%, 25%, 100% { scale: 1; }
12% { scale: 1.06; }
}

@keyframes idle-sym-sway {
0%, 25%, 100% { rotate: 0deg; }
8% { rotate: -4deg; }
17% { rotate: 3deg; }
}

@keyframes idle-sym-flick {
0%, 18%, 100% { rotate: 0deg; translate: 0 0; }
4% { rotate: -5deg; translate: 0 -2px; }
9% { rotate: 4deg; translate: 0 0; }
13% { rotate: -2deg; }
}

@keyframes idle-sym-turn {
0% { rotate: 0deg; }
25%, 100% { rotate: 360deg; }
}

@keyframes idle-sym-spin {
0% { rotate: y 0deg; }
14%, 100% { rotate: y 360deg; }
}

@keyframes idle-glint-wave {
0% { translate: -101% 0; }
22%, 100% { translate: 101% 0; }
}

@keyframes idle-plaque-glint {
0%, 62%, 100% { opacity: 0; scale: 0.2; rotate: 0deg; }
72% { opacity: 1; scale: 1; rotate: 45deg; }
86% { opacity: 0; scale: 0.3; rotate: 90deg; }
}

@keyframes idle-spin-breathe {
0%, 100% { opacity: 0.1; }
50% { opacity: 0.85; }
}

@keyframes idle-crystal {
0%, 100% { scale: 1; rotate: 0deg; }
50% { scale: 1.14; rotate: 6deg; }
}

@keyframes idle-drift-a {
0%, 100% { translate: 0 0; opacity: 0.45; }
50% { translate: 14% 9%; opacity: 1; }
}

@keyframes idle-drift-b {
0%, 100% { translate: 0 0; opacity: 0.4; }
50% { translate: -12% -10%; opacity: 0.95; }
}

@keyframes idle-rise-a {
from { translate: 0 0; }
to { translate: 0 -220px; }
}

@keyframes idle-rise-b {
from { translate: 0 0; }
to { translate: 0 -260px; }
}

@keyframes idle-twinkle {
0%, 100% { opacity: 0.25; }
50% { opacity: 1; }
}

@keyframes idle-float {
0%, 100% { translate: 0 0; }
50% { translate: 0 -5px; }
}

@keyframes idle-sway {
0%, 100% { translate: 0 0; rotate: -2deg; }
50% { translate: 0 -5px; rotate: 2deg; }
}

@keyframes idle-breathe {
0%, 100% { opacity: 0.35; }
50% { opacity: 1; }
}

@keyframes idle-breathe-scale {
0%, 100% { scale: 1; }
50% { scale: 1.05; }
}

@keyframes idle-spark {
0%, 100% { scale: 1; rotate: 0deg; }
45% { scale: 1.14; rotate: 10deg; }
60% { scale: 1.04; rotate: 4deg; }
}

@keyframes idle-blink {
0%, 100% { opacity: 1; }
45% { opacity: 0.4; }
}

@keyframes idle-glint {
0% { translate: -101% 0; }
40%, 100% { translate: 101% 0; }
}

@keyframes idle-parallax {
0%, 50%, 100% { translate: 0 0; }
25% { translate: calc(var(--parallax-drift) * var(--parallax-depth)) calc(var(--parallax-drift) * var(--parallax-depth) / -3); }
75% { translate: calc(var(--parallax-drift) * var(--parallax-depth) * -1) calc(var(--parallax-drift) * var(--parallax-depth) / -3); }
}

@keyframes idle-capsule {
0%, 79%, 86%, 100% { opacity: 0; }
82.5% { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
.idle-ambient { display: none; }
#voyage-sheet.open .voyage-medal-ring,
#voyage-sheet.open .voyage-medal.ready .voyage-medal-ring::after,
#voyage-sheet.open .voyage-rank-claim:not([hidden])::after,
#atlas-sheet.open .atlas-album-art,
#atlas-sheet.open .atlas-medal:not(.complete) .atlas-medal-ring,
#inbox-sheet.open .inbox-envelope,
#rank-sheet.open .rank-star::after,
#profile-sheet.open .profile-preview,
#league-sheet.open .league-tier.current .league-mark,
#pearl-sheet.open .pearl-feature-stage::before,
#rush-sheet.open .rush-meter-mark,
.sheet.open:not(.destination-screen) .sheet-title::after,
.sheet.open .refill-buy::after,
.sheet.open .deal-yes.intro-play::after,
.sheet.open .refill-art,
.intro-sheet.open .intro-coin,
.streak-sheet.open .streak-pip.break,
.deal.open .deal-chest:not(:disabled, .mine, .opening, .opened, .chosen) .chest::after,
#app #jackpots .plaque.jackpot::before,
#app .lagoon-jackpot::before,
#app .stampede-jackpot::before,
#app .aurora-jackpot::before,
#app .frontier-jackpot::before,
#app .express-jackpot::before,
#app .phoenix-jackpot::before,
#app .ascent-jackpot::before,
#app .mischief-jackpot::before,
#app .studio-jackpot::before,
#app #tower .roof::after,
#app .spin-button::after,
.express-pick.show .express-choice-art,
.express-show.show .express-show-hero,
.studio-show.show .studio-show-hero,
.ascent-show.show .ascent-show-hero,
.stampede-show.show .stampede-show-hero,
.phoenix-show.show .phoenix-show-hero,
.mischief-show.show .mischief-show-hero,
.aurora-show.show .aurora-show-pot.on,
.express-show.show .express-show-panel button::after,
.studio-show.show .studio-show-panel button::after,
.ascent-show.show .ascent-show-panel button::after,
.stampede-show.show .stampede-show-panel button::after,
.aurora-show.show .aurora-show-panel button::after,
.mischief-show.show .mischief-show-panel button::after,
.auto-picker.open .auto-count::after {
animation: none;
}
}

#app .jackpot-qualifiable { position: relative; overflow: visible; }
#app .jackpot-locked { border-color: #a794ae; box-shadow: none; }
#app .jackpot-locked > :not(.jackpot-qualify) { filter: saturate(0.55) brightness(0.88); }
#app .jackpot-qualify {
position: absolute;
z-index: 2;
inset-inline: 0;
top: 50%;
transform: translateY(-50%);
min-width: 44px;
height: max(100%, calc(44.2px * var(--tower-type-scale, 1)));
border: 0;
border-radius: inherit;
padding: 0;
background: transparent;
box-shadow: none;
cursor: pointer;
}

html.landscape #app:has(> :not([hidden]) .jackpot-qualifiable) { --ls-strip: 46px; }


html:not(.landscape) #app .lagoon-jackpot.jackpot-locked {
flex-direction: column;
align-items: center;
gap: 0;
padding-block: 5px;
}

@container studio-sign (max-height: 200px) {
html:not(.landscape) #app .studio-jackpot.jackpot-locked { padding-block: 4px; }
}

@media (max-height: 700px) {

#app:has(> .tower:not([hidden])) {
--nebula-min-cell: 44px;
--nebula-chrome: 434px;
}
#app .tower .jackpot-qualifiable {
min-height: calc(45px * var(--tower-type-scale, 1));
justify-content: center;
}
}
#app .jackpot-qualify:focus-visible { outline: 2px solid white; outline-offset: -2px; }
#app .jackpot-qualify[hidden], #app .jackpot-lock-badge[hidden] { display: none; }
#app .jackpot-lock-badge {
display: inline-flex;
align-items: center;
gap: 3px;
margin-inline-start: 4px;
padding: 1px 3px;
border-radius: 4px;
background: #251e36;
color: #fff4db;
font: 600 max(11.2px, calc(11.2px * var(--tower-type-scale, 1)))/1 var(--body);
letter-spacing: 0;
vertical-align: middle;
white-space: nowrap;
}
#app .jackpot-lock-badge::after { content: attr(data-minimum); }
#app .jackpot-lock-badge::before {
content: "";
width: 7px;
height: 5px;
margin-top: 4px;
border-radius: 1px;
background: currentColor;
box-shadow: 0 -3px 0 -1px #251e36, 0 -4px 0 -1px currentColor;
}

/* Source: css/scene-motion.css */
.scene-hero-window {
display: block;
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
animation-play-state: inherit;
}
.scene-hero-strip {
display: block;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-size: calc(100% * var(--hero-frames)) 100%;
background-position: 0% 0;
animation: scene-hero-frames var(--hero-period) steps(var(--hero-frames), end) infinite;
animation-play-state: inherit;
}
@keyframes scene-hero-frames {
to { background-position: calc(100% * var(--hero-frames) / (var(--hero-frames) - 1)) 0; }
}
@media (prefers-reduced-motion: reduce) {
.scene-hero-strip { animation: none; }
}

.scene-loop {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
mask: var(--loop-mask);
-webkit-mask: var(--loop-mask);
}
.scene-loop-tile {
position: absolute;
inset: 0 auto 0 0;
width: calc(100% + var(--loop-tile-w));
background: var(--loop-tile) 0 0 / var(--loop-tile-w) var(--loop-tile-h) repeat;
animation: scene-loop-scroll var(--loop-period) linear infinite;
}
@keyframes scene-loop-scroll { to { transform: translate3d(calc(-1 * var(--loop-tile-w)), 0, 0); } }

body.in-lobby .machine-scene-motion,
body.in-lobby [data-parallax],
body.destination-active .machine-scene-motion,
body.destination-active [data-parallax],
body.scene-motion-paused .machine-scene-motion,
body.scene-motion-paused [data-parallax],
.app[hidden] .machine-scene-motion,
.app[hidden] [data-parallax],
.app > [hidden] .machine-scene-motion,
.app > [hidden] [data-parallax],
body:has(#grid :is(.spinning, .cell-spin)) .machine-scene-motion,
body:has(#grid :is(.spinning, .cell-spin)) [data-parallax],
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .machine-scene-motion,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) [data-parallax] {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
.machine-scene-motion,
[data-parallax] { animation: none; }
}

.app.tease-tint [data-parallax="far"]::after,
.app.tease-fade [data-parallax="far"]::after {
content: "";
position: absolute;
inset: 0;
background: var(--tease-tint, transparent);
mix-blend-mode: hard-light;
opacity: 0.6;
pointer-events: none;
animation: tease-tint-in 400ms ease-in both;
}
.app.tease-fade [data-parallax="far"]::after {
opacity: 0;
animation: tease-tint-out 700ms ease-out both;
}
@keyframes tease-tint-in { from { opacity: 0; } to { opacity: 0.6; } }
@keyframes tease-tint-out { from { opacity: 0.6; } to { opacity: 0; } }

.scene-win-light {
position: absolute;
inset: 0;
overflow: hidden;
opacity: 0;
pointer-events: none;
mask: var(--win-mask, none);
}
.scene-win-light.flash,
.scene-win-light.hold {
background: linear-gradient(180deg, var(--win-tint), transparent 90%);
mix-blend-mode: screen;
}
.scene-win-light.flash { animation: scene-win-flash var(--win-ms) ease-out both; }
.scene-win-light.hold { animation: scene-win-hold-in var(--win-in) ease-out both; }
.scene-win-light.hold.out { animation: scene-win-hold-out var(--win-out) ease-in both; }
.scene-win-light.wave { animation: scene-win-wave var(--win-ms) linear both; }
.scene-win-light.flash,
.scene-win-light.hold,
.scene-win-light.hold.out,
.scene-win-light.wave {
animation-play-state: var(--idle-play, running);
}
.scene-win-band {
position: absolute;
inset: 0 auto;
left: 0;
width: 45%;
background: linear-gradient(90deg, transparent, var(--win-tint) 50%, transparent);
mix-blend-mode: screen;
opacity: 0.85;
animation: scene-win-sweep var(--win-ms) ease-in-out both;
animation-play-state: var(--idle-play, running);
}
@keyframes scene-win-flash { 0% { opacity: 0; } 22% { opacity: 0.38; } 100% { opacity: 0; } }
@keyframes scene-win-wave { 0% { opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scene-win-sweep { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(222%, 0, 0); } }
@keyframes scene-win-hold-in { from { opacity: 0; } to { opacity: var(--win-hold); } }
@keyframes scene-win-hold-out { from { opacity: var(--win-hold); } to { opacity: 0; } }

body.in-lobby .scene-win-light,
body.destination-active .scene-win-light,
body.scene-motion-paused .scene-win-light,
.app[hidden] .scene-win-light,
.app > [hidden] .scene-win-light,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer)) .scene-win-light {
--idle-play: paused;
}

@media (prefers-reduced-motion: reduce) {
.scene-win-light { display: none; animation: none; }
.scene-win-band { animation: none; }
}

/* Source: css/fx.css */
.fx-p {
position: absolute;
width: var(--w, 32px);
height: var(--w, 32px);
background: center / contain no-repeat;
opacity: 0;
pointer-events: none;
animation-duration: var(--dur, 1s);
animation-delay: var(--delay, 0s);
animation-timing-function: linear;
animation-fill-mode: both;
}

.fx-burst { animation-name: fx-burst; }
.fx-fall { animation-name: fx-fall; }
.fx-pop { animation-name: fx-pop; animation-timing-function: ease-out; }
.fx-bloom { animation-name: fx-bloom; animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
.fx-rise { animation-name: fx-rise; animation-timing-function: cubic-bezier(0.3, 0.1, 0.6, 1); }
.fx-streak { animation-name: fx-streak; animation-timing-function: cubic-bezier(0.4, 0, 0.8, 0.6); }
.fx-halo { animation-name: fx-halo; }
.fx-kick { animation-name: fx-kick; animation-timing-function: ease-out; }
.fx-hold { animation-name: fx-hold; }
.fx-beam { animation-name: fx-beam; animation-timing-function: ease-in-out; transform-origin: 50% 0; }
.fx-ripple { animation-name: fx-ripple; animation-timing-function: ease-out; }
.fx-strike { animation-name: fx-strike; animation-timing-function: ease-out; }

.fx-f {
position: absolute;
inset: 0;
background: 0 0 / 800% 100% no-repeat;
animation-name: fx-frames;
animation-delay: var(--delay, 0s);
animation-fill-mode: both;
}

@keyframes fx-frames {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}

@keyframes fx-hold {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)); }
6% { opacity: 1; }
70% { opacity: 1; transform: translate(-50%, calc(-50% + var(--g) * 0.5)) rotate(var(--rot)); }
100% { opacity: 0; transform: translate(-50%, calc(-50% + var(--g))) rotate(var(--rot)); }
}

@keyframes fx-burst {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.4); }
8% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.18), calc(-50% + var(--dy) * 0.18)) rotate(calc(var(--rot) + var(--spin) * 0.08)) scale(1); }
30% { transform: translate(calc(-50% + var(--dx) * 0.51), calc(-50% + var(--dy) * 0.51 + var(--g) * 0.09)) rotate(calc(var(--rot) + var(--spin) * 0.3)) scale(1); }
65% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.88), calc(-50% + var(--dy) * 0.88 + var(--g) * 0.42)) rotate(calc(var(--rot) + var(--spin) * 0.65)) scale(0.95); }
100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + var(--g))) rotate(calc(var(--rot) + var(--spin))) scale(0.8); }
}

@keyframes fx-fall {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)); }
8% { opacity: 1; }
33% { transform: translate(calc(-50% + var(--sway)), calc(-50% + var(--dy) * 0.33)) rotate(calc(var(--rot) + var(--spin) * 0.33)); }
66% { opacity: 1; transform: translate(calc(-50% - var(--sway) * 0.8), calc(-50% + var(--dy) * 0.66)) rotate(calc(var(--rot) + var(--spin) * 0.66)); }
100% { opacity: 0; transform: translate(calc(-50% + var(--sway) * 0.4), calc(-50% + var(--dy))) rotate(calc(var(--rot) + var(--spin))); }
}

@keyframes fx-pop {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(0); }
35% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--rot) + var(--spin) * 0.5)) scale(1.15); }
100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--rot) + var(--spin))) scale(0.2); }
}

@keyframes fx-bloom {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.12); }
12% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.55); }
50% { opacity: 0.9; transform: translate(-50%, calc(-50% + var(--g) * 0.25)) rotate(var(--rot)) scale(0.9); }
100% { opacity: 0; transform: translate(-50%, calc(-50% + var(--g))) rotate(var(--rot)) scale(1); }
}

@keyframes fx-rise {
0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
12% { opacity: 1; }
85% { opacity: 1; }
100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.9); }
}

@keyframes fx-streak {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)); }
12% { opacity: 1; }
85% { opacity: 1; }
100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); }
}

@keyframes fx-halo {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.6); }
25% { opacity: 0.9; transform: translate(-50%, -50%) rotate(calc(var(--rot) + var(--spin) * 0.25)) scale(1); }
75% { opacity: 0.9; transform: translate(-50%, -50%) rotate(calc(var(--rot) + var(--spin) * 0.75)) scale(1.05); }
100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--rot) + var(--spin))) scale(1.15); }
}

@keyframes fx-kick {
0% { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--flip) * 0.3), 0.3); }
14% { opacity: 1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(calc(var(--flip) * 1.1), 1.1); }
30% { opacity: 1; transform: translate(-50%, -50%) scale(var(--flip), 1); }
80% { opacity: 1; }
100% { opacity: 0; transform: translate(-50%, -50%) scale(var(--flip), 1); }
}

@keyframes fx-beam {
0% { opacity: 0; transform: translate(-50%, 0) rotate(var(--rot)); }
18% { opacity: 0.3; }
50% { transform: translate(-50%, 0) rotate(calc(var(--rot) + var(--spin))); }
82% { opacity: 0.3; }
100% { opacity: 0; transform: translate(-50%, 0) rotate(var(--rot)); }
}

@keyframes fx-ripple {
0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.3); }
100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes fx-strike {
0% { opacity: 0; transform: translate(-50%, -62%) rotate(var(--rot)) scale(0.7); }
10% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.1); }
24% { opacity: 0.35; }
36% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.15); }
100% { opacity: 0; transform: translate(-50%, -46%) rotate(var(--rot)) scale(1); }
}

body.scene-motion-paused :is(.fx-p, .fx-f),
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) :is(#fx-layer, #app) :is(.fx-p, .fx-f) { animation-play-state: paused; }
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) #fx-layer .fx-p { visibility: hidden; }

.fx-s-bloom-crackle { background-image: url("../art/sprites/bloom-crackle.webp"); }
.fx-s-bloom-cyan { background-image: url("../art/sprites/bloom-cyan.webp"); }
.fx-s-bloom-heart { background-image: url("../art/sprites/bloom-heart.webp"); }
.fx-s-bloom-palm { background-image: url("../art/sprites/bloom-palm.webp"); }
.fx-s-bloom-rainbow { background-image: url("../art/sprites/bloom-rainbow.webp"); }
.fx-s-bloom-ruby { background-image: url("../art/sprites/bloom-ruby.webp"); }
.fx-s-bloom-sapphire { background-image: url("../art/sprites/bloom-sapphire.webp"); }
.fx-s-bloom-silver { background-image: url("../art/sprites/bloom-silver.webp"); }
.fx-s-bloom-star { background-image: url("../art/sprites/bloom-star.webp"); }
.fx-s-bloom-willow { background-image: url("../art/sprites/bloom-willow.webp"); }
.fx-s-comet { background-image: url("../art/sprites/comet.webp"); }
.fx-s-confetti-cyan { background-image: url("../art/sprites/confetti-cyan.webp"); }
.fx-s-confetti-emerald { background-image: url("../art/sprites/confetti-emerald.webp"); }
.fx-s-confetti-gold { background-image: url("../art/sprites/confetti-gold.webp"); }
.fx-s-confetti-magenta { background-image: url("../art/sprites/confetti-magenta.webp"); }
.fx-s-confetti-silver { background-image: url("../art/sprites/confetti-silver.webp"); }
.fx-s-confetti-star { background-image: url("../art/sprites/confetti-star.webp"); }
.fx-s-crackle { background-image: url("../art/sprites/crackle.webp"); }
.fx-s-diamond { background-image: url("../art/sprites/diamond.webp"); }
.fx-s-dust-gold { background-image: url("../art/sprites/dust-gold.webp"); }
.fx-s-dust-gold-wide { background-image: url("../art/sprites/dust-gold-wide.webp"); }
.fx-s-ember { background-image: url("../art/sprites/ember.webp"); }
.fx-s-glint { background-image: url("../art/sprites/glint.webp"); }
.fx-s-heart { background-image: url("../art/sprites/heart.webp"); }
.fx-s-moon { background-image: url("../art/sprites/moon.webp"); }
.fx-s-popper { background-image: url("../art/sprites/popper.webp"); }
.fx-s-rays { background-image: url("../art/sprites/rays.webp"); }
.fx-s-ribbon-violet { background-image: url("../art/sprites/ribbon-violet.webp"); }
.fx-s-ring { background-image: url("../art/sprites/ring.webp"); }
.fx-s-rocket { background-image: url("../art/sprites/rocket.webp"); }
.fx-s-shooting-star { background-image: url("../art/sprites/shooting-star.webp"); }
.fx-s-spark-cluster { background-image: url("../art/sprites/spark-cluster.webp"); }
.fx-s-spark-cyan { background-image: url("../art/sprites/spark-cyan.webp"); }
.fx-s-spark-gold { background-image: url("../art/sprites/spark-gold.webp"); }
.fx-s-spark-magenta { background-image: url("../art/sprites/spark-magenta.webp"); }
.fx-s-spark-violet { background-image: url("../art/sprites/spark-violet.webp"); }
.fx-s-spark-white { background-image: url("../art/sprites/spark-white.webp"); }
.fx-s-sparkle-cluster { background-image: url("../art/sprites/sparkle-cluster.webp"); }
.fx-s-star-cyan { background-image: url("../art/sprites/star-cyan.webp"); }
.fx-s-star-gold { background-image: url("../art/sprites/star-gold.webp"); }
.fx-s-star-magenta { background-image: url("../art/sprites/star-magenta.webp"); }
.fx-s-streamer-gold { background-image: url("../art/sprites/streamer-gold.webp"); }
.fx-s-token { background-image: url("../art/sprites/token.webp"); }
.fx-s-twinkle { background-image: url("../art/sprites/twinkle.webp"); }
.fx-s-balloon-gold { background-image: url("../art/sprites/balloon-gold.webp"); }
.fx-s-balloon-magenta { background-image: url("../art/sprites/balloon-magenta.webp"); }
.fx-s-beam { background-image: url("../art/sprites/beam.webp"); }
.fx-s-bolt-blue { background-image: url("../art/sprites/bolt-blue.webp"); }
.fx-s-bolt-gold { background-image: url("../art/sprites/bolt-gold.webp"); }
.fx-s-bubble { background-image: url("../art/sprites/bubble.webp"); }
.fx-s-chip-blue { background-image: url("../art/sprites/chip-blue.webp"); }
.fx-s-chip-green { background-image: url("../art/sprites/chip-green.webp"); }
.fx-s-chip-red { background-image: url("../art/sprites/chip-red.webp"); }
.fx-s-chip-violet { background-image: url("../art/sprites/chip-violet.webp"); }
.fx-s-clover { background-image: url("../art/sprites/clover.webp"); }
.fx-s-crown { background-image: url("../art/sprites/crown.webp"); }
.fx-s-die { background-image: url("../art/sprites/die.webp"); }
.fx-s-emerald { background-image: url("../art/sprites/emerald.webp"); }
.fx-s-energy-ring { background-image: url("../art/sprites/energy-ring.webp"); }
.fx-s-feather { background-image: url("../art/sprites/feather.webp"); }
.fx-s-firefly { background-image: url("../art/sprites/firefly.webp"); }
.fx-s-flare { background-image: url("../art/sprites/flare.webp"); }
.fx-s-gift { background-image: url("../art/sprites/gift.webp"); }
.fx-s-gold-bar { background-image: url("../art/sprites/gold-bar.webp"); }
.fx-s-horseshoe { background-image: url("../art/sprites/horseshoe.webp"); }
.fx-s-key { background-image: url("../art/sprites/key.webp"); }
.fx-s-leaf { background-image: url("../art/sprites/leaf.webp"); }
.fx-s-mote { background-image: url("../art/sprites/mote.webp"); }
.fx-s-pearl { background-image: url("../art/sprites/pearl.webp"); }
.fx-s-petal { background-image: url("../art/sprites/petal.webp"); }
.fx-s-plasma { background-image: url("../art/sprites/plasma.webp"); }
.fx-s-snowflake { background-image: url("../art/sprites/snowflake.webp"); }
.fx-s-speed-lines { background-image: url("../art/sprites/speed-lines.webp"); }
.fx-s-steam { background-image: url("../art/sprites/steam.webp"); }
.fx-s-tap-ring { background-image: url("../art/sprites/tap-ring.webp"); }
.fx-s-trophy { background-image: url("../art/sprites/trophy.webp"); }
.fx-a-confetti-pop { background-image: url("../art/sprites/anim/confetti-pop.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 571ms); }
.fx-a-firework-gold { background-image: url("../art/sprites/anim/firework-gold.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 571ms); }
.fx-a-firework-magenta { background-image: url("../art/sprites/anim/firework-magenta.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 571ms); }
.fx-a-spark-hit { background-image: url("../art/sprites/anim/spark-hit.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 571ms); }
.fx-a-star-spin { background-image: url("../art/sprites/anim/star-spin.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 667ms); animation-iteration-count: infinite; }
.fx-a-twinkle { background-image: url("../art/sprites/anim/twinkle.webp"); animation-timing-function: steps(7); animation-duration: var(--fdur, 571ms); }

#fx-layer:has(> .transition-wipe) {
z-index: 75;
}

.transition-wipe {
position: fixed;
inset: 0;
pointer-events: none;
overflow: hidden;
z-index: 75;
contain: layout style paint;
--tw-a: rgba(34, 20, 8, 0.94);
--tw-b: rgba(212, 160, 42, 0.92);
--tw-edge: rgba(255, 240, 176, 0.96);
}

.tw-storm-flash {
--tw-a: rgba(12, 22, 54, 0.95);
--tw-b: rgba(46, 156, 255, 0.92);
--tw-edge: rgba(224, 248, 255, 0.98);
}

.tw-lotus-wave {
--tw-a: rgba(10, 40, 58, 0.94);
--tw-b: rgba(44, 198, 208, 0.9);
--tw-edge: rgba(255, 210, 232, 0.95);
}

.tw-dragon-sweep {
--tw-a: rgba(10, 44, 30, 0.95);
--tw-b: rgba(26, 164, 108, 0.92);
--tw-edge: rgba(255, 222, 118, 0.96);
}

.tw-ember-wings {
--tw-a: rgba(46, 12, 10, 0.95);
--tw-b: rgba(236, 94, 24, 0.92);
--tw-edge: rgba(255, 226, 134, 0.98);
}

.tw-sand-gates {
--tw-a: rgba(48, 30, 12, 0.95);
--tw-b: rgba(208, 154, 52, 0.92);
--tw-edge: rgba(255, 242, 184, 0.98);
}

.tw-steam-curtain {
--tw-a: rgba(28, 34, 46, 0.94);
--tw-b: rgba(168, 190, 216, 0.9);
--tw-edge: rgba(255, 248, 232, 0.98);
}

.tw-pepper-blaze {
--tw-a: rgba(54, 10, 18, 0.95);
--tw-b: rgba(232, 56, 28, 0.92);
--tw-edge: rgba(255, 214, 72, 0.98);
}

.tw-confetti-burst {
--tw-a: rgba(34, 14, 58, 0.94);
--tw-b: rgba(214, 56, 178, 0.9);
--tw-edge: rgba(124, 244, 255, 0.96);
}

.tw-veil,
.tw-sheen {
position: absolute;
inset: -6% -18%;
pointer-events: none;
will-change: transform, opacity;
}

.tw-veil {
background: linear-gradient(104deg,
transparent 0%,
var(--tw-a) 16%,
var(--tw-b) 48%,
var(--tw-a) 80%,
var(--tw-edge) 92%,
transparent 100%);
animation: tw-veil-sweep var(--tw-ms, 780ms) cubic-bezier(0.32, 0.04, 0.24, 1) forwards;
}

.tw-sheen {
background: linear-gradient(104deg,
transparent 26%,
var(--tw-edge) 49%,
var(--tw-b) 56%,
transparent 74%);
animation: tw-sheen-sweep var(--tw-ms, 780ms) cubic-bezier(0.24, 0.08, 0.2, 1) forwards;
}

.tw-motif {
position: absolute;
left: 0;
top: var(--tw-y, 50%);
width: clamp(54px, 12vmin, 112px);
height: clamp(54px, 12vmin, 112px);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
pointer-events: none;
will-change: transform, opacity;
animation: tw-motif-sweep var(--tw-ms, 780ms) cubic-bezier(0.26, 0.06, 0.22, 1) var(--tw-delay, 0ms) both;
}

@keyframes tw-veil-sweep {
0% { opacity: 0.25; transform: translate3d(-105%, 0, 0) skewX(-8deg); }
44% { opacity: 1; transform: translate3d(0%, 0, 0) skewX(-4deg); }
58% { opacity: 1; transform: translate3d(8%, 0, 0) skewX(-2deg); }
100% { opacity: 0; transform: translate3d(115%, 0, 0) skewX(4deg); }
}

@keyframes tw-sheen-sweep {
0% { opacity: 0; transform: translate3d(-120%, 0, 0) scaleX(0.8); }
45% { opacity: 0.92; transform: translate3d(0%, 0, 0) scaleX(1.05); }
100% { opacity: 0; transform: translate3d(125%, 0, 0) scaleX(0.9); }
}

@keyframes tw-motif-sweep {
0% { opacity: 0; transform: translate3d(-18vw, -50%, 0) rotate(var(--tw-rot, 0deg)) scale(calc(var(--tw-s, 1) * 0.65)); }
36% { opacity: 0.98; transform: translate3d(42vw, -50%, 0) rotate(calc(var(--tw-rot, 0deg) * 0.4)) scale(var(--tw-s, 1)); }
65% { opacity: 0.92; transform: translate3d(72vw, -50%, 0) rotate(calc(var(--tw-rot, 0deg) * -0.3)) scale(calc(var(--tw-s, 1) * 1.08)); }
100% { opacity: 0; transform: translate3d(116vw, -50%, 0) rotate(calc(var(--tw-rot, 0deg) * -1)) scale(calc(var(--tw-s, 1) * 0.7)); }
}

body.scene-motion-paused .transition-wipe :is(.tw-veil, .tw-sheen, .tw-motif) {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
.transition-wipe { display: none; }
}

/* Source: css/fx-ambient.css */
.fx-amb {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
animation-play-state: inherit;
}

.fx-ap {
position: absolute;
left: var(--x);
top: var(--y);
width: var(--w);
height: var(--w);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
opacity: 0;
pointer-events: none;
animation: fx-amb-drift var(--dur) linear var(--delay) infinite both;
animation-play-state: inherit;
}

.fx-ak-wander { animation-name: fx-amb-wander; }
.fx-ak-flicker { animation-name: fx-amb-flicker; transform: translate(-50%, -50%) rotate(var(--rot)); }

@keyframes fx-amb-drift {
0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(var(--s0)); }
12% { opacity: var(--amax); }
25% { transform: translate(calc(-50% + var(--sway)), calc(-50% + var(--dy) * 0.25)) rotate(calc(var(--rot) + var(--spin) * 0.25)) scale(calc(var(--s0) + (var(--s1) - var(--s0)) * 0.25)); }
50% { transform: translate(-50%, calc(-50% + var(--dy) * 0.5)) rotate(calc(var(--rot) + var(--spin) * 0.5)) scale(calc(var(--s0) + (var(--s1) - var(--s0)) * 0.5)); }
75% { opacity: var(--amax); transform: translate(calc(-50% - var(--sway)), calc(-50% + var(--dy) * 0.75)) rotate(calc(var(--rot) + var(--spin) * 0.75)) scale(calc(var(--s0) + (var(--s1) - var(--s0)) * 0.75)); }
100% { opacity: 0; transform: translate(-50%, calc(-50% + var(--dy))) rotate(calc(var(--rot) + var(--spin))) scale(var(--s1)); }
}

@keyframes fx-amb-wander {
0% { opacity: 0.12; transform: translate(-50%, -50%); }
18% { opacity: var(--amax); transform: translate(calc(-50% + var(--sway)), calc(-50% + var(--dy) * 0.6)); }
34% { opacity: 0.1; transform: translate(calc(-50% + var(--sway) * 0.2), calc(-50% + var(--dy))); }
52% { opacity: var(--amax); transform: translate(calc(-50% - var(--sway)), calc(-50% + var(--dy) * 0.4)); }
70% { opacity: 0.12; transform: translate(calc(-50% - var(--sway) * 0.5), calc(-50% - var(--dy) * 0.5)); }
86% { opacity: var(--amax); transform: translate(calc(-50% + var(--sway) * 0.4), calc(-50% - var(--dy) * 0.2)); }
100% { opacity: 0.12; transform: translate(-50%, -50%); }
}

@keyframes fx-amb-flicker {
0%, 86%, 100% { opacity: 0; }
88% { opacity: var(--amax); }
89.5% { opacity: 0.1; }
91% { opacity: var(--amax); }
94% { opacity: 0; }
}

.fx-sp {
position: absolute;
width: var(--w);
height: var(--w);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
opacity: 0;
pointer-events: none;
transform: translate(-50%, 0) rotate(90deg);
}

body:has(#tap-button.turbo):has(#grid :is(.spinning, .cell-spin)) .fx-sp {
animation: fx-speed var(--dur) linear var(--delay) infinite both;
}

@keyframes fx-speed {
0% { opacity: 0; transform: translate(-50%, 0) rotate(90deg); }
20% { opacity: 0.5; }
80% { opacity: 0.5; }
100% { opacity: 0; transform: translate(-50%, var(--run)) rotate(90deg); }
}

body.scene-motion-paused .fx-sp,
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) .fx-sp { animation-play-state: paused; }
body:has(> [aria-hidden="false"]:not(#app, #lobby, #planet-tip, #fx-layer, #big-win, .level-toast)) #fx-layer .fx-sp { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
.fx-amb, .fx-sp { display: none; }
}

/* Source: css/nebula-gameplay.css */

.app {
--machine-accent: #69d9ff;
--machine-accent-2: #e46cff;
}

.cell.orb.amber, #tower .meter.amber {
--nebula-gem-art: url("../art/nebula-empress/gems/amber.webp");
}
.cell.orb.sapphire, #tower .meter.sapphire {
--nebula-gem-art: url("../art/nebula-empress/gems/sapphire.webp");
}
.cell.orb.jade, #tower .meter.jade {
--nebula-gem-art: url("../art/nebula-empress/gems/jade.webp");
}
.cell.orb.ruby, #tower .meter.ruby {
--nebula-gem-art: url("../art/nebula-empress/gems/ruby.webp");
}
.cell.orb {
background: none;
color: var(--text);
font-size: max(.7rem, calc(var(--cell) * .27));
text-shadow: -1px -1px 0 var(--bg-deep), 1px -1px 0 var(--bg-deep),
-1px 1px 0 var(--bg-deep), 1px 1px 0 var(--bg-deep), 0 2px 2px var(--bg-deep);
}
.cell.orb::before {
inset: 0;
border: 0;
clip-path: none;
background: var(--nebula-gem-art) center / contain no-repeat;
}
.cell.orb::after { content: none; }
.cell.orb .orb-label {
max-width: 94%;
padding: 0;
border-radius: 0;
background: none;
box-shadow: none;
text-shadow: inherit;
}
.cell.orb.jp, .paytable .cell.orb { color: var(--text); }
.cell.orb.jp-grand, #tower .slot.filled.jp-grand { color: var(--jp-grand); }
.cell.orb.jp-major, #tower .slot.filled.jp-major { color: var(--jp-major); }
.cell.orb.jp-minor, #tower .slot.filled.jp-minor { color: var(--jp-minor); }
.cell.orb.jp-mini, #tower .slot.filled.jp-mini { color: var(--jp-mini); }
#tower .slot.filled {
flex: none;
border-color: transparent;
background: var(--nebula-gem-art) center / contain no-repeat;
background-origin: border-box;
background-clip: border-box;
box-shadow: none;
color: var(--text);
line-height: 1;
text-align: center;
text-shadow: -1px -1px 0 var(--bg-deep), 1px -1px 0 var(--bg-deep),
-1px 1px 0 var(--bg-deep), 1px 1px 0 var(--bg-deep), 0 1px 2px var(--bg-deep);
}
#tower .tower-slot-label {
flex: none;
white-space: nowrap;
}
#tower .meters { margin-inline: 20px; }

.paytable .pt-gem-prizes .pt-row {
grid-template-columns: minmax(80px, 30%) minmax(0, 1fr);
column-gap: 12px;
}
.paytable .pt-gem-prizes .pt-gem { width: 100%; }
.paytable .pt-gem-prizes .cell.orb {
width: 100%;
height: auto;
min-height: 60px;
padding: 42px 0 2px;
text-align: center;
overflow-wrap: anywhere;
line-height: 1.15;
}
.paytable .pt-gem-prizes .cell.orb::before {
inset: 0 auto auto 50%;
width: 40px;
height: 40px;
transform: translateX(-50%);
}

.nebula-tower-halo {
position: absolute;
inset: -5px;
z-index: 6;
border: 3px solid var(--gold-light);
border-radius: 6px;
box-shadow: 0 0 12px var(--gold), inset 0 0 8px var(--gold);
opacity: 0;
pointer-events: none;
}
#app[data-nebula-tower-phase] .nebula-tower-halo { opacity: .75; }
#app[data-nebula-tower-phase="reels"] .nebula-tower-halo {
animation: nebula-tower-surround 620ms ease-in-out infinite alternate;
}

#tower .slot { position: relative; }
#tower .slot::after {
content: "";
position: absolute;
inset: -3px auto auto 50%;
height: calc(100% + 6px);
width: auto;
aspect-ratio: 1;
translate: -50% 0;
border-radius: 50%;
background: radial-gradient(circle, var(--text) 30%, var(--gold-light) 68%, transparent 74%);
box-shadow: 0 0 8px var(--gold-light);
opacity: 0;
pointer-events: none;
}
#tower .slot.near:not(.filled)::before {
content: "";
position: absolute;
inset: -4px;
border-radius: 50%;
border: 2px solid var(--gold-light);
box-shadow: 0 0 10px var(--gold-light), 0 0 14px var(--c), inset 0 0 8px var(--gold-light);
pointer-events: none;
animation: nebula-slot-near 900ms ease-in-out infinite alternate;
}
#app[data-nebula-tower-phase="reset"] #tower .slot.near:not(.filled)::before {
animation: none;
opacity: 0;
}
#app[data-nebula-tower-phase="reset"] #tower .slot::after {
animation: nebula-tower-reset 700ms ease-out both;
}
#app[data-nebula-tower-phase="reset"] .meters.fizzle .slot.filled {
animation: none;
}
@keyframes nebula-slot-near {
from { opacity: 0.35; transform: scale(0.94); }
to { opacity: 1; transform: scale(1.08); }
}
#app[data-nebula-tower-phase="reset"] #tower .meters.fizzle .slot::after {
animation-duration: 350ms;
}
@keyframes nebula-tower-surround {
from { opacity: .45; }
to { opacity: 1; }
}
@keyframes nebula-tower-reset {
0% { opacity: 1; transform: scale(1); }
25% { opacity: .98; transform: scale(1.05); }
70% { opacity: .94; transform: scale(1.02); }
100% { opacity: 0; transform: scale(1); }
}
body.scene-motion-paused .nebula-tower-halo,
body.destination-active .nebula-tower-halo,
body.scene-motion-paused #tower .slot::after,
body.scene-motion-paused #tower .slot.near:not(.filled)::before,
body.destination-active #tower .slot.near:not(.filled)::before,
#app.nebula-entry-active #tower .slot.near:not(.filled)::before {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
#app[data-nebula-tower-phase="reels"] .nebula-tower-halo { animation: none; }
#tower .slot.near:not(.filled)::before {
animation: none;
opacity: 0.85;
transform: none;
}
#app[data-nebula-tower-phase="reset"] #tower .slot::after {
animation: none;
opacity: .65;
}
}

:where(#deal, .nebula-entry, #app.nebula-entry-active) {
--nebula-entry-glass: #351258;
--nebula-entry-lit: #752ab2;
--nebula-entry-shade: #120822;
--nebula-entry-veil: #080413;
--nebula-entry-halo: rgba(239, 52, 201, 0.28);
--nebula-entry-dim: rgba(8, 4, 19, 0.78);
}

#app .tower-base:has(.chests.nebula-ready) .tower-sign-fill {
animation: none;
opacity: 0;
}
#app .tower-base:has(.chests.nebula-ready) .chest-text {
animation: none;
opacity: 1;
color: var(--gold-light);
}
#app .chests.nebula-ready {
animation: nebula-bank-ready 520ms ease-out both;
}

#deal-intro.nebula-entry {
z-index: 50;
display: block;
background: none;
opacity: 0;
isolation: isolate;
}
#deal-intro.nebula-entry.show {
animation: none;
opacity: 1;
visibility: visible;
pointer-events: auto;
}
#deal-intro.nebula-entry::before {
content: "";
position: absolute;
left: var(--nebula-stage-left, 0px);
top: var(--nebula-stage-top, 0px);
width: var(--nebula-stage-width, 100vw);
height: var(--nebula-stage-height, 100vh);
background: radial-gradient(ellipse at 50% 45%, var(--nebula-entry-halo), var(--nebula-entry-dim) 75%);
opacity: 0;
pointer-events: none;
}
#deal-intro.nebula-entry[data-entry-phase="announce"]::before {
opacity: 1;
animation: nebula-entry-dim var(--nebula-rise-ms, 425ms) ease-out both;
}

#deal-intro.nebula-entry .intro-dragon {
position: absolute;
left: calc(var(--nebula-stage-left, 0px) + var(--nebula-stage-width, 100vw) / 2);
top: calc(var(--nebula-stage-top, 0px) + var(--nebula-stage-height, 100vh) / 2 - 24px);
width: min(calc(var(--nebula-stage-width, 100vw) * .82), calc((var(--nebula-stage-height, 100vh) - 108px) * .8), 300px);
max-width: calc(100vw - 36px);
transform: translate(-50%, -50%);
transform-origin: 50% 80%;
visibility: hidden;
pointer-events: none;
}
#deal-intro.nebula-entry.show .intro-dragon { animation: none; }
#deal-intro.nebula-entry[data-entry-phase="announce"] .intro-dragon {
visibility: visible;
animation: nebula-collector-rise var(--nebula-rise-ms, 425ms) cubic-bezier(.16, .75, .24, 1) both;
}
#deal-intro.nebula-entry .intro-dragon-art {
position: relative;
display: block;
width: 100%;
height: auto;
aspect-ratio: 1 / 1.04;
padding: 3px;
margin: 0 0 -4px;
filter: none;
background: var(--gold-bevel);
clip-path: polygon(19% 0, 81% 0, 96% 13%, 100% 32%, 100% 86%, 88% 100%, 12% 100%, 0 86%, 0 32%, 4% 13%);
}
#deal-intro.nebula-entry .intro-dragon-art .empress-crop {
position: absolute;
inset: 3px;
width: calc(100% - 6px);
height: calc(100% - 6px);
clip-path: polygon(19% 0, 81% 0, 96% 13%, 100% 32%, 100% 86%, 88% 100%, 12% 100%, 0 86%, 0 32%, 4% 13%);
}
#deal-intro.nebula-entry .intro-dragon-art::after {
content: "";
position: absolute;
inset: 3px;
background: linear-gradient(180deg, transparent 65%, var(--nebula-entry-shade));
pointer-events: none;
}
#deal-intro.nebula-entry .intro-sign {
width: min(calc(var(--nebula-stage-width, 100vw) * .84), 324px);
min-height: 74px;
gap: 4px;
padding: 12px 10px 10px;
border: 3px solid var(--gold);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 35%),
linear-gradient(180deg, var(--nebula-entry-glass), var(--nebula-entry-shade));
box-shadow: 0 0 0 2px var(--gold-deep), inset 0 -3px 0 var(--gold-dark), 0 8px 24px rgba(0, 0, 0, .65), 0 0 24px var(--nebula-entry-halo);
}
#deal-intro.nebula-entry .intro-sign::before,
#deal-intro.nebula-entry .intro-sign::after {
top: -8px;
width: 14px;
height: 14px;
border-radius: 2px;
background: var(--gold-bevel);
transform: rotate(45deg);
box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
}
#deal-intro.nebula-entry .intro-sign::before { left: 10px; }
#deal-intro.nebula-entry .intro-sign::after { right: 10px; }
#deal-intro.nebula-entry .intro-sign-title {
font-family: var(--display);
font-weight: normal;
font-size: clamp(22px, 6.8vw, 30px);
line-height: 1;
letter-spacing: .025em;
white-space: nowrap;
background-image: var(--gold-bevel);
filter: drop-shadow(0 2px 0 var(--gold-deep));
}
#deal-intro.nebula-entry .intro-sign-text {
color: var(--text);
font-family: var(--display);
font-size: clamp(15px, 4.6vw, 19px);
line-height: 1.25;
letter-spacing: .055em;
text-shadow: 0 1px 0 var(--bg-deep);
}
#nebula-entry-skip {
position: absolute;
z-index: 2;
left: calc(var(--nebula-stage-left, 0px) + var(--nebula-stage-width, 100vw) - 76px);
top: calc(var(--nebula-stage-top, 0px) + var(--nebula-stage-height, 100vh) - 52px);
width: 64px;
min-height: 44px;
padding: 6px 8px;
border: 2px solid var(--gold-dark);
border-radius: 6px;
background: linear-gradient(180deg, var(--nebula-entry-glass), var(--nebula-entry-shade));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 rgba(0, 0, 0, .75);
color: var(--text);
font-family: var(--display);
font-weight: normal;
font-size: 20px;
line-height: 1;
letter-spacing: .08em;
text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
touch-action: manipulation;
pointer-events: auto;
}
#nebula-entry-skip:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
#nebula-entry-skip[data-quiet-focus]:focus-visible,
.deal-chest[data-quiet-focus]:focus-visible { outline: none; }
#nebula-entry-skip:active { transform: translateY(2px); }

#deal-intro[data-entry-phase="opening"] #nebula-entry-skip,
#deal-intro[data-entry-phase="available"] #nebula-entry-skip {
left: calc(50% - 32px);
top: auto;
bottom: max(12px, calc(var(--safe-bottom) + 2px));
}

#deal-doors.nebula-entry {
display: block;
isolation: isolate;
overflow: hidden;
pointer-events: none;
}
#deal-doors.nebula-entry::before {
content: "";
position: absolute;
inset: 0;
background: var(--nebula-entry-veil);
opacity: 0;
pointer-events: none;
}
#deal-doors.nebula-entry[data-entry-mask="true"]::before { opacity: 1; }
#deal-doors.nebula-entry.opening[data-entry-mask="true"]::before {
clip-path: polygon(evenodd,
0 0, 100% 0, 100% 100%, 0 100%, 0 0,
var(--nebula-stage-left, 0px) var(--nebula-stage-top, 0px),
var(--nebula-stage-left, 0px) calc(var(--nebula-stage-top, 0px) + var(--nebula-stage-height, 100vh)),
calc(var(--nebula-stage-left, 0px) + var(--nebula-stage-width, 100vw)) calc(var(--nebula-stage-top, 0px) + var(--nebula-stage-height, 100vh)),
calc(var(--nebula-stage-left, 0px) + var(--nebula-stage-width, 100vw)) var(--nebula-stage-top, 0px),
var(--nebula-stage-left, 0px) var(--nebula-stage-top, 0px));
}
#deal-doors.nebula-entry .door {
position: absolute;
top: var(--nebula-stage-top, 0px);
width: calc(var(--nebula-stage-width, 100vw) / 2 + 1px);
height: var(--nebula-stage-height, 100vh);
background: var(--nebula-entry-shade) url("../art/nebula-empress/vault-doors.webp") no-repeat;
background-size: var(--nebula-stage-width, 100vw) var(--nebula-stage-height, 100vh);
pointer-events: none;
}
#deal-doors.nebula-entry .door.left {
left: var(--nebula-stage-left, 0px);
background-position: 0 0;
}
#deal-doors.nebula-entry .door.right {
left: calc(var(--nebula-stage-left, 0px) + var(--nebula-stage-width, 100vw) / 2);
background-position: calc(0px - var(--nebula-stage-width, 100vw) / 2) 0;
}
#deal-doors.nebula-entry.closed .door {
animation: nebula-shutter-close var(--nebula-close-ms, 350ms) cubic-bezier(.5, 0, .8, 1) both;
}
#deal-doors.nebula-entry.opening .door {
animation: nebula-shutter-open var(--nebula-open-ms, 600ms) cubic-bezier(.3, 0, .5, 1) both;
}
#deal-doors.nebula-entry::after {
content: "";
position: absolute;
top: var(--nebula-stage-top, 0px);
left: var(--nebula-stage-left, 0px);
width: var(--nebula-stage-width, 100vw);
height: var(--nebula-stage-height, 100vh);
background: radial-gradient(ellipse at 50% 50%, rgba(255, 242, 175, .8), rgba(255, 212, 90, .22) 35%, transparent 74%);
opacity: 0;
pointer-events: none;
}
#deal-doors.nebula-entry.closed::after {
animation: nebula-seam-light var(--nebula-close-ms, 350ms) var(--nebula-close-ms, 350ms) ease-out both;
}

#deal .deal-scroll {
gap: 2px;
padding: 14px 28px 12px;
border: 3px solid var(--gold);
border-left-width: 6px;
border-right-width: 6px;
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 32%),
linear-gradient(180deg, var(--nebula-entry-glass), var(--nebula-entry-shade));
box-shadow: 0 0 0 2px var(--gold-deep), inset 0 -3px 0 var(--gold-dark), 0 10px 30px rgba(0, 0, 0, .7);
}
#deal.intro .deal-scroll { animation-name: nebula-board-arrival; }
#deal.intro .deal-prompt { visibility: hidden; }
#deal .deal-scroll-count,
#deal .deal-scroll-text {
color: var(--text);
font-family: var(--display);
font-weight: normal;
background: none;
filter: none;
text-shadow: 0 2px 0 rgba(0, 0, 0, .85);
}
#deal .deal-scroll-count { color: var(--gold-light); font-size: 44px; }
#deal .deal-scroll-count strong { font-weight: normal; }
#deal .deal-scroll-text { font-size: 28px; letter-spacing: .08em; }

@keyframes nebula-bank-ready {
0%, 100% { opacity: 1; }
40% { opacity: .7; }
}
@keyframes nebula-entry-dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes nebula-collector-rise {
from { transform: translate(-50%, -32%) scale(.3); opacity: 0; }
to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes nebula-shutter-close {
from { transform: translateX(var(--open)); }
to { transform: translateX(0); }
}
@keyframes nebula-shutter-open {
from { transform: translateX(0); }
to { transform: translateX(var(--open)); }
}
@keyframes nebula-seam-light {
0%, 100% { opacity: 0; }
22% { opacity: 1; }
}
@keyframes nebula-board-arrival {
0% { transform: translate(-50%, -50%) scale(.85); opacity: 0; }
12%, 86% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

#app.nebula-entry-active .machine-scene-motion,
#app.nebula-entry-active [data-parallax],
#app.nebula-entry-active .reel-shine,
#app.nebula-entry-active .spin-count.hot,
#app.nebula-entry-active .spin-count.hot::before,
#app.nebula-entry-active .tower-sign-fill,
#app.nebula-entry-active .chest-text {
animation-play-state: paused;
}
body.scene-motion-paused #deal-intro.nebula-entry .intro-dragon,
body.scene-motion-paused #deal-intro.nebula-entry::before,
body.scene-motion-paused #deal-doors.nebula-entry .door,
body.scene-motion-paused #deal-doors.nebula-entry::after,
body.scene-motion-paused #app .chests.nebula-ready,
body.scene-motion-paused #deal.intro .deal-scroll {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
#app .chests.nebula-ready,
#deal-intro.nebula-entry[data-entry-phase="announce"]::before,
#deal-intro.nebula-entry[data-entry-phase="announce"] .intro-dragon,
#deal-doors.nebula-entry.closed .door,
#deal-doors.nebula-entry.opening .door,
#deal-doors.nebula-entry.closed::after,
#deal.intro .deal-scroll { animation: none; }
#deal-intro.nebula-entry .intro-dragon { transform: translate(-50%, -50%); }
#deal-doors.nebula-entry.closed .door { transform: translateX(0); }
#deal-doors.nebula-entry.opening .door { transform: translateX(var(--open)); }
#deal-doors.nebula-entry.closed::after { opacity: 0; }
#deal.intro .deal-scroll { transform: translate(-50%, -50%); opacity: 1; }
}

/* Source: css/nebula-tower-fuse.css */
.meter-slots { position: relative; }

.meter-sum {
position: absolute;
top: 13px;
bottom: 8px;
left: 50%;
width: calc(var(--slots) * 41px + 3px);
translate: -50% 0;
z-index: 1;
display: flex;
align-items: center;
border: 3px solid var(--c);
border-radius: 9px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 45%),
linear-gradient(180deg, #170830, #05020c);
box-shadow: 0 0 0 1.5px var(--gold-dark), inset 0 0 0 1px var(--c-light), inset 0 0 8px rgba(0, 0, 0, 0.9), 0 0 12px var(--c);
opacity: 0;
pointer-events: none;
}

.meter-sum-amount {
display: block;
width: 100%;
padding: 0 6px;
box-sizing: border-box;
overflow: hidden;
color: #fff;
font-family: var(--display);
font-size: 1rem;
font-weight: 900;
font-variant-numeric: tabular-nums;
line-height: 1;
text-align: center;
white-space: nowrap;
text-shadow: 0 1px 0 var(--c-dark), 0 0 3px #000, 0 2px 2px rgba(0, 0, 0, 0.8);
}

.meter.full .meter-sum { opacity: 1; }
.meter.full .slot { opacity: 0; }

.meter.fusing .meter-slots::after {
content: "";
position: absolute;
inset: 4px -8px -2px;
z-index: 2;
border-radius: 50%;
background:
radial-gradient(circle at 14% 55%, #fff 0 22%, transparent 34%),
radial-gradient(circle at 86% 50%, #fff 0 22%, transparent 34%),
radial-gradient(circle at 38% 30%, #fff 0 26%, transparent 38%),
radial-gradient(circle at 64% 70%, #fff 0 26%, transparent 38%),
radial-gradient(ellipse closest-side, #fff 60%, rgba(235, 240, 255, 0.8) 78%, transparent);
box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.75);
filter: blur(1.5px);
opacity: 0;
pointer-events: none;
}

.meter-arc {
position: absolute;
top: -2px;
left: -18px;
right: -18px;
z-index: 2;
display: none;
height: 14px;
filter: drop-shadow(0 0 2px var(--c-light)) drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 9px var(--c));
opacity: 0;
pointer-events: none;
}

.meter-arc::before,
.meter-arc::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, var(--c-light) 8%, #fff 50%, var(--c-light) 92%, transparent);
clip-path: polygon(0 50%, 6% 22%, 12% 62%, 19% 30%, 25% 74%, 31% 26%, 38% 58%, 44% 34%, 50% 70%, 56% 28%, 62% 60%, 69% 32%, 75% 72%, 81% 24%, 88% 56%, 94% 36%, 100% 50%,
100% calc(50% + 3px), 94% calc(36% + 3px), 88% calc(56% + 3px), 81% calc(24% + 3px), 75% calc(72% + 3px), 69% calc(32% + 3px), 62% calc(60% + 3px), 56% calc(28% + 3px), 50% calc(70% + 3px),
44% calc(34% + 3px), 38% calc(58% + 3px), 31% calc(26% + 3px), 25% calc(74% + 3px), 19% calc(30% + 3px), 12% calc(62% + 3px), 6% calc(22% + 3px), 0 calc(50% + 3px));
}

.meter-arc::after {
transform: scaleY(-1);
opacity: 0.7;
}

.meter.fusing .meter-arc { display: block; animation: fuse-arc var(--fuse-ms) linear both; }
.meter.fusing .meter-arc::after { animation: fuse-flicker var(--fuse-ms) steps(1) both; }
.meter.fusing .meter-slots { animation: fuse-glow var(--fuse-ms) ease-out both; }
.meter.fusing .slot { animation: fuse-slot var(--fuse-ms) linear both; }
.meter.fusing .meter-slots::after { animation: fuse-cloud var(--fuse-ms) ease-out both; }
.meter.fusing .meter-sum { animation: fuse-sum var(--fuse-ms) ease-out both; }

@keyframes fuse-arc {
0% { opacity: 0; transform: scaleX(0.3); }
5% { opacity: 1; transform: scaleX(1); }
9% { opacity: 0.45; }
13%, 22% { opacity: 1; }
26% { opacity: 0.55; }
30% { opacity: 1; }
38%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes fuse-flicker {
0% { transform: scaleY(-1); }
11% { transform: scaleY(1) translateX(4px); }
20% { transform: scaleY(-1) translateX(-3px); }
29% { transform: scaleY(1); }
}

@keyframes fuse-glow {
0% { box-shadow: 0 0 26px var(--c-light), 0 0 12px var(--c), inset 0 0 16px var(--c-light); }
35%, 100% { box-shadow: 0 0 14px var(--c), inset 0 0 12px var(--c); }
}

@keyframes fuse-slot {
0%, 35% { opacity: 1; filter: none; }
50% { opacity: 1; filter: brightness(2.6) saturate(0.15); }
56%, 100% { opacity: 0; filter: brightness(2.6) saturate(0.15); }
}

@keyframes fuse-cloud {
0%, 44% { opacity: 0; transform: scale(0.55, 0.5); }
56% { opacity: 1; transform: scale(1.06, 1.12); }
83% { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(1.12, 1.25); }
}

@keyframes fuse-sum {
0%, 82% { opacity: 0; transform: scale(0.9); filter: brightness(3); }
91% { opacity: 1; transform: scale(1.05); filter: brightness(2); }
100% { opacity: 1; transform: scale(1); filter: none; }
}

#app[data-nebula-tower-phase="reset"] .meter.full .meter-sum::after {
content: "";
position: absolute;
inset: -4px;
border-radius: 11px;
background: radial-gradient(ellipse closest-side, var(--text) 55%, var(--gold-light) 85%, rgba(255, 242, 175, 0.6));
box-shadow: 0 0 8px var(--gold-light);
animation: nebula-sum-reset 700ms ease-out both;
}

@keyframes nebula-sum-reset {
0% { opacity: 1; }
70% { opacity: 0.94; }
100% { opacity: 0; }
}

body.scene-motion-paused .meter-sum::after { animation-play-state: paused; }

@media (max-height: 700px) {
.meter-sum { top: 3px; bottom: 3px; width: calc(var(--slots) * 31px + 2px); border-width: 2px; border-radius: 7px; }
.meter-sum-amount { font-size: 0.82rem; }
.meter-slots::after { inset: -2px -6px; }
.meter-arc { top: 4px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
.meter.fusing .meter-arc,
.meter.fusing .meter-arc::after,
.meter.fusing .meter-slots,
.meter.fusing .slot,
.meter.fusing .meter-slots::after,
.meter.fusing .meter-sum { animation: none; }
#app[data-nebula-tower-phase="reset"] .meter.full .meter-sum::after { animation: none; opacity: 0.65; }
}

/* Source: css/landscape-lobby.css */


:root {
--lobby-side-l: max(12px, var(--safe-left));
--lobby-side-r: max(12px, var(--safe-right));
}

html.landscape #lobby {
--sign-w: 140px;
--lobby-gap-y: 6px;
max-width: none;
grid-template-columns: var(--sign-w) minmax(0, 1fr) auto auto;
grid-template-rows: 44px minmax(0, 1fr) auto;
gap: var(--lobby-gap-y) 8px;
padding: var(--safe-top) var(--lobby-side-r) calc(var(--safe-bottom) + 2px) var(--lobby-side-l);
}

html.landscape #lobby:not([hidden]) { display: grid; }

html.landscape #lobby > .lobby-topbar { grid-area: 1 / 1 / 2 / -1; }
html.landscape #lobby > .lobby-sign { grid-area: 2 / 1 / 3 / 2; }
html.landscape #lobby > .lobby-floor { grid-area: 2 / 2 / 3 / -1; }
html.landscape #lobby > .lobby-dock { grid-area: 3 / 4 / 4 / 5; }


html.landscape .lobby .topbar.lobby-topbar {
align-self: stretch;
margin: 0;
gap: 6px;
}

html.landscape .lobby-topbar::before {
left: calc(-1 * var(--lobby-side-l));
right: calc(-1 * var(--lobby-side-r));
top: calc(-1 * var(--safe-top));
bottom: -3px;
}

html.landscape .lobby-avatar {
width: 44px;
height: 44px;
}

html.landscape .lobby-level-badge { bottom: -4px; }

html.landscape .lobby-topbar-main {
flex-direction: row;
align-items: center;
gap: 8px;
}

html.landscape .lobby-topbar .credits {
flex: 0 1 260px;
min-width: 200px;
height: 34px;
margin: 0 auto;
}

html.landscape .lobby-buy {
height: 44px;
margin: -6.5px -1.5px;
}

html.landscape .lobby-buy::before,
html.landscape .lobby-buy.broke::after { inset: 7px 3px; }


html.landscape #lobby > .feature-sign {
container: lobby-sign / size;
--specials-foot: 88px;
--specials-countdown: 14px;
--specials-key: 44px;
height: auto;
min-height: 0;
margin: 6px 0;
padding: 0;
border-radius: 46% 46% 12px 12px / 22px 22px 12px 12px;
background: var(--lobby-sign-fill);
}

.lobby-sign-rules { display: none; }

html.landscape .feature-sign > .lobby-sign-rules {
display: block;
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, transparent, var(--hairline) 20% 80%, transparent) center bottom calc(var(--specials-foot) + var(--specials-key) + 3px) / calc(100% - 12px) 1px no-repeat,
linear-gradient(90deg, transparent, var(--hairline) 20% 80%, transparent) center bottom calc(var(--specials-foot) - var(--specials-countdown) - 3px) / calc(100% - 12px) 1px no-repeat;
}

html.landscape .feature-sign .lobby-feature {
--feature-art-height: clamp(18px, calc(100cqh - 218px), 48px);
top: 6px;
bottom: calc(var(--specials-foot) + var(--specials-key) + 4px);
left: 6px;
right: 6px;
height: auto;
max-height: 122px;
}

html.landscape .feature-sign .lobby-sign-title {
left: 0;
right: 0;
top: 2px;
color: var(--muted);
background-image: none;
filter: none;
font-size: 11px;
letter-spacing: .035em;
text-align: center;
isolation: isolate;
}

html.landscape .feature-sign .lobby-sign-title::before {
content: "";
position: absolute;
inset: -2px 6px;
z-index: -1;
border-radius: 8px;
background: var(--lobby-sign-cap);
box-shadow: inset 0 2px 3px #000000b3, inset 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline);
}

html.landscape .lobby-feature-content { inset: 17px 0 0; }

html.landscape .lobby-feature-art,
html.landscape .lobby-feature[data-phase="event"] .lobby-feature-art {
left: calc(50% - 30px);
top: 0;
width: 60px;
height: var(--feature-art-height);
}

html.landscape .lobby-feature-copy {
align-items: center;
margin: calc(var(--feature-art-height) + 2px) 0 0;
text-align: center;
}

html.landscape .lobby-feature-title {
max-width: 100%;
height: auto;
line-height: 16px;
overflow: visible;
overflow-wrap: anywhere;
white-space: normal;
}

html.landscape .lobby-feature-badge { align-self: center; font-size: 12px; }
html.landscape .lobby-feature[data-phase="event"] .lobby-feature-badge { font-size: 11px; }

html.landscape .feature-sign .lobby-specials {
top: auto;
bottom: var(--specials-foot);
left: calc(50% - 48px);
right: auto;
height: var(--specials-key);
}

html.landscape .feature-sign .lobby-sign-sub,
html.landscape .feature-sign .lobby-notice {
left: 8px;
right: 8px;
bottom: 9px;
padding: 0;
}

html.landscape .feature-sign .lobby-sign-sub { font-size: .75rem; letter-spacing: .045em; }
html.landscape .lobby-marquee-tagline { color: var(--muted); }
html.landscape .lobby-marquee-ticker { height: 5em; }

html.landscape .lobby-marquee-line {
flex-direction: column;
align-items: stretch;
justify-content: flex-end;
height: 100%;
padding: 2px 0;
line-height: 1.45em;
white-space: normal;
}

html.landscape .lobby-marquee-label { flex: none; }
html.landscape .lobby-marquee-line:has(.lobby-marquee-amount:empty) .lobby-marquee-label {
color: var(--muted);
font-size: .96em;
letter-spacing: .025em;
}
html.landscape .lobby-marquee-amount { flex: none; white-space: nowrap; }

html.landscape .feature-sign .lobby-notice {
height: auto;
min-height: 18px;
line-height: 16px;
font-size: 0.8rem;
white-space: normal;
}

@container lobby-sign (max-height: 228px) {
html.landscape .lobby-feature-art { display: none; }
html.landscape .lobby-feature-content { top: 15px; }
html.landscape .lobby-feature-copy { margin-top: 0; }
}

@container lobby-sign (max-height: 206px) {
html.landscape .feature-sign > * { --specials-foot: 78px; }
html.landscape .lobby-feature-title { line-height: 14px; }
html.landscape .lobby-feature-badge,
html.landscape .lobby-feature-status,
html.landscape .feature-letter,
html.landscape .feature-letter-track > span { height: 12px; line-height: 12px; }
html.landscape .feature-sign .lobby-sign-sub { font-size: 11px; }
html.landscape .lobby-marquee-ticker { height: 50px; }
html.landscape .lobby-marquee-line { gap: 0; line-height: 1.39em; }
html.landscape .lobby-marquee-line:has(.lobby-marquee-amount:empty) .lobby-marquee-label { font-size: 11px; }
}


html.landscape .lobby-floor {
--league-open-w: 106px;
--floor-out: max(0px, var(--lobby-side-r) - 48px);
flex-direction: row;
align-items: stretch;
gap: 8px;
margin: 0 calc(-1 * var(--floor-out)) 0 0;
}

html.landscape .lobby-floor .game-list {
margin: 0;
padding: 6px 2px 6px 4px;
scroll-padding: 0 4px;
gap: 10px;
}

html.landscape .game-card {
width: max(114px, calc(min(100cqh, 420px) / 2.02));
height: 100cqh;
max-height: 420px;
min-height: 0;
}

html.landscape .game-list > .game-card:first-child { margin-left: 0; }

html.landscape .game-card-jackpot-name { font-size: var(--type-label); }

html.landscape .lobby-start { left: 0; }

html.landscape .league-tab {
right: 0;
margin-right: var(--floor-out);
flex: none;
align-self: center;
border-right: 2px solid var(--gold);
border-radius: var(--radius);
box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 14px #b94df055;
}

html.landscape .league-tab.open {
--tab-w: var(--league-open-w);
position: relative;
top: auto;
min-height: calc(100% - 16px);
padding: 8px 4px 4px 6px;
}

html.landscape .league-tab.open .league-tab-body {
flex: 1 1 auto;
justify-content: space-around;
gap: 4px;
}

html.landscape .league-tab.open .league-tab-head {
flex-direction: column;
gap: 2px;
}

html.landscape .league-tab.open .league-tab-gem { width: 44px; height: 44px; }
html.landscape .league-tab.open .league-tab-place { text-align: center; }
html.landscape .league-tab.open .league-tab-row { min-height: 20px; }

/* Source: css/landscape-lobby-2.css */


:root {
--lobby-dock-tile-width: 80px;
--lobby-dock-tile-gap: 6px;
--lobby-dock-tiles-width: calc(4 * var(--lobby-dock-tile-width) + 3 * var(--lobby-dock-tile-gap));
}

html.landscape #lobby > .lobby-dock {
grid-area: 3 / 1 / 4 / -1;
margin-top: -10px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: end;
gap: 0;
}

html.landscape .lobby-dock .lobby-tiles {
grid-column: 2;
grid-template-columns: repeat(4, var(--lobby-dock-tile-width));
gap: var(--lobby-dock-tile-gap);
}

html.landscape .lobby-dock .tile-ring {
width: 54px;
height: 54px;
}

html.landscape .lobby-dock .tile-name { margin-top: -5px; font-size: 0.75rem; }
html.landscape .lobby-dock .tile-state { margin-top: -20px; font-size: 0.75rem; }

html.landscape .lobby-dock .lobby-bonus {
grid-column: 3;
justify-self: end;
width: 132px;
padding-bottom: 2px;
}
html.landscape .bonus-pod { width: 70px; }
html.landscape .bonus-pill,
html.landscape .bonus-pod.ready::after { height: 58px; }
html.landscape .bonus-pill { font-size: 0.8rem; }
html.landscape .bonus-pod.ready .bonus-pill { font-size: 1rem; }
html.landscape .lobby-bonus:has(> .bonus-pod.ready)::after { left: 60px; }
html.landscape .bonus-wheel { width: 60px; margin-bottom: -4px; }
html.landscape .bonus-wheel .tile-ring { width: 54px; height: 54px; }
html.landscape .bonus-wheel .tile-state { margin-top: -17px; font-size: 0.75rem; }

@media (min-width: 640px) {
html.landscape #lobby { --connection-space: 0px; }

html.landscape body.in-lobby #connection-status {
top: auto;
right: auto;
bottom: calc(var(--safe-bottom) + 3px);
left: var(--lobby-side-l);
width: max(0px, calc((100% - var(--lobby-side-l) - var(--lobby-side-r) - var(--lobby-dock-tiles-width)) / 2 - 4px));
flex-direction: column;
gap: 2px;
padding-inline: 3px;
text-align: left;
}
}


html.landscape #lobby {
--deck: calc(var(--safe-bottom) + 48px);
}


html.landscape .lobby-menu {
right: 0;
max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 119px);
}
html.landscape .lobby-menu::before { right: 15px; }

html.landscape .intro-coach[data-tip="bonuses"] {
left: calc(var(--safe-left) + 8px);
right: calc(var(--safe-right) + 8px);
max-width: none;
}

html.landscape .lobby-season .season-leaf:is(.n3, .n4, .n5) {
right: auto;
left: calc(var(--x, 2px) + 54px);
}

/* Source: css/landscape-lobby-hub.css */


html.landscape #lobby {
--hub-bar-top: #1c1a7a;
--hub-bar: #0e0b4a;
--hub-bar-deep: #050421;
--hub-neon: #3d7bff;
--hub-neon-light: #a8dcff;
--hub-neon-glow: rgba(61, 123, 255, 0.7);
--hub-pink-glow: rgba(255, 79, 216, 0.55);
}

:root {
--lobby-floor-hall: url("../art/halls/lobby-hall.webp");
--lobby-floor-base: #0b071a;
--lobby-floor-low: rgba(193, 35, 123, 0.27);
--lobby-floor-contact: rgba(0, 0, 0, 0.85);
--lobby-floor-pool: rgba(255, 228, 160, 0.42);
}

.lobby-hub { display: none; }


html.landscape .lobby-topbar::before {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%),
radial-gradient(ellipse at 50% 120%, var(--hub-pink-glow), transparent 45%),
linear-gradient(180deg, var(--hub-bar-top), var(--hub-bar) 55%, var(--hub-bar-deep));
border-bottom: 2px solid var(--hub-neon-light);
box-shadow: 0 2px 0 var(--hub-neon), 0 4px 0 var(--neon-pink), 0 0 14px 2px var(--hub-neon-glow), 0 8px 16px rgba(0, 0, 0, 0.6);
}

html.landscape #lobby { container: lobby-floor / inline-size; grid-template-rows: auto minmax(0, 1fr) auto; }
html.landscape #lobby .topbar.lobby-topbar {
--tier-half: 64px;
--key-track: 56px;
display: grid;
grid-template-columns: 44px minmax(0, min(280px, calc(50% - 48px - var(--tier-half) - 6px))) minmax(0, 1fr) repeat(3, var(--key-track));
grid-template-rows: 44px;
grid-template-areas: "avatar credits . inbox bank settings";
gap: 0 4px;
}
html.landscape #lobby .lobby-topbar-main { display: contents; }
html.landscape #lobby .lobby-avatar { grid-area: avatar; justify-self: start; }
html.landscape #lobby .lobby-topbar .credits { grid-area: credits; min-width: 0; width: 100%; margin: 0; }
html.landscape #lobby .lobby-tierbar {
position: absolute;
top: 0;
left: 50%;
width: calc(2 * var(--tier-half));
justify-content: center;
transform: translateX(-50%);
transition: none;
}
html.landscape #lobby .lobby-inbox { grid-area: inbox; justify-self: end; }
html.landscape #lobby .lobby-bank { grid-area: bank; justify-self: end; }
html.landscape #lobby .lobby-settings { grid-area: settings; justify-self: end; }

@container lobby-floor (max-width: 695.98px) {
html.landscape #lobby .topbar.lobby-topbar {
grid-template-columns: 44px minmax(0, 280px) minmax(0, 1fr) repeat(3, var(--key-track));
grid-template-rows: repeat(2, 44px);
grid-template-areas:
"avatar credits . inbox bank settings"
". . . . . .";
}
html.landscape #lobby .lobby-tierbar { top: 44px; }
}


html.landscape .lobby-hub {
position: relative;
isolation: isolate;
flex: none;
display: flex;
align-items: center;
height: 44px;
margin: 0;
border: 0;
background: none;
color: var(--text);
font-family: var(--display);
}

html.landscape .lobby-tierbar {
gap: 2px;
padding: 0 6px 0 8px;
}

html.landscape .lobby-tierbar::before {
content: "";
position: absolute;
z-index: -1;
inset: 5px 0;
border: 2px solid var(--hub-neon-light);
border-radius: 10px;
background:
radial-gradient(ellipse at 50% 100%, var(--hub-neon-glow), transparent 70%),
linear-gradient(180deg, var(--hub-bar-deep), var(--hub-bar));
box-shadow: 0 0 8px 1px var(--hub-neon-glow), 0 2px 0 var(--neon-pink);
pointer-events: none;
transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}

html.landscape .lobby-tierbar > span {
transition: transform 80ms ease-out;
}

html.landscape .lobby-tierbar:active:not(:disabled)::before {
transform: translateY(1px);
border-color: var(--gold-light);
box-shadow: 0 0 10px 1px var(--hub-neon-glow), 0 1px 0 var(--neon-pink), inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

html.landscape .lobby-tierbar:active:not(:disabled) > span {
transform: translateY(1px);
}

html.landscape .lobby-tierbar-word {
font-size: var(--type-key);
letter-spacing: 0.05em;
line-height: 1;
white-space: nowrap;
text-shadow: 0 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.7);
}

html.landscape .lobby-tierbar-chevron {
color: var(--neon-cyan);
font-size: 1.05rem;
line-height: 1;
text-shadow: 0 0 6px var(--hub-neon);
}

html.landscape .lobby-tierbar-gem {
position: relative;
isolation: isolate;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
font-size: 1rem;
font-variant-numeric: tabular-nums;
text-shadow: var(--jp-outline);
}

html.landscape .lobby-tierbar-gem::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--lobby-gem-art, none) center / contain no-repeat;
filter: drop-shadow(0 0 4px var(--hub-neon-glow)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.lobby-tierbar-gem.amber { --lobby-gem-art: url("../art/nebula-empress/gems/amber.webp"); }
.lobby-tierbar-gem.sapphire { --lobby-gem-art: url("../art/nebula-empress/gems/sapphire.webp"); }
.lobby-tierbar-gem.jade { --lobby-gem-art: url("../art/nebula-empress/gems/jade.webp"); }
.lobby-tierbar-gem.ruby { --lobby-gem-art: url("../art/nebula-empress/gems/ruby.webp"); }

.lobby-tierbar-track {
position: absolute;
left: 10px;
right: 10px;
bottom: 8px;
height: 3px;
overflow: hidden;
border-radius: 2px;
background: rgba(0, 0, 0, 0.45);
pointer-events: none;
}

.lobby-tierbar-fill {
position: absolute;
inset: 0;
background: linear-gradient(90deg, #ffe08a, var(--gold));
transform: scaleX(var(--tier-progress, 0));
transform-origin: left;
transition: transform 400ms ease-out;
}

.lobby-tierbar-fill.amber { background: linear-gradient(90deg, #ffb347, #ffe08a); }
.lobby-tierbar-fill.sapphire { background: linear-gradient(90deg, #2a63e0, #7fc4ff); }
.lobby-tierbar-fill.jade { background: linear-gradient(90deg, #12a35a, #7dffb4); }
.lobby-tierbar-fill.ruby { background: linear-gradient(90deg, #c4163a, #ff7a96); }
.lobby-tierbar.ready .lobby-tierbar-fill { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.lobby-tierbar-track::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 30%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
opacity: 0;
transform: translateX(-100%);
}

.lobby-tierbar-track.tier-sheen::after { animation: tier-sheen 900ms ease-in-out both; }

@keyframes tier-sheen {
0% { opacity: 0; transform: translateX(-100%); }
20%, 80% { opacity: 1; }
100% { opacity: 0; transform: translateX(340%); }
}

html.landscape .lobby-hub:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }


html.landscape #lobby,
html.landscape #lobby .row-curtain::before {
background:
linear-gradient(180deg, transparent calc(100% - var(--deck) - 4px), var(--neon-pink) calc(100% - var(--deck) - 3px),
var(--hub-neon) calc(100% - var(--deck) - 1px), var(--hub-neon-light) calc(100% - var(--deck)),
var(--hub-bar-top) calc(100% - var(--deck) + 2px), var(--hub-bar) calc(100% - var(--deck) + 24px), var(--hub-bar-deep)),
radial-gradient(ellipse 34% 60px at 62% calc(100% - var(--deck)), var(--hub-neon-glow), transparent),
radial-gradient(ellipse at 50% calc(100% - var(--deck)), var(--lobby-floor-low), transparent 34%),
var(--lobby-floor-hall) 50% 62% / cover no-repeat,
var(--lobby-floor-base);
}

html.landscape .lobby::before { content: none; }

html.landscape .lobby-dock .lobby-tiles {
background: radial-gradient(ellipse 36px 7px at 40px 52px, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 55%, transparent) 0 0 / 86px 100% repeat-x;
}

html.landscape .lobby-dock .lobby-bonus { isolation: isolate; }
html.landscape .lobby-dock .lobby-bonus::before {
content: "";
position: absolute;
z-index: -1;
inset: auto -2px -3px -8px;
height: 22px;
border-radius: 50%;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), var(--hub-bar-deep) 60%, var(--hub-bar));
box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.7), 0 1px 0 color-mix(in srgb, var(--hub-neon-light) 30%, transparent);
pointer-events: none;
}


html.landscape #lobby .lobby-topbar .currency {
--balance-floor: 18px;
font-size: 1.5rem;
}
html.landscape #lobby .credits-face-amount { font-size: 1.5rem; }
html.landscape #lobby .lobby-topbar .credits-coin { width: 30px; height: 30px; }

html.landscape #lobby .lobby-level-badge { color: var(--text); text-transform: uppercase; }

html.landscape #lobby .lobby-avatar-portrait:not([class*="cos-frame-"]) {
box-shadow: inset 0 1.5px 0 var(--tier-light), inset 0 -1.5px 0 var(--tier-dark),
inset 0 0 0 2px var(--tier);
}

html.landscape .lobby-tierbar.ready::before {
border-color: var(--gold-light);
box-shadow: 0 0 8px 1px rgba(255, 212, 90, 0.7), 0 2px 0 var(--neon-pink);
}

html.landscape .lobby-tierbar.ready:active:not(:disabled)::before {
border-color: var(--gold-light);
box-shadow: 0 0 10px 1px rgba(255, 212, 90, 0.8), 0 1px 0 var(--neon-pink), inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
.lobby-tierbar-fill { transition: none; }
.lobby-tierbar-track::after { animation: none; }
html.landscape .lobby-tierbar::before,
html.landscape .lobby-tierbar > span {
transition: none;
}
html.landscape .lobby-tierbar:active:not(:disabled)::before,
html.landscape .lobby-tierbar:active:not(:disabled) > span {
transform: none;
}
html.landscape .lobby-tierbar:active:not(:disabled)::before {
box-shadow: 0 0 10px 1px var(--hub-neon-glow), 0 2px 0 var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45);
}
html.landscape .lobby-tierbar.ready:active:not(:disabled)::before {
box-shadow: 0 0 10px 1px rgba(255, 212, 90, 0.8), 0 2px 0 var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45);
}
}

html.landscape #lobby .lobby-gear .lobby-art,
html.landscape #lobby .lobby-bank:not(.ready) .lobby-pig { filter: saturate(0.35) brightness(0.85) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.5)); }
html.landscape #lobby .lobby-bank-meter { background: rgba(216, 184, 240, 0.25); }

/* Source: css/landscape-lobby-quiet.css */



html.landscape #lobby > .feature-sign {
transition: border-color 400ms ease, box-shadow 400ms ease;
}
html.landscape #lobby > .feature-sign > :is(.bulbs, .lobby-sign-rules) { transition: opacity 400ms ease; }

html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) {
border-color: var(--frame-rim);
box-shadow: 0 0 0 1px var(--frame-edge), inset 0 0 0 400px var(--frame-shade), 0 4px 0 var(--frame-foot);
}
html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) > .bulbs { opacity: 0; }

html.landscape .league-tab {
border-color: var(--frame-rim);
box-shadow: 0 0 0 1px var(--frame-edge), inset 0 0 0 400px var(--frame-shade-soft), 0 4px 10px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
html.landscape #lobby > .feature-sign,
html.landscape #lobby > .feature-sign > :is(.bulbs, .lobby-sign-rules) { transition: none; }
}


html.landscape .lobby-floor {
--row-gap: 12px;
--row-gap-max: 20px;
--row-peek: 18px;
--row-fade-start: 32px;
--row-fade-end: calc(var(--row-peek) + 6px);
}
@media (max-width: 799px) {
html.landscape .lobby-floor {
--row-gap: 8px;
--row-gap-max: 16px;
--row-peek: 8px;
}
}
.row-curtain { display: none; }
html.landscape .lobby-floor > .row-curtain {
--curtain-left: 0px;
display: block;
position: absolute;
top: 0;
bottom: 0;
left: var(--curtain-left);
width: var(--row-fade-start);
overflow: hidden;
opacity: 0;
pointer-events: none;
-webkit-mask-image: linear-gradient(90deg, #000, #0000);
mask-image: linear-gradient(90deg, #000, #0000);
}
html.landscape .lobby-floor > .row-curtain-end {
--curtain-left: calc(var(--row-width) - var(--row-fade-end));
width: var(--row-fade-end);
-webkit-mask-image: linear-gradient(90deg, #0000, #000);
mask-image: linear-gradient(90deg, #0000, #000);
}
html.landscape .lobby-floor > .row-curtain::before,
html.landscape .lobby-floor > .row-curtain::after {
content: "";
position: absolute;
top: var(--hall-top);
left: calc(var(--hall-left) - var(--curtain-left));
width: var(--hall-width);
height: var(--hall-height);
}
html.landscape .lobby-floor > .row-curtain::before {
box-shadow: inset 0 0 0 100vmax var(--lobby-focus-scrim);
}
html.landscape .lobby-floor > .game-list.row-scrolled ~ .row-curtain-start,
html.landscape .lobby-floor > .game-list:not(.row-end) ~ .row-curtain-end { opacity: 1; }
html.landscape .lobby-floor .game-list[data-cards] { gap: var(--row-space); }
html.landscape .game-list[data-cards] > .game-card {
width: var(--row-card);
}


html.landscape .game-list > .game-card {
--card-floor: 0 6px 3px -3px var(--lobby-floor-contact), 0 8px 6px -4px var(--cabinet-glow);
box-shadow: var(--card-floor);
}
html.landscape .game-list > .game-card.card-spotlight {
--card-floor: 0 6px 3px -3px var(--lobby-floor-contact), 0 8px 6px -4px var(--cabinet-glow),
0 8px 8px -2px var(--lobby-floor-pool);
}
html.landscape .game-list > .game-card:not(.has-breakout.cabinet-cache-ready) {
box-shadow: inset 0 0 0 1px var(--cabinet-shadow), 0 0 6px var(--cabinet-glow), var(--card-floor);
}


.lobby .game-list > .game-card {
transition: transform 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.lobby .game-list > .game-card:not(.soon):is(:active, :focus-visible) {
border-color: var(--gold-light);
box-shadow: inset 0 0 0 1px var(--cabinet-shadow), 0 0 0 1px var(--gold), 0 0 18px #ffd76a99, 0 3px 8px #000b;
}
.lobby .game-list > .game-card:not(.soon):is(:active, :focus-visible) > .game-card-frame { visibility: hidden; }
.lobby .game-list > .game-card:not(.soon):active { transform: scale(0.96); }
.lobby .game-list > .game-card:not(.soon):is(:active, :focus-visible)::after {
border-image: none;
animation: none;
opacity: 0.9;
box-shadow: inset 0 0 0 1px var(--gold-light), inset 0 0 14px #ffd76a88;
}

@media (prefers-reduced-motion: reduce) {
.lobby .game-list > .game-card { transition: none; }
.lobby .game-list > .game-card:not(.soon):active { transform: none; }
}

/* Source: css/landscape-lobby-focus.css */

:root {
--lobby-focus-scrim: #04021240;
--lobby-focus-recede: 0.85;
--lobby-focus-sign-shade: #0d0418cc;
--lobby-focus-sign-rules: 0.2;
--lobby-focus-glow: #ffcd8280;
--lobby-focus-glow-ruby: #ff9aa478;
--lobby-focus-glow-sapphire: #9cc0ff70;
--lobby-focus-glow-jade: #9ce8bc70;
--lobby-focus-glow-amber: var(--lobby-focus-glow);
--lobby-focus-family-classic: #ffd98276;
--lobby-focus-family-stampede: #ffae6278;
--lobby-focus-family-link: #8ec8ff74;
--lobby-focus-family-imperial: #ff7e9278;
--lobby-focus-family-mascot: #78f0a474;
--lobby-focus-shift: 700ms;
--lobby-focus-spark: 0.9;
--lobby-focus-calm: 1.2;
}


html.landscape .lobby-ambient { background: var(--lobby-focus-scrim); }

html.landscape .ambient-spark {
animation-duration: calc(var(--for, 22s) * var(--lobby-focus-calm));
}
html.landscape .ambient-spark::before { opacity: var(--lobby-focus-spark); }

@property --lobby-floor-wash {
syntax: "<color>";
inherits: false;
initial-value: #ffcd8280;
}
html.landscape .lobby-floor::before,
html.landscape .lobby-floor > .row-curtain > .row-curtain-wash {
content: "";
position: absolute;
z-index: -1;
inset: -30px -60px -40px -30px;
--lobby-floor-wash: var(--lobby-focus-glow);
background: radial-gradient(ellipse 58% 70% at 46% 50%, var(--lobby-floor-wash), transparent 70%);
transition: --lobby-floor-wash var(--lobby-focus-shift) ease-out;
pointer-events: none;
}
html.landscape .lobby-floor > .row-curtain > .row-curtain-wash {
z-index: auto;
inset: -30px auto auto calc(-30px - var(--curtain-left));
width: calc(var(--floor-width) + 90px);
height: calc(100% + 70px);
}
html.landscape .lobby-floor[data-spotlight-accent="ruby"]::before,
html.landscape .lobby-floor[data-spotlight-accent="ruby"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-glow-ruby); }
html.landscape .lobby-floor[data-spotlight-accent="sapphire"]::before,
html.landscape .lobby-floor[data-spotlight-accent="sapphire"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-glow-sapphire); }
html.landscape .lobby-floor[data-spotlight-accent="jade"]::before,
html.landscape .lobby-floor[data-spotlight-accent="jade"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-glow-jade); }
html.landscape .lobby-floor[data-spotlight-accent="amber"]::before,
html.landscape .lobby-floor[data-spotlight-accent="amber"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-glow-amber); }
html.landscape .lobby-floor[data-spotlight-family="classic"]::before,
html.landscape .lobby-floor[data-spotlight-family="classic"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-family-classic); }
html.landscape .lobby-floor[data-spotlight-family="stampede"]::before,
html.landscape .lobby-floor[data-spotlight-family="stampede"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-family-stampede); }
html.landscape .lobby-floor[data-spotlight-family="link"]::before,
html.landscape .lobby-floor[data-spotlight-family="link"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-family-link); }
html.landscape .lobby-floor[data-spotlight-family="imperial"]::before,
html.landscape .lobby-floor[data-spotlight-family="imperial"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-family-imperial); }
html.landscape .lobby-floor[data-spotlight-family="mascot"]::before,
html.landscape .lobby-floor[data-spotlight-family="mascot"] > .row-curtain > .row-curtain-wash { --lobby-floor-wash: var(--lobby-focus-family-mascot); }
@media (prefers-reduced-motion: reduce) {
html.landscape .lobby-floor::before,
html.landscape .lobby-floor > .row-curtain > .row-curtain-wash { transition: none; }
}


html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) {
box-shadow: 0 0 0 1px var(--frame-edge), inset 0 0 0 400px var(--lobby-focus-sign-shade), 0 4px 0 var(--frame-foot);
}
html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) > :is(.lobby-feature, .lobby-sign-sub) {
opacity: var(--lobby-focus-recede);
}
html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) > .lobby-sign-rules {
opacity: var(--lobby-focus-sign-rules);
}
html.landscape #lobby > .feature-sign:not(:has(> #lobby-feature[data-phase="ready"])) > .lobby-feature:active:not(:disabled):not([aria-disabled="true"]) {
opacity: 1;
}

html.landscape .league-tab-gem,
html.landscape .lobby-tiles .tile:not(.ready, .nudge) .tile-ring,
html.landscape .lobby-tierbar:not(.ready)::before,
html.landscape .lobby-inbox:not(.ready) { opacity: var(--lobby-focus-recede); }
html.landscape .lobby-tierbar:active:not(:disabled)::before { opacity: 1; }

/* Source: css/landscape-lobby-bays.css */
.game-list > .bay { display: none; }

html.landscape .lobby-floor .game-list {
--bay-inset: 4px;
isolation: isolate;
contain: layout;
}

html.landscape .lobby-floor .game-list[data-cards] > .bay {
--bay-pad: calc(var(--row-space) / 2 - 2px);
--bay-x: calc(var(--bay-inset) + var(--bay-start) * (var(--row-card) + var(--row-space)) - var(--bay-pad));
--bay-w: calc(var(--bay-count) * var(--row-card) + (var(--bay-count) - 1) * var(--row-space) + 2 * var(--bay-pad));
--bay-y: calc((100cqh - min(100cqh, 420px)) / 2);
display: block;
position: absolute;
top: var(--bay-y);
bottom: var(--bay-y);
left: max(0px, var(--bay-x));
width: calc(var(--bay-x) + var(--bay-w) - max(0px, var(--bay-x)));
pointer-events: none;
}

.game-list > .bay[data-tone="gold"] {
--bay-rim: var(--gold);
--bay-neon: var(--ruby);
}
.game-list > .bay[data-tone="cyan"] {
--bay-rim: var(--neon-cyan);
--bay-neon: var(--sapphire);
}
.game-list > .bay[data-tone="magenta"] {
--bay-rim: var(--neon-pink);
--bay-neon: var(--magenta);
}

.game-list > .bay::before {
content: "";
position: absolute;
inset: 0;
z-index: -3;
border-radius: 16px 16px 0 0;
background: linear-gradient(color-mix(in srgb, var(--bay-neon) 25%, transparent), transparent 70%);
}

.game-list > .bay::after,
.game-list > .bay > .bay-glint {
content: "";
position: absolute;
inset: 0;
border-radius: 16px 16px 0 0;
}

.game-list > .bay::after {
z-index: -2;
border: 3px solid var(--bay-rim);
border-bottom: 0;
box-shadow: inset 0 0 0 1px var(--gold-deep), inset 0 0 6px var(--bay-neon);
-webkit-mask: linear-gradient(#000 50%, transparent 90%);
mask: linear-gradient(#000 50%, transparent 90%);
}

.game-list > .bay > .bay-glint {
z-index: -1;
bottom: 38%;
padding: 3px 3px 0;
overflow: hidden;
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}

.game-list > .bay > .bay-glint::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 41%, color-mix(in srgb, var(--gold-light) 70%, transparent) 46%,
#fff 50%, color-mix(in srgb, var(--gold-light) 70%, transparent) 54%, transparent 59%);
transform: translateX(-150%);
}

.game-list > .bay > .bay-sign {
position: absolute;
z-index: 4;
left: 50%;
top: max(0px, var(--topbar-hang, 0px) - var(--lobby-gap-y, 0px) - var(--bay-y));
transform: translateX(-50%);
box-sizing: border-box;
height: 15px;
padding: 2px 9px 0;
border: 1.5px solid var(--bay-rim);
border-top: 0;
border-radius: 0 0 4px 4px;
background: linear-gradient(var(--lacquer), var(--sheet-base));
color: var(--gold-light);
font: 500 var(--type-label) / 1 var(--display);
letter-spacing: 0.07em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px var(--bay-neon), 0 2px 4px #000a;
}

@media (prefers-reduced-motion: no-preference) {
body:not(.scene-motion-paused) .lobby.lobby-motion-active .game-list > .bay.bay-active > .bay-glint::before {
animation: bay-sheen 9s linear infinite;
}
}

@keyframes bay-sheen {
0% { transform: translateX(-150%); }
30%, 100% { transform: translateX(150%); }
}

/* Source: css/landscape-cabinet.css */


html.landscape #app {
--ls-l: max(12px, var(--safe-left));
--ls-r: max(12px, var(--safe-right));
--ls-bar: 44px;
--ls-deck: 56px;
--ls-strip: 28px;
--ls-rows: var(--reel-rows, 3);
--ls-aspect: 1;
--ls-pad: 6px;
--ls-side: 120px;
--ls-stage-h: calc(var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - var(--ls-bar) - var(--ls-deck));
--chip-band: 14px;
--chip-foot: 1px;
--ls-cell-h: clamp(36px, calc((var(--ls-stage-h) - var(--ls-strip) - var(--ls-pad) - var(--chip-band) - 8px - (var(--ls-rows) - 1) * 3px) / var(--ls-rows)), 120px);
--cell: min(calc(var(--ls-cell-h) * var(--ls-aspect)), calc((100vw - var(--ls-l) - var(--ls-r) - 2 * var(--ls-side) - 2 * var(--ls-pad) - 58px) / 5));
--ls-reels-w: calc(5 * var(--cell) + 2 * var(--ls-pad) + 58px);
}

html.landscape #app:not([hidden]) {
max-width: none;
margin: 0;
padding: var(--safe-top) var(--ls-r) 0 var(--ls-l);
display: grid;
grid-template-columns: minmax(256px, 1fr) minmax(0, 410px);
grid-template-rows: var(--ls-bar) minmax(0, 1fr) auto;
grid-template-areas: "level top" "stage stage" "deck deck";
column-gap: 12px;
}

html.landscape #app > .level-row { grid-area: level; }
html.landscape #app > .topbar { grid-area: top; }
html.landscape #app > section,
html.landscape #app > .grid { grid-area: stage; }
html.landscape #app > .controls { grid-area: deck; }


html.landscape #app > .level-row::before {
content: "";
position: absolute;
z-index: -1;
left: 0;
right: 0;
top: 0;
height: calc(var(--safe-top) + var(--ls-bar));
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%),
linear-gradient(180deg, var(--console-light), var(--navy-deep));
box-shadow: 0 1px 0 var(--gold-dark), 0 2px 0 var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.55);
pointer-events: none;
}

html.landscape #app > .level-row {
align-self: center;
margin: 0;
gap: 8px;
}

html.landscape #app > .topbar {
align-self: center;
min-height: 0;
height: var(--ls-bar);
padding: 0;
gap: 6px;
border-radius: 0;
background: none;
box-shadow: none;
}

html.landscape #app > .topbar .credits {
align-self: center;
height: 34px;
padding: 0 0 0 4px;
border-radius: 8px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-deep);
}

html.landscape #app > .topbar .currency {
text-align: center;
}

html.landscape #app .level-row .rush-button,
html.landscape #app .level-row .league-button,
html.landscape #app > .topbar .pearl-button {
height: var(--ls-bar);
}

html.landscape #app .level-row .league-button.fever {
grid-template-rows: 18px 12px;
}

html.landscape #app > .topbar .machine-offers-menu {
max-height: calc(var(--cabinet-height) - var(--safe-top) - var(--safe-bottom) - var(--ls-bar) - 12px);
}


html.landscape #app > .grid {
z-index: 1;
align-self: end;
justify-self: center;
margin: 0 0 2px;
padding: var(--ls-pad);
}

html.landscape #app:not([data-chip-dock]):not(.studio-multi) > .grid {
padding-top: var(--chip-band);
}

html.landscape #app:not([data-chip-dock]) .goal-chip,
html.landscape #app:not([data-chip-dock]) .streak-chip {
top: auto;
bottom: calc(100% - var(--chip-band) + var(--chip-foot));
}

html.landscape #app:not([data-chip-dock]) .goal-chip {
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
column-gap: 3px;
left: 6px;
padding: 0 6px;
line-height: 1.05;
transform-origin: left bottom;
}

html.landscape #app:not([data-chip-dock]) .goal-num { font-size: 0.7rem; }
html.landscape #app:is(.stampede, .frontier) .goal-chip { column-gap: 2px; padding-inline: 4px; }
html.landscape #app:not([data-chip-dock]) .goal-lock { margin-top: 3px; transform: scale(0.7); }
html.landscape #app:not([data-chip-dock]) .goal-track { flex: 0 0 20px; margin: 0 0 0 1px; }

html.landscape #app:not([data-chip-dock]) .streak-chip {
right: 6px;
padding: 0 7px 0 18px;
border-width: 1px;
font-size: 0.7rem;
line-height: 1.05;
}

html.landscape #app:not([data-chip-dock]) .streak-chip::before { left: 5px; top: 1px; width: 9px; height: 10px; }

html.landscape #app .win-plate {
bottom: -7px;
z-index: 5;
padding: 1px 12px 0;
}


html.landscape #app > .controls {
display: grid;
grid-template-columns: 44px 44px minmax(0, 1fr) 44px 172px minmax(0, 1fr) 44px 94px;
grid-template-areas: "home down bet up spin win info max";
align-items: center;
column-gap: 6px;
height: calc(var(--ls-deck) + var(--safe-bottom));
margin: 0 calc(-1 * var(--ls-r)) 0 calc(-1 * var(--ls-l));
padding: 5px var(--ls-r) var(--safe-bottom) var(--ls-l);
}

html.landscape #app .controls .bet-row,
html.landscape #app .controls .buttons {
display: contents;
}

html.landscape #app .controls #lobby-button { grid-area: home; }
html.landscape #app .controls #paytable-button { grid-area: info; }
html.landscape #app .controls #bet-down { grid-area: down; }
html.landscape #app .controls .bet { grid-area: bet; }
html.landscape #app .controls #bet-up { grid-area: up; }
html.landscape #app .controls .win-box { grid-area: win; }
html.landscape #app .controls #bet-max { grid-area: max; }
html.landscape #app .controls #tap-button { grid-area: spin; }

html.landscape #app .controls .bet-step,
html.landscape #app .controls .bet-max,
html.landscape #app .controls .deck-button {
height: 44px;
min-height: 44px;
}

html.landscape #app .controls .bet-value,
html.landscape #app .controls .win-box {
height: 44px;
}

html.landscape #app .controls .spin-button {
height: 50px;
min-height: 50px;
}

/* Source: css/landscape-cabinet-2.css */

/* Source: css/landscape-machines.css */



html.landscape #app.stampede {
--ls-pad: 4px;
--ls-aspect: 1.2;
--chip-band: 4px;
}

html.landscape #app.stampede { --stampede-cell-height: var(--ls-cell-h); }
html.landscape #app.studio { --studio-cell-height: var(--cell); }


html.landscape #app > :is(.storm, .lagoon, .stampede-sign, .studio-sign):not([hidden]) {
display: grid;
grid-template-columns: [side-l] minmax(0, 1fr) [mid] var(--ls-reels-w) [side-r] minmax(0, 1fr) [end];
grid-template-rows: [strip] var(--ls-strip) repeat(6, minmax(0, 1fr));
align-items: center;
justify-items: center;
gap: 0 8px;
min-height: 0;
margin: 0 calc(-1 * var(--ls-r)) 0 calc(-1 * var(--ls-l));
padding: 0 var(--ls-r) 4px var(--ls-l);
overflow: visible;
}

html.landscape #app :is(.lagoon-jackpots, .stampede-jackpots, .studio-jackpots) {
grid-column: side-l / end;
grid-row: strip;
align-self: center;
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
gap: 5px;
}

html.landscape #app .studio-jackpots.count-3 {
width: min(100%, 520px);
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, 1fr);
}

html.landscape #app :is(.lagoon-jackpot, .stampede-jackpot, .studio-jackpot),
html.landscape #app :is(.lagoon-jackpot, .stampede-jackpot, .studio-jackpot):first-child {
grid-column: auto;
justify-self: stretch;
width: auto;
height: 26px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 5px;
padding: 0 5px;
border-width: 2px;
}

html.landscape #app :is(.lagoon-jackpot-name, .stampede-jackpot-name, .studio-jackpot-name),
html.landscape #app .studio-jackpot:first-child .studio-jackpot-name {
flex: none;
font-size: 12px;
line-height: 1;
letter-spacing: 0.03em;
}

html.landscape #app :is(.lagoon-jackpot-amount, .stampede-jackpot-value, .studio-jackpot-value),
html.landscape #app .studio-jackpot:first-child .studio-jackpot-value {
flex: 0 1 auto;
min-width: 0;
max-width: 100%;
overflow: hidden;
font-size: var(--type-readout);
line-height: 1.1;
white-space: nowrap;
}

html.landscape #app :is(.lagoon-jackpot.grand .lagoon-jackpot-amount, .stampede-jackpot.grand .stampede-jackpot-value),
html.landscape #app .studio-jackpot:first-child .studio-jackpot-value {
font-size: 1.1rem;
}

html.landscape #app .studio-jackpot-text {
flex: 0 1 auto;
flex-direction: row;
align-items: center;
gap: 5px;
}

html.landscape #app .studio-jackpot-art,
html.landscape #app .studio-jackpot:first-child .studio-jackpot-art {
width: 26px;
height: 26px;
margin: 0 -3px 0 -7px;
}

html.landscape #app :is(.storm, .lagoon, .stampede-sign, .studio-sign):not([hidden]) > :is(.storm-wilds, .storm-ladder-head, .lagoon-hint, .lagoon-wilds, .stampede-hint, .stampede-status, .studio-hint, .studio-wilds) {
min-width: 0;
max-width: 100%;
white-space: normal;
text-align: center;
text-wrap: balance;
flex-wrap: wrap;
}

html.landscape #app :is(.lagoon-board, .stampede-meter, .storm-board, .studio-board) {
justify-self: stretch;
min-width: 0;
}


html.landscape #app .lagoon {
container-type: normal;
}

html.landscape #app .lagoon-sky {
position: absolute;
inset: 0;
z-index: -1;
max-height: none;
display: block;
container-type: normal;
}

html.landscape #app .lagoon-koi {
position: absolute;
top: calc(var(--ls-strip) + 12px);
left: calc(var(--ls-l) + (100% - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 4 - 60px);
width: 120px;
height: 120px;
}

html.landscape #app .lagoon-lantern,
html.landscape #app .lagoon-pad {
display: none;
}

html.landscape #app .lagoon-sign {
grid-column: side-l;
grid-row: 6 / span 2;
padding: 0 8px;
}

html.landscape #app .lagoon-title {
font-size: 1.4rem;
white-space: normal;
text-align: center;
}

html.landscape #app .lagoon-hint { grid-column: side-r; grid-row: 2 / span 2; font-size: 0.75rem; }
html.landscape #app .lagoon-board { grid-column: side-r; grid-row: 4 / span 2; flex-wrap: wrap; justify-content: center; }
html.landscape #app .lagoon-wilds { grid-column: side-r; grid-row: 6 / span 2; font-size: 0.8rem; }


html.landscape #app .stampede-scene {
border-radius: 0;
mask-image: none;
-webkit-mask-image: none;
}

html.landscape #app .stampede-scene .stampede-scene-bison {
top: calc(var(--ls-strip) + 14px);
left: calc(var(--ls-l) + (100% - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 4);
height: 46%;
max-width: 30%;
}

html.landscape #app .stampede-title { grid-column: side-l; grid-row: 6 / span 2; font-size: 1.4rem; }
html.landscape #app .stampede-hint { grid-column: side-r; grid-row: 2 / span 2; font-size: 0.75rem; }
html.landscape #app .stampede-meter { grid-column: side-r; grid-row: 4 / span 2; justify-self: stretch; }
html.landscape #app .stampede-status { grid-column: side-r; grid-row: 6 / span 2; }

/* Source: css/landscape-machines-2.css */


html.landscape #app .storm-sign {
grid-column: side-l / end;
grid-row: strip;
}

html.landscape #app .storm-title { font-size: 1.5rem; }
html.landscape #app .storm-god { font-size: 1.4rem; }

html.landscape #app .storm-wilds {
grid-column: side-l;
grid-row: 6 / span 2;
font-size: 0.85rem;
}

html.landscape #app .storm-ladder-head {
grid-column: side-r;
grid-row: 2;
align-self: end;
font-size: 0.8rem;
}

html.landscape #app .storm-ladder {
grid-column: side-r;
grid-row: 3 / span 3;
justify-self: stretch;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px 6px;
}

html.landscape #app .storm-board {
grid-column: side-r;
grid-row: 6 / span 2;
justify-self: stretch;
padding: 2px 6px;
white-space: normal;
text-align: center;
}


html.landscape #app .studio-scene {
inset: 0;
}

html.landscape #app .studio-title {
grid-column: side-l;
grid-row: 3 / span 2;
align-self: end;
margin: 0;
font-size: 1.6rem;
white-space: normal;
}

html.landscape #app .studio-wilds {
grid-column: side-l;
grid-row: 5 / span 3;
font-size: 0.8rem;
}

html.landscape #app .studio-hint {
grid-column: side-r;
grid-row: 2 / span 3;
flex-direction: column;
align-items: center;
gap: 6px;
font-size: 0.8rem;
}

html.landscape #app .studio-board {
grid-column: side-r;
grid-row: 5 / span 3;
justify-self: stretch;
flex-wrap: wrap;
padding: 3px 6px;
}

/* Source: css/landscape-machines-3.css */



html.landscape #app .storm {
isolation: isolate;
}

html.landscape #app .storm-sky {
position: absolute;
inset: 0;
z-index: -1;
max-height: none;
display: grid;
grid-template-columns: [side-l] minmax(0, 1fr) [mid] var(--ls-reels-w) [side-r] minmax(0, 1fr) [end];
grid-template-rows: [strip] var(--ls-strip) repeat(6, minmax(0, 1fr));
gap: 0 8px;
padding: 0 var(--ls-r) 4px var(--ls-l);
container-type: normal;
}

html.landscape #app .storm-depth > i:not(.fx-amb) {
inset: 0 auto;
display: block;
width: calc(var(--parallax-reach) + var(--ls-l) + (100% - 2 * var(--parallax-reach) - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 2 + 24px);
background-size: auto 100%;
}

html.landscape #app .storm-depth > i:not(.fx-amb):first-child {
left: 0;
background-position: left bottom;
-webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
mask-image: linear-gradient(90deg, #000 55%, transparent);
}

html.landscape #app .storm-depth > i:not(.fx-amb) + i:not(.fx-amb) {
right: 0;
background-position: right bottom;
-webkit-mask-image: linear-gradient(270deg, #000 55%, transparent);
mask-image: linear-gradient(270deg, #000 55%, transparent);
}

html.landscape #app .storm-depth:not(.far) {
--storm-pane: calc(var(--parallax-reach) + var(--ls-l) + (100% - 2 * var(--parallax-reach) - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 2 + 24px);
--win-mask:
linear-gradient(90deg, #000 calc(var(--storm-pane) * 0.55), transparent var(--storm-pane), transparent calc(100% - var(--storm-pane)), #000 calc(100% - var(--storm-pane) * 0.55)) intersect,
var(--win-art) right bottom / auto 100% no-repeat add,
var(--win-art) left bottom / auto 100% no-repeat;
}

html.landscape #app .storm-props {
position: relative;
inset: auto;
grid-column: side-l;
grid-row: 2 / span 5;
align-self: stretch;
justify-self: stretch;
display: grid;
place-items: center;
}

html.landscape #app .storm-props > * {
grid-area: 1 / 1;
}

html.landscape #app .storm-event {
font-size: 136px;
margin-top: 6px;
}

html.landscape #app .storm-disc {
align-self: end;
position: relative;
width: 44px;
height: 44px;
margin-bottom: 14px;
font-size: 26px;
}

html.landscape #app .storm-disc.thunder { justify-self: start; left: 0; }
html.landscape #app .storm-disc.wind { justify-self: end; right: 0; }

html.landscape #app .storm-board {
flex-direction: column;
align-items: center;
gap: 0;
padding: 3px 4px 4px;
}

html.landscape #app .storm-status {
font-size: 0.9rem;
line-height: 1.15;
}

html.landscape #app .storm.free .storm-detail {
font-size: 0.7rem;
}

html.landscape #app .storm-detail {
max-width: 100%;
font-size: 0.8rem;
line-height: 1.2;
letter-spacing: 0.02em;
white-space: nowrap;
text-overflow: clip;
}

html.landscape .free-show {
padding: 0;
background: none;
}

html.landscape .free-show-panel {
top: clamp(calc(var(--safe-top) + 74px), var(--free-grid-y, 50%), calc(100% - var(--safe-bottom) - 74px));
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-rows: auto auto auto;
align-content: center;
align-items: center;
justify-items: center;
gap: 2px 10px;
width: min(calc(100% - var(--safe-left) - var(--safe-right) - 24px), calc(var(--free-grid-w, 460px) - 36px), 440px);
max-height: calc(100% - var(--safe-top) - var(--safe-bottom) - 16px);
padding: 12px 14px 10px;
}

html.landscape .free-show-gods {
grid-column: 1;
grid-row: 2 / span 2;
flex-direction: column;
gap: 2px;
}

html.landscape .free-show-gods img {
width: 30px;
height: 30px;
}

html.landscape .free-show-title {
grid-column: 1 / -1;
grid-row: 1;
margin-top: 2px;
font-size: 1.6rem;
line-height: 1.15;
}

html.landscape .free-show-main,
html.landscape .free-show.end .free-show-main {
grid-column: 2;
grid-row: 2;
margin: 0;
font-size: 2.35rem;
}

html.landscape .free-show.end .free-show-main {
font-size: 2.1rem;
}

html.landscape .free-show-sub {
grid-column: 2;
grid-row: 3;
font-size: 0.9rem;
white-space: nowrap;
}

html.landscape .free-show-tap {
grid-column: 3;
grid-row: 2 / span 2;
width: auto;
min-width: 92px;
min-height: 44px;
margin-top: 0;
padding: 8px 12px;
font-size: 1rem;
}


html.landscape #app .lagoon-lantern,
html.landscape #app .lagoon-pad {
display: block;
position: absolute;
align-self: auto;
margin: 0;
pointer-events: none;
}

html.landscape #app .lagoon-lantern {
top: calc(var(--ls-strip) + 4px);
width: 58px;
height: 58px;
}

html.landscape #app .lagoon-lantern.left { left: 10px; }
html.landscape #app .lagoon-lantern.right { right: 10px; }

html.landscape #app .lagoon-pad {
bottom: 6px;
width: 60px;
height: 60px;
}

html.landscape #app .lagoon-pad.one { left: 4px; }
html.landscape #app .lagoon-pad.two { right: 4px; }

html.landscape .koi-show {
padding: var(--safe-top) max(16px, var(--safe-right)) var(--safe-bottom) max(16px, var(--safe-left));
background:
radial-gradient(circle at 50% 45%, var(--lagoon-screens-koi-show-tone-126), var(--lagoon-screens-koi-show-tone-127) 70%),
rgba(1, 10, 18, 0.78);
}

html.landscape .koi-show::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: url("../art/ui/lagoon-scene.webp") center bottom / cover no-repeat;
opacity: 0.7;
pointer-events: none;
}

html.landscape .koi-show-panel,
html.landscape .koi-show.show .koi-show-panel {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-content: center;
align-items: center;
justify-items: center;
gap: 4px 28px;
width: min(100%, 620px);
max-height: 100%;
padding: 0;
}

html.landscape .koi-show-pearls {
grid-column: 1;
grid-row: 1 / span 5;
flex-direction: column;
gap: 2px;
}

html.landscape .koi-show-pearls i { width: 60px; height: 60px; }
html.landscape .koi-show-pearls i:nth-child(2) { width: 80px; height: 80px; }

html.landscape .koi-show-title,
html.landscape .koi-show-main,
html.landscape .koi-show-sub,
html.landscape .koi-show-jackpots,
html.landscape .koi-show-tap {
grid-column: 2;
}

html.landscape .koi-show-title { grid-row: 1; font-size: 2.6rem; }
html.landscape .koi-show-main { grid-row: 2; font-size: 4.4rem; padding: 6px 16px; margin: 0; }
html.landscape .koi-show.end .koi-show-main { font-size: 3.2rem; }
html.landscape .koi-show-sub { grid-row: 3; }
html.landscape .koi-show-jackpots { grid-row: 4; max-width: 360px; }
html.landscape .koi-show-tap { grid-row: 5; margin-top: 8px; }

html.landscape .koi-show-jackpot { padding: 4px 0; }


html.landscape #app .hint-part {
display: block;
}

html.landscape #app .hint-dot {
display: none;
}

html.landscape #app .studio-hint-text {
text-align: center;
text-wrap: balance;
}

html.landscape .studio-show {
padding: var(--safe-top) max(16px, var(--safe-right)) var(--safe-bottom) max(16px, var(--safe-left));
}

html.landscape .studio-show-scene {
object-position: 50% 0;
}

html.landscape .studio-show::after {
background:
radial-gradient(circle at 50% 46%, var(--kit-glow-soft, transparent), transparent 52%),
linear-gradient(180deg, transparent 50%, var(--studio-hall, var(--bg-deep)));
}

html.landscape .studio-show-panel,
html.landscape .studio-show.show .studio-show-panel {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-content: center;
align-items: center;
justify-items: center;
gap: 4px 24px;
width: min(100%, 640px);
max-height: 100%;
padding: 0;
}

html.landscape .studio-show-hero {
grid-column: 1;
grid-row: 1 / span 6;
width: 170px;
height: 170px;
margin: 0;
}

html.landscape .studio-show-title,
html.landscape .studio-show-main,
html.landscape .studio-show-sub,
html.landscape .studio-show-jackpots,
html.landscape .studio-show-note,
html.landscape .studio-show-go {
grid-column: 2;
}

html.landscape .studio-show-title { grid-row: 1; font-size: 2.6rem; }
html.landscape .studio-show-main { grid-row: 2; font-size: 3.4rem; margin: 0; }
html.landscape .studio-show-sub { grid-row: 3; }
html.landscape .studio-show-jackpots { grid-row: 4; max-width: 400px; }
html.landscape .studio-show-note { grid-row: 5; max-width: 400px; font-size: 0.75rem; line-height: 1.3; }
html.landscape .studio-show-go { grid-row: 6; margin-top: 8px; }
html.landscape .studio-show-jackpot { padding: 3px 2px; }

html.landscape #app .storm-ladder-head,
html.landscape #app .lagoon-hint {
display: grid;
grid-template-columns: auto auto;
justify-content: center;
align-items: center;
column-gap: 6px;
text-align: left;
}

html.landscape #app .storm-ladder-head > span[aria-hidden] {
grid-column: 1;
grid-row: 1 / span 2;
}

html.landscape #app :is(.storm-ladder-head, .lagoon-hint) > .hint-part {
grid-column: 2;
}

html.landscape #app .lagoon-hint::before {
grid-column: 1;
grid-row: 1 / span 2;
width: 1.7em;
height: 1.7em;
margin: 0;
}

html.landscape .studio-sign.hold .studio-detail { white-space: normal; text-overflow: clip; text-align: center; }

/* Source: css/landscape-machines-4.css */



html.landscape #app .stampede-hint {
justify-self: stretch;
padding: 3px 5px;
font-size: 12px;
background: linear-gradient(var(--stampede-glass), var(--bg-deep));
border: 1px solid var(--gold-deep);
border-radius: 6px;
box-shadow: inset 0 1px 0 #fff2;
}

html.landscape #app .stampede-meter {
flex-wrap: wrap;
justify-content: center;
column-gap: 7px;
row-gap: 2px;
font-size: 12px;
}


html.landscape .stampede-show {
padding: max(8px, var(--safe-top)) max(16px, var(--safe-right)) max(8px, var(--safe-bottom)) max(16px, var(--safe-left));
}

html.landscape .stampede-show-panel {
width: min(100%, 640px);
padding: 8px 16px;
display: grid;
grid-template-columns: 200px minmax(0, 1fr);
grid-template-rows: auto repeat(3, auto);
align-content: center;
align-items: center;
column-gap: 24px;
}

html.landscape .stampede-show-panel > h2 {
grid-column: 1 / -1;
margin: 0 0 8px;
font-size: 26px;
}

html.landscape .stampede-show-hero {
grid-column: 1;
grid-row: 2 / span 3;
margin: 0 auto;
}

html.landscape .stampede-show-hero { width: 140px; height: 140px; }

html.landscape .stampede-show.free-start .stampede-show-panel > h2 {
grid-column: 2;
grid-row: 1;
margin-bottom: 0;
}
html.landscape .stampede-show.free-start .stampede-show-hero { grid-row: 1 / span 4; }

html.landscape .stampede-show-main { grid-column: 2; font-size: 38px; }
html.landscape .stampede-show-sub { grid-column: 2; max-width: none; margin: 4px 0 12px; }
html.landscape .stampede-show-jackpots { grid-column: 2; max-width: none; margin: 0 0 12px; }
html.landscape .stampede-show-panel > button { grid-column: 2; width: 100%; margin: 0; }

/* Source: css/landscape-shop.css */

html.landscape :is(#shop, #inbox-sheet, #rank-sheet, #profile-sheet).destination-screen > .sheet-panel {
padding: calc(var(--safe-top) + 56px) max(20px, var(--safe-right)) calc(var(--safe-bottom) + 6px) max(20px, var(--safe-left));
}

html.landscape :is(#shop, #inbox-sheet, #rank-sheet, #profile-sheet).destination-screen .sheet-title {
top: calc(var(--safe-top) + 15px);
left: max(20px, var(--safe-left));
right: calc(max(16px, var(--safe-right)) + 56px);
font-size: 1.4rem;
line-height: 1.3;
}

html.landscape :is(#shop, #inbox-sheet, #rank-sheet, #profile-sheet).destination-screen .screen-close {
top: calc(var(--safe-top) + 8px);
right: max(16px, var(--safe-right));
}

html.landscape #shop.destination-screen .shop-panel::before {
content: "";
position: absolute;
top: var(--safe-top);
left: calc(max(20px, var(--safe-left)) - 16px);
width: 12rem;
height: 54px;
background: linear-gradient(90deg, transparent, var(--shop-velvet-deep) 12px 9rem, transparent);
mask-image: linear-gradient(transparent, #000 12px 40px, transparent);
opacity: 0.9;
pointer-events: none;
}

html.landscape #shop.destination-screen .shop-panel::after {
top: calc(var(--safe-top) + 54px);
left: max(20px, var(--safe-left));
right: max(20px, var(--safe-right));
}

html.landscape #shop.destination-screen .shop-perk {
top: calc(var(--safe-top) + 13px);
right: calc(max(16px, var(--safe-right)) + 58px);
}

html.landscape #shop.destination-screen > .sheet-panel { padding-bottom: calc(var(--safe-bottom) + 2px); }

html.landscape #shop.destination-screen .shop-body {
max-width: none;
padding: 2px 0 4px;
}

html.landscape #shop.destination-screen .pack-list {
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-rows: repeat(2, minmax(0, 1fr));
gap: 6px 10px;
}

html.landscape .bank-screen {
padding: calc(var(--safe-top) + 4px) max(20px, var(--safe-right)) calc(var(--safe-bottom) + 2px) max(20px, var(--safe-left));
}

html.landscape .bank-close {
top: calc(var(--safe-top) + 8px);
right: max(16px, var(--safe-right));
width: 46px;
height: 46px;
}

html.landscape .bank-screen-title {
margin: 0;
font-size: 2.2rem;
}

html.landscape .bank-meter {
width: min(100%, 300px);
min-height: 46px;
margin-top: 6px;
}

html.landscape .bank-meter-coin { width: 34px; height: 34px; }
html.landscape .bank-meter-payout { font-size: 1.7rem; }

html.landscape .bank-price-rule {
margin-top: 6px;
}

html.landscape .bank-scene {
max-width: 640px;
margin-top: 2px;
--pig-h: min(80cqh, 46cqw, 300px);
--pedestal-w: min(calc(var(--pig-h) * 0.8), 230px);
--lift: 0px;
--pig-base: calc(var(--pedestal-w) * 0.3);
}

html.landscape .bank-pedestal {
bottom: 0;
}

html.landscape .bank-break {
width: 140px;
height: 58px;
padding-top: 10px;
}

html.landscape .bank-break-label { font-size: 1.05rem; }

html.landscape .bank-tag {
left: max(0px, calc(50% - var(--pig-h) * 0.78));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.61);
}

html.landscape .bank-ribbon {
left: max(0px, calc(50% - var(--pig-h) * 0.9));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.2);
}

html.landscape .bank-arrow {
right: max(0px, calc(50% - var(--pig-h) * 0.92));
bottom: calc(var(--pig-base) + var(--pig-h) * 0.4);
}

/* Source: css/landscape-shop-2.css */

html.landscape #inbox-sheet.destination-screen .inbox-panel { gap: 0; }

html.landscape #inbox-sheet.destination-screen .inbox-head {
min-height: 0;
height: 0;
margin: 0;
}

html.landscape #inbox-sheet.destination-screen .inbox-envelope {
position: absolute;
top: calc(var(--safe-top) + 7px);
left: max(20px, var(--safe-left));
width: 50px;
height: 40px;
object-fit: contain;
}

html.landscape #inbox-sheet.destination-screen .sheet-title { left: calc(max(20px, var(--safe-left)) + 58px); }

html.landscape #inbox-sheet.destination-screen .inbox-tabs {
position: absolute;
top: calc(var(--safe-top) + 8px);
left: calc(max(20px, var(--safe-left)) + 170px);
right: calc(max(16px, var(--safe-right)) + 60px);
z-index: 2;
gap: 6px;
padding: 0;
}

html.landscape #inbox-sheet.destination-screen .inbox-tab { min-height: 46px; gap: 6px; padding: 2px 6px; }
html.landscape #inbox-sheet.destination-screen .inbox-tab-icon { width: 22px; height: 22px; }
html.landscape #inbox-sheet.destination-screen .inbox-event-views .inbox-tab { min-height: 44px; }

html.landscape #inbox-sheet.destination-screen .allowance-row { margin: 0 0 4px; }
html.landscape #inbox-sheet.destination-screen .inbox-event-views { margin: 0 0 4px; }

html.landscape #inbox-sheet.destination-screen .inbox-grid {
padding: 4px 2px 6px;
}

html.landscape #inbox-sheet.destination-screen .inbox-grid:not(.event-calendar):not([hidden]) {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
column-gap: 32px;
}

html.landscape #inbox-sheet.destination-screen .inbox-tile { min-height: 88px; padding: 9px 0; }
html.landscape #inbox-sheet.destination-screen .inbox-tile-face { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 3px 10px; }
html.landscape #inbox-sheet.destination-screen .inbox-tile-art { width: 54px; height: 54px; }
html.landscape #inbox-sheet.destination-screen .inbox-tile-caption { padding-left: 64px; }
html.landscape #inbox-sheet.destination-screen .inbox-tile-band { font-size: 20px; }
html.landscape #inbox-sheet.destination-screen .inbox-empty { min-height: 0; }

html.landscape #rank-sheet.destination-screen .rank-panel {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
grid-template-rows: auto minmax(0, 1fr) auto;
gap: 6px 32px;
}

html.landscape #rank-sheet.destination-screen .rank-head {
grid-column: 1;
grid-row: 1;
flex-direction: row;
gap: 14px;
margin: 0;
}

html.landscape #rank-sheet.destination-screen .level-star.rank-star { flex: none; width: 84px; height: 84px; font-size: 1.6rem; }
html.landscape #rank-sheet.destination-screen .level-star.rank-star.long { font-size: 1.2rem; }
html.landscape #rank-sheet.destination-screen .level-star.rank-star > span { margin-top: 8px; }
html.landscape #rank-sheet.destination-screen .rank-info { flex: 1; width: auto; gap: 8px; }
html.landscape #rank-sheet.destination-screen .rank-title { justify-content: flex-start; gap: 6px; }
html.landscape #rank-sheet.destination-screen .rank-name { font-size: 1.5rem; text-align: left; }
html.landscape #rank-sheet.destination-screen .rank-bar { height: 22px; }

html.landscape #rank-sheet.destination-screen .rank-next {
grid-column: 1;
grid-row: 2;
min-height: 0;
margin: 0;
overflow-y: auto;
align-content: start;
overscroll-behavior: contain;
touch-action: pan-y;
}

html.landscape #rank-sheet.destination-screen .rank-next-item { min-height: 36px; padding: 6px 0; }
html.landscape #rank-sheet.destination-screen .rank-next-text { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 2px 8px; }
html.landscape #rank-sheet.destination-screen .rank-next-sub { grid-column: 2; }
html.landscape #rank-sheet.destination-screen .rank-next-item.rank .rank-next-sub { grid-row: 2; justify-self: start; }
html.landscape #rank-sheet.destination-screen .rank-next-prize { grid-column: 2; grid-row: 2; justify-self: end; }
html.landscape #rank-sheet.destination-screen .rank-next-coin,
html.landscape #rank-sheet.destination-screen .rank-next-planet .pearl { width: 16px; height: 16px; font-size: 16px; }
html.landscape #rank-sheet.destination-screen .rank-next-amount { font-size: 13px; }
html.landscape #rank-sheet.destination-screen .rank-loyalty { grid-column: 1; grid-row: 3; margin: 0; padding: 6px 0 2px; }

html.landscape #rank-sheet.destination-screen .rank-heading {
grid-column: 2;
grid-row: 1;
align-self: start;
padding: 0 0 4px;
border-bottom: 1px solid var(--hairline);
}

html.landscape #rank-sheet.destination-screen .rank-list {
grid-column: 2;
grid-row: 1 / -1;
margin-top: 34px;
min-height: 0;
padding: 0 2px 4px;
}

html.landscape #rank-sheet.destination-screen .star-row { padding: 9px 0; }
html.landscape #rank-sheet.destination-screen .star-claim { min-height: 46px; }

.profile-col { display: contents; }

html.landscape #profile-sheet.destination-screen .profile-scroll {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
grid-template-rows: minmax(0, 1fr);
gap: 0 32px;
overflow: hidden;
padding: 2px 2px 0;
}

html.landscape #profile-sheet .profile-col {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}

html.landscape #profile-sheet .profile-head { gap: 12px; margin: 0 0 6px; }
html.landscape #profile-sheet .profile-preview { padding: 2px; }
html.landscape #profile-sheet .profile-preview-portrait { width: 64px; height: 64px; }
html.landscape #profile-sheet .profile-name { font-size: 1.5rem; }
html.landscape #profile-sheet .profile-wearing { margin-top: 1px; font-size: 12px; line-height: 1.3; }
html.landscape #profile-sheet .profile-name-form { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 3px 8px; margin-bottom: 6px; }
html.landscape #profile-sheet .profile-name-entry { min-width: 0; margin-top: 0; }
html.landscape #profile-sheet #profile-name-help { display: none; }
html.landscape #profile-sheet #profile-name-status { grid-column: 1 / -1; }
html.landscape #profile-sheet input { min-height: 44px; }
html.landscape #profile-sheet .profile-help { margin-top: 3px; font-size: 12px; line-height: 1.3; }
html.landscape #profile-sheet .profile-heading { padding-bottom: 4px; }
html.landscape #profile-sheet .profile-heading-name { font-size: 1rem; }
html.landscape #profile-sheet .profile-portraits { gap: 6px; margin: 6px 0 0; }
html.landscape #profile-sheet .profile-portrait-key { justify-content: center; gap: 0; padding: 4px; }
html.landscape #profile-sheet .profile-portrait-key .profile-preview-portrait { width: 36px; height: 36px; }
html.landscape #profile-sheet .profile-portrait-label { display: none; }

html.landscape #profile-sheet .profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; font-size: 1rem; }
html.landscape #profile-sheet .profile-stats > div { flex-direction: column; gap: 0; padding: 5px 0; }
html.landscape #profile-sheet .profile-stats dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.06em; }
html.landscape #profile-sheet .profile-stats dd { text-align: left; }

html.landscape #profile-sheet .profile-list {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
padding: 0 2px 4px;
}

html.landscape #profile-sheet .cosmetic-row { grid-template-columns: 52px minmax(0, 1fr) 80px; gap: 10px; padding: 7px 0; }
html.landscape #profile-sheet .cosmetic-swatch { padding: 2px; }
html.landscape #profile-sheet .cosmetic-swatch-face { width: 44px; height: 44px; }
html.landscape #profile-sheet .cosmetic-name { font-size: 1rem; }
html.landscape #profile-sheet .cosmetic-condition { font-size: 12px; line-height: 1.25; }
html.landscape #profile-sheet .cosmetic-action { min-height: 44px; }
html.landscape #profile-sheet .profile-note { margin: 4px 0 0; font-size: 12px; line-height: 1.3; }

/* Source: css/landscape-collections.css */


html.landscape :is(#rush-sheet, #league-sheet, #pearl-sheet).destination-screen > .sheet-panel {
padding: 58px max(20px, var(--safe-right)) calc(var(--safe-bottom) + 4px) max(20px, var(--safe-left));
}

html.landscape :is(#rush-sheet, #league-sheet, #pearl-sheet).destination-screen .sheet-title {
top: 10px;
left: max(20px, var(--safe-left));
right: calc(max(16px, var(--safe-right)) + 56px);
font-size: 1.4rem;
line-height: 1.3;
}

html.landscape :is(#rush-sheet, #league-sheet, #pearl-sheet).destination-screen .screen-close {
top: 6px;
right: max(16px, var(--safe-right));
}


html.landscape #rush-sheet.destination-screen .rush-panel {
display: grid;
grid-template-columns: 112px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
gap: 0 16px;
padding-top: 8px;
}

html.landscape #rush-sheet.destination-screen .rush-head {
position: absolute;
top: 6px;
left: calc(max(20px, var(--safe-left)) + 196px);
right: calc(max(16px, var(--safe-right)) + 60px);
width: auto;
margin: 0;
padding: 0;
gap: 3px;
flex-direction: column;
align-items: stretch;
z-index: 2;
}

html.landscape #rush-sheet.destination-screen .rush-meter { flex: none; height: 32px; }
html.landscape #rush-sheet.destination-screen .rush-meter-mark { width: 40px; height: 40px; }
html.landscape #rush-sheet.destination-screen .rush-meter-bar { height: 24px; margin: 0 14px 0 20px; }
html.landscape #rush-sheet.destination-screen .rush-meter-text { left: 42px; right: 30px; font-size: 0.95rem; }
html.landscape #rush-sheet.destination-screen .rush-meter-tier { width: 34px; height: 34px; font-size: 0.95rem; }
html.landscape #rush-sheet.destination-screen .rush-meter-boost { left: 21px; top: -4px; height: 18px; line-height: 16px; }
html.landscape #rush-sheet.destination-screen .rush-head-line { max-width: none; align-items: center; gap: 10px; padding-left: 20px; }
html.landscape #rush-sheet.destination-screen .rush-overflow { flex: 1; }
html.landscape #rush-sheet.destination-screen .rush-timer { align-self: center; padding: 1px 8px; font-size: 0.75rem; }

html.landscape #rush-sheet.destination-screen .rush-tabs {
grid-column: 1;
grid-row: 1;
display: flex;
flex-direction: column;
align-self: start;
width: auto;
margin-top: 50px;
gap: 8px;
}

html.landscape #rush-sheet.destination-screen .rush-tab { min-height: 56px; }
html.landscape #rush-sheet.destination-screen .rush-tab-label { font-size: 0.9rem; }

html.landscape #rush-sheet.destination-screen .rush-page {
grid-column: 2;
grid-row: 1;
width: auto;
align-self: stretch;
margin-top: 54px;
gap: 6px;
}

html.landscape #rush-sheet.destination-screen .rush-page-timer { margin: 0; padding: 1px 8px; font-size: 0.75rem; }

html.landscape #rush-sheet.destination-screen #rush-mission-list,
html.landscape #rush-sheet.destination-screen #rush-bolt-list {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0 18px;
align-content: start;
}

html.landscape #rush-sheet.destination-screen .rush-mission {
grid-template-columns: 60px minmax(0, 1fr);
min-height: 0;
gap: 4px 9px;
padding: 6px 0 8px;
align-items: start;
}

html.landscape #rush-sheet.destination-screen .rush-mission-art { grid-row: 1 / 3; width: 60px; height: 94px; }
html.landscape #rush-sheet.destination-screen .rush-mission-body { gap: 4px; }
html.landscape #rush-sheet.destination-screen .rush-mission-text { font-size: 0.9rem; line-height: 1.15; }
html.landscape #rush-sheet.destination-screen .rush-mission-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
html.landscape #rush-sheet.destination-screen .rush-reward { flex: none; gap: 3px; }
html.landscape #rush-sheet.destination-screen .rush-reward-mark { width: 16px; height: 16px; }
html.landscape #rush-sheet.destination-screen .rush-reward-text { font-size: 0.95rem; }
html.landscape #rush-sheet.destination-screen .rush-key { min-width: 0; flex: 1 1 56px; max-width: 84px; }

html.landscape #rush-sheet.destination-screen #rush-daily {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-rows: auto auto minmax(0, 1fr);
align-content: stretch;
gap: 6px 22px;
overflow: hidden;
}

html.landscape #rush-sheet.destination-screen #rush-daily[hidden] { display: none; }
html.landscape #rush-sheet.destination-screen #rush-daily-timer { grid-column: 1; grid-row: 1; justify-self: start; }
html.landscape #rush-sheet.destination-screen .rush-gift { grid-column: 1; grid-row: 2; grid-template-columns: 70px minmax(0, 1fr) 76px; min-height: 0; padding: 4px 0 10px; }
html.landscape #rush-sheet.destination-screen .rush-gift-art { width: 70px; height: 64px; }
html.landscape #rush-sheet.destination-screen .rush-gift-art .chest { width: 58px; height: 44px; }
html.landscape #rush-sheet.destination-screen .rush-gift-name { font-size: 1.3rem; }
html.landscape #rush-sheet.destination-screen .rush-gift-open { min-height: 44px; }
html.landscape #rush-sheet.destination-screen #rush-task-list { grid-column: 2; grid-row: 1 / 4; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
html.landscape #rush-sheet.destination-screen .rush-task { min-height: 0; padding: 7px 0; }
html.landscape #rush-sheet.destination-screen .rush-week { grid-column: 1; grid-row: 3; align-self: start; margin-top: 0; padding: 4px 0 0; gap: 8px; }

html.landscape #rush-sheet.destination-screen #rush-tower {
width: auto;
display: grid;
grid-template-columns: 204px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
gap: 0 18px;
overflow: hidden;
}

html.landscape #rush-sheet.destination-screen #rush-tower[hidden] { display: none; }

html.landscape #rush-sheet.destination-screen .rush-boosters {
display: flex;
flex-direction: column;
align-self: start;
gap: 0;
padding-bottom: 0;
margin: 0;
border-bottom: 1px solid var(--rush-rail);
}

html.landscape #rush-sheet.destination-screen .rush-booster { grid-template-columns: 30px minmax(0, 1fr) 66px; min-height: 60px; gap: 7px; }
html.landscape #rush-sheet.destination-screen .rush-booster + .rush-booster { border-top: 1px solid var(--rush-orbit); }
html.landscape #rush-sheet.destination-screen .rush-booster-mark { width: 30px; height: 30px; }
html.landscape #rush-sheet.destination-screen .rush-booster-name { font-size: 0.85rem; letter-spacing: 0.03em; }
html.landscape #rush-sheet.destination-screen .rush-booster-state { white-space: normal; line-height: 1.1; }
html.landscape #rush-sheet.destination-screen .rush-boost-buy { min-width: 66px; padding-inline: 2px; }

html.landscape #rush-sheet.destination-screen #rush-tower .rush-tower-list {
grid-column: 2;
min-height: 0;
gap: 6px;
padding: 10px 10px 14px;
}

html.landscape #rush-sheet.destination-screen .rush-tier {
grid-template-columns: 72px minmax(92px, 1fr) max-content minmax(52px, max-content);
grid-template-rows: auto;
align-items: center;
gap: 6px;
min-height: 52px;
padding: 4px 8px 12px;
}

html.landscape #rush-sheet.destination-screen .rush-tier::before { height: 7px; right: -7px; }
html.landscape #rush-sheet.destination-screen .rush-tier .spire-ribbon { grid-column: 1; width: 72px; height: 26px; padding: 0 6px; }
html.landscape #rush-sheet.destination-screen .rush-tier .spire-ribbon-name { font-size: 0.85rem; letter-spacing: 0.08em; }
html.landscape #rush-sheet.destination-screen .rush-tier-need { min-height: 26px; }
html.landscape #rush-sheet.destination-screen .rush-tier-text { font-size: 0.9rem; }
html.landscape #rush-sheet.destination-screen .rush-tier .spire-prize { flex-wrap: nowrap; gap: 4px; }
html.landscape #rush-sheet.destination-screen .rush-tier .spire-prize-coins { font-size: 1.15rem; }
html.landscape #rush-sheet.destination-screen .rush-tier.vault { min-height: 58px; }
html.landscape #rush-sheet.destination-screen .rush-tier.vault .spire-ribbon { width: 72px; height: 28px; }
html.landscape #rush-sheet.destination-screen .rush-tier.vault .spire-ribbon-name { font-size: 1rem; }
html.landscape #rush-sheet.destination-screen .rush-tier.vault .spire-prize { gap: 2px; }
html.landscape #rush-sheet.destination-screen .rush-tier.vault.climbing .rush-tier-lock { display: none; }


html.landscape :is(#pearl-open, #capsule-open, #league-up, #card-show) {
gap: 6px;
padding: 8px max(20px, var(--safe-right)) calc(var(--safe-bottom) + 8px) max(20px, var(--safe-left));
}

html.landscape :is(#pearl-open > .pearl-skip, #capsule-open > .reveal-skip) {
right: max(18px, var(--safe-right));
bottom: calc(var(--safe-bottom) + 8px);
}

html.landscape #pearl-open .pearl-open-lead { font-size: 0.8rem; }
html.landscape #pearl-open .pearl-open-name { font-size: 1.55rem; line-height: 1.15; }
html.landscape #pearl-open .pearl-open-stage { width: 240px; height: 150px; }
html.landscape #pearl-open.burst .pearl-open-stage { height: 76px; }
html.landscape #pearl-open.all.burst .pearl-open-stage {
position: absolute;
top: 50%;
left: 50%;
margin: -38px 0 0 -120px;
visibility: hidden;
z-index: 1;
pointer-events: none;
}
html.landscape #pearl-open.all .pearl-reward-notes { display: none; }
html.landscape #pearl-open .pearl-prizes { max-width: 660px; }
html.landscape #pearl-open.burst .pearl-prizes { min-height: 0; }
html.landscape #pearl-open .pearl-reward-row { gap: 8px; }
html.landscape #pearl-open .pearl-prize.tile { width: 76px; min-height: 80px; padding: 5px 3px; }
html.landscape #pearl-open .pearl-prize.tile.coins { width: 100px; }
html.landscape #pearl-open .pearl-prize.tile .pearl-prize-icon { font-size: 1.6rem; }
html.landscape #pearl-open .pearl-prize.tile .pearl-prize-amount { font-size: 1rem; }
html.landscape #pearl-open .pearl-reward-notes { margin-top: 2px; font-size: 0.75rem; }
html.landscape #pearl-open .pearl-collect { width: 220px; min-height: 46px; margin-top: 6px; }

html.landscape #capsule-open .capsule-title { font-size: 1.8rem; line-height: 1.1; }
html.landscape #capsule-open .level-up-stage.capsule-stage { height: 112px; }
html.landscape #capsule-open.burst .level-up-stage.capsule-stage { height: 80px; }
html.landscape #capsule-open .chest.capsule-big { width: 104px; height: 80px; }
html.landscape #capsule-open .capsule-prize-name { font-size: 1.5rem; flex: 0 0 100%; }
html.landscape #capsule-open.top .capsule-prize-name { font-size: 1.9rem; }
html.landscape #capsule-open .pearl-prizes { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 4px 28px; max-width: 640px; min-height: 0; }
html.landscape #capsule-open .spire-up-mark.credits-coin { width: 44px; height: 44px; }
html.landscape #capsule-open .spire-up-mark.pearl { width: 44px; height: 44px; font-size: 44px; }
html.landscape #capsule-open .spire-up-prize { width: auto; min-width: 84px; gap: 3px; }
html.landscape #capsule-open .spire-up-amount { font-size: 1.15rem; }
html.landscape #capsule-open .pearl-collect { min-height: 46px; }

html.landscape #league-up .league-up-title { font-size: 2rem; }
html.landscape #league-up .league-up-title.long { font-size: 1.7rem; }
html.landscape #league-up .level-up-stage.league-up-stage { height: 100px; }
html.landscape #league-up .league-up-mark { width: 92px; height: 92px; }
html.landscape #league-up .league-up-sub { font-size: 1rem; }
html.landscape #league-up .league-up-place { font-size: 1.25rem; }
html.landscape #league-up .league-up-prize { gap: 2px; }
html.landscape #league-up .league-up-coin.credits-coin { width: 38px; height: 38px; }
html.landscape #league-up .league-up-amount { font-size: 1.6rem; }
html.landscape #league-up .league-up-note { max-width: 600px; }
html.landscape #league-up .pearl-collect { min-height: 46px; }

html.landscape #card-show .card-show-title { font-size: 1.8rem; line-height: 1.1; }
html.landscape #card-show .card-show-stage { max-width: 700px; }
html.landscape #card-show .card-flip { width: 138px; font-size: 16px; }
html.landscape #card-show.multi .card-show-stage { flex-wrap: nowrap; gap: 8px; }
html.landscape #card-show.multi .card-flip { width: 104px; margin-top: 4px; font-size: 12px; flex: none; }
html.landscape #card-show .pearl-collect { min-height: 46px; }
html.landscape #card-show .card-dust-total { top: 8px; }
html.landscape #card-show .pearl-prizes.card-show-prizes { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 18px; max-width: 640px; min-height: 0; }

/* Source: css/landscape-collections-2.css */


html.landscape #league-sheet.destination-screen .sheet-panel {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
grid-template-rows: auto auto auto auto minmax(0, 1fr);
column-gap: 28px;
row-gap: 0;
align-content: start;
overflow: clip;
}

html.landscape #league-sheet.destination-screen .sheet-panel > :is(.league-ladder, .league-info, .league-result, .league-weeks, .league-final) { grid-column: 1; }
html.landscape #league-sheet.destination-screen .league-ladder { grid-row: 1; margin: 0 0 8px; padding: 0 0 8px; }
html.landscape #league-sheet.destination-screen .league-info { grid-row: 2; margin-bottom: 4px; gap: 3px 8px; }
html.landscape #league-sheet.destination-screen .league-result { grid-row: 3; padding: 0 0 6px; margin-bottom: 4px; gap: 2px 8px; }
html.landscape #league-sheet.destination-screen .league-final { grid-row: 4; margin: 0; }

html.landscape #league-sheet.destination-screen .sheet-panel > .league-weeks {
position: absolute;
top: 6px;
right: calc(max(16px, var(--safe-right)) + 62px);
z-index: 2;
gap: 18px;
margin: 0;
border-bottom: 0;
}

html.landscape #league-sheet.destination-screen .league-tiers { gap: 2px; }
html.landscape #league-sheet.destination-screen .league-tier { gap: 3px; }
html.landscape #league-sheet.destination-screen .league-mark { width: 34px; height: 38px; }
html.landscape #league-sheet.destination-screen .league-tier.current .league-mark { width: 46px; height: 54px; }
html.landscape #league-sheet.destination-screen .league-rungs { gap: 6px; }
html.landscape #league-sheet.destination-screen .league-rung { gap: 3px; }

html.landscape #league-sheet.destination-screen .league-info-label { font-size: 12px; }
html.landscape #league-sheet.destination-screen .league-timer { padding: 2px 8px; font-size: 15px; }
html.landscape #league-sheet.destination-screen .league-perk { font-size: 13px; }
html.landscape #league-sheet.destination-screen .league-movement { font-size: 13px; line-height: 1.3; }

html.landscape #league-sheet.destination-screen .league-viewport {
grid-column: 2;
grid-row: 1 / -1;
min-height: 0;
align-self: stretch;
}

html.landscape #league-sheet.destination-screen .league-list { padding: 0 2px 6px; }
html.landscape #league-sheet.destination-screen :is(.league-row, .league-dock) {
min-height: 46px;
grid-template-columns: 38px 32px minmax(0, 1fr) auto;
gap: 8px;
padding: 6px 0;
font-size: 15px;
}
html.landscape #league-sheet.destination-screen .league-row.you { grid-template-columns: 38px 32px minmax(0, 1fr) auto auto; }
html.landscape #league-sheet.destination-screen .league-place { font-size: 16px; line-height: 1.2; white-space: nowrap; }
html.landscape #league-sheet.destination-screen .league-face { width: 32px; height: 32px; }


html.landscape #pearl-sheet.destination-screen .pearl-contents {
display: grid;
grid-template-columns: minmax(min(300px, 60%), 1.05fr) minmax(0, 1fr);
grid-template-rows: auto auto auto auto auto auto;
align-content: start;
gap: 4px 28px;
padding: 0 2px 8px;
}

html.landscape #pearl-sheet.destination-screen .pearl-headline { display: block; grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; text-align: left; }
html.landscape #pearl-sheet.destination-screen .pearl-contents > .pearl-open-all { grid-column: 2; grid-row: 2; max-width: none; min-height: 44px; margin: 0; }
html.landscape #pearl-sheet.destination-screen .pearl-contents > .atlas-button { grid-column: 2; gap: 10px; min-height: 46px; margin: 0; padding: 2px 8px 2px 6px; }
html.landscape #pearl-sheet.destination-screen .pearl-contents > .atlas-button:not(.voyage-button) { grid-row: 3; }
html.landscape #pearl-sheet.destination-screen .pearl-contents > .voyage-button { grid-row: 4; }
html.landscape #pearl-sheet.destination-screen .atlas-button-name { font-size: 1.15rem; }
html.landscape #pearl-sheet.destination-screen .atlas-button-state { display: block; font-size: 0.8rem; }
html.landscape #pearl-sheet.destination-screen .pearl-odds-button { grid-column: 2; grid-row: 5; margin: 0 auto; }
html.landscape #pearl-sheet.destination-screen .pearl-odds { grid-column: 2; grid-row: 6; margin: 0; }

html.landscape #pearl-sheet.destination-screen .pearl-feature { grid-column: 1; grid-row: 1 / 5; flex-direction: row; gap: 12px; margin: 0; align-self: center; }
html.landscape #pearl-sheet.destination-screen .pearl-feature-stage { width: 156px; height: 152px; }
html.landscape #pearl-sheet.destination-screen .pearl-feature .pearl { width: 112px; height: 112px; margin-bottom: 32px; font-size: 112px; }
html.landscape #pearl-sheet.destination-screen .pearl-feature-info { flex: 1; width: auto; gap: 6px; }
html.landscape #pearl-sheet.destination-screen .pearl-feature-rarity { font-size: 22px; }
html.landscape #pearl-sheet.destination-screen .pearl-open-one { width: 100%; max-width: none; min-height: 48px; margin: 4px 0 0; }
html.landscape #pearl-sheet.destination-screen .pearl-list { grid-column: 1; grid-row: 5; gap: 2px; margin: 0; padding: 6px 0 0; border-top: 1px solid var(--hairline); }
html.landscape #pearl-sheet.destination-screen .pearl-tile { min-height: 64px; gap: 4px; padding: 6px 0 0; }
html.landscape #pearl-sheet.destination-screen .pearl-tile .pearl { width: 38px; height: 38px; font-size: 38px; }
html.landscape #pearl-sheet.destination-screen .pearl-boosts { grid-column: 1; grid-row: 6; margin: 0; }
html.landscape #pearl-sheet.destination-screen .pearl-boost-row { padding: 4px 0; }
html.landscape #pearl-sheet.destination-screen .pearl-boost-note { padding-top: 3px; }

/* Source: css/landscape-rush-hub.css */


html.landscape #rush-sheet.destination-screen {
--hub-room: rgba(36, 8, 84, 0.62);
--hub-room-deep: rgba(12, 3, 34, 0.78);
--hub-panel: #2a1160;
--hub-panel-deep: #170838;
--hub-rim: #8e84f0;
--hub-line: rgba(8, 2, 26, 0.85);
--hub-mount: #4a2aa8;
--hub-tab: #3d1f8f;
--hub-tab-deep: #200d58;
--hub-tab-on: #8d8cff;
--hub-tab-on-deep: #4a3fc4;
--hub-rail: #ff9a2e;
--hub-rail-glow: rgba(255, 130, 40, 0.75);
--hub-tick: #48f08a;
--hub-chevron: #8f6bff;
}

html.landscape #rush-sheet.destination-screen .rush-panel {
--hub-header-gap: 12px;
grid-template-columns: 124px minmax(0, 1fr);
gap: 0 12px;
padding-top: calc(98px + var(--hub-header-gap));
background: linear-gradient(180deg, var(--hub-room), var(--hub-room-deep)),
url("../art/ui/rush-background.webp") center / cover no-repeat;
background-color: var(--rush-night);
}


html.landscape #rush-sheet.destination-screen .rush-head {
top: 2px;
left: max(20px, var(--safe-left));
right: max(16px, var(--safe-right));
display: grid;
grid-template-columns: 162px 204px minmax(0, 1fr);
grid-template-rows: 44px 52px;
align-items: center;
gap: var(--hub-header-gap) 0;
}

html.landscape #rush-sheet.destination-screen .rush-head-line { display: contents; }
html.landscape #rush-sheet.destination-screen .rush-meter { grid-area: 1 / 2; }

html.landscape #rush-sheet.destination-screen .rush-overflow {
grid-area: 1 / 3;
margin: 0 58px 0 10px;
line-height: 1.15;
}

html.landscape #rush-sheet.destination-screen .rush-timer {
grid-area: 2 / 1;
justify-self: start;
align-self: start;
margin-top: 6px;
}


html.landscape #rush-sheet.destination-screen .rush-track {
grid-area: 2 / 2 / 3 / 4;
position: relative;
display: block;
height: 52px;
margin: 0;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}

.rush-track { display: none; }

html.landscape #rush-sheet.destination-screen .rush-track-stops {
position: absolute;
inset: 0;
display: flex;
}

html.landscape #rush-sheet.destination-screen .rush-track-rail {
position: absolute;
top: 14px;
left: 6.25%;
right: 6.25%;
height: 5px;
border-radius: 3px;
background: var(--hub-line);
box-shadow: inset 0 1px 2px #000, 0 0 0 1px var(--hub-tab-deep);
}

html.landscape #rush-sheet.destination-screen .rush-track-fill {
display: block;
width: 0;
height: 100%;
border-radius: 3px;
background: linear-gradient(180deg, var(--gold-light), var(--hub-rail) 55%, var(--magenta));
box-shadow: 0 0 6px var(--hub-rail-glow);
transition: width 600ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
html.landscape #rush-sheet.destination-screen .rush-track-fill { transition: none; }
}

html.landscape #rush-sheet.destination-screen .rush-track-stop {
position: relative;
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}

html.landscape #rush-sheet.destination-screen .rush-track-gem {
position: relative;
isolation: isolate;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
margin-top: 0;
color: var(--text);
font-family: var(--display);
font-size: 1rem;
font-variant-numeric: tabular-nums;
text-shadow: var(--jp-outline);
}

html.landscape #rush-sheet.destination-screen .rush-track-gem::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--rush-gem-art, none) center / contain no-repeat;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
}

.rush-track-stop.amber { --rush-gem-art: url("../art/nebula-empress/gems/amber.webp"); }
.rush-track-stop.sapphire { --rush-gem-art: url("../art/nebula-empress/gems/sapphire.webp"); }
.rush-track-stop.jade { --rush-gem-art: url("../art/nebula-empress/gems/jade.webp"); }
.rush-track-stop.ruby { --rush-gem-art: url("../art/nebula-empress/gems/ruby.webp"); }

html.landscape #rush-sheet.destination-screen .rush-track-stop.locked .rush-track-gem::before {
filter: saturate(0.45) brightness(0.62) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
}

html.landscape #rush-sheet.destination-screen .rush-track-stop.climbing:not(.rush-track-vault) .rush-track-gem {
width: 38px;
height: 38px;
margin: -3px 0 -3px;
font-size: 1.15rem;
}

html.landscape #rush-sheet.destination-screen .rush-track-stop.climbing .rush-track-gem::after {
content: "";
position: absolute;
inset: -1px;
z-index: -2;
border-radius: 50%;
box-shadow: 0 0 0 2px var(--hub-tab-on), 0 0 12px 2px var(--hub-tab-on);
}

html.landscape #rush-sheet.destination-screen .rush-track-check,
html.landscape #rush-sheet.destination-screen .rush-track-need { display: none; }

html.landscape #rush-sheet.destination-screen .rush-track-stop.paid .rush-track-check {
display: block;
width: 20px;
height: 16px;
color: var(--hub-tick);
filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

html.landscape #rush-sheet.destination-screen .rush-track-check svg { display: block; width: 100%; height: 100%; stroke-width: 3.4; }

html.landscape #rush-sheet.destination-screen .rush-track-stop:not(.paid) .rush-track-need {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 2px;
height: 15px;
padding: 0 4px;
border: 1px solid var(--gold-deep);
border-radius: 4px;
background: var(--bg-deep);
}

html.landscape #rush-sheet.destination-screen .rush-track-lock { width: 10px; height: 11px; color: var(--gold); }
html.landscape #rush-sheet.destination-screen .rush-track-lock svg { display: block; width: 100%; height: 100%; stroke-width: 2.6; }
html.landscape #rush-sheet.destination-screen .rush-track-stop.climbing .rush-track-lock { display: none; }
html.landscape #rush-sheet.destination-screen .rush-track-spark { width: 12px; height: 12px; }

html.landscape #rush-sheet.destination-screen .rush-track-sparks {
color: var(--gold-light);
font-family: var(--display);
font-size: 0.72rem;
letter-spacing: 0.03em;
line-height: 1;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}

html.landscape #rush-sheet.destination-screen .rush-track-vault .rush-track-gem {
width: 62px;
height: 26px;
margin: 6px 0 0;
gap: 2px;
padding-right: 4px;
border: 1px solid var(--gold-light);
border-radius: 6px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%), var(--gold-rim);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 rgba(0, 0, 0, 0.5);
}

html.landscape #rush-sheet.destination-screen .rush-track-vault .rush-track-gem::before { content: none; }
html.landscape #rush-sheet.destination-screen .rush-track-vault.climbing .rush-track-gem::after { border-radius: 7px; }
html.landscape #rush-sheet.destination-screen .rush-track-vault-mark { width: 26px; height: 26px; margin: -4px 0 -4px -6px; }

html.landscape #rush-sheet.destination-screen .rush-track-vault-name {
color: var(--gold-deep);
font-size: 0.9rem;
letter-spacing: 0.05em;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.landscape #rush-sheet.destination-screen .rush-track-vault.locked .rush-track-gem { filter: saturate(0.6) brightness(0.8); }


html.landscape #rush-sheet.destination-screen .rush-tabs { margin-top: 0; gap: 8px; }

html.landscape #rush-sheet.destination-screen .rush-tab {
min-height: 52px;
border: 0;
border-radius: 6px;
background: linear-gradient(180deg, var(--hub-tab), var(--hub-tab-deep));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 3px 0 rgba(0, 0, 0, 0.45);
}

html.landscape #rush-sheet.destination-screen .rush-tab.active {
margin-right: -12px;
border-radius: 6px 0 0 6px;
background: linear-gradient(180deg, var(--hub-tab-on), var(--hub-tab-on-deep));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px var(--hub-rim);
}

html.landscape #rush-sheet.destination-screen .rush-tab-label,
html.landscape #rush-sheet.destination-screen .rush-tab.active .rush-tab-label {
color: var(--text);
font-size: 0.95rem;
text-shadow: 0 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.6);
}

html.landscape #rush-sheet.destination-screen #rush-tower {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto minmax(0, 1fr);
gap: 6px 0;
}

html.landscape #rush-sheet.destination-screen #rush-tower .rush-boosters {
grid-column: 1;
grid-row: 1;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 8px;
min-width: 0;
}

html.landscape #rush-sheet.destination-screen #rush-tower .rush-booster {
grid-template-columns: 30px minmax(0, 1fr) max-content;
}

html.landscape #rush-sheet.destination-screen #rush-tower .rush-tower-list {
grid-column: 1;
grid-row: 2;
min-width: 0;
min-height: 0;
}


html.landscape #rush-sheet.destination-screen .rush-page {
margin-top: 0;
padding: 4px 10px 6px 12px;
border: 2px solid var(--hub-rim);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--hub-panel), var(--hub-panel-deep));
box-shadow: inset 0 0 0 1px var(--hub-tab-deep), 0 4px 14px rgba(0, 0, 0, 0.55);
}

html.landscape #rush-sheet.destination-screen #rush-missions,
html.landscape #rush-sheet.destination-screen #rush-bolt {
overflow: visible;
gap: 0;
padding: 2px 10px 0 0;
}

html.landscape #rush-sheet.destination-screen #rush-missions[hidden],
html.landscape #rush-sheet.destination-screen #rush-bolt[hidden] { display: none; }

html.landscape #rush-sheet.destination-screen #rush-mission-list,
html.landscape #rush-sheet.destination-screen #rush-bolt-list {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
padding-bottom: 22px;
}

html.landscape #rush-sheet.destination-screen .rush-mission {
position: relative;
flex: none;
grid-template-columns: 82px minmax(0, 1fr) 30px 76px 92px;
align-items: center;
min-height: 48px;
gap: 0 10px;
padding: 2px 0;
border-bottom: 2px solid var(--hub-line);
}

html.landscape #rush-sheet.destination-screen .rush-mission:last-child { border-bottom: 0; }

html.landscape #rush-sheet.destination-screen .rush-mission-art {
grid-row: auto;
width: 82px;
height: 44px;
border: 0;
border-radius: 0;
object-position: 50% 24%;
box-shadow: none;
clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

html.landscape #rush-sheet.destination-screen .rush-mission-body {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 5px 0;
}

html.landscape #rush-sheet.destination-screen .rush-mission-event { grid-area: 1 / 1; margin-right: 8px; }
html.landscape #rush-sheet.destination-screen .rush-mission-text { grid-area: 1 / 2 / 2 / 4; font-size: 0.95rem; line-height: 1.1; }

html.landscape #rush-sheet.destination-screen .rush-mission-meter {
grid-area: 2 / 1 / 3 / 3;
position: relative;
display: block;
max-width: 220px;
}

html.landscape #rush-sheet.destination-screen .rush-mission .rush-bar {
display: block;
height: 16px;
border-radius: 8px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--gold-dark);
}

html.landscape #rush-sheet.destination-screen .rush-mission .rush-bar-fill { border-radius: 8px; }

html.landscape #rush-sheet.destination-screen .rush-mission-pct {
position: absolute;
top: 0;
left: 8px;
min-width: 0;
color: var(--text);
font-size: 0.875rem;
line-height: 16px;
text-align: left;
text-shadow: 0 1px 0 #000, 0 0 3px #000;
}

html.landscape #rush-sheet.destination-screen .rush-mission-bet { grid-area: 2 / 3; flex-wrap: nowrap; margin-left: 12px; }

html.landscape #rush-sheet.destination-screen .rush-mission-side { display: contents; }

html.landscape #rush-sheet.destination-screen .rush-mission-side::before {
content: "›››";
color: var(--hub-chevron);
font-family: var(--display);
font-size: 1.6rem;
letter-spacing: -0.08em;
line-height: 1;
text-align: center;
text-shadow: 0 0 6px var(--hub-tab-on);
}

html.landscape #rush-sheet.destination-screen .rush-mission.done .rush-mission-side::before { display: none; }

html.landscape #rush-sheet.destination-screen .rush-mission .rush-reward { justify-content: flex-start; gap: 4px; }
html.landscape #rush-sheet.destination-screen .rush-mission .rush-reward-mark { width: 22px; height: 22px; }
html.landscape #rush-sheet.destination-screen .rush-mission .rush-reward-text { font-size: 1.25rem; }
html.landscape #rush-sheet.destination-screen .rush-mission .rush-key { width: 92px; max-width: none; min-height: 44px; }
html.landscape #rush-sheet.destination-screen .rush-mission .rush-key-label { font-size: 1.1rem; }

html.landscape #rush-sheet.destination-screen #rush-missions .rush-page-timer,
html.landscape #rush-sheet.destination-screen #rush-bolt .rush-page-timer {
position: absolute;
bottom: -2px;
left: 50%;
z-index: 1;
margin: 0;
padding: 3px 22px 2px;
border: 0;
background: none;
font-size: 0.85rem;
transform: translateX(-50%);
}

html.landscape #rush-sheet.destination-screen #rush-missions .rush-page-timer::before,
html.landscape #rush-sheet.destination-screen #rush-bolt .rush-page-timer::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border: 2px solid var(--hub-rim);
border-bottom: 0;
border-radius: 8px 8px 0 0;
background: linear-gradient(180deg, var(--hub-tab-deep), var(--navy-deep));
transform: perspective(40px) rotateX(14deg);
transform-origin: 50% 100%;
}

html.landscape #rush-sheet.destination-screen .rush-page-timer-label { color: var(--text); }
html.landscape #rush-sheet.destination-screen .rush-page-timer-left { color: var(--neon-cyan); }

/* Source: css/landscape-atlas-voyage.css */



html.landscape #atlas-sheet.destination-screen .atlas-panel {
gap: 0;
padding: 60px var(--safe-right) var(--safe-bottom) var(--safe-left);
}

html.landscape #atlas-sheet.destination-screen .sheet-title {
left: var(--safe-left);
top: 12px;
right: auto;
font-size: 1.5rem;
white-space: nowrap;
}

html.landscape #atlas-sheet.destination-screen .atlas-head {
position: absolute;
z-index: 2;
top: 9px;
left: calc(var(--safe-left) + 200px);
right: calc(var(--safe-right) + 66px);
height: 46px;
padding: 0;
border-bottom: 0;
}

html.landscape #atlas-sheet.destination-screen .atlas-season { font-size: 14px; }
html.landscape #atlas-sheet.destination-screen .atlas-season-head { flex-direction: row; align-items: center; gap: 10px; }
html.landscape #atlas-sheet.destination-screen .atlas-dust { min-height: 44px; padding: 3px 12px; }
html.landscape #atlas-sheet.destination-screen .atlas-dust-amount { font-size: 18px; }
html.landscape #atlas-sheet.destination-screen .atlas-dust-name { font-size: 12px; }


html.landscape #atlas-sheet.destination-screen .atlas-albums[hidden] { display: none; }

html.landscape #atlas-sheet.destination-screen .atlas-albums {
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
grid-template-rows: auto auto;
align-content: start;
column-gap: 26px;
row-gap: 8px;
padding: 2px 2px 8px;
}

html.landscape #atlas-sheet.destination-screen .atlas-album {
grid-column: 1;
grid-row: 1;
grid-template-columns: 70px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 10px;
row-gap: 6px;
align-items: center;
padding: 0 0 10px;
}

html.landscape #atlas-sheet.destination-screen .atlas-album-art { height: 78px; }
html.landscape #atlas-sheet.destination-screen .atlas-album-art::before { width: 84px; height: 84px; }
html.landscape #atlas-sheet.destination-screen .atlas-book { width: 70px; height: 70px; }
html.landscape #atlas-sheet.destination-screen .atlas-album-body { gap: 2px; }
html.landscape #atlas-sheet.destination-screen .atlas-album-count { font-size: 22px; white-space: nowrap; }
html.landscape #atlas-sheet.destination-screen .atlas-album-prize { font-size: 12px; line-height: 1.25; }
html.landscape #atlas-sheet.destination-screen .atlas-album > .atlas-claim { justify-self: stretch; min-width: 0; min-height: 44px; font-size: 16px; }

html.landscape #atlas-sheet.destination-screen .atlas-albums > .atlas-workshop:not(#atlas-exchange) {
grid-column: 1;
grid-row: 2;
display: flex;
flex-direction: column;
gap: 8px;
padding: 0;
}

html.landscape #atlas-sheet.destination-screen .atlas-albums > .atlas-workshop:not(#atlas-exchange) .atlas-action {
min-height: 44px;
max-width: none;
margin: 0;
font-size: 17px;
}

html.landscape #atlas-sheet.destination-screen .atlas-shelf {
grid-column: 2;
grid-row: 1;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
gap: 2px 4px;
padding: 0;
}

html.landscape #atlas-sheet.destination-screen .atlas-shelf::before { font-size: 13px; padding-bottom: 2px; }

html.landscape #atlas-sheet.destination-screen .atlas-medal {
flex: 1 1 0;
width: auto;
min-width: 0;
min-height: 0;
gap: 4px;
}

html.landscape #atlas-sheet.destination-screen .atlas-shelf .atlas-medal-ring { width: 76px; height: 76px; }
html.landscape #atlas-sheet.destination-screen .atlas-medal-new { right: calc(50% - 40px); }
html.landscape #atlas-sheet.destination-screen .atlas-medal-name { min-height: 29px; font-size: 12px; }
html.landscape #atlas-sheet.destination-screen .atlas-medal-count { font-size: 13px; min-width: 44px; }

html.landscape #atlas-sheet.destination-screen .atlas-track-wrap {
grid-column: 2;
grid-row: 2;
padding: 8px 0 2px;
}

html.landscape #atlas-sheet.destination-screen .atlas-track-title { margin-bottom: 4px; font-size: 13px; }


html.landscape #atlas-sheet.destination-screen #atlas-exchange {
grid-column: 1 / -1;
grid-row: 3;
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
grid-template-rows: auto 1fr auto;
column-gap: 26px;
padding-top: 10px;
align-items: start;
}

html.landscape #atlas-sheet.destination-screen #atlas-exchange .atlas-trade-title { grid-column: 1; grid-row: 1; font-size: 19px; }
html.landscape #atlas-sheet.destination-screen #atlas-exchange .atlas-guide { grid-column: 1; grid-row: 2; margin: 4px 0 8px; font-size: 13px; }
html.landscape #atlas-sheet.destination-screen #atlas-exchange .atlas-trades { grid-column: 2; grid-row: 1 / 4; max-width: none; margin: 0; padding: 0; gap: 8px; }
html.landscape #atlas-sheet.destination-screen #atlas-exchange .atlas-action { grid-column: 1; grid-row: 3; min-height: 44px; max-width: none; margin: 0; font-size: 17px; }
html.landscape #atlas-sheet.destination-screen .atlas-planet-name { font-size: 12px; }
html.landscape #atlas-sheet.destination-screen .atlas-trade { font-size: 13px; }

html.landscape #atlas-sheet.destination-screen .atlas-past { grid-column: 1 / -1; grid-row: 4; }


html.landscape #atlas-sheet.destination-screen .atlas-book-view { gap: 0; }
html.landscape #atlas-sheet.destination-screen .atlas-sets { padding: 6px 2px 4px; }
html.landscape #atlas-sheet.destination-screen .atlas-chip .atlas-medal-ring { width: 46px; height: 46px; }

html.landscape #atlas-sheet.destination-screen #atlas-sets .atlas-set {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto auto;
align-items: center;
column-gap: 16px;
row-gap: 14px;
}

html.landscape #atlas-sheet.destination-screen #atlas-sets .atlas-set[hidden] { display: none; }

html.landscape #atlas-sheet.destination-screen .atlas-set-head {
flex-direction: row;
justify-content: flex-start;
align-items: center;
gap: 14px;
min-width: 0;
padding: 0;
}

html.landscape #atlas-sheet.destination-screen .atlas-set-name { font-size: 24px; white-space: nowrap; }
html.landscape #atlas-sheet.destination-screen .atlas-set-bar { flex: 0 1 150px; width: 150px; height: 20px; }
html.landscape #atlas-sheet.destination-screen .atlas-set-count { font-size: 13px; }

html.landscape #atlas-sheet.destination-screen #atlas-sets .atlas-set-prize {
grid-column: 2;
grid-row: 1;
padding: 0;
border-top: 0;
gap: 8px;
}

html.landscape #atlas-sheet.destination-screen .atlas-set-prize .atlas-coin { width: 28px; height: 28px; }
html.landscape #atlas-sheet.destination-screen .atlas-set-prize .atlas-claim-reward { font-size: 18px; }
html.landscape #atlas-sheet.destination-screen .atlas-set .atlas-claim { min-height: 44px; min-width: 110px; font-size: 16px; }
html.landscape #atlas-sheet.destination-screen .atlas-set .atlas-claim.buy { max-width: 200px; }

html.landscape #atlas-sheet.destination-screen .atlas-set .atlas-grid {
grid-column: 1 / -1;
grid-row: 2;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0 10px;
width: 100%;
max-width: none;
margin: 0;
padding: 10px 1px 0;
}

html.landscape #atlas-sheet.destination-screen .atlas-card { aspect-ratio: 3 / 4; min-height: 0; }
html.landscape #atlas-sheet.destination-screen .atlas-card-name { font-size: 12px; }

html.landscape #atlas-sheet.destination-screen .atlas-strip-row {
max-width: none;
margin: 0;
padding: 4px 0 0;
gap: 8px;
}

html.landscape #atlas-sheet.destination-screen .atlas-strip { justify-content: space-around; padding: 4px; }


html.landscape #atlas-sheet.destination-screen #atlas-archive { flex-direction: row; column-gap: 6px; }
html.landscape #atlas-sheet.destination-screen #atlas-archive .atlas-sets { min-width: 0; }
html.landscape #atlas-sheet.destination-screen #atlas-archive .atlas-strip-row {
order: -1;
width: auto;
flex-direction: column;
justify-content: flex-end;
padding: 0 4px 4px 0;
border-top: 0;
border-right: 1px solid var(--atlas-map-line);
}

html.landscape #atlas-sheet.destination-screen .atlas-archive-sets { gap: 18px; }
html.landscape #atlas-sheet.destination-screen .atlas-past-summary { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 0 2px 10px; }
html.landscape #atlas-sheet.destination-screen .atlas-past-line { justify-content: flex-start; gap: 10px; }
html.landscape #atlas-sheet.destination-screen .atlas-archive-sets .atlas-set { display: flex; flex-direction: column; gap: 8px; }
html.landscape #atlas-sheet.destination-screen .atlas-archive-sets .atlas-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 8px; }
html.landscape #atlas-sheet.destination-screen .atlas-archive-sets .atlas-card-name { font-size: 11px; }
html.landscape #atlas-sheet.destination-screen .atlas-past-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }

/* Source: css/landscape-atlas-voyage-2.css */



html.landscape #voyage-sheet.destination-screen .voyage-panel {
display: grid;
grid-template-columns: 176px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
column-gap: 24px;
gap: 0 24px;
padding: 62px max(16px, var(--safe-right)) max(8px, var(--safe-bottom)) max(16px, var(--safe-left));
}

html.landscape #voyage-sheet.destination-screen .sheet-title {
left: max(16px, var(--safe-left));
top: 12px;
right: auto;
font-size: 1.5rem;
white-space: nowrap;
}

html.landscape #voyage-sheet.destination-screen .voyage-head { display: contents; }

html.landscape #voyage-sheet.destination-screen .voyage-meter {
position: absolute;
z-index: 2;
top: 9px;
left: calc(max(16px, var(--safe-left)) + 214px);
width: 210px;
min-height: 44px;
height: 44px;
padding: 0 14px 0 8px;
}

html.landscape #voyage-sheet.destination-screen .voyage-meter-mark { width: 32px; height: 32px; }
html.landscape #voyage-sheet.destination-screen .voyage-starlight { font-size: 1.2rem; }
html.landscape #voyage-sheet.destination-screen .voyage-meter-label { font-size: 11px; }


html.landscape #voyage-sheet.destination-screen .voyage-rank {
grid-column: 1;
grid-row: 1;
align-self: start;
grid-template-columns: 46px minmax(0, 1fr);
grid-template-rows: auto auto auto;
align-items: center;
gap: 6px 10px;
min-height: 0;
padding: 6px 0 12px;
border-bottom: 1px solid var(--hairline);
}

html.landscape #voyage-sheet.destination-screen .voyage-rank-badge { grid-row: 1 / 3; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-body { grid-column: 2; grid-row: 1 / 3; gap: 3px; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-name { font-size: 16px; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-count { font-size: 12px; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-prize { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-amount { font-size: 13px; }
html.landscape #voyage-sheet.destination-screen .voyage-rank-claim { grid-column: 1 / -1; grid-row: 4; min-height: 44px; font-size: 16px; }


html.landscape #voyage-sheet.destination-screen .voyage-galaxy {
grid-column: 2;
grid-row: 1;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-auto-rows: minmax(0, 1fr);
align-content: stretch;
gap: 0 18px;
padding: 0;
overflow-y: auto;
}

html.landscape #voyage-sheet.destination-screen .voyage-galaxy[hidden],
html.landscape #voyage-sheet.destination-screen .voyage-sector[hidden] { display: none; }

html.landscape #voyage-sheet.destination-screen .voyage-medal {
justify-content: center;
gap: 4px;
min-height: 0;
}

html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(3n + 1) { transform: translateY(-8px); }
html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(3n + 2) { transform: translateY(10px); }
html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(3n) { transform: translateY(-2px); }
html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(n + 4):nth-child(3n + 1) { transform: translateY(6px); }
html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(n + 4):nth-child(3n + 2) { transform: translateY(-10px); }
html.landscape #voyage-sheet.destination-screen .voyage-medal:nth-child(n + 4):nth-child(3n) { transform: translateY(8px); }

html.landscape #voyage-sheet.destination-screen .voyage-medal-ring { width: 88px; }
html.landscape #voyage-sheet.destination-screen .voyage-medal-name { font-size: 13px; letter-spacing: 0.05em; }
html.landscape #voyage-sheet.destination-screen .voyage-plate { font-size: 12px; }


html.landscape #voyage-sheet.destination-screen .voyage-sector {
grid-column: 1 / -1;
grid-row: 1;
display: grid;
grid-template-columns: auto minmax(0, 0.42fr) minmax(0, 1.2fr);
grid-template-rows: auto minmax(0, 1fr) auto auto auto;
align-content: stretch;
gap: 4px 26px;
overflow: hidden;
}

html.landscape #voyage-sheet.destination-screen .voyage-sector-head,
html.landscape #voyage-sheet.destination-screen .voyage-title-row { display: contents; }
html.landscape #voyage-sheet.destination-screen .voyage-back { grid-column: 1; grid-row: 1; }
html.landscape #voyage-sheet.destination-screen .voyage-sector-name { grid-column: 2; grid-row: 1; align-self: center; margin-left: -14px; font-size: 18px; }
html.landscape #voyage-sheet.destination-screen .voyage-sky { grid-column: 1 / 3; grid-row: 2 / 4; min-height: 0; }
html.landscape #voyage-sheet.destination-screen .voyage-sky-frame { width: min(100cqw, 100cqh, 270px); height: min(100cqw, 100cqh, 270px); }
html.landscape #voyage-sheet.destination-screen .voyage-name { grid-column: 1 / 3; grid-row: 4; justify-self: center; font-size: 20px; white-space: nowrap; }
html.landscape #voyage-sheet.destination-screen #voyage-sector-plate { grid-column: 1 / 3; grid-row: 5; justify-self: center; }
html.landscape #voyage-sheet.destination-screen #voyage-count { grid-column: 3; grid-row: 1; justify-self: start; align-self: center; font-size: 14px; }
html.landscape #voyage-sheet.destination-screen #voyage-return { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
html.landscape #voyage-sheet.destination-screen .voyage-trades { grid-column: 3; grid-row: 2; align-self: center; justify-content: space-around; gap: 6px; }
html.landscape #voyage-sheet.destination-screen .voyage-trade { flex: 0 1 120px; min-width: 0; }
html.landscape #voyage-sheet.destination-screen .voyage-trades.four .voyage-trade { flex-basis: 96px; }
html.landscape #voyage-sheet.destination-screen .voyage-ledger { grid-column: 3; grid-row: 3; }
html.landscape #voyage-sheet.destination-screen .voyage-note { grid-column: 3; grid-row: 4 / 6; align-self: center; font-size: 13px; }
html.landscape #voyage-sheet.destination-screen .voyage-trade-label { font-size: 12px; }
html.landscape #voyage-sheet.destination-screen .voyage-line-label { font-size: 13px; }


html.landscape #card-show.level-up {
gap: 6px;
padding: 4px var(--safe-right) calc(var(--safe-bottom) + 4px) var(--safe-left);
}

html.landscape #card-show .level-up-title.card-show-title { font-size: 1.9rem; line-height: 1.1; }

html.landscape #card-show .card-show-stage { max-width: 740px; gap: 8px 10px; }
html.landscape #card-show .card-flip { width: 112px; font-size: 14px; }
html.landscape #card-show.multi .card-flip { width: calc((100% - 50px) / 6); margin-top: 0; font-size: 13px; }

html.landscape #card-show .pearl-prizes.card-show-prizes {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 2px 22px;
min-height: 0;
max-width: 740px;
}

html.landscape #card-show .pearl-prize.card-dust { font-size: 1rem; }
html.landscape #card-show #card-collect { width: 240px; min-height: 48px; }

html.landscape #voyage-up.level-up.show {
display: grid;
grid-template-columns: 240px minmax(0, 420px);
grid-template-rows: 1fr auto auto auto auto 1fr;
align-content: center;
justify-content: center;
column-gap: 40px;
row-gap: 8px;
padding: 0 var(--safe-right) calc(var(--safe-bottom) + 4px) var(--safe-left);
}

html.landscape #voyage-up .pearl-open-rays { position: absolute; grid-column: 1 / 2; grid-row: 2 / 6; top: 50%; margin-top: -80vmax; }
html.landscape #voyage-up .voyage-up-title { grid-column: 2; grid-row: 2; font-size: 2rem; justify-self: center; }
html.landscape #voyage-up .voyage-up-stage { grid-column: 1; grid-row: 2 / 6; align-self: center; justify-self: center; }
html.landscape #voyage-up .voyage-up-name { grid-column: 2; grid-row: 3; justify-self: center; font-size: 1.15rem; }
html.landscape #voyage-up .spire-up-prizes { grid-column: 2; grid-row: 4; min-height: 0; justify-self: center; }
html.landscape #voyage-up .voyage-up-actions { grid-column: 2; grid-row: 5; justify-self: center; }
html.landscape #voyage-up .voyage-up-actions > button { min-height: 48px; }

/* Source: css/landscape-features.css */




html.landscape .chart-reward {
gap: 4px;
padding: calc(var(--safe-top) + 10px) calc(var(--safe-right) + 20px) calc(var(--safe-bottom) + 10px) calc(var(--safe-left) + 20px);
}

html.landscape .chart-reward-prize {
min-height: 168px;
}

html.landscape .chart-reward .pearl-collect {
margin-top: 10px;
}


html.landscape .level-up {
padding: calc(var(--safe-top) + 10px) calc(var(--safe-right) + 20px) calc(var(--safe-bottom) + 10px) calc(var(--safe-left) + 20px);
}

html.landscape .level-up.show {
display: grid;
grid-template-columns: auto minmax(0, 340px);
align-content: center;
justify-content: center;
align-items: center;
column-gap: 44px;
row-gap: 0;
}

html.landscape .level-up.show > * {
grid-column: 2;
justify-self: center;
margin-top: 8px;
}

html.landscape .level-up.show > .pearl-open-rays,
html.landscape .level-up.show > .comet-coins,
html.landscape .level-up.show > .lantern-bolts,
html.landscape .level-up.show > .reveal-skip,
html.landscape .level-up.show > .card-dust-total {
grid-column: auto;
margin-top: 0;
}

html.landscape .level-up.show > .level-up-title {
justify-self: center;
margin-top: 0;
font-size: 2.2rem;
}

html.landscape .level-up.show > .level-up-stage,
html.landscape .level-up.show > .card-show-stage {
grid-column: 1;
grid-row: 1 / span 6;
align-self: center;
height: var(--st, 170px);
margin-block: calc(var(--st, 170px) / -2);
}

html.landscape .level-up.show .pearl-prizes,
html.landscape .level-up.show .spire-up-prizes {
min-height: 0;
max-width: none;
}

html.landscape .level-up.show .pearl-collect,
html.landscape .level-up.show .reward-collect {
max-width: 280px;
justify-self: center;
}

html.landscape .lantern-up.show > .lantern-title {
grid-column: 1 / -1;
font-size: 2rem;
}

html.landscape .lantern-up.show > .lantern-reels {
--lc: clamp(50px, calc((100vh - var(--safe-top) - var(--safe-bottom) - 100px) / 3), 84px);
grid-column: 1;
grid-row: 2 / span 5;
align-self: center;
margin-block: 0;
}

html.landscape .lantern-respins {
min-width: 0;
width: 100%;
max-width: 300px;
justify-self: center;
}

html.landscape .lantern-up .lantern-prizes {
min-height: 0;
}

html.landscape .lantern-up .pearl-prize {
padding: 5px 12px;
}

html.landscape .lantern-next {
text-align: center;
}


html.landscape .big-win {
gap: 6px;
padding: var(--safe-top) calc(var(--safe-right) + 16px) var(--safe-bottom) calc(var(--safe-left) + 16px);
}

html.landscape .big-win-rays {
top: 46%;
}

html.landscape .big-win-shower {
top: 2%;
width: 100%;
height: 94%;
}

html.landscape .big-win-sign {
gap: 28px;
}

html.landscape .big-win-mark {
width: 4.4rem;
height: 4.4rem;
}

html.landscape .big-win-title {
font-size: 4.8rem;
}

html.landscape .big-win.mega .big-win-title,
html.landscape .big-win.jackpot.grand .big-win-title {
font-size: 5.4rem;
}

html.landscape .big-win.super .big-win-title {
font-size: 5.6rem;
}

html.landscape .big-win.jackpot.major .big-win-title {
font-size: 5.2rem;
}

html.landscape .big-win-amount {
min-width: 50%;
padding: 4px 22px;
font-size: 3.8rem;
}

html.landscape .big-win.jackpot .big-win-amount {
width: 100%;
}


html.landscape .offer {
--popup-gutter: 8px;
}

html.landscape .offer-box {
max-width: none;
}

html.landscape .offer-box > .offer-close {
top: 0;
right: 0;
bottom: auto;
}

html.landscape .offer-confetti {
inset: -8px 18% auto;
height: 150px;
}

html.landscape .offer-banner {
flex-flow: row wrap;
justify-content: center;
align-items: center;
padding: 8px 48px 8px;
gap: 0 12px;
}

html.landscape .offer-tagline {
display: none;
}

html.landscape .offer-kicker {
font-size: 0.95rem;
}

html.landscape .offer-title {
font-size: clamp(2.4rem, 11.8vh, 2.9rem);
}

html.landscape .offer-panel {
flex-flow: row wrap;
justify-content: center;
align-items: center;
gap: 2px 14px;
padding: 0 14px;
-webkit-mask-image: none;
mask-image: none;
}

html.landscape .offer-deals {
--offer-row-width: clamp(320px, calc(2 * var(--popup-height) - 350px), 360px);
flex: 0 0 100%;
gap: 10px;
padding: 42px max(8px, calc((100% - var(--offer-row-width)) / 2)) 20px;
}

html.landscape .offer-deal-art {
--offer-pile-cap: 0.76;
}

html.landscape .deals-2 .offer-deals {
padding-inline: max(8px, calc(50% - 140px));
}

html.landscape .offer-perk,
html.landscape .offer-ends {
line-height: 1.6;
}

html.landscape .offer-perk {
padding: 0 2px;
}

html.landscape .offer-ends {
padding: 0 12px;
}

@media (max-height: 350px) {
html.landscape .offer-banner { padding-block: 0; }
html.landscape .offer-title { font-size: 2.1rem; }
html.landscape .offer-deal-buy { min-height: 44px; }
}

/* Source: css/landscape-features-2.css */


html.landscape :is(.intro-panel, .streak-panel) {
display: grid;
grid-template-columns: minmax(0, 1fr) 236px;
grid-template-rows: 1fr 1fr;
column-gap: 26px;
max-width: 660px;
padding: 32px 24px 16px;
}

html.landscape :is(.intro-panel, .streak-panel) > .sheet-content {
grid-column: 1;
grid-row: 1 / span 2;
justify-content: center;
}

html.landscape :is(.intro-panel, .streak-panel) > .deal-yes,
html.landscape :is(.intro-panel, .streak-panel) > .refill-buy {
grid-column: 2;
grid-row: 1;
align-self: end;
justify-self: stretch;
width: auto;
margin: 0;
}

html.landscape :is(.intro-panel, .streak-panel) > .sheet-close {
grid-column: 2;
grid-row: 2;
align-self: start;
justify-self: stretch;
width: auto;
margin-top: 8px;
}

html.landscape .intro-note,
html.landscape .streak-note {
margin-bottom: 0;
}


html.landscape .no-coins-panel {
max-width: 700px;
padding: 30px 22px 12px;
}

html.landscape .no-coins-text {
margin: 0 0 2px;
}

html.landscape #no-coins:not([data-kind="short-bet"]) .refill {
display: grid;
grid-template-columns: 128px minmax(0, 1fr) 220px;
grid-template-rows: auto auto auto auto;
align-items: center;
column-gap: 14px;
margin: 0 0 6px;
padding: 2px 0 6px;
}

html.landscape .refill-art {
grid-column: 1;
grid-row: 1 / span 4;
align-self: center;
width: 128px;
height: 128px;
margin: -30px 0;
}

html.landscape .refill-amounts {
flex-wrap: wrap;
gap: 0 10px;
}

html.landscape .refill-coins {
font-size: 1.9rem;
white-space: nowrap;
}

html.landscape .refill-ribbon,
html.landscape .refill-head,
html.landscape .refill-name,
html.landscape .refill-amounts {
grid-column: 2;
justify-self: start;
}

html.landscape .refill-ribbon { grid-row: 1; }
html.landscape .refill-head { grid-row: 2; }
html.landscape .refill-name { grid-row: 3; }
html.landscape .refill-amounts { grid-row: 4; }

html.landscape .refill-timer {
grid-column: 3;
grid-row: 1;
justify-self: center;
margin: 0 0 6px;
}

html.landscape .refill-buy {
grid-column: 3;
grid-row: 2 / span 2;
width: 100%;
}

html.landscape .refill-status {
grid-column: 3;
grid-row: 4;
align-self: start;
justify-self: center;
margin-top: 8px;
}

html.landscape #no-coins[data-kind="short-bet"] .no-coins-panel {
display: grid;
grid-template-columns: minmax(0, 1fr) 232px;
align-items: center;
column-gap: 22px;
max-width: 600px;
padding: 36px 22px 18px;
}

html.landscape #no-coins[data-kind="short-bet"] .sheet-content {
grid-column: 1;
}

html.landscape #no-coins[data-kind="short-bet"] .low-coins-art:not([hidden]) {
height: 130px;
background-size: 534px 356px;
background-position: -178px -35px;
width: 178px;
margin: 0 auto 4px;
}

html.landscape #no-coins[data-kind="short-bet"] .no-coins-text {
margin: 0;
max-width: none;
}

html.landscape #no-coins[data-kind="short-bet"] .no-coins-links {
grid-column: 2;
align-self: center;
}


html.landscape .auto-panel {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
column-gap: 20px;
max-width: 640px;
padding: 12px 16px 16px;
}

html.landscape .auto-title {
margin: 0;
font-size: 1.5rem;
}

html.landscape .auto-panel .turbo-toggle {
min-height: 52px;
}

html.landscape .auto-counts {
grid-column: 1 / -1;
grid-template-columns: repeat(6, minmax(0, 1fr));
margin-top: 12px;
}


html.landscape .paytable-panel {
display: grid;
grid-template-columns: minmax(0, 1fr) 150px;
grid-template-rows: auto minmax(0, 1fr);
align-items: start;
column-gap: 8px;
max-width: 720px;
padding-top: 24px;
}

html.landscape .paytable-panel > .pt-tabs {
grid-column: 1;
grid-row: 1;
min-height: 52px;
margin: 0 0 4px 10px;
}

html.landscape .pt-tab {
min-height: 48px;
padding: 3px 4px;
}

html.landscape .paytable-panel > .sheet-close {
grid-column: 2;
grid-row: 1;
width: auto;
min-height: 48px;
margin: 3px 10px 4px 0;
font-size: 0.95rem;
letter-spacing: 0.03em;
justify-self: stretch;
}

html.landscape .paytable-panel > .pt-track {
grid-column: 1 / -1;
grid-row: 2;
height: 100%;
}

html.landscape .pt-bet { padding-block: 2px; }
html.landscape .pt-bets + .pt-heading { margin-block: 8px 4px; }

html.landscape .pt-pays .pt-row:not(.pt-head) {
min-height: 42px;
padding-block: 4px;
}


html.landscape .toast {
top: calc(var(--safe-top) + 8px);
max-width: 600px;
}

html.landscape .install-hint {
max-width: 560px;
max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px);
}

/* Source: css/landscape-chart.css */

html.landscape .wheel {
padding: calc(var(--safe-top) + 8px) calc(var(--safe-right) + 10px) calc(var(--safe-bottom) + 6px) calc(var(--safe-left) + 10px);
}

html.landscape .wheel-panel {
--room: calc(100vw - var(--safe-left) - var(--safe-right) - 20px);
--tall: calc(100vh - var(--safe-top) - var(--safe-bottom) - 14px);
--ladder: clamp(118px, 15vw, 150px);
--stage: min(420px, var(--tall), calc(var(--room) - var(--ladder) - 28px - 196px));
--side: min(300px, calc(var(--room) - var(--ladder) - 28px - var(--stage)));
display: grid;
grid-template-columns: var(--ladder) var(--stage) var(--side);
grid-template-rows: auto minmax(0, 1fr) auto auto;
justify-content: center;
column-gap: 14px;
row-gap: 4px;
width: 100%;
max-width: none;
height: 100%;
transition: grid-template-columns 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.landscape .wheel.cosmic .wheel-panel {
grid-template-columns: 0px var(--stage) min(380px, calc(var(--room) - 28px - var(--stage)));
}

html.landscape .wheel-head,
html.landscape .wheel-ladder {
display: contents;
}

html.landscape .wheel-panel > .wheel-stage,
html.landscape .wheel.cashback .wheel-panel > .wheel-stage {
--stage: inherit;
grid-column: 2;
grid-row: 1 / -1;
align-self: center;
margin: 0;
}

html.landscape .wheel-panel > .wheel-sign {
grid-column: 3;
grid-row: 1;
justify-self: center;
margin: 44px 0 14px;
}

html.landscape .wheel-title {
font-size: 1.5rem;
}

html.landscape .wheel-streak,
html.landscape .wheel-offer-note {
grid-column: 3;
grid-row: 3;
align-self: end;
font-size: 0.8rem;
}

html.landscape .wheel.cosmic .wheel-offer-note {
grid-row: 2;
align-self: center;
}

html.landscape .wheel-receipt {
grid-column: 3;
grid-row: 2 / span 2;
align-self: center;
}

html.landscape .wheel:not(.cosmic) .wheel-receipt { display: none; }

html.landscape .wheel-panel > .wheel-foot {
grid-column: 3;
grid-row: 4;
align-items: end;
}

html.landscape .wheel .screen-close {
top: 6px;
right: max(16px, var(--safe-right));
}

html.landscape .wheel-offer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
max-width: none;
gap: 14px;
}

html.landscape .wheel-result {
gap: 6px;
}

html.landscape .wheel-keys,
html.landscape .wheel-skip,
html.landscape .wheel-continue,
html.landscape .wheel-unlock {
min-height: 48px;
}

html.landscape .wheel.cashback .wheel-prize {
min-height: 56px;
}



html.landscape .wheel-bonus {
position: relative;
z-index: 3;
display: flex;
flex-direction: column;
grid-column: 1;
grid-row: 1 / -1;
align-self: center;
justify-self: end;
width: var(--ladder);
padding: 30px 8px 12px;
border: 2px solid var(--neon-pink);
border-radius: 14px;
background: linear-gradient(180deg, rgba(62, 20, 120, 0.94), rgba(22, 6, 52, 0.96));
box-shadow: 0 0 0 1px var(--red-dark), 0 0 14px var(--magenta), inset 0 0 12px rgba(255, 79, 216, 0.3), 0 6px 0 rgba(0, 0, 0, 0.45);
transition: opacity 320ms ease-out;
}

html.landscape .wheel.cosmic .wheel-bonus,
html.landscape .wheel.cosmic .wheel-streak {
opacity: 0;
transition: opacity 220ms ease-in;
}

html.landscape .wheel-bonus-title {
position: absolute;
left: 50%;
top: -14px;
display: block;
padding: 0 10px 2px;
transform: translateX(-50%);
border: 2px solid var(--neon-pink);
border-radius: var(--radius);
background: linear-gradient(180deg, var(--lacquer), var(--red-dark));
box-shadow: 0 0 10px var(--magenta), inset 0 0 6px var(--magenta);
font-family: var(--display);
font-size: 1.1rem;
line-height: 1.25;
letter-spacing: 0.05em;
white-space: nowrap;
color: var(--gold-light);
text-shadow: 0 1px 0 var(--gold-deep), 0 2px 0 #3a1400, 0 0 6px var(--magenta);
}

html.landscape .wheel-bonus-bolt {
position: absolute;
top: -30px;
left: -14px;
display: block;
width: 14px;
height: 42px;
transform: rotate(-24deg);
filter: drop-shadow(0 0 4px var(--magenta)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

html.landscape .wheel-bonus-bolt.flip {
left: auto;
right: -14px;
transform: rotate(24deg) scaleX(-1);
}

html.landscape .wheel-days {
display: flex;
flex-direction: column-reverse;
gap: 6px;
margin: 0;
padding-right: 36px;
}

html.landscape .wheel-day {
flex-direction: row;
justify-content: center;
height: clamp(34px, calc((var(--tall) - 110px) / 5), 50px);
gap: 0;
}

html.landscape .wheel-day::before {
inset: 0;
height: auto;
}

html.landscape .wheel-day-prize {
height: 100%;
}

html.landscape .wheel-day-prize .pearl {
width: 28px;
height: 28px;
font-size: 28px;
}

html.landscape .wheel-day.today::before,
html.landscape .wheel-day.today .wheel-day-prize {
transform: scale(1.06);
}

html.landscape .wheel-day-name {
position: absolute;
right: -36px;
top: 50%;
width: 16px;
transform: translateY(-50%);
font-size: 0.85rem;
text-align: right;
}

html.landscape .wheel-day::after {
content: "";
position: absolute;
right: -18px;
top: 50%;
width: 18px;
height: 2px;
margin-top: -1px;
background: var(--gold-deep);
}

html.landscape .wheel-day.done::after,
html.landscape .wheel-day.today::after {
background: var(--gold);
}

html.landscape .wheel-track {
left: auto;
right: 24px;
top: -3px;
bottom: -3px;
width: 8px;
height: auto;
border-radius: 4px;
}

html.landscape .wheel-track-fill {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: var(--fill, 0%);
border-radius: 4px;
background:
repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 6px),
var(--neon-cyan);
}


html.landscape .wheel-holo {
position: relative;
display: block;
grid-column: 3;
grid-row: 2;
align-self: stretch;
min-height: 0;
transition: opacity 320ms ease-out;
}

html.landscape .wheel.cosmic .wheel-holo {
visibility: hidden;
opacity: 0;
transition: opacity 220ms ease-in, visibility 220ms;
}

html.landscape .wheel-holo-dais {
position: absolute;
left: 50%;
bottom: 0;
width: min(116px, 56%);
aspect-ratio: 120 / 56;
transform: translateX(-50%);
background: url("../art/ui/chart-projector.webp") center / contain no-repeat;
}

html.landscape .wheel-holo-beam {
position: absolute;
left: 50%;
bottom: 18px;
width: min(150px, 74%);
height: calc(100% - 22px);
transform: translateX(-50%);
background: linear-gradient(0deg, rgba(95, 230, 255, 0.55), rgba(95, 230, 255, 0.08) 75%, transparent);
clip-path: polygon(36% 100%, 64% 100%, 100% 0, 0 0);
animation: chart-beam 2.6s ease-in-out infinite alternate;
}

html.landscape .wheel-holo-planets {
position: absolute;
left: 50%;
top: 4%;
display: flex;
justify-content: center;
height: min(76px, 62%);
transform: translateX(-50%);
animation: chart-holo-float 3.4s ease-in-out infinite alternate;
}

html.landscape .wheel-holo-planets .pearl {
width: auto;
height: 100%;
aspect-ratio: 1;
font-size: inherit;
filter: drop-shadow(0 0 10px var(--p-glow));
}

html.landscape .wheel-holo-planets .pearl + .pearl {
margin-left: -16%;
}

html.landscape .wheel-holo-planets::after {
content: "";
position: absolute;
left: -22%;
right: -22%;
top: 38%;
height: 26%;
border: 2px solid rgba(185, 246, 255, 0.75);
border-radius: 50%;
transform: rotate(-12deg);
box-shadow: 0 0 8px var(--neon-cyan);
pointer-events: none;
}

@keyframes chart-holo-float {
from { transform: translate(-50%, 0); }
to { transform: translate(-50%, -6px); }
}

@keyframes chart-beam {
from { opacity: 0.55; }
to { opacity: 1; }
}

body.scene-motion-paused :is(.wheel-holo-beam, .wheel-holo-planets),
body:has(> .sheet.open, > .pay.open) :is(.wheel-holo-beam, .wheel-holo-planets) {
animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
html.landscape .wheel-holo-beam,
html.landscape .wheel-holo-planets {
animation: none;
}
html.landscape .wheel.wheel :is(.wheel-panel, .wheel-bonus, .wheel-streak, .wheel-holo) {
transition: none;
}
}

/* Source: css/landscape-studio-grids.css */
html.landscape #app .studio-sign.has-extra .studio-hint { grid-row: 2 / span 2; }
html.landscape #app .studio-sign.has-extra .studio-board { grid-row: 6 / span 2; }
html.landscape #app .studio-sign > .studio-extra { grid-column: side-r; grid-row: 4 / span 2; justify-self: stretch; align-self: center; }
html.landscape #app .studio-sign.multi > :not(.studio-scene) { display: none; }

html.landscape #app.studio.studio-multi {
--fg-gap: 6px;
--fg-head: 15px;
--fg-ladder: 168px;
--fg-sw: calc(100vw - var(--ls-l) - var(--ls-r));
--fg-x0: calc(var(--fg-ladder) + var(--fg-gap));
--fg-tile-w: calc((var(--fg-sw) - var(--fg-x0) - var(--fg-gap)) / 2);
--cell: calc((var(--fg-tile-w) - 18px) / 5);
--studio-cell-height: min(var(--cell), calc((var(--ls-stage-h) - var(--fg-head) - 10px) / 3));
--fg-tile-h: calc(var(--fg-head) + 3 * var(--studio-cell-height) + 10px);
--fg-top: calc((var(--ls-stage-h) - var(--fg-tile-h)) / 2);
}
html.landscape #app.studio.studio-multi:is([data-grids="3"], [data-grids="4"]) {
--studio-cell-height: calc((var(--ls-stage-h) - var(--fg-gap) - 2 * (var(--fg-head) + 10px) - 4px) / 6);
--fg-top: 2px;
}
html.landscape #app.studio.studio-multi > .studio-field {
display: block;
position: relative;
z-index: 2;
grid-area: stage;
pointer-events: none;
}
.studio-field .studio-tile[hidden] { display: none; }
.studio-field .studio-tile {
position: absolute;
left: calc(var(--fg-x0) + var(--col) * (var(--fg-tile-w) + var(--fg-gap)));
top: calc(var(--fg-top) + var(--row) * (var(--fg-tile-h) + var(--fg-gap)));
width: var(--fg-tile-w);
height: var(--fg-tile-h);
}
.studio-field .studio-tile-head { height: var(--fg-head); }
html.landscape #app.studio.studio-multi .grid {
gap: 2px;
padding: 3px;
border-width: 2px;
border-radius: 0 0 6px 6px;
}
html.landscape #app.studio.studio-multi .grid::before { display: none; }
html.landscape #app.studio.studio-multi > .grid {
position: absolute;
grid-area: stage;
left: var(--fg-x0);
top: calc(var(--fg-top) + var(--fg-head));
width: var(--fg-tile-w);
margin: 0;
align-self: auto;
justify-self: auto;
}
html.landscape #app.studio.studio-multi .studio-mini { position: relative; width: 100%; }
html.landscape #app.studio.studio-multi .wild-tag { display: none; }
html.landscape #app.studio.studio-multi .studio-ladder {
position: absolute;
left: 0;
top: 0;
width: var(--fg-ladder);
max-height: 100%;
}
html.landscape #app.studio.studio-multi .studio-ladder-dock { pointer-events: auto; }

/* Source: css/astrals.css */

:root {
--astral-top: #63f0ff;
--astral-mid: #7a4dff;
--astral-base: #c03cff;
--astral-deep: #2a0d63;
--astral-glow: rgba(140, 230, 255, 0.6);
}

.astral-mark {
display: inline-block;
flex: none;
width: 1.4em;
height: 1.4em;
background: url("../art/drawn/astral.svg") center / contain no-repeat;
}

.astral-key {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
min-width: 76px;
min-height: 44px;
padding: 4px 10px 4px 6px;
border: 2px solid #d8f8ff;
border-radius: var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06) 46%, transparent 52%),
linear-gradient(180deg, var(--astral-top), var(--astral-mid) 52%, var(--astral-base));
box-shadow: 0 0 0 1px var(--astral-deep), 0 3px 0 var(--astral-deep);
color: #fff;
font-family: var(--display);
font-size: var(--type-key);
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 var(--astral-deep), 0 0 3px var(--astral-deep);
transition: transform 80ms ease;
}

.astral-key .astral-mark {
width: 26px;
height: 26px;
margin: -6px 0;
}

.astral-key:active {
transform: scale(0.96);
}

.astral-key.short {
filter: saturate(0.55) brightness(0.8);
}

.astral-key:disabled {
opacity: 0.45;
}

.astral-key[hidden] {
display: none;
}


.astral-chip {
position: relative;
display: inline-flex;
flex: none;
align-items: center;
gap: 4px;
height: 44px;
padding: 0 4px 0 2px;
border: 0;
background: none;
color: var(--text);
font-family: var(--display);
font-size: var(--type-readout);
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.astral-chip::before {
content: "";
position: absolute;
inset: 6px 0 6px 12px;
z-index: -1;
border: 1.5px solid var(--gold-dark);
border-radius: var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
linear-gradient(180deg, #000, #1a0b30);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 0 1px #12051f;
}

.astral-chip {
isolation: isolate;
}

.astral-chip .astral-mark {
width: 32px;
height: 32px;
}

.astral-chip-amount {
min-width: 2ch;
text-shadow: 0 1px 0 #000;
}

.astral-chip-plus {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: 1.5px solid var(--gold);
border-radius: 50%;
background: linear-gradient(180deg, #4cf07d, #15a443 55%, #07662a);
box-shadow: 0 0 0 1px var(--gold-deep);
color: #fff;
font-size: 1rem;
line-height: 1;
text-shadow: 0 1px 0 #054018;
}

.astral-chip.landed {
animation: astral-landed 600ms ease-out;
}

@keyframes astral-landed {
0% { transform: scale(1); }
35% { transform: scale(1.12); filter: drop-shadow(0 0 8px var(--astral-glow)); }
100% { transform: scale(1); }
}

html.landscape .lobby-topbar .credits {
margin: 0 0 0 auto;
}

#pearl-sheet .pearl-astrals {
position: absolute;
top: calc(var(--safe-top) + 62px);
right: calc(var(--safe-right) + 12px);
z-index: 3;
}


.astral-store,
.astral-ask {
z-index: 47;
}

.astral-ask {
z-index: 46;
}

.astral-ask.open {
background: rgba(8, 0, 20, 0.88);
}

.astral-store-panel,
.astral-ask-panel {
align-items: center;
gap: 8px;
}

.astral-store-panel {
max-width: 372px;
padding: 30px 12px 14px;
}

#astral-store.open {
background: color-mix(in srgb, var(--bg-deep) 86%, transparent);
}

.astral-close {
position: absolute;
top: -14px;
right: -14px;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
padding: 0;
border: 2px solid var(--gold);
border-radius: 50%;
background: linear-gradient(180deg, var(--lacquer-light), var(--violet) 55%, var(--violet-deep));
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.5);
}

.astral-close svg {
width: 20px;
height: 20px;
fill: none;
stroke: #fff;
stroke-width: 3;
stroke-linecap: round;
}

.astral-held {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text);
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 0 #000;
}

.astral-held .astral-mark {
width: 30px;
height: 30px;
}

.astral-packs {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px 8px;
width: 100%;
}

.astral-pack {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
min-width: 0;
}

.astral-pack.claimed-now {
animation: astral-landed 600ms ease-out;
}

.astral-pack-art {
position: relative;
display: block;
width: 80px;
height: 80px;
overflow: hidden;
}

.astral-pack-art img,
.astral-hero img {
position: absolute;
width: 300%;
height: 200%;
max-width: none;
}

.astral-pack-tag {
position: absolute;
top: 9px;
left: 50%;
transform: translateX(-50%);
padding: 1px 6px;
border: 1px solid var(--neon-pink);
border-radius: 4px;
background: var(--red-dark);
color: var(--text);
font-family: var(--display);
font-size: var(--type-label);
letter-spacing: 0.06em;
white-space: nowrap;
text-shadow: 0 1px 0 #000;
}

.astral-pack-amount {
font-family: var(--display);
font-size: 1.2rem;
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1px 0 #2a1200) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

.astral-pack-points {
color: var(--text);
font-family: var(--display);
font-size: 12px;
letter-spacing: 0.035em;
line-height: 1.1;
}

.astral-pack-buy {
min-width: 76px;
min-height: 44px;
margin-top: 2px;
padding: 4px 8px;
border: 2px solid var(--gold-light);
border-radius: var(--radius);
background: var(--gold-bevel);
box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
color: var(--gold-deep);
font-family: var(--display);
font-size: var(--type-key);
letter-spacing: 0.04em;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.astral-pack-buy:active {
transform: scale(0.96);
}

#astral-store .astral-pack-buy {
color: var(--gold-ink);
text-shadow: none;
}

.astral-pack-buy[hidden] {
display: none;
}

.astral-ask-panel {
max-width: 300px;
padding: 30px 16px 12px;
}

.astral-ask-hero {
display: flex;
align-items: center;
justify-content: center;
width: 96px;
height: 96px;
}

.astral-ask-hero .pearl.astral-ask-planet {
width: 92px;
height: 92px;
font-size: 92px;
}

.astral-ask-hero .astral-ask-spark {
width: 76px;
height: 76px;
filter: drop-shadow(0 0 10px rgba(255, 79, 216, 0.7));
}

.astral-ask-name {
color: var(--text);
font-family: var(--display);
font-size: var(--type-readout);
letter-spacing: 0.05em;
text-align: center;
text-shadow: 0 1px 0 #000;
}

.astral-ask-held {
font-size: 1rem;
}

.astral-ask-balance-label {
color: var(--muted);
font-size: 0.8125rem;
}

.astral-ask-held .astral-mark {
width: 24px;
height: 24px;
}

.astral-ask-go,
.astral-ask-get {
min-width: 150px;
}

.astral-ask-spend { margin-right: 3px; }

.astral-ask-decline {
min-height: 44px;
padding: 0 14px;
border: 0;
background: none;
box-shadow: none;
color: var(--muted);
font-family: var(--display);
font-size: var(--type-key);
letter-spacing: 0.06em;
}


.purchase-hero .astral-hero {
position: relative;
display: block;
width: 120px;
height: 120px;
overflow: hidden;
filter: drop-shadow(0 0 14px var(--astral-glow));
}

.spire-up-prize.astrals .astral-mark.spire-up-mark {
width: 34px;
height: 34px;
}


.wheel-respin-cost {
position: absolute;
left: 50%;
top: calc(50% + 13% - 4px);
z-index: 4;
display: none;
align-items: center;
gap: 2px;
padding: 1px 6px 1px 2px;
border: 1px solid #d8f8ff;
border-radius: 6px;
background: linear-gradient(180deg, var(--astral-mid), var(--astral-deep));
box-shadow: 0 0 0 1px var(--astral-deep);
color: #fff;
font-family: var(--display);
font-size: var(--type-readout);
letter-spacing: 0.04em;
line-height: 1;
transform: translateX(-50%);
pointer-events: none;
text-shadow: 0 1px 0 var(--astral-deep);
}

.wheel-respin-cost .astral-mark {
width: 22px;
height: 22px;
}

.wheel.respin .wheel-respin-cost {
display: inline-flex;
}

.wheel-astrals {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
white-space: nowrap;
}

.wheel-respins {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 8px;
border: 1px solid var(--gold-deep);
border-radius: 6px;
background: var(--plate-fill);
font-family: var(--display);
letter-spacing: 0.05em;
line-height: 1;
}

.wheel-respins-label {
color: var(--text);
font-size: var(--type-label);
text-shadow: 0 1px 0 #000;
}

.wheel-respins-count {
color: var(--gold-light);
font-size: var(--type-readout);
font-variant-numeric: tabular-nums;
}

.wheel.spinning .wheel-astrals,
.wheel.boosting .wheel-astrals {
display: none;
}

.wheel.cosmic .wheel-astrals {
visibility: hidden;
}

.chart-reward-keys {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 18px;
width: 100%;
}

.chart-reward.respin-offer .chart-reward-keys .pearl-collect {
width: min(200px, 46%);
}

.chart-reward-respin {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
opacity: 0;
transition: opacity 240ms ease;
}

.chart-reward-respin[hidden] {
display: none;
}

.chart-reward.ready .chart-reward-respin {
opacity: 1;
}

.chart-reward-respin-label {
color: var(--text);
font-family: var(--display);
font-size: var(--type-label);
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.chart-reward-respin-key {
min-width: 150px;
}


.rush-fast .rush-booster-mark .astral-mark {
width: 32px;
height: 32px;
}

.rush-fast[hidden] {
display: none;
}


.astral-trade {
display: flex;
flex-direction: column;
gap: 6px;
padding: 8px 0;
border-bottom: 1px solid var(--hairline);
}

.astral-trade-name {
color: var(--text);
font-family: var(--display);
font-size: var(--type-readout);
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000;
}

.astral-trade-keys {
display: flex;
gap: 8px;
}

.astral-trade-key {
flex: 1 1 0;
min-width: 0;
gap: 2px;
padding: 2px 6px 2px 2px;
}

.astral-trade-key .pearl.astral-trade-planet {
width: 30px;
height: 30px;
font-size: 30px;
flex: none;
}

.astral-trade-key .astral-mark {
width: 20px;
height: 20px;
margin: 0;
}


html.landscape .astral-store-panel {
max-width: 640px;
}

html.landscape .astral-packs {
grid-template-columns: repeat(6, minmax(0, 1fr));
}

html.landscape .astral-ask-panel {
max-width: 300px;
gap: 6px;
}

html.landscape .astral-ask-hero {
width: 76px;
height: 76px;
}

html.landscape .astral-ask-hero .pearl.astral-ask-planet {
width: 72px;
height: 72px;
font-size: 72px;
}

html.landscape #pearl-sheet.destination-screen .pearl-contents > .astral-trade {
grid-column: 2;
grid-row: 5;
padding: 4px 0 6px;
}

html.landscape #pearl-sheet.destination-screen .pearl-odds-button { grid-row: 6; }
html.landscape #pearl-sheet.destination-screen .pearl-odds { grid-row: 7; }

html.landscape #pearl-sheet .pearl-astrals {
top: 10px;
right: calc(var(--safe-right) + 66px);
}

@media (max-width: 740px) {
html.landscape .astral-trade-key {
display: inline-grid;
grid-template-columns: auto auto;
align-content: center;
justify-items: center;
padding: 2px;
}

html.landscape .astral-trade-key .pearl.astral-trade-planet {
grid-column: 1 / -1;
width: 20px;
height: 20px;
font-size: 20px;
}

html.landscape .astral-trade-key .astral-mark {
width: 14px;
height: 14px;
}
}

@media (prefers-reduced-motion: reduce) {
.astral-chip.landed,
.astral-pack.claimed-now {
animation: none;
}

.chart-reward-respin {
transition: none;
}
}

/* Source: css/loading.css */

.loading-screen {
--loading-top: #23083f;
--loading-mid: #180629;
--loading-base: #090317;
--loading-glow: rgba(187, 36, 218, 0.5);
--loading-floor: #10051e;
--loading-shade: rgba(9, 3, 23, 0.92);
--loading-dim: rgba(9, 3, 23, 0.55);
--loading-veil: rgba(9, 3, 23, 0.35);
--loading-halo: rgba(255, 212, 90, 0.5);
--loading-bar-rim: var(--gold-dark);
--loading-bar-deep: var(--magenta);
--loading-bar-pink: var(--neon-pink);
--loading-bar-warm: var(--amber);
--loading-bar-gold: var(--gold);
position: fixed;
inset: 0;
z-index: 2000;
display: none;
overflow: hidden;
background:
radial-gradient(70% 45% at 50% 30%, var(--loading-glow), transparent 70%),
radial-gradient(120% 60% at 50% 100%, var(--loading-floor), transparent 70%),
linear-gradient(180deg, var(--loading-top), var(--loading-mid) 40%, var(--loading-base));
background-color: var(--loading-base);
touch-action: none;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}

.loading-screen.show {
display: block;
}

body.loading-cover .lobby.enter,
body.loading-cover .lobby.enter .game-list > .game-card,
body.loading-cover .lobby.enter .lobby-sign-title,
body.loading-cover .lobby.enter .lobby-tiles .tile,
body.loading-cover .lobby.enter .lobby-bonus .tile,
body.loading-cover .wheel.open,
body.loading-cover .wheel.open .wheel-panel,
body.loading-cover .sheet.destination-screen.open > .sheet-panel {
animation-play-state: paused !important;
}

.loading-scene {
position: absolute;
inset: 0;
z-index: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 30%;
opacity: 0;
transform: scale(1.04);
transition: opacity 320ms ease-out, transform 1200ms ease-out;
}

.loading-scene.lit {
opacity: 1;
transform: none;
}

.loading-screen::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(180deg, transparent 52%, var(--loading-shade) 88%);
pointer-events: none;
}

.loading-screen[data-kind="page"]::after {
background:
radial-gradient(60% 40% at 50% 44%, var(--loading-dim), transparent 75%),
linear-gradient(180deg, var(--loading-veil), transparent 30%, transparent 55%, var(--loading-shade) 90%);
}

.loading-brand,
.loading-card,
.loading-foot {
position: absolute;
z-index: 2;
left: 16px;
right: 16px;
}

.loading-brand {
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
}

.loading-tile {
display: block;
width: 152px;
height: 152px;
border: 4px solid var(--gold);
border-radius: 34px;
box-shadow: 0 0 0 2px var(--gold-deep), 0 10px 28px rgba(0, 0, 0, 0.6);
}

.loading-name,
.loading-title {
background-image: var(--gold-bevel);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 1.5px 0 var(--gold-deep)) drop-shadow(0 3px 1.5px rgba(0, 0, 0, 0.7));
}

.loading-name {
white-space: nowrap;
font-family: var(--title);
font-size: 23px;
line-height: 1.2;
letter-spacing: 0.025em;
word-spacing: 0.12em;
}

.loading-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
text-align: center;
}

.loading-card[hidden] {
display: none;
}

.loading-card.enter {
animation: loading-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) 80ms backwards;
}

.loading-screen[data-kind="machine"] .loading-card {
bottom: calc(var(--safe-bottom) + 107px);
}

.loading-screen[data-kind="page"] .loading-card {
top: calc(var(--safe-top) + 30%);
gap: 16px;
}

.loading-hero {
display: block;
width: 128px;
height: 128px;
object-fit: contain;
filter: drop-shadow(0 0 22px var(--loading-halo)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.loading-pose {
display: block;
width: 128px;
height: 128px;
filter: drop-shadow(0 0 22px var(--loading-halo)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}
.loading-card > .loading-pose::before { animation-delay: 0s; }
.loading-card:has(> .loading-pose:not([hidden])) > .loading-hero { display: none; }

.loading-brand[hidden],
.loading-hero[hidden],
.loading-pose[hidden],
.loading-note[hidden] {
display: none;
}

.loading-title {
max-width: 100%;
text-wrap: balance;
font-family: var(--display);
font-size: 2.4rem;
line-height: 1;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 4px 6px 0;
}

.loading-screen[data-kind="page"] .loading-title {
filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 3px #000) drop-shadow(0 0 5px var(--bg-deep));
}

.loading-note {
max-width: 320px;
color: var(--text);
font-family: var(--body);
font-size: 0.85rem;
font-weight: 500;
line-height: 1.35;
}

.loading-foot {
bottom: calc(var(--safe-bottom) + 44px);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.loading-track {
position: relative;
width: min(246px, 100%);
height: 13px;
padding: 1.5px;
border-radius: 999px;
background: var(--loading-bar-rim);
box-shadow: 0 0 0 1px var(--gold-deep), 0 2px 5px rgba(0, 0, 0, 0.55);
}

.loading-fill {
position: relative;
display: block;
width: 100%;
height: 100%;
border-radius: 999px;
overflow: hidden;
background: var(--loading-bar-deep);
}

.loading-fill::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 200%;
background: linear-gradient(90deg,
var(--loading-bar-deep) 0%, var(--loading-bar-pink) 7%, var(--loading-bar-warm) 16%,
var(--loading-bar-gold) 25%, var(--loading-bar-warm) 34%, var(--loading-bar-pink) 43%,
var(--loading-bar-deep) 50%, var(--loading-bar-pink) 57%, var(--loading-bar-warm) 66%,
var(--loading-bar-gold) 75%, var(--loading-bar-warm) 84%, var(--loading-bar-pink) 93%,
var(--loading-bar-deep) 100%);
transform: translateX(-50%);
animation: loading-flow 2s linear infinite;
}

.loading-fill::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 22%, rgba(255, 255, 255, 0) 40%,
rgba(0, 0, 0, 0.16) 72%, rgba(255, 255, 255, 0.14) 100%);
}

.loading-status {
color: var(--text);
font-family: var(--display);
font-size: 15px;
line-height: 1;
letter-spacing: 0.08em;
text-shadow: 0 1px 0 #000;
white-space: nowrap;
}

@keyframes loading-flow {
from { transform: translateX(-50%); }
to { transform: translateX(0); }
}

@keyframes loading-card-in {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: none; }
}

@media (max-height: 720px) {
.loading-screen[data-kind="page"] .loading-card { top: calc(var(--safe-top) + 24%); }
}

@media (orientation: landscape) and (max-height: 500px) {
.loading-screen[data-kind="page"] .loading-card { top: calc(var(--safe-top) + 12%); gap: 8px; }
.loading-hero, .loading-pose { width: 88px; height: 88px; }
.loading-foot { bottom: calc(var(--safe-bottom) + 20px); }
.loading-screen[data-kind="machine"] .loading-card { bottom: calc(var(--safe-bottom) + 83px); }
}

.curtain {
--velvet: #7a0a2c;
--curtain-light: rgba(255, 236, 170, 0.95);
position: fixed;
inset: 0;
z-index: 1990;
display: none;
overflow: hidden;
pointer-events: none;
}

.curtain.open {
display: block;
}

.curtain-panel,
.curtain-valance,
.curtain-seam,
.curtain-flash,
.curtain-sparks {
position: absolute;
}

.curtain-panel {
top: 0;
bottom: 0;
width: 51%;
background-color: var(--velvet);
box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
will-change: transform;
animation: 950ms cubic-bezier(0.65, 0, 0.25, 1) 220ms both;
}

.curtain-panel::before {
content: "";
position: absolute;
inset: 0;
background: url(../art/curtain/drape.webp) right bottom / cover no-repeat;
}

.curtain-left {
left: 0;
transform-origin: left center;
animation-name: curtain-left;
}

.curtain-right {
right: 0;
transform-origin: right center;
animation-name: curtain-right;
}

.curtain-right::before { transform: scaleX(-1); }

.curtain-valance {
z-index: 2;
top: 0;
left: 0;
right: 0;
height: calc(var(--safe-top) + min(26vw, 38vh));
background: url(../art/curtain/valance.webp) center top / 100% 100% no-repeat;
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
animation: curtain-rise 450ms cubic-bezier(0.4, 0, 0.8, 0.5) 650ms both;
}

.curtain-star {
position: absolute;
left: 50%;
top: calc(16% - 22px);
z-index: 1;
width: 44px;
margin-left: -22px;
color: var(--gold);
font-family: var(--display);
font-size: 40px;
line-height: 44px;
text-align: center;
text-shadow: 0 0 12px var(--curtain-light), 0 2px 0 var(--gold-deep);
animation: curtain-star 900ms ease-out 120ms both;
}

.curtain-seam {
z-index: 1;
top: 0;
bottom: 0;
left: 50%;
width: 6px;
margin-left: -3px;
background: var(--curtain-light);
box-shadow: 0 0 24px 8px var(--curtain-light);
animation: curtain-seam 700ms ease-out both;
}

.curtain-flash {
z-index: 1;
left: 50%;
top: 50%;
width: 160vmax;
height: 160vmax;
margin: -80vmax 0 0 -80vmax;
background: radial-gradient(circle, rgba(255, 246, 214, 0.85) 0, rgba(255, 212, 90, 0.35) 18%, transparent 45%);
animation: curtain-flash 900ms ease-out 160ms both;
}

.curtain-sparks {
z-index: 3;
inset: 0;
}

.curtain-sparks i {
position: absolute;
top: calc(var(--safe-top) + 6%);
left: var(--x);
width: 10px;
height: 10px;
background: var(--gold);
clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
filter: drop-shadow(0 0 4px var(--curtain-light));
animation: curtain-spark 800ms cubic-bezier(0.3, 0.6, 0.6, 1) var(--d) both;
}

.curtain-sparks i:nth-child(1) { --x: 8%; --d: 260ms; --s: 1.2; }
.curtain-sparks i:nth-child(2) { --x: 17%; --d: 420ms; --s: 0.8; }
.curtain-sparks i:nth-child(3) { --x: 26%; --d: 300ms; --s: 1.4; }
.curtain-sparks i:nth-child(4) { --x: 35%; --d: 520ms; --s: 0.9; }
.curtain-sparks i:nth-child(5) { --x: 44%; --d: 240ms; --s: 1.6; }
.curtain-sparks i:nth-child(6) { --x: 50%; --d: 360ms; --s: 1.1; }
.curtain-sparks i:nth-child(7) { --x: 56%; --d: 280ms; --s: 1.5; }
.curtain-sparks i:nth-child(8) { --x: 65%; --d: 480ms; --s: 0.8; }
.curtain-sparks i:nth-child(9) { --x: 74%; --d: 320ms; --s: 1.3; }
.curtain-sparks i:nth-child(10) { --x: 83%; --d: 440ms; --s: 1; }
.curtain-sparks i:nth-child(11) { --x: 91%; --d: 270ms; --s: 1.2; }
.curtain-sparks i:nth-child(12) { --x: 38%; --d: 600ms; --s: 0.7; }

@keyframes curtain-left {
0% { transform: none; }
12% { transform: translateX(1.5%) skewY(-0.6deg); }
70% { transform: scaleX(0.2) skewY(0.8deg); }
100% { transform: translateX(-110%) scaleX(0.16); }
}

@keyframes curtain-right {
0% { transform: none; }
12% { transform: translateX(-1.5%) skewY(0.6deg); }
70% { transform: scaleX(0.2) skewY(-0.8deg); }
100% { transform: translateX(110%) scaleX(0.16); }
}

.curtain[data-reveal="tableau"] {
--tent: 1;
}

@media (orientation: portrait) {
.curtain[data-reveal="tableau"] { --tent: 0.35; }
}

.curtain[data-reveal="tableau"] .curtain-left {
transform-origin: left top;
animation-name: curtain-tableau-left;
}

.curtain[data-reveal="tableau"] .curtain-right {
transform-origin: right top;
animation-name: curtain-tableau-right;
}

.curtain[data-reveal="tableau"] .curtain-seam {
transform-origin: center bottom;
animation-name: curtain-seam-hem;
}

@keyframes curtain-rise {
to { transform: translateY(-140%); }
}

@keyframes curtain-tableau-left {
0% { transform: none; }
14% { transform: skewX(calc(var(--tent) * -7deg)) scaleY(0.99); }
45% { transform: skewX(calc(var(--tent) * -30deg)) scale(0.9, 0.78); }
72% { transform: skewX(calc(var(--tent) * -42deg)) scale(0.62, 0.44) rotate(-3deg); }
100% { transform: translateY(-110%) skewX(calc(var(--tent) * -46deg)) scale(0.4, 0.26) rotate(-6deg); }
}

@keyframes curtain-tableau-right {
0% { transform: none; }
14% { transform: skewX(calc(var(--tent) * 7deg)) scaleY(0.99); }
45% { transform: skewX(calc(var(--tent) * 30deg)) scale(0.9, 0.78); }
72% { transform: skewX(calc(var(--tent) * 42deg)) scale(0.62, 0.44) rotate(3deg); }
100% { transform: translateY(-110%) skewX(calc(var(--tent) * 46deg)) scale(0.4, 0.26) rotate(6deg); }
}

@keyframes curtain-seam-hem {
0% { opacity: 0; transform: scale(0.2, 0.05); }
25% { opacity: 1; transform: scale(1.5, 0.4); }
100% { opacity: 0; transform: scale(24, 1); }
}

@keyframes curtain-star {
0% { transform: scale(0.4) rotate(-90deg); opacity: 0; }
35% { transform: scale(1.5) rotate(10deg); opacity: 1; }
60% { transform: scale(1) rotate(0); }
100% { transform: scale(1.1); opacity: 1; }
}

@keyframes curtain-seam {
0% { opacity: 0; transform: scaleX(0.2); }
25% { opacity: 1; transform: scaleX(1); }
100% { opacity: 0; transform: scaleX(24); }
}

@keyframes curtain-flash {
0% { opacity: 0; transform: scale(0.1); }
30% { opacity: 1; }
100% { opacity: 0; transform: scale(1); }
}

@keyframes curtain-spark {
0% { opacity: 0; transform: translateY(0) scale(0) rotate(0); }
15% { opacity: 1; transform: translateY(4vh) scale(var(--s)) rotate(60deg); }
100% { opacity: 0; transform: translateY(70vh) scale(calc(var(--s) * 0.5)) rotate(320deg); }
}

@media (prefers-reduced-motion: reduce) {
.loading-scene {
transition: none;
}
.loading-fill::before {
animation: none;
}
.loading-scene {
transform: none;
}
.loading-card.enter {
animation: none;
}
.curtain.open {
display: none;
}
}

/* Source: css/curtain-reveals.css */
.curtain[data-reveal="peek"] .curtain-left {
animation: curtain-left-peek 1100ms linear 0ms both;
}

.curtain[data-reveal="peek"] .curtain-right {
animation: curtain-right-peek 1100ms linear 0ms both;
}

.curtain[data-reveal="peek"] .curtain-valance {
animation: curtain-rise 380ms cubic-bezier(0.4, 0, 0.8, 0.5) 720ms both;
}

.curtain[data-reveal="peek"] .curtain-star {
animation: curtain-star 540ms ease-out 560ms both;
}

.curtain[data-reveal="peek"] .curtain-seam {
animation: curtain-seam-peek 980ms ease-out 0ms both;
}

.curtain[data-reveal="peek"] .curtain-flash {
animation: curtain-flash 680ms ease-out 620ms both;
}

.curtain[data-reveal="peek"] .curtain-sparks i {
animation: curtain-spark 560ms cubic-bezier(0.3, 0.6, 0.6, 1) calc(520ms + var(--d) * 0.5) both;
}

@keyframes curtain-left-peek {
0% { transform: none; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
22.5% { transform: scaleX(0.92); animation-timing-function: linear; }
60% { transform: scaleX(0.92); animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1); }
85% { transform: translateX(-18%) scaleX(0.2) skewY(0.8deg); animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
100% { transform: translateX(-110%) scaleX(0.16); }
}

@keyframes curtain-right-peek {
0% { transform: none; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
22.5% { transform: scaleX(0.92); animation-timing-function: linear; }
60% { transform: scaleX(0.92); animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1); }
85% { transform: translateX(18%) scaleX(0.2) skewY(-0.8deg); animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
100% { transform: translateX(110%) scaleX(0.16); }
}

@keyframes curtain-seam-peek {
0% { opacity: 0; transform: scaleX(0.2); }
25% { opacity: 1; transform: scaleX(1.4); }
67% { opacity: 1; transform: scaleX(1.8); }
100% { opacity: 0; transform: scaleX(24); }
}

.curtain[data-reveal="rise"] {
--curtain-lift-motion: curtain-lift 820ms cubic-bezier(0.55, 0.05, 0.65, 0.95) 100ms both;
}

.curtain[data-reveal="rise"] .curtain-panel {
animation: var(--curtain-lift-motion);
}

.curtain[data-reveal="rise"] .curtain-seam {
z-index: auto;
inset: 36px 0 -36px;
width: auto;
margin-left: 0;
background: linear-gradient(to bottom, transparent calc(100% - 48px),
var(--curtain-light) calc(100% - 36px), transparent 100%);
box-shadow: none;
animation: var(--curtain-lift-motion), curtain-hem-glow 820ms ease-out 100ms both;
}

.curtain[data-reveal="rise"] .curtain-flash { display: none; }
.curtain[data-reveal="rise"] .curtain-valance {
animation-duration: 400ms;
animation-delay: 920ms;
}

@keyframes curtain-lift {
from { transform: translateY(0); }
to { transform: translateY(-110%); }
}

@keyframes curtain-hem-glow {
0%, 100% { opacity: 0; }
35% { opacity: 1; }
}

.curtain[data-reveal="drop"] .curtain-panel {
transform-origin: center bottom;
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 72px);
mask-image: linear-gradient(to bottom, transparent, #000 72px);
animation: curtain-drop 460ms linear 120ms both;
}

.curtain[data-reveal="drop"] .curtain-seam { display: none; }

.curtain[data-reveal="drop"] .curtain-flash {
animation-delay: 200ms;
animation-duration: 760ms;
}

.curtain[data-reveal="drop"] .curtain-valance {
animation-duration: 380ms;
animation-delay: 780ms;
}

.curtain[data-reveal="drop"] .curtain-sparks i {
animation-delay: calc(140ms + var(--d) * 0.6);
}

@keyframes curtain-drop {
0% { transform: none; animation-timing-function: cubic-bezier(0.3, 0, 0.5, 1); }
17% { transform: translateY(-1.5%); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
85% { transform: translateY(88%) scaleY(1.03); animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); }
100% { transform: translateY(112%) scaleY(0.92); }
}

.curtain[data-reveal^="traveller-"] .curtain-flash { display: none; }

.curtain[data-reveal^="traveller-"] .curtain-valance {
animation-duration: 380ms;
animation-delay: 720ms;
}

.curtain[data-reveal^="traveller-"] .curtain-sparks i {
animation-duration: 600ms;
}

.curtain[data-reveal="traveller-left"] .curtain-left {
z-index: -1;
transform-origin: left center;
animation: curtain-traveller-lead-left 780ms linear 120ms both;
}

.curtain[data-reveal="traveller-left"] .curtain-right {
transform-origin: left center;
animation: curtain-traveller-trail-left 860ms linear 240ms both;
}

.curtain[data-reveal="traveller-left"] .curtain-seam {
inset: 0 -42px 0 42px;
width: auto;
margin-left: 0;
background: linear-gradient(to right,
transparent calc(100% - 62px),
rgba(255, 212, 90, 0.35) calc(100% - 48px),
var(--curtain-light) calc(100% - 42px),
rgba(255, 212, 90, 0.45) calc(100% - 32px),
transparent 100%);
box-shadow: none;
animation:
curtain-traveller-edge-left 860ms linear 240ms both,
curtain-traveller-glow 860ms ease-out 240ms both;
}

.curtain[data-reveal="traveller-right"] .curtain-right {
z-index: -1;
transform-origin: right center;
animation: curtain-traveller-lead-right 780ms linear 120ms both;
}

.curtain[data-reveal="traveller-right"] .curtain-left {
transform-origin: right center;
animation: curtain-traveller-trail-right 860ms linear 240ms both;
}

.curtain[data-reveal="traveller-right"] .curtain-seam {
inset: 0 42px 0 -42px;
width: auto;
margin-left: 0;
background: linear-gradient(to left,
transparent calc(100% - 62px),
rgba(255, 212, 90, 0.35) calc(100% - 48px),
var(--curtain-light) calc(100% - 42px),
rgba(255, 212, 90, 0.45) calc(100% - 32px),
transparent 100%);
box-shadow: none;
animation:
curtain-traveller-edge-right 860ms linear 240ms both,
curtain-traveller-glow 860ms ease-out 240ms both;
}

.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(11) { --d: 260ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(10) { --d: 310ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(9) { --d: 360ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(8) { --d: 410ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(7) { --d: 460ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(6) { --d: 500ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(5) { --d: 540ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(12) { --d: 580ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(4) { --d: 610ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(3) { --d: 660ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(2) { --d: 710ms; }
.curtain[data-reveal="traveller-left"] .curtain-sparks i:nth-child(1) { --d: 760ms; }

.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(1) { --d: 260ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(2) { --d: 310ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(3) { --d: 360ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(4) { --d: 410ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(12) { --d: 440ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(5) { --d: 480ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(6) { --d: 520ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(7) { --d: 560ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(8) { --d: 610ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(9) { --d: 660ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(10) { --d: 710ms; }
.curtain[data-reveal="traveller-right"] .curtain-sparks i:nth-child(11) { --d: 760ms; }

@keyframes curtain-traveller-lead-left {
0% { transform: none; animation-timing-function: cubic-bezier(0.5, 0, 0.35, 1); }
68% { transform: translateX(-6%) scaleX(0.22) skewY(0.8deg); animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); }
100% { transform: translateX(-115%) scaleX(0.16); }
}

@keyframes curtain-traveller-trail-left {
0% { transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.65, 1); }
58% { transform: translateX(-96%) scaleX(0.52) skewY(0.9deg); animation-timing-function: cubic-bezier(0.2, 0.4, 0.5, 1); }
80% { transform: translateX(-100%) scaleX(0.22) skewY(0.5deg); animation-timing-function: cubic-bezier(0.35, 0, 0.8, 1); }
100% { transform: translateX(-150%) scaleX(0.16); }
}

@keyframes curtain-traveller-edge-left {
0% { transform: translateX(0); animation-timing-function: cubic-bezier(0.45, 0, 0.65, 1); }
58% { transform: translateX(-73.44%); animation-timing-function: cubic-bezier(0.2, 0.4, 0.5, 1); }
80% { transform: translateX(-90.78%); animation-timing-function: cubic-bezier(0.35, 0, 0.8, 1); }
100% { transform: translateX(-119.34%); }
}

@keyframes curtain-traveller-lead-right {
0% { transform: none; animation-timing-function: cubic-bezier(0.5, 0, 0.35, 1); }
68% { transform: translateX(6%) scaleX(0.22) skewY(-0.8deg); animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); }
100% { transform: translateX(115%) scaleX(0.16); }
}

@keyframes curtain-traveller-trail-right {
0% { transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.65, 1); }
58% { transform: translateX(96%) scaleX(0.52) skewY(-0.9deg); animation-timing-function: cubic-bezier(0.2, 0.4, 0.5, 1); }
80% { transform: translateX(100%) scaleX(0.22) skewY(-0.5deg); animation-timing-function: cubic-bezier(0.35, 0, 0.8, 1); }
100% { transform: translateX(150%) scaleX(0.16); }
}

@keyframes curtain-traveller-edge-right {
0% { transform: translateX(0); animation-timing-function: cubic-bezier(0.45, 0, 0.65, 1); }
58% { transform: translateX(73.44%); animation-timing-function: cubic-bezier(0.2, 0.4, 0.5, 1); }
80% { transform: translateX(90.78%); animation-timing-function: cubic-bezier(0.35, 0, 0.8, 1); }
100% { transform: translateX(119.34%); }
}

@keyframes curtain-traveller-glow {
0% { opacity: 0; }
14% { opacity: 1; }
78% { opacity: 0.9; }
100% { opacity: 0; }
}

/* Source: css/curtain-flourish.css */
.curtain-glints {
position: absolute;
inset: 0;
z-index: 3;
}

.curtain-glints i {
position: absolute;
left: var(--x, 50%);
top: var(--y, 50%);
width: 12px;
height: 12px;
margin: -6px 0 0 -6px;
background: var(--gold);
clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
filter: drop-shadow(0 0 4px var(--curtain-light));
opacity: 0;
}

@keyframes curtain-fx-twinkle {
0% { opacity: 0; transform: scale(0) rotate(0); }
40% { opacity: 1; transform: scale(var(--s, 1)) rotate(45deg); }
100% { opacity: 0; transform: scale(calc(var(--s, 1) * 0.2)) rotate(120deg); }
}

/* Source: css/curtain-flourish-draw.css */
.curtain[data-reveal="draw"] {
--fx-draw-star-y: calc((var(--safe-top) + min(26vw, 38vh)) * 0.16);
}

.curtain[data-reveal="draw"] .curtain-glints i {
--x: 50%;
--y: var(--fx-draw-star-y);
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
background: radial-gradient(circle, #fffbe8 0, #fff1c0 22%, var(--gold) 50%, var(--gold-deep) 100%);
animation: curtain-fx-draw-burst var(--t) linear var(--d) both;
}

.curtain[data-reveal="draw"] .curtain-glints i:nth-child(-n + 4) {
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
}

.curtain[data-reveal="draw"] .curtain-glints i:nth-child(1) { --dx: -34vw; --dy: 54vh; --d: 340ms; --t: 900ms; --s: 2.4; --r: -200deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(2) { --dx: 36vw; --dy: 46vh; --d: 360ms; --t: 880ms; --s: 2.6; --r: 220deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(3) { --dx: -12vw; --dy: 76vh; --d: 390ms; --t: 860ms; --s: 2.1; --r: -160deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(4) { --dx: 16vw; --dy: 70vh; --d: 410ms; --t: 840ms; --s: 2.2; --r: 180deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(5) { --dx: -47vw; --dy: 10vh; --d: 350ms; --t: 600ms; --s: 1.3; --r: -260deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(6) { --dx: 47vw; --dy: 14vh; --d: 370ms; --t: 620ms; --s: 1.2; --r: 260deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(7) { --dx: -41vw; --dy: 32vh; --d: 380ms; --t: 580ms; --s: 1; --r: -240deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(8) { --dx: 42vw; --dy: 34vh; --d: 400ms; --t: 640ms; --s: 1.4; --r: 240deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(9) { --dx: -25vw; --dy: 42vh; --d: 420ms; --t: 560ms; --s: 0.9; --r: -220deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(10) { --dx: 27vw; --dy: 60vh; --d: 430ms; --t: 600ms; --s: 1.1; --r: 220deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(11) { --dx: -5vw; --dy: 50vh; --d: 360ms; --t: 620ms; --s: 1.2; --r: -200deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(12) { --dx: 7vw; --dy: 36vh; --d: 450ms; --t: 540ms; --s: 0.8; --r: 200deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(13) { --dx: -31vw; --dy: -3vh; --d: 355ms; --t: 560ms; --s: 1; --r: -280deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(14) { --dx: 31vw; --dy: -5vh; --d: 375ms; --t: 580ms; --s: 0.9; --r: 280deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(15) { --dx: -15vw; --dy: -4vh; --d: 440ms; --t: 520ms; --s: 0.8; --r: -240deg; }
.curtain[data-reveal="draw"] .curtain-glints i:nth-child(16) { --dx: 17vw; --dy: -3vh; --d: 460ms; --t: 520ms; --s: 0.85; --r: 240deg; }

.curtain[data-reveal="draw"]::after {
content: "";
position: absolute;
z-index: 3;
left: 50%;
top: var(--fx-draw-star-y);
width: 48px;
height: 48px;
margin: -24px 0 0 -24px;
border: 3px solid var(--gold);
border-radius: 50%;
background: radial-gradient(circle, transparent 55%, rgba(255, 236, 170, 0.5) 70%, transparent 72%);
opacity: 0;
animation: curtain-fx-draw-ring 520ms cubic-bezier(0.2, 0.7, 0.3, 1) 330ms both;
}

.curtain[data-reveal="draw"] .curtain-panel::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 38%;
background: linear-gradient(90deg, transparent, rgba(255, 226, 150, 0.16) 30%, rgba(255, 240, 196, 0.5) 50%, rgba(255, 226, 150, 0.16) 70%, transparent);
opacity: 0;
animation: 560ms cubic-bezier(0.4, 0, 0.3, 1) 300ms both;
}

.curtain[data-reveal="draw"] .curtain-left::after {
right: 0;
animation-name: curtain-fx-draw-sheen-left;
}

.curtain[data-reveal="draw"] .curtain-right::after {
left: 0;
animation-name: curtain-fx-draw-sheen-right;
}

@keyframes curtain-fx-draw-burst {
0% { opacity: 0; transform: translate(0, 0) scale(0) rotate(0); }
10% { opacity: 1; transform: translate(calc(var(--dx) * 0.26), calc(var(--dy) * 0.26)) scale(var(--s)) rotate(calc(var(--r) * 0.2)); }
28% { opacity: 0.7; transform: translate(calc(var(--dx) * 0.56), calc(var(--dy) * 0.56)) scale(calc(var(--s) * 0.6)) rotate(calc(var(--r) * 0.45)); }
48% { opacity: 1; transform: translate(calc(var(--dx) * 0.78), calc(var(--dy) * 0.78)) scale(var(--s)) rotate(calc(var(--r) * 0.65)); }
72% { opacity: 0.75; transform: translate(calc(var(--dx) * 0.93), calc(var(--dy) * 0.93)) scale(calc(var(--s) * 0.6)) rotate(calc(var(--r) * 0.85)); }
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(calc(var(--s) * 0.2)) rotate(var(--r)); }
}

@keyframes curtain-fx-draw-ring {
0% { opacity: 0; transform: scale(0.3); }
20% { opacity: 0.9; }
100% { opacity: 0; transform: scale(6); }
}

@keyframes curtain-fx-draw-sheen-left {
0% { opacity: 0; transform: translateX(0) skewX(-14deg); }
25% { opacity: 1; }
80% { opacity: 1; }
100% { opacity: 0; transform: translateX(-164%) skewX(-14deg); }
}

@keyframes curtain-fx-draw-sheen-right {
0% { opacity: 0; transform: translateX(0) skewX(14deg); }
25% { opacity: 1; }
80% { opacity: 1; }
100% { opacity: 0; transform: translateX(164%) skewX(14deg); }
}

/* Source: css/curtain-flourish-tableau.css */
.curtain[data-reveal="tableau"] {
--fan: calc(0.6 + 0.4 * var(--tent));
--fizz-y: calc(100% - var(--safe-bottom) - 7%);
}

.curtain[data-reveal="tableau"] .curtain-glints i,
.curtain[data-reveal="tableau"] .curtain-sparks i {
--dx: calc(var(--fx) * var(--fan) * 1vw);
--ry: calc(var(--rise) * -1);
}

.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(-n + 10) {
--y: var(--fizz-y);
width: 18px;
height: 18px;
margin: -9px 0 0 -9px;
clip-path: none;
border-radius: 50%;
background:
radial-gradient(circle at 34% 30%, rgba(255, 252, 230, 0.95) 0 13%, transparent 19%),
radial-gradient(circle, rgba(255, 214, 110, 0.2) 0 48%, var(--gold) 58% 72%, transparent 78%);
animation: curtain-fx-tableau-rise 620ms linear var(--d) both;
}

.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(3n + 2):nth-child(-n + 10) {
background:
radial-gradient(circle at 34% 30%, #fff8dc 0 12%, transparent 18%),
radial-gradient(circle, var(--gold) 0 40%, var(--gold-deep) 66%, transparent 72%);
}

.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(n + 11) {
--y: var(--fizz-y);
animation: curtain-fx-tableau-pop 300ms ease-out calc(var(--d) + 550ms) both;
}

.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 1) { --x: 49%; --fx: -3; --rise: 66vh; --w: 5px; --d: 380ms; --s: 2.4; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 2) { --x: 52%; --fx: 17; --rise: 58vh; --w: -6px; --d: 420ms; --s: 1.9; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 3) { --x: 47%; --fx: -21; --rise: 54vh; --w: 6px; --d: 450ms; --s: 1.6; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 4) { --x: 51%; --fx: 9; --rise: 70vh; --w: -5px; --d: 480ms; --s: 2; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 5) { --x: 48%; --fx: -12; --rise: 62vh; --w: -7px; --d: 510ms; --s: 1.3; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10n + 6) { --x: 50%; --fx: 26; --rise: 48vh; --w: 6px; --d: 530ms; --s: 1.5; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(7) { --x: 50%; --fx: -30; --rise: 44vh; --w: 5px; --d: 360ms; --s: 1; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(8) { --x: 49%; --fx: 32; --rise: 40vh; --w: -5px; --d: 600ms; --s: 1.1; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(9) { --x: 51%; --fx: 4; --rise: 52vh; --w: 7px; --d: 640ms; --s: 0.9; }
.curtain[data-reveal="tableau"] .curtain-glints i:nth-child(10) { --x: 50%; --fx: -7; --rise: 46vh; --w: -6px; --d: 680ms; --s: 1.2; }

.curtain[data-reveal="tableau"] .curtain-sparks i {
top: var(--fizz-y);
width: 8px;
height: 8px;
margin: -4px 0 0 -4px;
clip-path: none;
border-radius: 50%;
background: radial-gradient(circle, #fff8dc 0 25%, var(--gold) 45%, transparent 72%);
filter: none;
animation: curtain-fx-tableau-rise 520ms linear var(--d) both;
}

.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(1) { --x: 50%; --fx: -10; --rise: 34vh; --w: 3px; --d: 330ms; --s: 1.2; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(2) { --x: 49%; --fx: 13; --rise: 40vh; --w: -3px; --d: 370ms; --s: 0.9; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(3) { --x: 51%; --fx: -24; --rise: 30vh; --w: 4px; --d: 410ms; --s: 1.4; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(4) { --x: 50%; --fx: 22; --rise: 36vh; --w: -4px; --d: 460ms; --s: 1; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(5) { --x: 48%; --fx: -4; --rise: 50vh; --w: 3px; --d: 500ms; --s: 1.6; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(6) { --x: 52%; --fx: 34; --rise: 28vh; --w: -3px; --d: 540ms; --s: 1.1; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(7) { --x: 50%; --fx: -36; --rise: 26vh; --w: 4px; --d: 580ms; --s: 1.3; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(8) { --x: 49%; --fx: 6; --rise: 44vh; --w: -4px; --d: 620ms; --s: 0.8; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(9) { --x: 51%; --fx: -16; --rise: 42vh; --w: 3px; --d: 660ms; --s: 1.2; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(10) { --x: 50%; --fx: 18; --rise: 46vh; --w: -3px; --d: 700ms; --s: 1; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(11) { --x: 50%; --fx: -28; --rise: 34vh; --w: 4px; --d: 730ms; --s: 0.9; }
.curtain[data-reveal="tableau"] .curtain-sparks i:nth-child(12) { --x: 50%; --fx: 28; --rise: 38vh; --w: -4px; --d: 760ms; --s: 1.1; }

@keyframes curtain-fx-tableau-rise {
0% { opacity: 0; transform: translate(0, 0) scale(calc(var(--s) * 0.3)); }
12% { opacity: 1; transform: translate(calc(var(--dx) * 0.12 + var(--w)), calc(var(--ry) * 0.1)) scale(var(--s)); }
35% { transform: translate(calc(var(--dx) * 0.36 - var(--w)), calc(var(--ry) * 0.36)) scale(var(--s)); }
60% { transform: translate(calc(var(--dx) * 0.63 + var(--w)), calc(var(--ry) * 0.64)) scale(var(--s)); }
82% { opacity: 1; transform: translate(calc(var(--dx) * 0.86 - var(--w) * 0.5), calc(var(--ry) * 0.88)) scale(var(--s)); }
91% { opacity: 0.85; transform: translate(var(--dx), var(--ry)) scale(calc(var(--s) * 1.5)); }
100% { opacity: 0; transform: translate(var(--dx), var(--ry)) scale(calc(var(--s) * 1.9)); }
}

@keyframes curtain-fx-tableau-pop {
0% { opacity: 0; transform: translate(var(--dx), var(--ry)) scale(0) rotate(0); }
35% { opacity: 1; transform: translate(var(--dx), var(--ry)) scale(calc(var(--s) * 1.4)) rotate(45deg); }
100% { opacity: 0; transform: translate(var(--dx), var(--ry)) scale(calc(var(--s) * 0.3)) rotate(110deg); }
}

/* Source: css/curtain-flourish-peek.css */
.curtain[data-reveal="peek"] {
--peek-top: calc(var(--safe-top) + min(26vw, 38vh));
}

.curtain[data-reveal="peek"] .curtain-glints i:nth-child(-n + 14) {
left: calc(50% + var(--ox));
top: calc(var(--peek-top) + (100% - var(--peek-top)) * var(--f));
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
background: none;
clip-path: none;
animation: curtain-fx-peek-blow 1100ms linear 0ms both;
}

.curtain[data-reveal="peek"] .curtain-glints i:nth-child(-n + 14)::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle, #fff8e0 0 16%, var(--gold) 42%);
clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
opacity: 0;
animation: curtain-fx-peek-leak var(--t) ease-out var(--d) both;
}

.curtain[data-reveal="peek"] .curtain-glints i:nth-child(n + 15) {
left: 50%;
top: 50%;
width: 120vmax;
height: 120vmax;
margin: -60vmax 0 0 -60vmax;
background: radial-gradient(circle closest-side, transparent 91%, rgba(255, 212, 90, 0.45) 95%,
var(--curtain-light) 97.5%, rgba(255, 212, 90, 0.45) 99%, transparent 100%);
clip-path: none;
filter: none;
animation: curtain-fx-peek-ring var(--t) cubic-bezier(0.12, 0.75, 0.3, 1) var(--d) both;
}

.curtain[data-reveal="peek"] .curtain-glints i:nth-child(1) { --ox: -1vw; --f: 0.18; --d: 210ms; --t: 380ms; --s: 2.4; --drift: -1.5vmax; --rise: -2vh; --fling: -40vw; --fly: -6vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(2) { --ox: 1.5vw; --f: 0.62; --d: 250ms; --t: 340ms; --s: 1.4; --drift: 6vmax; --rise: -1vh; --fling: 44vw; --fly: 4vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(3) { --ox: 0.4vw; --f: 0.42; --d: 290ms; --t: 400ms; --s: 2.6; --drift: 0.6vmax; --rise: -3vh; --fling: 36vw; --fly: -3vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(4) { --ox: -2vw; --f: 0.78; --d: 320ms; --t: 320ms; --s: 1.3; --drift: -8vmax; --rise: -2vh; --fling: -46vw; --fly: 7vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(5) { --ox: -0.6vw; --f: 0.3; --d: 350ms; --t: 360ms; --s: 1.3; --drift: -3vmax; --rise: -4vh; --fling: -34vw; --fly: -8vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(6) { --ox: 1vw; --f: 0.88; --d: 380ms; --t: 380ms; --s: 1.8; --drift: 1.5vmax; --rise: -1vh; --fling: 40vw; --fly: 6vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(7) { --ox: 2vw; --f: 0.08; --d: 410ms; --t: 300ms; --s: 1.2; --drift: 7vmax; --rise: 1vh; --fling: 48vw; --fly: -5vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(8) { --ox: -1.4vw; --f: 0.52; --d: 430ms; --t: 340ms; --s: 2; --drift: -1vmax; --rise: -2vh; --fling: -38vw; --fly: 2vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(9) { --ox: 0.8vw; --f: 0.7; --d: 460ms; --t: 320ms; --s: 1.4; --drift: 4vmax; --rise: -3vh; --fling: 34vw; --fly: 8vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(10) { --ox: -0.2vw; --f: 0.94; --d: 490ms; --t: 300ms; --s: 1.8; --drift: -5vmax; --rise: -2vh; --fling: -42vw; --fly: 3vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(11) { --ox: 1.2vw; --f: 0.24; --d: 520ms; --t: 280ms; --s: 1.2; --drift: 2.5vmax; --rise: -2vh; --fling: 42vw; --fly: -7vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(12) { --ox: -1vw; --f: 0.66; --d: 545ms; --t: 260ms; --s: 1.1; --drift: -1.2vmax; --rise: -1vh; --fling: -36vw; --fly: 5vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(13) { --ox: 0.3vw; --f: 0.36; --d: 570ms; --t: 250ms; --s: 1.6; --drift: 0.5vmax; --rise: -2vh; --fling: 38vw; --fly: -2vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(14) { --ox: -0.4vw; --f: 0.84; --d: 595ms; --t: 240ms; --s: 1.2; --drift: -2vmax; --rise: -1vh; --fling: -44vw; --fly: -4vh; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(15) { --d: 640ms; --t: 520ms; --s: 1; --o: 1; }
.curtain[data-reveal="peek"] .curtain-glints i:nth-child(16) { --d: 730ms; --t: 460ms; --s: 0.72; --o: 0.6; }

@keyframes curtain-fx-peek-blow {
0% { opacity: 1; transform: translate(0, 0); }
60% { opacity: 1; transform: translate(var(--drift), var(--rise)); animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1); }
82% { opacity: 1; transform: translate(calc(var(--drift) + var(--fling)), calc(var(--rise) + var(--fly))) rotate(140deg); }
100% { opacity: 0; transform: translate(calc(var(--drift) + var(--fling) * 1.15), calc(var(--rise) + var(--fly) * 1.4)) rotate(200deg); }
}

@keyframes curtain-fx-peek-leak {
0% { opacity: 0; transform: scale(0) rotate(0); }
25% { opacity: 1; transform: scale(var(--s)) rotate(45deg); }
45% { opacity: 0.3; transform: scale(calc(var(--s) * 0.4)) rotate(70deg); }
65% { opacity: 1; transform: scale(calc(var(--s) * 1.15)) rotate(100deg); }
100% { opacity: 1; transform: scale(calc(var(--s) * 0.85)) rotate(150deg); }
}

@keyframes curtain-fx-peek-ring {
0% { opacity: 0; transform: scale(0.02); }
8% { opacity: var(--o); }
55% { opacity: calc(var(--o) * 0.7); }
100% { opacity: 0; transform: scale(var(--s)); }
}

/* Source: css/curtain-flourish-rise.css */
.curtain[data-reveal="rise"]::before,
.curtain[data-reveal="rise"]::after {
content: "";
position: absolute;
inset: 20px 0 -20px;
z-index: 1;
will-change: transform;
background:
radial-gradient(circle, #fff 0 2px, var(--gold) 3.4px, transparent 4.6px) 5px calc(100% - 2px) / 37px 40px repeat-x,
radial-gradient(circle, #fff 0 1.5px, var(--gold) 2.8px, transparent 4px) 21px calc(100% - 14px) / 53px 40px repeat-x,
radial-gradient(circle, #fff 0 1.2px, var(--gold) 2.3px, transparent 3.5px) 13px calc(100% + 9px) / 29px 40px repeat-x,
linear-gradient(to bottom, transparent 10%, rgba(255, 196, 60, 0.75) 40%, #fff6d8 50%, rgba(255, 196, 60, 0.75) 60%, transparent 85%) 0 100% / 100% 40px no-repeat;
animation: var(--curtain-lift-motion), curtain-fx-rise-band 820ms linear 100ms both;
}

.curtain[data-reveal="rise"]::after {
background:
radial-gradient(circle, #fff 0 2px, var(--gold) 3.4px, transparent 4.6px) 24px calc(100% - 8px) / 41px 40px repeat-x,
radial-gradient(circle, #fff 0 1.5px, var(--gold) 2.8px, transparent 4px) 2px calc(100% + 5px) / 47px 40px repeat-x,
radial-gradient(circle, #fff 0 1.2px, var(--gold) 2.3px, transparent 3.5px) 9px calc(100% - 18px) / 31px 40px repeat-x;
animation: var(--curtain-lift-motion), curtain-fx-rise-glitter 820ms linear 100ms both;
}

.curtain[data-reveal="rise"] .curtain-glints i,
.curtain[data-reveal="rise"] .curtain-sparks i {
animation: curtain-fx-rise-shed var(--t) linear var(--d) both;
clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
background: radial-gradient(circle, #fff 0 14%, #ffe9a0 26%, var(--gold) 46%, var(--gold-deep) 72%);
}

.curtain[data-reveal="rise"] .curtain-glints i { width: 16px; height: 16px; margin: -8px 0 0 -8px; filter: drop-shadow(0 0 5px var(--gold)); }

.curtain[data-reveal="rise"] .curtain-sparks i { top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px; }

.curtain[data-reveal="rise"] .curtain-glints i:nth-child(-n + 2) {
animation-name: curtain-fx-rise-hero;
--t: 720ms;
filter: drop-shadow(0 0 6px var(--gold));
}
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(1) { --x: 27%; --y: 90.1%; --d: 300ms; --s: 3.2; --r1: -8vh; --r2: -32.7vh; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(2) { --x: 71%; --y: 75.1%; --d: 420ms; --s: 3; --r1: -12.9vh; --r2: -45.3vh; }

.curtain[data-reveal="rise"] .curtain-glints i:nth-child(5),
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(6),
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(10),
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(11),
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(16) {
clip-path: none;
border-radius: 50%;
background: radial-gradient(circle, #fff 0 18%, #ffe9a0 30%, var(--gold) 50%, transparent 72%);
}
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(3) { --x: 16%; --y: 96%; --d: 220ms; --t: 360ms; --s: 2.6; --f: 8; --dx: -0.6vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(4) { --x: 89.4%; --y: 72.2%; --d: 438ms; --t: 422ms; --s: 1.7; --f: 9.2; --dx: 1vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(5) { --x: 70.9%; --y: 48.5%; --d: 556ms; --t: 483ms; --s: 2.6; --f: 10.4; --dx: -1.3vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(6) { --x: 46%; --y: 80.9%; --d: 381ms; --t: 399ms; --s: 1.6; --f: 12; --dx: 0.9vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(7) { --x: 27.4%; --y: 57.1%; --d: 517ms; --t: 461ms; --s: 2.5; --f: 13.3; --dx: -1.3vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(8) { --x: 94.5%; --y: 89.5%; --d: 306ms; --t: 377ms; --s: 1.6; --f: 8.9; --dx: 0.9vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(9) { --x: 76%; --y: 65.8%; --d: 474ms; --t: 438ms; --s: 2.6; --f: 10.1; --dx: -1.3vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(10) { --x: 57.4%; --y: 42%; --d: 584ms; --t: 500ms; --s: 1.7; --f: 11.3; --dx: 1.6vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(11) { --x: 32.6%; --y: 74.4%; --d: 425ms; --t: 416ms; --s: 2.1; --f: 12.9; --dx: -1.3vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(12) { --x: 14%; --y: 50.6%; --d: 547ms; --t: 478ms; --s: 1.6; --f: 8.1; --dx: 1.6vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(13) { --x: 81.1%; --y: 83%; --d: 365ms; --t: 394ms; --s: 2.3; --f: 9.8; --dx: -1.2vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(14) { --x: 62.6%; --y: 59.3%; --d: 507ms; --t: 455ms; --s: 1.6; --f: 11; --dx: 1.6vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(15) { --x: 37.7%; --y: 91.7%; --d: 282ms; --t: 371ms; --s: 2.2; --f: 12.6; --dx: -1.2vw; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(16) { --x: 19.1%; --y: 67.9%; --d: 462ms; --t: 433ms; --s: 2; --f: 13.8; --dx: 1.6vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(1) { --x: 92.6%; --y: 44.2%; --d: 575ms; --t: 494ms; --s: 2.1; --f: 9; --dx: -0.7vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(2) { --x: 67.7%; --y: 76.6%; --d: 411ms; --t: 410ms; --s: 1.8; --f: 10.6; --dx: 1.6vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(3) { --x: 49.1%; --y: 52.8%; --d: 537ms; --t: 472ms; --s: 2.3; --f: 11.8; --dx: -0.7vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(4) { --x: 24.3%; --y: 85.2%; --d: 347ms; --t: 388ms; --s: 1.9; --f: 13.5; --dx: 1.5vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(5) { --x: 5.7%; --y: 61.4%; --d: 496ms; --t: 450ms; --s: 2.2; --f: 8.7; --dx: -0.7vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(6) { --x: 72.8%; --y: 93.8%; --d: 255ms; --t: 366ms; --s: 1.7; --f: 10.3; --dx: 1.5vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(7) { --x: 54.3%; --y: 70.1%; --d: 450ms; --t: 427ms; --s: 2.4; --f: 11.5; --dx: -0.7vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(8) { --x: 35.7%; --y: 46.3%; --d: 566ms; --t: 489ms; --s: 1.8; --f: 12.7; --dx: 1vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(9) { --x: 10.8%; --y: 78.7%; --d: 396ms; --t: 405ms; --s: 2.6; --f: 8.3; --dx: -0.6vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(10) { --x: 84.3%; --y: 55%; --d: 527ms; --t: 466ms; --s: 1.9; --f: 9.5; --dx: 1vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(11) { --x: 59.4%; --y: 87.4%; --d: 327ms; --t: 382ms; --s: 2.5; --f: 11.2; --dx: -0.6vw; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(12) { --x: 40.8%; --y: 63.6%; --d: 485ms; --t: 444ms; --s: 1.7; --f: 12.4; --dx: 1vw; }

@media (orientation: portrait) {
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(4) { --y: 63.9%; --d: 484ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(5) { --y: 31.8%; --d: 628ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(6) { --y: 75.6%; --d: 417ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(7) { --y: 43.4%; --d: 578ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(8) { --y: 87.2%; --d: 329ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(9) { --y: 55.1%; --d: 527ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(10) { --y: 23%; --d: 665ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(11) { --y: 66.8%; --d: 468ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(12) { --y: 34.7%; --d: 615ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(13) { --y: 78.5%; --d: 398ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(14) { --y: 46.4%; --d: 565ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(15) { --y: 90.2%; --d: 299ms; }
.curtain[data-reveal="rise"] .curtain-glints i:nth-child(16) { --y: 58%; --d: 513ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(1) { --y: 25.9%; --d: 653ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(2) { --y: 69.7%; --d: 452ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(3) { --y: 37.6%; --d: 603ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(4) { --y: 81.4%; --d: 377ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(5) { --y: 49.3%; --d: 553ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(6) { --y: 93.1%; --d: 264ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(7) { --y: 61%; --d: 498ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(8) { --y: 28.8%; --d: 640ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(9) { --y: 72.6%; --d: 436ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(10) { --y: 40.5%; --d: 591ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(11) { --y: 84.3%; --d: 354ms; }
.curtain[data-reveal="rise"] .curtain-sparks i:nth-child(12) { --y: 52.2%; --d: 540ms; }
}

@keyframes curtain-fx-rise-shed {
0% { opacity: 0; transform: translate(0, 0) scale(0) rotate(0); }
12% { opacity: 1; transform: translate(calc(var(--dx) * 0.12), calc(var(--f) * 1vmin * 0.02)) scale(calc(var(--s) * 1.15)) rotate(35deg); }
34% { opacity: 0.7; transform: translate(calc(var(--dx) * 0.34), calc(var(--f) * 1vmin * 0.12)) scale(calc(var(--s) * 0.75)) rotate(80deg); }
56% { opacity: 1; transform: translate(calc(var(--dx) * 0.56), calc(var(--f) * 1vmin * 0.32)) scale(var(--s)) rotate(125deg); }
80% { opacity: 0.6; transform: translate(calc(var(--dx) * 0.8), calc(var(--f) * 1vmin * 0.64)) scale(calc(var(--s) * 0.7)) rotate(175deg); }
100% { opacity: 0; transform: translate(var(--dx), calc(var(--f) * 1vmin)) scale(0.2) rotate(220deg); }
}

@keyframes curtain-fx-rise-hero {
0% { opacity: 0; transform: translateY(0) scale(0) rotate(-30deg); }
10% { opacity: 1; transform: translateY(var(--r1)) scale(var(--s)) rotate(10deg); }
30% { opacity: 1; transform: translateY(var(--r2)) scale(calc(var(--s) * 1.1)) rotate(45deg); animation-timing-function: ease-in; }
55% { opacity: 0.75; transform: translateY(calc(var(--r2) + 3vmin)) scale(calc(var(--s) * 0.65)) rotate(100deg); }
75% { opacity: 1; transform: translateY(calc(var(--r2) + 7vmin)) scale(calc(var(--s) * 0.9)) rotate(150deg); animation-timing-function: ease-in; }
100% { opacity: 0; transform: translateY(calc(var(--r2) + 12vmin)) scale(0.2) rotate(210deg); }
}

@keyframes curtain-fx-rise-band {
0% { opacity: 0; }
15% { opacity: 1; }
21% { opacity: 0.65; }
27% { opacity: 1; }
33% { opacity: 0.65; }
39% { opacity: 1; }
45% { opacity: 0.65; }
51% { opacity: 1; }
57% { opacity: 0.65; }
63% { opacity: 1; }
69% { opacity: 0.65; }
75% { opacity: 1; }
81% { opacity: 0.65; }
92% { opacity: 0.4; }
100% { opacity: 0; }
}

@keyframes curtain-fx-rise-glitter {
0% { opacity: 0; }
15% { opacity: 0.15; }
21% { opacity: 1; }
27% { opacity: 0.15; }
33% { opacity: 1; }
39% { opacity: 0.15; }
45% { opacity: 1; }
51% { opacity: 0.15; }
57% { opacity: 1; }
63% { opacity: 0.15; }
69% { opacity: 1; }
75% { opacity: 0.15; }
81% { opacity: 1; }
92% { opacity: 0.4; }
100% { opacity: 0; }
}

/* Source: css/curtain-flourish-drop.css */
.curtain[data-reveal="drop"] {
--rise: 1;
}

.curtain[data-reveal="drop"]::before,
.curtain[data-reveal="drop"]::after {
content: "";
position: absolute;
z-index: 2;
left: -15%;
right: -15%;
bottom: 0;
transform-origin: 50% 100%;
opacity: 0;
}

.curtain[data-reveal="drop"]::before {
height: 42vh;
background: radial-gradient(50% 100% at 50% 100%, rgba(255, 224, 150, 0.85), rgba(240, 190, 80, 0.4) 40%, transparent 75%);
animation: curtain-fx-drop-dust 760ms cubic-bezier(0.2, 0.7, 0.3, 1) 480ms both;
}

.curtain[data-reveal="drop"]::after {
height: 12vh;
background: radial-gradient(50% 100% at 50% 100%, rgba(255, 246, 214, 0.9), rgba(255, 212, 90, 0.32) 50%, transparent 80%);
animation: curtain-fx-drop-sweep 540ms cubic-bezier(0.15, 0.8, 0.3, 1) 480ms both;
}

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(-n + 14),
.curtain[data-reveal="drop"] .curtain-sparks i {
top: 97%;
clip-path: none;
border-radius: 1px;
background: linear-gradient(160deg, #fff6cf, var(--gold) 45%, var(--gold-deep));
}

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(-n + 14) {
width: 9px;
height: 15px;
margin: -7.5px 0 0 -4.5px;
filter: drop-shadow(0 0 2px rgba(255, 236, 170, 0.7));
animation: curtain-fx-drop-fleck 740ms linear var(--d) both;
}

.curtain[data-reveal="drop"] .curtain-sparks i {
width: 6px;
height: 10px;
margin: -5px 0 0 -3px;
filter: none;
--h: calc(20 + var(--s) * 22);
--dx: calc(var(--s) * 9vw);
--r: -300deg;
animation: curtain-fx-drop-fleck 660ms linear calc(530ms + var(--d) * 0.25) both;
}

.curtain[data-reveal="drop"] .curtain-sparks i:nth-child(odd) { --dx: calc(var(--s) * -9vw); --r: 320deg; }

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(3n + 2),
.curtain[data-reveal="drop"] .curtain-sparks i:nth-child(3n + 2) {
background: linear-gradient(160deg, #fffdf3, #f3e2b8);
}

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(3n),
.curtain[data-reveal="drop"] .curtain-sparks i:nth-child(3n) {
background: linear-gradient(160deg, #ff6a86, #c8143f 50%, var(--velvet));
}

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(1) { --x: 50%; --dx: -6vw; --h: 66; --r: -380deg; --d: 490ms; --s: 2.4; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(2) { --x: 46%; --dx: -22vw; --h: 56; --r: 300deg; --d: 510ms; --s: 1.6; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(3) { --x: 54%; --dx: 20vw; --h: 60; --r: -320deg; --d: 500ms; --s: 1.8; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(4) { --x: 40%; --dx: -34vw; --h: 48; --r: 420deg; --d: 530ms; --s: 1.2; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(5) { --x: 60%; --dx: 32vw; --h: 52; --r: -280deg; --d: 520ms; --s: 1.4; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(6) { --x: 44%; --dx: -12vw; --h: 60; --r: 260deg; --d: 550ms; --s: 1; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(7) { --x: 56%; --dx: 10vw; --h: 64; --r: -440deg; --d: 540ms; --s: 2; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(8) { --x: 36%; --dx: -40vw; --h: 36; --r: 360deg; --d: 570ms; --s: 0.9; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(9) { --x: 64%; --dx: 42vw; --h: 40; --r: -360deg; --d: 560ms; --s: 1.1; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(10) { --x: 48%; --dx: -28vw; --h: 56; --r: -300deg; --d: 580ms; --s: 0.8; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(11) { --x: 52%; --dx: 26vw; --h: 58; --r: 340deg; --d: 590ms; --s: 2.2; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(12) { --x: 42%; --dx: -4vw; --h: 46; --r: -260deg; --d: 610ms; --s: 1; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(13) { --x: 58%; --dx: 6vw; --h: 50; --r: 380deg; --d: 570ms; --s: 1.3; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(14) { --x: 50%; --dx: 16vw; --h: 70; --r: -220deg; --d: 530ms; --s: 0.9; }

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(n + 15) {
--y: 93%;
animation: curtain-fx-twinkle 520ms ease-out var(--d) both;
}

.curtain[data-reveal="drop"] .curtain-glints i:nth-child(15) { --x: 30%; --d: 570ms; --s: 1.6; }
.curtain[data-reveal="drop"] .curtain-glints i:nth-child(16) { --x: 69%; --d: 650ms; --s: 1.2; }

@media (orientation: portrait) {
.curtain[data-reveal="drop"] { --rise: 0.8; }
}

@keyframes curtain-fx-drop-fleck {
0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(calc(var(--s) * 0.5)); animation-timing-function: cubic-bezier(0.12, 0.7, 0.3, 1); }
5% { opacity: 1; }
34% { transform: translate(calc(var(--dx) * 0.6), calc(var(--h) * var(--rise) * -1vh)) rotate(calc(var(--r) * 0.35)) scale(var(--s), calc(var(--s) * -1)); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
50% { transform: translate(calc(var(--dx) * 0.75 + 1.5vmin), calc(var(--h) * var(--rise) * -0.9vh)) rotate(calc(var(--r) * 0.5)) scale(var(--s), var(--s)); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
66% { transform: translate(calc(var(--dx) * 0.86 - 1.5vmin), calc(var(--h) * var(--rise) * -0.72vh)) rotate(calc(var(--r) * 0.68)) scale(var(--s), calc(var(--s) * -1)); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
72% { opacity: 1; }
82% { transform: translate(calc(var(--dx) * 0.94 + 1vmin), calc(var(--h) * var(--rise) * -0.52vh)) rotate(calc(var(--r) * 0.85)) scale(var(--s), var(--s)); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
100% { opacity: 0; transform: translate(var(--dx), calc(var(--h) * var(--rise) * -0.3vh)) rotate(var(--r)) scale(calc(var(--s) * 0.7), calc(var(--s) * -0.4)); }
}

@keyframes curtain-fx-drop-dust {
0% { opacity: 0; transform: scale(0.3, 0.25); }
22% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 0; transform: scale(1.25, 1.15); }
}

@keyframes curtain-fx-drop-sweep {
0% { opacity: 0; transform: scaleX(0.1); }
15% { opacity: 1; }
100% { opacity: 0; transform: scaleX(1.3); }
}

/* Source: css/curtain-flourish-traveller.css */
.curtain[data-reveal^="traveller-"] {
--rise: 1;
--tilt: calc(var(--dir) * -7deg);
--tail: 170px;
}

.curtain[data-reveal="traveller-left"] {
--dir: -1;
--side: right;
--head: calc(100% - var(--tail));
--tail-at: 0;
}

.curtain[data-reveal="traveller-right"] {
--dir: 1;
--side: left;
--head: var(--tail);
--tail-at: 100%;
}

.curtain[data-reveal="traveller-left"] .curtain-glints i { --x: calc(100% - var(--p)); }
.curtain[data-reveal="traveller-right"] .curtain-glints i { --x: var(--p); }

.curtain[data-reveal^="traveller-"] .curtain-glints i {
--y: calc(50% + var(--rise) * var(--dy));
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
background: radial-gradient(circle, #fff 0 18%, var(--gold) 55%);
animation: curtain-fx-traveller-wake var(--t, 560ms) ease-out var(--d) both;
}

.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(1) {
top: 0;
bottom: 0;
left: calc(var(--dir) * var(--tail) * -1);
right: calc(var(--dir) * var(--tail));
width: auto;
height: auto;
margin: 0;
clip-path: none;
filter: none;
background:
linear-gradient(to right, transparent, rgba(255, 250, 232, 0.95), transparent) var(--side) calc(var(--tail) - 30px) center / 60px 3px,
linear-gradient(to bottom, transparent, rgba(255, 250, 232, 0.95), transparent) var(--side) calc(var(--tail) - 1.5px) center / 3px 44px,
radial-gradient(circle, #fff 0 4px, rgba(255, 244, 200, 0.95) 6px, rgba(255, 212, 90, 0.55) 11px, rgba(255, 212, 90, 0) 24px) var(--side) calc(var(--tail) - 24px) center / 48px 48px,
radial-gradient(ellipse 100% 50% at var(--tail-at) 50%, rgba(255, 252, 236, 1), rgba(255, 226, 140, 0.85) 25%, rgba(255, 212, 90, 0) 100%) var(--side) 0 center / var(--tail) 12px,
radial-gradient(ellipse 100% 50% at var(--tail-at) 50%, rgba(255, 212, 90, 0.45), rgba(255, 212, 90, 0) 75%) var(--side) 0 center / var(--tail) 40px;
background-repeat: no-repeat;
transform-origin: var(--head) 50%;
animation:
curtain-fx-traveller-comet 860ms linear 240ms both,
curtain-fx-traveller-fade 860ms linear 240ms both;
}

.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(2) { --p: 8%; --dy: 10.8%; --d: 385ms; --s: 1; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(3) { --p: 14%; --dy: 20.2%; --d: 424ms; --s: 0.8; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(4) { --p: 20%; --dy: 5.5%; --d: 456ms; --s: 1.8; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(5) { --p: 26%; --dy: 13.9%; --d: 483ms; --s: 1.1; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(6) { --p: 31%; --dy: 6.5%; --d: 505ms; --s: 0.9; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(7) { --p: 37%; --dy: 14.9%; --d: 530ms; --s: 2.2; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(8) { --p: 43%; --dy: 0.3%; --d: 554ms; --s: 1.2; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(9) { --p: 49%; --dy: 8.6%; --d: 579ms; --s: 0.8; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(10) { --p: 55%; --dy: -1%; --d: 605ms; --s: 2; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(11) { --p: 61%; --dy: 7.4%; --d: 634ms; --s: 1; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(12) { --p: 67%; --dy: -6.3%; --d: 670ms; --s: 1.4; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(13) { --p: 73%; --dy: 3.1%; --d: 736ms; --s: 2.6; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(14) { --p: 80%; --dy: -7.9%; --d: 797ms; --s: 0.9; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(15) { --p: 87%; --dy: -0.9%; --d: 856ms; --s: 1.6; --t: 520ms; }
.curtain[data-reveal^="traveller-"] .curtain-glints i:nth-child(16) { --p: 90%; --dy: -11.3%; --d: 905ms; --s: 1.2; --t: 480ms; }

@media (orientation: portrait) {
.curtain[data-reveal^="traveller-"] {
--rise: 0.5;
--tilt: calc(var(--dir) * -15deg);
}
}

@keyframes curtain-fx-traveller-comet {
0% { transform: translate(0, calc(var(--rise) * 18%)) rotate(var(--tilt)); animation-timing-function: cubic-bezier(0.45, 0, 0.65, 1); }
58% { transform: translate(calc(var(--dir) * 73.44%), calc(var(--rise) * -2%)) rotate(var(--tilt)); animation-timing-function: cubic-bezier(0.2, 0.4, 0.5, 1); }
80% { transform: translate(calc(var(--dir) * 90.78%), calc(var(--rise) * -7%)) rotate(var(--tilt)); animation-timing-function: cubic-bezier(0.35, 0, 0.8, 1); }
100% { transform: translate(calc(var(--dir) * 119.34%), calc(var(--rise) * -12%)) rotate(var(--tilt)); }
}

@keyframes curtain-fx-traveller-fade {
0% { opacity: 0; }
6% { opacity: 1; }
84% { opacity: 1; }
96% { opacity: 0; }
}

@keyframes curtain-fx-traveller-wake {
0% { opacity: 0; transform: scale(0) rotate(0); }
14% { opacity: 1; transform: scale(var(--s)) rotate(30deg); }
55% { opacity: 0.85; transform: translateY(0.6vmin) scale(calc(var(--s) * 0.75)) rotate(90deg); }
100% { opacity: 0; transform: translateY(1.5vmin) scale(calc(var(--s) * 0.2)) rotate(160deg); }
}

/* Source: css/rotation.css */


.turn-edges {
position: fixed;
inset: 0;
visibility: hidden;
pointer-events: none;
}

.status-band { display: none; }

@media (display-mode: standalone) {
html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
.status-band {
display: block;
position: fixed;
inset: 0 0 auto;
z-index: 2001;
height: env(safe-area-inset-top, 0px);
background: #000;
pointer-events: none;
}
}

html.turn body {
position: fixed;
left: 0;
top: 0;
width: var(--turn-w);
height: var(--turn-h);
transform-origin: 0 0;
}

html.turn-cw body {
transform: translateX(var(--turn-h)) rotate(90deg);
}

html.turn-ccw body {
transform: translateY(var(--turn-w)) rotate(-90deg);
}

html.turn-cw {
--safe-top: env(safe-area-inset-right, 0px);
--safe-right: env(safe-area-inset-bottom, 0px);
--safe-bottom: env(safe-area-inset-left, 0px);
--safe-left: env(safe-area-inset-top, 0px);
}

html.turn-ccw {
--safe-top: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-right, 0px);
--safe-left: env(safe-area-inset-bottom, 0px);
}

html.turn-cw #save-session, html.turn-cw #save-recovery { rotate: 90deg; }
html.turn-ccw #save-session, html.turn-ccw #save-recovery { rotate: -90deg; }

html:is(.pay-cw, .pay-ccw) .pay {
inset: auto;
left: 0;
top: 0;
width: var(--glass-short);
height: var(--glass-long);
transform-origin: 0 0;
--pay-vh: calc(var(--glass-long) / 100);
--pay-dvh: calc(var(--glass-long) / 100);
}

html.pay-cw .pay { transform: translateX(var(--glass-long)) rotate(90deg); }
html.pay-ccw .pay { transform: translateY(var(--glass-short)) rotate(-90deg); }

html[data-pay-up="top"] .pay {
--safe-top: env(safe-area-inset-top, 0px);
--safe-right: env(safe-area-inset-right, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-left: env(safe-area-inset-left, 0px);
}

html[data-pay-up="left"] .pay {
--safe-top: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-right, 0px);
--safe-left: env(safe-area-inset-bottom, 0px);
}

html[data-pay-up="right"] .pay {
--safe-top: env(safe-area-inset-right, 0px);
--safe-right: env(safe-area-inset-bottom, 0px);
--safe-bottom: env(safe-area-inset-left, 0px);
--safe-left: env(safe-area-inset-top, 0px);
}

.turn-hint {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
text-align: center;
pointer-events: none;
}

.turn-phone {
display: block;
width: 112px;
height: 112px;
overflow: visible;
filter: drop-shadow(0 0 16px rgba(255, 212, 90, 0.35)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.turn-body {
fill: var(--violet-deep);
stroke: var(--gold);
stroke-width: 2.5;
}

.turn-glass {
fill: var(--navy-deep);
stroke: var(--gold-deep);
stroke-width: 1;
}

.turn-island {
fill: var(--bg-deep);
}

.turn-check {
fill: none;
stroke: var(--go-light);
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
opacity: 0;
animation: turn-check 2.8s ease infinite;
}

.turn-device {
transform-box: view-box;
transform-origin: 32px 32px;
animation: turn-to-landscape 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

html[data-want="portrait"] .turn-device {
animation-name: turn-to-portrait;
}

.turn-text {
color: var(--text);
font-family: var(--display);
font-size: 1.35rem;
line-height: 1;
letter-spacing: 0.06em;
text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.7);
white-space: nowrap;
}

@keyframes turn-to-landscape {
0%, 20% { transform: none; }
52%, 100% { transform: rotate(-90deg); }
}

@keyframes turn-to-portrait {
0%, 20% { transform: rotate(-90deg); }
52%, 100% { transform: none; }
}

@keyframes turn-check {
0%, 56% { opacity: 0; }
64%, 90% { opacity: 1; }
100% { opacity: 0; }
}

.loading-turn {
position: absolute;
z-index: 2;
left: 16px;
right: 16px;
bottom: calc(var(--safe-bottom) + 99px);
display: none;
}

html.turn[data-want="portrait"] .loading-turn {
display: flex;
}

.loading-turn::before {
content: "";
position: absolute;
z-index: -1;
left: 50%;
top: 50%;
width: 520px;
height: 240%;
transform: translate(-50%, -50%);
background: radial-gradient(closest-side, var(--loading-shade), rgba(9, 3, 23, 0.75) 50%, transparent);
pointer-events: none;
}

.loading-turn .turn-phone {
width: 88px;
height: 88px;
}

.loading-turn .turn-text {
font-size: 1.1rem;
}

html.turn[data-want="portrait"] .loading-brand {
bottom: 200px;
}

html.turn[data-want="portrait"] .loading-screen[data-kind="machine"] .loading-card {
bottom: calc(var(--safe-bottom) + 240px);
}

html.turn[data-want="portrait"] .loading-note {
font-size: 0.95rem;
font-weight: 600;
text-shadow: 0 1px 3px #000;
}

@media (orientation: landscape) and (max-height: 500px) {
.loading-turn { bottom: calc(var(--safe-bottom) + 72px); }
.loading-turn .turn-phone { width: 64px; height: 64px; }
.loading-turn .turn-text { font-size: 1rem; }
html.turn[data-want="portrait"] .loading-brand { bottom: 150px; gap: 12px; }
html.turn[data-want="portrait"] .loading-tile { width: 72px; height: 72px; border-radius: 16px; }
html.turn[data-want="portrait"] .loading-screen[data-kind="machine"] .loading-card {
top: calc(var(--safe-top) + 14px);
bottom: auto;
}
html.turn[data-want="portrait"] .loading-screen[data-kind="page"] .loading-card { top: calc(var(--safe-top) + 8%); }
html.turn[data-want="portrait"] .loading-screen[data-kind="page"] :is(.loading-hero, .loading-pose) { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
.turn-device { animation: none; }
html[data-want="landscape"] .turn-device { transform: rotate(-90deg); }
.turn-check { animation: none; opacity: 1; }
}

/* Source: css/art-delivery.css */
[data-art-pending]:not([aria-hidden="false"]),
[data-art-pending]:not([aria-hidden="false"])::before,
[data-art-pending]:not([aria-hidden="false"])::after,
[data-art-pending]:not([aria-hidden="false"]) *,
[data-art-pending]:not([aria-hidden="false"]) *::before,
[data-art-pending]:not([aria-hidden="false"]) *::after {
background-image: none !important;
border-image-source: none !important;
-webkit-mask-image: none !important;
mask-image: none !important;
}

/* Source: css/celebration.css */

.confetti-layer {
position: fixed;
inset: 0;
z-index: 45;
overflow: hidden;
pointer-events: none;
perspective: 600px;
}

.fx-confetti-host {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
perspective: 600px;
}

#pearl-open > .fx-confetti-host {
z-index: 1;
}

#grid > .fx-confetti-host {
z-index: 2;
overflow: visible;
}

.fx-confetti {
position: absolute;
width: 0;
height: 0;
animation: confetti-flight 2200ms cubic-bezier(0.2, 0.6, 0.4, 1) both;
}

.fx-atlas {
background-repeat: no-repeat;
background-position-y: 0;
}

.fx-atlas-confetti { background-image: url("../art/fx/confetti.webp"); background-size: 2400% 100%; }
.fx-atlas-confetti-2 { background-image: url("../art/fx/confetti-2.webp"); background-size: 2400% 100%; }
.fx-atlas-stars { background-image: url("../art/fx/stars.webp"); background-size: 1600% 100%; }
.fx-atlas-sparkles { background-image: url("../art/fx/sparkles.webp"); background-size: 1600% 100%; }
.fx-atlas-sparks { background-image: url("../art/fx/sparks.webp"); background-size: 1600% 100%; }
.fx-atlas-celestial { background-image: url("../art/fx/celestial.webp"); background-size: 1600% 100%; }

.fx-confetti-flutter {
position: absolute;
left: calc(var(--s) / -2);
top: calc(var(--s) / -2);
width: var(--s);
height: var(--s);
animation: confetti-flutter 520ms linear infinite;
}

@keyframes confetti-flight {
0% { opacity: 0; transform: translate(0, 0) rotate(0); }
6% { opacity: 1; }
30% { transform: translate(var(--dx), var(--up)) rotate(calc(var(--turn) * 0.35)); }
65% { transform: translate(calc(var(--dx) + var(--sway)), calc(var(--up) + 40vh)) rotate(calc(var(--turn) * 0.7)); }
85% { opacity: 0.95; }
100% { opacity: 0; transform: translate(calc(var(--dx) - var(--sway)), calc(var(--up) + 90vh)) rotate(var(--turn)); }
}

@keyframes confetti-flutter {
0% { transform: rotateX(0) rotateY(0); }
50% { transform: rotateX(180deg) rotateY(60deg); }
100% { transform: rotateX(360deg) rotateY(0); }
}

.fx-sparkle {
position: absolute;
width: 28px;
height: 28px;
margin: -14px 0 0 -14px;
opacity: 0;
transform: scale(0) rotate(0);
animation: sparkle-pop 760ms ease-out both;
}

.fx-sparkle.big {
width: 44px;
height: 44px;
margin: -22px 0 0 -22px;
}

.fx-spark {
position: absolute;
width: var(--s);
height: var(--s);
margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
opacity: 0;
animation: spark-fling 640ms cubic-bezier(0.15, 0.7, 0.3, 1) both;
}

@keyframes spark-fling {
0% { opacity: 0; transform: translate(0, 0) rotate(var(--rot)) scale(0.4); }
15% { opacity: 1; }
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}

@keyframes sparkle-pop {
0% { opacity: 0; transform: scale(0) rotate(0); }
35% { opacity: 1; transform: scale(1.15) rotate(45deg); }
100% { opacity: 0; transform: scale(0.2) rotate(90deg); }
}

.big-win-title.fx-glimmer,
.big-win-amount.fx-glimmer {
--sheen: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%);
animation-name: var(--win-enter, big-win-step), glimmer-sweep;
animation-duration: 520ms, 900ms;
animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1), ease-in-out;
}

.big-win-amount.fx-glimmer:not(.landed) {
animation: glimmer-sweep 900ms ease-in-out;
}

@keyframes glimmer-sweep {
from { background-position: 100% 0, 0 0; }
to { background-position: 0 0, 0 0; }
}

.spin-glint {
position: absolute;
inset: 0;
overflow: hidden;
border-radius: inherit;
pointer-events: none;
}

.spin-glint::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 60%;
background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
transform: translateX(-120%);
animation: spin-glint 5.2s ease-in-out 1.5s infinite;
animation-play-state: var(--idle-play, running);
}

.spin-button:disabled .spin-glint,
.spin-button.broke .spin-glint,
.spin-button.busy .spin-glint,
.spin-button.stop .spin-glint,
.spin-button.auto .spin-glint {
display: none;
}

@keyframes spin-glint {
0% { transform: translateX(-120%); }
22% { transform: translateX(200%); }
100% { transform: translateX(200%); }
}

@media (prefers-reduced-motion: reduce) {
.fx-confetti,
.fx-sparkle,
.fx-spark,
.spin-glint {
display: none;
}
.big-win-title.fx-glimmer,
.big-win-amount.fx-glimmer {
--sheen: none;
}
}

@media (prefers-reduced-motion: reduce) {
.big-win-title.fx-glimmer { animation: none; }
}
