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

body {
    background-color: #111;
    color: #fff;
    font-family: 'Orbitron', monospace;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff3b3b, #3bf794);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* Contract Section */
.contract-section {
    margin-bottom: 30px;
}

.contract-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.contract-label {
    font-weight: 700;
    color: #3bf794;
}

.contract-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.copy-btn {
    background: #3bf794;
    color: #111;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2ed480;
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    margin-bottom: 30px;
    text-align: center;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 59, 59, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff3b3b;
    font-style: italic;
    line-height: 1.8;
}

/* Explanation Section */
.explanation-section {
    margin-bottom: 40px;
    text-align: center;
}

.explanation-text {
    font-size: 1rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.7;
}

/* Battle Section */
.battle-section {
    margin-bottom: 40px;
}

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

.war-label, .peace-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.war-label {
    color: #ff3b3b;
}

.peace-label {
    color: #3bf794;
}

.emoji {
    font-size: 1.5rem;
}

.battle-bar-container {
    position: relative;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.battle-bar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.war-fill {
    background: linear-gradient(90deg, #ff3b3b, #ff6b6b);
    height: 100%;
    transition: width 2s ease-in-out, transform 0.3s ease, filter 0.3s ease;
    border-radius: 30px 0 0 30px;
    transform-origin: left center;
}

.peace-fill {
    background: linear-gradient(270deg, #3bf794, #6bffaa);
    height: 100%;
    transition: width 2s ease-in-out, transform 0.3s ease, filter 0.3s ease;
    border-radius: 0 30px 30px 0;
    transform-origin: right center;
}





/* Leaderboards Section */
.leaderboards-section {
    margin-bottom: 40px;
}

.leaderboards-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #ff3b3b, #3bf794);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.leaderboard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.peacekeepers {
    border-color: rgba(59, 247, 148, 0.3);
    box-shadow: 0 0 20px rgba(59, 247, 148, 0.1);
}

.peacekeepers::before {
    background: linear-gradient(45deg, rgba(59, 247, 148, 0.3), rgba(59, 247, 148, 0.1));
}

.defectors {
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.1);
}

.defectors::before {
    background: linear-gradient(45deg, rgba(255, 59, 59, 0.3), rgba(255, 59, 59, 0.1));
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.leaderboard-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.peacekeepers .leaderboard-title {
    color: #3bf794;
}

.defectors .leaderboard-title {
    color: #ff3b3b;
}

.leaderboard-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.leaderboard-content {
    min-height: 300px;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
    font-style: italic;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.8;
    font-style: italic;
    line-height: 1.6;
}

.wallet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.wallet-item:last-child {
    border-bottom: none;
}

.wallet-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.wallet-rank {
    font-weight: 700;
    font-size: 1.1rem;
    width: 30px;
    text-align: center;
}

.peacekeepers .wallet-rank {
    color: #3bf794;
}

.defectors .wallet-rank {
    color: #ff3b3b;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
    margin: 0 15px;
    text-align: center;
}

.wallet-score {
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    min-width: 80px;
}

.peacekeepers .wallet-score {
    color: #3bf794;
}

.defectors .wallet-score {
    color: #ff3b3b;
}

.score-label {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
}

/* Statement Section */
.statement-section {
    margin-bottom: 40px;
    text-align: center;
}

.statement-note {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    font-style: italic;
    color: #fff;
}

.statement-btn {
    background: linear-gradient(45deg, #3bf794, #2ed480);
    color: #111;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(59, 247, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.statement-btn::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.5s;
}

.statement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 247, 148, 0.5);
    background: linear-gradient(45deg, #2ed480, #3bf794);
}

.statement-btn:hover::before {
    left: 100%;
}

.statement-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(59, 247, 148, 0.3);
}

/* Reality Section */
.reality-section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1a0a0a);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.reality-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 59, 59, 0.1), transparent);
    animation: glitch 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes glitch {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.reality-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 59, 59, 0.5);
    letter-spacing: 0.1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reality-card {
    box-shadow: 0 4px 20px rgba(255, 59, 59, 0.2);
    border-color: rgba(255, 59, 59, 0.2);
}

