/* $UP ARCADE - Hot Rainbow Arcade Aesthetic */

/* CSS Variables */
:root {
    --neon-red: #ff073a;
    --neon-orange: #ff6b00;
    --neon-yellow: #ffdd00;
    --neon-lime: #39ff14;
    --neon-cyan: #00fff7;
    --neon-magenta: #ff00ff;
    --neon-pink: #ff1493;

    --bg-dark: #0a0a0a;
    --bg-card: rgba(15, 15, 20, 0.95);
    --text-main: #ffffff;
    --text-dim: #aaaaaa;

    --font-display: 'Press Start 2P', monospace;
    --font-body: 'Russo One', sans-serif;

    --game-height: min(70vh, 500px);
    --border-glow: 3px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.3;
}

/* Animated Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 7, 58, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 7, 58, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100%;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Header */
.arcade-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-dark);
    border-bottom: var(--border-glow) solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px rgba(255, 7, 58, 0.3);
}

/* Marquee */
.marquee-container {
    background: linear-gradient(90deg,
        var(--neon-red),
        var(--neon-orange),
        var(--neon-yellow),
        var(--neon-lime),
        var(--neon-cyan),
        var(--neon-magenta),
        var(--neon-red)
    );
    background-size: 200% 100%;
    animation: rainbowFlow 3s linear infinite;
    padding: 8px 0;
    overflow: hidden;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-text {
    font-family: var(--font-display);
    font-size: 11px;
    color: #000;
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

/* Header Content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-yellow);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(14px, 4vw, 24px);
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange), var(--neon-red), var(--neon-magenta));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
    text-shadow: none;
}

@keyframes textGlow {
    0%, 100% { background-position: 0% 50%; filter: brightness(1); }
    50% { background-position: 100% 50%; filter: brightness(1.2); }
}

.buy-btn-header {
    font-family: var(--font-display);
    font-size: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--neon-lime), var(--neon-cyan));
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 15px var(--neon-lime), inset 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    animation: btnPulse 1.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 15px var(--neon-lime), inset 0 0 10px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 25px var(--neon-lime), 0 0 40px var(--neon-cyan), inset 0 0 10px rgba(255,255,255,0.3); }
}

.buy-btn-header:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-lime));
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Game Navigation Tabs */
.game-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-nav::-webkit-scrollbar {
    display: none;
}

.game-tab {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 2px solid #333;
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-display);
}

.game-tab:hover {
    border-color: var(--neon-orange);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.game-tab.active {
    background: linear-gradient(135deg, rgba(255, 7, 58, 0.2), rgba(255, 107, 0, 0.2));
    border-color: var(--neon-orange);
    color: var(--neon-yellow);
    box-shadow: 0 0 20px var(--neon-orange), inset 0 0 15px rgba(255, 107, 0, 0.1);
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 8px;
    letter-spacing: 0.5px;
}

/* Game Wrapper */
.game-wrapper {
    background: var(--bg-card);
    border: var(--border-glow) solid var(--neon-orange);
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(255, 107, 0, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
    animation: borderCycle 5s linear infinite;
}

@keyframes borderCycle {
    0% { border-color: var(--neon-red); box-shadow: 0 0 30px rgba(255, 7, 58, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
    20% { border-color: var(--neon-orange); box-shadow: 0 0 30px rgba(255, 107, 0, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
    40% { border-color: var(--neon-yellow); box-shadow: 0 0 30px rgba(255, 221, 0, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
    60% { border-color: var(--neon-lime); box-shadow: 0 0 30px rgba(57, 255, 20, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
    80% { border-color: var(--neon-magenta); box-shadow: 0 0 30px rgba(255, 0, 255, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
    100% { border-color: var(--neon-red); box-shadow: 0 0 30px rgba(255, 7, 58, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5); }
}

/* Game Frame Container */
.game-frame-container {
    position: relative;
    width: 100%;
    height: var(--game-height);
    background: #000;
}

.game-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    background: #000;
}

.game-panel.active {
    display: block;
}

#slots-game {
    display: none;
    background: linear-gradient(180deg, #1a0a20 0%, #0a0a15 100%);
}

#slots-game.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#slot-container {
    width: 100%;
    height: 100%;
}

#slot-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Game Instructions */
.game-instructions {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #333;
}

.game-instructions p {
    font-family: var(--font-display);
    font-size: 9px;
    text-align: center;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    animation: instructionPulse 2s ease-in-out infinite;
}

@keyframes instructionPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Info Cards */
.info-card {
    background: var(--bg-card);
    border: 2px solid var(--neon-magenta);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.info-card:nth-child(1) {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 7, 58, 0.2);
}

.info-card:nth-child(1):hover {
    box-shadow: 0 0 30px rgba(255, 7, 58, 0.4);
}

.info-card:nth-child(2) {
    border-color: var(--neon-lime);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.info-card:nth-child(2):hover {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.4);
}

.info-card:nth-child(3) {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.2);
}

.info-card:nth-child(3):hover {
    box-shadow: 0 0 30px rgba(255, 221, 0, 0.4);
}

.card-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(255, 7, 58, 0.2), rgba(255, 107, 0, 0.2), rgba(255, 221, 0, 0.2));
    border-bottom: 1px solid #333;
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 12px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content {
    padding: 20px;
}

/* Stat Rows */
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--text-dim);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--neon-lime);
    text-shadow: 0 0 8px var(--neon-lime);
}

.mission-text, .join-text, .treasury-text {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-family: var(--font-display);
    font-size: 8px;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid;
    transition: all 0.2s ease;
}

.social-btn.twitter {
    background: rgba(255, 7, 58, 0.1);
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.social-btn.twitter:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px var(--neon-red);
}

.social-btn.telegram {
    background: rgba(0, 255, 247, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.social-btn.telegram:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Large Buy Button */
.buy-btn-large {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    font-family: var(--font-display);
    font-size: 10px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange), var(--neon-yellow), var(--neon-lime));
    background-size: 300% 100%;
    color: #000;
    border-radius: 10px;
    border: 2px solid #fff;
    animation: buyBtnFlow 3s linear infinite;
    transition: all 0.2s ease;
}

@keyframes buyBtnFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.buy-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--neon-yellow);
}

/* Character Parade */
.character-parade {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.parade-char {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--neon-yellow);
    animation: charBounce 1s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.parade-char:nth-child(1) { animation-delay: 0s; }
.parade-char:nth-child(2) { animation-delay: 0.1s; }
.parade-char:nth-child(3) { animation-delay: 0.2s; }
.parade-char:nth-child(4) { animation-delay: 0.3s; }
.parade-char:nth-child(5) { animation-delay: 0.4s; }

@keyframes charBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.parade-char:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 20px var(--neon-yellow);
}

/* Footer */
.arcade-footer {
    margin-top: 40px;
    background: linear-gradient(90deg,
        var(--neon-red),
        var(--neon-orange),
        var(--neon-yellow),
        var(--neon-lime),
        var(--neon-magenta),
        var(--neon-red)
    );
    background-size: 200% 100%;
    animation: rainbowFlow 3s linear infinite;
    padding: 3px;
}

.footer-content {
    background: var(--bg-dark);
    padding: 25px 20px;
    text-align: center;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    animation: footerBlink 1s step-start infinite;
}

@keyframes footerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-characters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-icon.main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--neon-yellow);
    box-shadow: 0 0 20px var(--neon-yellow);
}

.footer-icon:hover {
    transform: scale(1.2) rotate(15deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --game-height: 60vh;
    }

    .header-content {
        padding: 10px 15px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 12px;
    }

    .buy-btn-header {
        font-size: 8px;
        padding: 10px 15px;
    }

    .main-content {
        padding: 15px;
    }

    .game-nav {
        gap: 5px;
    }

    .game-tab {
        min-width: 60px;
        padding: 10px 5px;
    }

    .tab-icon {
        font-size: 16px;
    }

    .tab-text {
        font-size: 7px;
    }

    .game-instructions p {
        font-size: 8px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .marquee-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    :root {
        --game-height: 55vh;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 10px;
    }

    .game-tab {
        min-width: 55px;
        padding: 8px 4px;
    }

    .tab-icon {
        font-size: 14px;
    }

    .tab-text {
        font-size: 6px;
    }

    .card-header h2 {
        font-size: 10px;
    }

    .stat-label, .stat-value {
        font-size: 8px;
    }

    .parade-char {
        width: 40px;
        height: 40px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --game-height: 70vh;
    }

    .arcade-header {
        position: relative;
    }

    .marquee-container {
        display: none;
    }

    .header-content {
        padding: 8px 15px;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .game-instructions {
        padding: 8px;
    }
}
