/* Rolling final build: Thanksgiving pre-order card, closed looks (see js/final-tg.js). No dark plum bar: cream porcelain, gold hairlines. */
html[data-tgc] .tg-tk { --ftg-cream: #fffaf2; --ftg-paper: #fdf6ea; --ftg-gold: #d4a843; --ftg-gold-d: #9a7420; --ftg-plum: #4A1942; --ftg-line: #ead9bb; width: min(100%, 340px); }
html[data-tgc] .ftg-art, html[data-tgc] .ftg-leaf { display: none; }
/* top tab, every look and every stage: cream with a gold hairline */
html[data-tgc] .tg-tk .tg-tk-head { background: var(--ftg-cream); color: var(--ftg-plum); border: 1px solid var(--ftg-line); box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(74, 25, 66, 0.35); font-weight: 700; letter-spacing: 0.12em; }
html[data-tgc] .tg-tk .tg-tk-step { color: var(--ftg-gold-d); letter-spacing: 0.02em; }
html[data-tgc] .tg-tk .tg-tk-head i { width: 22px; height: 4px; background: linear-gradient(90deg, #e8c879, var(--ftg-gold)); box-shadow: none; }
html[data-tgc] .tg-tk .tg-tk-head i.ftg-leaf { display: block; flex: none; width: 18px; height: 18px; color: #b5651d; background: none; box-shadow: none; border-radius: 0; }
html[data-tgc] .tg-tk .tg-tk-head .ftg-leaf svg { width: 100%; height: 100%; }
html[data-tgc] .tg-tk[data-stage="0"] .tg-tk-head::after { box-shadow: 0 0 16px 2px rgba(232, 194, 90, 0.55); }
html[data-tgc] .tg-tk-paper { background: var(--ftg-paper); }
html[data-tgc] .tg-tk[data-stage="0"] .tg-tk-stub { position: relative; }
html[data-tgc] .tg-tk[data-stage="0"] .tg-tk-paper { -webkit-mask: none !important; mask: none !important; clip-path: none !important; }

/* 1. Place card: a folded cream place card, gold foil title, a real photo coin, and a ribbon tab to pull. */
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-head { border-radius: 16px 16px 4px 4px; padding: 9px 14px; font-size: 11px; justify-content: center; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-head > span:first-of-type { flex: 0 1 auto; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-head .tg-tk-step, html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-head > i:last-child { display: none; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-roll { width: 100%; margin-top: -1px; padding-bottom: 26px; perspective: 700px; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-paper { padding: 0; border-radius: 4px 4px 18px 18px; border: 1px solid var(--ftg-line); border-top: 0; transform-origin: 50% 0; transform: rotateX(8deg);
  background: linear-gradient(180deg, rgba(74, 25, 66, 0.07), rgba(74, 25, 66, 0) 14px), radial-gradient(120% 90% at 20% 0, #fffdf8, var(--ftg-paper)); filter: drop-shadow(0 12px 14px rgba(74, 25, 66, 0.16)); animation: ftgCard 4.5s ease-in-out 1.4s infinite; }
@keyframes ftgCard { 0%, 70%, 100% { transform: rotateX(8deg); } 80% { transform: rotateX(16deg); } 90% { transform: rotateX(5deg); } }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-stub { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 16px 18px 18px; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .ftg-art { display: block; grid-row: 1 / 4; position: static; width: 74px; height: 74px; }
html[data-tgc="1"] .ftg-art img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ftg-gold), 0 10px 16px -8px rgba(74, 25, 66, 0.5); }
html[data-tgc="1"] .ftg-art .ftg-seal, html[data-tgc="1"] .ftg-art .ftg-stamp { display: none; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-stub small { color: #b5651d; }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-stub b { font-size: 28px; background: linear-gradient(100deg, #7a5410, #c99a34 35%, #f0d48b 50%, #c99a34 65%, #7a5410); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 220% 100%; animation: ftgFoil 6s ease-in-out infinite; }
@keyframes ftgFoil { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-stub span { font-weight: 600; color: var(--ftg-plum); }
html[data-tgc="1"] .ftg-ribbon { position: absolute; left: 50%; bottom: -24px; width: 46px; height: 30px; margin-left: -23px; background: linear-gradient(180deg, #b5651d, #8e4a12); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); transform-origin: 50% 0; animation: ftgRibbon 4.5s ease-in-out 1.4s infinite; }
html[data-tgc="1"] .ftg-ribbon em { position: absolute; top: 4px; left: 0; right: 0; font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #fff3df; font-style: normal; }
@keyframes ftgRibbon { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(7deg); } 86% { transform: rotate(-5deg); } 94% { transform: rotate(2deg); } }

/* 2. Die-cut ticket: photo stub on the left, perforation, a gold date stamp on the right. */
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-head { border-radius: 999px; width: auto; margin: 0 auto; display: inline-flex; padding: 7px 14px; font-size: 10.5px; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-head > i:last-child { display: none; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-roll { width: 100%; margin-top: 8px; padding-bottom: 12px; overflow: visible; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-paper { padding: 0; background: none; filter: drop-shadow(0 12px 14px rgba(74, 25, 66, 0.18)); }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub { position: relative; display: grid; grid-template-columns: 96px 1fr 70px; grid-template-rows: auto auto auto; align-items: center; text-align: left; padding: 0; min-height: 110px; border-radius: 16px;
  background: radial-gradient(circle at 96px 0, transparent 9px, var(--ftg-cream) 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 96px 100%, transparent 9px, var(--ftg-cream) 9.5px) bottom / 100% 51% no-repeat; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub::after { content: ''; position: absolute; left: 95px; top: 12px; bottom: 12px; border-left: 2px dashed var(--ftg-line); }
html[data-tgc="2"] .tg-tk[data-stage="0"] .ftg-art { display: contents; }
html[data-tgc="2"] .ftg-art img { grid-row: 1 / 4; grid-column: 1; width: 96px; height: 110px; object-fit: cover; border-radius: 16px 0 0 16px; -webkit-mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat; mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat; }
html[data-tgc="2"] .ftg-art .ftg-seal, html[data-tgc="2"] .ftg-art .ftg-ribbon { display: none; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > small, html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > b, html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > span { grid-column: 2; padding-left: 16px; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > b { font-size: 20px; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > b::before { content: 'Thanksgiving Box'; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > b { font-size: 0; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > b::before { display: block; margin: 2px 0 3px; font-size: 19px; line-height: 1.1; }
html[data-tgc="2"] .tg-tk[data-stage="0"] .tg-tk-stub > span { font-size: 11.5px; font-weight: 600; color: var(--ftg-plum); opacity: 0.8; }
html[data-tgc="2"] .ftg-stamp { grid-column: 3; grid-row: 1 / 4; justify-self: center; display: grid; place-content: center; width: 58px; height: 58px; border-radius: 50%; border: 1.5px dashed var(--ftg-gold-d); color: var(--ftg-gold-d); transform: rotate(-12deg); box-shadow: inset 0 0 0 3px var(--ftg-cream), inset 0 0 0 4.5px rgba(212, 168, 67, 0.6); animation: ftgStamp 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) 0.9s both; }
html[data-tgc="2"] .ftg-stamp b { display: block; font: 700 9px/1.1 "DM Sans", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
html[data-tgc="2"] .ftg-stamp b + b { font: 600 13px/1.1 "Glaze Display", Recoleta, Georgia, serif; letter-spacing: 0; text-transform: none; }
@keyframes ftgStamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* 3. Wax seal: one slim cream card, a gold seal on the right that breaks open into the pull-down. */
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-head { display: none; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-roll { width: 100%; margin: 0; padding: 4px 0 12px; overflow: visible; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-paper { padding: 0; background: none; filter: none; animation: none; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub { position: relative; display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto auto auto; align-items: center; text-align: left; padding: 16px 16px 16px 22px; border-radius: 22px;
  background: linear-gradient(180deg, #fffdf8, var(--ftg-cream)); border: 1px solid var(--ftg-line); box-shadow: 0 1px 0 #fff inset, 0 14px 26px -16px rgba(74, 25, 66, 0.35); }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub::before { content: ''; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #e8c879, var(--ftg-gold-d)); }
html[data-tgc="3"] .tg-tk[data-stage="0"] .ftg-art { display: contents; }
html[data-tgc="3"] .ftg-art img, html[data-tgc="3"] .ftg-art .ftg-stamp, html[data-tgc="3"] .ftg-art .ftg-ribbon { display: none; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > small { grid-column: 1; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > small { font-size: 0; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > small::before { content: 'Thanksgiving pre-orders'; font-size: 9.5px; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > b, html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > span { grid-column: 1; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > b { font-size: 24px; }
html[data-tgc="3"] .ftg-seal { grid-column: 2; grid-row: 1 / 4; justify-self: end; display: grid; place-items: center; width: 58px; height: 58px; color: #6b3d0d;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 34% 28%, #f6dd9a, #d4a843 45%, #a87a1c 78%, #8a6214); box-shadow: inset 0 0 0 5px rgba(255, 240, 200, 0.28), inset 0 -4px 8px rgba(90, 55, 10, 0.35), 0 8px 14px -6px rgba(90, 55, 10, 0.55); animation: ftgSeal 3.6s ease-in-out 1.2s infinite; }
html[data-tgc="3"] .ftg-seal svg { width: 26px; height: 26px; }
@keyframes ftgSeal { 0%, 76%, 100% { transform: rotate(0) scale(1); } 84% { transform: rotate(-10deg) scale(1.06); } 92% { transform: rotate(6deg) scale(1.02); } }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub:active .ftg-seal { transform: scale(0.9); }

@media (prefers-reduced-motion: reduce) { html[data-tgc] .tg-tk * { animation: none !important; } }
html[data-tgc="1"] .tg-tk[data-stage="0"] .tg-tk-roll { overflow: visible; }
html[data-tgc] .tg-tk:not([data-stage="0"]) .tg-tk-head { font-size: 10.5px; letter-spacing: 0.08em; }
html[data-tgc] .tg-tk:not([data-stage="0"]) .tg-tk-head > span:first-of-type { white-space: nowrap; }
html[data-tgc="3"] .tg-tk[data-stage="0"] .tg-tk-stub > small::before { letter-spacing: 1.5px; font-weight: 700; }
