/* Premium Cinematic Arcade Stylesheet for GOOONER 3 (ACP FUDDY vs THANNUS) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;0,900;1,900&family=Teko:wght@600;700;900&family=Cinzel:wght@700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #05070a;
    font-family: 'Montserrat', 'Impact', 'Arial Black', sans-serif;
    color: #ffffff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.interactive {
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

/* ==================================================
   MAIN MENU
   ================================================== */
#main-menu {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(5, 7, 10, 0.97) 80%);
    backdrop-filter: blur(8px);
    z-index: 50;
    pointer-events: auto;
}

.menu-brand {
    font-size: 1.1rem;
    letter-spacing: 0.55em;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: pulseGlow 2.5s infinite alternate;
}

.menu-title {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(4.5rem, 12vw, 9.5rem);
    line-height: 0.9;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #ffffff 0%, #ffd700 45%, #ff3b00 85%, #880000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 25px rgba(255, 60, 0, 0.7));
    transform: skewX(-6deg);
    margin-bottom: 6px;
}

.menu-subtitle {
    font-size: clamp(0.85rem, 2vw, 1.25rem);
    letter-spacing: 0.4em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 45px;
    font-weight: 700;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(340px, 85vw);
}

.btn-arcade {
    position: relative;
    padding: 18px 24px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #38bdf8;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-4deg);
    overflow: hidden;
}

.btn-arcade::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.btn-arcade:hover::after {
    left: 130%;
}

.btn-arcade:hover {
    transform: skewX(-4deg) translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #7dd3fc;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.7);
}

.btn-arcade:active {
    transform: skewX(-4deg) translateY(1px) scale(0.98);
}

