/* styles.css */
/* Reset all default styles to eliminate browser inconsistencies */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: Georgia Pro, sans-serif;
    background-color: #FFC089; /* Peach/orange background */
    margin: 0;
    padding: 20px; /* From inline */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Scoped styles for web3.html */
.web3-page {
    font-family: 'Comic Sans MS', Arial, sans-serif;
    color: #333;
    padding: 20px;
}

.web3-page h1,
.web3-page h2 {
    text-align: center;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.web3-page .battle-link,
.web3-page .mint-link {
    display: block;
    margin: 15px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.web3-page .battle-link:hover,
.web3-page .mint-link:hover {
    color: #555;
    text-decoration: underline;
}

/* Wallet */
.web3-page .wallet-container {
    margin: 10px 0;
    text-align: center;
}

.web3-page #wallet-status {
    font-size: 14px;
    margin-top: 5px;
}

/* Collection Binder (7 cards per row) */
.web3-page #binder {
    margin: 20px auto;
    max-width: 1500px;
}

.web3-page #binder-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    justify-content: center;
}

.web3-page .binder-slot {
    border: 0px solid #ccc;
    height: 250px;
    text-align: center;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.3s;
}

.web3-page .binder-slot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.web3-page .binder-slot img {
    max-width: 170px;
    max-height: 226px;
    object-fit: contain;
}

.web3-page .binder-slot.missing {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web3-page .binder-slot .count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

/* Button styles (shared but with overrides for battle) */
button {
    padding: 10px 20px;
    margin: 0 5px;
    background: #fff; /* Default for battle.html */
    border: 1px solid #000;
    border-radius: 5px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #f0f0f0;
}

.web3-page #deck-preview h2 {
    color: #FFEE9B;
}

.web3-page button {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    transition: transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.web3-page button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.web3-page button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1 !important; /* Ensure opacity isn’t overridden */
}

#modal {
    /* Ensure the modal container has dimensions */
    width: 80vw; /* Match modal-content for consistency */
    height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff; /* Add a background to confirm visibility */
    border: 2px solid #ff6b6b; /* Add a border to confirm rendering */
}

#modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    display: block !important; /* Ensure the image is visible */
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

#close-modal:hover {
    color: #ff6b6b;
}

.web3-page #binder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.web3-page .binder-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 600px;
    background: white;
    text-align: center;
    padding: 20px;
}

.web3-page .binder-modal-content img {
    max-width: 100%;
    max-height: 100%;
}

/* Collection Stats and Pack Counter (web3.html) */
.web3-page #collection-stats {
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    color: #d35400;
    font-weight: bold;
}

.web3-page #pack-counter {
    margin: 10px 0;
    font-size: 16px;
    color: #d35400;
    font-weight: bold;
}

/* Pack Opening */
.web3-page .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.web3-page #pack-opening {
    position: relative;
    display: none;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.web3-page #nest-bg,
.web3-page #nest-fg {
    width: 100%;
    max-width: 600px;
}

.web3-page #nest-fg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

.web3-page #egg-container {
    position: absolute;
    top: 10%;
    left: 23%;
    width: 30%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.web3-page .egg-card {
    width: 150px;
    height: 200px;
    position: relative;
    transform-origin: center bottom;
    transition: transform 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.web3-page .egg-card img.back,
.web3-page .egg-card img.front {
    width: 150px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.web3-page .egg-card img.front {
    transform: rotateY(180deg);
}

.web3-page .egg-card.revealed img.back {
    transform: rotateY(180deg);
}

.web3-page .egg-card.revealed img.front {
    transform: rotateY(0deg);
}

.web3-page #skip-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 4;
}

.web3-page #pack-result {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.web3-page .egg-pack {
    width: 150px;
    height: 200px;
    text-align: center;
    padding: 10px;
}

/* Deck Builder (web3.html) */
.web3-page #deck-builder {
    display: flex;
    gap: 20px;
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.web3-page #card-selection {
    flex: 2;
    max-height: 160vh;
    overflow-y: auto;
    background: linear-gradient(45deg, #feca57, #ff6b6b);
    padding: 10px;
    border-radius: 8px;
}

.web3-page #deck-preview {
    flex: 1;
    background: linear-gradient(45deg, #feca57, #ff6b6b);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.web3-page .category {
    margin-bottom: 20px;
}

.web3-page .category h2 {
    background: #f0f0f0;
    padding: 5px;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.web3-page .card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.web3-page .card-item {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.web3-page .card-item img {
    max-width: 100px;
    height: auto;
}

.web3-page .card-item.selected {
    border: 2px solid #00f;
    background: #e0f7fa;
}

.web3-page .card-item .card-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.web3-page #deck-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.web3-page .deck-slot {
    border: 2px dashed #fff;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.web3-page .deck-slot img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.web3-page #deck-count {
    font-weight: bold;
    margin-top: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.web3-page #controls {
    text-align: center;
    margin-top: 20px;
}

.web3-page #deck-name {
    margin: 10px;
    padding: 5px;
    width: 200px;
}

