/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Rules Container with Decorative Frame */
.rules-container {
    position: relative;
    margin: 15px 0;
    padding: 10px;
}

.rules-frame {
    position: relative;
    background: linear-gradient(45deg, #ff6b35, #ff8c42, #ff6b35);
    padding: 4px;
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(255, 107, 53, 0.2);
    animation: frameGlow 3s ease-in-out infinite alternate;
}

@keyframes frameGlow {
    from {
        box-shadow: 
            0 0 20px rgba(255, 107, 53, 0.4),
            0 0 40px rgba(255, 107, 53, 0.2);
    }
    to {
        box-shadow: 
            0 0 25px rgba(255, 107, 53, 0.6),
            0 0 50px rgba(255, 107, 53, 0.3);
    }
}

.rules-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #ff6b35;
    z-index: 10;
}

.rules-corner.tl {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.rules-corner.tr {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.rules-corner.bl {
    bottom: -5px;
    left: -5px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.rules-corner.br {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

/* Rules Section */
.rules-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 40, 0.9));
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #ff6b35, #ff8c42, #ff6b35) 1;
    border-radius: 15px;
    padding: 20px;
    margin: 0;
    text-align: center;
    box-shadow: 
        0 0 15px rgba(255, 107, 53, 0.3),
        inset 0 0 10px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.05), transparent);
    pointer-events: none;
}

.rules-content h2 {
    color: #ff6b35;
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 
        0 0 8px rgba(255, 107, 53, 0.8),
        0 0 16px rgba(255, 107, 53, 0.4),
        0 0 24px rgba(255, 107, 53, 0.2);
    letter-spacing: 1px;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 8px rgba(255, 107, 53, 0.8),
            0 0 16px rgba(255, 107, 53, 0.4),
            0 0 24px rgba(255, 107, 53, 0.2);
    }
    to {
        text-shadow: 
            0 0 12px rgba(255, 107, 53, 1),
            0 0 20px rgba(255, 107, 53, 0.6),
            0 0 28px rgba(255, 107, 53, 0.4);
    }
}

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

.rule-item {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 140, 66, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.rule-item:hover::before {
    left: 100%;
}

.rule-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 140, 66, 0.2));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(255, 107, 53, 0.4),
        0 0 20px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.8);
}

.rule-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    min-width: 30px;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    animation: bounce 2s infinite;
}

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

.rule-text {
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    flex: 1;
}

.rule-text strong {
    color: #ff6b35;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    font-size: 1.15rem;
}

.rules-warning {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 69, 0, 0.15));
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(255, 0, 0, 0.4),
        inset 0 0 10px rgba(255, 0, 0, 0.1);
}

.rules-warning::before {
    content: '⚠️';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

.rules-warning p {
    color: #ff6b6b;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 
        0 0 8px rgba(255, 0, 0, 0.8),
        0 0 16px rgba(255, 0, 0, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rules-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .rules-frame {
        padding: 6px;
    }
    
    .rules-corner {
        width: 25px;
        height: 25px;
    }
    
    .rules-section {
        padding: 25px 20px;
    }
    
    .rules-content h2 {
        font-size: 1.8rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rule-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .rule-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rule-text {
        text-align: center;
    }
    
    .rules-warning p {
        font-size: 1.1rem;
    }
}

/* Captcha Section */
.captcha-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    border: 2px solid #8a2be2;
}

.captcha-content h2 {
    color: #8a2be2;
    margin-bottom: 20px;
    font-size: 2rem;
}

.captcha-question {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 20px 0;
    padding: 15px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    border: 1px solid #8a2be2;
}

.captcha-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.captcha-input input {
    padding: 12px 20px;
    border: 2px solid #8a2be2;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    width: 120px;
    text-align: center;
}

.captcha-input button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-input button:hover {
    background: linear-gradient(45deg, #9932cc, #8a2be2);
    transform: translateY(-2px);
}

.captcha-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 15px;
}

/* Quest Ranking Box */
.quest-ranking-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.ranking-header h3 {
    color: #8a2be2;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ranking-header p {
    color: #ccc;
    margin-bottom: 20px;
}

.ranking-hint {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid #8a2be2;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.ranking-hint p {
    margin: 8px 0;
    color: #fff;
}

.ranking-hint strong {
    color: #8a2be2;
}

/* Character Input Section */
.character-input-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.character-input-section h3 {
    color: #8a2be2;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.character-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.character-input input {
    padding: 12px 20px;
    border: 2px solid #8a2be2;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    width: 200px;
    text-align: center;
}

.register-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: linear-gradient(45deg, #9932cc, #8a2be2);
    transform: translateY(-2px);
}

.character-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 15px;
}

/* Winner Display */
.winner-display {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.winner-display h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.winner-name {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #fff;
}

.winner-time {
    color: #ccc;
    font-size: 0.9rem;
}

/* Winner List */
.winner-list {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.winner-list h3 {
    color: #8a2be2;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.winner-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 8px 0;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
    border: 1px solid #8a2be2;
}

.winner-item.empty {
    background: rgba(100, 100, 100, 0.1);
    border-color: #666;
}

.winner-rank {
    background: #8a2be2;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 0.9rem;
}

.winner-item.empty .winner-rank {
    background: #666;
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
}

.winner-date {
    color: #ccc;
    font-size: 0.8rem;
}

.no-winners {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 20px;
}

/* Creative GIFs */
.creative-gif {
    position: fixed;
    z-index: 50;
    pointer-events: none;
    animation: floatGif 3s ease-in-out infinite;
    opacity: 0.8;
}

.creative-gif.dk1 {
    width: 60px;
    height: 60px;
}

.creative-gif.dk2 {
    width: 50px;
    height: 50px;
}

@keyframes floatGif {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) rotate(5deg);
        opacity: 1;
    }
}

/* Random positioning for GIFs */
.creative-gif:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.creative-gif:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.creative-gif:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.creative-gif:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 0.5s; }
.creative-gif:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.5s; }
.creative-gif:nth-child(6) { top: 70%; right: 5%; animation-delay: 2.5s; }

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Video Background */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -4;
    opacity: 0.3;
}

