/* ============================================
   RANDOMCOIN - Meme Style Theme
   much css. very style. wow.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Bangers&display=swap');

:root {
    /* Doge colors but more fun */
    --gold: #F4D03F;
    --gold-dark: #D4AC0D;
    --gold-light: #FCF3CF;
    --orange: #F39C12;
    --cream: #FEF9E7;

    /* Dark bg */
    --bg-dark: #0a0a0c;
    --bg-card: #151519;
    --bg-card-hover: #1f1f25;

    /* Text */
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-muted: #6B7280;

    /* Fun colors */
    --green: #10B981;
    --red: #EF4444;
    --purple: #8B5CF6;
    --pink: #EC4899;

    /* Fonts */
    --font-comic: 'Comic Neue', cursive;
    --font-bangers: 'Bangers', cursive;
    --font-inter: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-comic);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Fun Animations
   ============================================ */

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-3deg) scale(1); }
    75% { transform: rotate(3deg) scale(0.95); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(244, 208, 63, 0.3); }
    50% { box-shadow: 0 0 40px rgba(244, 208, 63, 0.6); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.bounce { animation: bounce 2s ease-in-out infinite; }
.bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }
.wiggle { animation: wiggle 1s ease-in-out infinite; }
.wobble { animation: wobble 4s ease-in-out infinite; }
.pulse { animation: pulse 2s ease-in-out infinite; }
.pop-in { animation: pop-in 0.5s ease-out forwards; }
.shake-hover:hover { animation: shake 0.5s ease-in-out; }

/* Staggered animations */
.pop-in:nth-child(1) { animation-delay: 0.1s; }
.pop-in:nth-child(2) { animation-delay: 0.2s; }
.pop-in:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   Background Meme Elements
   ============================================ */

.meme-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(244, 208, 63, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.02) 0%, transparent 40%);
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-bangers);
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-comic);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-gray);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(244, 208, 63, 0.1);
}

.twitter-link { padding: var(--space-xs); }
.x-icon { width: 20px; height: 20px; }

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px var(--space-lg) var(--space-lg);
    position: relative;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-logo-wrapper {
    margin-bottom: var(--space-md);
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 30px rgba(244, 208, 63, 0.4);
}

.hero-title {
    font-family: var(--font-bangers);
    margin-bottom: var(--space-md);
    line-height: 0.9;
}

.title-line-1 {
    display: block;
    font-size: clamp(2rem, 7vw, 3.5rem);
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--gold-dark), 4px 4px 0 rgba(0,0,0,0.3);
    letter-spacing: 3px;
}

.title-line-2 {
    display: block;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--text-white);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.title-line-3 {
    display: block;
    font-size: clamp(2.5rem, 9vw, 5rem);
    color: var(--gold);
    text-shadow: 3px 3px 0 var(--gold-dark), 6px 6px 0 rgba(0,0,0,0.3);
    letter-spacing: 5px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

/* Contract Box */
.contract-section {
    margin-bottom: var(--space-md);
}

.contract-box {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: all 0.3s;
    max-width: 100%;
}

.contract-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

.contract-label {
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.contract-address {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-gray);
    word-break: break-all;
}

.copy-btn {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-comic);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn .copied-text { display: none; }
.copy-btn.copied .copy-text { display: none; }
.copy-btn.copied .copied-text { display: inline; }
.copy-btn.copied { background: var(--green); }

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-comic);
    font-weight: 700;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold-dark);
    box-shadow: 4px 4px 0 var(--gold-dark);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--gold-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Floating Elements */
.floating-memes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-item.dice { font-size: 2rem; }

/* ============================================
   Story Section
   ============================================ */

.story-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    position: relative;
    z-index: 10;
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.comic-title {
    font-family: var(--font-bangers);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    text-shadow: 3px 3px 0 var(--gold-dark);
    letter-spacing: 3px;
}

.title-decoration {
    color: var(--orange);
    margin: 0 var(--space-sm);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 800px) {
    .story-content { grid-template-columns: 1fr; }
}

