/**
 * Poke Royale - Screens & Deck Builder Styles
 * Section 8: Screens & Deck Builder Styles
 * Contains: Start screen, end screen, deck builder, guide modal, legendary selection
 */

/* ===== SCREENS ===== */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

/* ===== LOGO ===== */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-poke {
    font-family: 'Bangers', cursive;
    font-size: 72px;
    color: var(--pokemon-yellow);
    text-shadow: 
        4px 4px 0 var(--pokemon-blue),
        8px 8px 0 rgba(0,0,0,0.3);
    letter-spacing: 8px;
    -webkit-text-stroke: 2px #1a1a1a;
}

.logo-royale {
    font-family: 'Bangers', cursive;
    font-size: 48px;
    color: #fff;
    text-shadow: 
        3px 3px 0 var(--pokemon-red),
        6px 6px 0 rgba(0,0,0,0.3);
    letter-spacing: 10px;
    margin-top: -10px;
}

.pokeball-icon {
    width: 100px;
    height: 100px;
    margin: 25px 0;
    animation: pokeball-float 2.5s ease-in-out infinite;
}

@keyframes pokeball-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(10deg); }
    75% { transform: translateY(-15px) rotate(-10deg); }
}

.start-btn {
    font-family: 'Bangers', cursive;
    font-size: 32px;
    letter-spacing: 4px;
    padding: 18px 60px;
    background: linear-gradient(180deg, var(--pokemon-blue) 0%, #2a3a9a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(59, 76, 202, 0.6), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.2s;
    text-transform: uppercase;
}

.start-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 76, 202, 0.7);
}

