/* MineShare - Pixel Art Styling - Mobile First */

/* Import pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #000000;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(20,20,20,0.8) 4px, rgba(20,20,20,0.8) 8px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(20,20,20,0.8) 4px, rgba(20,20,20,0.8) 8px);
    color: #e0e0e0;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.9);
}

body:not(.landing-content-page):not(.landing-page) {
    padding-top: 100px; /* Space for fixed top header */
}

/* Top Header - Fixed at top */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a0f05;
    border-bottom: 4px solid #0d0702;
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a0f05;
    border-bottom: 4px solid #0d0702;
    box-shadow: 0 4px 0 #0d0702, 0 8px 0 rgba(0,0,0,0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.app-title {
    font-size: 16px;
    font-weight: 400;
    color: #f7931a;
    text-decoration: none;
    text-shadow: 3px 3px 0px #c46700, 4px 4px 0px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.stats-badges {
    display: flex;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
}

.settings-link {
    display: flex;
    align-items: center;
    color: #ddd;
    cursor: pointer;
    transition: transform 0.05s;
    text-decoration: none;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
}

.settings-link:hover {
    color: #f7931a;
}

.settings-link:active {
    transform: translateY(2px);
}

.settings-icon {
    display: block;
}

/* Main content */
main {
    flex: 1;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
footer {
    padding: 20px 40px;
    text-align: center;
    color: #888888;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    border-top: 4px solid #1a0f05;
}

/* Settings page */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;
}

#settings-form {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 24px;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #888888;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background-color: #000000;
    border: 4px solid #000000;
    border-right-color: #0d0d0d;
    border-bottom-color: #0d0d0d;
    color: #e0e0e0;
    padding: 12px;
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    transition: border-color 0.1s;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.9);
}

.form-group input:focus {
    outline: none;
    border-color: #f7931a;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(247, 147, 26, 0.5);
}

.form-group input.error {
    border-color: #ff6347;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: #cccccc;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: #f7931a;
    color: #000000;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    padding: 12px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.05s;
    box-shadow: 0 4px 0 #a05600, 0 8px 8px rgba(0,0,0,0.6);
    position: relative;
}

.btn-primary:hover {
    background-color: #ffa929;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a05600, 0 4px 4px rgba(0,0,0,0.6);
}

.btn-primary:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
    border-color: #1a1a1a;
}