/* Timeline */
.story-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.timeline-item {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 0 var(--gold-dark);
}

.timeline-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-family: var(--font-bangers);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: var(--space-xs);
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.timeline-content strong {
    color: var(--gold);
}

/* Proof Card */
.proof-section {
    position: sticky;
    top: 100px;
}

.proof-card {
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--gold-dark);
}

.proof-header {
    background: var(--gold);
    padding: var(--space-sm) var(--space-md);
}

.proof-badge {
    font-family: var(--font-bangers);
    font-size: 1.2rem;
    color: var(--bg-dark);
    letter-spacing: 2px;
}

.proof-image {
    background: #0d1117;
}

.github-img {
    width: 100%;
    height: auto;
}

.proof-footer {
    padding: var(--space-md);
}

.proof-footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.proof-footer strong { color: var(--gold); }

.proof-link {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    transition: all 0.2s;
}

.proof-link:hover {
    color: var(--orange);
    transform: translateX(5px);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-section {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-card);
    position: relative;
    z-index: 10;
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.how-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 700px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    background: var(--bg-dark);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 0 var(--gold-dark);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-bangers);
    font-size: 1.5rem;
    border: 3px solid var(--gold-dark);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.step-card h3 {
    font-family: var(--font-bangers);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Fun Facts */
.fun-facts {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.fact-bubble {
    background: var(--gold);
    color: var(--bg-dark);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 3px 3px 0 var(--gold-dark);
}

/* ============================================
   Countdown Section
   ============================================ */

.countdown-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    position: relative;
    z-index: 10;
}

.countdown-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.countdown-header {
    margin-bottom: var(--space-xl);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--red);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-family: var(--font-bangers);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

.countdown-title {
    margin-bottom: var(--space-sm);
}

.countdown-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.time-block {
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    min-width: 90px;
    box-shadow: 4px 4px 0 var(--gold-dark);
}

.time-value {
    display: block;
    font-family: var(--font-bangers);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    line-height: 1;
    letter-spacing: 2px;
}

.time-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
}

.time-sep {
    font-family: var(--font-bangers);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

/* ============================================
   Winner Picker Slot Machine
   ============================================ */

.winner-picker {
    margin-top: var(--space-xl);
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 4px 4px 0 var(--gold-dark);
}

.picker-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.picker-icon {
    font-size: 1.5rem;
}

.picker-title {
    font-family: var(--font-bangers);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.picker-slot {
    position: relative;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.slot-window {
    height: 50px;
    overflow: hidden;
    position: relative;
}

.slot-reel {
    display: flex;
    flex-direction: column;
    transition: transform 0.8s ease-in-out;
}

.slot-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-white);
    white-space: nowrap;
    padding: 0 var(--space-md);
}

.slot-item.winner {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px var(--gold);
}

.slot-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(244, 208, 63, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(244, 208, 63, 0.2) 100%
    );
}

.picker-status {
    margin-top: var(--space-md);
    text-align: center;
}

.picker-status .status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.picker-status.picking .status-text {
    color: var(--gold);
    animation: pulse 0.5s ease-in-out infinite;
}

.picker-status.winner .status-text {
    color: var(--green);
    font-weight: 700;
}

/* Winner Reveal Overlay */
.winner-reveal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.winner-reveal.active {
    display: flex;
}

.reveal-content {
    background: var(--bg-card);
    border: 4px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 500px;
    margin: var(--space-lg);
    position: relative;
    animation: pop-in 0.5s ease-out;
    box-shadow: 0 0 60px rgba(244, 208, 63, 0.4);
}

.reveal-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.reveal-emoji {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: bounce 1s ease-in-out infinite;
}

.reveal-title {
    font-family: var(--font-bangers);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--gold-dark);
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
}

.reveal-address {
    font-family: monospace;
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
    color: var(--text-white);
    background: var(--bg-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--gold);
    margin-bottom: var(--space-lg);
    word-break: break-all;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.reveal-amount {
    margin-bottom: var(--space-lg);
}

.reveal-amount .amount-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.reveal-amount .amount-value {
    font-family: var(--font-bangers);
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--gold-dark);
    letter-spacing: 2px;
}

