/* 777PERYAH — Snowy Casino Wonderland theme (v2).
   Matches the reference design: night sky + snowy scenery, light string with snow ridge, snow-capped buttons/cards,
   gold-outlined chips, candy-stripe red buttons, glowing gold panels. Scoped to html.xmas (season gate in christmas-theme.js). */
html.xmas{
  --xm-gold:#ffd54a;--xm-gold2:#f0a81c;--xm-gold3:#b8740a;--xm-red:#d9222e;--xm-red2:#9c0f1a;--xm-night:#0b0c14;--xm-ink:#12152a;
  --s:.9;
  background:#0b0c14!important}
html.xmas body{background:transparent!important;background-attachment:scroll!important}

/* ---------- night scene behind everything (static = free on mobile) ---------- */
html.xmas #xmas-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:
   url(/assets/xmas/sky.svg) 0 0/520px 520px,
   radial-gradient(ellipse 85% 50% at 50% 0,#1d2d5e 0,rgba(17,26,56,.7) 45%,transparent 78%),
   linear-gradient(#070b1e,#0e1736 58%,#0a0f22)}
html.xmas #xmas-scene>i{position:absolute;left:0;right:0;bottom:0;height:clamp(90px,17vh,150px);background:url(/assets/xmas/ground.svg) repeat-x left bottom/100% 100%;z-index:3}
html.xmas #xmas-scene::before,html.xmas #xmas-scene::after{content:"";position:absolute;z-index:2;bottom:0;width:min(32vh,360px);height:min(66vh,700px);background-repeat:no-repeat;background-size:contain;display:none}
html.xmas #xmas-scene::before{left:0;background-image:url(/assets/xmas/tree-left.svg);background-position:left bottom}
html.xmas #xmas-scene::after{right:0;background-image:url(/assets/xmas/tree-right.svg);background-position:right bottom}
@media (min-width:900px){html.xmas #xmas-scene::before,html.xmas #xmas-scene::after{display:block}}

/* ---------- snow ridge (cut from the reference) + blinking light string ---------- */
html.xmas #xmas-lights{position:absolute;top:0;left:0;right:0;height:calc(52px*var(--s));pointer-events:none;z-index:2147483000;overflow:hidden}
html.xmas #xmas-lights>i{position:absolute;inset:0;z-index:3;background:url(/assets/xmas/snow-ridge.png) repeat-x left top/auto calc(36px*var(--s))}
html.xmas #xmas-lights::before,html.xmas #xmas-lights::after{content:"";position:absolute;left:0;right:0;top:calc(16px*var(--s));height:calc(28px*var(--s)*1.0);background-repeat:repeat-x;background-size:calc(132px*var(--s)*.95) calc(28px*var(--s)*.95)}
html.xmas #xmas-lights::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='28' viewBox='0 0 132 28'%3E%3Cpath d='M0 6Q11 12 22 6Q33 12 44 6Q55 12 66 6Q77 12 88 6Q99 12 110 6Q121 12 132 6' stroke='%230d2a1a' stroke-width='1.3' fill='none'/%3E%3Crect x='9.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='11' cy='17' r='7.5' fill='%23ff3b53' opacity='.35'/%3E%3Cellipse cx='11' cy='16.5' rx='2.9' ry='4.4' fill='%23ff3b53'/%3E%3Cellipse cx='10.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3Crect x='53.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='55' cy='17' r='7.5' fill='%23ffd23a' opacity='.35'/%3E%3Cellipse cx='55' cy='16.5' rx='2.9' ry='4.4' fill='%23ffd23a'/%3E%3Cellipse cx='54.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3Crect x='97.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='99' cy='17' r='7.5' fill='%23ff8a2b' opacity='.35'/%3E%3Cellipse cx='99' cy='16.5' rx='2.9' ry='4.4' fill='%23ff8a2b'/%3E%3Cellipse cx='98.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3C/svg%3E");animation:xm-a 1.7s ease-in-out infinite alternate}
html.xmas #xmas-lights::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='28' viewBox='0 0 132 28'%3E%3Cpath d='M0 6Q11 12 22 6Q33 12 44 6Q55 12 66 6Q77 12 88 6Q99 12 110 6Q121 12 132 6' stroke='%230d2a1a' stroke-width='1.3' fill='none'/%3E%3Crect x='31.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='33' cy='17' r='7.5' fill='%2336d27a' opacity='.35'/%3E%3Cellipse cx='33' cy='16.5' rx='2.9' ry='4.4' fill='%2336d27a'/%3E%3Cellipse cx='32.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3Crect x='75.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='77' cy='17' r='7.5' fill='%2343b6ff' opacity='.35'/%3E%3Cellipse cx='77' cy='16.5' rx='2.9' ry='4.4' fill='%2343b6ff'/%3E%3Cellipse cx='76.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3Crect x='119.4' y='8' width='3.2' height='4' rx='.8' fill='%2312301f'/%3E%3Ccircle cx='121' cy='17' r='7.5' fill='%23ff5ac8' opacity='.35'/%3E%3Cellipse cx='121' cy='16.5' rx='2.9' ry='4.4' fill='%23ff5ac8'/%3E%3Cellipse cx='120.2' cy='15' rx='.8' ry='1.4' fill='%23fff' opacity='.8'/%3E%3C/svg%3E");animation:xm-b 1.7s ease-in-out infinite alternate}
@keyframes xm-a{from{opacity:1}to{opacity:.4}}@keyframes xm-b{from{opacity:.4}to{opacity:1}}
html.xmas:not(.xm-home){--s:.78}
@media (max-width:760px){html.xmas{--s:.62!important}}
html.xmas #xmas-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2147482999}

/* ---------- snow caps: the real snow shapes from the reference (assets/xmas/snow-*.png) ---------- */
html.xmas .xm-cap::before,html.xmas .xm-cap-a::after{content:"";position:absolute;box-sizing:border-box;z-index:5;pointer-events:none;
  left:calc(-5px*var(--s));right:calc(-5px*var(--s));top:calc(-10px*var(--s));height:calc(25px*var(--s));background:url(/assets/xmas/snow-chip.png) no-repeat 0 0/100% 100%}
html.xmas .xm-cap.xm-w::before,html.xmas .xm-cap-a.xm-w::after{top:calc(-15px*var(--s));height:calc(36px*var(--s));background-image:url(/assets/xmas/snow-chipw.png)}
html.xmas .xm-cap.xm-in::before,html.xmas .xm-cap-a.xm-in::after{top:calc(-2px*var(--s))}
html.xmas .xm-cap.xm-w.xm-in::before,html.xmas .xm-cap-a.xm-w.xm-in::after{top:calc(-4px*var(--s))}
/* panels / cards: 3-slice (fixed drooping ends, stretchy middle) */
html.xmas .xm-cap.xm-big::before,html.xmas .xm-cap-a.xm-big::after{background:none;left:calc(-9px*var(--s));right:calc(-9px*var(--s));top:calc(-26px*var(--s));height:calc(51px*var(--s));
  border:solid transparent;border-width:0 calc(90px*var(--s));border-image:url(/assets/xmas/snow-card.png) 0 90 0 90 fill/0 calc(90px*var(--s)) 0 calc(90px*var(--s)) stretch}
html.xmas .xm-cap.xm-big.xm-huge::before,html.xmas .xm-cap-a.xm-big.xm-huge::after{left:calc(-14px*var(--s));right:calc(-14px*var(--s));top:calc(-26px*var(--s));height:calc(73px*var(--s));
  border-width:0 calc(118px*var(--s));border-image:url(/assets/xmas/snow-hero.png) 0 118 0 118 fill/0 calc(118px*var(--s)) 0 calc(118px*var(--s)) stretch}
html.xmas .xm-cap.xm-big.xm-in::before,html.xmas .xm-cap-a.xm-big.xm-in::after{top:calc(-4px*var(--s))}

/* Keep the snow cap inside horizontally scrollable filter tracks so it cannot be clipped at the top edge. */
html.xmas .category-bar .filter.xm-cap::before,html.xmas .category-bar .filter.xm-cap-a::after,
html.xmas .toolbar .filters .filter.xm-cap::before,html.xmas .toolbar .filters .filter.xm-cap-a::after{
  top:0;left:0;right:0;height:calc(16px*var(--s))}

/* ---------- gold-outlined chips (category bar, filters, tabs) ---------- */
html.xmas .filter,html.xmas .live-filter,html.xmas .event-tab{
  background:linear-gradient(180deg,#1b1a1f,#0c0b0e)!important;color:#fff!important;border:1.5px solid #e8a622!important;border-radius:999px!important;
  box-shadow:inset 0 0 12px rgba(255,190,60,.18),0 0 10px rgba(255,170,30,.25)!important;font-weight:900!important;text-shadow:0 1px 2px #000}
html.xmas .filter.active,html.xmas .filter:hover,html.xmas .live-filter.active,html.xmas .event-tab.active{
  background:linear-gradient(180deg,#ffe980,#f6b81f 55%,#d98b0b)!important;color:#2a1700!important;border-color:#ffe8a0!important;text-shadow:0 1px 0 #fff6;
  box-shadow:inset 0 1px 0 #fffa,0 0 18px rgba(255,200,60,.65)!important}
html.xmas .filter-icon{color:inherit!important}

/* ---------- candy-stripe red buttons ---------- */
html.xmas .header-cta,html.xmas .primary-action,html.xmas .hero-actions a,html.xmas a.cashin,html.xmas .start-button,html.xmas .bet-btn,
html.xmas .continue,html.xmas .play,html.xmas .deal,html.xmas .roll-button,html.xmas .rw-btn,html.xmas .wallet-action,html.xmas .spin,html.xmas .cta,html.xmas .mobile-play-now{
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 9px,rgba(0,0,0,.13) 9px 18px),linear-gradient(180deg,#f04652,#c31a28 55%,#8e0b16)!important;
  color:#fff!important;border:1.5px solid #ffc94d!important;border-radius:12px!important;text-shadow:0 1px 2px rgba(0,0,0,.55)!important;font-weight:1000!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -3px 0 rgba(0,0,0,.28),0 0 16px rgba(255,70,60,.4)!important}
html.xmas .header-cta:hover,html.xmas .primary-action:hover,html.xmas .start-button:hover,html.xmas .spin:hover{filter:brightness(1.12)}
html.xmas .header-cta[hidden]{display:none!important}

/* ---------- header, brand, announcement, search ---------- */
html.xmas .site-header{padding-top:26px!important;background:linear-gradient(180deg,rgba(7,9,18,.97),rgba(11,12,20,.97))!important;
  border-bottom:1px solid rgba(255,200,80,.6)!important;box-shadow:0 1px 0 rgba(255,214,110,.25),0 10px 26px rgba(0,0,0,.6)!important}
html.xmas .brand{position:relative}
html.xmas .brand::before{content:"";position:absolute;left:-8px;top:-17px;width:62px;height:34px;z-index:6;pointer-events:none;background:url(/assets/xmas/snow-coin.png) no-repeat 0 0/100% 100%}
html.xmas .brand-name{color:#fff!important;text-shadow:0 2px 0 #000a!important}html.xmas .brand-name small{color:var(--xm-gold)!important}
html.xmas .announcement{border:1.5px solid rgba(255,190,70,.75)!important;background:linear-gradient(180deg,rgba(60,42,10,.55),rgba(14,11,6,.85))!important;color:#fff!important;font-weight:900!important;
  box-shadow:inset 0 0 18px rgba(255,190,60,.2),0 0 14px rgba(255,170,30,.25)!important}
html.xmas .announce-icon{color:var(--xm-gold)!important}
html.xmas .search{border:1.5px solid rgba(255,190,70,.75)!important;background:linear-gradient(180deg,rgba(50,36,10,.5),rgba(10,9,8,.9))!important;color:#fff!important;box-shadow:inset 0 0 14px rgba(255,190,60,.15)!important}
html.xmas .category-bar{background:linear-gradient(180deg,rgba(8,9,16,.97),rgba(10,10,16,.97))!important;border-bottom:1px solid rgba(255,200,80,.55)!important;box-shadow:0 8px 24px rgba(0,0,0,.65)!important;padding-top:18px!important}

/* ---------- hero panel, host coin, headline ---------- */
html.xmas .hero{position:relative;overflow:visible!important;border:4px solid #f5b02e!important;border-radius:28px!important;background:linear-gradient(115deg,rgba(8,9,16,.88),rgba(14,15,26,.9))!important;
  box-shadow:0 0 0 3px #1a1206 inset,0 0 0 5px rgba(255,200,80,.75) inset,0 0 30px rgba(255,160,30,.75),0 0 70px rgba(255,140,20,.35),0 22px 60px #000b!important}
html.xmas .hero::before{opacity:.05!important}
html.xmas .hero-copy{position:relative;border:1.5px solid rgba(255,196,80,.85)!important;border-radius:22px!important;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='20' cy='40' r='1.1' opacity='.8'/%3E%3Ccircle cx='90' cy='120' r='1.5' opacity='.9'/%3E%3Ccircle cx='160' cy='30' r='1' opacity='.6'/%3E%3Ccircle cx='230' cy='90' r='1.6' opacity='.85'/%3E%3Ccircle cx='270' cy='200' r='1.1' opacity='.7'/%3E%3Ccircle cx='60' cy='230' r='1.3' opacity='.8'/%3E%3Ccircle cx='140' cy='190' r='1' opacity='.55'/%3E%3Ccircle cx='200' cy='260' r='1.4' opacity='.8'/%3E%3Ccircle cx='30' cy='150' r='.9' opacity='.5'/%3E%3C/g%3E%3Cpath d='M120 70V90M110 80H130' stroke='%23fff' stroke-width='1.2' opacity='.7' stroke-linecap='round'/%3E%3Cpath d='M245 160V176M237 168H253' stroke='%23cfe3ff' stroke-width='1.2' opacity='.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0/260px 260px,linear-gradient(180deg,rgba(14,14,20,.96),rgba(7,7,12,.98))!important;box-shadow:inset 0 0 30px rgba(255,170,40,.16)!important}
html.xmas .hero-copy::after{content:"";position:absolute;right:16px;top:70px;width:30px;height:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M17 3V31M5 10L29 24M5 24L29 10'/%3E%3Cpath d='M13 6L17 9L21 6M13 28L17 25L21 28M3 14L7 16L6 20M31 14L27 16L28 20M3 20L7 18M31 20L27 18'/%3E%3C/svg%3E") no-repeat center/contain;opacity:.9;pointer-events:none}
html.xmas .host-orb{position:absolute;border:4px solid #ffe9a0!important;background:radial-gradient(circle at 33% 26%,#fff6b0,#ffd84a 32%,#e8a015 66%,#8a5008)!important;color:#4a2a05!important;
  box-shadow:0 0 22px rgba(255,190,50,.6),inset 0 4px 8px #fffa,inset 0 -8px 14px rgba(120,60,0,.35)!important}
html.xmas .host-orb::before{content:"";position:absolute;left:-9%;right:-9%;top:-27%;aspect-ratio:194/106;z-index:3;pointer-events:none;background:url(/assets/xmas/snow-coin.png) no-repeat 0 0/100% 100%}
html.xmas .hero h1 span{background:linear-gradient(#fff3a6,#ffd23d 45%,#b9760a)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;filter:drop-shadow(0 2px 0 #5a3200);text-shadow:none!important;display:inline-block}
html.xmas .provider-note strong,html.xmas .hero .eyebrow{color:var(--xm-gold)!important}

/* ---------- cards / panels: gold glow border ---------- */
html.xmas .feature-card,html.xmas .live-tile,html.xmas .game-card{position:relative;border:3px solid #f0a928!important;
  background:linear-gradient(160deg,#171a30,#0a0b14)!important;box-shadow:0 0 0 2px #140d04 inset,0 0 0 3px rgba(255,200,80,.5) inset,0 0 20px rgba(255,160,30,.6),0 10px 24px rgba(0,0,0,.65)!important}
html.xmas .feature-card{border-radius:20px!important}
html.xmas .game-card:hover,html.xmas .live-tile:hover,html.xmas .feature-card:hover{box-shadow:0 0 0 1px #ffe8a0 inset,0 0 26px rgba(255,190,50,.75),0 12px 28px #000b!important}
html.xmas .toolbar,html.xmas .provider-section,html.xmas .winner-strip,html.xmas .mobile-nav{border:1.5px solid rgba(240,169,40,.8)!important;background:linear-gradient(180deg,rgba(18,20,36,.96),rgba(9,10,18,.97))!important;box-shadow:0 0 16px rgba(255,160,30,.25),0 10px 26px #000a!important}
html.xmas .tag{border-color:#f0a928!important;color:var(--xm-gold)!important;background:rgba(240,169,40,.12)!important}
html.xmas .recommend{background:linear-gradient(90deg,#c1121f,#1b8a4b)!important;color:#fff!important;border:1.5px solid #ffc94d!important;border-radius:999px!important;box-shadow:0 4px 12px #0009!important;font-weight:1000!important}
html.xmas .live-indicator{background:linear-gradient(180deg,#e8323c,#a10f1b)!important;color:#fff!important;border:1.5px solid #ffd2d2!important;font-weight:1000!important;box-shadow:0 3px 8px #0009!important}
html.xmas .section-title h2{color:#fff!important}html.xmas .section-title h2::after{content:" ❄";color:#cfe6ff}html.xmas .section-title small{color:var(--xm-gold)!important}
html.xmas .mobile-nav a.active{background:linear-gradient(180deg,#ffe980,#d98b0b)!important;color:#2a1700!important}
html.xmas .footer{color:#cfe0f7!important}

/* ---------- generic betting-page panels (cap + gold edge) ---------- */
html.xmas .xm-panel{border-color:rgba(240,169,40,.8)!important;box-shadow:0 0 14px rgba(255,160,30,.3),0 8px 22px rgba(0,0,0,.55)}
html.xmas .xm-capped{position:relative}

/* ---------- chip: countdown + snow toggle ---------- */
html.xmas #xmas-chip{position:fixed;left:10px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:2147483001;display:inline-flex;align-items:center;gap:6px;
  padding:7px 12px;border:1.5px solid #f0a928;border-radius:999px;background:linear-gradient(180deg,#1b1a1f,#0a090c);color:#fff;font:800 11px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  cursor:pointer;box-shadow:0 0 12px rgba(255,170,30,.4),0 2px 10px rgba(0,0,0,.5)}
html.xmas #xmas-chip i{font-style:normal;opacity:.85}
@media (min-width:761px){html.xmas #xmas-chip{bottom:16px}}

html.full #xmas-lights,html.full #xmas-scene,html.full #xmas-snow,html.pfs #xmas-lights{display:none!important}
@media (prefers-reduced-motion:reduce){html.xmas #xmas-lights::before,html.xmas #xmas-lights::after{animation:none}html.xmas #xmas-snow{display:none}}
@media print{html.xmas #xmas-lights,html.xmas #xmas-scene,html.xmas #xmas-snow,html.xmas #xmas-chip{display:none!important}}

/* Temporary fullscreen off switch. The original scripts and CSS stay in place and can be re-enabled later. */
.fs-btn,.fullscreen-btn,.fullscreen-button,[data-fullscreen-control]{display:none!important}

@media (min-width:761px){html.xmas .filter{min-height:40px;padding:0 22px!important;font-size:14px!important}html.xmas .header-cta{font-size:12px!important}}
html.xmas .feature-card .xm-live{position:absolute;top:12px;right:12px;z-index:7;pointer-events:none;padding:5px 11px;border-radius:999px;border:1.5px solid #ffd2d2;background:linear-gradient(180deg,#e8323c,#a10f1b);color:#fff;font:1000 11px/1 system-ui,sans-serif;letter-spacing:.06em;box-shadow:0 3px 8px #0009}

@media (min-width:761px){html.xmas .site-header{height:104px!important;padding-top:30px!important}html.xmas .category-bar{top:104px!important}html.xmas{scroll-padding-top:170px}}

html.xmas .feature-card,html.xmas .live-tile{overflow:visible!important}
html.xmas .feature-card>iframe,html.xmas .feature-card>video,html.xmas .feature-card>img{border-radius:20px}
html.xmas .live-tile .live-preview{border-radius:12px;overflow:hidden}

/* ---------- live games: never draw snow caps on betting buttons or panels ---------- */