.web3-page #trading-portal {
    display: none;
    max-width: 1500px;
    margin: 20px auto;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.web3-page #trading-portal h2 {
    color: #FFEE9B;
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.web3-page #trading-portal p {
    color: #333;
    text-align: center;
    font-size: 16px;
    margin: 5px 0;
}

.web3-page #card-list .card-item {
    background: transparent;
}

.web3-page #card-list .card-item p {
    font-size: 14px;
    margin: 5px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Existing styles below (unchanged) */
h1 {
    color: #333;
    margin: 20px 0;
    width: 100%;
    text-align: center;
    padding: 0;
}

/* Card Container and Flip Styles (for index.html) */
#card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    width: 100%;
    max-width: 1480px;
    min-width: 0;
}

.card-flip {
    position: static;
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border: none;
    background: transparent;
    outline: none;
    top: 0;
    left: 0;
}

.card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.card-flip.flipped .card-front {
    transform: rotateY(180deg);
}

.card-flip.flipped .card-back {
    transform: rotateY(0deg);
}

/* Zoom-specific fix for Chrome at 50% */
@media screen and (zoom: 0.5) {
    #card-container {
        max-width: 2560px;
    }
    .card-flip {
        width: 600px;
        height: 800px;
    }
}

/* Scale-specific fix for 125% system scale */
@media screen and (-webkit-device-pixel-ratio: 1.25) {
    #card-container {
        max-width: 1600px;
    }
    .card-flip {
        width: 375px;
        height: 500px;
    }
}

/* Battle Mat Styles (for battle.html) */
#battlefield {
    background: url('playmat.png') no-repeat center center;
    background-size: contain;
    width: 100%;
    max-width: 1800px;
    aspect-ratio: 1800 / 850;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    display: block;
}

/* Rest of your existing styles (unchanged) */
#left-hand, #right-hand {
    width: 11.67%;
    height: 87.76%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    overflow: visible;
    z-index: 10;
}

#left-hand {
    left: 0.56%;
    top: 6.12%;
}

#right-hand {
    right: 0.56%;
    top: 6.12%;
}

#player-hand, #opponent-hand {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.card {
    position: relative;
    background-size: cover;
    cursor: move;
    border: 2px solid #000;
    box-sizing: border-box;
    opacity: 1 !important;
    z-index: 0 !important;
}

.card-in-hand {
    width: 7.72% !important;
    height: 24% !important;
    margin: -2.35% 0;
    z-index: 10;
}

.card-in-hand:first-child {
    margin-top: 0;
}

.card-in-hand:last-child {
    margin-bottom: 0;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -10 !important;
    position: relative;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    z-index: 1 !important;
    overflow: visible;
}

