/* ===================================================================
   DIGITAL DATAPAD STYLES - Full Screen Hardware Experience
   ================================================================== */

/* ===================================================================
   GLOBAL BRIGHTNESS FIX - CRITICAL: Remove all dimming effects
   ================================================================== */

/* Force full brightness on body and html */
html, body {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    background-color: transparent !important;
}

/* Remove any pseudo-element overlays */
body::before,
body::after,
html::before,
html::after {
    display: none !important;
}

/* Force brightness on ALL major containers */
.book-frame,
.flipbook,
.page,
#passportOverlay,
#book,
.passport-device,
.book-container,
.page-container,
#datapad-ui-shell,
#datapad-viewport,
.datapad-page {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    pointer-events: auto !important;
}

/* The Hardware Device Frame */
.book-frame {
    width: 100vw;
    height: 100vh;
    border: 12px solid #111;
    border-radius: 30px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 0 20px rgba(0,255,255,0.1),
        0 20px 60px rgba(0,0,0,0.8);
    margin: 0;
    padding: 0;
}

/* The Screen within the Hardware */
.flipbook {
    height: 100%;
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #000;
    position: relative;
}

.flipbook::-webkit-scrollbar {
    display: none;
}

/* The Stage */
#passportOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent !important;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#passportOverlay.visible {
    display: flex;
}

body.logged-in #passportOverlay {
    background: transparent !important;
}

/* Book Container */
#book {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================================
   PAGE SLIDES - Horizontal Scroll Snap
   ================================================================== */

.page {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    background-color: #f5f0e8;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        );
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.1);
    border: 1px solid #c2b59b;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

/* Force remove any dimming on all page IDs */
#p1, #p2, #p3, #p4, #p5 {
    filter: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    pointer-events: auto !important;
}

/* ===================================================================
   CHALLENGES PAGE (#p2) - VERTICAL SCROLL SNAP LAYOUT
   ================================================================== */

/* Container for the scroll-snap logic */
#p2 {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory !important;
    padding: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 217, 61, 0.5) rgba(255, 255, 255, 0.1);
    /* Dark theme background for challenges page */
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%) !important;
    background-image: none !important;
    border: none !important;
}

#p2::-webkit-scrollbar {
    width: 6px;
}

#p2::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#p2::-webkit-scrollbar-thumb {
    background: rgba(255, 217, 61, 0.5);
    border-radius: 10px;
}

#p2::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 217, 61, 0.7);
}

/* Active Mission Section (Top Slide) */
.active-mission-section {
    min-height: 100% !important;
    width: 100% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
}

/* Available Challenges Section (Bottom Slide) */
.available-challenges-section {
    min-height: 100% !important;
    width: 100% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
}