/* Messages */
.message {
    padding: 12px;
    margin-bottom: 16px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    border: 4px solid;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.success-message {
    background-color: #32cd32;
    border-color: #228b22;
    color: #fff;
}

.error-message {
    background-color: #ff6347;
    border-color: #8b0000;
    color: #fff;
}

/* Back link */
.back-link-container {
    margin-top: 20px;
    text-align: center;
}

.back-link {
    color: #f7931a;
    text-decoration: none;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    transition: color 0.1s;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.back-link:hover {
    color: #ffa929;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5), 0 0 8px rgba(247, 147, 26, 0.5);
}

/* Dashboard - Stat Badges */
.stat-badge {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.stat-label {
    color: #888888;
    font-size: 8px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;
}

.stat-value {
    color: #f7931a;
    font-size: 16px;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 0px #c46700;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
}

.share-list-container {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    overflow: hidden;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

/* Share Table */
.share-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.share-table thead tr {
    background-color: #3d2612;
    border-bottom: 4px solid #1a0f05;
    position: sticky;
    top: 0;
    z-index: 10;
}

.share-table thead th {
    color: #ffffff;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    letter-spacing: 1px;
}

.share-table tbody tr {
    background-color: #1a0f05;
    border-bottom: 2px solid #0d0702;
    transition: background-color 0.1s;
}

.share-table tbody tr:hover {
    background-color: #2a1a0a;
}

.share-table tbody td {
    padding: 12px 16px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #e0e0e0;
}

/* Billable Badge */
.billable-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    border: 2px solid;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.billable-badge.yes {
    background-color: #32cd32;
    color: #ffffff;
    border-color: #228b22;
}

.billable-badge.no {
    background-color: #555;
    color: #ffffff;
    border-color: #333;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 24px;
    color: #f7931a;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
}

/* Mobile Dashboard Layout */
.mobile-dashboard {
    min-height: 100vh;
    padding: 20px 20px 80px 20px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* Network Difficulty Dot */
.network-difficulty-dot {
    position: fixed;
    top: 110px;
    right: 16px;
    width: 16px;
    height: 16px;
    background-color: #32cd32;
    border: 2px solid #228b22;
    box-shadow: 0 0 12px rgba(50, 205, 50, 0.8);
    z-index: 100;
    display: none; /* Hidden by default, only show when orange/red */
    image-rendering: pixelated;
}

.network-difficulty-dot.warning {
    display: block;
    background-color: #f7931a;
    border-color: #c46700;
    box-shadow: 0 0 12px rgba(247, 147, 26, 0.8);
    animation: pixelBlink 1s steps(2) infinite;
}

.network-difficulty-dot.danger {
    display: block;
    background-color: #ff6347;
    border-color: #8b0000;
    box-shadow: 0 0 12px rgba(255, 99, 71, 0.8);
    animation: pixelBlink 0.5s steps(2) infinite;
}

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

.network-difficulty-dot #network-difficulty-value {
    display: none;
}

/* Shares Remaining Display */
.shares-remaining-display {
    text-align: center;
    margin-bottom: 8px;
}

/* Target Level Display */
.target-level-display {
    text-align: center;
}

.target-level-value {
    font-size: 7px;
    font-family: 'Press Start 2P', monospace;
    color: #888888;
    line-height: 1.2;
}

.shares-label {
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 6px;
}

.shares-value {
    font-size: 32px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    line-height: 1.2;
    text-shadow: 3px 3px 0px #c46700, 4px 4px 0px rgba(0,0,0,0.8);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 4px 4px 0px #c46700, 5px 5px 0px rgba(0,0,0,0.8);
    }
    50% {
        text-shadow: 4px 4px 0px #c46700, 5px 5px 0px rgba(0,0,0,0.8), 0 0 20px rgba(247, 147, 26, 0.8);
    }
}

/* Share Cards Container */
.share-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Share Card */
.share-card {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 20px;
    transition: transform 0.05s, box-shadow 0.05s, margin-top 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.share-card:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0d0702, 0 4px 4px rgba(0,0,0,0.8);
}

.share-card.block {
    background: #f7931a;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    box-shadow: 0 4px 0 #a05600, 0 8px 16px rgba(247, 147, 26, 0.6);
    animation: blockGlow 1s ease-in-out infinite alternate;
}

@keyframes blockGlow {
    from {
        box-shadow: 0 4px 0 #a05600, 0 8px 16px rgba(247, 147, 26, 0.6);
    }
    to {
        box-shadow: 0 4px 0 #a05600, 0 8px 24px rgba(247, 147, 26, 0.9);
    }
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.highscore-card .share-card-header {
    align-items: flex-start;
}

.share-timestamp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.share-timestamp {
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    color: #cccccc;
}

.share-username {
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    text-shadow: none;
}

.share-user-tag {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #222222;
    text-shadow: none;
}

.share-header-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.share-level-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: 'Press Start 2P', monospace;
    color: #000;
    border: 3px solid;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    transition: transform 0.05s;
}

/* Shape variations */
.share-level-badge.shape-square {
    /* No border radius for pixel art */
}

.share-level-badge.shape-circle {
    border-radius: 2px; /* Minimal rounding for pixel art */
}

.share-level-badge.shape-diamond {
    transform: rotate(45deg);
}

.share-level-badge.shape-diamond > * {
    transform: rotate(-45deg);
}

.share-level-badge.shape-hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.share-card.block .share-level-badge {
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5), 0 0 16px rgba(247, 147, 26, 0.8);
    animation: badgePulse 1s ease-in-out infinite;
}

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

.share-card-footer {
    display: flex;
    margin-top: 12px;
}

.share-hash {
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    color: #999;
    word-break: break-all;
    line-height: 1.6;
    text-shadow: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a0f05;
    border-top: 4px solid #0d0702;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    box-shadow: 0 -4px 0 #0d0702, 0 -8px 8px rgba(0,0,0,0.8);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #888888;
    text-decoration: none;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    transition: transform 0.05s;
    flex: 1;
    padding: 8px;
}

.nav-item:active {
    transform: translateY(2px);
}

.nav-item.active {
    color: #f7931a;
    text-shadow: 2px 2px 0px #c46700;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
}

/* Empty State - Mobile optimized */
.mobile-dashboard .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #cccccc;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
}

/* Purchase Form */
.purchase-form {
    margin-top: 0px;
    margin-bottom: 40px;
    display: flex;
    gap: 8px;
    align-items: stretch;
    max-width: 100%;
}

.purchase-input {
    flex: 1;
    background: #1a0f05;
    color: #e0e0e0;
    border: 3px solid #0d0702;
    padding: 10px 8px;
    font-size: 16px;
    font-family: 'Press Start 2P', monospace;
    box-shadow: inset 0 3px 0 rgba(0,0,0,0.5);
    min-width: 0;
}

.purchase-input:focus {
    outline: none;
    border-color: #f7931a;
}

.purchase-input::placeholder {
    color: #666;
    font-size: 10px;
}

.btn-purchase-submit {
    background: #f7931a;
    color: #000000;
    border: 3px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    padding: 10px 12px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.05s;
    box-shadow: 0 4px 0 #a05600, 0 8px 8px rgba(0,0,0,0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-purchase-submit:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a05600, 0 4px 8px rgba(0,0,0,0.6);
}

.btn-purchase-submit:hover {
    background: #ffa929;
}

.btn-purchase-submit:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Old Purchase Action Button (deprecated) */
.purchase-action {
    margin-top: 60px;
    margin-bottom: 32px;
}

.btn-purchase {
    width: 100%;
    background: #f7931a;
    color: #000000;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    padding: 18px 24px;
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.05s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 0 #a05600, 0 10px 12px rgba(0,0,0,0.6);
    position: relative;
}

.btn-purchase:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #a05600, 0 4px 8px rgba(0,0,0,0.6);
}