/* Background Images */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('images/top-bg.jpg') top center/cover no-repeat,
        url('images/bottom-bg.jpg') bottom center/cover no-repeat;
    z-index: -3;
    pointer-events: none;
}

/* Dark overlay for better text readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -2;
    pointer-events: none;
}

/* Animated Background - Removed stars and twinkling effects */

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

/* Header */
.puzzle-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.header-logo {
    margin-bottom: 20px;
}

.server-logo {
    max-width: 600px;
    height: auto;
    transition: all 0.3s ease;
}

.server-logo:hover {
    transform: scale(1.05);
}

.discord-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 2px solid #7289da;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
    backdrop-filter: blur(10px);
}

.discord-text {
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(114, 137, 218, 0.5);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #7289da, #5865f2);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.discord-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.discord-button:hover::before {
    left: 100%;
}

.discord-button:hover {
    background: linear-gradient(45deg, #5865f2, #7289da);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.discord-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.discord-link {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.glitch {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: #8a2be2;
    text-shadow: 0 0 20px #8a2be2;
    animation: glitch 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, 2px); }
}

.subtitle {
    font-size: 1.5rem;
    color: #b19cd9;
    margin-top: 20px;
    font-weight: 300;
}

.prize-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.prize-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.prize-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.prize-text {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
}

/* Puzzle Container */
.puzzle-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
}

.puzzle-level {
    animation: fadeIn 0.5s ease-in;
}

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

.puzzle-level h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #8a2be2;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.puzzle-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Cipher Box */
.cipher-box {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid #8a2be2;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.cipher-text {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

/* Sequence Box */
.sequence-box {
    text-align: center;
    margin: 30px 0;
}

.sequence {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.seq-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid #8a2be2;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Pattern Grid */
.pattern-grid {
    text-align: center;
    margin: 30px 0;
}

.pattern-container {
    display: inline-block;
    margin: 30px 0;
}

.pattern-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pattern-cell {
    width: 60px;
    height: 60px;
    border: 2px solid #8a2be2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.pattern-cell.clickable {
    cursor: pointer;
    background: rgba(138, 43, 226, 0.3);
}

.pattern-cell.clickable:hover {
    background: rgba(138, 43, 226, 0.5);
    transform: scale(1.1);
}

.pattern-cell.selected {
    background: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

/* Memory Challenge */
.memory-challenge {
    text-align: center;
}

.sequence-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.memory-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    animation: pulse 1s infinite;
}

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

.memory-timer {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin: 20px 0;
    font-weight: bold;
}

/* Equation Box */
.equation-box {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.equation {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 20px 0;
}

.eq-instruction {
    color: #b19cd9;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Input Section */
.input-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.input-section input {
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #8a2be2;
    border-radius: 10px;
    color: #ffffff;
    min-width: 250px;
    font-family: 'Exo 2', sans-serif;
}

.input-section input:focus {
    outline: none;
    border-color: #b19cd9;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.input-section button {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.input-section button:hover {
    background: linear-gradient(45deg, #4b0082, #8a2be2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* Hint Section */
.hint-section {
    text-align: center;
    margin: 30px 0;
}

.hint-btn {
    padding: 10px 20px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    border-radius: 25px;
    color: #ff6b6b;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
}

.hint-content {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 10px;
    color: #ffb3b3;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    border-radius: 20px;
    border: 3px solid #8a2be2;
    animation: successGlow 2s infinite alternate;
}

@keyframes successGlow {
    from { box-shadow: 0 0 30px rgba(138, 43, 226, 0.3); }
    to { box-shadow: 0 0 50px rgba(138, 43, 226, 0.6); }
}

.success-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.success-message {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 40px;
}

.reward-display {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #d4af37;
}

.reward-display h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.reward-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.reward-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.claim-section {
    margin-top: 40px;
}

.claim-btn {
    padding: 20px 40px;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    border: none;
    border-radius: 15px;
    color: #000000;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.claim-btn:hover {
    background: linear-gradient(45deg, #ffd700, #d4af37);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.claim-note {
    margin-top: 20px;
    color: #b19cd9;
    font-style: italic;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #4b0082);
    width: 20%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Attempts Counter */
.attempts-counter {
    text-align: center;
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .prize-display {
        gap: 20px;
    }
    
    .prize-item {
        padding: 15px;
    }
    
    .puzzle-container {
        padding: 20px;
    }
    
    .sequence {
        gap: 10px;
    }
    
    .seq-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .memory-number {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .input-section {
        flex-direction: column;
        align-items: center;
    }
    
    .input-section input {
        min-width: 200px;
    }
}