.instructions {
    margin-top: 30px;
    color: #888;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}

/* ===== END SCREEN ===== */
.end-icon {
    font-size: 100px;
    animation: bounce 0.5s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.end-title {
    font-family: 'Bangers', cursive;
    font-size: 60px;
    letter-spacing: 6px;
    margin: 15px 0 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.end-title.victory { color: var(--pokemon-yellow); }
.end-title.defeat { color: var(--pokemon-red); }

.stats-box {
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    padding: 25px 50px;
    margin: 20px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    font-size: 18px;
    color: #aaa;
    margin: 12px 0;
}

.stat-value {
    font-family: 'Bangers', cursive;
    font-size: 22px;
    color: var(--pokemon-yellow);
}

/* ===== DECK BUILDER ===== */
.deck-builder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
}

.deck-builder.active { display: flex; }

.db-header {
    padding: 15px 20px;
    background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
    border-bottom: 3px solid #3a3a5a;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.db-record {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Bangers', cursive;
    font-size: 20px;
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    padding: 6px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.1);
}

.record-wins {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.record-losses {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.record-separator {
    color: #888;
    font-size: 16px;
}

.db-title {
    font-family: 'Bangers', cursive;
    font-size: 32px;
    color: var(--pokemon-yellow);
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.db-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Current Deck Section */
.db-current-deck {
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-bottom: 2px solid #333;
}

.db-section-title {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-elixir-avg {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #c026d3;
    background: rgba(192, 38, 211, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.db-deck-slots {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

@media (max-width: 500px) {
    .db-deck-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

.db-deck-slot {
    aspect-ratio: 3/4;
    background: rgba(255,255,255,0.05);
    border: 2px dashed #444;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.db-deck-slot.filled {
    background: linear-gradient(180deg, #2a3a5a 0%, #1a2a3a 100%);
    border: 2px solid #4a6a9a;
}

.db-deck-slot:hover { transform: scale(1.05); }

.db-deck-slot .slot-sprite {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.db-deck-slot .slot-cost {
    position: absolute;
    top: 3px;
    left: 3px;
    background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-deck-slot .slot-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.db-deck-slot.filled:hover .slot-remove { opacity: 1; }

/* Legendary Tower Selection */
.db-legendary-section {
    padding: 10px 15px;
    background: linear-gradient(180deg, rgba(80, 60, 20, 0.3) 0%, rgba(60, 40, 10, 0.3) 100%);
    border-bottom: 2px solid #5a4a2a;
}

.db-legendary-slots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.db-legendary-slot {
    width: 90px;
    height: 100px;
    background: linear-gradient(180deg, #3a3a5a 0%, #2a2a4a 100%);
    border: 2px solid #5a5a7a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 5px;
}

.db-legendary-slot.king {
    width: 100px;
    height: 110px;
    background: linear-gradient(180deg, #4a3a5a 0%, #3a2a4a 100%);
    border-color: #7a5a9a;
}

.db-legendary-slot:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.legend-slot-label {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.legend-slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.legend-slot-content img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.db-legendary-slot.king .legend-slot-content img {
    width: 65px;
    height: 65px;
}

.legend-slot-name {
    font-size: 9px;
    color: #fff;
    font-weight: 700;
}

.legend-slot-type {
    font-size: 7px;
    color: #aaa;
    text-transform: uppercase;
}

/* Legendary Selection Modal */
.legend-select-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.legend-select-modal.active {
    display: flex;
}

.legend-modal-content {
    background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
    border: 3px solid #5a5a8a;
    border-radius: 15px;
    padding: 15px;
    max-height: 80%;
    overflow-y: auto;
    width: 100%;
    max-width: 380px;
}

.legend-modal-title {
    font-family: 'Bangers', cursive;
    font-size: 22px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.legend-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.legend-modal-card {
    background: linear-gradient(180deg, #3a3a5a 0%, #2a2a3a 100%);
    border: 2px solid #5a5a7a;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.legend-modal-card:hover {
    transform: scale(1.05);
    border-color: #ffd700;
}

.legend-modal-card.selected {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.legend-modal-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.legend-modal-card .legend-name {
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    margin-top: 3px;
}

.legend-modal-card .legend-type {
    font-size: 8px;
    color: #aaa;
    text-transform: uppercase;
}

.legend-modal-card .legend-type-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 2px 0;
}

.legend-type-badge.fire { background: #ff5733; color: #fff; }
.legend-type-badge.water { background: #3498db; color: #fff; }
.legend-type-badge.electric { background: #f1c40f; color: #333; }
.legend-type-badge.ice { background: #74b9ff; color: #333; }
.legend-type-badge.psychic { background: #e84393; color: #fff; }
.legend-type-badge.dragon { background: #8e44ad; color: #fff; }
.legend-type-badge.ghost { background: #6c5ce7; color: #fff; }
.legend-type-badge.flying { background: #81ecec; color: #333; }

.legend-modal-card .legend-stats {
    font-size: 7px;
    color: #888;
    margin-top: 2px;
}

.legend-modal-card .legend-matchups {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
    font-size: 6px;
    width: 100%;
    text-align: left;
}

.legend-matchups .legend-strong {
    color: #2ecc71;
}

.legend-matchups .legend-weak {
    color: #e74c3c;
}

.legend-modal-close {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #4a4a6a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Bangers', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.legend-modal-close:hover {
    background: #5a5a7a;
}

/* ===== HOW TO PLAY GUIDE ===== */
.guide-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 400;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.guide-modal.active {
    display: flex;
}

.guide-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
    border: 3px solid #5a5a8a;
    border-radius: 15px;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-header {
    padding: 15px;
    background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
    border-bottom: 3px solid #3a3a5a;
    text-align: center;
    flex-shrink: 0;
}

.guide-title {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: var(--pokemon-yellow);
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.guide-tabs {
    display: flex;
    padding: 10px;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    overflow-x: auto;
    flex-shrink: 0;
}

.guide-tab {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 20px;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.guide-tab.active {
    background: linear-gradient(135deg, var(--pokemon-blue) 0%, #2a3a9a 100%);
    color: #fff;
    border-color: #4a5aaa;
}

.guide-tab:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.guide-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
}

.guide-section h3 {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    border-bottom: 2px solid #3a3a5a;
    padding-bottom: 5px;
}

.guide-section h4 {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #4ade80;
    margin: 15px 0 8px 0;
}

.guide-section p {
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.guide-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.guide-section li {
    font-size: 12px;
    color: #aaa;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.guide-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 10px;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 10px;
}

.guide-table th {
    background: rgba(59, 76, 202, 0.3);
    color: #fff;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #4a5aaa;
}

.guide-table td {
    padding: 6px;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.guide-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}

.status-pill.burn { background: #ff5733; color: #fff; }
.status-pill.poison { background: #9b59b6; color: #fff; }
.status-pill.paralyzed { background: #f1c40f; color: #333; }
.status-pill.frozen { background: #74b9ff; color: #333; }
.status-pill.sleep { background: #636e72; color: #fff; }
.status-pill.haunted { background: #6c5ce7; color: #fff; }
.status-pill.intimidated { background: #fd79a8; color: #333; }
.status-pill.bleeding { background: #e74c3c; color: #fff; }

.type-chart-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin: 10px 0;
}

.type-mini {
    padding: 4px;
    border-radius: 6px;
    text-align: center;
    font-size: 8px;
    font-weight: 700;
}

.guide-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}

.guide-disclaimer p {
    color: #f87171;
    font-size: 11px;
}

/* ===== ROLE FILTER TABS ===== */
.db-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid #333;
    justify-content: center;
}

.db-role-tab {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.db-role-tab:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.db-role-tab.active {
    background: linear-gradient(180deg, var(--pokemon-blue) 0%, #2a3a9a 100%);
    border-color: var(--pokemon-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 76, 202, 0.5);
}

/* ===== ROSTER GRID ===== */
.db-roster {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
    min-height: 250px;
}

.db-roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-bottom: 100px;
}

/* Available Pokemon Grid */
.db-available {
    padding: 15px;
    flex: 1;
}

.db-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.db-pokemon-card {
    min-height: 120px;
    padding: 10px 5px;
    background: linear-gradient(180deg, #2a3a5a 0%, #1a2a3a 100%);
    border: 2px solid #4a6a9a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: visible;
}

.db-pokemon-card:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.db-pokemon-card.in-deck {
    opacity: 0.4;
    pointer-events: none;
}

.db-pokemon-card .pokemon-sprite {
    width: 55px;
    height: 55px;
    margin-top: 8px;
    object-fit: contain;
}

.db-pokemon-card .pokemon-cost {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-pokemon-card .pokemon-name {
    font-size: 8px;
    color: #fff;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 700;
}

.db-pokemon-card .pokemon-role {
    font-size: 7px;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.db-pokemon-card .pokemon-stats {
    font-size: 6px;
    color: #666;
    margin-top: 3px;
    text-align: center;
}

.db-pokemon-card .type-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Type badge colors */
.db-pokemon-card .type-badge.fire { background: linear-gradient(135deg, #f97316 0%, #dc2626 100%); }
.db-pokemon-card .type-badge.water { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.db-pokemon-card .type-badge.grass { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.db-pokemon-card .type-badge.electric { background: linear-gradient(135deg, #facc15 0%, #eab308 100%); }
.db-pokemon-card .type-badge.ice { background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%); }
.db-pokemon-card .type-badge.fighting { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.db-pokemon-card .type-badge.poison { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.db-pokemon-card .type-badge.ground { background: linear-gradient(135deg, #d97706 0%, #a16207 100%); }
.db-pokemon-card .type-badge.flying { background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%); }
.db-pokemon-card .type-badge.psychic { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); }
.db-pokemon-card .type-badge.bug { background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%); }
.db-pokemon-card .type-badge.rock { background: linear-gradient(135deg, #a8a29e 0%, #78716c 100%); }
.db-pokemon-card .type-badge.ghost { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.db-pokemon-card .type-badge.dragon { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.db-pokemon-card .type-badge.dark { background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%); }
.db-pokemon-card .type-badge.steel { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.db-pokemon-card .type-badge.fairy { background: linear-gradient(135deg, #f9a8d4 0%, #f472b6 100%); }
.db-pokemon-card .type-badge.normal { background: linear-gradient(135deg, #a8a29e 0%, #78716c 100%); }

/* Battle Button */
.db-battle-btn {
    position: sticky;
    bottom: 0;
    padding: 15px;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.95) 0%, rgba(10, 10, 20, 1) 100%);
    border-top: 2px solid #333;
}

.battle-btn {
    width: 100%;
    padding: 15px;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
    transition: all 0.2s;
}

.battle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.6);
}

.battle-btn:active {
    transform: translateY(0);
}

.battle-btn:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* Guide Help Button */
.guide-help-btn {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, var(--pokemon-blue) 0%, #2a3a9a 100%);
    border: 2px solid #4a5aaa;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 199;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 76, 202, 0.5);
    transition: all 0.2s;
}

.guide-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 76, 202, 0.7);
}

.guide-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.guide-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== DECK BUILDER ACTIONS ===== */
.db-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.98) 0%, rgba(10, 10, 25, 1) 100%);
    border-top: 2px solid #333;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.db-btn {
    flex: 1;
    padding: 12px 15px;
    font-family: 'Bangers', cursive;
    font-size: 16px;
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.db-btn.guide {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
}

.db-btn.random {
    background: linear-gradient(180deg, #c026d3 0%, #9333ea 100%);
    color: #fff;
}

.db-btn.battle {
    flex: 2;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    font-size: 20px;
}

.db-btn.battle:disabled {
    background: #444;
    color: #666;
    cursor: not-allowed;
}

.db-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.db-btn:active:not(:disabled) {
    transform: translateY(0);
}