.btn-purchase:hover {
    background: #ffa929;
}

/* Purchase Cards Container */
.purchase-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Purchase Card */
.purchase-card {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 20px;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.purchase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.purchase-date {
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    color: #cccccc;
}

.purchase-amount {
    font-size: 20px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    text-shadow: 2px 2px 0px #c46700;
}

.purchase-amount-label {
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Highscore Page Styles */

/* Toggle/tab bar */
.highscore-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    background: #0d0702;
    /* padding: 4px; */
    /* border: 4px solid #0d0702; */
    /* box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8); */
}

.toggle-btn {
    flex: 1;
    padding: 10px 10px;
    background: #2a1a0a;
    border: 3px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    color: #888888;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: all 0.05s;
    box-shadow: 2px 2px 0 #0d0702;
}

.toggle-btn:hover {
    color: #cccccc;
}

.toggle-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.toggle-btn.active {
    background: #f7931a;
    color: #000000;
    border-color: #c46700;
    text-shadow: none;
}


/* SSE Animation - Pixelated drop-in */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        max-height: 0;
        margin-top: -100px;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: -16px;
        border-width: 0;
    }
    20% {
        opacity: 0.2;
        max-height: 100px;
        margin-top: -50px;
    }
    40% {
        opacity: 0.4;
        max-height: 200px;
        margin-top: -25px;
    }
    60% {
        opacity: 0.6;
        max-height: 300px;
        margin-top: -10px;
    }
    80% {
        opacity: 0.8;
        max-height: 400px;
        margin-top: -5px;
    }
    100% {
        opacity: 1;
        max-height: 500px;
        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-bottom: 0;
        border-width: 4px;
    }
}

.share-card-new {
    animation: slideInFromTop 0.6s steps(5) forwards;
    overflow: hidden;
}

/* Landing Page */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000000;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(20,20,20,0.8) 8px, rgba(20,20,20,0.8) 16px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(20,20,20,0.8) 8px, rgba(20,20,20,0.8) 16px);
}

.landing-container {
    max-width: 500px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.landing-header {
    margin-bottom: 48px;
}

.landing-title {
    font-size: 24px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0px #c46700, 5px 5px 0px rgba(0,0,0,0.8);
    animation: titleBounce 2s ease-in-out infinite;
}

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

/* Pixel Art Logo Styling */
.pixel-logo {
    max-width: 100%;
    width: 400px;
    height: auto;
    margin-bottom: 24px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

/* Mining/Digging Animation for Active Shares */
@keyframes miningShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) rotate(-0.5deg); }
    20% { transform: translateX(2px) rotate(0.5deg); }
    30% { transform: translateX(-2px) rotate(-0.5deg); }
    40% { transform: translateX(2px) rotate(0.5deg); }
    50% { transform: translateX(0); }
}

.share-card.mining {
    animation: miningShake 0.5s ease-in-out;
}