.reality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 59, 59, 0.3);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reality-card .news-image img {
    filter: sepia(20%) hue-rotate(320deg) saturate(1.2);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-headline {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.reality-card .news-headline {
    color: #ffdddd;
}

/* Transition Section */
.transition-section {
    margin: 60px 0;
    text-align: center;
}

.transition-message {
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(45deg, #ff3b3b, #3bf794);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Future Section */
.future-section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a1a0a, #0a0a1a);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.future-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 247, 148, 0.1), transparent);
    animation: peaceful-glow 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes peaceful-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.future-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 247, 148, 0.5);
    letter-spacing: 0.1em;
}

.future-card {
    box-shadow: 0 4px 20px rgba(59, 247, 148, 0.2);
    border-color: rgba(59, 247, 148, 0.2);
}

.future-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 247, 148, 0.4);
}

.future-card .news-image img {
    filter: sepia(10%) hue-rotate(80deg) saturate(1.1) brightness(1.1);
}

.future-card .news-headline {
    color: #ddffdd;
}

/* Price Section */
.price-section {
    margin-bottom: 30px;
}

/* Final CTA Section */
.final-cta-section {
    margin-bottom: 60px;
    text-align: center;
    padding: 60px 20px;
    background: #111;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.final-cta-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.final-cta-subtext {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.final-cta-btn {
    background: linear-gradient(45deg, #3bf794, #2ed480);
    color: #000;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 25px rgba(59, 247, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.final-cta-btn::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.5s;
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(59, 247, 148, 0.5);
    background: linear-gradient(45deg, #2ed480, #3bf794);
}

.final-cta-btn:hover::before {
    left: 100%;
}

.final-cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(59, 247, 148, 0.3);
}

.price-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.price-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3bf794;
}

.timestamp {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.status {
    font-size: 1.1rem;
    font-weight: 700;
}

.status.connected {
    color: #3bf794;
}

.status.disconnected {
    color: #ff3b3b;
}

.status.connecting {
    color: #ffaa3b;
}

/* Error Message */
.error-message {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid #ff3b3b;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .contract-display {
        flex-direction: column;
        text-align: center;
    }
    
    .contract-address {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .battle-labels {
        padding: 0 10px;
        font-size: 1rem;
    }
    
    .battle-bar-container {
        height: 50px;
    }
    
    .center-line {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .leaderboards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leaderboards-title {
        font-size: 2rem;
    }
    
    .wallet-item {
        padding: 10px 0;
    }
    
    .wallet-address {
        font-size: 0.8rem;
        margin: 0 10px;
    }
    
    .price-display {
        grid-template-columns: 1fr;
    }
    
    .cta-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    .explanation-text {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .statement-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .statement-note {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .reality-title, .future-title {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-headline {
        font-size: 1rem;
    }
    
    .transition-message {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .reality-section, .future-section {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .final-cta-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }
    
    .final-cta-title {
        font-size: 2.2rem;
    }
    
    .final-cta-subtext {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .final-cta-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .battle-bar-container {
        height: 40px;
    }
    
    .center-line {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
    
    .emoji {
        font-size: 1.2rem;
    }
    
    .war-label, .peace-label {
        font-size: 1rem;
    }
    
    .reality-title, .future-title {
        font-size: 2rem;
    }
    
    .news-image {
        height: 160px;
    }
    
    .transition-message {
        font-size: 1rem;
    }
    
    .final-cta-title {
        font-size: 1.8rem;
    }
    
    .final-cta-subtext {
        font-size: 0.9rem;
    }
    
    .final-cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Animation for successful copy */
.copy-success {
    background: #2ed480 !important;
    animation: copySuccess 0.5s ease;
}

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