/* Lucky Chest (2026-10-12): the universal event upgrade chest (lucky-chest.ts).
   Every visible state is static CSS keyed by classes; beats are Web Animations from the
   previous state (transform/opacity only). Idle loops run only without reduced motion. */
#modal.hub-reward-modal:has(.lucky-chest){border-color:#8a5a2b;background:linear-gradient(var(--cream-200),#f5dcaa 68%,#ecc488);box-shadow:inset 0 3px var(--card-face),0 14px 36px #1a101c99;padding:12px 12px 14px}
.lucky-chest{--lc-stage-h:clamp(200px,37dvh,276px);--lc-chest:calc(var(--lc-stage-h)*.6);--lc-center:54%;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:center}
.lc-head{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 50px}
.lc-head h1{margin:0;color:#4a2c1c;line-height:1.1}
.lc-head .help-button{position:absolute;right:0;top:0}
.lc-index{position:absolute;left:2px;top:50%;margin-top:-13px;min-width:40px;padding:2px 8px;border:2px solid #8a5a2b;border-radius:999px;background:var(--cream-300);box-shadow:0 2px #8a5a2b;font:15px/1.2 Lucky;color:#6b3a12}

/* Stage: a neutral night nook with a few static stars, so the level light reads clearly; the
   light is clipped, the effects are not. */
.lc-stage{position:relative;flex:none;height:var(--lc-stage-h);margin-bottom:16px;border:3px solid #6b4526;border-radius:20px;background:radial-gradient(circle at 50% 58%,#3a3148 0,#241d33 50%,var(--panel-night) 100%);box-shadow:inset 0 0 0 2px #e8b56a55,0 3px #a4733f}
.lc-stage::before{content:"";position:absolute;inset:0;border-radius:17px;pointer-events:none;background:radial-gradient(1.6px 1.6px at 11% 18%,#fff 50%,transparent 60%),radial-gradient(1.4px 1.4px at 86% 14%,#fff 50%,transparent 60%),radial-gradient(1.8px 1.8px at 72% 30%,#ffe9b0 50%,transparent 60%),radial-gradient(1.2px 1.2px at 24% 40%,#fff 50%,transparent 60%),radial-gradient(1.5px 1.5px at 92% 52%,#ffe9b0 50%,transparent 60%),radial-gradient(1.3px 1.3px at 7% 66%,#fff 50%,transparent 60%),radial-gradient(1.6px 1.6px at 33% 10%,#ffe9b0 50%,transparent 60%),radial-gradient(1.2px 1.2px at 60% 8%,#fff 50%,transparent 60%);opacity:.8}
/* Level light (owner decision 2026-10-12): the chest is the same at every level, so rarity reads
   ONLY through light: 1 warm gold, 2 green, 3 blue, 4 purple/magenta. Each level is a pre-rendered
   layer (sky wash, rays, twinkles, aura, halo) in its own colours (--lc-glow, --lc-deep) whose size
   and intensity grow with --lc-power; a success crossfades the layers' opacity. Rays rest still
   below the top level; level 4 alone turns them slowly and adds twinkles. */
.lc-auras{position:absolute;inset:0;overflow:hidden;border-radius:17px;pointer-events:none}
.lc-light{position:absolute;inset:0;opacity:0}
.lc-light.is-current{opacity:1}
.lc-sky{position:absolute;inset:0;background:radial-gradient(ellipse 72% 66% at 50% var(--lc-center),var(--lc-glow) 0,var(--lc-deep) 40%,transparent 80%),radial-gradient(ellipse 90% 34% at 50% 104%,var(--lc-deep) 0,transparent 100%);opacity:calc(.2 + .08*var(--lc-power))}
.lc-light.is-spin .lc-sky{background:radial-gradient(ellipse 72% 66% at 50% var(--lc-center),var(--lc-glow) 0,var(--lc-deep) 40%,transparent 80%),radial-gradient(ellipse 90% 34% at 50% 104%,#ff4fcf 0,transparent 100%)}
.lc-aura-pulse{position:absolute;left:50%;top:var(--lc-center);width:calc(var(--lc-chest)*1.9);height:calc(var(--lc-chest)*1.9);margin:calc(var(--lc-chest)*-.95) 0 0 calc(var(--lc-chest)*-.95)}
.lc-aura{position:absolute;inset:0;opacity:0;transform:scale(calc(.74 + .14*var(--lc-power)))}
.lc-aura.is-current{opacity:1}
.lc-aura::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,var(--card-face) 0,var(--lc-glow) 18%,var(--lc-deep) 40%,transparent 66%);opacity:calc(.5 + .1*var(--lc-power))}
.lc-rays{--lc-rays-d:calc(var(--lc-chest)*(1.9 + .3*var(--lc-power)));position:absolute;left:50%;top:var(--lc-center);width:var(--lc-rays-d);height:var(--lc-rays-d);margin:calc(var(--lc-rays-d)/-2) 0 0 calc(var(--lc-rays-d)/-2);opacity:var(--lc-rays)}
.lc-rays::before,.lc-rays::after{content:"";position:absolute;inset:0;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 10%,transparent 64%);mask-image:radial-gradient(circle,#000 10%,transparent 64%)}
.lc-rays::before{background:repeating-conic-gradient(from 4deg,var(--lc-glow) 0 7deg,transparent 7deg 22.5deg)}
.lc-light.is-spin .lc-rays::after{background:repeating-conic-gradient(from 15deg,#ff5fd6 0 4deg,transparent 4deg 22.5deg);opacity:.7}
.lucky-chest.is-open .lc-light .lc-rays{opacity:1}

/* The chest is the second tap target for the one action. */
#modal .lucky-chest .lc-chest{position:absolute;z-index:2;left:50%;top:var(--lc-center);width:calc(var(--lc-chest) + 24px);height:calc(var(--lc-chest) + 24px);min-width:0;min-height:0;margin:calc(var(--lc-chest)/-2 - 12px) 0 0 calc(var(--lc-chest)/-2 - 12px);padding:0;border:0;border-radius:24px;background:none;box-shadow:none;transition:transform .1s ease-out;-webkit-tap-highlight-color:transparent}
#modal .lucky-chest .lc-chest::before,#modal .lucky-chest .lc-chest::after{display:none}
#modal .lucky-chest .lc-chest:is(:active,.is-pressed){transform:scale(.95)}
.lc-shadow{position:absolute;left:50%;bottom:8px;width:calc(var(--lc-chest)*.74);height:16px;margin-left:calc(var(--lc-chest)*-.37);border-radius:50%;background:radial-gradient(closest-side,#0b0612aa,transparent)}
.lc-bob{position:absolute;inset:12px;display:block;transform-origin:50% 90%}
.lc-wiggle,.lc-motion{position:absolute;inset:0;display:block;transform-origin:50% 90%}
/* The v2 art sits in a square canvas with ~18% margins: the skin and halo overhang the chest box
   so the chest fills it and stands on the shadow. */
.lc-skin,.lc-halo{position:absolute;inset:-10.9% -12.9% -18.9% -16.9%;opacity:0}
.lc-skin{isolation:isolate}
.lc-skin.is-current{opacity:1}
.lc-part{position:absolute;inset:0}
.lc-part img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #1a1014aa)}
/* Lid/body seam measured on lucky-chest-v2 (game/art/lucky-chest-v2/README.md → Hinge): the top
   edge of the gold band, 41-48% down, sloping with the 3/4 view, rising around the shield lock
   (which stays on the body). The lid overlaps the body by 0.4% so no hairline shows at rest. */
.lc-body{clip-path:polygon(0 41.5%,20.5% 42.1%,24.4% 43%,29.3% 43.2%,34.2% 43.7%,35.2% 44%,36.1% 43.2%,39.1% 42.1%,42% 39.9%,43.9% 40.3%,45.9% 41.4%,47.9% 42.7%,49.8% 43.8%,51.4% 44.3%,52.2% 46.2%,54.7% 46.6%,57.1% 47%,57.6% 47.3%,66.4% 48.4%,67.9% 47.9%,72.3% 45.8%,78.1% 42.8%,81.1% 41.3%,84% 40.7%,85.2% 39.7%,100% 39.7%,100% 100%,0 100%)}
.lc-lid{clip-path:polygon(0 0,100% 0,100% 40.1%,85.2% 40.1%,84% 41.1%,81.1% 41.7%,78.1% 43.2%,72.3% 46.2%,67.9% 48.3%,66.4% 48.8%,57.6% 47.7%,57.1% 47.4%,54.7% 47%,52.2% 46.6%,51.4% 44.7%,49.8% 44.2%,47.9% 43.1%,45.9% 41.8%,43.9% 40.7%,42% 40.3%,39.1% 42.5%,36.1% 43.6%,35.2% 44.4%,34.2% 44.1%,29.3% 43.6%,24.4% 43.4%,20.5% 42.5%,0 41.9%);transform-origin:18.5% 42.2%}
/* Halo: a soft rim of level light just behind the chest silhouette (light, never a tint on it). */
.lc-halo{transform:scale(1.07);transform-origin:52% 48%;filter:blur(7px)}
.lc-halo.is-current{opacity:1}
.lc-halo b{position:absolute;inset:0;background:radial-gradient(circle at 52% 46%,var(--card-face) 0,var(--lc-glow) 30%,var(--lc-deep) 70%);-webkit-mask:var(--lc-art) center/contain no-repeat;mask:var(--lc-art) center/contain no-repeat;opacity:calc(.38 + .14*var(--lc-power))}
.lc-tint{position:absolute;inset:0;background:var(--lc-tint);-webkit-mask:var(--lc-art) center/contain no-repeat;mask:var(--lc-art) center/contain no-repeat;mix-blend-mode:color;opacity:.55;pointer-events:none}
/* The closed lid is hinged at the left end of the seam (outer edge of the left gold band) and only
   rotates a few degrees there (peek, rattle, crack). Opened, the chest shows the approved open art
   (game/art/lucky-chest-v2 → chest-open.png, same canvas scale, body aligned) instead. */
.lc-open{opacity:0}
.lucky-chest.is-open .lc-skin :is(.lc-body,.lc-lid){opacity:0}
.lucky-chest.is-open .lc-skin .lc-open{opacity:1}
.lucky-chest.is-open .lc-halo b{-webkit-mask-image:var(--lc-art-open);mask-image:var(--lc-art-open)}
.lc-mouth{position:absolute;left:16%;right:14%;top:31%;height:30%;border-radius:50%;background:radial-gradient(closest-side,var(--cream-50) 0,#ffeaa0 34%,var(--lc-glow) 62%,transparent);opacity:0;pointer-events:none}
.lc-spark{position:absolute;width:18px;height:18px;margin:-9px;opacity:0;color:var(--cream-50);font:18px/18px Lucky;text-align:center;filter:drop-shadow(0 0 5px var(--lc-glow)) drop-shadow(0 0 12px var(--lc-glow)) drop-shadow(0 0 2px #fff)}
.lc-spark::before{content:"✦"}
.lc-spark.s0{left:24%;top:26%}.lc-spark.s1{left:77%;top:20%;font-size:13px}.lc-spark.s2{left:83%;top:62%;font-size:15px}.lc-spark.s3{left:18%;top:66%;font-size:12px}.lc-spark.s4{left:52%;top:10%;font-size:14px}
.lc-spark.s5{left:10%;top:40%;font-size:11px}.lc-spark.s6{left:91%;top:38%;font-size:12px}.lc-spark.s7{left:34%;top:12%;font-size:10px}.lc-spark.s8{left:68%;top:8%;font-size:11px}

/* AC495: a labelled reward appears only after opening and counts up as the pieces land. */
.lc-plaque{position:absolute;z-index:4;left:0;right:0;bottom:-18px;display:grid;place-items:center;pointer-events:none}
.lc-award{display:grid;justify-items:center;min-width:120px;padding:3px 16px 4px;border:3px solid #6b3a12;border-radius:20px;background:linear-gradient(#ffe98a,#ffb53f);box-shadow:inset 0 2px #fff7cf,0 3px #7a4516}
.lc-award>small{font:14px/1.1 Lucky;color:#6b3a12;white-space:nowrap}
.lc-reward{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
.lc-reward img{width:32px;height:32px;object-fit:contain}
.lc-amount{grid-area:1/1;min-width:1.6ch;opacity:0;font:26px/1 Lucky;color:var(--cream-50);-webkit-text-stroke:var(--label-stroke,3px) #6b3a12;paint-order:stroke fill;filter:drop-shadow(0 var(--label-drop,2px) #6b3a12);font-variant-numeric:tabular-nums;text-align:left}
.lc-amount.is-current{opacity:1}

/* Tries: one paw coin per try, the single result indicator (owner 2026-10-12): bronze "?"
   pending, gold paw for a lucky try, grey stone ✕ for a miss. The next coin glows softly. */
.lc-coins{display:flex;justify-content:center;gap:12px;min-height:44px;margin-top:2px}
.lc-coin{position:relative;flex:none;width:44px;height:44px}
.lc-coin-glow{position:absolute;inset:-9px;border-radius:50%;background:radial-gradient(circle,#fff1a8 0,#ffc93cd9 52%,transparent 72%);opacity:0}
.lc-coin.is-next .lc-coin-glow{opacity:1}
.lc-face{position:absolute;inset:0;display:grid;place-items:center;border:3px solid;border-radius:50%;opacity:0}
.lc-face::after{content:"";position:absolute;left:18%;top:10%;width:34%;height:20%;border-radius:50%;background:#ffffff8c;transform:rotate(-24deg)}
.lc-face svg{position:relative;width:25px;height:25px}
.lc-face-pending{border-color:#7a5424;background:radial-gradient(circle at 35% 30%,#f7e2ae,#dcae63 56%,#b27f3b);box-shadow:inset 0 2px var(--cream-300),inset 0 -3px #946630,0 2px #5c3f1c}
.lc-face-pending b{position:relative;font:25px/1 Lucky;color:var(--cream-50);-webkit-text-stroke:3px #6a4418;paint-order:stroke fill;filter:drop-shadow(0 2px #6a4418)}
.lc-face-lucky{border-color:#9a6512;background:radial-gradient(circle at 35% 30%,#fff8c4,#ffd44e 55%,#e09c22);box-shadow:inset 0 -3px #c98419,0 2px #7a4c10,0 0 10px #ffd25a99}
.lc-face-lucky svg{fill:#8a4d12}
.lc-face-miss{border-color:#6f655c;background:radial-gradient(circle at 35% 30%,#eceae6,#bfb8b0 58%,#958c83);box-shadow:inset 0 -3px #847b72,0 2px #5a524b}
.lc-face-miss::after{background:#ffffff59}
.lc-face-miss svg{fill:none;stroke:#6b625a;stroke-width:4;stroke-linecap:round}
.lc-coin.is-pending .lc-face-pending,.lc-coin.is-lucky .lc-face-lucky,.lc-coin.is-miss .lc-face-miss{opacity:1}

/* Effects layer: centred on the chest, except the fountain pieces placed by script. */
.lc-fx{position:absolute;z-index:5;inset:0;pointer-events:none}
.lc-fx>i{position:absolute;left:50%;top:var(--lc-center);opacity:0}
.lc-mote{width:9px;height:9px;margin:-4.5px;border-radius:50%;background:radial-gradient(circle,#fff 0 30%,var(--lc-glow) 60%,transparent 72%)}
.lc-flash{width:240px;height:240px;margin:-120px;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,#fffbe0e6 26%,var(--lc-glow) 44%,transparent 66%)}
.lc-ring{width:120px;height:120px;margin:-60px;border:5px solid var(--lc-glow);border-radius:50%;box-shadow:0 0 12px var(--lc-glow),inset 0 0 10px var(--lc-glow)}
.lc-ring.is-thin{border-width:3px;border-color:var(--card-face)}
.lc-star{width:22px;height:22px;margin:-11px;color:var(--lc-glow);font:22px/22px Lucky;text-align:center;filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 2px #fff)}
.lc-star::before{content:"★"}
.lc-star.is-white{color:var(--cream-250)}.lc-star.is-white::before{content:"✦"}
.lc-float{top:calc(var(--lc-center) - var(--lc-chest)*.42);white-space:nowrap;padding:3px 13px 4px;border-radius:999px}
.lc-float.is-lucky{border:3px solid #6b3a12;background:linear-gradient(#ffe98a,#ffb53f);box-shadow:inset 0 2px #fff7cf,0 3px #7a4516;color:var(--cream-50);font:22px/1.05 Lucky;-webkit-text-stroke:var(--label-stroke,3px) #6b3a12;paint-order:stroke fill;text-shadow:none}
.lc-float.is-miss{border:2px solid #7d6b57;background:#f3e8d4;box-shadow:0 2px #7d6b57;color:#5b4a3c;font:800 15px/1.2 system-ui}
.lc-puff{top:calc(var(--lc-center) + var(--lc-chest)*.44);width:28px;height:28px;margin:-14px;border-radius:50%;background:radial-gradient(circle at 40% 40%,#f5eadb,#c8b9a4 70%)}
.lc-geyser{width:74px;height:150px;margin:calc(var(--lc-chest)*-.08 - 150px) 0 0 calc(var(--lc-chest)*.1 - 37px);border-radius:40px 40px 50% 50%;background:linear-gradient(to top,var(--cream-50) 0,var(--gold-50) 18%,var(--lc-glow) 48%,transparent 82%);transform-origin:50% 100%}
.lc-geyser.is-big{width:104px;height:180px;margin:calc(var(--lc-chest)*-.1 - 180px) 0 0 calc(var(--lc-chest)*.04 - 52px)}
.lc-beam{width:26px;height:150px;margin:calc(var(--lc-chest)*-.06 - 150px) 0 0 calc(var(--lc-chest)*.1 - 13px);border-radius:13px;background:linear-gradient(to top,var(--cream-50),var(--lc-glow) 45%,transparent);transform-origin:50% 100%}
.lc-slit{width:calc(var(--lc-chest)*.62);height:12px;margin:calc(var(--lc-chest)*-.025 - 6px) 0 0 calc(var(--lc-chest)*-.11 - var(--lc-chest)*.31);border-radius:50%;background:radial-gradient(closest-side,var(--cream-50) 0,var(--shine-100) 35%,var(--lc-glow) 65%,transparent);box-shadow:0 0 14px var(--lc-glow)}
.lc-confetti{width:8px;height:12px;margin:-6px -4px;border-radius:2px;background:var(--lc-c);box-shadow:inset 0 -3px #0000001f}
.lc-heart{top:auto;bottom:6%;width:22px;height:22px;margin:-11px;color:#ff7bb8;font:22px/22px Lucky;text-align:center;filter:drop-shadow(0 0 8px var(--lc-glow)) drop-shadow(0 0 2px #fff)}
.lc-heart::before{content:"♥"}
.lc-heart.is-star{color:var(--cream-250)}.lc-heart.is-star::before{content:"★"}
.lc-shower{top:4%;width:14px;height:14px;margin:-7px;color:var(--cream-50);font:14px/14px Lucky;text-align:center;filter:drop-shadow(0 0 6px var(--lc-glow)) drop-shadow(0 0 2px #fff)}
.lc-shower::before{content:"✦"}
.lc-shower.is-star{color:var(--lc-glow)}.lc-shower.is-star::before{content:"★"}
.lc-coin-spark{position:absolute;z-index:2;left:50%;top:50%;width:12px;height:12px;margin:-6px;opacity:0;color:#fff6b8;font:12px/12px Lucky;text-align:center;filter:drop-shadow(0 0 5px #ffc93c);pointer-events:none}
.lc-coin-spark::before{content:"✦"}
.lc-fx>i.lc-piece{left:auto;top:auto;width:30px;height:30px;margin:-15px}
.lc-piece img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #0007)}

.lc-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#modal .lucky-chest>.lc-action{width:100%;min-height:var(--tier-full-h);margin:2px 0 0;font-size:var(--tier-full-fs)}

@media(prefers-reduced-motion:no-preference){
 .lucky-chest .lc-bob{animation:lc-bob 2.6s ease-in-out infinite}
 .lucky-chest .lc-shadow{animation:lc-shadow 2.6s ease-in-out infinite}
 .lucky-chest:not(.is-done) .lc-wiggle{animation:lc-hint 4.6s ease-in-out 1.2s infinite}
 .lucky-chest .lc-aura::before{animation:lc-aura 2.2s ease-in-out infinite alternate}
 /* Rays never turn at rest below the top level; level 4 turns them slowly (owner, 2026-10-12). */
 .lucky-chest .lc-light.is-spin.is-current .lc-rays::before{animation:lc-spin 56s linear infinite}
 .lucky-chest .lc-light.is-spin.is-current .lc-rays::after{animation:lc-spin 84s linear infinite reverse}
 .lucky-chest .lc-light.is-current .lc-spark{animation:lc-twinkle 2.4s ease-in-out infinite}
 .lucky-chest .lc-light.is-spin.is-current .lc-spark{animation-duration:1.9s}
 .lucky-chest .lc-spark.s1{animation-delay:.5s}.lucky-chest .lc-spark.s2{animation-delay:1s}.lucky-chest .lc-spark.s3{animation-delay:1.5s}.lucky-chest .lc-spark.s4{animation-delay:1.9s}
 .lucky-chest .lc-spark.s5{animation-delay:.25s}.lucky-chest .lc-spark.s6{animation-delay:.75s}.lucky-chest .lc-spark.s7{animation-delay:1.25s}.lucky-chest .lc-spark.s8{animation-delay:1.7s}
 .lucky-chest:not(.is-done) .lc-coin.is-next .lc-coin-glow{animation:lc-ring-breathe 1.4s ease-in-out infinite alternate}
 .lucky-chest:not(.is-done) .lc-coin.is-next .lc-face-pending{animation:lc-coin-bob 1.6s ease-in-out .4s infinite}
 /* Every few seconds the closed lid peeks up a crack with light leaking out, then snaps shut. */
 .lucky-chest:not(.is-open) .lc-skin.is-current .lc-lid{animation:lc-peek 5.2s ease-in-out 1s infinite}
 .lucky-chest:not(.is-open) .lc-mouth{animation:lc-leak 5.2s ease-in-out 1s infinite}
 .lucky-chest.is-open .lc-bob{animation-duration:3.2s}
 .lucky-chest.is-busy :is(.lc-bob,.lc-shadow){animation-play-state:paused}
 .lucky-chest.is-busy :is(.lc-wiggle,.lc-face,.lc-lid,.lc-mouth){animation:none}
}
@keyframes lc-bob{0%,100%{transform:translateY(0)}45%{transform:translateY(-7px) scale(.99,1.02)}75%{transform:translateY(0) scale(1.025,.975)}}
@keyframes lc-shadow{0%,100%{transform:scaleX(1);opacity:1}45%{transform:scaleX(.8);opacity:.65}75%{transform:scaleX(1.04)}}
@keyframes lc-hint{0%,76%,100%{transform:none}80%{transform:rotate(-5deg)}84%{transform:rotate(5deg)}88%{transform:rotate(-3.5deg)}92%{transform:rotate(2deg)}96%{transform:rotate(-1deg)}}
@keyframes lc-aura{from{transform:scale(.93)}to{transform:scale(1.07)}}
@keyframes lc-spin{to{transform:rotate(360deg)}}
@keyframes lc-twinkle{0%,100%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1) rotate(30deg)}}
@keyframes lc-ring-breathe{from{transform:scale(.88);opacity:.55}to{transform:scale(1.08);opacity:1}}
@keyframes lc-coin-bob{0%,100%{transform:none}50%{transform:translateY(-3px) rotate(-3deg)}}
@keyframes lc-peek{0%,30%,47%,100%{transform:none}34%{transform:rotate(-3deg)}39%{transform:rotate(-2deg)}43%{transform:none}45%{transform:rotate(-.6deg)}}
@keyframes lc-leak{0%,30%,46%,100%{opacity:0;transform:scale(.6)}35%{opacity:.85;transform:scale(1)}40%{opacity:.6;transform:scale(.95)}}
@media(max-height:700px){
 .lucky-chest{--lc-stage-h:clamp(184px,35dvh,232px);gap:6px}
 .lc-head{min-height:40px}
}

/* AC640: closed/charging chests never cast rays, including level-up playback. */
.lucky-chest:not(.is-open) .lc-rays{visibility:hidden}

.lucky-chest.is-open .lc-light.is-spin.is-current .lc-rays::before,.lucky-chest.is-open .lc-light.is-spin.is-current .lc-rays::after{animation-delay:1300ms}