/* Pickaxe Swing Animation */
@keyframes pickaxeSwing {
    0% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
    100% { transform: rotate(-20deg); }
}

.pickaxe-icon {
    display: inline-block;
    animation: pickaxeSwing 1s ease-in-out infinite;
    transform-origin: bottom right;
}

/* Pixel-styled scrollbar (Webkit browsers) */
::-webkit-scrollbar {
    width: 12px;
    background: #000000;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 2px solid #0d0702;
}

::-webkit-scrollbar-thumb {
    background: #2a1a0a;
    border: 2px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d2612;
}

::-webkit-scrollbar-thumb:active {
    background: #1a0f05;
}

/* Block found celebration effect */
@keyframes blockCelebration {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 0 #a05600, 0 8px 16px rgba(247, 147, 26, 0.6);
    }
    25% {
        transform: scale(1.05) rotate(-2deg);
        box-shadow: 0 4px 0 #a05600, 0 12px 24px rgba(247, 147, 26, 0.9);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 4px 0 #a05600, 0 16px 32px rgba(247, 147, 26, 1);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        box-shadow: 0 4px 0 #a05600, 0 12px 24px rgba(247, 147, 26, 0.9);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 0 #a05600, 0 8px 16px rgba(247, 147, 26, 0.6);
    }
}

.share-card.block {
    animation: blockGlow 1s ease-in-out infinite alternate, blockCelebration 0.6s ease-out;
}

.landing-subtitle {
    font-size: 10px;
    color: #888888;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
}

.qr-container {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 32px;
    margin-bottom: 24px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #cccccc;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #1a0f05;
    border-top-color: #f7931a;
    animation: pixelSpin 0.8s steps(8) infinite;
}

@keyframes pixelSpin {
    to { transform: rotate(360deg); }
}

.qr-code-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wallet-open-btn {
    display: block;
    background: #f7931a;
    color: #000000;
    padding: 16px 32px;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.05s, background-color 0.1s;
    box-shadow: 0 4px 0 #a05600, 0 8px 8px rgba(0,0,0,0.8);
    text-shadow: none;
}

.wallet-open-btn:hover {
    background: #ffa929;
}

.wallet-open-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a05600, 0 4px 4px rgba(0,0,0,0.8);
}

.mobile-hint {
    margin-top: 16px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #888888;
    line-height: 1.8;
    text-align: center;
}

.auth-instructions {
    margin-bottom: 32px;
}

.auth-instructions p {
    color: #ffffff;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 12px;
    line-height: 1.8;
}

.auth-help {
    color: #cccccc !important;
    font-size: 8px !important;
    line-height: 1.8;
}

.auth-status {
    background-color: #32cd32;
    border: 4px solid #228b22;
    border-right-color: #006400;
    border-bottom-color: #006400;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    box-shadow: 0 4px 0 #006400, 0 8px 8px rgba(0,0,0,0.8);
}

.status-icon {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.auth-error {
    background-color: #ff6347;
    border: 4px solid #8b0000;
    border-right-color: #5a0000;
    border-bottom-color: #5a0000;
    padding: 20px;
    box-shadow: 0 4px 0 #5a0000, 0 8px 8px rgba(0,0,0,0.8);
}

.error-message {
    color: #ffffff;
    margin-bottom: 16px;
}

.btn-retry {
    background-color: #ffffff;
    color: #000;
    border: 4px solid #ccc;
    border-right-color: #888;
    border-bottom-color: #888;
    padding: 10px 20px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    box-shadow: 0 4px 0 #888, 0 8px 8px rgba(0,0,0,0.8);
    transition: transform 0.05s;
}

.btn-retry:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #888, 0 4px 4px rgba(0,0,0,0.8);
}

/* Landing Content Page */
.landing-content-page {
    background: #000000;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(20,20,20,0.8) 4px, rgba(20,20,20,0.8) 8px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(20,20,20,0.8) 4px, rgba(20,20,20,0.8) 8px);
    min-height: 100vh;
    padding: 40px 20px 100px 20px;
}

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

.landing-content-header {
    text-align: center;
    margin-bottom: 60px;
}