.reveal-tx {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(244, 208, 63, 0.3);
    font-family: monospace;
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}

.reveal-tx:hover {
    background: rgba(244, 208, 63, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.reveal-tx .tx-label {
    opacity: 0.7;
}

.reveal-tx .tx-hash {
    color: var(--text-white);
}

.reveal-tx:hover .tx-hash {
    color: var(--gold);
}

.reveal-tx svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

.reveal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.reveal-close {
    background: var(--gold);
    color: var(--bg-dark);
    border: 3px solid var(--gold-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-2xl);
    font-family: var(--font-comic);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--gold-dark);
    transition: all 0.2s;
}

.reveal-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--gold-dark);
}

.reveal-close:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--gold-dark);
}

/* ============================================
   History Section
   ============================================ */

.history-section {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.history-container {
    max-width: 900px;
    margin: 0 auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
}

.stat-card {
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 4px 4px 0 var(--gold-dark);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.stat-value {
    font-family: var(--font-bangers);
    font-size: 2rem;
    color: var(--gold);
    display: block;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Table */
.history-table-section {
    background: var(--bg-card);
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--gold-dark);
}

.table-title {
    font-family: var(--font-bangers);
    font-size: 1.3rem;
    color: var(--gold);
    padding: var(--space-md) var(--space-lg);
    background: rgba(244, 208, 63, 0.1);
    letter-spacing: 2px;
    border-bottom: 2px solid var(--gold);
}

.table-wrapper {
    overflow-x: auto;
}

.rewards-table {
    width: 100%;
    border-collapse: collapse;
}

.rewards-table th {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-family: var(--font-comic);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(244, 208, 63, 0.2);
}

.rewards-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.rewards-table tbody tr {
    transition: all 0.2s;
}

.rewards-table tbody tr:hover:not(.empty-row) {
    background: rgba(244, 208, 63, 0.08);
}

.rewards-table tbody tr:nth-child(even):not(.empty-row) {
    background: rgba(0, 0, 0, 0.2);
}

.rewards-table tbody tr:nth-child(even):not(.empty-row):hover {
    background: rgba(244, 208, 63, 0.08);
}

/* Table cell specific styles */
.rewards-table .time-cell {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.rewards-table .winner-cell {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.rewards-table .amount-cell {
    color: var(--gold);
    font-weight: 700;
    font-family: var(--font-bangers);
    font-size: 1rem;
    letter-spacing: 1px;
}

.rewards-table .tx-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--bg-dark);
    background: var(--gold);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.rewards-table .tx-link:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.rewards-table .tx-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Empty State */
.empty-row td {
    padding: var(--space-2xl);
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-muted);
}

.empty-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(244, 208, 63, 0.2);
}

.page-btn {
    background: var(--gold);
    color: var(--bg-dark);
    border: 2px solid var(--gold-dark);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-comic);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--gold-dark);
}

.page-btn:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--gold-dark);
}

.page-btn:active:not(:disabled) {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--gold-dark);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.page-info {
    font-family: var(--font-comic);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    background: var(--bg-card);
    border-top: 3px solid var(--gold);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-img {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
}

.footer-tagline {
    font-family: var(--font-comic);
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-gray);
    font-weight: 700;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link .x-icon {
    width: 18px;
    height: 18px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    .header-content {
        padding: var(--space-sm);
    }

    .nav-link:not(.twitter-link) {
        display: none;
    }

    .hero {
        padding: 60px var(--space-md) var(--space-md);
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-title {
        margin-bottom: var(--space-sm);
    }

    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }

    .contract-address {
        font-size: 0.6rem;
    }

    .contract-box {
        padding: var(--space-xs) var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .contract-label {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-xs);
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .time-block {
        min-width: 70px;
        padding: var(--space-sm) var(--space-md);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Section scroll offset */
section {
    scroll-margin-top: 70px;
}
