/* Thanksgiving pre-order card, closed looks drawn as their own piece (js/final-tg-closed.js, mounted by js/final-tg.js).
   Cream porcelain, gold hairlines, plum for type only. The pull-down and everything after it are untouched. */
.tg-tk > .ftg-x { display: none; }
.tg-tk[data-ftgx][data-stage="0"]:not(.ftg-going) > .tg-tk-head,
.tg-tk[data-ftgx][data-stage="0"]:not(.ftg-going) > .tg-tk-roll { display: none; }
.tg-tk[data-ftgx][data-stage="0"]:not(.ftg-going) > .ftg-x { display: grid; }
.tg-tk[data-ftgx].ftg-going > .tg-tk-head, .tg-tk[data-ftgx].ftg-going > .tg-tk-roll { animation: fxIn .42s cubic-bezier(.2, .9, .3, 1) both; }
.tg-tk[data-ftgx].ftg-going > .tg-tk-roll { animation-delay: .06s; }
@keyframes fxIn { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.tg-tk[data-ftgx].ftg-back > .ftg-x { animation: fxBack .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fxBack { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

.ftg-x { --cream: #fffaf2; --paper: #fdf6ea; --gold: #d4a843; --gold-d: #9a7420; --gold-l: #f0d48b; --plum: #4A1942; --ink: #2D1928; --line: #ead9bb; --rust: #a4471f; --rust-d: #6f2b16;
  position: relative; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--plum); font-family: "DM Sans", sans-serif; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.ftg-x:active { transform: scale(.975); }
.ftg-x:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 18px; }
.ftg-x small { display: block; font: 700 9.5px/1 "DM Sans", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
.ftg-x b { display: block; font: 600 29px/1 "Glaze Display", Georgia, serif; letter-spacing: -.01em; color: var(--plum); }
.ftg-x em { display: block; font: italic 500 19px/1.1 "Glaze Display", Georgia, serif; color: var(--gold-d); }
.ftg-x img { display: block; }
.ftg-x * { max-width: none; }

/* falling leaves shared by looks */
.fx-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx-leaf { position: absolute; top: -14px; width: 9px; height: 12px; border-radius: 80% 0 80% 0; background: #c46a2a; opacity: 0; animation: fxFall 7s linear infinite; }
.fx-leaf1 { left: 30%; background: #d4a843; animation-delay: 1.8s; animation-duration: 8s; }
.fx-leaf2 { left: 62%; background: #a4471f; animation-delay: 3.6s; }
.fx-leaf3 { left: 84%; background: #e0b25a; animation-delay: 5.2s; animation-duration: 9s; }
.fx-leaf0 { left: 12%; }
@keyframes fxFall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .95; } 50% { transform: translate(18px, 60px) rotate(160deg); } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(-6px, 130px) rotate(320deg); } }

/* ---------- 4. Keepsake box ---------- */
.ftg-x4 { grid-template-columns: minmax(0, 1fr) 132px; align-items: center; min-height: 136px; padding: 4px 0 6px 6px; }
.ftg-x4 .k-copy { position: relative; z-index: 2; }
.ftg-x4 .k-copy b { margin-top: 7px; }
.ftg-x4 .k-copy em { margin-top: 1px; }
.ftg-x4 .k-rule { display: block; width: 100%; max-width: 150px; height: 1px; margin: 9px 0 7px; background: linear-gradient(90deg, var(--gold), rgba(212, 168, 67, 0)); }
.ftg-x4 .k-date { display: block; font: 600 12.5px/1.25 "DM Sans", sans-serif; color: var(--ink); }
.ftg-x4 .k-hint { position: relative; display: inline-block; margin-top: 6px; font: italic 500 13px/1 "Glaze Display", Georgia, serif; color: var(--rust); }
.ftg-x4 .k-hint::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--gold); transform-origin: 0 50%; animation: kHint 4.8s linear 1.2s infinite; }
/* Nov 15 smooth: the underline used to animate transform-origin (0 to 100% over 0-84%, eased) next to scaleX, which kept it
   off the compositor. The same edges are traced with translateX + scaleX from a fixed left origin, sampled every 0.5% while
   it is visible with the ease-in-out already applied (so the rules below run it linear); edge error under 0.2px. */
@keyframes kHint { 0% { transform: translateX(0%) scaleX(0); } 20% { transform: translateX(11.686%) scaleX(0); } 20.5% { transform: translateX(12.263%) scaleX(0.0024); } 21% { transform: translateX(12.788%) scaleX(0.0099); } 21.5% { transform: translateX(13.247%) scaleX(0.0227); } 22% { transform: translateX(13.626%) scaleX(0.0409); } 22.5% { transform: translateX(13.914%) scaleX(0.0647); } 23% { transform: translateX(14.095%) scaleX(0.0941); } 23.5% { transform: translateX(14.158%) scaleX(0.1292); } 24% { transform: translateX(14.09%) scaleX(0.1697); } 24.5% { transform: translateX(13.885%) scaleX(0.2154); } 25% { transform: translateX(13.535%) scaleX(0.2659); } 25.5% { transform: translateX(13.042%) scaleX(0.3205); } 26% { transform: translateX(12.409%) scaleX(0.3784); } 26.5% { transform: translateX(11.647%) scaleX(0.4386); } 27% { transform: translateX(10.772%) scaleX(0.5); } 27.5% { transform: translateX(9.805%) scaleX(0.5614); } 28% { transform: translateX(8.771%) scaleX(0.6216); } 28.5% { transform: translateX(7.697%) scaleX(0.6795); } 29% { transform: translateX(6.612%) scaleX(0.7341); } 29.5% { transform: translateX(5.542%) scaleX(0.7846); } 30% { transform: translateX(4.513%) scaleX(0.8303); } 30.5% { transform: translateX(3.549%) scaleX(0.8708); } 31% { transform: translateX(2.67%) scaleX(0.9059); } 31.5% { transform: translateX(1.894%) scaleX(0.9353); } 32% { transform: translateX(1.235%) scaleX(0.9591); } 32.5% { transform: translateX(0.707%) scaleX(0.9773); } 33% { transform: translateX(0.319%) scaleX(0.9901); } 33.5% { transform: translateX(0.081%) scaleX(0.9976); } 34% { transform: translateX(0%) scaleX(1); } 70% { transform: translateX(0%) scaleX(1); } 70.5% { transform: translateX(0.232%) scaleX(0.9976); } 71% { transform: translateX(0.947%) scaleX(0.9901); } 71.5% { transform: translateX(2.169%) scaleX(0.9773); } 72% { transform: translateX(3.923%) scaleX(0.9591); } 72.5% { transform: translateX(6.226%) scaleX(0.9353); } 73% { transform: translateX(9.089%) scaleX(0.9059); } 73.5% { transform: translateX(12.514%) scaleX(0.8708); } 74% { transform: translateX(16.492%) scaleX(0.8303); } 74.5% { transform: translateX(20.998%) scaleX(0.7846); } 75% { transform: translateX(25.99%) scaleX(0.7341); } 75.5% { transform: translateX(31.406%) scaleX(0.6795); } 76% { transform: translateX(37.167%) scaleX(0.6216); } 76.5% { transform: translateX(43.176%) scaleX(0.5614); } 77% { transform: translateX(49.32%) scaleX(0.5); } 77.5% { transform: translateX(55.481%) scaleX(0.4386); } 78% { transform: translateX(61.539%) scaleX(0.3784); } 78.5% { transform: translateX(67.38%) scaleX(0.3205); } 79% { transform: translateX(72.902%) scaleX(0.2659); } 79.5% { transform: translateX(78.02%) scaleX(0.2154); } 80% { transform: translateX(82.666%) scaleX(0.1697); } 80.5% { transform: translateX(86.793%) scaleX(0.1292); } 81% { transform: translateX(90.367%) scaleX(0.0941); } 81.5% { transform: translateX(93.373%) scaleX(0.0647); } 82% { transform: translateX(95.806%) scaleX(0.0409); } 82.5% { transform: translateX(97.67%) scaleX(0.0227); } 83% { transform: translateX(98.979%) scaleX(0.0099); } 83.5% { transform: translateX(99.748%) scaleX(0.0024); } 84% { transform: translateX(100%) scaleX(0); } 100% { transform: translateX(100%) scaleX(0); } }
.ftg-x4 .k-scene { position: relative; width: 132px; height: 132px; perspective: 640px; perspective-origin: 50% 20%; }
.ftg-x4 .k-shadow { position: absolute; left: 14px; right: 10px; bottom: 10px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74, 25, 66, .28), rgba(74, 25, 66, 0)); }
.ftg-x4 .k-glow { position: absolute; left: 50%; top: 40px; width: 170px; height: 120px; margin-left: -85px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 110, .85), rgba(255, 184, 96, .35) 45%, rgba(255, 184, 96, 0)); opacity: 0; pointer-events: none; animation: kGlow 4.8s ease-in-out 1.2s infinite; }
.ftg-x4 .k-box { position: absolute; left: 54%; top: 62px; width: 0; height: 0; transform-style: preserve-3d; transform: scale3d(.82, .82, .82) rotateX(-24deg) rotateY(-30deg); }
.ftg-x4 .k-f { position: absolute; left: 0; top: 0; display: block; backface-visibility: visible; }
/* base: 112 wide, 76 deep, 46 tall; rim at y = 0 */
.ftg-x4 .k-front { width: 112px; height: 46px; transform: translate3d(-56px, 0, 38px); background: linear-gradient(180deg, #fffdf8, #f3e6cf); box-shadow: inset 0 0 0 1px rgba(154, 116, 32, .35); }
.ftg-x4 .k-front i { position: absolute; left: 0; right: 0; top: 17px; height: 3px; background: linear-gradient(90deg, #b88a2c, var(--gold-l) 45%, #b88a2c); }
.ftg-x4 .k-right { width: 76px; height: 46px; transform: translate3d(18px, 0, 0) rotateY(90deg); background: linear-gradient(180deg, #f1e2c6, #ddc8a2); box-shadow: inset 0 0 0 1px rgba(154, 116, 32, .3); }
.ftg-x4 .k-left { width: 76px; height: 46px; transform: translate3d(-94px, 0, 0) rotateY(90deg); background: #e9d8b8; }
.ftg-x4 .k-back { width: 112px; height: 46px; transform: translate3d(-56px, 0, -38px); background: linear-gradient(180deg, #f6ead5, #e8d6b4); }
.ftg-x4 .k-floor { width: 112px; height: 76px; overflow: hidden; transform: translate3d(-56px, -32px, 0) rotateX(90deg); background: #e8d6b4; }
.ftg-x4 .k-floor img { width: 100%; height: 100%; object-fit: cover; transform: rotate(180deg) scale(1.05); }
/* lid: hinge at the back top edge; 118 x 82, lip 15 */
.ftg-x4 .k-lid { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; transform: translate3d(0, 0, -38px) rotateX(0deg); animation: kPeek 4.8s cubic-bezier(.45, 0, .2, 1) 1.2s infinite; }
.ftg-x4 .k-ltop { width: 118px; height: 82px; transform: translate3d(-59px, -46px, 38px) rotateX(90deg); background: radial-gradient(120% 90% at 30% 20%, #c0602e, #92401f 55%, #6f2b16); box-shadow: inset 0 0 0 1.5px rgba(240, 212, 139, .85), inset 0 0 0 5px rgba(111, 43, 22, .6), inset 0 0 0 6px rgba(240, 212, 139, .55); backface-visibility: hidden; }
.ftg-x4 .k-lunder { width: 118px; height: 82px; transform: translate3d(-59px, -45.5px, 38px) rotateX(-90deg); background: radial-gradient(90% 80% at 50% 40%, #fffaf0, #f6e3c2); backface-visibility: hidden; }
.ftg-x4 .k-mono { position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold-l); box-shadow: 0 0 0 2.5px rgba(111, 43, 22, .7), 0 0 0 3.5px rgba(240, 212, 139, .6); color: var(--gold-l); font: italic 600 19px/1 "Glaze Display", Georgia, serif; text-shadow: 0 1px 0 rgba(60, 20, 8, .5); }
.ftg-x4 .k-lfront { width: 118px; height: 15px; transform: translate3d(-59px, -5px, 79px); background: linear-gradient(180deg, #a84b23, #7a3017); }
.ftg-x4 .k-lfront i { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: linear-gradient(90deg, #b88a2c, var(--gold-l) 50%, #b88a2c); }
.ftg-x4 .k-lright { width: 82px; height: 15px; transform: translate3d(18px, -5px, 38px) rotateY(90deg); background: linear-gradient(180deg, #8b3a1b, #642511); }
.ftg-x4 .k-lleft { width: 82px; height: 15px; transform: translate3d(-100px, -5px, 38px) rotateY(90deg); background: #6f2b16; }
@keyframes kPeek { 0%, 52%, 100% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 62% { transform: translate3d(0, 0, -38px) rotateX(30deg); } 76% { transform: translate3d(0, 0, -38px) rotateX(26deg); } 88% { transform: translate3d(0, 0, -38px) rotateX(-1.5deg); } 94% { transform: translate3d(0, 0, -38px) rotateX(1deg); } }
@keyframes kGlow { 0%, 54%, 92%, 100% { opacity: 0; } 64%, 78% { opacity: .9; } }
.ftg-x4 .k-steam { position: absolute; left: 50%; top: 22px; width: 60px; height: 40px; margin-left: -30px; pointer-events: none; }
.ftg-x4 .k-steam i { position: absolute; bottom: 0; width: 8px; height: 30px; border-left: 2px solid rgba(255, 255, 255, .95); border-radius: 50%; filter: blur(1.2px); opacity: 0; animation: kSteam 4.8s ease-out 1.2s infinite; }
.ftg-x4 .k-steam i:nth-child(1) { left: 14px; }
.ftg-x4 .k-steam i:nth-child(2) { left: 28px; animation-delay: 1.35s; height: 36px; }
.ftg-x4 .k-steam i:nth-child(3) { left: 42px; animation-delay: 1.5s; }
@keyframes kSteam { 0%, 58% { opacity: 0; transform: translateY(14px) scaleY(.6); } 70% { opacity: .9; } 90%, 100% { opacity: 0; transform: translateY(-14px) scaleY(1.1) skewX(-10deg); } }
/* tap: the lid swings open on the back hinge */
.ftg-play .ftg-x4 .k-lid { animation: kOpen .72s cubic-bezier(.3, 1.35, .45, 1) forwards; }
.ftg-play .ftg-x4 .k-glow { animation: kBloom .72s ease-out forwards; }
.ftg-play .ftg-x4 .k-steam i { animation: kSteam 1s ease-out forwards; }
.ftg-play .ftg-x4 .k-copy { animation: kCopyOut .7s ease-in .1s forwards; }
@keyframes kOpen { 0% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 100% { transform: translate3d(0, 0, -38px) rotateX(112deg); } }
@keyframes kBloom { 0% { opacity: .3; transform: scale(.8); } 100% { opacity: 1; transform: scale(1.25); } }
@keyframes kCopyOut { to { opacity: .35; } }

/* ---------- 5. Flip calendar ---------- */
.ftg-x5 { grid-template-columns: 106px 1fr; column-gap: 18px; align-items: center; min-height: 140px; padding: 10px 2px 6px; }
.ftg-x5 .c-cal { position: relative; width: 106px; height: 122px; perspective: 600px; }
.ftg-x5 .c-rings { position: absolute; left: 0; right: 0; top: -6px; z-index: 4; display: flex; justify-content: center; gap: 36px; }
.ftg-x5 .c-rings i { width: 9px; height: 18px; border-radius: 6px; border: 2.5px solid #b88a2c; border-bottom-color: transparent; background: linear-gradient(90deg, rgba(255, 255, 255, .35), transparent); box-shadow: 0 1px 0 rgba(255, 240, 200, .9) inset; }
.ftg-x5 .c-under { position: absolute; inset: 6px 0 -4px; border-radius: 6px 6px 12px 12px; background: #efe1c6; box-shadow: 0 3px 0 #e2cfa9, 0 6px 0 #d8c398, 0 18px 22px -12px rgba(74, 25, 66, .45); z-index: 0; }
.ftg-x5 .c-page { position: absolute; inset: 4px 0 0; z-index: 2; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: 6px 6px 12px 12px; background: linear-gradient(180deg, #fffdf8, var(--paper)); box-shadow: inset 0 0 0 1px var(--line); transform-origin: 50% 0; }
.ftg-x5 .c-mon { display: block; width: 100%; padding: 12px 0 6px; background: linear-gradient(180deg, var(--rust), var(--rust-d)); color: #fff1d6; font: 700 9.5px/1 "DM Sans", sans-serif; letter-spacing: .22em; text-transform: uppercase; text-align: center; box-shadow: inset 0 -1.5px 0 var(--gold-l); }
.ftg-x5 .c-flap { position: relative; display: block; width: 74px; height: 62px; margin-top: 8px; perspective: 300px; }
.ftg-x5 .c-flap > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: linear-gradient(180deg, #fffaf2, #f7ecd8); border-radius: 6px; }
.ftg-x5 .c-flap i { position: absolute; left: 0; right: 0; height: 62px; font: 600 54px/62px "Glaze Display", Georgia, serif; font-style: normal; color: var(--plum); text-align: center; letter-spacing: -.02em; }
.ftg-x5 .c-top, .ftg-x5 .c-ftop { top: 0; border-radius: 6px 6px 0 0 !important; box-shadow: inset 0 -1px 0 rgba(74, 25, 66, .18); }
.ftg-x5 .c-bot, .ftg-x5 .c-fbot { bottom: 0; border-radius: 0 0 6px 6px !important; }
.ftg-x5 .c-top i, .ftg-x5 .c-ftop i { top: 0; }
.ftg-x5 .c-bot i, .ftg-x5 .c-fbot i { top: -31px; }
.ftg-x5 .c-ftop { transform-origin: 50% 100%; z-index: 2; backface-visibility: hidden; }
.ftg-x5 .c-fbot { transform-origin: 50% 0; z-index: 2; transform: rotateX(90deg); backface-visibility: hidden; }
.ftg-x5 .c-flap.is-flip .c-ftop { animation: cTop .3s cubic-bezier(.55, 0, .9, .4) forwards; }
.ftg-x5 .c-flap.is-flip .c-fbot { animation: cBot .32s cubic-bezier(.2, .9, .3, 1.25) .29s forwards; }
.ftg-x5 .c-flap.is-flip .c-bot::after { content: ""; position: absolute; inset: 0; background: rgba(74, 25, 66, .12); animation: cShade .6s ease-out forwards; }
@keyframes cTop { to { transform: rotateX(-90deg); filter: brightness(.85); } }
@keyframes cBot { from { transform: rotateX(90deg); filter: brightness(.85); } to { transform: rotateX(0); filter: none; } }
@keyframes cShade { to { opacity: 0; } }
.ftg-x5 .c-flap::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; margin-top: -.75px; background: linear-gradient(90deg, #b88a2c, var(--gold-l), #b88a2c); z-index: 3; }
.ftg-x5 .c-day { position: relative; display: block; width: 100%; height: 16px; margin-top: 6px; }
.ftg-x5 .c-day i { position: absolute; left: 0; right: 0; font: 700 9.5px/16px "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold-d); text-align: center; transition: opacity .35s .3s, transform .35s .3s; }
.ftg-x5 .c-d2 { opacity: 0; transform: translateY(6px); }
.ftg-x5 .c-cal[data-day="26"] .c-d1 { opacity: 0; transform: translateY(-6px); }
.ftg-x5 .c-cal[data-day="26"] .c-d2 { opacity: 1; transform: none; }
.ftg-x5 .c-copy b { margin-top: 7px; font-size: 28px; }
.ftg-x5 .c-copy em { font-size: 18px; }
.ftg-x5 .c-coins { display: flex; align-items: center; margin-top: 10px; }
.ftg-x5 .c-coins img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-left: -9px; box-shadow: 0 0 0 2.5px var(--cream), 0 0 0 3.5px rgba(212, 168, 67, .7), 0 6px 10px -6px rgba(74, 25, 66, .6); animation: cBob 3.2s ease-in-out infinite; }
.ftg-x5 .c-coins img:first-child { margin-left: 0; }
.ftg-x5 .c-coins img:nth-child(2) { animation-delay: .25s; }
.ftg-x5 .c-coins img:nth-child(3) { animation-delay: .5s; }
@keyframes cBob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-4px); } 90% { transform: translateY(0); } }
.ftg-x5 .c-coins span { margin-left: 10px; font: 700 9.5px/1.2 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
/* tap: the page tears up over the rings */
.ftg-play .ftg-x5 .c-page { animation: cTear .62s cubic-bezier(.5, 0, .7, .4) forwards; }
.ftg-play .ftg-x5 .c-copy { animation: kCopyOut .6s ease-in forwards; }
@keyframes cTear { 0% { transform: none; } 25% { transform: rotateX(-14deg) translateY(-2px); } 100% { transform: rotateX(-160deg) translateY(-6px); opacity: 0; } }

/* ---------- 6. Bakery window ---------- */
.ftg-x6 { grid-template-columns: 1fr; padding: 10px 0 2px; }
.ftg-x6 .w-win { position: relative; display: block; height: 104px; filter: drop-shadow(0 12px 14px rgba(74, 25, 66, .18)); }
.ftg-x6 .w-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: #e8d6b4; }
.ftg-x6 .w-photo { position: absolute; left: -4%; top: 0; width: 108%; height: auto; transform: translateY(-46%); animation: wPan 18s ease-in-out infinite alternate; }
@keyframes wPan { from { transform: translateY(-40%) scale(1); } to { transform: translateY(-62%) scale(1.08); } }
.ftg-x6 .w-sheen { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 250, 235, .45) 45%, rgba(255, 255, 255, 0) 60%); transform: translateX(-120%); animation: wSheen 5.5s ease-in-out 1.5s infinite; }
@keyframes wSheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.ftg-x6 .w-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45, 25, 40, 0) 55%, rgba(45, 25, 40, .22)); }
.ftg-x6 .w-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ftg-x6 .w-line path { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ftg-x6 .w-seal { position: absolute; right: -6px; top: -14px; z-index: 3; display: grid; place-content: center; width: 70px; height: 70px; border-radius: 50%; text-align: center; color: var(--rust-d);
  background: radial-gradient(circle at 32% 26%, #fff3c8, #f0d48b 30%, #d4a843 62%, #a87a1c); box-shadow: inset 0 0 0 3px rgba(255, 246, 220, .55), inset 0 0 0 4px rgba(154, 116, 32, .55), 0 10px 16px -8px rgba(90, 55, 10, .6); transform: rotate(-10deg); overflow: hidden; animation: wSeal 5.5s ease-in-out 1.5s infinite; }
.ftg-x6 .w-seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(111, 43, 22, .45); margin: 7px; }
.ftg-x6 .w-seal::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); transform: translateX(-100%); animation: wFoil 5.5s ease-in-out 1.9s infinite; }
@keyframes wFoil { 0%, 60% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }
@keyframes wSeal { 0%, 70%, 100% { transform: rotate(-10deg) scale(1); } 78% { transform: rotate(-4deg) scale(1.06); } 86% { transform: rotate(-12deg) scale(.99); } 93% { transform: rotate(-9deg) scale(1); } }
.ftg-x6 .w-seal i { font: 700 7.5px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; font-style: normal; }
.ftg-x6 .w-seal b { margin: 2px 0 1px; font: 600 17px/1 "Glaze Display", Georgia, serif; color: var(--rust-d); }
.ftg-x6 .w-seal i + b + i { font: italic 600 12px/1 "Glaze Display", Georgia, serif; letter-spacing: 0; text-transform: none; }
.ftg-x6 .w-copy { display: block; padding: 12px 4px 0; text-align: center; }
.ftg-x6 .w-copy b { font-size: 25px; }
.ftg-x6 .w-copy em { margin-top: 3px; font-size: 14px; white-space: nowrap; }
.ftg-x6 .fx-leaf { top: -12px; }
/* tap: the window opens wider, the sticker lifts away */
.ftg-play .ftg-x6 .w-win { animation: wOpen .68s cubic-bezier(.3, 1.2, .4, 1) forwards; }
.ftg-play .ftg-x6 .w-photo { animation: wZoom .68s ease-out forwards; }
.ftg-play .ftg-x6 .w-seal { animation: wFly .6s cubic-bezier(.4, 0, .6, 1) forwards; }
.ftg-play .ftg-x6 .w-copy { animation: kCopyOut .6s ease-in forwards; }
@keyframes wOpen { 50% { transform: scale(1.03); } 100% { transform: scale(1.02); } }
@keyframes wZoom { to { transform: translateY(-52%) scale(1.22); } }
@keyframes wFly { 0% { transform: rotate(-10deg); } 30% { transform: rotate(-20deg) scale(1.12); } 100% { transform: translate(30px, -40px) rotate(40deg) scale(.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ftg-x *, .ftg-x *::before, .ftg-x *::after, .tg-tk[data-ftgx] > * { animation: none !important; transition: none !important; }
}

/* ---------- Round 2 ---------- */
/* 7 + 8. Porcelain keepsake (inherits the 4 box geometry) */
.ftg-kp { grid-template-columns: minmax(0, 1fr) 136px; min-height: 140px; padding: 2px 0 12px 6px; }
.ftg-kp .k-shelf { position: absolute; left: 6px; right: 0; bottom: 4px; height: 1px; background: linear-gradient(90deg, rgba(212, 168, 67, 0), rgba(212, 168, 67, .75) 18%, rgba(212, 168, 67, .75) 82%, rgba(212, 168, 67, 0)); }
.ftg-kp .k-shelf::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--cream); border: 1px solid rgba(212, 168, 67, .9); }
.ftg-kp .k-copy b { margin-top: 8px; }
.ftg-kp .k-when { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; font: 600 21px/1 "Glaze Display", Georgia, serif; color: var(--plum); }
.ftg-kp .k-when i { font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--gold-d); }
.ftg-kp .k-hint { margin-top: 9px; }
.ftg-kp .k-scene { width: 136px; height: 136px; }
.ftg-kp .k-box { left: 52%; top: 70px; transform: scale3d(.84, .84, .84) rotateX(-22deg) rotateY(-32deg); }
/* porcelain: cream body, gold hairlines, a thin autumn band */
.ftg-kp .k-front { background: linear-gradient(180deg, rgba(74, 25, 66, .16), rgba(74, 25, 66, 0) 9px), linear-gradient(180deg, #fffefa, #f4e9d6 70%, #ecdcc0); box-shadow: inset 0 0 0 1px rgba(184, 138, 44, .55), inset 0 -2px 0 rgba(184, 138, 44, .25); }
.ftg-kp .k-front i { top: 22px; height: 4px; background: linear-gradient(180deg, #b5602a, #8e3f1c); box-shadow: 0 -1px 0 var(--gold-l), 0 1px 0 var(--gold-l); }
.ftg-kp .k-front b { position: absolute; left: 50%; top: 18px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c8, #d4a843 60%, #9a7420); box-shadow: 0 1px 2px rgba(60, 30, 10, .4); }
.ftg-kp .k-right { background: linear-gradient(180deg, rgba(74, 25, 66, .2), rgba(74, 25, 66, 0) 9px), linear-gradient(180deg, #efe3cb, #dcc8a3); box-shadow: inset 0 0 0 1px rgba(184, 138, 44, .45); }
.ftg-kp .k-right i { position: absolute; left: 0; right: 0; top: 22px; height: 4px; background: #7a3418; box-shadow: 0 -1px 0 #d9b35c, 0 1px 0 #d9b35c; }
.ftg-kp .k-floor img { filter: brightness(1.12) saturate(1.08); }
.ftg-kp .k-ltop { background: radial-gradient(130% 100% at 25% 15%, #ffffff, #fbf4e6 45%, #efe1c6); box-shadow: inset 0 0 0 1.5px rgba(212, 168, 67, .95), inset 0 0 0 5px #fbf3e3, inset 0 0 0 6px rgba(212, 168, 67, .6); }
.ftg-kp .k-mono { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #6a2a5f, #4A1942 70%); box-shadow: 0 0 0 2px #d4a843, 0 0 0 4px #fbf3e3, 0 0 0 5px rgba(212, 168, 67, .7); color: #f0d48b; font-size: 22px; text-shadow: none; }
.ftg-kp .k-lfront { background: linear-gradient(180deg, #fffdf8, #efe2c8); box-shadow: inset 0 0 0 1px rgba(184, 138, 44, .6); }
.ftg-kp .k-lfront i { top: 6px; height: 1.5px; background: var(--gold); }
.ftg-kp .k-lright { background: linear-gradient(180deg, #f1e4ca, #ddc9a4); box-shadow: inset 0 0 0 1px rgba(184, 138, 44, .5); }
.ftg-kp .k-lleft { background: #e6d5b4; }
.ftg-kp .k-lunder { background: radial-gradient(90% 80% at 50% 40%, #fffaf0, #f3dfbc); }
.ftg-kp .k-glow { top: 46px; background: radial-gradient(closest-side, rgba(255, 214, 140, .7), rgba(255, 196, 120, .25) 50%, rgba(255, 196, 120, 0)); animation: kGlow2 6s ease-in-out 1s infinite; }
.ftg-kp .k-lid { animation: kPeek2 6s cubic-bezier(.45, 0, .2, 1) 1s infinite; }
.ftg-kp .k-steam i { animation: kSteam2 6s ease-out 1s infinite; }
.ftg-kp .k-steam i:nth-child(2) { animation-delay: 1.2s; }
.ftg-kp .k-steam i:nth-child(3) { animation-delay: 1.35s; }
.ftg-kp .k-hint::after { animation: kHint 6s linear 1s infinite; }
@keyframes kPeek2 { 0%, 46%, 100% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 58% { transform: translate3d(0, 0, -38px) rotateX(58deg); } 74% { transform: translate3d(0, 0, -38px) rotateX(54deg); } 86% { transform: translate3d(0, 0, -38px) rotateX(-1.5deg); } 92% { transform: translate3d(0, 0, -38px) rotateX(.8deg); } }
@keyframes kGlow2 { 0%, 48%, 88%, 100% { opacity: 0; } 60%, 76% { opacity: .85; } }
@keyframes kSteam2 { 0%, 52% { opacity: 0; transform: translateY(14px) scaleY(.6); } 64% { opacity: .85; } 84%, 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1) skewX(-10deg); } }
.ftg-play .ftg-kp .k-lid { animation: kOpen .7s cubic-bezier(.3, 1.35, .45, 1) forwards; }
.ftg-play .ftg-kp .k-glow { animation: kBloom .7s ease-out forwards; }
.ftg-play .ftg-kp .k-steam i { animation: kSteam 1s ease-out forwards; }
/* 8. gift tag on a gold thread, tied to the lid's front edge */
.ftg-kt .k-tag { position: absolute; left: 30px; top: 66px; z-index: 3; width: 58px; transform-origin: 6px 0; animation: kSwing 6s ease-in-out 1s infinite; }
.ftg-kt .k-thread { position: absolute; left: 5px; top: 0; width: 1.5px; height: 18px; background: linear-gradient(180deg, #b88a2c, var(--gold-l)); transform: rotate(-8deg); transform-origin: 0 0; }
.ftg-kt .k-card { position: absolute; left: 0; top: 15px; display: grid; justify-items: center; width: 58px; padding: 8px 4px 6px 10px; color: var(--plum);
  background: linear-gradient(180deg, #fffefa, #f6ead4); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); filter: drop-shadow(0 4px 6px rgba(74, 25, 66, .3)); transform: rotate(-6deg); }
.ftg-kt .k-card::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #e9d8b8; box-shadow: inset 0 0 0 1px #b88a2c; }
.ftg-kt .k-card::after { content: ""; position: absolute; inset: 3px 3px 3px 12px; border: 1px solid rgba(212, 168, 67, .6); }
.ftg-kt .k-card i { font: 700 7px/1 "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold-d); }
.ftg-kt .k-card b { margin: 2px 0 0; font: 600 15px/1 "Glaze Display", Georgia, serif; color: var(--plum); }
.ftg-kt .k-card em { font: italic 600 11px/1.1 "Glaze Display", Georgia, serif; color: var(--rust); }
@keyframes kSwing { 0%, 46%, 100% { transform: rotate(0); } 54% { transform: rotate(-14deg) translateY(-6px); } 66% { transform: rotate(9deg) translateY(-6px); } 78% { transform: rotate(-5deg); } 88% { transform: rotate(2deg); } }
.ftg-play .ftg-kt .k-tag { animation: kTagFly .7s cubic-bezier(.4, 0, .5, 1) forwards; }
@keyframes kTagFly { 30% { transform: rotate(-24deg) translateY(-10px); } 100% { transform: rotate(16deg) translateY(6px); opacity: 0; } }

/* 9. Flip calendar, second pass */
.ftg-c2 .c-flap::after { left: 0; right: 0; height: 1px; margin-top: -.5px; background: rgba(74, 25, 66, .12); box-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.ftg-c2 .c-flap > span { background: transparent; }
.ftg-c2 .c-day { overflow: hidden; }
.ftg-c2 .c-roll { display: block; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1) .28s; }
.ftg-c2 .c-roll i { position: static; display: block; height: 16px; opacity: 1; transform: none; transition: none; }
.ftg-c2 .c-cal[data-day="26"] .c-roll { transform: translateY(-16px); }
.ftg-c2 .c-copy b { margin-top: 6px; }
.ftg-c2 .c-when { display: block; margin-top: 9px; font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); }
.ftg-c2 .c-when b { display: inline; margin: 0 0 0 4px; font: 600 19px/1 "Glaze Display", Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--plum); }
.ftg-c2 .c-cue { position: relative; display: inline-block; margin-top: 8px; font: italic 500 13px/1 "Glaze Display", Georgia, serif; color: var(--rust); }
.ftg-c2 .c-cue::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--gold); transform-origin: 0 50%; animation: kHint 6.4s linear 1s infinite; }
.ftg-play .ftg-c2 .c-page { animation: cFall .56s cubic-bezier(.5, 0, .75, .3) forwards; transform-origin: 20% 0; }
@keyframes cFall { 0% { transform: none; } 22% { transform: rotate(-4deg) translateY(2px); } 100% { transform: rotate(12deg) translate(14px, 70px); opacity: 0; } }
.ftg-play .ftg-c2 .c-under { animation: cUnder .5s ease-out .15s both; }
@keyframes cUnder { to { box-shadow: 0 3px 0 #e2cfa9, 0 6px 0 #d8c398, 0 0 24px 4px rgba(232, 194, 90, .7); } }
.ftg-kt .k-tag { left: -6px; top: 74px; width: 70px; }
.ftg-kt .k-thread { left: 6px; height: 16px; transform: rotate(-38deg); }
.ftg-kt .k-card { width: 70px; top: 10px; padding: 7px 4px 6px 12px; }
.ftg-kt .k-card b, .ftg-kt .k-card em { white-space: nowrap; }
.ftg-kt .k-card b { font-size: 16px; }
.ftg-kt .k-scene { width: 136px; }
.ftg-c2 .c-flap::after { display: none; }
.ftg-c2 .c-top, .ftg-c2 .c-ftop { box-shadow: none; }

/* ---------- Round 3: keepsake tuned (10), center stage (11), flavor reveal (12) ---------- */
.ftg-k3 .k-copy small i { font-style: normal; color: var(--gold); padding: 0 2px; }
.ftg-k3 .k-floor { transform: translate3d(-56px, -36px, 0) rotateX(90deg); }
.ftg-k3 .k-floor img { filter: brightness(1.18) saturate(1.12) contrast(1.04); }
.ftg-k3 .k-lfront { height: 18px; }
.ftg-k3 .k-lright, .ftg-k3 .k-lleft { height: 18px; }
.ftg-k3 .k-front b { top: 16px; width: 20px; height: 9px; margin-left: -10px; border-radius: 3px; background: linear-gradient(180deg, #f6dd9a, #d4a843 55%, #9a7420); box-shadow: inset 0 0 0 1px rgba(255, 246, 220, .6), 0 1px 2px rgba(60, 30, 10, .45); }
.ftg-k3 .k-front b::after { content: ""; position: absolute; left: 50%; top: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #7a5410; }
.ftg-k3 .k-steam i { border-left-color: rgba(255, 255, 255, .75); }
.ftg-k3 .k-lid { animation: kPeek3 7s cubic-bezier(.45, 0, .2, 1) 1s infinite; }
.ftg-k3 .k-glow { animation: kGlow3 7s ease-in-out 1s infinite; }
.ftg-k3 .k-steam i { animation: kSteam3 7s ease-out 1s infinite; }
.ftg-k3 .k-steam i:nth-child(2) { animation-delay: 1.2s; }
.ftg-k3 .k-steam i:nth-child(3) { animation-delay: 1.35s; }
.ftg-k3 .k-hint::after { animation: kHint 7s linear 1s infinite; }
@keyframes kPeek3 { 0%, 44%, 100% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 54% { transform: translate3d(0, 0, -38px) rotateX(76deg); } 58% { transform: translate3d(0, 0, -38px) rotateX(70deg); } 76% { transform: translate3d(0, 0, -38px) rotateX(72deg); } 86% { transform: translate3d(0, 0, -38px) rotateX(-1.5deg); } 91% { transform: translate3d(0, 0, -38px) rotateX(.8deg); } }
@keyframes kGlow3 { 0%, 46%, 86%, 100% { opacity: 0; } 56%, 76% { opacity: .9; } }
@keyframes kSteam3 { 0%, 52% { opacity: 0; transform: translateY(14px) scaleY(.6); } 62% { opacity: .7; } 82%, 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1) skewX(-10deg); } }
/* tap: wide spring open, light, sparks */
.ftg-k3 .k-sparks { position: absolute; left: 52%; top: 56px; width: 0; height: 0; pointer-events: none; }
.ftg-k3 .k-sparks i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #e8c25a 60%, rgba(212, 168, 67, 0)); opacity: 0; }
.ftg-play .ftg-k3 .k-sparks i { animation: kSpark .62s cubic-bezier(.2, .8, .3, 1) .16s forwards; }
@keyframes kSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1.1); } }
.ftg-k3 .k-rays { position: absolute; left: 50%; top: 52px; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .38) 0 7deg, rgba(255, 214, 140, 0) 7deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
.ftg-play .ftg-k3 .k-lid { animation: kOpen3 .62s cubic-bezier(.25, 1.45, .45, 1) forwards; }
@keyframes kOpen3 { 0% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 100% { transform: translate3d(0, 0, -38px) rotateX(118deg); } }
.ftg-play .ftg-k3 .k-glow { animation: kBloom .62s ease-out forwards; }
.ftg-play .ftg-k3 .k-rays { animation: kRays .9s ease-out .1s forwards; }
@keyframes kRays { 0% { opacity: 0; transform: rotate(0) scale(.6); } 40% { opacity: 1; } 100% { opacity: .85; transform: rotate(24deg) scale(1.05); } }
.ftg-play .ftg-k3 .k-floor img { animation: kLit .6s ease-out forwards; }
@keyframes kLit { to { filter: brightness(1.35) saturate(1.2); } }
.ftg-play .ftg-k3 .k-copy { animation: none; }
/* handover: the pull-down rises out of the box instead of a plain fade */
.tg-tk[data-ftgx="10"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="11"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="12"].ftg-going > .tg-tk-head { animation: kEmerge .5s cubic-bezier(.2, 1.2, .35, 1) both; transform-origin: 78% 0; }
.tg-tk[data-ftgx="10"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="11"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="12"].ftg-going > .tg-tk-roll { animation: kEmerge .55s cubic-bezier(.2, 1.1, .35, 1) .05s both; transform-origin: 78% 0; }
@keyframes kEmerge { from { opacity: 0; transform: translateY(10px) scale(.6); } 60% { opacity: 1; } }
/* 11. center stage */
.ftg-k3c .k-scene { transition: none; }
.ftg-play .ftg-k3c .k-scene { animation: kStage .9s cubic-bezier(.3, 1.1, .4, 1) forwards; z-index: 3; }
@keyframes kStage { 0% { transform: none; } 45%, 100% { transform: translateX(var(--cx, -90px)) scale(1.3); } }
.ftg-play .ftg-k3c .k-copy, .ftg-play .ftg-k3c .k-shelf { animation: kFade .35s ease-in forwards; }
@keyframes kFade { to { opacity: 0; transform: translateX(-10px); } }
.ftg-play .ftg-k3c .k-lid { animation: kOpen3 .6s cubic-bezier(.25, 1.45, .45, 1) .32s both; }
.ftg-play .ftg-k3c .k-rays { animation: kRays .9s ease-out .4s both; }
.ftg-play .ftg-k3c .k-glow { animation: kBloom .6s ease-out .32s both; }
.ftg-play .ftg-k3c .k-sparks i { animation-delay: .5s; }
/* 12. flavor reveal: the hint names what is inside while the lid is up */
.ftg-k3f .k-floor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: rotate(180deg) scale(1.15); opacity: 0; }
.ftg-k3f .k-floor img.is-on { opacity: 1; }
.ftg-k3f .k-hint { display: inline-grid; }
.ftg-k3f .k-hint > span { grid-area: 1 / 1; white-space: nowrap; }
.ftg-k3f .k-h1 { animation: kH1 7s ease-in-out 1s infinite; }
.ftg-k3f .k-h2 { opacity: 0; animation: kH2 7s ease-in-out 1s infinite; }
.ftg-k3f .k-hint::after { display: none; }
@keyframes kH1 { 0%, 48%, 88%, 100% { opacity: 1; transform: none; } 54%, 80% { opacity: 0; transform: translateY(-6px); } }
@keyframes kH2 { 0%, 50%, 84%, 100% { opacity: 0; transform: translateY(6px); } 56%, 78% { opacity: 1; transform: none; } }
/* Opening the card must never move the page: scroll anchoring is paused while it opens (it jumped ~170px). */
html.ftg-hold, html.ftg-hold body { overflow-anchor: none; }

/* ---------- Round 4: keepsake reveal (13 center stage, 14 in place, 15 pecan center stage) ---------- */
.ftg-x4 .k-f { outline: 1px solid transparent; }
/* no blank frame at the handover: the drawn piece fades out over the pull-down as it arrives */
.tg-tk[data-ftgx] { position: relative; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k4 { display: grid; position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none; animation: k4Out .24s ease-in forwards; }
@keyframes k4Out { to { opacity: 0; transform: translateY(-10px) scale(.94); } }
.ftg-k4 .k-floor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: rotate(180deg) scale(1.38); opacity: 0; transition: opacity .2s; filter: brightness(1.06) saturate(1.1) contrast(1.06); }
.ftg-k4 .k-floor img.is-on { opacity: 1; }
.ftg-k4 .k-hint { margin-top: 8px; }
.ftg-k4 .k-flav { display: flex; align-items: center; gap: 6px; height: 15px; margin-top: 5px; font: 600 11px/1 "DM Sans", sans-serif; color: var(--gold-d); opacity: 0; animation: k4Flav 7s ease-in-out 1s infinite; }
.ftg-k4 .k-flav i { width: 6px; height: 8px; border-radius: 80% 0 80% 0; background: #c46a2a; transform: rotate(20deg); }
@keyframes k4Flav { 0%, 50%, 84%, 100% { opacity: 0; transform: translateY(4px); } 56%, 78% { opacity: 1; transform: none; } }
.ftg-k4 { min-height: 152px; }
/* touch answers at once: the lid cracks open and the box rises a touch */
.ftg-press .ftg-k4 .k-scene { transform: translateY(-3px) scale(1.04); transition: transform .12s ease-out; }
.ftg-press .ftg-k4 .k-lid { animation: none; transform: translate3d(0, 0, -38px) rotateX(14deg); transition: transform .12s ease-out; }
.ftg-press .ftg-k4 .k-glow { animation: none; opacity: .5; }
/* 13 + 15: center stage, quick: words fade first, then the box arcs up and over to the middle, then opens */
.ftg-k4c .k-scene { transition: none; }
.ftg-play .ftg-k4c .k-copy, .ftg-play .ftg-k4c .k-shelf { animation: k4Words .2s ease-in forwards; }
@keyframes k4Words { to { opacity: 0; transform: translateX(-12px); } }
.ftg-play .ftg-k4c .k-scene { animation: k4Stage .5s cubic-bezier(.3, 1.15, .4, 1) .1s both; z-index: 3; }
@keyframes k4Stage { 0% { transform: translateY(-3px) scale(1.04); } 50% { transform: translate(calc(var(--cx, -90px) * .55), -16px) scale(1.2); } 100% { transform: translate(var(--cx, -90px), -4px) scale(1.28); } }
.ftg-play .ftg-k4c .k-lid { animation: kOpen3 .52s cubic-bezier(.25, 1.45, .45, 1) .26s both; }
.ftg-play .ftg-k4c .k-rays { animation: kRays .8s ease-out .3s both; }
.ftg-play .ftg-k4c .k-glow { animation: kBloom .52s ease-out .26s both; }
.ftg-play .ftg-k4c .k-sparks i { animation-delay: .4s; }
.ftg-play .ftg-k4c .k-flav { animation: k4Words .2s ease-in forwards; }
/* 14: in place, starts from the cracked lid */
.ftg-play .ftg-k4:not(.ftg-k4c) .k-lid { animation: kOpen4 .56s cubic-bezier(.25, 1.45, .45, 1) forwards; }
@keyframes kOpen4 { 0% { transform: translate3d(0, 0, -38px) rotateX(14deg); } 100% { transform: translate3d(0, 0, -38px) rotateX(118deg); } }
.ftg-play .ftg-k4:not(.ftg-k4c) .k-scene { transform: translateY(-3px) scale(1.04); }

/* ---------- Round 5: center stage, lined box (16), longer look (17), tuck in (18) ---------- */
.ftg-k5 .k-floor { box-shadow: inset 0 0 0 1px rgba(184, 138, 44, .6); }
.ftg-k5 .k-floor img { transform: rotate(180deg) scale(1.5); }
.ftg-k5 .k-liner { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(255, 250, 238, .95), inset 0 0 0 4px rgba(212, 168, 67, .8), inset 0 0 16px 6px rgba(60, 28, 10, .45); background: linear-gradient(0deg, rgba(60, 28, 10, .25), rgba(60, 28, 10, 0) 40%); }
/* quicker float: the words step back at once, the box arcs over, the lid opens on arrival */
.ftg-play .ftg-k5 .k-copy, .ftg-play .ftg-k5 .k-shelf { animation: k4Words .16s ease-in forwards; }
.ftg-play .ftg-k5 .k-scene { animation: k4Stage .42s cubic-bezier(.3, 1.15, .4, 1) .04s both; }
.ftg-play .ftg-k5 .k-lid { animation: kOpen3 .46s cubic-bezier(.25, 1.45, .45, 1) .2s both; }
.ftg-play .ftg-k5 .k-rays { animation: kRays .7s ease-out .22s both; }
.ftg-play .ftg-k5 .k-glow { animation: kBloom .46s ease-out .2s both; }
.ftg-play .ftg-k5 .k-sparks i { animation-delay: .3s; }
/* the box clears before the pull-down lands */
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k5 { animation: k5Out .18s ease-in forwards; }
@keyframes k5Out { to { opacity: 0; transform: scale(.96); } }
.tg-tk[data-ftgx="16"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="17"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="18"].ftg-going > .tg-tk-head { animation: kEmerge .45s cubic-bezier(.2, 1.2, .35, 1) .1s both; transform-origin: 50% 0; }
.tg-tk[data-ftgx="16"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="17"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="18"].ftg-going > .tg-tk-roll { animation: kEmerge .5s cubic-bezier(.2, 1.1, .35, 1) .16s both; transform-origin: 50% 0; }
/* 17: longer look inside */
.ftg-k5l .k-lid { animation: kPeek5 6.4s cubic-bezier(.45, 0, .2, 1) 1s infinite; }
.ftg-k5l .k-glow { animation: kGlow5 6.4s ease-in-out 1s infinite; }
.ftg-k5l .k-steam i { animation: kSteam5 6.4s ease-out 1s infinite; }
.ftg-k5l .k-hint::after { animation: kHint 6.4s linear 1s infinite; }
@keyframes kPeek5 { 0%, 26%, 100% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 36% { transform: translate3d(0, 0, -38px) rotateX(76deg); } 40% { transform: translate3d(0, 0, -38px) rotateX(70deg); } 80% { transform: translate3d(0, 0, -38px) rotateX(72deg); } 90% { transform: translate3d(0, 0, -38px) rotateX(-1.5deg); } 95% { transform: translate3d(0, 0, -38px) rotateX(.8deg); } }
@keyframes kGlow5 { 0%, 28%, 90%, 100% { opacity: 0; } 38%, 80% { opacity: .85; } }
@keyframes kSteam5 { 0%, 34% { opacity: 0; transform: translateY(14px) scaleY(.6); } 46% { opacity: .7; } 70%, 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1) skewX(-10deg); } }
/* 18: on handover the open box shrinks up into the header's leaf mark instead of fading */
.tg-tk[data-ftgx="18"].ftg-going > .ftg-x.ftg-k5 { animation: none; opacity: 1; }
.tg-tk[data-ftgx="18"].ftg-going > .ftg-x .k-scene { animation: k5Tuck .34s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes k5Tuck { 0% { transform: translate(var(--cx, -90px), -4px) scale(1.28); opacity: 1; } 100% { transform: translate(calc(var(--cx, -90px) - 120px), -88px) scale(.16); opacity: 0; } }

/* ---------- Round 6: seated rolls (19), breathing (20), rolls in wells (21) ---------- */
.ftg-k6 .k-hint { color: var(--plum); }
.ftg-k6 .k-floor { transform: translate3d(-56px, -28px, 0) rotateX(90deg); overflow: hidden; background: #f3e6cf; }
.ftg-k6 .k-floor img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 3px; transform: rotate(180deg) scale(1.25); filter: brightness(1.02) saturate(1.06) contrast(1.04); }
.ftg-k6 .k-paper { position: absolute; inset: 2px; pointer-events: none; border-radius: 4px;
  background: radial-gradient(circle at 4px 4px, transparent 2.6px, rgba(255, 252, 244, .96) 3px) 0 0 / 8px 8px; -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; padding: 4px; }
.ftg-k6 .k-liner { box-shadow: inset 0 0 0 1px rgba(212, 168, 67, .55), inset 0 0 18px 7px rgba(70, 36, 12, .42); background: linear-gradient(0deg, rgba(70, 36, 12, .32), rgba(70, 36, 12, 0) 45%); }
.ftg-k6 .k-wallf, .ftg-k6 .k-walll { display: none; }
/* inner walls: visible when the lid is up, so the rolls sit inside, not on top */
.ftg-k6 .k-back { background: linear-gradient(180deg, #efe1c6, #d9c49c); }
.ftg-k6 .k-box::after { content: ""; }
.ftg-play .ftg-k6 .k-floor img { animation: none; }
.ftg-k6 .k-rays { z-index: -1; }
/* 20 + 21: breath while shut, and a glint along the gold line */
.ftg-k6b .k-lid { animation: kPeek6 6.4s cubic-bezier(.45, 0, .2, 1) 1s infinite; }
@keyframes kPeek6 { 0%, 100% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 8% { transform: translate3d(0, 0, -38px) rotateX(5deg); } 16%, 24% { transform: translate3d(0, 0, -38px) rotateX(0deg); } 36% { transform: translate3d(0, 0, -38px) rotateX(76deg); } 40% { transform: translate3d(0, 0, -38px) rotateX(70deg); } 80% { transform: translate3d(0, 0, -38px) rotateX(72deg); } 90% { transform: translate3d(0, 0, -38px) rotateX(-1.5deg); } 95% { transform: translate3d(0, 0, -38px) rotateX(.8deg); } }
/* Nov 15 smooth: the glint used to move background-position (main thread every frame). The same 300%-wide gradient now sits on
   ::after and slides with transform (100% position = -2/3 of its width), clipped by the line. */
.ftg-k6b .k-lfront i { background: var(--gold); overflow: hidden; }
.ftg-k6b .k-lfront i::after { content: ""; position: absolute; top: 0; left: 0; width: 300%; height: 100%; background: linear-gradient(90deg, var(--gold) 0 40%, #fff6d8 50%, var(--gold) 60% 100%); animation: k6Glint 6.4s ease-in-out 1s infinite; }
@keyframes k6Glint { 0%, 100% { transform: translateX(-66.6667%); } 14% { transform: none; } 15%, 99% { transform: translateX(-66.6667%); } }
.ftg-k6b .k-front i { overflow: hidden; }
/* 21: wells */
.ftg-k6w .k-wells { position: absolute; inset: 8px 6px; display: flex; align-items: center; justify-content: space-around; transform: rotate(180deg); }
.ftg-k6w .k-wells i { position: relative; width: 31px; height: 31px; border-radius: 50%; background: #f7ecd8; box-shadow: inset 0 3px 5px rgba(70, 36, 12, .45), 0 1px 0 rgba(255, 255, 255, .8); overflow: hidden; }
.ftg-k6w .k-wells img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: cover; opacity: 1; transform: none; filter: brightness(1.04) saturate(1.08); }
.ftg-k6w .k-wells i:nth-child(2) { width: 34px; height: 34px; }
.ftg-k6w .k-floor { background: linear-gradient(180deg, #fffaf0, #f1e2c6); }
.ftg-k6w .k-liner { box-shadow: inset 0 0 0 1px rgba(212, 168, 67, .6), inset 0 0 12px 3px rgba(70, 36, 12, .25); background: none; }
.ftg-k6w .k-box { transform: scale3d(.84, .84, .84) rotateX(-34deg) rotateY(-30deg); }
.ftg-k6w .k-floor { transform: translate3d(-56px, -34px, 0) rotateX(90deg); }
.ftg-k6w .k-wells { inset: 4px 2px; }
.ftg-k6w .k-wells i, .ftg-k6w .k-wells i:nth-child(2) { width: 34px; height: 34px; }

/* ---------- Round 7: wells, bigger glossy coins, quicker open (22, 23, 24) ---------- */
.ftg-k7 .k-scene, .ftg-k7 .k-lid { will-change: transform; }
.ftg-k7 .k-box { transform: scale3d(.9, .9, .9) rotateX(-34deg) rotateY(-30deg); }
.ftg-k7 .k-wells { inset: 3px 0; justify-content: center; gap: 1px; }
.ftg-k7 .k-wells i, .ftg-k7 .k-wells i:nth-child(2) { width: 36px; height: 36px; box-shadow: inset 0 3px 5px rgba(70, 36, 12, .45), 0 1px 0 rgba(255, 255, 255, .85); }
.ftg-k7 .k-wells i:nth-child(2) { width: 38px; height: 38px; }
.ftg-k7 .k-wells img { inset: 2.5px; width: calc(100% - 5px); height: calc(100% - 5px); filter: brightness(1.07) saturate(1.12) contrast(1.05); }
.ftg-k7 .k-wells i::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1.25px rgba(240, 212, 139, .95), inset 0 0 0 2px rgba(154, 116, 32, .35);
  background: radial-gradient(ellipse 60% 42% at 34% 74%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); }
.ftg-play .ftg-k7 .k-scene { animation: k4Stage .4s cubic-bezier(.3, 1.15, .4, 1) both; }
.ftg-play .ftg-k7 .k-lid { animation: kOpen3 .44s cubic-bezier(.25, 1.45, .45, 1) .12s both; }
.ftg-play .ftg-k7 .k-rays { animation: kRays .7s ease-out .14s both; }
.ftg-play .ftg-k7 .k-glow { animation: kBloom .44s ease-out .12s both; }
.ftg-play .ftg-k7 .k-sparks i { animation-delay: .22s; }
.ftg-press .ftg-k7 .k-scene { transform: translateY(-4px) scale(1.06); transition: transform .09s ease-out; }
.tg-tk[data-ftgx="22"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="23"].ftg-going > .tg-tk-head, .tg-tk[data-ftgx="24"].ftg-going > .tg-tk-head { animation: kEmerge .42s cubic-bezier(.2, 1.2, .35, 1) .06s both; transform-origin: 50% 0; }
.tg-tk[data-ftgx="22"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="23"].ftg-going > .tg-tk-roll, .tg-tk[data-ftgx="24"].ftg-going > .tg-tk-roll { animation: kEmerge .48s cubic-bezier(.2, 1.1, .35, 1) .12s both; transform-origin: 50% 0; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k7 { animation: k5Out .14s ease-in forwards; }

/* 23: the open box tucks up into the header */
.tg-tk[data-ftgx="23"].ftg-going > .ftg-x.ftg-k7 { animation: k7Clear .3s linear forwards; }
@keyframes k7Clear { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.tg-tk[data-ftgx="23"].ftg-going > .ftg-x .k-scene { animation: k7Tuck .3s cubic-bezier(.55, 0, .75, .35) forwards; }
@keyframes k7Tuck { 0% { transform: translate(var(--cx, -90px), -4px) scale(1.28); } 100% { transform: translate(calc(var(--cx, -90px) - 128px), -96px) scale(.14); } }
.tg-tk[data-ftgx="23"].ftg-going > .ftg-x .k-copy, .tg-tk[data-ftgx="23"].ftg-going > .ftg-x .k-shelf { opacity: 0; }
.tg-tk[data-ftgx="23"].ftg-going > .tg-tk-head { animation: kEmerge .4s cubic-bezier(.2, 1.3, .35, 1) .14s both; transform-origin: 8% 50%; }

/* 24: rolls hop out and land back in their wells one by one */
.ftg-play .ftg-k7d .k-wells i img, .ftg-play .ftg-k7d .k-wells i::after { animation: k7Land .46s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
.ftg-play .ftg-k7d .k-wells i:nth-child(2) img, .ftg-play .ftg-k7d .k-wells i:nth-child(2)::after { animation-delay: .29s; }
.ftg-play .ftg-k7d .k-wells i:nth-child(3) img, .ftg-play .ftg-k7d .k-wells i:nth-child(3)::after { animation-delay: .38s; }
@keyframes k7Land { 0% { transform: scale(1); opacity: 1; } 22% { transform: scale(.25); opacity: 0; } 62% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.ftg-k7d .k-wells i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold-l); opacity: 0; pointer-events: none; z-index: 2; }
.ftg-play .ftg-k7d .k-wells i::before { animation: k7Ring .5s ease-out .36s both; }
.ftg-play .ftg-k7d .k-wells i:nth-child(2)::before { animation-delay: .45s; }
.ftg-play .ftg-k7d .k-wells i:nth-child(3)::before { animation-delay: .54s; }
@keyframes k7Ring { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.ftg-k7d .k-wells i { overflow: visible; }
.ftg-k7d .k-wells img { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .ftg-k7 .k-wells i img, .ftg-k7 .k-wells i::after, .ftg-k7 .k-wells i::before, .tg-tk[data-ftgx="23"].ftg-going > .ftg-x .k-scene { animation: none !important; } }

/* ---------- Round 8: tuck into the header, bigger reveal (25, 26, 27) ---------- */
.ftg-k8 .k-box { transform: scale3d(.9, .9, .9) rotateX(-36deg) rotateY(-30deg); }
.ftg-play .ftg-k8 .k-copy, .ftg-play .ftg-k8 .k-shelf { animation: k4Words .12s ease-in forwards; }
.ftg-play .ftg-k8 .k-scene { animation: k8Stage .44s cubic-bezier(.3, 1.15, .4, 1) .07s both; }
@keyframes k8Stage { 0% { transform: translateY(-4px) scale(1.06); } 50% { transform: translate(calc(var(--cx, -90px) * .55), 24px) scale(1.3); } 100% { transform: translate(var(--cx, -90px), 56px) scale(1.42); } }
.ftg-play .ftg-k8 .k-box { animation: k8Tilt .5s cubic-bezier(.3, 1.1, .4, 1) .07s both; }
@keyframes k8Tilt { from { transform: scale3d(.9, .9, .9) rotateX(-36deg) rotateY(-30deg); } to { transform: scale3d(.9, .9, .9) rotateX(-46deg) rotateY(-20deg); } }
.ftg-play .ftg-k8 .k-lid { animation: kOpen3 .44s cubic-bezier(.25, 1.45, .45, 1) .16s both; }
.ftg-play .ftg-k8 .k-glow { animation: kBloom .44s ease-out .16s both; }
.ftg-play .ftg-k8 .k-rays { animation: kRays .7s ease-out .18s both; }
.ftg-play .ftg-k8 .k-sparks i { animation-delay: .26s; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 { animation: k7Clear .3s linear forwards; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 .k-scene { animation: k8Tuck .3s cubic-bezier(.55, 0, .75, .35) forwards; }
@keyframes k8Tuck { 0% { transform: translate(var(--cx, -90px), 56px) scale(1.42); } 100% { transform: translate(calc(var(--cx, -90px) - 128px), -96px) scale(.14); } }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 .k-copy, .tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 .k-shelf { opacity: 0; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 ~ .tg-tk-head { animation: kEmerge .4s cubic-bezier(.2, 1.3, .35, 1) .14s both; transform-origin: 8% 50%; }
.tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 ~ .tg-tk-roll { animation: kEmerge .48s cubic-bezier(.2, 1.1, .35, 1) .12s both; transform-origin: 50% 0; }

/* 26: rolls rise a little out of their wells */
.ftg-k8r .k-wells i { overflow: visible; }
.ftg-k8r .k-wells img { border-radius: 50%; }
.ftg-play .ftg-k8r .k-wells i { animation: k8Rise .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.ftg-play .ftg-k8r .k-wells i:nth-child(2) { animation-delay: .37s; }
.ftg-play .ftg-k8r .k-wells i:nth-child(3) { animation-delay: .44s; }
@keyframes k8Rise { to { transform: scale(1.16); box-shadow: inset 0 3px 5px rgba(70, 36, 12, .45), 0 3px 5px rgba(70, 36, 12, .32); } }

/* 27: the words slide away line by line */
.ftg-play .ftg-k8w .k-copy { animation: none; }
.ftg-play .ftg-k8w .k-copy > * { animation: k8Away .2s cubic-bezier(.5, 0, .8, .5) both; }
.ftg-play .ftg-k8w .k-copy > :nth-child(2) { animation-delay: .025s; }
.ftg-play .ftg-k8w .k-copy > :nth-child(3) { animation-delay: .05s; }
.ftg-play .ftg-k8w .k-copy > :nth-child(4) { animation-delay: .075s; }
.ftg-play .ftg-k8w .k-copy > :nth-child(5) { animation-delay: .1s; }
@keyframes k8Away { to { opacity: 0; transform: translateX(-36px); } }
.ftg-play .ftg-k8w .k-scene { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .ftg-k8 .k-box, .ftg-k8 .k-wells i, .ftg-k8 .k-copy > *, .tg-tk[data-ftgx].ftg-going > .ftg-x.ftg-k8 .k-scene { animation: none !important; } }

/* After the hand-off the drawn card is fully gone (not just faded), so it never sits over the open details,
   with or without motion. final-tg.js adds ftg-gone once the fade has run (at once under reduced motion). */
.tg-tk[data-ftgx].ftg-gone > .ftg-x { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tg-tk[data-ftgx].ftg-going > .ftg-x { display: none !important; } }

/* ---------- 28: a real overhead photo of an open box of six on the floor (Nov 14 afternoon) ---------- */
.ftg-k9 .k-floor { background: #efe2c8; }
.ftg-k9 .k-floor img.k-six { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 2px; object-fit: cover; opacity: 1;
  transform: rotate(180deg); filter: brightness(1.06) saturate(1.1) contrast(1.03); animation: none; }
.ftg-k9 .k-liner { box-shadow: inset 0 0 0 1px rgba(212, 168, 67, .55), inset 0 0 10px 2px rgba(70, 36, 12, .35); background: linear-gradient(0deg, rgba(70, 36, 12, .18), rgba(70, 36, 12, 0) 35%); }
.ftg-k9 .k-box { transform: scale3d(.9, .9, .9) rotateX(-40deg) rotateY(-28deg); }
.ftg-play .ftg-k9 .k-box { animation: k9Tilt .5s cubic-bezier(.3, 1.1, .4, 1) .07s both; }
@keyframes k9Tilt { from { transform: scale3d(.9, .9, .9) rotateX(-40deg) rotateY(-28deg); } to { transform: scale3d(.9, .9, .9) rotateX(-56deg) rotateY(-16deg); } }
@media (prefers-reduced-motion: reduce) { .ftg-play .ftg-k9 .k-box { animation: none !important; } }
