/* MVM - Epic Arena Battle UI */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

:root {
    --team-red: #FF4444;
    --team-blue: #4488FF;
    --lightning-blue: #00BFFF;
    --electric-white: #FFFFFF;
    --arena-dark: #0a0a0f;
    --arena-light: #2a1a3f;
    --card-bg: rgba(139, 69, 19, 0.15);
    --card-border: rgba(218, 165, 32, 0.6);
    --text-white: #FFFFFF;
    --text-gold: #FFD700;
    --text-arena: #E8D5B7;
    --border-glow: #DAA520;
    --shadow-intense: 0 0 30px rgba(218, 165, 32, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--arena-dark);
    color: var(--text-white);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Intro Page Styles */
.intro-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('Intro.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.intro-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: rgba(139, 69, 19, 0.15);
    backdrop-filter: blur(15px);
    border: 3px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: var(--shadow-intense);
}

.intro-logo {
    margin-bottom: 2rem;
}

.main-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}

.intro-text h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-gold);
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--text-arena);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.intro-subtitle {
    font-size: 1rem !important;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 2rem !important;
}

.open-app-btn {
    background: var(--border-glow);
    color: var(--arena-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.open-app-btn:hover {
    background: var(--text-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.4);
}

/* App Container */
.app-container {
    height: 100vh;
    width: 100vw;
}

.arena-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    background: 
        /* Arena image overlay */
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)),
        url('arena.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: arena-atmosphere 15s ease-in-out infinite;
}

@keyframes arena-atmosphere {
    0%, 100% { 
        filter: brightness(1) contrast(1.1); 
    }
    50% { 
        filter: brightness(1.1) contrast(1.2); 
    }
}

/* Battle Arena */
.battle-arena {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 2rem;
    position: relative;
    height: 100vh;
    z-index: 2;
}

/* Battle Cards - Arena Style */
.battle-card {
    width: 280px;
    height: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 3px solid var(--card-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-intense);
    opacity: 0.95;
}

.battle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.1) 0%, 
        transparent 30%, 
        rgba(218, 165, 32, 0.05) 70%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.battle-card:hover::before {
    opacity: 1;
}

.battle-card:hover {
    transform: scale(1.05);
    opacity: 1;
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.8);
}

.left-card:hover {
    border-color: var(--team-red);
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.6);
}

.right-card:hover {
    border-color: var(--team-blue);
    box-shadow: 0 0 40px rgba(68, 136, 255, 0.6);
}

.battle-card:active {
    transform: scale(1.02);
}

/* Team-colored headers */
.memecoin-header {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.3) 0%, 
        rgba(218, 165, 32, 0.2) 50%, 
        rgba(139, 69, 19, 0.3) 100%);
    border-bottom: 2px solid var(--card-border);
}

.left-card .memecoin-header {
    background: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.3) 0%, 
        rgba(255, 68, 68, 0.1) 50%, 
        rgba(255, 68, 68, 0.3) 100%);
    border-bottom-color: rgba(255, 68, 68, 0.5);
}

.right-card .memecoin-header {
    background: linear-gradient(135deg, 
        rgba(68, 136, 255, 0.3) 0%, 
        rgba(68, 136, 255, 0.1) 50%, 
        rgba(68, 136, 255, 0.3) 100%);
    border-bottom-color: rgba(68, 136, 255, 0.5);
}

.memecoin-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.left-card .memecoin-name {
    color: var(--team-red);
}

.right-card .memecoin-name {
    color: var(--team-blue);
}

/* Card Links */
.card-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid var(--border-glow);
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.link-icon:hover {
    background: var(--border-glow);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
}

.link-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.website-img {
    filter: invert(1);
}

/* Character Container */
.character-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.character-container::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: character-energy 4s ease-in-out infinite;
}

@keyframes character-energy {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

.memecoin-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}

.battle-card:hover .memecoin-logo {
    transform: scale(1.05);
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.8);
}

.left-card:hover .memecoin-logo {
    border-color: var(--team-red);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
}

.right-card:hover .memecoin-logo {
    border-color: var(--team-blue);
    box-shadow: 0 0 30px rgba(68, 136, 255, 0.8);
}

/* Simple Divider */
.simple-divider {
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--border-glow) 20%, 
        var(--text-gold) 50%, 
        var(--border-glow) 80%, 
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
    animation: divider-pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 15;
}

@keyframes divider-pulse {
    0%, 100% { opacity: 0.8; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.05); }
}

.simple-divider::before {
    content: 'VS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-gold);
    background: rgba(139, 69, 19, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-glow);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    z-index: 20;
}

/* Confirmation Modal */
.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--card-bg);
    border: 3px solid var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    z-index: 1001;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    max-width: 90vw;
}

