@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
    --bg-dark: #070714;
    --saiyan-yellow: #ffcc00;
    --aurora-blue: #00e5ff;
    --frieza-purple: #bd00ff;
    --text-light: #ffffff;
    --glass-bg: rgba(13, 13, 33, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(189, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
}

#app-container {
    position: relative;
    width: 1024px;
    height: 576px;
    background: #000;
    border: 4px solid var(--saiyan-yellow);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.25);
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* Background Gradients */
#menu-screen {
    background: radial-gradient(circle, #100a26 0%, #030209 100%);
}

/* Typography and Headings */
h1.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: var(--saiyan-yellow);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7), 4px 4px 0px #ff3c00;
    margin-bottom: 5px;
    text-align: center;
    animation: pulse 2.5s infinite;
}

h2.subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--aurora-blue);
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Buttons */
.btn {
    background: var(--glass-bg);
    border: 2px solid var(--aurora-blue);
    padding: 14px 28px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 10px;
    min-width: 250px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn:hover {
    background: var(--aurora-blue);
    color: #000;
    box-shadow: 0 0 20px var(--aurora-blue);
    transform: scale(1.05);
}

.btn-yellow {
    border-color: var(--saiyan-yellow);
    box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.2);
}

.btn-yellow:hover {
    background: var(--saiyan-yellow);
    color: #000;
    box-shadow: 0 0 20px var(--saiyan-yellow);
}

/* Story Mode Layout */
#story-screen {
    background-size: cover;
    background-position: center;
    transition: background 0.8s ease;
    justify-content: flex-end;
}

.story-dialogue-box {
    width: 100%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    min-height: 150px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}

.speaker-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px #000;
}

.dialogue-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    line-height: 1.5;
    color: #e0e0ff;
    flex-grow: 1;
}

.choices-container {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    gap: 10px;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    text-align: left;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice-btn:hover {
    background: rgba(255, 204, 0, 0.2);
    border-color: var(--saiyan-yellow);
    padding-left: 25px;
}

/* Combat Arena */
#arena-screen {
    padding: 0;
    background: #05050f;
}

#combat-canvas {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Overlay and Instruction panels */
.combat-instructions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    color: #888;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 12px;
}

.combat-instructions span {
    color: var(--aurora-blue);
    font-weight: bold;
}

/* Results Screens */
.result-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 38px;
    margin-bottom: 20px;
    text-align: center;
}

.victory-text {
    color: var(--saiyan-yellow);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

.defeat-text {
    color: #f44336;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.6);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
