/* Kurdish Wolf theme – overrides on top of the shared Greedy UI (style.css + modern.css)
   Palette: night #0b1020 · royal blue #1d2f6b · crimson #8a0d14 · gold #ffd76a · ice #9fe9ff */
#bgfill{background:radial-gradient(120% 70% at 50% 45%,rgba(30,45,110,.18),rgba(6,8,20,.88) 75%),url(assets/bg_castle.webp) center 35%/cover no-repeat}
html,body{background:#070a16}
#loader{background:radial-gradient(120% 80% at 50% 40%,#1d2f6b,#060914 70%)}
#loader .logo{height:min(64vw,270px)}
#loader .logo #lMonkey{left:22%;width:56%;top:0}
#lWord{bottom:-6%;width:64%}

/* centre: wolf emblem + countdown pill */
#center .monkey.hero{left:2px;top:-14px;width:244px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.6))}
#center .bulbs{display:none}
#center .ring{opacity:.45}
#count{left:62px;right:62px;top:236px;height:48px;line-height:46px;font-size:34px;border-radius:24px;
  background:linear-gradient(#18224a,#0b1020) padding-box,var(--gold-edge) border-box;border:2.5px solid transparent;
  -webkit-text-stroke:2px #0e4c7a;color:#d8f6ff;text-shadow:0 2px 0 #08304f,0 0 12px rgba(120,220,255,.6);box-shadow:0 6px 14px rgba(0,0,0,.5)}
#count:empty{display:none}
#count.hot{-webkit-text-stroke-color:#8a0d14;color:#ffe1e1;text-shadow:0 2px 0 #5a0408,0 0 12px rgba(255,80,80,.7)}
#center.happy .monkey{animation:howl .55s cubic-bezier(.3,1.6,.5,1) 3}
@keyframes howl{40%{transform:translateY(-14px) scale(1.06)}}
#center.drawing .monkey{animation:growl .18s ease-in-out infinite alternate}
@keyframes growl{from{transform:rotate(-2.5deg) scale(1.01)}to{transform:rotate(2.5deg) scale(1.03)}}

/* baskets: wide crowned frames, totals in a pill underneath */
.basket{width:156px;height:93px;margin:-46px 0 0 -78px}
.basket.group{width:176px;height:88px;margin:-44px 0 0 -88px}
.basket .chips{left:14%;right:30%;top:14%;bottom:20%}
.basket .total,.basket.group .total{left:50%;right:auto;transform:translateX(-50%);bottom:-22px;height:22px;padding:0 11px;border-radius:11px;font-size:12.5px;
  background:linear-gradient(#1a2350,#0a0f22) padding-box,var(--gold-edge) border-box;border:1.5px solid transparent;color:#ffe9b0;text-shadow:none}
.basket .mine{left:auto;right:-6px;bottom:auto;top:-10px;transform:none;font-size:11px;padding:1px 7px}

/* header + dock in royal blue / gold */
#recent,#winToday,#totals{background:linear-gradient(#1a2350,#0a0f22) padding-box,var(--gold-edge) border-box}
#recent .list img{border-radius:7px}
#bottom{background:linear-gradient(180deg,#1d2f6b,#0b1020) padding-box,var(--gold-edge) border-box}
#balanceBox{background:rgba(0,0,0,.35)}
#balanceBox .lbl,#winToday::before{color:#bcd3ff}
#announce .plaque{background:linear-gradient(#2f4aa8 0%,#1d2f6b 50%,#0d1640 100%)}
#announce::before,#announce::after{background:linear-gradient(#24399a,#0d1640)}
#stage::before{background:repeating-conic-gradient(from 0deg,rgba(160,210,255,.13) 0 7deg,transparent 7deg 22deg)}
.res .food img{height:96px}
.res .banner.lose{width:300px;top:-92px}
.hrow img{border-radius:8px}

/* ---------- living wolf ---------- */
#center #wolf{height:254px}
#wolf .base,#wolf .head,#wolf .jaw{position:absolute;left:0;top:0;width:100%;height:100%}
#wolf .head{transform-origin:52% 80%;animation:breathe 3.4s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1) rotate(0)}30%{transform:scale(1.012) rotate(-.6deg)}65%{transform:scale(1.02) rotate(.5deg) translateY(-1px)}}
#wolf .jaw{transform-origin:52% 60%}
#wolf .eye{position:absolute;top:41.9%;width:20px;height:14px;margin:-7px 0 0 -10px;border-radius:50%;mix-blend-mode:screen;
  background:radial-gradient(closest-side,rgba(255,230,120,.95),rgba(255,170,0,.45) 55%,transparent);animation:eyes 2.8s ease-in-out infinite}
#wolf .eye.l{left:41.1%}#wolf .eye.r{left:62.3%}
@keyframes eyes{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:.95;transform:scale(1.15)}}
#wolf[data-phase=drawing] .eye{animation-duration:.5s;background:radial-gradient(closest-side,rgba(255,250,200,1),rgba(255,120,0,.6) 55%,transparent)}
#wolf .glint{position:absolute;top:41.9%;width:58px;opacity:0;mix-blend-mode:screen;pointer-events:none}
#wolf .mist{position:absolute;left:51.7%;top:70%;width:0;height:0}
#wolf .mist i{position:absolute;width:34px;height:22px;border-radius:50%;background:radial-gradient(closest-side,rgba(235,245,255,.75),transparent);filter:blur(2px)}
#wolf .waves{position:absolute;left:51.7%;top:62%;width:0;height:0}
#wolf .waves i{position:absolute;width:90px;height:90px;border-radius:50%;border:3px solid rgba(190,230,255,.85);box-shadow:0 0 12px rgba(150,210,255,.8)}
#center.happy .monkey{animation:none}

/* ---------- Kurdistan sun behind the wolf (21 rays) ---------- */
#center .ring{display:none}
.roj{position:absolute;left:-55px;top:-80px;width:358px;height:358px;opacity:.6;filter:drop-shadow(0 0 10px rgba(255,190,40,.7));animation:spin 60s linear infinite}
#stage[data-phase=drawing] .roj{animation-duration:6s;opacity:.85}
#stage[data-phase=result] .roj{opacity:.9}

/* ---------- moon that rises when the wolf howls ---------- */
#moon{position:absolute;left:-60px;top:-90px;width:370px;height:370px;border-radius:50%;opacity:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(235,245,255,.95) 0 38%,rgba(170,205,255,.55) 52%,rgba(120,170,255,.18) 68%,transparent 72%)}
#moon.up{animation:moonup 2.4s ease-out}
@keyframes moonup{0%{opacity:0;transform:scale(.6)}30%{opacity:.95;transform:scale(1.04)}70%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(1.08)}}

/* ---------- mountain fog behind everything ---------- */
#fog{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#fog i{position:absolute;left:-50%;width:200%;height:38%;opacity:.35;
  background:radial-gradient(40% 50% at 25% 50%,rgba(200,215,240,.5),transparent 70%),radial-gradient(35% 45% at 70% 55%,rgba(200,215,240,.45),transparent 70%);
  animation:fog 38s linear infinite}