.confirm-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.confirm-modal h3 {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.confirm-modal p {
    color: var(--text-arena);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-btn {
    background: var(--border-glow);
    color: var(--arena-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.confirm-btn:hover {
    background: var(--text-gold);
    transform: translateY(-2px);
}

.confirm-btn.cancel {
    background: rgba(255, 68, 68, 0.8);
    color: var(--text-white);
}

.confirm-btn.cancel:hover {
    background: var(--team-red);
}

.dont-show-again {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-arena);
    font-size: 0.9rem;
}

.dont-show-again input[type="checkbox"] {
    transform: scale(1.2);
}

/* Arena Controls */
.arena-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.control-btn {
    background: var(--card-bg);
    color: var(--text-gold);
    border: 3px solid var(--border-glow);
    padding: 1rem;
    border-radius: 15px;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(218, 165, 32, 0.3);
    border-color: var(--text-gold);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 3px solid var(--border-glow);
    border-radius: 15px;
    width: 90vw;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-glow);
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.3) 0%, 
        rgba(218, 165, 32, 0.2) 50%, 
        rgba(139, 69, 19, 0.3) 100%);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-gold);
}

.modal-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-arena);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--border-glow);
    color: var(--arena-dark);
}

.rankings-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: rgba(139, 69, 19, 0.3);
    border-color: var(--border-glow);
}

.ranking-position {
    font-weight: 700;
    color: var(--text-gold);
    min-width: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.ranking-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glow);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: var(--text-arena);
    font-size: 1rem;
}

/* Swipe Animations */
.swipe-left {
    animation: swipeLeftAnimation 0.6s ease-out forwards;
}

.swipe-right {
    animation: swipeRightAnimation 0.6s ease-out forwards;
}

@keyframes swipeLeftAnimation {
    to {
        transform: translateX(-120vw) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes swipeRightAnimation {
    to {
        transform: translateX(120vw) rotate(15deg);
        opacity: 0;
    }
}

/* New card entrance animation */
.card-enter {
    animation: cardEnterAnimation 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

@keyframes cardEnterAnimation {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Champion stays animation */
.champion-stay {
    animation: championStayAnimation 0.6s ease-out forwards;
}

@keyframes championStayAnimation {
    0% { transform: scale(1); }
    30% { transform: scale(1.05); box-shadow: 0 0 50px var(--text-gold); }
    100% { transform: scale(1); }
}

/* Battle Result Animation */
.battle-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--card-bg);
    border: 3px solid var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    z-index: 1001;
    animation: battleResultAnimation 2s ease-out forwards;
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.6);
    backdrop-filter: blur(15px);
}

@keyframes battleResultAnimation {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-arena);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    border: 2px solid var(--border-glow);
    z-index: 1002;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(15px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Touch feedback */
.battle-card:active {
    transform: scale(0.98);
}

/* Loading animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading .memecoin-logo {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* Chat Feature Styles - Desktop Positioning */
.chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-height: 500px;
    background: var(--card-bg);
    border: 3px solid var(--border-glow);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    z-index: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.3) 0%, 
        rgba(218, 165, 32, 0.2) 50%, 
        rgba(139, 69, 19, 0.3) 100%);
    border-bottom: 2px solid var(--border-glow);
    cursor: pointer;
    border-radius: 12px 12px 0 0;
}

.chat-title {
    font-weight: 600;
    color: var(--text-gold);
    font-size: 1.1rem;
}

.chat-toggle-btn {
    background: none;
    border: none;
    color: var(--text-arena);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    transform: rotate(0deg);
    pointer-events: none;
}

.chat-toggle-btn:hover {
    background: var(--border-glow);
    color: var(--arena-dark);
}

.chat-toggle-btn.collapsed {
    transform: rotate(180deg);
}

.chat-body {
    height: 350px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-body.collapsed {
    height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.1);
}

.system-message {
    text-align: center;
    color: var(--text-gold);
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    animation: messageAppear 0.3s ease-out;
}

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

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.message-user {
    font-weight: 600;
    color: var(--text-gold);
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-arena);
    opacity: 0.7;
}

.message-content {
    color: var(--text-arena);
    line-height: 1.4;
    word-wrap: break-word;
}

.filtered-message {
    color: #ff6b6b;
    font-style: italic;
    opacity: 0.8;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.2);
    border-top: 1px solid var(--border-glow);
    border-radius: 0 0 12px 12px;
}

#chatInput {
    flex: 1;
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid var(--border-glow);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-arena);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

#chatInput:focus {
    border-color: var(--text-gold);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

#chatInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#chatInput::placeholder {
    color: var(--text-arena);
    opacity: 0.6;
}