.card-name {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: white;
    opacity: 1 !important;
    background: none;
    padding: 2px;
    box-sizing: border-box;
    z-index: 20 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-stats {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: white;
    background: #888;
    padding: 2px;
    box-sizing: border-box;
    z-index: 20 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Drop zones */
.drop-zone {
    position: absolute;
    opacity: 1;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#player-coop-1-drop { top: 5.65%; left: 12.81%; width: 7.72%; height: 24%; background-color: transparent; }
#player-coop-2-drop { top: 5.65%; left: 21.14%; width: 7.72%; height: 24%; background-color: transparent; }
#player-coop-3-drop { top: 29.18%; left: 12.81%; width: 7.72%; height: 24%; background-color: transparent; }
#player-coop-4-drop { top: 29.18%; left: 21.14%; width: 7.72%; height: 24%; background-color: transparent; }
#player-active-drop { top: 32.53%; left: 36.89%; width: 9.56%; height: 29.06%; background-color: transparent; }
#opponent-coop-1-drop { top: 5.65%; left: 80.03%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-coop-2-drop { top: 5.65%; left: 71.69%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-coop-3-drop { top: 29.18%; left: 80.03%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-coop-4-drop { top: 29.18%; left: 71.69%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-active-drop { top: 32.53%; left: 53.56%; width: 9.56%; height: 29.06%; background-color: transparent; }
#coop-chaos-drop { top: 0%; left: 46.14%; width: 7.72%; height: 24%; background-color: transparent; }
#player-draw-drop { top: 65.29%; left: 10.03%; width: 7.72%; height: 24%; background-color: transparent; }
#player-discard-drop { top: 65.29%; left: 18.36%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-draw-drop { top: 65.29%; left: 82.78%; width: 7.72%; height: 24%; background-color: transparent; }
#opponent-discard-drop { top: 65.29%; left: 74.44%; width: 7.72%; height: 24%; background-color: transparent; }

.drop-zone .card, .drop-zone .card-content, .drop-zone .card img {
    opacity: 1 !important;
}

/* Ability Display */
.ability-display {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    text-align: center;
    color: white !important;
    background: transparent !important;
    padding: 2px;
    font-size: 10px;
    z-index: 1000 !important;
    display: block !important;
}

.ability-bottom {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    text-align: center;
    color: white !important;
    background: transparent !important;
    padding: 2px !important;
    font-size: 10px !important;
    z-index: 10 !important;
    max-height: 90px;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 30px;
    display: block !important;
    opacity: 1 !important;
    white-space: nowrap;
}

.ability-btn {
    display: block !important;
    margin: 2px auto;
    padding: 2px 5px;
    font-size: 10px;
    background-color: #4CAF50 !important;
    border: 1px solid #fff;
    border-radius: 3px;
    color: white !important;
    cursor: pointer;
    width: 90%;
    z-index: 1001 !important;
    min-height: 16px;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ability-btn:disabled {
    background-color: #888 !important;
    cursor: not-allowed;
}

.ability-btn.ready {
    background: #4CAF50 !important;
}

.zero-cost, .passive {
    font-size: 9px;
    color: #ccc;
}

/* Battle Info and Controls */
#battle-info {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

.battle-controls {
    margin-top: 20px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.battle-controls button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Ability Log */
#ability-log {
    margin-top: 0;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
    width: 200px;
    position: absolute;
    top: 50px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
}

/* Henergy Eggs */
#henergy-eggs {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 670px;
    height: 100px;
    display: flex;
    flex-direction: row;
    z-index: 20;
}

.henergy-egg {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('henergy_egg.png') no-repeat center center;
    background-size: contain;
    cursor: move;
    border: 1px solid #000;
    z-index: 10;
}

/* Deck controls for battle.html */
.deck-controls {
    position: absolute;
    top: 50px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deck-controls button {
    padding: 10px 20px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
}

.deck-controls button:hover {
    background: #f0f0f0;
}

/* Clickable piles */
.clickable-pile {
    cursor: pointer;
}

.clickable-pile:hover {
    opacity: 0.8;
}

/* Deck builder styles for deck.html */
#deck-builder {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 1500px;
    margin: 20px auto;
}

#available-cards, #selected-deck {
    width: 45%;
    background: #fff;
    padding: 10px;
    border: 1px solid #000;
    min-height: 800px;
    overflow-y: auto;
}

#available-cards .card, #selected-deck .card {
    width: 100px;
    height: 140px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
}

#available-cards .card img, #selected-deck .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Disable conflicting .battle-mat grid */
.battle-mat {
    display: none;
}

/* Player Stats (web3.html) */
.web3-page #player-stats {
    margin: 20px auto;
    max-width: 1500px;
    text-align: center;
    background: transparent;
    padding: 20px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
}

.web3-page #player-stats h2 {
    margin-bottom: 10px;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.web3-page #player-stats p {
    margin: 5px 0;
    font-size: 16px;
    color: #d35400;
    font-weight: bold;
}

.web3-page #player-stats h3 {
    margin: 15px 0;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.web3-page #achievements {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: left;
    justify-items: start;
    align-items: start;
}

.web3-page #achievements li {
    margin: 5px 0;
    font-size: 20px;
    color: #333;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Button Container (web3.html) */
.web3-page .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

/* Free Pack Timer */
.web3-page #free-pack-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Trophy Container and Items */
.web3-page .trophy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1500px;
    margin: 20px auto;
    padding: 10px;
}

.web3-page .trophy {
    text-align: center;
    cursor: pointer;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, box-shadow 0.3s;
}

.web3-page .trophy:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.web3-page .trophy-img {
    width: 220px;
    height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.web3-page .progress-bar {
    width: 200px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    margin: 10px auto 0;
    overflow: hidden;
}

.web3-page .progress-fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Trophy Popup */
.web3-page .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.web3-page .popup-content {
    background: linear-gradient(45deg, #feca57, #ff6b6b);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'Comic Sans MS', Arial, sans-serif;
    color: #333;
}

.web3-page .popup-img {
    width: 40%;
    height: 40%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.web3-page .popup-content h2 {
    color: #FFEE9B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    margin-bottom: 10px;
}

.web3-page .popup-content p {
    color: #333;
    font-size: 16px;
    margin: 5px 0;
}

.web3-page .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: color 0.3s;
}

.web3-page .popup-close:hover {
    color: #ff6b6b;
}

#reset-binder-btn {
    display: none;
}

/* Responsive */
@media (max-width: 800px) {
    .web3-page #binder-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .web3-page #deck-builder {
        flex-direction: column;
    }
    .web3-page #card-selection,
    .web3-page #deck-preview {
        flex: none;
        width: 100%;
    }
}