.btn-arcade.primary {
    background: linear-gradient(135deg, #ff5500 0%, #cc1100 100%);
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-arcade.primary:hover {
    background: linear-gradient(135deg, #ff7700 0%, #e62200 100%);
    box-shadow: 0 0 45px rgba(255, 100, 0, 0.85);
}

.btn-arcade.secondary {
    font-size: 1.05rem;
    padding: 14px 20px;
    border-color: #64748b;
}

/* ==================================================
   CINEMATIC INTRO OVERLAY (5 SCENES)
   ================================================== */
#intro-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
}

.letterbox {
    position: absolute;
    left: 0;
    width: 100%;
    height: 7vh;
    background: #000000;
    z-index: 80;
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }

.intro-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5vw;
    animation: fadeIn 0.5s ease;
}

/* Scene 1: Production Text */
.neon-sweep-line {
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff 30%, #ffd700 70%, transparent);
    box-shadow: 0 0 20px #00e5ff, 0 0 35px #ffd700;
    margin-bottom: 25px;
    animation: neonSweep 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes neonSweep {
    0% { width: 0; opacity: 0; }
    30% { width: 35vw; opacity: 1; }
    75% { width: 75vw; opacity: 1; }
    100% { width: 90vw; opacity: 0.85; }
}

.cinematic-text-tiny {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3.2vw, 2.2rem);
    letter-spacing: 0.65em;
    color: #cbd5e1;
    text-transform: uppercase;
    text-align: center;
    transition: opacity 1.0s ease;
}

.cinematic-text-small {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    letter-spacing: 0.6em;
    color: #e2e8f0;
    text-transform: uppercase;
    text-align: center;
    margin-top: 15px;
    transition: opacity 1.0s ease;
}

.cinematic-text-small.golden {
    color: #ffd700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
}

/* Scene 2: Title Explosion */
.title-reveal-box {
    text-align: center;
    animation: titleExplode 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.intro-big-title {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(5.5rem, 16vw, 13rem);
    font-weight: 900;
    font-style: italic;
    line-height: 0.85;
    background: linear-gradient(180deg, #ffffff 0%, #ffd700 40%, #ff1100 80%, #550000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(255, 60, 0, 0.8));
    animation: titleShake 0.4s ease;
}

.intro-sub-tag {
    font-size: clamp(1rem, 3vw, 1.8rem);
    letter-spacing: 0.5em;
    color: #38bdf8;
    margin-top: 15px;
    font-weight: 900;
    text-shadow: 0 0 20px #0284c7;
}

/* Scenes 3 & 4: Dossier Layouts */
.dossier-layout {
    display: flex;
    align-items: center;
    gap: 5vw;
    width: min(1000px, 92vw);
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid;
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
}

.dossier-layout.hero-theme {
    border-color: #00e5ff;
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.35);
}

.dossier-layout.thannus-theme {
    border-color: #bd00ff;
    box-shadow: 0 0 45px rgba(189, 0, 255, 0.35);
}

.dossier-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    flex-shrink: 0;
}

.dossier-avatar {
    width: 170px;
    height: 170px;
    border-radius: 12px;
    border: 3px solid #00e5ff;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    margin-bottom: 12px;
    animation: zoomAvatar 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.dossier-avatar.thannus-glow {
    border-color: #bd00ff;
    box-shadow: 0 0 25px rgba(189, 0, 255, 0.5);
}

.dossier-badge {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #00e5ff;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dossier-badge.thannus-badge {
    color: #bd00ff;
}

.stats-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
}

.stat-bar {
    width: 130px;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #00e5ff);
    box-shadow: 0 0 10px #00e5ff;
}

.stat-fill.purple {
    background: linear-gradient(90deg, #7e22ce, #bd00ff);
    box-shadow: 0 0 10px #bd00ff;
}

.dossier-text-panel {
    flex: 1;
}

.dossier-header {
    font-family: 'Teko', sans-serif;
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: #00e5ff;
    text-shadow: 0 0 25px #00e5ff;
    margin-bottom: 15px;
}

.dossier-header.thannus-header {
    color: #bd00ff;
    text-shadow: 0 0 25px #bd00ff;
}

.dossier-quote {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: #cbd5e1;
    font-style: italic;
}

.dossier-quote .highlight {
    color: #00e5ff;
    font-weight: 900;
}

.dossier-quote .highlight-purple {
    color: #bd00ff;
    font-weight: 900;
}

.dossier-quote .dramatic-turn {
    display: block;
    margin-top: 10px;
    color: #ffd700;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.dossier-quote .dramatic-turn-purple {
    display: block;
    margin-top: 10px;
    color: #f43f5e;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.6);
}

.short-lore-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.lore-bullet {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    font-style: italic;
}

.lore-bullet.highlight {
    color: #00e5ff;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.lore-bullet.highlight-purple {
    color: #c084fc;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.5);
}

.lore-punchline {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffd700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    margin-top: 6px;
    line-height: 1;
}

.lore-punchline.thannus-red {
    color: #ff2255;
    text-shadow: 0 0 25px rgba(255, 34, 85, 0.8);
}

/* Scene 5: VS Cinematic Stage */
.vs-cinematic-stage {
    position: relative;
    width: min(1100px, 94vw);
    height: 75vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vs-fighter-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38%;
}

.vs-portrait {
    width: clamp(140px, 22vw, 240px);
    height: clamp(140px, 22vw, 240px);
    border-radius: 16px;
    border: 4px solid #00e5ff;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    margin-bottom: 15px;
}

.vs-portrait.thannus-border {
    border-color: #bd00ff;
    box-shadow: 0 0 40px rgba(189, 0, 255, 0.5);
}

.vs-fighter-name {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 0.9;
}

.cyan-glow { color: #00e5ff; text-shadow: 0 0 25px #00e5ff; }
.purple-glow { color: #bd00ff; text-shadow: 0 0 25px #bd00ff; }

.vs-fighter-role {
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    color: #94a3b8;
    text-transform: uppercase;
}

.vs-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vs-massive-text {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(5.5rem, 12vw, 10rem);
    font-weight: 900;
    font-style: italic;
    color: #ffd700;
    text-shadow: 0 0 40px #ff3b00;
    animation: pulseBadge 1.0s infinite alternate;
}

.vs-tagline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(0.9rem, 2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #e2e8f0;
}

.gold-pulse {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
}

.btn-skip {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 95;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.btn-skip:hover {
    color: #fff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

/* ==================================================
   FIGHT HUD
   ================================================== */
#fight-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.fighter-hud-section {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 40%;
}

.fighter-hud-section.reverse {
    flex-direction: row-reverse;
}

.hud-avatar {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    border: 2px solid;
    object-fit: cover;
    background: #000;
}

.hero-avatar { border-color: #00e5ff; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
.thannus-avatar { border-color: #bd00ff; box-shadow: 0 0 15px rgba(189, 0, 255, 0.4); }

.bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name-hp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.name-hp-row.reverse {
    flex-direction: row-reverse;
}

.fighter-name-label {
    font-family: 'Teko', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
}

.cyan-name {
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

.purple-name {
    color: #bd00ff;
    text-shadow: 0 0 15px rgba(189, 0, 255, 0.7);
}

.hp-number {
    font-family: 'Teko', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.health-bar-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: #0b0f19;
    border: 2px solid #334155;
    border-radius: 4px;
    overflow: hidden;
    transform: skewX(-12deg);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5);
}

.health-bar-track.thannus-track {
    transform: skewX(12deg);
    border-color: #475569;
}

/* HERO: Anchored at right: 0. Depletes Left-to-Right toward the center timer */
.hero-track .health-bar-ghost {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    transition: width 0.25s ease-out;
}

.hero-track .health-bar-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(270deg, #00e5ff 0%, #10b981 40%, #facc15 80%, #ef4444 100%);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
    transition: width 0.08s ease-out;
}

/* THANNUS: Anchored at left: 0. Depletes Right-to-Left toward the center timer */
.thannus-track .health-bar-ghost {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    transition: width 0.25s ease-out;
}

.thannus-track .health-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #bd00ff 0%, #ec4899 40%, #facc15 80%, #ef4444 100%);
    box-shadow: 0 0 16px rgba(189, 0, 255, 0.7);
    transition: width 0.08s ease-out;
}

.super-meter-track {
    position: relative;
    width: 85%;
    height: 10px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 2px;
    overflow: hidden;
    transform: skewX(-12deg);
}

.super-meter-track.thannus-super {
    align-self: flex-end;
    transform: skewX(12deg);
}

.hero-super-fill {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(270deg, #0284c7 0%, #38bdf8 70%, #ffd700 100%);
    box-shadow: 0 0 10px #38bdf8;
    transition: width 0.1s ease;
}

.thannus-super-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7e22ce 0%, #bd00ff 70%, #ffd700 100%);
    box-shadow: 0 0 10px #bd00ff;
    transition: width 0.1s ease;
}

/* Center Timer & Round */
.center-hud-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
}

.hud-round-badge {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hud-timer {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 0.85;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.round-dots-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.round-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    border: 1px solid #64748b;
}

.round-dot.active {
    background: #ffd700;
    border-color: #ffea00;
    box-shadow: 0 0 10px #ffd700;
}

#combo-counter {
    position: absolute;
    left: 45px;
    top: 140px;
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    font-style: italic;
    color: #ffd700;
    text-shadow: 0 0 20px #ff3b00, 2px 2px 0 #000;
    transform: skewX(-8deg);
}

#combo-counter.pop {
    animation: comboPop 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* ==================================================
   DESKTOP CONTROLS GUIDE (BOTTOM CENTER)
   ================================================== */
#controls-hud-guide {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    pointer-events: none;
}

.desktop-controls-hint {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #94a3b8;
    backdrop-filter: blur(6px);
    display: flex;
    gap: 12px;
    align-items: center;
}

.key-pill {
    background: #1e293b;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    border: 1px solid #475569;
}

/* ==================================================
   STREAMLINED ON-SCREEN MOBILE TOUCH CONTROLS
   ([ ◀ ] [ ▶ ] bottom left, [ 👊 ] [ 🦵 ] [ ⚡ ] bottom right)
   ================================================== */
#touch-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 35;
    pointer-events: none;
}

.dpad-cluster, .action-cluster {
    display: flex;
    gap: 12px;
    pointer-events: auto;
    align-items: flex-end;
}

.touch-btn {
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.06s cubic-bezier(0.2, 0, 0.2, 1), background 0.08s, box-shadow 0.08s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.touch-btn:active {
    transform: scale(0.90);
}

/* Left D-Pad Circle Buttons */
.circle-btn {
    width: clamp(56px, 14vw, 72px);
    height: clamp(56px, 14vw, 72px);
    border: 2px solid rgba(56, 189, 248, 0.8);
    font-size: clamp(1.3rem, 3.2vw, 1.8rem);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.circle-btn:active {
    background: rgba(56, 189, 248, 0.35);
    border-color: #7dd3fc;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}

/* Right Attack Buttons */
.attack-btn {
    width: clamp(58px, 14.5vw, 74px);
    height: clamp(58px, 14.5vw, 74px);
    border: 2px solid rgba(255, 85, 0, 0.8);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #ff5500;
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.35);
}

.attack-btn:active {
    background: rgba(255, 85, 0, 0.45);
    border-color: #ff9900;
    box-shadow: 0 0 28px rgba(255, 85, 0, 0.75);
}

/* Super Attack Button */
.special-btn {
    width: clamp(66px, 16.5vw, 84px);
    height: clamp(66px, 16.5vw, 84px);
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.22);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.55);
    color: #ffd700;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}

.special-btn:active {
    background: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
}

.btn-lbl {
    font-size: clamp(0.55rem, 1.2vw, 0.68rem);
    letter-spacing: 0.06em;
    font-weight: 800;
    margin-top: 1px;
    opacity: 0.95;
}

/* ==================================================
   ANNOUNCEMENTS (ROUND 1, FIGHT, KO)
   ================================================== */
#announcement-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 40;
    pointer-events: none;
}

.announce-huge {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(5.5rem, 15vw, 12rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(255, 215, 0, 0.8), 4px 4px 0 #000;
    animation: zoomImpact 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.announce-fight {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(7rem, 20vw, 16rem);
    font-weight: 900;
    font-style: italic;
    color: #ff3300;
    background: linear-gradient(180deg, #fff 0%, #ffd700 40%, #ff1100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 45px rgba(255, 50, 0, 0.9));
    animation: fightCrash 0.45s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.announce-ko {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(180deg, #ffffff 0%, #ff0044 50%, #880011 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 50px rgba(255, 0, 68, 0.9));
    animation: koSlam 0.5s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* ==================================================
   VICTORY SCREEN
   ================================================== */
#victory-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.85) 0%, rgba(5, 7, 10, 0.98) 75%);
    z-index: 55;
    pointer-events: auto;
    animation: fadeIn 0.6s ease;
}

#victory-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    margin-bottom: 18px;
    animation: zoomAvatar 0.8s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.victory-hero-text {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    font-style: italic;
    color: #00e5ff;
    text-shadow: 0 0 35px rgba(0, 229, 255, 0.8);
    margin-bottom: 12px;
}

.victory-villian-text {
    font-family: 'Teko', 'Impact', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    font-style: italic;
    color: #bd00ff;
    text-shadow: 0 0 35px rgba(189, 0, 255, 0.8);
    margin-bottom: 12px;
}

#victory-quote {
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    color: #cbd5e1;
    font-weight: 700;
    text-align: center;
    max-width: min(650px, 90vw);
    line-height: 1.4;
    margin-bottom: 35px;
    font-style: italic;
}

.victory-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================================================
   HOW TO PLAY MODAL
   ================================================== */
#how-modal {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 70;
    pointer-events: auto;
}

.modal-content {
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 12px;
    padding: 35px;
    width: min(600px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.4);
}

.modal-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.8rem;
    color: #38bdf8;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-align: center;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.control-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 18px;
    border-left: 4px solid #ffd700;
}

.control-card h3 {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 12px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.key-badge {
    background: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    color: #38bdf8;
    border: 1px solid #475569;
}

/* ==================================================
   AUTOPLAY UNMUTE BANNER FALLBACK
   ================================================== */
#unmute-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 85, 0, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.7);
    z-index: 100;
    pointer-events: auto;
    animation: bounceBanner 1s infinite alternate;
}

/* ==================================================
   KEYFRAME ANIMATIONS
   ================================================== */
@keyframes pulseGlow {
    from { opacity: 0.7; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
    to { opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
}

@keyframes pulseBadge {
    from { transform: scale(0.95); }
    to { transform: scale(1.08); filter: drop-shadow(0 0 35px #ff5500); }
}

@keyframes titleExplode {
    0% { transform: scale(0.3); opacity: 0; filter: blur(20px); }
    70% { transform: scale(1.15); opacity: 1; filter: blur(0); }
    100% { transform: scale(1.0); opacity: 1; }
}

@keyframes titleShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px) rotate(-1deg); }
    40%, 80% { transform: translateX(8px) rotate(1deg); }
}

@keyframes zoomImpact {
    0% { transform: scale(3.0); opacity: 0; }
    70% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.0); opacity: 1; }
}

@keyframes fightCrash {
    0% { transform: scale(4.0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(0.95) rotate(3deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(0deg); opacity: 1; }
}

@keyframes koSlam {
    0% { transform: scale(5.0); opacity: 0; }
    40% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.0); opacity: 1; }
}

@keyframes comboPop {
    0% { transform: skewX(-8deg) scale(0.7); }
    50% { transform: skewX(-8deg) scale(1.3); }
    100% { transform: skewX(-8deg) scale(1.0); }
}

@keyframes zoomAvatar {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceBanner {
    from { transform: translate(-50%, 0); }
    to { transform: translate(-50%, -8px); }
}

/* ==================================================
   RESPONSIVENESS (MOBILE / TABLET / PORTRAIT / LANDSCAPE)
   ================================================== */
@media (max-width: 800px) {
    .fighter-hud-section { width: 38%; }
    .center-hud-section { width: 24%; }
    .hud-avatar { width: 48px; height: 48px; }
    .fighter-name-label { font-size: 1.2rem; }
    .health-bar-track { height: 18px; }

    .dossier-layout {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    .dossier-visual { width: 100%; }
    .dossier-avatar { width: 110px; height: 110px; }
    .stat-line { justify-content: center; gap: 10px; }

    #controls-hud-guide { display: none; }
    .touch-btn { width: 60px; height: 60px; font-size: 1.05rem; }
    .special-btn { width: 68px; height: 68px; font-size: 1.15rem; }
}

@media (orientation: portrait) and (max-width: 600px) {
    .vs-cinematic-stage {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    .vs-fighter-column { width: 80%; }
    .vs-portrait { width: 100px; height: 100px; }
    .vs-massive-text { font-size: 4rem; }
}
