/* ═══════════════════════════════════════════════════════════════════════
   Phidias Advent · CHRISTMAS LAYER (theme-xmas.css)
   Everything that makes the edition look like Christmas lives here: fairy lights, holly,
   ribbons and bows, bauble timeline, presents, giant cheques, Grand Reveal.
   Another edition (e.g. Winter, Jan 1 – Feb 28) keeps the engine and swaps this file.
   ═══════════════════════════════════════════════════════════════════════ */

/* fairy lights strip (top of every page, kit screens) */
.xm-lights{position:relative;height:34px;margin-top:-2px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='34' viewBox='0 0 160 34'%3E%3Cdefs%3E%3CradialGradient id='g0'%3E%3Cstop offset='0' stop-color='%23fff0c2' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%23fff0c2' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g1'%3E%3Cstop offset='0' stop-color='%23ff6b7d' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%23ff6b7d' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g2'%3E%3Cstop offset='0' stop-color='%23f6d27a' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%23f6d27a' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g3'%3E%3Cstop offset='0' stop-color='%236fe7a5' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%236fe7a5' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 6 Q40 26 80 8 Q120 26 160 6' fill='none' stroke='%232a3b55' stroke-width='1.3'/%3E%3Ccircle cx='20' cy='20.1' r='9' fill='url(%23g0)'/%3E%3Crect x='18.4' y='13.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='20' cy='20.1' rx='2.5' ry='3.7' fill='%23fff0c2'/%3E%3Cellipse cx='19.2' cy='18.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='60' cy='21.1' r='9' fill='url(%23g1)'/%3E%3Crect x='58.4' y='14.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='60' cy='21.1' rx='2.5' ry='3.7' fill='%23ff6b7d'/%3E%3Cellipse cx='59.2' cy='19.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='100' cy='21.1' r='9' fill='url(%23g2)'/%3E%3Crect x='98.4' y='14.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='100' cy='21.1' rx='2.5' ry='3.7' fill='%23f6d27a'/%3E%3Cellipse cx='99.2' cy='19.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='140' cy='20.1' r='9' fill='url(%23g3)'/%3E%3Crect x='138.4' y='13.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='140' cy='20.1' rx='2.5' ry='3.7' fill='%236fe7a5'/%3E%3Cellipse cx='139.2' cy='18.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") repeat-x 0 0/160px 34px;z-index:4}
.xm-lights::after{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='34' viewBox='0 0 160 34'%3E%3Cdefs%3E%3CradialGradient id='g0'%3E%3Cstop offset='0' stop-color='%23ff6b7d' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23ff6b7d' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g1'%3E%3Cstop offset='0' stop-color='%23f6d27a' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23f6d27a' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g2'%3E%3Cstop offset='0' stop-color='%236fe7a5' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%236fe7a5' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='g3'%3E%3Cstop offset='0' stop-color='%23fff0c2' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23fff0c2' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 6 Q40 26 80 8 Q120 26 160 6' fill='none' stroke='%232a3b55' stroke-width='1.3'/%3E%3Ccircle cx='20' cy='20.1' r='9' fill='url(%23g0)'/%3E%3Crect x='18.4' y='13.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='20' cy='20.1' rx='2.5' ry='3.7' fill='%23ff6b7d'/%3E%3Cellipse cx='19.2' cy='18.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='60' cy='21.1' r='9' fill='url(%23g1)'/%3E%3Crect x='58.4' y='14.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='60' cy='21.1' rx='2.5' ry='3.7' fill='%23f6d27a'/%3E%3Cellipse cx='59.2' cy='19.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='100' cy='21.1' r='9' fill='url(%23g2)'/%3E%3Crect x='98.4' y='14.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='100' cy='21.1' rx='2.5' ry='3.7' fill='%236fe7a5'/%3E%3Cellipse cx='99.2' cy='19.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='140' cy='20.1' r='9' fill='url(%23g3)'/%3E%3Crect x='138.4' y='13.0' width='3.2' height='3.2' rx='.8' fill='%231b2940'/%3E%3Cellipse cx='140' cy='20.1' rx='2.5' ry='3.7' fill='%23fff0c2'/%3E%3Cellipse cx='139.2' cy='18.8' rx='.7' ry='1.2' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") repeat-x 0 0/160px 34px;opacity:0;animation:xm-twinkle 2.6s ease-in-out infinite alternate}
.xm-lights.sm{height:26px;background-size:122px 26px}.xm-lights.sm::after{background-size:122px 26px}
@keyframes xm-twinkle{0%,30%{opacity:0}70%,100%{opacity:1}}

/* holly sprig */
.xm-holly{position:absolute;width:64px;height:40px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M30 22C22 10 10 8 2 12c4 2 4 6 1 8 5 1 7 5 6 8 5-2 9 0 10 4 3-4 8-6 11-10z' fill='%231f6b45' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M34 22c8-12 20-14 28-10-4 2-4 6-1 8-5 1-7 5-6 8-5-2-9 0-10 4-3-4-8-6-11-10z' fill='%23185a3a' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M30 22C20 16 10 13 3 13M34 22c10-6 20-9 27-9' stroke='%23d3b574' stroke-width='.6' fill='none' opacity='.7'/%3E%3Ccircle cx='29' cy='24' r='4' fill='%23c0283e'/%3E%3Ccircle cx='35' cy='24.5' r='4' fill='%23a3263a'/%3E%3Ccircle cx='32' cy='19.5' r='4' fill='%23d33a50'/%3E%3Ccircle cx='27.8' cy='22.8' r='1.2' fill='%23fff' opacity='.55'/%3E%3Ccircle cx='33.8' cy='23.3' r='1.2' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='30.8' cy='18.3' r='1.2' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") no-repeat center/contain;pointer-events:none;z-index:2;filter:drop-shadow(0 4px 6px rgba(0,0,0,.45))}
.xm-holly.tr{top:-14px;right:18px;transform:rotate(8deg)}
.xm-holly.tl{top:-14px;left:18px;transform:rotate(-10deg) scaleX(-1)}

/* ribbon badge */
.xm-rib{display:inline-flex;align-items:center;gap:9px;padding:7px 16px 7px 10px;border-radius:999px;background:linear-gradient(135deg,#a3263a,#7c1426);border:1px solid rgba(243,226,172,.55);box-shadow:0 10px 24px -10px rgba(163,38,58,.8),inset 0 1px 0 rgba(255,255,255,.18);font-family:'Montserrat',sans-serif;font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#f6e7b4}
.xm-rib svg{width:16px;height:16px;fill:#f3d27a}

/* section divider: holly between two gold lines */
.adv .orn svg{display:none}
.adv .orn::before,.adv .orn::after{background:linear-gradient(90deg,transparent,rgba(211,181,116,.65))}
.adv .orn i.xm-sprig{display:block;width:64px;height:40px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M30 22C22 10 10 8 2 12c4 2 4 6 1 8 5 1 7 5 6 8 5-2 9 0 10 4 3-4 8-6 11-10z' fill='%231f6b45' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M34 22c8-12 20-14 28-10-4 2-4 6-1 8-5 1-7 5-6 8-5-2-9 0-10 4-3-4-8-6-11-10z' fill='%23185a3a' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M30 22C20 16 10 13 3 13M34 22c10-6 20-9 27-9' stroke='%23d3b574' stroke-width='.6' fill='none' opacity='.7'/%3E%3Ccircle cx='29' cy='24' r='4' fill='%23c0283e'/%3E%3Ccircle cx='35' cy='24.5' r='4' fill='%23a3263a'/%3E%3Ccircle cx='32' cy='19.5' r='4' fill='%23d33a50'/%3E%3Ccircle cx='27.8' cy='22.8' r='1.2' fill='%23fff' opacity='.55'/%3E%3Ccircle cx='33.8' cy='23.3' r='1.2' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='30.8' cy='18.3' r='1.2' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") no-repeat center/contain}

/* stepper circles become baubles */
.adv .st-steps a i{position:relative}
.adv .st-steps a i::before{content:"";position:absolute;top:-5px;left:50%;width:9px;height:5px;transform:translateX(-50%);border-radius:2px 2px 1px 1px;background:linear-gradient(180deg,#f3e2ac,#b8924a)}

/* presents: gold ribbon on top of a card, red bow in the corner */
.xm-present{position:relative}
.xm-present>.xm-band{position:absolute;left:0;right:0;top:0;height:7px;border-radius:24px 24px 0 0;background:linear-gradient(180deg,#f8e9b8,#d3b574 45%,#a8823e);box-shadow:0 1px 0 rgba(0,0,0,.35)}
.xm-bow{position:absolute;top:-24px;right:26px;width:74px;height:54px;z-index:3;filter:drop-shadow(0 8px 10px rgba(0,0,0,.5));pointer-events:none}
.xm-bow svg{width:100%;height:100%}
.xm-bow.sm{top:-15px;right:14px;width:44px;height:32px}

/* page 1 · Grand Ranking */
.adv .prz .tk-champ{position:relative;background:radial-gradient(ellipse at 12% 50%,rgba(243,210,122,.18),transparent 60%),linear-gradient(135deg,rgba(40,30,8,.55),rgba(8,16,32,.7))}
.adv .prz .tk-champ::after{content:"";position:absolute;right:-8px;bottom:-12px;width:54px;height:34px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M30 22C22 10 10 8 2 12c4 2 4 6 1 8 5 1 7 5 6 8 5-2 9 0 10 4 3-4 8-6 11-10z' fill='%231f6b45' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M34 22c8-12 20-14 28-10-4 2-4 6-1 8-5 1-7 5-6 8-5-2-9 0-10 4-3-4-8-6-11-10z' fill='%23185a3a' stroke='%23d3b574' stroke-width='.8'/%3E%3Cpath d='M30 22C20 16 10 13 3 13M34 22c10-6 20-9 27-9' stroke='%23d3b574' stroke-width='.6' fill='none' opacity='.7'/%3E%3Ccircle cx='29' cy='24' r='4' fill='%23c0283e'/%3E%3Ccircle cx='35' cy='24.5' r='4' fill='%23a3263a'/%3E%3Ccircle cx='32' cy='19.5' r='4' fill='%23d33a50'/%3E%3Ccircle cx='27.8' cy='22.8' r='1.2' fill='%23fff' opacity='.55'/%3E%3Ccircle cx='33.8' cy='23.3' r='1.2' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='30.8' cy='18.3' r='1.2' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") no-repeat center/contain;transform:rotate(-12deg);filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}
.adv .prz .tk-pod{position:relative;padding-left:46px !important}
.adv .prz .tk-pod::before{content:"";position:absolute;left:14px;top:50%;width:22px;height:22px;border-radius:50%;transform:translateY(-38%);background:radial-gradient(circle at 35% 30%,#fff 0 8%,#e6ebf2 18%,#9aa4b5 70%,#6b7586)}
.adv .prz .tk-pod::after{content:"";position:absolute;left:21px;top:calc(50% - 15px);width:8px;height:5px;border-radius:2px 2px 1px 1px;background:linear-gradient(180deg,#f3e2ac,#b8924a)}
.adv .prz .tk-pod--bronze::before{background:radial-gradient(circle at 35% 30%,#fff 0 8%,#f0c69b 18%,#b07a48 70%,#7a4f2a)}
.adv .prz .tk-rank-pos>span{position:relative;overflow:visible;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.35) 0 10%,#1d3566 40%,#0b1730);border-color:rgba(211,181,116,.55)}
.adv .prz .tk-rank-pos>span::before{content:"";position:absolute;top:-4px;left:50%;width:7px;height:4px;transform:translateX(-50%);border-radius:2px 2px 1px 1px;background:linear-gradient(180deg,#f3e2ac,#b8924a)}
.adv .prz .tk-rank:nth-child(3n+2) .tk-rank-pos>span{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.35) 0 10%,#a3263a 42%,#5e0f1d)}
.adv .prz .tk-rank:nth-child(3n) .tk-rank-pos>span{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.3) 0 10%,#1f7a4d 42%,#0d3b25)}

/* page 1 · Every session: the two prizes are wrapped */
.adv .dp div{position:relative;padding-right:52px;overflow:visible}
.adv .dp div::before{content:"";position:absolute;top:0;bottom:0;right:22px;width:8px;background:linear-gradient(90deg,#a8823e,#f8e9b8 45%,#d3b574 60%,#a8823e);opacity:.9}
.adv .dp div.r{background:radial-gradient(ellipse at 20% 0%,rgba(255,90,110,.22),transparent 60%),linear-gradient(160deg,#5a1222,#2a0a14);border-color:rgba(255,122,138,.4)}
.adv .dp .xm-bow{top:-16px;right:6px;width:42px;height:30px}
.adv .tiers2 em{position:relative;border:0 !important;background:linear-gradient(135deg,rgba(243,226,172,.22),rgba(184,146,74,.16));clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%);padding-left:16px}
.adv .tiers2 em::before{content:"";position:absolute;left:7px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#081020;box-shadow:0 0 0 1px rgba(243,226,172,.6)}
.adv .prz .tot b{position:relative}

/* key dates: a fir garland with baubles hanging from it */
.adv .tl::before{display:block;content:"";position:absolute;left:4%;right:4%;top:-14px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 11H44' stroke='%23123826' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M-0.2 11 l-4.5 -4.6' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M2.1 11 l4.9 3.9' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M2.8 11 l-0.7 -4.7' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M5.1 11 l5.1 3.5' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M6.9 11 l0.9 -4.6' stroke='%2324694a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M7.9 11 l3.6 5.0' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M9.9 11 l-3.4 -3.4' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M11.9 11 l-1.9 4.4' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M13.4 11 l0.5 -4.7' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M15.4 11 l0.0 6.1' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M16.9 11 l4.5 -3.3' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M19.0 11 l-2.2 4.7' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M20.3 11 l4.9 -4.5' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22.1 11 l4.9 3.6' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M24.0 11 l-4.1 -4.3' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M25.9 11 l4.9 3.7' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M26.9 11 l-1.9 -5.7' stroke='%2324694a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M28.3 11 l4.1 3.3' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M29.9 11 l2.8 -5.8' stroke='%2324694a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M31.9 11 l1.6 6.3' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M34.4 11 l-2.0 -6.0' stroke='%2324694a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M35.0 11 l-2.7 4.1' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M37.1 11 l4.8 -3.6' stroke='%232c7a52' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M38.9 11 l-0.8 7.1' stroke='%2324694a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M41.1 11 l-2.7 -5.1' stroke='%2317462f' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M42.5 11 l1.4 5.0' stroke='%231f5c3e' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='12' r='2.1' fill='%23e2c985'/%3E%3Ccircle cx='13.4' cy='11.3' r='.7' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='33' cy='10' r='1.8' fill='%23c0283e'/%3E%3C/svg%3E") repeat-x 0 0/44px 22px;filter:drop-shadow(0 4px 4px rgba(0,0,0,.4))}
.adv .tl div{padding-top:20px}
.adv .tl i{position:relative;width:54px;height:54px;border:0;color:#f6e7b4;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.55) 0 7%,rgba(255,255,255,.08) 22%,transparent 40%),radial-gradient(circle at 50% 60%,#1d3566,#081020 80%);box-shadow:inset 0 0 0 1.5px rgba(211,181,116,.55),0 12px 22px -10px rgba(0,0,0,.8)}
.adv .tl i::before{content:"";position:absolute;top:-8px;left:50%;width:12px;height:7px;transform:translateX(-50%);border-radius:3px 3px 1px 1px;background:linear-gradient(180deg,#f8e9b8,#b8924a)}
.adv .tl i::after{content:"";position:absolute;top:-30px;left:50%;width:1px;height:22px;background:linear-gradient(180deg,rgba(211,181,116,.2),rgba(211,181,116,.8))}
.adv .tl div:nth-child(2) i{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.5) 0 7%,rgba(255,255,255,.08) 22%,transparent 40%),radial-gradient(circle at 50% 60%,#c0283e,#5e0f1d 80%)}
.adv .tl div:nth-child(4) i{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.5) 0 7%,rgba(255,255,255,.08) 22%,transparent 40%),radial-gradient(circle at 50% 60%,#24895a,#0d3b25 80%)}
.adv .tl div:nth-child(5) i{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.5) 0 7%,rgba(255,255,255,.08) 22%,transparent 40%),radial-gradient(circle at 50% 60%,#c0283e,#5e0f1d 80%)}
.adv .tl div.hl i{color:#081020;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.75) 0 8%,rgba(255,255,255,.1) 24%,transparent 40%),radial-gradient(circle at 50% 60%,#f3e2ac,#b8924a 85%)}
.adv .tl div.star i{border-radius:0;background:none;box-shadow:none;width:58px;height:58px;color:#081020}
.adv .tl div.star i::before{display:none}
.adv .tl div.star i>svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 0 14px rgba(243,210,122,.6))}
.adv .tl div.star i>em{position:relative;font-style:normal;margin-top:6px}

/* pools cards and other cards get a sprig */
.adv .pool{overflow:visible}

/* footer: a soft snowy ridge and a season's greeting */
.adv-foot{position:relative}
.adv-foot::before{content:"";position:absolute;left:0;right:0;top:-69px;height:70px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='70' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 46Q120 18 240 38T480 32T720 42T960 28T1200 44T1440 30V70H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 56Q160 34 320 50T640 46T960 54T1280 44T1440 52V70H0Z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E") no-repeat center bottom/100% 70px;pointer-events:none}
.adv-foot .xm-greet{display:flex;align-items:center;gap:10px;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#d3b574;margin-top:12px}
.adv-foot .xm-greet svg{width:16px;height:16px;fill:#d3b574}

/* next-step tile wrapped like a present */
.adv .next .n{position:relative;overflow:visible}
.adv .next .n .xm-bow{top:-14px;right:-10px;width:40px;height:29px}

/* team gifts, top 5 communities */
.adv .rew5{display:grid;gap:9px;margin-top:18px}
.adv .rew5 div{display:grid;grid-template-columns:46px 1fr auto;gap:14px;align-items:center;padding:12px 16px;border-radius:14px;background:rgba(8,16,32,.55);border:1px solid rgba(255,255,255,.07)}
.adv .rew5 i{position:relative;width:40px;height:40px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-family:'Montserrat',sans-serif;font-weight:900;font-size:15px;color:#fff}
.adv .rew5 i::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:6px;transform:translateX(-50%);background:linear-gradient(90deg,#a8823e,#f8e9b8,#a8823e);opacity:.85}
.adv .rew5 i::after{content:"";position:absolute;left:50%;top:-7px;width:18px;height:10px;transform:translateX(-50%);border-radius:50% 50% 2px 2px;border:2.5px solid #f3d27a;border-bottom:0}
.adv .rew5 i span{position:relative;z-index:1;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(8,16,32,.78);box-shadow:0 0 0 1.5px rgba(243,226,172,.7);font-size:12px;color:#f6e7b4}
.adv .rew5 b{display:block;font-family:'Montserrat',sans-serif;font-weight:900;color:#f5f2eb;font-size:15px}
.adv .rew5 small{font-size:13px;color:#cfc9bc}
.adv .rew5 em{font-style:normal;font-family:'Montserrat',sans-serif;font-weight:900;font-size:18px;color:#e2c985;text-align:right}
.adv .rew5 em small{display:block;font-family:'Lato',sans-serif;font-weight:400;font-size:11.5px;color:rgba(255,255,255,.5)}
.adv .gift-kinds{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.adv .gift-kinds span{padding:6px 12px;border-radius:999px;border:1px solid rgba(211,181,116,.3);background:rgba(8,16,32,.5);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:700;color:#e2c985}

/* sound toggle (page 3, kit benches) */
.snd{display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 10px;border-radius:999px;border:1px solid rgba(211,181,116,.4);background:rgba(8,16,32,.72);backdrop-filter:blur(8px);color:#f5f2eb;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s,border-color .2s}
.snd svg{width:18px;height:18px;fill:none;stroke:#e2c985;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.snd .wv{opacity:.25;transition:opacity .2s}
.snd.on{background:linear-gradient(135deg,rgba(243,226,172,.22),rgba(184,146,74,.18));border-color:rgba(243,226,172,.7)}
.snd.on .wv{opacity:1;animation:xm-wave 1.4s ease-in-out infinite}
@keyframes xm-wave{50%{opacity:.35}}
.adv .pc{position:relative}
.adv .pc>.snd{position:absolute;top:14px;right:14px;z-index:6}

/* door 24: locked until Phidias unlocks it live */
.phidias-10k .pd.locked::after{display:none}
.pd .pd-live{position:absolute;left:50%;top:7%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:rgba(8,16,32,.78);border:1px solid rgba(243,226,172,.6);font-family:'Montserrat',sans-serif;font-size:clamp(7px,.7vw,10px);font-weight:900;letter-spacing:.14em;color:#f6e7b4;white-space:nowrap}
.pd .pd-live i{width:6px;height:6px;border-radius:50%;background:#ff3b4e;box-shadow:0 0 0 3px rgba(255,59,78,.25);animation:xm-wave 1.2s ease-in-out infinite}
.pd .pd-lock24{position:absolute;left:50%;top:50%;width:clamp(18px,2.6vw,34px);height:clamp(18px,2.6vw,34px);transform:translate(-50%,-62%);color:#f6e7b4;filter:drop-shadow(0 2px 6px rgba(0,0,0,.7))}
.pd.unlocked:not(.open){animation:pd-kick 1.6s ease-in-out infinite}

/* ── giant cheques ── */
.cq{position:absolute;left:50%;top:50%;width:min(520px,46%);min-width:300px;padding:18px 22px 16px;border-radius:10px;color:#2a2214;font-family:'Lato',sans-serif;
  background:radial-gradient(circle at 20% 30%,rgba(201,165,90,.14) 0 1px,transparent 1.4px) 0 0/7px 7px,repeating-linear-gradient(135deg,rgba(201,165,90,.07) 0 2px,transparent 2px 9px),linear-gradient(160deg,#fffaf0,#f2e6c8);
  box-shadow:0 0 0 1px rgba(160,125,60,.6),0 0 0 6px #fbf4e2,0 0 0 7px rgba(160,125,60,.6),0 40px 70px -24px rgba(0,0,0,.85);
  transform:translate(-50%,10%) scale(.2) rotate(-8deg);opacity:0;transition:transform 1s cubic-bezier(.2,.9,.25,1.15),opacity .45s}
.cq-top{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid rgba(160,125,60,.35);padding-bottom:8px}
.cq-top img{height:30px}
.cq-top span{font-family:'Montserrat',sans-serif;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8a6a2a;text-align:right}
.cq-place{display:inline-block;margin:12px 0 2px;padding:3px 10px;border-radius:999px;background:linear-gradient(135deg,#f3e2ac,#c9a55a);font-family:'Montserrat',sans-serif;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#081020}
.cq-pay{display:flex;align-items:baseline;gap:12px;margin:8px 0 6px}
.cq-pay small{font-family:'Montserrat',sans-serif;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8a6a2a;white-space:nowrap}
.cq-pay b{flex:1;font-family:'Great Vibes','Playfair Display',cursive;font-size:32px;font-weight:400;color:#081020;border-bottom:1px solid rgba(160,125,60,.5);line-height:1.15}
.cq-amt{display:flex;align-items:center;gap:14px;margin:6px 0 10px}
.cq-amt span{flex:1;font-size:12px;font-style:italic;color:#4a3d22;border-bottom:1px solid rgba(160,125,60,.5);padding-bottom:3px}
.cq-amt b{font-family:'Montserrat',sans-serif;font-weight:900;font-size:24px;color:#081020;padding:6px 12px;border:1.5px solid #b8924a;border-radius:6px;background:#fffdf6;white-space:nowrap}
.cq-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;font-size:11px;color:#6b5a35}
.cq-sign{font-family:'Great Vibes','Playfair Display',cursive;font-size:28px;color:#081020;border-top:1px solid rgba(160,125,60,.5);padding:0 12px;line-height:1.25;white-space:nowrap}
.cq .xm-holly{width:46px;height:29px;top:-12px;left:-12px;transform:rotate(-24deg)}
.cq.un .cq-place{background:linear-gradient(135deg,#7ff0b5,#1f9d57);color:#06261a}
.cq.un .cq-amt b{border-color:#1f9d57}

/* ── Grand Reveal overlay ── */
.gr.still,.gr.still *{transition:none!important}.gr.still .gr-glow{display:none}
.gr{position:fixed;inset:0;z-index:300;overflow:hidden;background:radial-gradient(ellipse at 50% 58%,#14253f,#03070f 72%);opacity:0;transition:opacity .5s}
.gr.host{position:absolute;border-radius:inherit}
.gr.in{opacity:1}
.gr-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.gr-rays{position:absolute;left:50%;top:56%;width:170vmax;height:170vmax;transform:translate(-50%,-50%);background:repeating-conic-gradient(from 0deg,rgba(243,226,172,.085) 0 5deg,transparent 5deg 15deg);-webkit-mask-image:radial-gradient(circle,#000 0,transparent 48%);mask-image:radial-gradient(circle,#000 0,transparent 48%);opacity:0;transition:opacity 1.2s}
.gr.burst .gr-rays{opacity:1;animation:gr-spin 26s linear infinite}
@keyframes gr-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.gr-title{position:absolute;left:0;right:0;top:7%;text-align:center;z-index:2}
.gr-title small{display:block;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:#e2c985}
.gr-title h2{margin:8px 0 0;font-family:'Montserrat',sans-serif;font-weight:900;font-size:clamp(30px,4.2vw,56px);letter-spacing:-.03em;color:#f5f2eb}
.gr-title h2 span{background:linear-gradient(120deg,#f3e2ac,#d3b574 45%,#b8924a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.gr-box{position:absolute;left:50%;top:60%;width:clamp(170px,22vw,280px);aspect-ratio:1/1;transform:translate(-50%,-30%) scale(.55);opacity:0;transition:transform .9s cubic-bezier(.2,.9,.25,1.3),opacity .5s;z-index:3}
.gr.in .gr-box{transform:translate(-50%,-50%);opacity:1}
.gr.shake .gr-box{animation:gr-shake .42s ease-in-out 2}
@keyframes gr-shake{25%{transform:translate(-50%,-50%) rotate(-4deg)}75%{transform:translate(-50%,-50%) rotate(4deg)}}
.gr.gone .gr-box{opacity:0;transform:translate(-50%,-30%) scale(.8);transition:opacity .6s,transform .6s}
.gr-body{position:absolute;left:7%;right:7%;bottom:0;height:68%;border-radius:10px;background:linear-gradient(160deg,#cf3449,#8e1b2e 60%,#6b1222);box-shadow:inset 0 -24px 40px rgba(0,0,0,.35),0 40px 80px -20px rgba(0,0,0,.85)}
.gr-body::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:14%;transform:translateX(-50%);background:linear-gradient(90deg,#a8823e,#f8e9b8 45%,#d3b574 60%,#a8823e)}
.gr-lid{position:absolute;left:0;right:0;top:20%;height:17%;border-radius:8px;background:linear-gradient(160deg,#e04a5f,#9e1f34);box-shadow:0 12px 20px -8px rgba(0,0,0,.65);transition:transform .9s cubic-bezier(.3,1.5,.4,1),opacity .9s}
.gr-lid::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:13%;transform:translateX(-50%);background:linear-gradient(90deg,#a8823e,#f8e9b8 45%,#d3b574 60%,#a8823e)}
.gr-lid .xm-bowbig{position:absolute;left:50%;bottom:62%;width:62%;transform:translateX(-50%);transition:transform .55s ease-in,opacity .55s}
.gr.untie .xm-bowbig{transform:translateX(-50%) translateY(-34px) scale(1.25) rotate(-10deg);opacity:0}
.gr.untie .gr-lid{transform:translateY(-260%) rotate(-16deg);opacity:0}
.gr-glow{position:absolute;left:50%;top:38%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;opacity:0}
.gr.burst .gr-glow{animation:gr-glow 1.4s ease-out forwards}
@keyframes gr-glow{0%{opacity:1;box-shadow:0 0 0 0 rgba(255,243,204,.95)}100%{opacity:0;box-shadow:0 0 120px 160px rgba(255,243,204,0)}}
.gr-cheques{position:absolute;inset:0;z-index:4;pointer-events:none}
.gr .cq.on{opacity:1}
.gr .cq.c1.on{transform:translate(-50%,-66%) rotate(-1.5deg) scale(1);z-index:3}
.gr .cq.c2.on{transform:translate(-112%,-40%) rotate(-7deg) scale(.8);z-index:2}
.gr .cq.c3.on{transform:translate(12%,-40%) rotate(6deg) scale(.8);z-index:2}
.gr .cq.c4.on{transform:translate(-50%,36%) rotate(1deg) scale(.72);z-index:1}
.gr-end{position:absolute;left:0;right:0;bottom:3.5%;z-index:5;display:flex;flex-direction:column;align-items:center;gap:12px;opacity:0;transform:translateY(12px);transition:opacity .6s,transform .6s}
.gr.end .gr-end{opacity:1;transform:none}
.gr-gift{display:inline-block;padding:7px 16px;border-radius:999px;border:1px solid rgba(243,226,172,.55);background:rgba(8,16,32,.72);font-family:'Montserrat',sans-serif;font-size:12.5px;font-weight:700;letter-spacing:.01em;color:#f3e2ac;text-align:center}
.gr-end p{margin:0;font-family:'Great Vibes','Playfair Display',cursive;font-size:clamp(24px,2.6vw,36px);color:#f6e7b4}
.gr-end small{font-size:12px;color:rgba(255,255,255,.55)}
.gr-x{position:absolute;top:16px;right:16px;z-index:6;width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(8,16,32,.6);color:#f5f2eb;font-size:20px;cursor:pointer}
.gr-cf{position:absolute;top:-4%;width:7px;height:12px;border-radius:2px;z-index:5;opacity:.95;animation:gr-fall linear forwards;pointer-events:none}
@keyframes gr-fall{to{transform:translate3d(var(--dx),110vh,0) rotate(var(--rot))}}
@media(max-width:1060px){.adv .tl::before,.adv .tl i::after{display:none}.adv .tl div{padding-top:8px}}
@media(max-width:720px){
  .cq{width:84%;min-width:0;padding:12px 14px}
  .cq-pay b{font-size:24px}.cq-amt b{font-size:17px}.cq-sign{font-size:20px}
  .gr .cq.c1.on{transform:translate(-50%,-30%) rotate(-1.5deg)}
  .gr .cq.c2.on{transform:translate(-50%,-112%) rotate(-3deg) scale(.86)}
  .gr .cq.c3.on{transform:translate(-50%,-72%) rotate(3deg) scale(.9)}
  .gr .cq.c4.on{transform:translate(-50%,48%) rotate(1deg) scale(.86)}
}
@media(prefers-reduced-motion:reduce){.xm-lights::after,.snd.on .wv,.gr.burst .gr-rays,.pd.unlocked:not(.open){animation:none}}