#chatSendBtn {
    background: var(--border-glow);
    color: var(--arena-dark);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#chatSendBtn:hover:not(:disabled) {
    background: var(--text-gold);
    transform: translateY(-1px);
}

#chatSendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User Agreement Modal */
.user-agreement-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.user-agreement-content {
    padding: 1.5rem;
}

.user-agreement-content h3 {
    color: var(--text-gold);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.user-agreement-content p {
    color: var(--text-arena);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.guidelines-list {
    margin: 1.5rem 0;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.guideline-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.guideline-item span:last-child {
    color: var(--text-arena);
    line-height: 1.4;
}

.agreement-note {
    background: rgba(218, 165, 32, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    font-style: italic;
    text-align: center;
    color: var(--text-gold);
    margin: 1.5rem 0;
}

.agreement-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.agreement-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.agreement-btn.accept {
    background: var(--border-glow);
    color: var(--arena-dark);
}

.agreement-btn.accept:hover {
    background: var(--text-gold);
    transform: translateY(-2px);
}

.agreement-btn.decline {
    background: rgba(255, 68, 68, 0.8);
    color: var(--text-white);
}

.agreement-btn.decline:hover {
    background: var(--team-red);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .intro-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .main-logo {
        width: 120px;
        height: 120px;
    }
    
    .battle-arena {
        padding: 1rem;
        gap: 1rem;
    }
    
    .battle-card {
        width: 240px;
        height: 350px;
    }
    
    .memecoin-logo {
        width: 130px;
        height: 130px;
    }
    
    .memecoin-name {
        font-size: 1.3rem;
    }
    
    .character-container::before {
        width: 150px;
        height: 150px;
    }
    
    .arena-controls {
        top: 1rem;
        right: 1rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Mobile Chat - Full Height */
    .chat-container {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 15px 15px 0 0;
        border-bottom: none;
    }
    
    .chat-header {
        border-radius: 12px 12px 0 0;
    }
    
    .chat-body {
        height: 40vh;
    }
    
    .chat-input-container {
        flex-direction: column;
        border-radius: 0;
    }
    
    #chatSendBtn {
        width: 100%;
    }
    
    .agreement-buttons {
        flex-direction: column;
    }
    
    .agreement-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .intro-text h1 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .open-app-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .battle-arena {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .battle-card {
        width: 180px;
        height: 280px;
    }
    
    .memecoin-logo {
        width: 100px;
        height: 100px;
    }
    
    .memecoin-name {
        font-size: 1rem;
    }
    
    .character-container::before {
        width: 120px;
        height: 120px;
    }
    
    .card-links {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .link-icon {
        width: 30px;
        height: 30px;
    }
    
    .link-img {
        width: 18px;
        height: 18px;
    }

    .confirm-buttons {
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
    }
    
    .simple-divider::before {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
    
    .chat-container {
        max-height: 70vh;
    }
    
    .chat-body {
        height: 50vh;
    }
    
    .user-agreement-modal {
        margin: 1rem;
        max-height: 90vh;
    }
} 
/* Audio Settings Modal */
.audio-settings-content {
    padding: 1.5rem;
}

.audio-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.audio-setting label {
    font-weight: 600;
    color: var(--text-gold);
    min-width: 120px;
}

.audio-setting input[type="range"] {
    flex: 1;
    margin: 0 1rem;
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid var(--border-glow);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    height: 6px;
}

.audio-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-glow);
    cursor: pointer;
    border: 2px solid var(--arena-dark);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

.audio-setting input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-glow);
    cursor: pointer;
    border: 2px solid var(--arena-dark);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

.audio-setting .volume-value {
    color: var(--text-arena);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.audio-toggle-btn {
    background: var(--border-glow);
    color: var(--arena-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.audio-toggle-btn:hover {
    background: var(--text-gold);
    transform: translateY(-2px);
}

.audio-toggle-btn.disabled {
    background: rgba(255, 68, 68, 0.8);
    color: var(--text-white);
}

.audio-info {
    background: rgba(218, 165, 32, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    margin-top: 1rem;
}

.audio-info p {
    color: var(--text-arena);
    font-style: italic;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

.audio-btn {
    background: var(--card-bg);
    color: var(--text-gold);
    border: 3px solid var(--border-glow);
}

.audio-btn:hover {
    background: rgba(218, 165, 32, 0.3);
    transform: scale(1.1);
}

.audio-btn.disabled {
    opacity: 0.5;
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .audio-setting {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .audio-setting label {
        min-width: auto;
    }
    
    .audio-setting input[type="range"] {
        width: 100%;
        margin: 0.5rem 0;
    }
}
