/* K.O.-Szene (ko-scene.js) */
.ko-overlay { position: fixed; inset: 0; z-index: 9800; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 55%, rgba(30, 4, 6, 0.55) 0%, rgba(24, 2, 4, 0.9) 100%); cursor: pointer; animation: koIn 0.35s ease-out both; transition: opacity 0.38s; }
.ko-overlay.out { opacity: 0; }
@keyframes koIn { from { opacity: 0; } to { opacity: 1; } }
.ko-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255, 70, 60, 0.85), rgba(200, 20, 20, 0.35) 55%, transparent 80%); mix-blend-mode: screen; animation: koFlash 0.7s ease-out both; }
@keyframes koFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.ko-stage { position: relative; display: grid; justify-items: center; gap: 10px; padding: 12px; text-align: center; }
.ko-row { display: flex; gap: clamp(8px, 3vw, 28px); align-items: flex-end; min-height: 150px; padding-top: 70px; }
.ko-hero { position: relative; width: 54px; height: 74px; }
.ko-fig { transform-origin: 50% 100%; width: 54px; height: 74px; transition: transform 0.45s cubic-bezier(.4, 1.6, .5, 1), filter 0.45s; }
.ko-fig .pixel-avatar { animation: none !important; }
.ko-hero.down .ko-fig { transform: translateY(20px) rotate(var(--tilt)); filter: grayscale(0.55) brightness(0.8); }
.ko-shadow { position: absolute; left: -10%; right: -10%; bottom: -6px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); }
.ko-stars { position: absolute; left: 50%; top: -30px; width: 0; height: 0; opacity: 0; }
.ko-hero.down .ko-stars { opacity: 1; transition: opacity 0.2s 0.35s; }
.ko-stars i { position: absolute; left: -9px; top: 0; font-style: normal; font-size: 16px; animation: koOrbit 1.4s linear infinite; }
.ko-stars i:nth-child(2) { animation-delay: -0.47s; } .ko-stars i:nth-child(3) { animation-delay: -0.93s; }
@keyframes koOrbit { 0% { transform: translate(-18px, 4px) scale(0.8); } 25% { transform: translate(0, -4px) scale(1); } 50% { transform: translate(18px, 4px) scale(0.8); } 75% { transform: translate(0, 12px) scale(0.6); } 100% { transform: translate(-18px, 4px) scale(0.8); } }
.ko-title { font: 900 clamp(3.4rem, 14vw, 7rem)/1 "Arial Black", Impact, sans-serif; letter-spacing: 0.06em; color: #ff4638; text-shadow: 0 5px 0 #5a0c08, 0 0 28px rgba(255, 60, 40, 0.8), 4px 4px 0 #1a0504; -webkit-text-stroke: 3px #1a0504; opacity: 0; transform: scale(3) rotate(-6deg); }
.ko-overlay.title .ko-title { animation: koSlam 0.45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes koSlam { 0% { opacity: 0; transform: scale(3) rotate(-6deg); } 55% { opacity: 1; transform: scale(0.92) rotate(-3deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
.ko-sub { font-weight: 800; font-size: 1rem; color: #f3d9c8; opacity: 0; letter-spacing: 0.04em; }
.ko-overlay.title .ko-sub { opacity: 1; transition: opacity 0.4s 0.35s; }
.ko-skip { font-size: 0.7rem; color: rgba(255, 230, 210, 0.45); opacity: 0; }
.ko-overlay.title .ko-skip { opacity: 1; transition: opacity 0.4s 0.9s; }
body.ko-shake { animation: koShake 0.5s linear; }
@keyframes koShake { 0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-9px, 4px); } 26% { transform: translate(8px, -5px); } 40% { transform: translate(-7px, -3px); } 54% { transform: translate(6px, 5px); } 70% { transform: translate(-3px, 2px); } 85% { transform: translate(2px, -2px); } }
.ko-overlay.calm .ko-flash, .ko-overlay.calm .ko-stars i { animation: none; }
.ko-overlay.calm .ko-title { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ko-fig { transition: none; } body.ko-shake { animation: none; } }