.challenge-section-header {
    font-family: 'Cinzel', serif;
    color: #FFD93D;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* The Cover - Solid Burgundy with leather texture */
.page.--cover {
    background: linear-gradient(135deg, #6b1a1a 0%, #4a0e0e 50%, #6b1a1a 100%);
    background-image: 
        linear-gradient(135deg, #6b1a1a 0%, #4a0e0e 50%, #6b1a1a 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.1) 20px
        );
    color: #FFD93D;
    border: 4px solid #3d0a0a;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hard cover pages (inside cover) */
.page.--hard {
    background-color: #ebe6dc;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.05) 2px,
            rgba(139, 69, 19, 0.05) 4px
        );
}

/* Map Slide - Full Screen with Zero Padding */
.page.map-page {
    padding: 0 !important;
    overflow: hidden !important;
    background: #000;
    border: none;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Map Slide Container */
#map-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    flex: 1;
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
}

#map {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    background: #000;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Scroll indicator for vertical carousel */
.active-mission-section::after {
    content: '↓ Scroll for more missions';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: rgba(255, 217, 61, 0.6);
    letter-spacing: 1px;
    animation: bounce-hint 2s ease-in-out infinite;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(5px); opacity: 1; }
}

/* Fix Mapbox Canvas layering */
.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.map-overlay-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #0f0;
    padding: 5px 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* Page Content Styles */
.page-header {
    font-family: 'Cinzel', serif;
    color: #3a006a;
    border-bottom: 2px solid #FFD93D;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.page-num {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #aaa;
    font-size: 10px;
}

.gold-text {
    background: linear-gradient(45deg,  #aa8e38, #FFD700, #fff, #aa8e38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: shimmer 3s infinite linear;
    background-size: 200%;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.id-card {
    border: 2px solid #333;
    padding: 15px;
    background: #fff;
    transform: rotate(-1deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* UI Elements */
.passport-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.passport-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    transition: background 0.2s;
}

.passport-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.passport-btn.save {
    background: #4CAF50;
    border-color: #4CAF50;
}

/* Placed Stamps */
.placed-stamp {
    position: absolute;
    width: 70px;
    height: 70px;
    transform-origin: center center;
    cursor: grab;
    transition: box-shadow 0.2s;
}

.placed-stamp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.placed-stamp.selected {
    outline: 2px dashed #FFD93D;
    cursor: grab;
    z-index: 1000;
    background: rgba(255, 217, 61, 0.1);
    border-radius: 10px;
}

.placed-stamp:active {
    cursor: grabbing;
}

/* Inventory Tray */
.inventory-tray {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 90px;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    transition: bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10001;
}

#passportOverlay.visible .inventory-tray {
    bottom: 0;
}

.inventory-item {
    min-width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ===================================================================
   BOARDING PASS STYLES (Active Mission) - VERTICAL SNAP SECTION
   ================================================================== */

.boarding-pass {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #FFD93D;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.boarding-pass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD93D, #FF6B9D, #C06EFF, #6E8EFF);
    animation: shimmer 3s infinite linear;
}

.bp-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 217, 61, 0.3);
}

.bp-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFD93D;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bp-barcode {
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 2px,
        #fff 2px,
        #fff 4px,
        #000 4px,
        #000 8px,
        #fff 8px,
        #fff 10px,
        #000 10px,
        #000 12px,
        #fff 12px,
        #fff 16px
    );
    margin: 15px 0;
    border-radius: 4px;
    opacity: 0.8;
}

.bp-tasks {
    margin: 15px 0;
}

.bp-task {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #FFD93D;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.bp-task:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.bp-task-complete {
    opacity: 0.6;
    border-left-color: #4CAF50;
    text-decoration: line-through;
}

.bp-task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bp-task-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.bp-task-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.bp-task-action {
    margin-top: 5px;
}

.bp-map-btn {
    background: linear-gradient(135deg, #6E8EFF, #4A90E2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(110, 142, 255, 0.3);
}

.bp-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 142, 255, 0.5);
}

.bp-progress {
    font-size: 12px;
    color: #FFD93D;
    font-weight: 600;
}

.bp-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(255, 217, 61, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bp-reward {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bp-reward-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-reward-value {
    font-size: 14px;
    font-weight: 700;
    color: #FFD93D;
}

.bp-untrack-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.2s;
}

.bp-untrack-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Empty state for when no challenge is active */
.bp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.bp-empty-state h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFD93D;
}

.bp-empty-state p {
    font-size: 12px;
    line-height: 1.6;
}

/* ===================================================================
   AVAILABLE CHALLENGES LIST STYLES - VERTICAL SNAP SECTION
   ================================================================== */

#available-challenges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 217, 61, 0.5) rgba(255, 255, 255, 0.1);
}

#available-challenges-list::-webkit-scrollbar {
    width: 6px;
}

#available-challenges-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#available-challenges-list::-webkit-scrollbar-thumb {
    background: rgba(255, 217, 61, 0.5);
    border-radius: 10px;
}

#available-challenges-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 217, 61, 0.7);
}

.challenge-list-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.challenge-list-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 217, 61, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.challenge-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.challenge-list-info {
    flex: 1;
    min-width: 0;
}

.challenge-list-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #FFD93D;
}

.challenge-list-reward {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.challenge-list-reward span {
    color: #FFD93D;
    font-weight: 700;
}

.challenge-task-preview {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 217, 61, 0.3);
    line-height: 1.6;
}

.challenge-task-preview div {
    margin-bottom: 3px;
}

