/* ================= Madame Zoltara's Fortune Tent ================= */
.ft { position: absolute; left: -12vw; right: -12vw; top: -3vh; bottom: -42vh; overflow: hidden; font-family: var(--display); }
.ft i, .ft b { display: block; }
/* the tent: gathered velvet drapes, lanterns, a round table with a fringed cloth, candles, and the crystal ball */
.ft-tent { position: absolute; inset: -4vh -2vw 0; display: flex; background: linear-gradient(180deg, #14041e, #24082f); } /* a dark backing, so no backdrop shows between drapes */
.ft-tent .drape { box-shadow: inset 0 -30vh 30vh rgba(0, 0, 0, .35) !important; }
.ft-tent .drape { flex: 1; background: linear-gradient(90deg, #1a0626, #4a1466 30%, #2a0a3a 55%, #5a1a7a 80%, #1a0626); box-shadow: inset 0 -20vh 20vh rgba(0, 0, 0, .55); border-radius: 0 0 50% 50% / 0 0 6vh 6vh; transform-origin: 50% 0; animation: ft-sway 7s ease-in-out calc(var(--i) * -.8s) infinite alternate; }
/* each drape billows on its own slow cycle, like heavy fabric in a draft */
@keyframes ft-sway {
    0% { transform: skewX(-1.4deg) scaleX(1.03); }
    30% { transform: skewX(1.1deg) scaleX(.99) translateX(.35vw); }
    55% { transform: skewX(-.6deg) scaleX(1.05) translateX(-.25vw); }
    80% { transform: skewX(1.8deg) scaleX(1.01) translateX(.2vw); }
    100% { transform: skewX(-1.4deg) scaleX(1.03); }
}
@keyframes ft-folds { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
.ft-lantern { position: absolute; top: -1vh; width: 5.6vh; height: 17vh; margin-left: -2.8vh; }
.ft-lantern .ring { position: absolute; left: 50%; top: 0; width: .3vh; height: 6vh; margin-left: -.15vh; background: linear-gradient(90deg, #1a1208, #5a4a30, #1a1208); }
.ft-lantern .cap { position: absolute; left: .4vh; right: .4vh; top: 6vh; height: 2.2vh; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #4a3a22, #1a1208); }
.ft-lantern .glass { position: absolute; left: .6vh; right: .6vh; top: 8.1vh; height: 7vh; border-radius: .5vh; overflow: hidden;
    background: repeating-linear-gradient(90deg, transparent 0 1vh, rgba(26, 18, 8, .85) 1vh 1.3vh), radial-gradient(ellipse at 50% 60%, rgba(255, 236, 170, .95), rgba(255, 160, 50, .75) 45%, rgba(140, 60, 10, .9) 90%);
    box-shadow: inset 0 0 0 .3vh #2a1c0c, 0 0 2.4vh rgba(255, 170, 60, .55); }
.ft-lantern .flame { position: absolute; left: 50%; bottom: 1vh; width: 1.8vh; height: 3.4vh; margin-left: -.9vh; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 75%, #fff 0 18%, #ffe07a 40%, #ff8a1f 75%, transparent 78%); animation: ft-flame 1.3s ease-in-out var(--d) infinite; }
@keyframes ft-flame { 0%, 100% { opacity: 1; filter: brightness(1); } 23% { opacity: .82; filter: brightness(.9); } 41% { opacity: 1; filter: brightness(1.15); } 66% { opacity: .88; filter: brightness(.95); } 82% { opacity: 1; filter: brightness(1.1); } }
.ft-lantern .base { position: absolute; left: .3vh; right: .3vh; top: 15vh; height: 1.4vh; border-radius: .3vh; background: linear-gradient(180deg, #4a3a22, #1a1208); }
.ft-lantern .halo { position: absolute; left: 50%; top: 11.6vh; width: 18vh; height: 18vh; margin: -9vh 0 0 -9vh; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 70, .28), transparent 65%); pointer-events: none; z-index: -1; animation: ft-halo 3.2s ease-in-out var(--d) infinite alternate; }
@keyframes ft-halo { to { opacity: .7; } }
.ft-table { position: absolute; left: 0; right: 0; bottom: 0; height: 56vh; z-index: 3; } /* its own layer: candles order among themselves, the readings stay in front */
.ft-table .cloth { position: absolute; left: 6%; right: 6%; top: 0; bottom: 0; border-radius: 50% 50% 0 0 / 5vh 5vh 0 0; background: radial-gradient(ellipse at 50% 0, #5a1030, #2a0418 70%), repeating-radial-gradient(circle at 50% 0, rgba(255, 216, 74, .05) 0 .5vh, transparent .5vh 3vh); box-shadow: inset 0 3vh 6vh rgba(255, 176, 46, .12); }
.ft-table .fringe { position: absolute; left: 6%; right: 6%; top: 0; height: 2.4vh; border-radius: 50% 50% 0 0 / 2.4vh 2.4vh 0 0; background: repeating-linear-gradient(90deg, #e8c24a 0 .5vh, #8a5a10 .5vh 1vh); opacity: .85; }
.ft-candle { position: absolute; top: calc(var(--y) - var(--h)); box-shadow: 0 .6vh 1vh rgba(0, 0, 0, .45); width: 2.6vh; height: var(--h); margin-left: -1.3vh; border-radius: .4vh; background: linear-gradient(90deg, #d8d0bc, #fffdf0, #d8d0bc); z-index: 2; }
.ft-candle b { position: absolute; left: 50%; bottom: 100%; width: 2.2vh; height: 4.4vh; margin-left: -1.1vh; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 75%, #fff 0 15%, #ffe07a 35%, #ff8a1f 70%, transparent 72%); box-shadow: 0 0 4vh rgba(255, 200, 100, .7); transform-origin: 50% 100%; animation: cr-flicker .16s ease-in-out var(--d) infinite alternate; }
.ft-ball { position: absolute; left: 50%; top: -24vh; width: 24vh; height: 24vh; margin-left: -12vh; z-index: 3; transform: none !important; transform-origin: 50% 100%; }
.ft-ball .glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .8), rgba(185, 140, 224, .35) 22%, rgba(80, 30, 140, .55) 60%, rgba(20, 6, 40, .9)); box-shadow: 0 0 6vh rgba(185, 140, 224, .7), inset 0 0 4vh rgba(255, 255, 255, .2); animation: ft-pulse 3s ease-in-out infinite alternate; }
@keyframes ft-pulse { to { box-shadow: 0 0 11vh rgba(185, 140, 224, .95), inset 0 0 5vh rgba(255, 255, 255, .3); } }
.ft-ball .mist { position: absolute; inset: 12%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 180, 255, .45), transparent 40%, rgba(140, 200, 255, .4), transparent 75%); filter: blur(1.4vh); animation: ft-swirl 6s linear infinite; }
.ft-ball .mist.b { inset: 22%; animation-duration: 4s; animation-direction: reverse; opacity: .8; }
@keyframes ft-swirl { to { transform: rotate(360deg); } }
.ft-ball .glint { position: absolute; left: 22%; top: 16%; width: 22%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .7); filter: blur(.4vh); transform: rotate(-30deg); }
.ft-ball .stand { position: absolute; left: 50%; bottom: -3.6vh; width: 15vh; height: 6vh; margin-left: -7.5vh; border-radius: 1vh 1vh 3vh 3vh; background: linear-gradient(180deg, #e8c24a, #8a5a10); z-index: -1; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.ft-sym { position: absolute; inset: 0; display: grid !important; place-items: center; font-size: 11vh; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; color: #fff3b0; text-shadow: 0 0 2vh #ffd84a, 0 0 6vh #ff9a2e; opacity: 0; z-index: 2; }
.ft-head { position: absolute; left: 50%; top: 3.6vh; transform: translateX(-50%); z-index: 5; white-space: nowrap; font-weight: 900; font-size: 5.4vh; color: #ffe58a; text-shadow: 0 .4vh 0 #5a2a08, 0 0 3vh rgba(255, 216, 74, .5); letter-spacing: .01em; display: flex !important; align-items: center; gap: 1.4vh; }
.ft-stage { position: absolute; left: 12vw; right: 12vw; top: 3vh; height: 87vh; z-index: 4; }
.ft-line { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(42vh + 1.6vh); z-index: 12; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .8vh; max-width: 44vw; overflow: hidden; }
.ft-line span { font-size: 2.1vh; font-weight: 800; letter-spacing: .04em; color: rgba(255, 255, 255, .6); margin-right: .6vh; }
.ft-line b { padding: .5vh 1.2vh; border-radius: 99px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .5); font-size: 2.1vh; color: #fff; }
.ft-line em { font-style: normal; font-size: 2vh; color: #ffe58a; }
/* waiting: a fan of cards hovers over the ball */
.ft-fan { position: absolute; left: 50%; top: 11vh; width: 0; height: 0; }
.ft-back { position: absolute; left: -9vh; top: 0; width: 18vh; height: 28vh; border-radius: 1.4vh; transform-origin: 50% 160%; transform: rotate(calc(var(--i) * 16deg)); animation: ft-fan 9s cubic-bezier(.5, 0, .3, 1) infinite; background: radial-gradient(circle at 50% 50%, #b98ce0 0 9%, transparent 10%), repeating-conic-gradient(from 0deg at 50% 50%, #3a1060 0 10deg, #24083e 10deg 20deg); box-shadow: inset 0 0 0 .9vh #e8c24a, inset 0 0 0 1.2vh #2a0a44, 0 1.6vh 3vh rgba(0, 0, 0, .6); }
@keyframes ft-fan {
    0%, 26% { transform: rotate(calc(var(--i) * 16deg)); }
    36%, 42% { transform: rotate(0) translateY(0); }
    52%, 58% { transform: translate(calc(var(--i) * 20vh), 6vh) rotate(0); }
    68%, 100% { transform: rotate(calc(var(--i) * 16deg)); }
}
.ft-call { position: absolute; left: 50%; top: 42vh; padding: 1.4vh 3vw; border-radius: 1.4vh; background: rgba(10, 2, 20, .72); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .5); transform: translateX(-50%); display: grid; justify-items: center; gap: 1vh; text-align: center; white-space: nowrap; }
.ft-call b { font-size: 4.2vh; color: #fff; text-shadow: 0 .3vh 1vh rgba(0, 0, 0, .8); }
.ft-call em { font-style: normal; color: #ffd84a; }
.ft-call span { font-family: Inter, sans-serif; font-weight: 700; font-size: 2.4vh; color: rgba(255, 255, 255, .75); }
/* a reading: the banner unfurls */
.ft-banner { position: absolute; z-index: 6; left: 50%; top: 7.8vh; transform: translateX(-50%); white-space: nowrap; padding: .9vh 3vw; border-radius: 1vh; background: linear-gradient(180deg, #3a0a4a, #1a0426); box-shadow: inset 0 0 0 .3vh #e8c24a, 0 1vh 3vh rgba(0, 0, 0, .6); font-size: 3.4vh; color: #f4e6ff; animation: ft-unfurl .9s cubic-bezier(.3, 1.3, .5, 1) var(--d) both; }
.ft-banner b { display: inline !important; color: #ffe58a; }
@keyframes ft-unfurl { from { transform: translateX(-50%) scaleX(0); opacity: 0; } }
/* tarot: three cards fly out of the ball, face down, then flip one at a time */
.ft-cards { position: absolute; left: 1.5%; right: 1.5%; top: 14.5vh; display: flex; justify-content: space-between; gap: 1.5%; }
.ft-slot { width: 31%; display: grid; justify-items: center; gap: 1vh; }
.ft-pos { font-size: 2.8vh; font-weight: 900; letter-spacing: .04em; color: #ffe58a; text-shadow: 0 0 1.4vh rgba(255, 216, 74, .5); animation: ft-in .5s ease-out var(--deal) both; }
.ft-card { width: 23vh; height: 35vh; perspective: 120vh; animation: ft-deal .9s cubic-bezier(.3, 1.1, .4, 1) var(--deal) both; }
@keyframes ft-deal { from { transform: translate(calc((1 - var(--k)) * 28vw), 40vh) rotate(calc((var(--k) - 1) * -40deg)) scale(.3); opacity: 0; } 30% { opacity: 1; } }
.ft-card .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: ft-flip 1s cubic-bezier(.4, 0, .2, 1) var(--flip) both; }
@keyframes ft-flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.ft-card .back, .ft-card .face { position: absolute; inset: 0; border-radius: 1.6vh; backface-visibility: hidden; }
.ft-card .back { background: radial-gradient(circle at 50% 50%, #b98ce0 0 9%, transparent 10%), repeating-conic-gradient(from 0deg at 50% 50%, #3a1060 0 10deg, #24083e 10deg 20deg); box-shadow: inset 0 0 0 1vh #e8c24a, inset 0 0 0 1.3vh #2a0a44, 0 1.6vh 3vh rgba(0, 0, 0, .7); }
.ft-card .back i { position: absolute; inset: 22%; border-radius: 50%; border: .4vh solid #e8c24a; }
.ft-card .face { transform: rotateY(180deg); background: radial-gradient(ellipse at 50% 35%, #fffaf0, #f0e0bc 80%); box-shadow: inset 0 0 0 1vh #e8c24a, inset 0 0 0 1.3vh #5a2a10, 0 0 5vh rgba(255, 216, 74, .55), 0 1.6vh 3vh rgba(0, 0, 0, .7); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 2.4vh 1.6vh 2.6vh; }
.ft-card .face .art { font-size: 12.5vh; line-height: 1; filter: drop-shadow(0 .6vh 1vh rgba(0, 0, 0, .3)); }
.ft-card .face b { font-family: var(--display); font-weight: 900; font-size: 2.6vh; letter-spacing: 0; color: #3a1a0a; text-align: center; }
.ft-meaning { justify-self: stretch; box-sizing: border-box; font-family: Inter, sans-serif; font-weight: 600; font-size: 2.6vh; line-height: 1.35; text-align: center; color: #2a1406; padding: 1.4vh 1.6vh; border-radius: .8vh; background: linear-gradient(180deg, #f4e6c4, #e4cf9c); box-shadow: 0 .8vh 2vh rgba(0, 0, 0, .55), inset 0 0 0 .3vh rgba(138, 90, 16, .5); animation: ft-scroll .8s cubic-bezier(.3, 1.2, .5, 1) calc(var(--flip) + 700ms) both; }
@keyframes ft-scroll { from { transform: scaleY(0); opacity: 0; } }
@keyframes ft-in { from { opacity: 0; transform: translateY(-1vh); } }
/* horoscope: the ball rises and swells, the sign burns in, and the reading drifts in like smoke */
.ft.is-zodiac .ft-ball { animation: ft-rise 1.6s cubic-bezier(.3, 1.1, .4, 1) var(--zd, 0ms) both; }
@keyframes ft-rise { 50% { filter: brightness(1.5) drop-shadow(0 0 5vh #ffd84a); } to { filter: brightness(1.25) drop-shadow(0 0 3vh #ffd84a); } } /* glows in place, never moves */
.ft.is-zodiac .ft-sym { animation: ft-burn 1.4s ease-out calc(var(--zd, 0ms) + 1800ms) both; }
@keyframes ft-burn { from { opacity: 0; transform: scale(.3); filter: blur(2vh); } to { opacity: 1; transform: none; filter: none; } }
.ft-zod { position: absolute; left: 50%; top: 14.6vh; transform: translateX(-50%); width: 94%; padding: 2vh 3vw 2.4vh; border-radius: 2vh; background: rgba(12, 2, 24, .74); box-shadow: inset 0 0 0 .25vh rgba(232, 194, 74, .55), 0 2vh 5vh rgba(0, 0, 0, .5); display: grid; justify-items: center; gap: 1vh; text-align: center; }
.ft-zname { font-size: 6vh; font-weight: 900; color: #ffe58a; text-shadow: 0 0 2vh rgba(255, 216, 74, .6); animation: ft-in .8s ease-out calc(var(--d) + 3500ms) both; }
.ft-zdates { font-family: Inter, sans-serif; font-weight: 700; font-size: 2.2vh; color: rgba(255, 255, 255, .7); animation: ft-in .8s ease-out calc(var(--d) + 3800ms) both; }
.ft-zline { margin: 1vh 0 0; font-family: Inter, sans-serif; font-weight: 700; font-size: 4vh; line-height: 1.3; color: #fff; text-shadow: 0 0 2vh rgba(185, 140, 224, .9); animation: ft-smoke 1.6s ease-out calc(var(--d) + 5000ms) both; }
@keyframes ft-smoke { from { opacity: 0; filter: blur(1.4vh); letter-spacing: .3em; } to { opacity: 1; filter: none; letter-spacing: normal; } }
.ft-lucky { display: flex !important; gap: 2vw; margin-top: 1.4vh; animation: ft-in .8s ease-out calc(var(--d) + 8000ms) both; }
.ft-lucky span { padding: .8vh 1.6vw; border-radius: 99px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .6); font-family: Inter, sans-serif; font-weight: 700; font-size: 2.4vh; color: rgba(255, 255, 255, .85); }
.ft-lucky b { display: inline !important; color: #ffe58a; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .ft * { animation-duration: .01s !important; } }

/* ================= phones ================= */
.fp { display: grid; gap: .9rem; }
.fp-head { display: flex; align-items: center; gap: .7rem; justify-content: center; padding: .4rem 0; font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: #ffe58a; text-shadow: 0 0 14px rgba(255, 216, 74, .45); }
.fp-head span { font-size: 2rem; }
.fp-head b { display: block; font-size: .85rem; letter-spacing: .04em; color: #d8b8ff; }
.fp-ball { width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; position: relative; background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .8), rgba(185, 140, 224, .35) 22%, rgba(80, 30, 140, .6) 60%, rgba(20, 6, 40, .9)); box-shadow: 0 0 40px rgba(185, 140, 224, .7); overflow: hidden; }
.fp-ball i { position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 180, 255, .5), transparent 40%, rgba(140, 200, 255, .45), transparent 75%); filter: blur(8px); animation: ft-swirl 5s linear infinite; }
.fp-ask { text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.fp-choice { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 76px; padding: .9rem 1rem; border: 0; border-radius: 14px; text-align: left; color: #fff; cursor: pointer; font: inherit; }
.fp-choice span { font-size: 2.1rem; }
.fp-choice b { display: block; font-family: var(--display); font-size: 1.2rem; }
.fp-choice small { color: rgba(255, 255, 255, .75); font-size: .85rem; }
.fp-choice.tarot { background: linear-gradient(135deg, #5a1a8a, #2a0a44); box-shadow: inset 0 0 0 2px #e8c24a; }
.fp-choice.zodiac { background: linear-gradient(135deg, #1a3a8a, #0a1a44); box-shadow: inset 0 0 0 2px #7ab8ff; }
.fp-for-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); margin-top: -.4rem; }
.fp-for-seg button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 800; font: inherit; font-weight: 800; cursor: pointer; }
.fp-for-seg button[aria-pressed="true"] { background: #e8c24a; color: #1a0a26; }
.fp-fine { text-align: center; font-size: .75rem; color: var(--muted); margin: 0; }
.fp-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.fp-signs button { display: grid; justify-items: center; gap: 2px; min-height: 86px; padding: .5rem .3rem; border: 0; border-radius: 12px; background: linear-gradient(180deg, #1a2a5a, #0a1230); color: #fff; box-shadow: inset 0 0 0 1px rgba(122, 184, 255, .4); cursor: pointer; font: inherit; }
.fp-signs span { font-size: 1.7rem; color: #ffe58a; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.fp-signs b { font-size: .9rem; } .fp-signs small { font-size: .62rem; color: var(--muted); }
.fp-status { text-align: center; padding: .7rem; border-radius: 12px; background: var(--panel); font-weight: 800; }
.fp-status.live { background: linear-gradient(90deg, #5a1a8a, #2a0a44); box-shadow: 0 0 20px rgba(185, 140, 224, .6); animation: fp-glow 1.6s ease-in-out infinite alternate; }
@keyframes fp-glow { to { box-shadow: 0 0 34px rgba(185, 140, 224, .95); } }
.fp-status.done { color: #7dffb0; }
.fp-reading { display: grid; gap: .9rem; }
.fp-for { text-align: center; font-weight: 700; color: var(--muted); } .fp-for b { color: #ffe58a; }
.fp-card { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; column-gap: .9rem; align-items: center; padding: .7rem; border-radius: 14px; background: rgba(20, 6, 40, .7); box-shadow: inset 0 0 0 1px rgba(232, 194, 74, .35); }
.fp-pos { grid-column: 1 / 3; font-weight: 900; font-size: .85rem; letter-spacing: .04em; color: #ffe58a; margin-bottom: .35rem; }
.fp-flip { width: 96px; height: 146px; perspective: 600px; }
.fp-flip .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); }
.fp-card.deal .fp-flip .in { animation: ft-flip .9s cubic-bezier(.4, 0, .2, 1) calc(.4s + var(--k) * .9s) both; }
.fp-flip .back, .fp-flip .face { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; }
.fp-flip .back { background: repeating-conic-gradient(from 0deg at 50% 50%, #3a1060 0 10deg, #24083e 10deg 20deg); box-shadow: inset 0 0 0 4px #e8c24a; }
.fp-flip .face { transform: rotateY(180deg); background: #f4ecd8; box-shadow: inset 0 0 0 4px #e8c24a, inset 0 0 0 6px #5a2a10; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 10px 6px; }
.fp-flip .face span { font-size: 2.8rem; }
.fp-flip .face b { font-family: var(--display); font-weight: 900; font-size: .66rem; letter-spacing: 0; color: #3a1a0a; text-align: center; line-height: 1.15; }
.fp-card p { margin: 0; font-family: Inter, sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.fp-card.deal p { animation: ft-in .6s ease-out calc(1.1s + var(--k) * .9s) both; }
.fp-z { justify-items: center; text-align: center; padding: 1.2rem 1rem; border-radius: 16px; background: radial-gradient(ellipse at 50% 0, rgba(80, 30, 140, .7), rgba(10, 4, 24, .8)); box-shadow: inset 0 0 0 1px rgba(122, 184, 255, .4); }
.fp-zsym { font-size: 4.4rem; color: #fff3b0; text-shadow: 0 0 18px #ffd84a; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.fp-z.deal .fp-zsym { animation: ft-burn 1.2s ease-out both; }
.fp-zname { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: #ffe58a; }
.fp-zdates { color: var(--muted); font-size: .85rem; }
.fp-zline { margin: .4rem 0; font-family: Inter, sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.45; }
.fp-z.deal .fp-zline { animation: ft-smoke 1.4s ease-out .8s both; }
.fp-lucky { display: grid; gap: .4rem; }
.fp-lucky span { padding: .45rem .8rem; border-radius: 99px; background: rgba(0, 0, 0, .4); font-size: .9rem; } .fp-lucky b { color: #ffe58a; }
.fp-again { min-height: 52px; }
.fp-wait { text-align: center; color: var(--muted); font-size: .85rem; min-height: 1em; }

/* the chosen card: after each shuffle, the middle card floats up and spins */
.ft-back[style*="--i:0"] { animation: ft-fan 9s cubic-bezier(.5, 0, .3, 1) infinite, ft-chosen 9s ease-in-out infinite; z-index: 2; }
@keyframes ft-chosen { 0%, 72% { translate: 0 0; rotate: y 0deg; filter: none; } 82% { translate: 0 -8vh; rotate: y 180deg; filter: drop-shadow(0 0 3vh #ffd84a); } 92% { translate: 0 -8vh; rotate: y 360deg; filter: drop-shadow(0 0 3vh #ffd84a); } 100% { translate: 0 0; rotate: y 360deg; filter: none; } } /* spins like a coin, around its own upright axis */
/* velvet shimmer: a slow light sweep across the drapes, and twinkling sparkles */
.ft-shimmer { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 35%, rgba(255, 220, 255, .16) 45%, rgba(255, 255, 255, .26) 50%, rgba(255, 220, 255, .16) 55%, transparent 65%); background-size: 250% 100%; animation: ft-sweep 7s ease-in-out infinite; }
@keyframes ft-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.ft-sparkle { position: absolute; width: .8vh; height: .8vh; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 1.4vh #ffd84a, 0 0 .4vh #fff; opacity: 0; pointer-events: none; animation: ft-twinkle var(--t) ease-in-out var(--d) infinite; }
@keyframes ft-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }

/* horoscope header: lucky number, the sign, and lucky treat share one row */
.ft-ztop { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2vw; width: 100%; }
.ft-ztop .ft-lk:first-child { justify-self: start; } .ft-ztop .ft-lk:last-child { justify-self: end; }
.ft-zmid { display: grid !important; justify-items: center; }
.ft-lk { padding: .8vh 1.4vw; border-radius: 99px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .6); font-family: Inter, sans-serif; font-weight: 700; font-size: 2.3vh; color: rgba(255, 255, 255, .85); white-space: nowrap; animation: ft-in .8s ease-out calc(var(--d) + 8000ms) both; }
.ft-lk b { display: inline !important; color: #ffe58a; font-weight: 900; }
/* tarot: the three meaning boxes are the same height, text centered and a little larger */
.ft-cards { align-items: stretch; }
.ft-slot { grid-template-rows: auto auto 1fr; }
.ft-meaning { display: flex !important; align-items: center; justify-content: center; min-height: 13vh; font-size: 2.85vh; }

/* drapes overlap their neighbors, and each moves at its own pace with light rolling across the folds */
.ft-tent .drape { margin: 0 -1.4vw; position: relative;
    background: linear-gradient(90deg, #1a0626, #4a1466 30%, #2a0a3a 55%, #5a1a7a 80%, #1a0626), linear-gradient(100deg, transparent 30%, rgba(255, 200, 255, .12) 45%, transparent 60%);
    background-size: 100% 100%, 300% 100%; background-blend-mode: screen;
    animation: ft-sway calc(6s + var(--i) * .7s) ease-in-out calc(var(--i) * -1.3s) infinite, ft-folds calc(9s + var(--i) * .5s) linear calc(var(--i) * -2s) infinite; }
.ft-tent .drape:nth-child(even) { z-index: 1; }

/* ================= waiting: arcade fortune machines ================= */
.ft-table { transition: opacity .8s; }
.ft.is-machine .ft-table { opacity: 0; }
.ft.is-machine .ft-line { left: 66%; }
.fm { position: absolute; left: 34%; bottom: 1.5vh; width: 42vh; height: 71vh; margin-left: -21vh; animation: fm-in .9s cubic-bezier(.3, 1.2, .5, 1) both; }
@keyframes fm-in { from { opacity: 0; transform: translateY(6vh) scale(.95); } }
.fm-cab { position: relative; height: 100%; box-sizing: border-box; padding: 1.6vh; display: grid; grid-template-rows: 9vh 39vh 1fr; gap: 1vh; border-radius: 3vh 3vh 1vh 1vh;
    background: linear-gradient(90deg, #3a1a0a, #6a3a18 20%, #8a4a20 50%, #6a3a18 80%, #3a1a0a); box-shadow: inset 0 0 0 .8vh #c8962a, inset 0 0 0 1.2vh #3a1a0a, 0 3vh 6vh rgba(0, 0, 0, .7); }
.fm-marq { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 2vh 2vh .6vh .6vh; background: radial-gradient(ellipse at 50% 60%, #5a1a6a, #1a0626); box-shadow: inset 0 0 0 .5vh #e8c24a; }
.fm-marq span { position: relative; z-index: 1; padding: 0 2vh; text-align: center; font-family: var(--display); font-weight: 900; font-size: 2.7vh; line-height: 1.1; color: #ffe58a; text-shadow: 0 0 1.4vh #ffd84a; opacity: .25; }
.fm.on .fm-marq span { animation: fm-flick 1s steps(1) both; }
@keyframes fm-flick { 0% { opacity: .25; } 10% { opacity: 1; } 20% { opacity: .3; } 35% { opacity: 1; } 45% { opacity: .4; } 60%, 100% { opacity: 1; } }
.fm-marq i { position: absolute; top: .8vh; left: calc(var(--i) * 6.8% + 3%); width: 1.1vh; height: 1.1vh; border-radius: 50%; background: #ffd84a; box-shadow: 0 0 1vh #ffd84a; opacity: .2; }
.fm.on .fm-marq i { animation: fm-chase 1.2s steps(1) calc(var(--i) * .085s) infinite; }
@keyframes fm-chase { 0% { opacity: 1; } 50% { opacity: .25; } }
.fm-window { position: relative; overflow: hidden; border-radius: 1.4vh; background: radial-gradient(ellipse at 50% 70%, #3a1a5a, #0a0412 75%); box-shadow: inset 0 0 0 .6vh #e8c24a, inset 0 0 4vh rgba(0, 0, 0, .8); }
.fm-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 80%, rgba(185, 140, 224, .6), transparent 55%); transition: opacity 1s; }
.fm.on .fm-glow { opacity: 1; }
.fm-fig { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.3); transition: filter 1.2s; }
.fm.on .fm-fig { filter: brightness(1); }
.fm .fm-head, .fm .fm-jaw, .fm .fm-hands .l, .fm .fm-hands .r { transform-box: view-box; }
.fm .fm-head { transform-origin: 150px 200px; }
.fm.alive .fm-head { animation: fm-bob 3.6s infinite; }
/* holds and jerks, like an old animatronic */
@keyframes fm-bob { 0%, 12% { transform: rotate(0); } 18%, 40% { transform: rotate(-6deg); } 46%, 58% { transform: rotate(4deg) translateY(-3px); } 64%, 88% { transform: rotate(-2deg); } 94%, 100% { transform: rotate(0); } }
.fm.alive .fm-jaw { animation: fm-jaw .8s steps(1) infinite; }
@keyframes fm-jaw { 0% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.fm.alive .fm-hands .l { animation: fm-hl 2.4s ease-in-out infinite; }
.fm.alive .fm-hands .r { animation: fm-hr 2.4s ease-in-out -.6s infinite; }
@keyframes fm-hl { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(8px, -10px); } 50% { transform: translate(14px, 0); } 75% { transform: translate(6px, 8px); } }
@keyframes fm-hr { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-8px, -10px); } 50% { transform: translate(-14px, 0); } 75% { transform: translate(-6px, 8px); } }
.fm .fm-eye { opacity: .15; }
.fm.on .fm-eye { opacity: 1; animation: fm-eyes 1.5s ease-in-out infinite alternate; }
@keyframes fm-eyes { to { opacity: .45; } }
.fm-ball { position: absolute; left: 50%; bottom: 6%; width: 12vh; height: 12vh; margin-left: -6vh; overflow: hidden; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .8), rgba(185, 140, 224, .35) 25%, rgba(80, 30, 140, .6) 62%, rgba(20, 6, 40, .9)); box-shadow: 0 0 3vh rgba(185, 140, 224, .5); }
.fm-ball i { position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 180, 255, .55), transparent 40%, rgba(140, 200, 255, .5), transparent 75%); filter: blur(.8vh); animation: ft-swirl 4s linear infinite; }
.fm.alive .fm-ball { animation: fm-ballglow 1.4s ease-in-out infinite alternate; }
@keyframes fm-ballglow { to { box-shadow: 0 0 7vh rgba(185, 140, 224, .95); } }
.fm-glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .12) 36%, transparent 44%, transparent 60%, rgba(255, 255, 255, .06) 64%, transparent 70%); }
.fm-base { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; gap: 1vh; padding: 1.4vh; border-radius: 1vh; background: linear-gradient(180deg, #5a2a10, #3a1a0a); box-shadow: inset 0 0 0 .4vh #c8962a; }
.fm-plate { padding: .6vh 2vh; border-radius: .6vh; background: linear-gradient(180deg, #ffe58a, #c8962a); font-family: var(--display); font-weight: 900; font-size: 2.4vh; color: #2a1406; }
.fm-slots { display: flex; align-items: center; gap: 3vh; }
.fm-slots .coin { padding: .8vh 1.2vh; border: .3vh solid #c8962a; border-radius: .6vh; background: #1a0a06; font-family: Inter, sans-serif; font-weight: 800; font-size: 1.6vh; color: #ffe58a; }
.fm-slots .slot { width: 16vh; height: 1.4vh; border-radius: .7vh; background: #0a0404; box-shadow: inset 0 .3vh .6vh #000, 0 0 0 .3vh #c8962a; }
.fm-card { position: absolute; left: 50%; top: calc(100% - 13vh); z-index: 5; width: 30vh; margin-left: -15vh; box-sizing: border-box; padding: 1.6vh; display: grid; gap: .6vh; text-align: center;
    border-radius: .6vh; background: #f4e6c4; color: #2a1406; box-shadow: 0 1.6vh 3vh rgba(0, 0, 0, .6), inset 0 0 0 .3vh rgba(138, 90, 16, .5); transform-origin: 50% 0; transform: scaleY(0); }
.fm.eject .fm-card { animation: fm-eject 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes fm-eject { from { transform: scaleY(0) translateY(-2vh); } to { transform: scaleY(1) translateY(0); } }
.fm-card b { font-family: var(--display); font-size: 2.4vh; }
.fm-card span { font-family: Inter, sans-serif; font-weight: 600; font-size: 2.3vh; line-height: 1.3; }
.fm-call { position: absolute; left: 70%; top: 36%; width: 34vw; transform: translate(-50%, -50%); display: grid; gap: 1.2vh; text-align: center; padding: 2.4vh 2vw; border-radius: 1.4vh; background: rgba(10, 2, 20, .72); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .5); animation: ft-in .8s ease-out .6s both; }
.fm-call b { font-family: var(--display); font-weight: 900; font-size: 3.8vh; line-height: 1.2; color: #fff; }
.fm-call em { font-style: normal; color: #ffd84a; }
.fm-call span { font-family: Inter, sans-serif; font-weight: 700; font-size: 2.2vh; color: rgba(255, 255, 255, .75); }
.fm-smoke { position: absolute; left: 34%; bottom: 0; z-index: 8; width: 70vh; height: 70vh; margin-left: -35vh; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.3);
    background: radial-gradient(circle, rgba(220, 200, 255, .85), rgba(120, 90, 160, .5) 40%, transparent 70%); }
.fm-smoke.puff { animation: fm-puff 1.4s ease-out both; }
@keyframes fm-puff { 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }

/* hats keep an edge and a sheen, so they read against the dark window */
.fm-fig .hat { stroke: #6a5a8a; stroke-width: 2.5; }

/* the QR panel sits on the right, as on the other screens */
.fm-qr { position: absolute; right: 3%; top: 52%; transform: translateY(-50%); animation: ft-in .8s ease-out .6s both; }

/* a sample reading says so, top left */
.ft-sampletag { position: absolute; left: 2%; top: 8.2vh; z-index: 7; padding: .6vh 1.4vw; border-radius: 99px; background: rgba(10, 2, 20, .75); box-shadow: inset 0 0 0 .2vh rgba(232, 194, 74, .6); font-family: Inter, sans-serif; font-weight: 800; font-size: 2vh; color: #ffe58a; letter-spacing: .03em; }
/* back out of a reading to the tent, and see it again later */
.fp-back { min-height: 48px; margin-top: .6rem; }
.fp-mine { min-height: 48px; }
.fp-choice:disabled { opacity: .45; filter: saturate(.6); }
