/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Press Start 2P', monospace;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -2;
    animation: matrixMove 20s linear infinite;
}

@keyframes matrixMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 3px solid #00ff00;
    margin-bottom: 30px;
}

.logo-container {
    text-align: left;
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    letter-spacing: 3px;
    position: relative;
    margin-bottom: 10px;
}

.logo.glitch {
    animation: glitch 3s infinite;
}

.logo.glitch::before,
.logo.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo.glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff00ff;
    z-index: -1;
}

.logo.glitch::after {
    animation: glitch-2 1.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(0); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    10% { clip-path: inset(10% 0 30% 0); }
    20% { clip-path: inset(50% 0 10% 0); }
    30% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(80% 0 5% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    15% { clip-path: inset(30% 0 10% 0); }
    25% { clip-path: inset(10% 0 60% 0); }
    35% { clip-path: inset(70% 0 20% 0); }
    45% { clip-path: inset(5% 0 80% 0); }
}

.subtitle {
    font-size: 1.2rem;
    color: #00ffff;
    letter-spacing: 2px;
    font-weight: 700;
}

.chapter-badge {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.7); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 255, 1), 0 0 40px rgba(0, 255, 255, 0.5); }
}

.chapter-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
}

.chapter-label {
    display: block;
    font-size: 0.9rem;
    color: #000;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(0, 20, 0, 0.5);
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 2.5rem;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

.highlight {
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 10px #ff00ff;
}

.countdown {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #00ffff;
}

.countdown-title {
    font-size: 1rem;
    color: #00ffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.countdown-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
    font-family: 'Press Start 2P', monospace;
}

/* Character Carousel */
.character-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.character-card {
    background: rgba(0, 30, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.3);
}

.character-card.active {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

.character-card.boss .char-number {
    color: #00ffff;
}

.char-number {
    font-size: 3rem;
    font-weight: 900;
    color: #ff00ff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px currentColor;
}

.char-name {
    font-size: 1rem;
    color: #ccc;
    letter-spacing: 1px;
}

/* Game Section */
.game-section {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: #00ff00;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 i {
    color: #ff00ff;
}

.title-line {
    height: 3px;
    width: 100px;
    background: linear-gradient(90deg, #00ff00, transparent);
    margin-top: 10px;
}

/* Character Select */
.character-select {
    background: rgba(0, 20, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    margin-bottom: 30px;
}

.select-title {
    font-size: 1.8rem;
    color: #00ffff;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 10px #00ffff;
}

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

.char-select-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.char-select-card:hover {
    border-color: #00ff00;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.char-select-card.selected {
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.char-icon {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #222;
}

.char-icon span {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 0 #000;
}

.char-type {
    position: absolute;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.boss-icon {
    border-bottom: 2px solid #00ffff;
}

.boss-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.char-info {
    padding: 20px;
}

.char-info h4 {
    font-size: 1.3rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.char-info p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.char-stats {
    margin-top: 15px;
}

.stat {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stat span {
    width: 70px;
    color: #ccc;
    font-size: 0.9rem;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ff00ff);
    border-radius: 5px;
}

.boss-note {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    color: #00ffff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Selected Character Info */
.selected-character-info {
    background: rgba(0, 30, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 2px dashed #00ff00;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.selected-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.preview-number {
    font-size: 5rem;
    font-weight: 900;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
    margin-bottom: 10px;
}

.preview-name {
    font-size: 1.3rem;
    color: #00ff00;
    text-align: center;
}

.selected-details {
    flex: 1;
}

.selected-details p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ability-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ability {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff00ff;
}

.ability h5 {
    color: #00ffff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.ability p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* Select Actions */
.select-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    flex: 1;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #666;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ff00;
}

.btn-boss {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    flex: 1;
}

.btn-boss:hover:not(:disabled) {
    background: linear-gradient(45deg, #cc0000, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.btn-boss:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-lg {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* Chapter Link */
.chapter-link {
    display: inline-block;
    margin-top: 10px;
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.chapter-link:hover {
    background: #00ff00;
    color: #000;
    transform: translateX(5px);
}

.chapter-link-btn {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.chapter-link-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

/* Game Canvas */
.game-canvas-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #00ff00;
}

.canvas-header {
    background: rgba(0, 30, 0, 0.8);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
}

.canvas-header h3 {
    font-size: 1.5rem;
    color: #00ff00;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.difficulty-selector label {
    color: #ccc;
    font-size: 0.9rem;
}

.difficulty-selector select {
    background: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.game-canvas-wrapper {
    position: relative;
    height: 450px;
    background: #000;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-text {
    text-align: center;
}

.overlay-text h2 {
    font-size: 3rem;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ff00;
}

.overlay-text p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 30px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dot {
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
}

/* Game Controls */
.game-controls {
    background: rgba(0, 20, 0, 0.8);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #00ff00;
}

.controls-info h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.key {
    background: #000;
    color: #00ff00;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    min-width: 60px;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
}

.game-stats {
    display: flex;
    align-items: center;
}

.stat-display {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Story Section */
.story-section {
    margin-bottom: 50px;
}

.story-timeline {
    position: relative;
    padding-left: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #00ff00, #ff00ff);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-date {
    position: absolute;
    left: -50px;
    top: 0;
    background: #000;
    color: #00ff00;
    padding: 5px 15px;
    border-radius: 5px;
    border: 2px solid #00ff00;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.timeline-content {
    background: rgba(0, 30, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-left: 30px;
}

.timeline-content h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.timeline-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.boss-music-note {
    background: rgba(0, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #00ffff;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: rgba(0, 20, 0, 0.8);
    padding: 40px 0 20px;
    border-top: 3px solid #00ff00;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 30px;
}

.footer-logo {
    text-align: left;
}

.footer-title {
    font-size: 1.8rem;
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-subtitle {
    color: #00ffff;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.footer-link:hover {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(5px);
}

.footer-credits {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.meme-warning {
    color: #ff9900;
    font-style: italic;
    margin-top: 10px;
}

.footer-memes {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.meme-tag {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: rgba(0, 30, 0, 0.95);
    border: 3px solid #00ff00;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
}

.modal-header h2 {
    color: #00ff00;
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
}

.controls-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.controls-column h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #00ffff;
    padding-bottom: 10px;
}

.controls-list, .specials-list, .boss-list {
    list-style: none;
}

.controls-list li, .specials-list li, .boss-list li {
    color: #ccc;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.controls-list li::before, .specials-list li::before, .boss-list li::before {
    content: '▶';
    color: #00ff00;
    position: absolute;
    left: 0;
}

.boss-list li {
    color: #00ffff;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.credit-category h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.credit-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border-left: 4px solid #ff00ff;
}

.credit-name {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.credit-role {
    color: #ccc;
    font-size: 0.9rem;
}

.meme-quote {
    font-style: italic;
    color: #ff9900;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 5px;
    border-left: 4px solid #ff9900;
}

/* Boss Overlay */
.boss-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.boss-overlay.active {
    display: flex;
    animation: bossIntro 1s ease;
}

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

.boss-intro {
    text-align: center;
    max-width: 800px;
    padding: 40px;
}

.boss-title {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px #ff0000;
}

.boss-number {
    font-size: 10rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 40px #00ffff;
    margin-bottom: 20px;
    animation: bossGlitch 2s infinite;
}

@keyframes bossGlitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    20% { transform: translateX(10px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(0); }
}

.boss-subtitle {
    font-size: 1.8rem;
    color: #ff00ff;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.boss-music {
    font-size: 1.5rem;
    color: #00ff00;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00ffff;
}

.boss-timer {
    font-size: 2rem;
    color: #ff9900;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .controls-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .chapter-badge {
        padding: 10px 15px;
    }
    
    .chapter-number {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .selected-character-info {
        flex-direction: column;
        text-align: center;
    }
    
    .select-actions {
        flex-direction: column;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 30px;
    }
    
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .char-number {
        font-size: 2rem;
    }
    
    .boss-number {
        font-size: 5rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
}