.track-btn {
    background: linear-gradient(135deg, #FFD93D, #FFA500);
    color: #1a0033;
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.5);
    background: linear-gradient(135deg, #FFA500, #FFD93D);
}

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

/* ===================================================================
   EARNINGS & DATA PAGE STYLES
   ================================================================== */

.earnings-content-container {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 217, 61, 0.5) rgba(255, 255, 255, 0.1);
}

.earnings-content-container::-webkit-scrollbar {
    width: 6px;
}

.earnings-content-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.earnings-content-container::-webkit-scrollbar-thumb {
    background: rgba(255, 217, 61, 0.5);
    border-radius: 10px;
}

.earnings-content-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 217, 61, 0.7);
}

.earnings-total-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 217, 61, 0.3);
}

.earnings-total-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: 'Share Tech Mono', monospace;
}

.earnings-total-value {
    font-size: 36px;
    font-weight: 700;
    color: #FFD93D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.earning-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.earning-section:last-child {
    border-bottom: none;
}

.earning-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #3a006a;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #FFD93D;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-history-btn {
    background: rgba(58, 0, 106, 0.15);
    border: 1px solid rgba(58, 0, 106, 0.3);
    color: #3a006a;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

.view-history-btn:hover {
    background: rgba(58, 0, 106, 0.25);
    border-color: rgba(58, 0, 106, 0.5);
}

.earnings-message {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
}

/* ===================================================================
   GAME CARD STYLES - FIXED DIMENSIONS (264px × 352px)
   ================================================================== */

.game-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-item,
.library-item,
.game-card {
    width: 264px;
    height: 352px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.game-item:hover,
.library-item:hover,
.game-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-item.active {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
}

/* Game Cover Image - Full Fill with object-fit: cover */
.game-cover,
.library-item img,
.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Game Info Overlay (if needed) */
.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 12px;
    color: white;
}

.game-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.game-stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Share Tech Mono', monospace;
}

.game-session-history,
.checkin-history-list {
    display: none;
    background: #f9f9f9;
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 217, 61, 0.5) rgba(255, 255, 255, 0.1);
}

.game-session-history::-webkit-scrollbar,
.checkin-history-list::-webkit-scrollbar {
    width: 4px;
}

.game-session-history::-webkit-scrollbar-track,
.checkin-history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.game-session-history::-webkit-scrollbar-thumb,
.checkin-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 217, 61, 0.5);
    border-radius: 10px;
}

.history-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.history-item {
    font-size: 11px;
    color: #555;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.history-item-date,
.history-item-location {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.history-item-timestamp {
    font-size: 10px;
    color: #888;
}

.history-item-stats {
    color: #FFD93D;
    font-weight: 600;
    padding-left: 10px;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .book-frame {
        border-radius: 0;
        border-width: 0;
    }
    
    #book {
        width: 100vw;
        height: 100vh;
    }
    
    .page {
        padding: 15px;
        font-size: 12px;
    }
    
    .page.map-page {
        padding: 0 !important;
    }
    
    #p2 {
        padding: 0 !important;
    }
    
    .boarding-pass {
        max-width: 95%;
        padding: 15px;
    }
    
    .active-mission-section,
    .available-challenges-section {
        padding: 15px;
    }
    
    .passport-actions {
        top: 10px;
        right: 10px;
    }
    
    .passport-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .bp-title {
        font-size: 16px;
    }
    
    .bp-task-title {
        font-size: 12px;
    }
    
    .challenge-list-item {
        padding: 10px;
    }
    
    .challenge-list-title {
        font-size: 13px;
    }

    .earnings-content-container {
        max-height: 380px;
    }

    .earnings-total-value {
        font-size: 28px;
    }

    /* Mobile Game Cards - Scale down but maintain 3:4 ratio */
    .game-item,
    .library-item,
    .game-card {
        width: 198px;  /*  75% of 264px */
        height: 264px; /*  75% of 352px */
    }

    .game-name {
        font-size: 12px;
    }

    .game-stats {
        font-size: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .game-item,
    .library-item,
    .game-card {
        width: 132px;  /* 50% of 264px */
        height: 176px; /* 50% of 352px */
    }
    
    .game-name {
        font-size: 11px;
    }
    
    .game-stats {
        font-size: 9px;
    }
}