#fog i:first-child{top:30%}
#fog i:last-child{top:55%;opacity:.25;animation-duration:55s;animation-direction:reverse}
@keyframes fog{from{transform:translateX(0)}to{transform:translateX(25%)}}

/* ---------- kilim pattern trim on the dock (red / green / gold diamonds) ---------- */
#bottom::after{content:"";position:absolute;left:22px;right:22px;bottom:6px;height:9px;border-radius:5px;opacity:.85;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='9'%3E%3Cpath d='M0 4.5L9 0L18 4.5L9 9z' fill='%23ed2024'/%3E%3Cpath d='M18 4.5L27 0L36 4.5L27 9z' fill='%23278e43'/%3E%3Ccircle cx='18' cy='4.5' r='1.8' fill='%23febd11'/%3E%3Ccircle cx='0' cy='4.5' r='1.8' fill='%23febd11'/%3E%3Ccircle cx='36' cy='4.5' r='1.8' fill='%23febd11'/%3E%3C/svg%3E") repeat-x center/36px 9px}
#announce.start .plaque::before{content:"";position:absolute;inset:0;opacity:.18;
  background:repeating-linear-gradient(90deg,#ed2024 0 14px,#ffffff 14px 28px,#278e43 28px 42px)}

@media (prefers-reduced-motion:reduce){#wolf .head,#wolf .eye,.roj,#fog i{animation:none!important}}
#moon{z-index:1}.roj{z-index:0}#center #wolf{z-index:2}

/* ---------- winner reveal ---------- */
.wlayer{position:absolute;inset:0;pointer-events:none}
.wlayer>*{position:absolute}
.wspot{width:520px;height:520px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,235,170,.55),rgba(255,180,60,.18) 55%,transparent 72%);mix-blend-mode:screen}
.whero{width:250px;height:250px;z-index:2}
.whero-in{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transform-origin:50% 85%}
.whero-in img{max-width:100%;max-height:100%;filter:drop-shadow(0 14px 22px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(255,210,90,.55))}
.wp{width:12px;height:12px;border-radius:50%;z-index:3}
.wp.frost{width:7px;height:7px;background:#e8f6ff;box-shadow:0 0 8px #9fdcff}
.wp.dust{width:34px;height:24px;background:radial-gradient(closest-side,rgba(205,170,120,.8),transparent);filter:blur(1px);z-index:1}
.wp.feather{width:18px;height:6px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:linear-gradient(90deg,#fff,#d9c2a0)}
.wp.ember2{width:7px;height:7px;background:#ffd36a;box-shadow:0 0 10px #ff7a00}
.wp.pebble{width:9px;height:8px;border-radius:40%;background:#8a8378;box-shadow:inset -2px -2px 0 rgba(0,0,0,.3)}
.wring{width:110px;height:110px;border-radius:50%;border:4px solid;z-index:1}
.wstreak{width:150px;height:3px;border-radius:2px;background:linear-gradient(90deg,transparent,#fff,transparent);z-index:3}
.wslash{width:260px;height:9px;border-radius:5px;transform-origin:0 50%;z-index:3;
  background:linear-gradient(90deg,rgba(255,255,255,0),#fff 30%,#ffd0d0 70%,rgba(255,60,60,0));box-shadow:0 0 12px rgba(255,80,80,.9)}
.wflash{width:300px;height:300px;border-radius:50%;background:radial-gradient(closest-side,#fff,rgba(255,240,200,.4) 50%,transparent);z-index:3}
.wswirl{width:220px;mix-blend-mode:screen;z-index:1}
.wcrack{width:320px;height:60px;transform:translate(-50%,-50%);z-index:1}
.wcrack svg{width:100%;height:100%}
#fx .whero-in img{position:static;mix-blend-mode:normal}#fx .wswirl{position:absolute}