.pixel-logo-content {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.landing-content-title {
    font-size: 28px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px #c46700, 4px 4px 0px rgba(0,0,0,0.8);
}

.landing-tagline {
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 16px;
}

.landing-content-body {
    margin-bottom: 60px;
}

.content-section {
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.section-title {
    font-size: 14px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #c46700;
}

.section-text {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #e0e0e0;
    line-height: 2;
    margin-bottom: 16px;
}

.section-text:last-child {
    margin-bottom: 0;
}

.section-text-bold {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #ffffff;
    line-height: 2;
    margin-bottom: 12px;
    margin-top: 12px;
}

.section-list {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: #e0e0e0;
    line-height: 2;
    margin-left: 24px;
    margin-bottom: 16px;
}

.section-list li {
    margin-bottom: 12px;
}

.landing-content-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    box-shadow: 0 4px 0 #0d0702, 0 8px 8px rgba(0,0,0,0.8);
}

.footer-cta {
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.8;
}

.cta-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f7931a;
    color: #000000;
    padding: 16px 32px;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    font-size: 12px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.05s, background-color 0.1s;
    box-shadow: 0 4px 0 #a05600, 0 8px 8px rgba(0,0,0,0.8);
    text-shadow: none;
}

.cta-login-btn:hover {
    background: #ffa929;
}

.cta-login-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a05600, 0 4px 4px rgba(0,0,0,0.8);
}

.cta-login-btn svg {
    display: block;
}

/* Floating Login Button */
.floating-login-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7931a;
    color: #000000;
    padding: 14px 24px;
    border: 4px solid #c46700;
    border-right-color: #a05600;
    border-bottom-color: #a05600;
    font-size: 11px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.05s, background-color 0.1s;
    box-shadow: 0 6px 0 #a05600, 0 10px 12px rgba(0,0,0,0.8);
    z-index: 1000;
    text-shadow: none;
    animation: floatPulse 2s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 6px 0 #a05600, 0 10px 12px rgba(0,0,0,0.8);
    }
    50% {
        box-shadow: 0 6px 0 #a05600, 0 10px 20px rgba(247, 147, 26, 0.6);
    }
}

.floating-login-btn:hover {
    background: #ffa929;
}

.floating-login-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #a05600, 0 4px 8px rgba(0,0,0,0.8);
}

.floating-login-btn svg {
    display: block;
}

/* QR Code Overlay */
.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-overlay-content {
    position: relative;
    background-color: #2a1a0a;
    border: 4px solid #1a0f05;
    border-right-color: #0d0702;
    border-bottom-color: #0d0702;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 0 #0d0702, 0 16px 24px rgba(0,0,0,0.9);
    text-align: center;
}

.qr-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff6347;
    color: #ffffff;
    border: 3px solid #8b0000;
    border-right-color: #5a0000;
    border-bottom-color: #5a0000;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #5a0000;
    transition: transform 0.05s;
    line-height: 1;
}

.qr-close-btn:hover {
    background: #ff7f5a;
}

.qr-close-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #5a0000;
}

.qr-overlay-title {
    font-size: 16px;
    font-family: 'Press Start 2P', monospace;
    color: #f7931a;
    margin-bottom: 32px;
    text-shadow: 2px 2px 0px #c46700;
}

.qr-container-overlay {
    background-color: #1a0f05;
    border: 4px solid #0d0702;
    padding: 24px;
    margin-bottom: 24px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8);
}

.qr-overlay-instructions {
    color: #ffffff;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 12px;
    line-height: 1.8;
}

.qr-overlay-help {
    color: #cccccc;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-login-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 10px;
        gap: 8px;
    }

    .floating-login-btn span {
        display: none;
    }

    .landing-content-title {
        font-size: 20px;
    }

    .landing-tagline {
        font-size: 10px;
    }

    .section-title {
        font-size: 12px;
    }

    .pixel-logo-content {
        max-width: 200px;
    }

    .qr-overlay-content {
        padding: 24px;
    }

    .cta-login-btn {
        padding: 14px 28px;
        font-size: 11px;
    }
}

/* Logout button */
.logout-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 4px solid #1a0f05;
}

.btn-logout {
    display: inline-block;
    background-color: #ff6347;
    color: #ffffff;
    border: 4px solid #8b0000;
    border-right-color: #5a0000;
    border-bottom-color: #5a0000;
    padding: 12px 24px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 0 #5a0000, 0 8px 8px rgba(0,0,0,0.8);
    transition: transform 0.05s;
}

.btn-logout:hover {
    background-color: #ff7f5a;
}

.btn-logout:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #5a0000, 0 4px 4px rgba(0,0,0,0.8);
}
