/* COLOSSUS — feature overlays and effects */
.overlay { position: absolute; inset: 14px; pointer-events: none; z-index: 10; }
.fx-layer { position: absolute; inset: 14px; pointer-events: none; z-index: 20; }

/* effects on cells */
.fx { position: absolute; pointer-events: none; }
.fx img { width: 100%; height: 100%; }
.fx.burst { animation: fxBurst .8s ease-out forwards; }
@keyframes fxBurst { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.fx.float-num { font-size: 30px; font-weight: bold; color: #fff; text-shadow: 0 0 6px #000, 0 0 12px var(--c, var(--gold)); animation: floatNum 1.1s ease-out forwards; display: flex; align-items: center; justify-content: center; }
@keyframes floatNum { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 20% { opacity: 1; transform: scale(1.2); } 100% { transform: translateY(-40px); opacity: 0; } }
.fx.tint { border-radius: 12px; animation: tint 1s ease-out forwards; }
@keyframes tint { 0% { opacity: 0; } 25% { opacity: .75; } 100% { opacity: 0; } }
.fx.fly { width: 40px; height: 40px; border-radius: 50%; transition: transform .7s cubic-bezier(.5,0,.6,1), opacity .7s; }
.shake { animation: shake .5s linear; }
@keyframes shake { 10%, 50%, 90% { transform: translate(-6px, 3px); } 30%, 70% { transform: translate(6px, -3px); } }

/* Hold & Spin */
.hs { position: absolute; inset: 0; display: grid; gap: 6px; pointer-events: none; background: rgba(6,4,2,.82); border-radius: 10px; }
.hs-cell { position: relative; border-radius: 10px; background: radial-gradient(#2b241a, #0d0a06); box-shadow: inset 0 0 14px #000; display: flex; align-items: center; justify-content: center; }
.hs-cell.locked::after { content: ''; position: absolute; inset: -2px; background: url('../assets/animations/holdAndSpin/cell-locked-frame.svg') center / 100% 100%; pointer-events: none; }
.hs-cell img { width: 88%; height: 88%; }
.hs-cell .val { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-weight: bold; color: #fff; text-shadow: 0 0 4px #000, 0 0 8px #000; }
.hs-cell.land { animation: hsLand .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes hsLand { from { transform: scale(.1) translateY(-60px); opacity: 0; } }
.hs-cell.bump .val { animation: bump .5s ease-out; }
@keyframes bump { 40% { transform: scale(1.6); color: #ffe08a; } }
.hs-cell.collect { animation: collect .35s ease-out; }
@keyframes collect { 50% { transform: scale(1.15); filter: brightness(1.8); } }
.hs-cell.super-fire { box-shadow: inset 0 0 14px #000, 0 0 10px var(--fire); }
.hs-head { position: absolute; left: 50%; transform: translateX(-50%); bottom: -64px; white-space: nowrap; padding: 8px 22px; border-radius: 30px; background: rgba(10,7,4,.92); border: 2px solid var(--gold-dark); display: flex; justify-content: center; align-items: center; gap: 24px; font-size: 24px; font-weight: bold; color: var(--gold); text-shadow: 0 0 8px #000; z-index: 30; }
.hs-head .sup { display: flex; gap: 6px; }
.hs-head .sup span { padding: 2px 10px; border-radius: 8px; font-size: 16px; color: #111; }
.respins { display: flex; gap: 6px; align-items: center; }
.respins i { width: 22px; height: 22px; border-radius: 50%; background: #3a2f1f; border: 2px solid var(--gold-dark); display: inline-block; }
.respins i.on { background: radial-gradient(#fff3c0, var(--gold)); box-shadow: 0 0 10px var(--gold); }

/* Free spins head-up */
.fs-head { position: absolute; left: 50%; transform: translateX(-50%); bottom: -64px; white-space: nowrap; padding: 8px 22px; border-radius: 30px; background: rgba(10,7,4,.92); border: 2px solid var(--gold-dark); display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 22px; font-weight: bold; color: var(--gold); text-shadow: 0 0 8px #000; z-index: 30; }
.fs-head .power { padding: 3px 12px; border-radius: 10px; font-size: 17px; color: #111; }
.power.fire { background: var(--fire); } .power.water { background: var(--water); } .power.earth { background: var(--earth); } .power.air { background: var(--air); }
.mult-badge { position: absolute; right: -20px; top: -20px; z-index: 40; width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: bold; background: radial-gradient(#b5ecff, var(--water) 60%, #0d3f8f); color: #fff; text-shadow: 0 0 6px #000; animation: bannerIn .5s cubic-bezier(.2,1.6,.4,1); }

/* Colossus Wakes */
.wake-giant { position: absolute; left: 50%; bottom: -40px; width: 520px; transform: translateX(-50%); z-index: 55; pointer-events: none; animation: rise 2.2s cubic-bezier(.3,1.2,.4,1) forwards; }
@keyframes rise { 0% { transform: translate(-50%, 70%) scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, -10%) scale(1.1); } }
.wake-giant.leave { animation: leave .8s ease-in forwards; }
@keyframes leave { to { transform: translate(-50%, 80%) scale(.8); opacity: 0; } }
.flash { position: fixed; inset: 0; background: #fff; z-index: 900; pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
