/* Base Styles & Fonts */
:root {
    /* Retro GBA Pokémon Palette */
    --bg-dark: #0f172a;
    /* Keep canvas fallback dark */
    --retro-box-bg: #f8f8d8;
    --retro-box-border: #283020;
    --retro-dialog-bg: #408080;
    --text-primary: #202020;
    --text-secondary: #606060;
    --text-shadow-color: #d0d0c8;

    /* Action Red / Teal */
    --accent-red: #d85040;
    --accent-green: #70f8a8;

    /* Modern Clean Font System */
    --font-main: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Custom Sleek Scrollbar (Matching Card Details) */

/* SwSh Settings Toggle Switch */
.swsh-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.swsh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.swsh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
    border: 2px solid #94a3b8;
}

.swsh-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.swsh-slider {
    background-color: #ea580c;
    border-color: #c2410c;
}

input:checked+.swsh-slider:before {
    transform: translateX(24px);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Universal hidden utility — must override any display property */
.hidden {
    display: none !important;
}

/* Custom Scrollbar - Retro Blocky */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #e8e8d8;
    border-left: 2px solid var(--retro-box-border);
}

::-webkit-scrollbar-thumb {
    background: #909088;
    border: 2px solid var(--retro-box-border);
}

::-webkit-scrollbar-thumb:hover {
    background: #606058;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* Container */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #35679A;
}

#gameCanvas,
#phaser-game {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Retro Box Base */
.glass {
    background: var(--retro-box-bg) !important;
    border: 3px solid var(--retro-box-border) !important;
    border-radius: 4px !important;
    /* Slightly rounded corners for retro feel */
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 0px var(--text-shadow-color) !important;
}

.glass:hover {
    border-color: var(--retro-box-border) !important;
}

/* Floating HUD - Now a horizontal layout helper container */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 58px;
    /* Compact height */
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    transition: all 0.25s ease;
}

#hud * {
    pointer-events: auto;
}

/* Headers - Visual separate Trainer Profile Card */
.hud-header {
    background: var(--retro-box-bg) !important;
    border: 2px solid var(--retro-box-border) !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1) !important;
    padding: 8px 14px !important;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    height: 100%;
}

.trainer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-glow {
    font-size: 18px;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--accent-blue-glow);
}



.trainer-info h2 {
    font-size: 12px;
    font-weight: 600;
}

.trainer-info p {
    font-size: 10px;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Progress Bars */
.hud-header .progress-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 110px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--retro-box-border);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d0d0c8;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.xp-fill {
    background: #3b82f6;
    box-shadow: none;
}

.hp-fill {
    background: var(--accent-green);
    box-shadow: none;
}

/* Stats Grid - Visual separate cards */
.stats-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: 100%;
}

.stat-card {
    background: var(--retro-box-bg) !important;
    border: 2px solid var(--retro-box-border) !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1) !important;
    padding: 6px 12px !important;
    display: flex;
    align-items: center;
    gap: 6px !important;
    height: 100%;
}

.stat-icon {
    font-size: 14px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-value {
    font-size: 12px;
    font-weight: 800;
}

.gold-card .stat-value {
    color: #fbbf24;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

.defeat-card .stat-value {
    color: #f87171;
    text-shadow: 0 0 6px rgba(248, 113, 113, 0.3);
}

/* Menu Tabs - Visual separate card */
.tab-menu {
    background: var(--retro-box-bg) !important;
    border: 2px solid var(--retro-box-border) !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1) !important;
    display: flex;
    flex-direction: row;
    padding: 5px !important;
    gap: 4px;
    height: 100%;
    align-items: center;
}

.tab-btn {
    background: #e8e8d8;
    border: 2px solid var(--retro-box-border);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 0;
    transition: none;
    text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: #f8f8d8;
}

.tab-btn.active {
    background: #f8f8d8;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

/* Action Panel - Visual separate card */
.action-panel {
    background: var(--retro-box-bg) !important;
    border: 2px solid var(--retro-box-border) !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1) !important;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    height: 100%;
}

.hud-btn {
    background: #f8f8f8;
    border: 2px solid var(--retro-box-border);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 4px 10px !important;
    font-family: var(--font-main);
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.glow-btn {
    border-color: var(--accent-red);
}

.glow-btn:hover {
    background: #e8e8d8;
}

.danger-btn {
    border-color: var(--accent-red);
}

.danger-btn:hover {
    background: #e8e8d8;
}

/* Speed Controls */
.game-speed-control {
    display: flex;
    flex-direction: row;
    margin-top: 0 !important;
    gap: 4px;
}

.speed-btn {
    background: #e8e8d8;
    border: 2px solid var(--retro-box-border);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 800;
    cursor: pointer;
    transition: none;
}

.speed-btn:hover {
    background: #f8f8d8;
    color: var(--text-primary);
}

.speed-btn.active {
    background: #f8f8d8;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Floating Credits footer - Moved to bottom left of viewport */
.credits {
    position: absolute;
    bottom: 15px;
    left: 25px;
    z-index: 5;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.22);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== SCREEN OVERLAYS ==================== */
.screen-overlay {
    position: absolute;
    top: 90px;
    /* Shifted down to accommodate the top bar */
    right: 20px;
    bottom: 20px;
    height: calc(100vh - 110px);
    width: calc(100vw - 40px);
    max-width: 650px;
    z-index: 1500;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    opacity: 1;
}

.screen-overlay:has(.large-overlay) {
    max-width: 780px;
    /* Slightly wider panel for collection grid */
}

.screen-overlay.hidden,
.modal-overlay.hidden {
    display: none !important;
}

.screen-overlay {
    /* When visible, fade in */
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    /* Enable internal scrolling and prevent layout overflow */

    /* Apply retro box style */
    background: var(--retro-box-bg) !important;
    border: 4px solid var(--retro-box-border) !important;
    border-radius: 6px !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3), inset -4px -4px 0 rgba(0, 0, 0, 0.1) !important;
}

.screen-overlay.hidden .overlay-content {
    transform: none;
    /* No sliding animations for retro */
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.overlay-header h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.close-overlay-btn,
.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.close-overlay-btn:hover,
.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ==================== TEAM VIEW STYLES ==================== */
.screen-overlay:has(.team-device) {
    max-width: 900px !important;
}

.overlay-content.team-device {
    max-width: 900px !important;
    width: 900px !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.team-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Top pane: 6 team slots */
.team-active-pane {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-active-pane h3,
.team-roster-pane h3 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom pane: roster + console */
.team-roster-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    overflow: hidden;
}

/* 6-slot grid: 6 cols x 1 row */
.team-slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    flex: 0 0 auto;
}

/* Each slot card */
.team-slot-card {
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(20, 30, 48, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-height: 70px;
    text-align: center;
}

.team-slot-card.empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
    font-size: 10px;
    cursor: default;
}

.team-slot-card.filled {
    cursor: pointer;
}

.team-slot-card.selected,
.team-slot-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.team-slot-card.selected {
    background: rgba(45, 65, 100, 0.7);
    border-color: #facc15;
}

/* Slot number */
.slot-num-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 8px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.team-slot-card.filled .slot-num-badge {
    color: #38bdf8;
    opacity: 0.85;
}

/* Sprite wrap inside slot */
.slot-canvas-wrap {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.slot-canvas-wrap canvas {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Info text inside filled slot */
.slot-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-info h4 {
    font-size: 10px;
    font-weight: 800;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.slot-info p {
    font-size: 9px;
    margin: 0;
    font-weight: 600;
    opacity: 0.7;
}

/* Remove button */
.unequip-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.15s;
}

.unequip-btn:hover {
    background: rgba(239, 68, 68, 0.6);
    color: white;
}

/* ---- Roster inventory grid ---- */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    align-content: start;
}

.roster-card {
    padding: 6px 2px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Cpath d='M5 50h90' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='16' fill='none' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='6' fill='rgba(0,0,0,0.15)'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center 30%;
    background-repeat: no-repeat;
    border: 2px solid transparent;
    transition: all 0.13s;
    position: relative;
    user-select: none;
    min-height: 65px;
}

.roster-card * {
    pointer-events: none;
}

.roster-card:hover {
    transform: scale(1.05);
}

.roster-card.selected-roster {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px #38bdf8);
    transform: scale(1.1);
}

.roster-card.equipped-roster {
    background-color: transparent !important;
    border-color: transparent !important;
    filter: drop-shadow(0 0 6px #fbbf24);
}

.roster-image {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.roster-image canvas {
    position: absolute;
    bottom: 0;
    right: 0;
}

.roster-card .name {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.roster-card .lvl {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.7;
}

.roster-card .in-team-badge {
    font-size: 7px;
    background: #f59e0b;
    color: #0f172a;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

/* ---- Action Console ---- */
.team-action-console {
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 85px;
}

/* Custom modern scrollbar for the action console */
.team-action-console::-webkit-scrollbar {
    width: 6px;
}

.team-action-console::-webkit-scrollbar-track {
    background: transparent;
}

.team-action-console::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.team-action-console::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.team-action-console .console-placeholder {
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
    padding: 16px;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.equip-btn {
    padding: 8px 14px;
    background: #e0e0c8;
    color: var(--text-primary);
    border: 3px solid var(--retro-box-border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.1s, transform 0.1s;
    width: 100%;
}

.equip-btn:hover {
    background: #fff8c8;
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.console-slots-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.console-slots-row span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 6px;
}

.console-slot-btn {
    border: 2px solid var(--retro-box-border);
    background: rgba(30, 41, 59, 0.8);
    color: white;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: all 0.15s;
}

.console-slot-btn:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.console-slot-btn.active-slot {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* ==================== COLLECTION VIEW STYLES ==================== */
.dex-stats {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
}

.dex-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.dex-stat-item .lbl {
    color: var(--text-secondary);
}

.dex-stat-item .val {
    font-weight: 800;
    color: var(--accent-blue);
}

/* ==================== POKÉDEX SWORD/SHIELD STYLE ==================== */
.screen-overlay:has(.pokedex-device) {
    max-width: 920px !important;
}

.overlay-content.pokedex-device {
    max-width: 920px !important;
    width: 920px !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.pokedex-layout {
    display: flex;
    gap: 16px;
    height: calc(100% - 60px);
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.pokedex-list-pane {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    height: 100%;
}

.pokedex-detail-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Placeholder */
.pokedex-holo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    position: relative;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    background: rgba(7, 15, 35, 0.85);
}

.scanner-laser {
    width: 80%;
    height: 2px;
    background: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 10px #38bdf8;
    position: absolute;
    top: 20%;
    animation: laserScan 2.5s infinite alternate ease-in-out;
}

@keyframes laserScan {
    0% {
        top: 20%;
        opacity: 0.2;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        top: 80%;
        opacity: 0.2;
    }
}

/* ===== POKÉMON CARD (main detail container) ===== */
.pokedex-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(7, 12, 30, 0.95);
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

/* Top bar: Name + Lv + National No */
.pkmn-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    background: rgba(56, 189, 248, 0.12);
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.pkmn-card-topbar-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pkmn-card-name {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.pkmn-card-level {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
}

.pkmn-card-natno {
    font-size: 13px;
    font-weight: 800;
    font-family: monospace;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
}

/* Body split: info table left, sprite right */
.pkmn-card-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Info table */
.pkmn-info-table {
    flex: 0 0 54%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    border-right: 2px solid rgba(56, 189, 248, 0.12);
}

.pkmn-info-row {
    display: flex;
    align-items: center;
    min-height: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pkmn-info-row:last-child {
    border-bottom: none;
}

.pkmn-info-lbl {
    flex: 0 0 90px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(56, 189, 248, 0.1);
    border-right: 2px solid rgba(56, 189, 248, 0.18);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.pkmn-info-val {
    flex: 1;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.pkmn-info-divider {
    height: 2px;
    background: rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

/* Stat rows (inside info table) */
.pkmn-stat-row .pkmn-info-lbl {
    flex: 0 0 80px;
    font-size: 11px;
}

.pkmn-stat-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.pkmn-stat-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pkmn-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pkmn-stat-num {
    min-width: 30px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-align: right;
    font-family: monospace;
}

/* Stat bar colors */
.hp-bar {
    background: linear-gradient(90deg, #be123c, #f43f5e);
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.5);
}

.atk-bar {
    background: linear-gradient(90deg, #c2410c, #fb923c);
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.5);
}

.def-bar {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
}

.spatk-bar {
    background: linear-gradient(90deg, #7e22ce, #c084fc);
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.5);
}

.spdef-bar {
    background: linear-gradient(90deg, #0e7490, #22d3ee);
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}

.spd-bar {
    background: linear-gradient(90deg, #a16207, #facc15);
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.5);
}

/* For JS compat (old IDs) */
#pokedex-holo-hp-bar {
    background: linear-gradient(90deg, #be123c, #f43f5e);
}

#pokedex-holo-atk-bar {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

#pokedex-holo-def-bar {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

#pokedex-holo-spatk-bar {
    background: linear-gradient(90deg, #7e22ce, #c084fc);
}

#pokedex-holo-spdef-bar {
    background: linear-gradient(90deg, #0e7490, #22d3ee);
}

#pokedex-holo-spd-bar {
    background: linear-gradient(90deg, #a16207, #facc15);
}

/* Sprite panel */
.pkmn-sprite-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 60% 50%, rgba(56, 189, 248, 0.1) 0%, rgba(7, 12, 30, 0) 70%);
    position: relative;
    overflow: hidden;
}

.pkmn-sprite-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Circular glow behind sprite */
.pkmn-sprite-bg::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Type badge in info table */
.pkmn-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Tabs */
.pkmn-tabs-row {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-top: 2px solid rgba(56, 189, 248, 0.2);
}

.pkmn-tab-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: rgba(10, 18, 40, 0.9);
    border: none;
    border-right: 1px solid rgba(56, 189, 248, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pkmn-tab-btn:last-child {
    border-right: none;
}

.pkmn-tab-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
}

.pkmn-tab-btn.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.25);
    border-top: 2px solid #38bdf8;
    margin-top: -2px;
}

/* Tab panels */
.pkmn-tab-panel {
    flex-shrink: 0;
    max-height: 170px;
    overflow-y: auto;
    padding: 8px 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    background: rgba(5, 10, 25, 0.6);
}

.pkmn-tab-panel.hidden {
    display: none;
}

/* ===== SEARCH BAR ===== */
.dex-search-bar {
    display: flex;
    gap: 6px;
}

.dex-search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.dex-search-input::placeholder {
    color: #475569;
}

.dex-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.dex-select-filter {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    outline: none;
    cursor: pointer;
}

.dex-select-filter option {
    background: #0f172a;
    color: #ffffff;
}

/* ===== MOVES LIST (tab panel) ===== */
.dex-moves-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dex-moves-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dex-move-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 7px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

.dex-move-card:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
}

.dex-move-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dex-move-lvl-badge {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.dex-move-name {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
}

.dex-move-type-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid;
    letter-spacing: 0.5px;
}

.dex-move-body {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: #64748b;
}

.dex-move-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dex-move-stat strong {
    color: #e2e8f0;
    font-weight: 700;
}

.overlay-content.pokedex-device {
    max-width: 880px !important;
    width: 880px !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.pokedex-layout {
    display: flex;
    gap: 18px;
    height: calc(100% - 60px);
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.pokedex-detail-pane {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2.5px solid #e11d48 !important;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.dex-hero-top-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.holo-avatar-wrap {
    width: 130px;
    height: 130px;
    border: 2px solid #e2e8f0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, rgba(241, 245, 249, 0.8) 75%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.dex-hero-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.holo-stat-bar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.dex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 4px;
    flex: 1;
    align-content: start;
}

/* Slot Card na Lista Pokédex */
.dex-slot-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dex-slot-card:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.2);
}

.dex-slot-card.selected {
    border-color: #e11d48 !important;
    background: linear-gradient(145deg, #fff1f2, #ffffff) !important;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.3), inset 0 0 8px rgba(225, 29, 72, 0.1) !important;
}

.dex-slot-card.not-captured {
    opacity: 0.75;
}

.dex-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dex-card-number {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.dex-card-status-icon {
    font-size: 11px;
}

.dex-card-sprite-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
}

.dex-card-name {
    font-size: 11px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.dex-card-type-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}


.pokedex-detail-pane {
    flex: 1;
    border: 2.5px solid #e11d48 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 1px #ffffff;
}

/* Holographic scanner effect styling - SwSh Clean */
.pokedex-holo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
}

.scanner-laser {
    width: 80%;
    height: 2px;
    background: rgba(225, 29, 72, 0.6);
    box-shadow: 0 0 8px #e11d48;
    position: absolute;
    top: 20%;
    animation: laserScan 2.5s infinite alternate ease-in-out;
}

@keyframes laserScan {
    0% {
        top: 20%;
        opacity: 0.2;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        top: 80%;
        opacity: 0.2;
    }
}

.holo-avatar-wrap {
    width: 100%;
    height: 190px;
    border: 2px solid #e2e8f0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.12) 0%, rgba(241, 245, 249, 0.8) 75%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.holo-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
    background-size: 15px 15px;
    top: 0;
    left: 0;
    pointer-events: none;
}

.holo-scan-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0284c7;
    box-shadow: 0 0 8px #0284c7;
    animation: holoScan 3.5s infinite linear;
    pointer-events: none;
}

.pokedex-holo-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.holo-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.holo-name-row h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.holo-badge {
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #7dd3fc;
    text-shadow: none;
    box-shadow: none;
}

.holo-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2px;
}

.holo-specs {
    display: flex;
    justify-content: space-around;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.holo-specs strong {
    color: #0f172a;
    font-weight: 900;
}

.holo-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.holo-stat-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.holo-stat-bar-row .stat-lbl {
    width: 60px;
    font-weight: 800;
    font-size: 12px;
    color: #1e293b;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.holo-stat-bar-row .stat-val {
    min-width: 45px;
    text-align: right;
    font-weight: 900;
    font-size: 13px;
    color: #0f172a;
    text-shadow: none;
    white-space: nowrap;
    font-family: 'Fira Code', monospace;
}

.holo-progress-bg {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.holo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Pokédex Sub-Tabs SwSh Clean --- */
.dex-tabs-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.dex-tab-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dex-tab-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.dex-tab-btn.active {
    color: #ffffff !important;
    background: #e11d48 !important;
    border-color: #be123c !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
}

.holo-stats-table-panel {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}


.poke-stats-retro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.poke-stats-retro-table th {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #38bdf8;
    text-transform: uppercase;
    padding: 6px 8px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    text-align: center;
}

.poke-stats-retro-table th.th-total {
    text-align: right;
    padding-right: 18px;
}

.poke-stats-retro-table td {
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: monospace, monospace;
    font-weight: 700;
    color: #e2e8f0;
}

.poke-stats-retro-table td.stat-name {
    text-align: left;
    font-family: inherit;
    font-weight: 700;
    color: #f1f5f9;
}

.poke-stats-retro-table td.iv-val {
    color: #38bdf8;
    font-weight: 900;
}

.poke-stats-retro-table td.total-val {
    color: #ffffff;
    font-weight: 900;
    text-align: right;
    padding-right: 8px;
}

.stat-tot-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
}

.stat-tot-cell .val-num {
    font-weight: 900;
    font-size: 13px;
    color: #ffffff;
    min-width: 24px;
    text-align: right;
}

/* ==================== POKÉDEX ENCYCLOPEDIA ENHANCEMENTS ==================== */
.dex-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.dex-search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.dex-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.dex-select-filter {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    outline: none;
    cursor: pointer;
}

.dex-select-filter option {
    background: #0f172a;
    color: #ffffff;
}

.dex-moves-list-container {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.dex-moves-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dex-move-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.dex-move-card:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.dex-move-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dex-move-lvl-badge {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dex-move-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.dex-move-type-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid;
    letter-spacing: 0.5px;
}

.dex-move-body {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.dex-move-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dex-move-stat strong {
    color: #f1f5f9;
    font-weight: 800;
}

/* ==================== POKÉDEX ENCYCLOPEDIA ENHANCEMENTS ==================== */
.dex-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.dex-search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.dex-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.dex-select-filter {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    outline: none;
    cursor: pointer;
}

.dex-select-filter option {
    background: #0f172a;
    color: #ffffff;
}

.dex-moves-list-container {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.dex-moves-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dex-move-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.dex-move-card:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.dex-move-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dex-move-lvl-badge {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dex-move-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.dex-move-type-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid;
    letter-spacing: 0.5px;
}

.dex-move-body {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.dex-move-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dex-move-stat strong {
    color: #f1f5f9;
    font-weight: 800;
}

.stat-tot-cell .diff-tag {
    font-size: 10px;
    font-weight: 800;
    width: 32px;
    text-align: left;
    display: inline-block;
}

.stat-tot-cell .diff-pos {
    color: #22c55e;
}

.stat-tot-cell .diff-neg {
    color: #ef4444;
}

.poke-stats-retro-table tr.total-row td {
    border-top: 2px solid rgba(56, 189, 248, 0.4);
    border-bottom: none;
    background: rgba(14, 165, 233, 0.1);
}

.dex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 8px;
}

.dex-card {
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.45);
    border: 2px solid var(--retro-box-border);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dex-card * {
    pointer-events: none;
}

.dex-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
    background: rgba(30, 41, 59, 0.7);
}

.dex-card.selected-card {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.15) !important;
}

.dex-card.locked {
    opacity: 0.55;
    background: repeating-linear-gradient(45deg,
            rgba(15, 23, 42, 0.35),
            rgba(15, 23, 42, 0.35) 8px,
            rgba(15, 23, 42, 0.45) 8px,
            rgba(15, 23, 42, 0.45) 16px);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.dex-card.locked:hover {
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.dex-card.locked .sprite-container {
    filter: brightness(0) opacity(0.65);
}

.owned-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    background: #f59e0b;
    color: #0f172a;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
    font-weight: 800;
    z-index: 10;
    animation: pulseOwned 2s infinite alternate;
}

@keyframes pulseOwned {
    from {
        transform: scale(1);
        box-shadow: 0 0 3px rgba(245, 158, 11, 0.5);
    }

    to {
        transform: scale(1.15);
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
    }
}

.dex-card.owned-card {
    border-color: #f59e0b !important;
}

.sprite-container.locked-sprite canvas,
.holo-avatar-wrap.locked-sprite canvas {
    filter: brightness(0) opacity(0.75) !important;
}

.dex-card .name {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
}

.dex-card .meta {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dex-card .captured {
    font-size: 9px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.rarity-comum {
    border-color: var(--glass-border);
}

.rarity-incomum {
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.rarity-raro {
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.rarity-épico {
    border-color: rgba(167, 139, 250, 0.5) !important;
}

.rarity-lendário {
    border-color: rgba(245, 158, 11, 0.7) !important;
}

/* Scanner Rarity Badges styling */
.rarity-badge-comum {
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.1);
}

.rarity-badge-incomum {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.rarity-badge-raro {
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.rarity-badge-épico {
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.1);
}

.rarity-badge-lendário {
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

/* Elements styling text colors */
.color-fogo {
    color: #fb923c !important;
}

.color-água {
    color: #60a5fa !important;
}

.color-natureza {
    color: #34d399 !important;
}

.color-terra {
    color: #b45309 !important;
}

.color-ar {
    color: #38bdf8 !important;
}

.color-luz {
    color: #fef08a !important;
}

.color-trevas {
    color: #a78bfa !important;
}

/* ==================== MONSTER DETAILS MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: overlayFadeIn 0.2s ease;
}

.modal-content {
    width: 100%;
    max-width: 580px;
    padding: 24px;
    position: relative;
    animation: slideUp 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

.detail-body {
    display: flex;
    gap: 24px;
}

.detail-visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    gap: 12px;
}

.detail-visual-col .sprite-container {
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
}

.badges-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.badge {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-shards {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-info-col h2 {
    font-size: 22px;
    font-weight: 800;
}

.detail-level {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
}

.stats-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.stats-row .lbl {
    color: var(--text-secondary);
    font-weight: 600;
}

.stats-row .val {
    font-weight: 800;
}

.lore-box {
    padding: 10px;
    border-radius: 10px;
}

.lore-box h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.lore-box p {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-primary);
}

.evo-box {
    font-size: 11px;
    display: flex;
    gap: 6px;
}

.evo-title {
    color: var(--text-secondary);
    font-weight: 600;
}

#detail-evo {
    color: var(--accent-purple);
    font-weight: 800;
}

/* ==================== INVENTORY MODAL ==================== */

/* ---- Panel wrapper (sits inside .modal-overlay) ---- */
.inv-panel {
    display: flex;
    flex-direction: column;
    width: min(560px, 96vw);
    max-height: 86vh;
    background: linear-gradient(135deg, rgba(22, 26, 42, 0.95) 0%, rgba(10, 12, 20, 0.95) 100%);
    border: 3px solid #000000;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    font-family: var(--font-main);
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
    animation: invPanelIn 0.18s cubic-bezier(0.22, 0.9, 0.36, 1);
    overflow: hidden;
}

@keyframes invPanelIn {
    from {
        transform: scale(0.92) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ---- Header ---- */
.inv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.inv-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inv-icon {
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.6));
}

.inv-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffcc00;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.inv-subtitle {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.inv-close-btn {
    background: #e8e8d8;
    border: 2px solid var(--retro-box-border);
    border-radius: 3px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
}

.inv-close-btn:hover {
    background: #fff8c8;
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

/* ---- Divider ---- */
.inv-divider {
    height: 0;
    border: none;
}

/* ---- Body (scrollable) ---- */
.inv-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
}

/* ---- State messages (loading / error) ---- */
.inv-state-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    font-size: 20px;
    color: var(--text-secondary);
}

.inv-error {
    color: #a01818;
    background: #f8c8b8;
    border: 2px solid #a01818;
    border-radius: 4px;
    padding: 12px 18px;
    justify-content: flex-start;
    font-size: 18px;
}

/* Loading spinner (CSS-only) */
.inv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(40, 48, 32, 0.2);
    border-top-color: var(--retro-box-border);
    border-radius: 50%;
    animation: invSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes invSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Empty state ---- */
.inv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 50px 20px;
    text-align: center;
}

.inv-empty-icon {
    font-size: 48px;
    line-height: 1;
    animation: invBob 2s ease-in-out infinite;
}

@keyframes invBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.inv-empty-title {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.inv-empty-sub {
    margin: 0;
    font-size: 18px;
    color: var(--text-secondary);
}

/* ---- Item Grid ---- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    align-content: start;
}

/* ---- Single Item Slot ---- */
.inventory-slot {
    position: relative;
    width: 64px;
    height: 64px;
    background: #e0e0c8;
    border: 3px solid var(--retro-box-border);
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: none;
    overflow: visible;
}

.inventory-slot:hover {
    background: #fff8c8;
    border-color: var(--accent-red);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Pixel-art canvas inside slot */
.inventory-slot canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 48px;
    max-height: 48px;
}

/* ---- Count badge ---- */
.item-count {
    position: absolute;
    bottom: 2px;
    right: 3px;
    background: var(--retro-box-border);
    color: var(--retro-box-bg);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 2px;
    pointer-events: none;
    text-shadow: none;
}

/* ---- Tooltip popup on hover ---- */
.inventory-slot .inv-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--retro-box-border);
    color: var(--retro-box-bg);
    font-family: var(--font-main);
    font-size: 14px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 50;
    text-shadow: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.inventory-slot:hover .inv-tooltip {
    display: block;
}

/* ---- Footer ---- */
.inv-footer {
    padding: 8px 18px 12px;
    border-top: 2px solid rgba(40, 48, 32, 0.2);
    background: #e8e8d8;
    text-align: center;
}

.inv-footer-label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ==================== GLOBAL FLOATING TOASTS (CENTRALIZADO NA TELA) ==================== */
#floating-toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999999;
    pointer-events: none;
    max-width: 90vw;
    width: auto;
}

.floating-toast {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 22px;
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    pointer-events: auto;
    animation: toastCenterIn 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
    transition: all 0.28s ease;
    max-width: 600px;
    line-height: 1.4;
}

.floating-toast.toast-quest {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.22);
    padding: 12px 24px;
    border-radius: 10px;
}

.quest-central-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.quest-central-pill .qcp-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 15px;
}

.quest-central-pill .qcp-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quest-central-pill .qcp-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
}

.quest-central-pill .qcp-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.quest-central-pill .qcp-desc {
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.3;
}

.floating-toast.toast-success {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(34, 197, 94, 0.35);
}

.floating-toast.toast-info {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(56, 189, 248, 0.35);
}

.floating-toast.toast-warning {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(245, 158, 11, 0.35);
}

.floating-toast.toast-danger,
.floating-toast.toast-error {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(239, 68, 68, 0.35);
}

.floating-toast.fade-out {
    opacity: 0;
    transform: scale(0.92);
}

@keyframes toastCenterIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== CATCH PROMPT HUD (Removido a pedido do usuário - agora substituído por Pill no mapa) ==================== */
#catch-prompt-hud,
.catch-prompt-card {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==================== IN-MAP CATCH PILL (Inspirado em item_mapa.jpeg) ==================== */
.map-catch-pill-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.map-catch-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 13px 3px 6px;
    background: rgba(28, 33, 46, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer !important;
    user-select: none;
    pointer-events: auto !important;
    transform: translate(-50%, -100%);
    transition: transform 0.16s cubic-bezier(0.18, 0.89, 0.32, 1.25),
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.2s ease;
    animation: mapCatchPillEnter 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards;
}

@keyframes mapCatchPillEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -85%) scale(0.6);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
}

.map-catch-pill:hover {
    transform: translate(-50%, -100%) scale(1.08) !important;
    background: rgba(38, 46, 64, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

.map-catch-pill:active {
    transform: translate(-50%, -100%) scale(0.96) !important;
}

.map-catch-pill.dismissing {
    opacity: 0 !important;
    transform: translate(-50%, -115%) scale(0.6) !important;
    pointer-events: none !important;
}

/* Indicador Diamante Superior (estilo item_mapa.jpeg) */
.map-catch-pill-diamond {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
    pointer-events: none;
    border-radius: 1px;
}

/* Indicador Dourado para Pokémon Shiny */
.map-catch-pill.map-catch-pill-shiny {
    border-color: rgba(245, 158, 11, 0.9) !important;
    background: rgba(36, 28, 14, 0.92) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.6) !important;
}

.map-catch-pill.map-catch-pill-shiny .map-catch-pill-diamond {
    background: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9) !important;
}

.map-catch-pill.map-catch-pill-shiny:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.85) !important;
    border-color: #fbbf24 !important;
}

/* Badge Circular com Ícone no canto esquerdo */
.map-catch-pill-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.map-catch-pill-pokeball {
    width: 14px;
    height: 14px;
    display: block;
}

/* Nome do Pokémon */
.map-catch-pill-name {
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    margin-right: 2px;
}

/* Recorte angular decorativo oculto para manter visual limpo e minimalista */
.catch-prompt-orange-bg {
    display: none;
}

.catch-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
}

.catch-prompt-tabs {
    display: flex;
    align-items: center;
}

.catch-prompt-tab-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.catch-prompt-badge {
    font-size: 9px;
    font-weight: 800;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 0px 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.catch-prompt-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.catch-prompt-close:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.catch-prompt-body {
    position: relative;
    z-index: 2;
}

.catch-prompt-monster-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 3px;
}

.catch-monster-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

/* ==================== CATCH PROMPT LOOT SECTION ==================== */
.catch-prompt-loot-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 3px 5px;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.catch-prompt-loot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.catch-loot-title {
    font-size: 8.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.catch-prompt-loot-content {
    min-height: 14px;
}

.catch-loot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-height: 45px;
    overflow-y: auto;
}

.catch-loot-item {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 4px;
    flex: 1 1 calc(50% - 3px);
    min-width: 80px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.catch-loot-item:hover {
    transform: translateY(-1px);
    border-color: #0f172a;
    background: #f1f5f9;
}

.catch-item-icon-wrapper {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.catch-item-canvas {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

.catch-loot-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.catch-loot-name {
    font-size: 9.5px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.catch-loot-count {
    font-size: 8.5px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.1;
}

.catch-loot-empty {
    font-size: 9.5px;
    color: #94a3b8;
    font-style: italic;
    padding: 1px 0;
}

.catch-prompt-desc {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.15;
}

/* ==================== CATCH POKEBALL SELECTOR (Inline Combo) ==================== */
.catch-pokeball-select-wrapper {
    margin-bottom: 5px;
}

.catch-pokeball-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.catch-select-label {
    font-size: 8.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.catch-pokeball-rate-badge {
    font-size: 8.5px;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 0px 4px;
    border-radius: 3px;
    line-height: 1.2;
}

.catch-pokeball-combo-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    padding: 1px 4px;
    gap: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.catch-pokeball-combo-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.catch-pokeball-combo-icon .catch-item-icon-wrapper {
    width: 16px;
    height: 16px;
    background: transparent;
    border: none;
}

.catch-pokeball-combo-icon .catch-item-canvas {
    width: 16px;
    height: 16px;
}

.catch-pokeball-dropdown {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 10.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    padding: 2px 0;
    font-family: inherit;
}

.catch-prompt-actions {
    display: flex;
    width: 100%;
}

.btn-catch-action {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-catch-confirm {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.btn-catch-confirm:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.btn-catch-confirm:active {
    transform: translateY(0);
}

.catch-prompt-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #e5e7eb;
}

.catch-timer-fill {
    height: 100%;
    background: #1a1a1a;
    width: 100%;
    animation: catchTimerDrain 12s linear forwards;
}

@keyframes catchTimerDrain {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes catchPromptPop {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== CAPTURE TOAST LAYOUT ==================== */
.capture-toast-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 280px;
    z-index: 300;
    overflow: hidden;
    padding: 12px;
    border-left: 4px solid var(--accent-green);
    animation: slideInRight 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

.capture-toast-card.hidden {
    display: none !important;
}

.toast-glow-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-info {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.toast-monster-name {
    font-size: 15px;
    font-weight: 800;
}

.toast-rarity {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.toast-desc {
    font-size: 10px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 2px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rarityGlow {
    from {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    }

    to {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    }
}

/* ==================== BATTLE HISTORY STYLES ==================== */
.history-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
}

/* History Card */
.history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    gap: 12px;
    border-left: 4px solid #6b7280;
    /* Default Escaped border */
    transition: all 0.2s ease-in-out;
}

.history-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* Border colors matching outcomes */
.history-card.outcome-escaped {
    border-left-color: #6b7280;
    /* Grey */
}

.history-card.outcome-captured {
    border-left-color: #10b981;
    /* Green */
}

.history-card.outcome-duplicate {
    border-left-color: #f59e0b;
    /* Gold */
}

/* Canvas sprite container */
.hist-canvas-wrap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.hist-sprite-canvas {
    image-rendering: pixelated;
}

/* Middle info */
.hist-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hist-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.hist-rewards {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Right outcome wrap */
.hist-outcome-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.hist-time {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.65;
}

/* Badges */
.history-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-escaped {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.25);
}

.badge-captured {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
}

.badge-shards {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.15);
}

/* ==================== MINIMAP STYLES ==================== */
#minimap-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.minimap-header {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#minimap-biome-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
}

#minimap-explore-val,
#minimap-defeated-val {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.85;
}

.minimap-canvas-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

#minimapCanvas {
    display: block;
    width: 120px;
    height: 120px;
}

/* ==================== DISCOVERY BANNER OVERLAYS ==================== */
.discovery-overlay-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks fall through */
    background: rgba(12, 15, 23, 0.15);
    backdrop-filter: blur(1px);
    animation: zoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.8s ease-in-out;
}

.discovery-overlay-banner.fade-out {
    opacity: 0;
}

.discovery-overlay-banner .banner-content {
    padding: 22px 38px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discovery-overlay-banner .banner-sub {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.discovery-overlay-banner .banner-title {
    font-size: 26px;
    font-weight: 900;
    margin-top: 6px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discovery-overlay-banner.unlock-banner .banner-sub {
    color: #10b981;
}

.discovery-overlay-banner.unlock-banner .banner-title {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discovery-overlay-banner .banner-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 280px;
    line-height: 1.4;
}

/* ==================== BIOME SELECTOR DROPDOWN STYLES ==================== */
.biome-dropdown {
    background: rgba(12, 15, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease-in-out;
    margin-top: 2px;
}

.biome-dropdown:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.biome-dropdown option {
    background: #0f172a;
    /* Slate 900 */
    color: var(--text-primary);
    padding: 6px;
}

.biome-dropdown option:disabled {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    background: #1e293b;
}

/* ==================== INDEPENDENT MAP SELECTION LAYOUT ==================== */
.map-selection-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--retro-dialog-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    align-items: center;
}

.map-selection-fullscreen.hidden {
    display: none !important;
}

.map-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-selection-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #f8f8d8;
    text-shadow: 2px 2px 0 var(--retro-box-border);
    margin: 0;
    letter-spacing: 2px;
}

.map-selection-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.map-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
}

.map-select-card {
    width: 290px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 4px solid var(--retro-box-border);
    background: var(--retro-box-bg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3), inset -4px -4px 0 rgba(0, 0, 0, 0.1);
}

.map-select-card.unlocked:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.map-select-card.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.03);
}

.map-preview-header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-preview-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.preview-forest {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="15" cy="45" r="8" fill="%23047857" opacity="0.3"/><circle cx="45" cy="40" r="10" fill="%23065f46" opacity="0.3"/></svg>');
}

.preview-desert {
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.4)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><polygon points="30,10 10,50 50,50" fill="%23b45309" opacity="0.3"/></svg>');
}

.preview-frozen {
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect x="20" y="20" width="20" height="20" fill="%231d4ed8" opacity="0.2"/></svg>');
}

.map-body-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 11px;
}

.detail-row .lbl {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-row .val {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.detail-row .val.accent {
    color: #60a5fa;
}

.detail-row .val.danger {
    color: #f87171;
}

.detail-row .val.reward-highlight {
    color: #fbbf24;
}

.detail-row .val.scrollable-text {
    max-width: 150px;
    word-break: keep-all;
}

.map-card-action {
    padding: 12px 18px 20px;
    display: flex;
    justify-content: center;
}

.enter-map-btn {
    width: 100%;
    padding: 10px;
    font-weight: 800;
    font-size: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.enter-map-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.lock-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.lock-icon {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.lock-req {
    color: #64748b;
    font-size: 8px;
    font-weight: 500;
}

/* Custom progress layout inside map cards */
.mini-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin-top: 4px;
}

.progress-fill {
    background: linear-gradient(to right, #10b981, #34d399);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-body {
        flex-direction: column;
        align-items: center;
    }

    .detail-visual-col {
        width: 100%;
    }
}

/* ==================== EQUIPPED PARTY QUICK PANEL ==================== */
/* ==================== EQUIPPED PARTY PANEL (Left sidebar) ==================== */
.equipped-party-panel {
    position: absolute;
    top: 90px;
    /* Just below the HUD bar */
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 9;
    pointer-events: auto;
    width: 180px;
}

.party-mini-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 4px;
    cursor: pointer;
    background: var(--retro-box-bg);
    border: 2px solid var(--retro-box-border);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.1s;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.party-mini-slot.filled:hover {
    background: rgba(255, 255, 255, 0.06);
}

.party-mini-slot.empty {
    background: rgba(0, 0, 0, 0.15);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.15);
    justify-content: center;
    opacity: 0.45;
    height: 36px;
    cursor: default;
    font-size: 11px;
    color: var(--text-secondary);
    gap: 4px;
}

.party-mini-slot .mini-sprite-canvas {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

/* Info block right of sprite */
.party-slot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.party-slot-name {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 #000;
}

.party-slot-lvl {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
}

.party-mini-slot .hp-bar-container {
    width: 100%;
    height: 7px;
    background: #111;
    border: 1px solid #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1px;
}

.party-mini-slot .hp-bar-fill {
    height: 100%;
    background: #10b981;
    width: 100%;
    transition: width 0.4s ease, background 0.4s ease;
    border-radius: 1px;
}

.party-slot-hp {
    font-size: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
}


/*Phaser */
#phaser-game {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background-color: #35679A;
}

#phaser-game canvas {
    display: block;
    margin: 0 auto;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    background-color: #35679A;
}

#hud,
.equipped-party-panel,
.modal,
.capture-toast {
    position: relative;
    z-index: 10;
}

.screen-overlay {
    z-index: 1500;
}



/* ==================== REGION SELECTION ==================== */

.region-selection-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(40, 48, 32, 0.65);
    /* Igual ao restante: sem glassmorphism */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.region-selection-panel.hidden {
    display: none !important;
}

.region-selection-content {
    width: min(1000px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    background: var(--retro-box-bg);
    color: var(--text-primary);
    border: 4px solid var(--retro-box-border);
    border-radius: 6px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3), inset -4px -4px 0 rgba(0, 0, 0, 0.1);
    font-family: var(--font-main);
    text-shadow: 1px 1px 0 var(--text-shadow-color);
}

.region-selection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--retro-box-border);
}

.region-selection-header h2 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.region-selection-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.region-selection-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8d8;
    color: var(--text-primary);
    border: 2px solid var(--retro-box-border);
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    font-family: var(--font-main);
    font-size: 26px;
    cursor: pointer;
}

.region-selection-close:hover {
    background: #fff8c8;
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.region-selection-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.region-group-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid var(--retro-box-border);
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
}

.region-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.region-group-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-group-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.region-group-badge {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000000;
}

.region-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
}

.region-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--retro-box-bg);
    color: var(--text-primary);
    border: 3px solid var(--retro-box-border);
    border-radius: 4px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25), inset -2px -2px 0 rgba(0, 0, 0, 0.08);
    font-family: var(--font-main);
    text-align: left;
    text-shadow: 1px 1px 0 var(--text-shadow-color);
    cursor: pointer;
    transition: none;
}

.region-card:hover {
    transform: translate(-2px, -2px);
    background: #fff8c8;
    border-color: var(--accent-red);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.08);
}

.region-card.selected {
    background: #fff8c8;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px var(--retro-box-bg), 0 0 0 5px var(--accent-red);
}

.region-card-image {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    image-rendering: pixelated;
    background: var(--retro-dialog-bg);
    border-bottom: 2px solid var(--retro-box-border);
}

.region-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background: var(--retro-dialog-bg);
    color: var(--retro-box-bg);
    border-bottom: 3px solid var(--retro-box-border);
    font-size: 42px;
    text-shadow: 2px 2px 0 var(--retro-box-border);
}

.region-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
}

.region-card-title {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
}

.region-card-description {
    min-height: 28px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
}

.region-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.region-card-type {
    padding: 3px 6px;
    background: #e8e8d8;
    color: var(--text-secondary);
    border: 1px solid var(--retro-box-border);
    border-radius: 3px;
    font-size: 11px;
}

.region-card-type.pokemon-center {
    background: #b8e8c0;
    color: #205838;
    border-color: #205838;
}

.region-card-enter {
    padding: 3px 6px;
    background: #e8e8d8;
    color: var(--text-primary);
    border: 1px solid var(--retro-box-border);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
}

.region-card:hover .region-card-enter {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.region-selection-loading {
    padding: 30px;
    color: var(--text-secondary);
    font-size: 22px;
    text-align: center;
}

.region-selection-error {
    margin-bottom: 18px;
    padding: 12px;
    background: #f8c8b8;
    color: #702820;
    border: 3px solid #702820;
    border-radius: 4px;
    font-size: 18px;
}

.region-selection-error.hidden,
.region-selection-loading.hidden {
    display: none !important;
}

/* ==================== HUD MENU HUB (BENTO GRID FLUTUANTE SEM FUNDO - Menu.jpeg) ==================== */

.hud-menu-container {
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
}

/* Backdrop transparente para permitir visão 100% clara do mundo e fechar ao clicar fora */
.hud-menu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 99991;
}

.hud-menu-container.retracted .hud-menu-backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Botão de Alternância Flutuante no Topo Direito (Discreto e Elegante) */
.hud-menu-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    pointer-events: auto;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-menu-toggle:hover {
    transform: scale(1.08) rotate(90deg);
    background: #ffffff;
    color: #f16c20;
    border-color: #f16c20;
    box-shadow: 0 8px 24px rgba(241, 108, 32, 0.25);
}

/* Painel Lateral Flutuante SEM Fundo Unificado (Cards Flutuam Diretamente no Cenário e Ancorados no Bottom) */
.menu-hub-overlay {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 530px;
    max-height: calc(100vh - 84px);
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    overflow: visible;
    z-index: 99995;
    pointer-events: none;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease;
}

.hud-menu-container.retracted .menu-hub-overlay {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Corpo Principal dos Cards (Esquerda) */
.menu-hub-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    height: auto;
    max-height: calc(100vh - 84px);
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    overflow: visible;
}

/* Header de Perfil do Treinador Flutuante */
.menu-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.menu-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 32px;
    padding: 5px 16px 5px 5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    pointer-events: auto;
}

.menu-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.menu-level-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: #f16c20;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 10px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.menu-btn-edit-avatar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    font-size: 8.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    z-index: 3;
    padding: 0;
}

.menu-btn-edit-avatar-badge:hover {
    background: #f16c20;
    color: #ffffff;
    border-color: #f16c20;
    transform: scale(1.15);
}

.menu-profile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.menu-profile-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.menu-profile-name {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.menu-profile-tag {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #f16c20;
    background: #fff4ed;
    border: 1px solid #ffd8be;
    padding: 2px 5px;
    border-radius: 6px;
    text-transform: uppercase;
}

.menu-btn-edit-profile {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-btn-edit-profile:hover {
    color: #f16c20;
    background: #fff4ed;
    transform: scale(1.1);
}

/* Barra de Experiência do Treinador no Menu */
.menu-profile-exp-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 1px 0;
}

.menu-profile-exp-track {
    flex: 1;
    min-width: 80px;
    max-width: 140px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.menu-profile-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.menu-profile-exp-text {
    font-size: 8.5px;
    font-weight: 800;
    color: #059669;
    letter-spacing: 0.3px;
    font-family: monospace;
}

/* Linha com Ouro e ID */
.menu-profile-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.menu-profile-gold {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b45309;
    font-weight: 800;
    font-size: 11.5px;
    background: #fefce8;
    border: 1px solid #fef08a;
    padding: 1px 6px;
    border-radius: 6px;
}

.menu-profile-gold i {
    color: #eab308;
    font-size: 11px;
}

.menu-profile-sep {
    color: #cbd5e1;
    font-size: 10px;
}

.menu-id-value {
    color: #334155;
    font-family: monospace;
    font-weight: 700;
}

.menu-btn-copy {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-btn-copy:hover {
    color: #f16c20;
    background: #fff4ed;
}

/* Widget de Bússola Decorativa Flutuante */
.menu-compass-widget {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: auto;
}

.compass-dial {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-needle {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, #e3343d 50%, #94a3b8 50%);
    border-radius: 1px;
    transform: rotate(28deg);
}

.compass-point.north {
    position: absolute;
    top: -3px;
    font-size: 7px;
    font-weight: 900;
    color: #e3343d;
}

.compass-sun-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fef08a;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Bento Grid dos Cards Flutuantes */
.menu-bento-grid {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    background: transparent;
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.8) transparent;
}

.menu-bento-grid::-webkit-scrollbar {
    width: 4px;
}

.menu-bento-grid::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.8);
    border-radius: 10px;
}

/* Cada Card Flutua com Divisão Diagonal Padrão Mochila (Corte Limpo sem Linha Escura) */
.menu-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(105deg, #ffffff 68%, #f2f2f2 68%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 14px;
    cursor: pointer;
    outline: none;
    text-align: left;
    overflow: hidden;
    min-height: 110px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    pointer-events: auto;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
    background: linear-gradient(105deg, #ffffff 68%, #ebeef3 68%);
}

.menu-bento-card:active {
    transform: translateY(-1px);
}

.menu-bento-card.span-2 {
    grid-column: span 2;
}

/* Card 1: Time Vertical (1 coluna x 2 linhas) */
.menu-bento-card.card-team-vertical {
    grid-column: 1;
    grid-row: span 2;
    min-height: 232px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
}

.team-vertical-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.companion-slot-badge {
    font-size: 10px;
    font-weight: 800;
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 8px;
}

/* Picture do Pokémon Ativo com Moldura Suave e Glow no Tema Mochila (Clean Light) */
.team-vertical-pokemon-frame {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 26px;
    background: radial-gradient(circle at center, #ffffff 35%, #f8fafc 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 16px rgba(241, 108, 32, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pokemon-glow-aura {
    position: absolute;
    inset: -6px;
    border-radius: 32px;
    background: radial-gradient(circle at center, rgba(241, 108, 32, 0.24) 0%, rgba(254, 215, 170, 0.12) 55%, transparent 75%);
    pointer-events: none;
    animation: companionGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes companionGlowPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.companion-pokemon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
    transition: transform 0.28s ease;
    z-index: 2;
    display: block;
    margin: auto;
}

.menu-bento-card:hover .companion-pokemon-img {
    transform: scale(1.08) translateY(-2px);
}

.companion-pokemon-canvas {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.16));
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    display: block;
    margin: auto;
}

.menu-bento-card:hover .companion-pokemon-canvas {
    transform: scale(1.08) translateY(-2px);
}

.team-vertical-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    z-index: 2;
}

.companion-pokemon-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.companion-slot-tag {
    font-size: 8.5px;
    font-weight: 800;
    color: #f16c20;
    letter-spacing: 0.5px;
    background: #fff4ed;
    border: 1px solid #ffd8be;
    padding: 1.5px 6px;
    border-radius: 5px;
}

/* Card 10: Treinador Vertical (1 coluna x 2 linhas) */
.menu-bento-card.card-trainer-vertical {
    grid-row: span 2;
    min-height: 232px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
}

.trainer-slot-badge {
    font-size: 10px;
    font-weight: 800;
    background: #ffedd5;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 2px 7px;
    border-radius: 8px;
}

.trainer-vertical-sprite-frame {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 26px;
    background: radial-gradient(circle at center, #ffffff 35%, #fff7ed 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 16px rgba(241, 108, 32, 0.16), inset 0 0 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trainer-glow-aura {
    position: absolute;
    inset: -6px;
    border-radius: 32px;
    background: radial-gradient(circle at center, rgba(241, 108, 32, 0.22) 0%, rgba(254, 215, 170, 0.1) 55%, transparent 75%);
    pointer-events: none;
    animation: companionGlowPulse 3s ease-in-out infinite alternate;
}

.trainer-character-canvas {
    width: 86px;
    height: 86px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
    transition: transform 0.28s ease;
    z-index: 2;
}

.menu-bento-card:hover .trainer-character-canvas {
    transform: scale(1.1) translateY(-2px);
}


.bento-card-bg-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-bento-card:hover .bento-card-bg-glow {
    opacity: 1;
}

/* Cabeçalho do Card */
.bento-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.bento-card-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}

.pill-orange {
    background: #fff4ed;
    color: #ea580c;
    border: 1px solid #ffd8be;
}

.pill-red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pill-purple {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.pill-blue {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.pill-sky {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pill-violet {
    background: #fdf4ff;
    color: #c026d3;
    border: 1px solid #f5d0fe;
}

.pill-emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pill-amber {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.pill-gold {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.pill-slate {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.bento-card-chevron {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-bento-card:hover .bento-card-chevron {
    color: #0f172a;
    transform: translate(2px, -2px);
}

.bento-card-badge {
    font-size: 10px;
    font-weight: 800;
    color: #e3343d;
    background: #fee2e2;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Centro do Card (Ícone principal) */
.bento-card-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    z-index: 2;
}

.bento-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-bento-card:hover .bento-icon-circle {
    transform: scale(1.1);
}

.bento-icon-circle.large {
    width: 52px;
    height: 52px;
}

.bento-icon-circle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bento-icon-circle.large img {
    width: 30px;
    height: 30px;
}

.bento-icon-circle i {
    font-size: 20px;
}

.icon-orange {
    background: #fff4ed;
    border: 1px solid #ffd8be;
    color: #ea580c;
}

.icon-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.icon-purple {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #7c3aed;
}

.icon-blue {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.icon-sky {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.icon-violet {
    background: #fdf4ff;
    border: 1px solid #f5d0fe;
    color: #9333ea;
}

.icon-emerald {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.icon-amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.icon-gold {
    background: #fefce8;
    border: 1px solid #fef08a;
    color: #ca8a04;
}

.icon-slate {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.icon-indigo {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
}

/* Rodapé do Card */
.bento-card-footer {
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 2;
}

.bento-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.bento-card-sub {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards Centralizados Limpos (Mochila, Pokédex, Pesquisa, Aparência, Eventos) */
.menu-bento-card.card-clean-center {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 14px 8px;
}

.menu-bento-card.card-clean-center .bento-card-center {
    padding: 0;
}

.bento-card-title.text-center {
    text-align: center;
    width: 100%;
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
    z-index: 2;
}

/* Cards Horizontais Limpos (Registro e Recompensas - 2 colunas) */
.menu-bento-card.card-horizontal-clean {
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
}

.bento-horizontal-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    z-index: 2;
}

.bento-horizontal-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Card Bloqueado (Eventos - Cadeado LOCK) */
.menu-bento-card.card-locked {
    opacity: 0.88;
    position: relative;
}

.card-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #64748b;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Linha 1 - Item 3: Botão do Mapa Circular Puro (Sem Card Retangular ao Redor) */
.menu-map-pure-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 110px;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-map-pure-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.menu-map-pure-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.menu-map-circle-orb {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-image: url('../assets/minimap/MINIMAP.jpg');
    background-size: cover;
    background-position: center;
    border: 3.5px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08), inset 0 0 14px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.menu-map-pure-btn:hover .menu-map-circle-orb {
    border-color: #f16c20;
    box-shadow: 0 12px 28px rgba(241, 108, 32, 0.32), inset 0 0 10px rgba(0, 0, 0, 0.25);
    transform: scale(1.03);
}

.map-orb-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.map-orb-pin {
    position: absolute;
    font-size: 20px;
    color: #e3343d;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
    z-index: 3;
    transform: translateY(-2px);
    transition: transform 0.22s ease;
}

.menu-map-pure-btn:hover .map-orb-pin {
    transform: translateY(-5px) scale(1.18);
}

.map-orb-compass-needle {
    position: absolute;
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, #e3343d 50%, rgba(255, 255, 255, 0.9) 50%);
    transform: rotate(32deg);
    pointer-events: none;
    opacity: 0.85;
}

.map-orb-north {
    position: absolute;
    top: 5px;
    font-size: 9px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    letter-spacing: 0.5px;
}

/* Coluna Lateral Direita de Acesso Rápido Flutuante (Inicia Ancorada no Bottom) */
.menu-quick-sidebar {
    width: auto;
    height: auto;
    align-self: flex-end;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 0 2px 0;
    flex-shrink: 0;
    pointer-events: none;
}

.sidebar-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-action-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #f16c20;
    border-color: #f16c20;
    box-shadow: 0 6px 18px rgba(241, 108, 32, 0.25);
}

.sidebar-action-btn.btn-close {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
    color: #64748b;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.sidebar-action-btn.btn-close:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
    transform: scale(1.1) rotate(90deg);
}

.sidebar-actions-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    pointer-events: none;
}

.sidebar-action-btn.btn-highlight {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}

.sidebar-badge-new {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e3343d;
    color: #ffffff;
    font-size: 7.5px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 6px;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 4px rgba(227, 52, 61, 0.3);
}

.sidebar-action-btn.btn-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}

/* Card de Loja & Recompensas Diárias Glow */
.menu-bento-card.card-shop .bento-card-bg-glow {
    background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.16) 0%, transparent 72%);
}

.menu-bento-card.card-daily .bento-card-bg-glow {
    background: radial-gradient(circle at 50% 35%, rgba(217, 119, 6, 0.16) 0%, transparent 72%);
}

.menu-bento-card.card-events .bento-card-bg-glow {
    background: radial-gradient(circle at 50% 35%, rgba(79, 70, 229, 0.14) 0%, transparent 72%);
}

/* Responsividade Mobile e Telas Estreitas */
@media (max-width: 640px) {
    .menu-hub-overlay {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .menu-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 2px;
    }

    .menu-bento-card.span-2 {
        grid-column: span 2;
    }

    .sidebar-action-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* HUD Tooltips */
.hud-tooltip {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--retro-box-border);
    color: var(--retro-box-bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, right 0.2s;
    pointer-events: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.hud-menu-btn:hover .hud-tooltip,
.hud-menu-toggle:hover .hud-tooltip {
    opacity: 1;
    visibility: visible;
    right: 56px;
}

@media (max-width: 600px) {
    .region-selection-panel {
        padding: 12px;
    }

    .region-selection-content {
        padding: 14px;
    }

    .region-selection-list {
        grid-template-columns: 1fr;
    }

    .region-selection-header h2 {
        font-size: 25px;
    }
}

.inv-panel.large-panel {
    width: min(900px, 96vw);
}





.dex-slot {
    transition: transform 0.1s, border-color 0.1s, background 0.1s;
}

.dex-slot.selected {
    background: #fff8c8 !important;
    border-color: var(--accent-red) !important;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.1);
    z-index: 2;
}


.dex-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
    font-family: monospace;
}

/* =====================================================
   LOGIN SCREEN (ROTOM PHONE + LEFT VIDEO SPLIT + CLEAN LIGHT)
   ===================================================== */

#login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: #000000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    font-family: 'Outfit', 'Inter', sans-serif;
    cursor: url('../assets/cursors/rotom-cursor-default.png?v=5') 4 7, auto;
}

#login-screen button:not(:disabled),
#login-screen .swsh-tab-btn:not(:disabled),
#login-screen .swsh-primary-btn:not(:disabled),
#login-screen .swsh-social-btn:not(:disabled),
#login-screen .swsh-feature-chip,
#login-screen a,
#login-screen [role="button"],
#login-screen .google-btn-wrapper,
#login-screen .google-btn-wrapper #google-signin-btn,
#login-screen input[type="submit"],
#login-screen input[type="button"],
#login-screen input[type="checkbox"],
#login-screen label {
    cursor: url('../assets/cursors/rotom-cursor-pointer.png?v=5') 4 7, pointer;
}

#login-screen input[type="email"],
#login-screen input[type="password"],
#login-screen input[type="text"] {
    cursor: text;
}

#login-screen button:disabled,
#login-screen input:disabled,
#login-screen .disabled {
    cursor: not-allowed;
}

/* ==================== LOGIN CURSOR TRAIL (MINI POKEBALLS NEON AZUL CLARINHO) ==================== */
.login-cursor-trail-pokeball {
    position: fixed;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 10019;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px rgba(125, 211, 252, 0.95)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 18px rgba(186, 230, 253, 0.7));
    transform: translate(-50%, -50%) scale(1);
    animation: loginPokeballTrailFade 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.login-cursor-trail-pokeball svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes loginPokeballTrailFade {
    0% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 16px)) scale(0.3) rotate(65deg);
    }
}

/* ==================== LOGIN ROTOM ROAMER SPRITESHEET ==================== */
#login-rotom-roamer-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
}

/* Wrapper: posição (left/top via JS), flutuação e escala */
.login-rotom-roamer {
    position: absolute;
    width: 64px;
    height: 64px;
    scale: 1.5;
    pointer-events: none;
    animation: rotomBobbing 2.2s ease-in-out infinite;
    will-change: transform, left, top;
}

/* Spritesheet 256x320: 4 colunas (cima, direita, baixo, esquerda) x 5 linhas (frames) de 64x64.
   Apenas as colunas laterais são usadas: direita = -64px, esquerda = -192px (definido via JS). */
.login-rotom-roamer-sprite {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 256px 320px;
    background-position-y: 0;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
    animation: rotomStepAnim 0.5s steps(5) infinite;
    z-index: 2;
}

@keyframes rotomStepAnim {
    from {
        background-position-y: 0px;
    }

    to {
        background-position-y: -320px;
    }
}

/* Rastro de mini Pokébolas brancas com neon azul verde-água no pé do Rotom (parte de trás) */
.login-rotom-roamer-trail-group {
    position: absolute;
    top: 48px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 1;
}

/* Quando se move para a direita (frente = direita), a parte de trás é a esquerda */
.login-rotom-roamer.dir-right .login-rotom-roamer-trail-group {
    left: 4px;
    right: auto;
}

/* Quando se move para a esquerda (frente = esquerda), a parte de trás é a direita */
.login-rotom-roamer.dir-left .login-rotom-roamer-trail-group {
    right: 4px;
    left: auto;
}

.rotom-foot-pokeball {
    width: 13px;
    height: 13px;
    filter:
        drop-shadow(0 0 3px #e0f2fe)
        drop-shadow(0 0 8px #5eead4)
        drop-shadow(0 0 14px #2dd4bf);
    animation: rotomFootPokeballPulse 0.6s ease-in-out infinite alternate;
}

.rotom-foot-pokeball.pb-2 {
    width: 10px;
    height: 10px;
    opacity: 0.75;
    animation-delay: 0.25s;
}

.rotom-foot-pokeball svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes rotomFootPokeballPulse {
    0% {
        transform: scale(0.9) translateY(0);
    }

    100% {
        transform: scale(1.1) translateY(-2px);
    }
}

/* Partículas de mini Pokébolas brancas emitidas no rastro da travessia */
.login-rotom-trail-pokeball {
    position: fixed;
    width: 16px;
    height: 16px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 5;
    filter:
        drop-shadow(0 0 3px #e0f2fe)
        drop-shadow(0 0 8px #5eead4)
        drop-shadow(0 0 16px #2dd4bf);
    animation: rotomTrailPokeballFade 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.login-rotom-trail-pokeball svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes rotomTrailPokeballFade {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.80;
        transform: translate(-50%, -60%) scale(0.85) rotate(15deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -75%) scale(0.35) rotate(35deg);
    }
}

@keyframes rotomBobbing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Background Layers: Video/GIF Transversal on the Left, Solid Black on the Right */
#login-screen .swsh-bg-slice {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #06080c;
    clip-path: polygon(0 0, 68% 0, 44% 100%, 0 100%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#login-screen .swsh-bg-slice::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 8, 12, 0.2) 0%, rgba(6, 8, 12, 0.42) 100%);
    pointer-events: none;
}

#login-screen .swsh-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.85;
    pointer-events: none;
}

#login-screen .swsh-bg-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 8, 12, 0.22) 0%, rgba(6, 8, 12, 0.45) 100%);
    pointer-events: none;
}

/* Black Diagonal Transversal Seam Bar */
#login-screen .swsh-laser-seam {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#login-screen .swsh-laser-seam line {
    stroke: #000000;
    stroke-width: 4px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
}

/* Right Side Background: Large Silhouette Pokéballs Texture */
.swsh-right-pokeballs-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(68% 0, 100% 0, 100% 100%, 44% 100%);
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.swsh-pokeball-silhouette {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    animation: pokeballSilhouetteFloat 9s ease-in-out infinite alternate;
}

.swsh-pokeball-silhouette.pk-1 {
    width: 440px;
    height: 440px;
    top: -60px;
    right: -40px;
    --rot: -20deg;
    color: rgba(255, 255, 255, 0.055);
}

.swsh-pokeball-silhouette.pk-2 {
    width: 330px;
    height: 330px;
    top: 36%;
    right: 170px;
    --rot: 24deg;
    color: rgba(94, 234, 212, 0.065);
    filter: drop-shadow(0 0 35px rgba(45, 212, 191, 0.08));
    animation-duration: 12s;
    animation-delay: -3s;
}

.swsh-pokeball-silhouette.pk-3 {
    width: 580px;
    height: 580px;
    bottom: -110px;
    right: -90px;
    --rot: -32deg;
    color: rgba(255, 255, 255, 0.05);
    animation-duration: 14s;
    animation-delay: -5s;
}

.swsh-pokeball-silhouette.pk-4 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 460px;
    --rot: 38deg;
    color: rgba(94, 234, 212, 0.05);
    animation-duration: 10s;
    animation-delay: -1.5s;
}

@keyframes pokeballSilhouetteFloat {
    0% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }

    100% {
        transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 3deg));
    }
}

/* Fade-out animation */
#login-screen.fade-out {
    animation: loginFadeOut 0.5s ease forwards;
}

@keyframes loginFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

/* Floating particles */
.login-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.login-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.25;
}

.login-particles span:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 15%;
    background: #f16c20;
    animation-duration: 9s;
}

.login-particles span:nth-child(2) {
    width: 11px;
    height: 11px;
    left: 35%;
    background: #f16c20;
    animation-duration: 13s;
    animation-delay: 2s;
}

.login-particles span:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 60%;
    background: #e3343d;
    animation-duration: 8s;
    animation-delay: 1s;
}

.login-particles span:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 80%;
    background: #f59e0b;
    animation-duration: 11s;
    animation-delay: 3s;
}

.login-particles span:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 25%;
    background: #ffe019;
    animation-duration: 10s;
    animation-delay: 4s;
}

.login-particles span:nth-child(6) {
    width: 12px;
    height: 12px;
    left: 90%;
    background: #cbd5e1;
    animation-duration: 14s;
    animation-delay: 0.5s;
}

.login-particles span:nth-child(7) {
    width: 6px;
    height: 6px;
    left: 50%;
    background: #f16c20;
    animation-duration: 7s;
    animation-delay: 2.5s;
}

.login-particles span:nth-child(8) {
    width: 8px;
    height: 8px;
    left: 70%;
    background: #e3343d;
    animation-duration: 12s;
    animation-delay: 1.5s;
}

@keyframes floatParticle {
    0% {
        bottom: -20px;
        transform: translateX(0);
        opacity: 0.35;
    }

    50% {
        transform: translateX(26px);
        opacity: 0.18;
    }

    100% {
        bottom: 110%;
        transform: translateX(-14px);
        opacity: 0;
    }
}

/* Main Container: 2 Columns - Left (Logo + Trailer + Socials), Right (Rotom Phone) */
.swsh-login-container {
    position: relative;
    z-index: 2;
    width: min(96%, 1560px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(14px, 2.5vh, 28px) 0;
}

/* ==================== LEFT COLUMN: LOGO + TRAILER + SOCIALS & COPYRIGHT ==================== */
.swsh-col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 860px;
    z-index: 2;
    transform: translate(calc(3cm - 12px), -1cm);
}

.swsh-rotom-logo-box {
    position: relative;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotomLogoFloat 3.4s ease-in-out infinite;
    will-change: transform;
}

@keyframes rotomLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.swsh-logo-img {
    max-width: 660px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.7)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Social Icons Row between Logo and Trailer (shifted 1cm down, 1cm above trailer video) */
.swsh-community-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1cm;
    margin-bottom: 1cm;
    z-index: 3;
}

.swsh-community-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.swsh-community-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.swsh-community-btn.tiktok {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.swsh-community-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.swsh-community-btn.facebook {
    background: #1877f2;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.swsh-community-btn.x-social {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.swsh-community-btn.discord {
    background: #5865f2;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* Trailer Box with Socials (reduced 15% to 595px and shifted another 2cm up to -6cm) */
.swsh-trailer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 595px;
    transform: translateX(12px);
    margin-top: -6cm;
}

.swsh-trailer-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 2.5px solid #e3343d;
    background: #000000;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.swsh-trailer-box:hover {
    transform: translateY(-2px);
    border-color: #f16c20;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75);
}

.swsh-trailer-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.swsh-trailer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.swsh-trailer-box:hover .swsh-trailer-overlay {
    background: rgba(0, 0, 0, 0.08);
}

.swsh-trailer-play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffe019;
    color: #000000;
    border: 3px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    padding-left: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}

.swsh-trailer-box:hover .swsh-trailer-play-btn {
    transform: scale(1.08);
}

.swsh-trailer-caption {
    margin: 0;
    color: #f16c20;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

/* Fixed Footer: Copyright in bottom-left corner of screen */
.swsh-hero-footer {
    position: fixed;
    bottom: 22px;
    left: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.swsh-copyright {
    color: #f16c20;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
}

/* ==================== RIGHT COLUMN: ROTOM PHONE (+30% SIZE) ==================== */
.swsh-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 420px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transform: translateX(calc(20px - 5cm));
}

.swsh-rotom-phone {
    position: relative;
    width: 410px;
    height: 860px;
    background: url('../assets/login/caixalogin.png?v=3') no-repeat center center / contain;
    filter:
        drop-shadow(0 0 6px rgba(224, 242, 254, 0.85))
        drop-shadow(0 0 14px rgba(94, 234, 212, 0.75))
        drop-shadow(0 0 28px rgba(45, 212, 191, 0.55))
        drop-shadow(0 0 50px rgba(56, 189, 248, 0.40))
        drop-shadow(0 20px 48px rgba(0, 0, 0, 0.85));
    flex-shrink: 0;
    animation: swshCardSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both, rotomPhoneGlowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes rotomPhoneGlowPulse {
    0% {
        filter:
            drop-shadow(0 0 5px rgba(224, 242, 254, 0.75))
            drop-shadow(0 0 12px rgba(94, 234, 212, 0.65))
            drop-shadow(0 0 24px rgba(45, 212, 191, 0.45))
            drop-shadow(0 0 45px rgba(56, 189, 248, 0.30))
            drop-shadow(0 20px 48px rgba(0, 0, 0, 0.85));
    }

    100% {
        filter:
            drop-shadow(0 0 8px rgba(224, 242, 254, 0.95))
            drop-shadow(0 0 18px rgba(94, 234, 212, 0.85))
            drop-shadow(0 0 35px rgba(45, 212, 191, 0.65))
            drop-shadow(0 0 60px rgba(56, 189, 248, 0.45))
            drop-shadow(0 20px 48px rgba(0, 0, 0, 0.85));
    }
}

@keyframes swshCardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.swsh-card-body {
    position: absolute;
    top: calc(315px - 0.5cm);
    left: 32px;
    width: 346px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: transparent;
    padding: 0 0.5cm;
    box-sizing: border-box;
    z-index: 2;
}

/* Tab Switcher inside Rotom Phone */
.swsh-tabs {
    display: flex;
    background: transparent;
    border-radius: 999px;
    padding: 0 2px;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.swsh-tab-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.90rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.swsh-tab-btn:hover {
    color: #ffffff;
}

.swsh-tab-btn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(244, 63, 94, 0.45);
}

/* Scoped Login Form Elements */
#login-screen #email-login-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#login-screen .swsh-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
}

#login-screen .swsh-input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

#login-screen .swsh-input-wrapper input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#login-screen .swsh-input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

#login-screen .swsh-input-wrapper input:focus {
    border-color: #f1511b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(241, 81, 27, 0.22);
}

#login-screen .swsh-input-wrapper:focus-within .input-icon {
    color: #f1511b;
}

/* Primary Action Button */
#login-screen .swsh-primary-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 16px rgba(244, 63, 94, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 2px;
}

#login-screen .swsh-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.52);
    filter: brightness(1.06);
}

#login-screen .swsh-primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.25);
}

/* Divider */
#login-screen .swsh-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 1px;
    margin: 2px 0;
}

#login-screen .swsh-divider::before,
#login-screen .swsh-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#login-screen .swsh-divider span {
    padding: 0 10px;
}

/* Social Buttons */
.login-social-area {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    align-items: center;
}

.google-btn-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
}

.google-btn-wrapper #google-signin-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.0001;
    z-index: 10;
    cursor: pointer;
    overflow: hidden;
}

.google-btn-wrapper #google-signin-btn>div,
.google-btn-wrapper #google-signin-btn iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: scale(1.6);
    cursor: url('../assets/cursors/rotom-cursor-pointer.png?v=5') 4 7, pointer !important;
}

.swsh-social-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.swsh-social-btn.google {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #cbd5e1;
}

.swsh-social-btn.google i {
    color: #ea4335;
    font-size: 1rem;
}

.swsh-social-btn.discord {
    background: #5865F2;
}

.swsh-social-btn.twitch {
    background: #9146FF;
}

.swsh-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    filter: brightness(1.06);
}

.swsh-social-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Rotom Phone Bottom Camera Lens on Needle */
.swsh-rotom-phone .rotom-bottom-lens {
    position: absolute;
    top: 736px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #60a5fa;
    border: 3px solid #1a1a1a;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 3;
}

/* Meta text below needle flanking the tip */
.swsh-col-right .swsh-right-meta {
    width: 410px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 4px;
    margin-top: 6px;
}

.swsh-col-right .swsh-right-meta span {
    color: #f1511b;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Clean Light Trailer Modal */
.swsh-trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(26, 26, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.swsh-trailer-modal.hidden {
    display: none;
}

.swsh-trailer-modal-card {
    width: min(92vw, 720px);
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.swsh-trailer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.98rem;
}

.swsh-trailer-modal-header i {
    color: #f16c20;
    margin-right: 6px;
}

.swsh-trailer-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.swsh-trailer-modal-close:hover {
    border-color: #e3343d;
    color: #e3343d;
    background: #fef2f2;
}

.swsh-trailer-modal-video {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #1a1a1a;
}

/* Announcement Ticker (Bottom Bar) */
.swsh-bottom-ticker {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    width: 100%;
    min-height: 44px;
    background: rgba(8, 10, 15, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 28px;
    font-family: 'Outfit', sans-serif;
}

.swsh-bottom-ticker.hidden {
    display: none;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-badge {
    background: rgba(241, 81, 27, 0.18);
    color: #ff8c5a;
    border: 1px solid rgba(241, 81, 27, 0.45);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-status {
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-status.loading {
    color: #38bdf8;
}

.login-status.success {
    color: #4ade80;
}

.login-status.error {
    color: #f87171;
}

.ticker-version {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.8px;
}

/* Responsive Breakpoints */
@media (max-height: 940px) and (min-width: 901px) {
    .swsh-login-container {
        padding: 8px 0;
        gap: 20px;
    }

    .swsh-rotom-phone {
        transform: scale(0.92);
        transform-origin: center center;
    }

    .swsh-logo-img {
        max-width: 540px;
    }

    .swsh-community-socials {
        margin-top: 0.8cm;
        margin-bottom: 1cm;
    }

    .swsh-trailer-wrapper {
        max-width: 530px;
        margin-top: -5.4cm;
    }
}

@media (max-height: 840px) and (min-width: 901px) {
    .swsh-login-container {
        padding: 6px 0;
        gap: 16px;
    }

    .swsh-rotom-phone {
        transform: scale(0.82);
        transform-origin: center center;
    }

    .swsh-logo-img {
        max-width: 460px;
    }

    .swsh-community-socials {
        margin-top: 0.6cm;
        margin-bottom: 1cm;
    }

    .swsh-trailer-wrapper {
        max-width: 460px;
        margin-top: -4.6cm;
    }
}

@media (max-height: 740px) and (min-width: 901px) {
    .swsh-login-container {
        padding: 4px 0;
        gap: 12px;
    }

    .swsh-rotom-phone {
        transform: scale(0.72);
        transform-origin: center center;
    }

    .swsh-logo-img {
        max-width: 380px;
    }

    .swsh-community-socials {
        margin-top: 0.5cm;
        margin-bottom: 0.9cm;
    }

    .swsh-trailer-wrapper {
        max-width: 390px;
        margin-top: -3.8cm;
    }
}

@media (max-width: 900px) {
    #login-screen .swsh-bg-slice {
        width: 100%;
        height: 48%;
        top: 0;
        left: 0;
        clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    }

    #login-screen .swsh-laser-seam {
        display: none;
    }

    .swsh-right-pokeballs-bg {
        clip-path: polygon(0 48%, 100% 48%, 100% 100%, 0 100%);
    }

    .swsh-login-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
        margin: 0 auto;
        padding: 20px 0 36px;
    }

    .swsh-col-left {
        max-width: 100%;
        gap: 16px;
        transform: none;
    }

    .swsh-col-right {
        width: 100%;
        transform: none;
    }

    .swsh-rotom-phone {
        transform: scale(0.92);
        transform-origin: top center;
        margin-bottom: -15px;
    }

    .swsh-col-right .swsh-right-meta {
        width: min(100%, 360px);
        margin: 4px auto 0;
    }

    .swsh-community-socials {
        margin-bottom: 1.2cm;
    }

    .swsh-trailer-wrapper {
        transform: none;
        margin-top: 0;
    }

    .swsh-hero-footer {
        position: static;
        margin: 16px auto 0;
        justify-content: center;
        width: 100%;
        transform: none;
    }
}

@media (max-width: 480px) {
    .swsh-login-container {
        width: 94%;
        gap: 16px;
        padding: 14px 0 20px;
    }

    .swsh-logo-img {
        max-width: 260px;
    }

    .swsh-rotom-phone {
        transform: scale(0.82);
        transform-origin: top center;
        margin-bottom: -45px;
    }

    .swsh-col-right .swsh-right-meta {
        width: 290px;
        font-size: 0.78rem;
    }

    .swsh-trailer-wrapper {
        max-width: 290px;
    }
}


/* =====================================================
   USER INFO BOX (CLEAN MOCHILA / INVENTORY STYLE)
   ===================================================== */

.user-info-box {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
    clip-path: none !important;
    padding: 10px 14px !important;
    width: 280px !important;
    box-sizing: border-box;

    font-family: var(--font-main);
    color: #1e293b;

    /* Slide in animation */
    animation: uibSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes uibSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Avatar ---- */
.uib-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.uib-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    object-fit: cover;
    display: block;
}

.uib-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748b;
}

/* Online indicator dot */
.uib-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: uibPulse 2s ease-in-out infinite;
}

@keyframes uibPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

/* ---- Info text ---- */
.uib-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.uib-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uib-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
}

.uib-level {
    font-size: 10.5px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.uib-email {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    letter-spacing: 0.2px;
}

/* ---- Trainer EXP Bar (Tema Mochila - Clean Light) ---- */
.uib-exp-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 2px 0 3px 0;
    cursor: default;
}

.uib-exp-track {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.uib-exp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.uib-exp-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    font-family: var(--font-mono, monospace);
    line-height: 1;
    min-width: 26px;
    text-align: right;
}

/* ---- Stats row ---- */
.uib-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 1px;
    align-items: center;
}

.uib-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.uib-stat i {
    font-size: 12px;
    color: #f59e0b;
}

/* ---- Header action buttons inside User Info Box ---- */
.uib-logout-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.uib-logout-btn:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
    transform: scale(1.08);
}

.uib-party-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.uib-party-btn:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transform: scale(1.08);
}

/* Ícone de Pokébola em CSS Puro */
.pokeball-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ef4444 46%, #1e293b 46%, #1e293b 54%, #ffffff 54%);
    border: 1.5px solid #1e293b;
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.2);
}

.pokeball-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: #ffffff;
    border: 1.5px solid #1e293b;
    border-radius: 50%;
    box-sizing: border-box;
}

.pokeball-icon-mini {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ef4444 46%, #1e293b 46%, #1e293b 54%, #ffffff 54%);
    border: 1.2px solid #ffffff;
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
}

.pokeball-icon-mini::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.5px;
    height: 3.5px;
    background: #ffffff;
    border: 1px solid #1e293b;
    border-radius: 50%;
    box-sizing: border-box;
}

/* =====================================================
   ACTIVE POKÉMON HUD (TOP-CENTER - 6 SLOTS QUADRADOS)
   Estilo Pill Clean Light (Inspirado nas notificações)
   Borda Superior: Barra de Vida (HP)
   Borda Inferior: Barra de Experiência (EXP)
   Exibição dos 6 Slots de Pokémon com Nível
   ===================================================== */

/* =====================================================
   ACTIVE POKÉMON HUD — SWSH TEAM DOCK (TEMA MOCHILA CLEAN LIGHT)
   Bandeja Superior Estilo Console (Clean Light & SwSh Orange Accent)
   Slots de Pokémon com Hierarquia Nítida: Nível, Sprite, HP & EXP
   ===================================================== */

/* =====================================================
   ACTIVE POKÉMON HUD — MINIMALIST POKÉ-ORBS (TEMA MOCHILA CLEAN LIGHT)
   Slots Circulares Estilo Pokébola com Mini-Ball de Captura e HP Pill
   Inspirado na interface clássica de Pokémon MMO / HGSS
   ===================================================== */

.active-pokemon-hud {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    user-select: none;
    pointer-events: none;
    font-family: var(--font-main, 'Outfit', 'Inter', -apple-system, sans-serif);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.active-pokemon-hud>* {
    pointer-events: auto;
}

.active-pokemon-hud.hidden,
body.duel-active .active-pokemon-hud,
body.duel-active #active-pokemon-hud {
    display: none !important;
}

/* Bandeja / Slots Track (Sem container externo - apenas os círculos flutuantes) */
.active-party-slots-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

/* Slot Circular Individual (Poké-Orb) */
.poke-hud-slot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 48%, #e2e8f0 52%, #cbd5e1 100%);
    border: 2px solid #cbd5e1;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.poke-hud-slot:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #f16c20;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14), 0 0 12px rgba(241, 108, 32, 0.25);
}

.poke-hud-slot:active {
    transform: translateY(0) scale(0.97);
}

/* Linha Divisória Central Estilo Pokébola */
.poke-hud-slot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #94a3b8;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

/* Botão Central Oculto para manter visão limpa do Pokémon e linha contínua */
.poke-orb-center-btn {
    display: none;
}

/* Área Central do Sprite do Pokémon */
.poke-slot-sprite-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.poke-slot-sprite-wrap img,
.poke-slot-sprite-wrap canvas {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.32));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.poke-hud-slot:hover .poke-slot-sprite-wrap img,
.poke-hud-slot:hover .poke-slot-sprite-wrap canvas {
    transform: scale(1.16);
}

/* Mini-Pokébola de Captura (Canto Superior Direito) — Ícone livre direto sobre o orb, SEM círculo menor ao redor */
.poke-slot-ball-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.poke-hud-slot:hover .poke-slot-ball-badge {
    transform: scale(1.12);
}

.poke-slot-ball-badge img,
.poke-slot-ball-badge canvas {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.poke-slot-ball-fallback {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

/* Dock de Barras de Status (HP e EXP) na Base do Slot */
.poke-slot-status-dock {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 2px;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.poke-hud-slot:hover .poke-slot-status-dock {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Barra de Vida (HP) na parte superior do dock */
.poke-slot-hp-pill {
    width: 100%;
    height: 4.5px;
    background: #090d16;
    border-radius: 2.5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.poke-slot-hp-bar {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 2.5px;
    overflow: hidden;
    position: relative;
}

.poke-slot-hp-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 2.5px;
    transition: width 0.3s ease, background 0.25s ease;
}

/* Barra de Experiência (EXP) logo abaixo do HP */
.poke-slot-exp-bar {
    width: 100%;
    height: 3.5px;
    background: #090d16;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.poke-slot-exp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.65);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slot Ativo em Campo (Líder Invocado - Destaque SwSh Orange) */
.poke-hud-slot.is-active-companion {
    border-color: #f16c20 !important;
    border-width: 2.5px !important;
    box-shadow: 0 0 0 2.5px rgba(241, 108, 32, 0.35), 0 5px 16px rgba(241, 108, 32, 0.3) !important;
}

/* Indicador Pulsante de Pokémon em Campo */
.poke-hud-slot.is-active-companion::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
    z-index: 7;
    animation: activeOrbPulse 1.8s infinite ease-in-out;
}

@keyframes activeOrbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.75;
    }
}

/* Slot Shiny na Party HUD */
.poke-hud-slot.is-shiny {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
}

/* Badges de Nível e Slot no Poké-Orb */
.poke-slot-level-badge {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 8px;
    font-weight: 800;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 0px 3.5px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 6;
    line-height: 1.2;
}

.poke-slot-idx-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 7.5px;
    font-weight: 800;
    color: #94a3b8;
    pointer-events: none;
    z-index: 4;
    line-height: 1;
}

.poke-hud-slot.is-empty .poke-slot-idx-badge {
    top: 3px;
    left: 4px;
    bottom: auto;
    right: auto;
    font-size: 8px;
    color: #94a3b8;
}

.poke-slot-shiny-badge {
    position: absolute;
    top: 14px;
    left: 3px;
    font-size: 10px;
    color: #f59e0b;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    z-index: 6;
    pointer-events: none;
    animation: shinySparkle 1.8s ease-in-out infinite alternate;
}

.poke-slot-alpha-badge {
    position: absolute;
    top: 25px;
    left: 3px;
    font-size: 9px;
    color: #ef4444;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    z-index: 6;
    pointer-events: none;
}

@keyframes shinySparkle {
    0% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.15) rotate(15deg);
        opacity: 1;
    }
}

/* Slot Desmaiado (HP Zerado) */
.poke-hud-slot.is-fainted {
    background: #f1f5f9;
    border-color: #fca5a5;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.poke-hud-slot.is-fainted .poke-slot-sprite-wrap img,
.poke-hud-slot.is-fainted .poke-slot-sprite-wrap canvas {
    filter: grayscale(1);
    opacity: 0.45;
}

.poke-hud-slot.is-fainted .poke-slot-fainted-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #ef4444;
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Slot Vazio */
.poke-hud-slot.is-empty {
    background: rgba(248, 250, 252, 0.6);
    border: 2px dashed #cbd5e1;
    box-shadow: none;
    cursor: pointer;
}

.poke-hud-slot.is-empty::before,
.poke-hud-slot.is-empty .poke-orb-center-btn {
    display: none;
}

.poke-hud-slot.is-empty:hover {
    border-color: #f16c20;
    background: #fffaf5;
    border-style: solid;
}

.poke-slot-empty-icon {
    font-size: 16px;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.poke-hud-slot.is-empty:hover .poke-slot-empty-icon {
    color: #f16c20;
    transform: scale(1.2);
}

/* Slots no Modo Duelo Alfa (3 Pokémon definidos no modal, trocas bloqueadas) */
.poke-hud-slot.is-alpha-duel-slot {
    cursor: default;
}

.poke-hud-slot.is-alpha-duel-slot:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.poke-hud-slot.is-alpha-duel-slot.is-active-companion:hover {
    border-color: #f16c20 !important;
    box-shadow: 0 0 0 2.5px rgba(241, 108, 32, 0.35), 0 5px 16px rgba(241, 108, 32, 0.3) !important;
}

.poke-hud-slot.is-alpha-duel-slot:active {
    transform: none;
}

/* =====================================================
   PARTY MENU — Pokémon equipados (MOVES HUB CAPSULE STYLE)
   ===================================================== */

.party-menu-container {
    position: fixed;
    top: 84px;
    left: 16px;
    z-index: 9500;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
    transform-origin: top left;
    clip-path: none !important;
}

.party-menu-container.retracted {
    transform: scaleY(0.95) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Lista de cards de Pokémon com espaçamento maior */
.party-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    clip-path: none !important;
}

/* Wrapper do card (seta + card cápsula) */
.pp-card-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.pp-arrow {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a1a;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    width: 16px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.pp-arrow.pp-arrow--visible {
    visibility: visible;
    opacity: 1;
    animation: arrowPulse 1.2s infinite ease-in-out;
}

/* Card Cápsula de Pokémon (Design Cápsula Clean com Fundo Branco) */
.pp-card {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    width: 280px;
    border-radius: 29px;
    overflow: hidden;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.pp-card.inactive-poke {
    opacity: 0.92;
}

.pp-card-wrapper:hover .pp-card,
.pp-card:hover {
    opacity: 1 !important;
    transform: scale(1.02) !important;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

/* Card Ativo com Borda Azul e Brilho Suave */
.pp-card.active-poke {
    border: 2px solid #3b82f6 !important;
    opacity: 1 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    z-index: 2;
}

/* Lado esquerdo: Avatar circular + Barras e Nome */
.pp-card .sh-left {
    display: flex;
    align-items: center;
    width: calc(100% - 64px);
    height: 100%;
    padding-left: 10px;
    padding-right: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    gap: 10px;
}

.pp-card .sh-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
}

.pp-card .pp-mid-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 3px;
    justify-content: center;
}

.pp-card .sh-move-label {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 800;
    font-family: var(--font-main, 'Inter', sans-serif);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

/* Bloco Cinza Diagonal à Direita (Nível - Padrão Mochila #f2f2f2) */
.pp-card .sh-pp-block {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 68px;
    background: #f2f2f2;
    border-left: 1px solid #e0e0e0;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
    padding-right: 4px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
}

.pp-card .sh-pp-text {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 900;
    font-family: var(--font-main, 'Inter', sans-serif);
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.pp-card .pp-lv-prefix {
    font-size: 10px;
    font-weight: 800;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.pp-card .pp-level-val {
    font-size: 14px;
    font-weight: 900;
    color: #1a1a1a;
}

/* Slot Vazio */
.pp-card.pp-empty {
    background: #ffffff !important;
    border: 2px dashed #cbd5e1 !important;
    box-shadow: none !important;
    opacity: 0.55;
}

.pp-card.pp-empty .sh-pp-block {
    background: #f2f2f2;
}

.pp-card.pp-empty .sh-pp-text {
    color: #a3a3a3;
}


/* ---- Badge do slot ---- */
.pp-slot-badge {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--retro-box-border);
    color: var(--retro-box-bg);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-main);
    line-height: 1;
}

.pp-card.pp-leader .pp-slot-badge {
    background: #c8a000;
    color: #fff;
    font-size: 0.8rem;
}

/* ---- Área do sprite ---- */
.pp-sprite-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
}

.pp-empty-icon {
    font-size: 1.2rem;
    color: #bbb;
}

/* ---- Info textual ---- */
.pp-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
}

.pp-name {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 var(--text-shadow-color);
}

.pp-level {
    font-size: 0.85rem;
    color: #666;
    text-shadow: none;
    line-height: 1;
}

/* Responsive — esconde em telas muito pequenas */
@media (max-width: 400px) {
    .party-menu-container {
        display: none;
    }
}



/* ==================== BATTLE MODE TOGGLE BAR ==================== */
.sh-battle-mode-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 5px 12px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}

.sh-mode-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #22c55e;
    min-width: 62px;
    transition: color 0.2s;
}

.sh-mode-icon {
    font-size: 11px;
    color: #22c55e;
    transition: color 0.2s;
}

.sh-mode-icon--manual {
    color: #f97316;
}

.sh-mode-toggle {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #22c55e;
    background: rgba(34, 197, 94, 0.15);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}

.sh-mode-toggle.manual {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.15);
}

.sh-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    transition: transform 0.25s cubic-bezier(.4, 1.4, .6, 1), background 0.25s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sh-mode-toggle.manual .sh-toggle-thumb {
    transform: translateX(18px);
    background: #f97316;
}

.sh-mode-hint {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-mode-toggle.manual~.sh-mode-hint {
    color: #f97316;
}

/* Cards em modo manual: cursor crosshair e glow laranja */
.spell-hub-moves-grid.sh-manual-mode .spell-hub-card-wrapper {
    cursor: crosshair;
}

.spell-hub-moves-grid.sh-manual-mode .spell-hub-card {
    border-width: 2px;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.25);
}

.spell-hub-moves-grid.sh-manual-mode .spell-hub-card:hover {
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
    transform: translateX(3px) scale(1.01);
}

.spell-hub-moves-grid.spell-hub-grid--turn-busy {
    opacity: 0.75;
    cursor: not-allowed;
    filter: grayscale(20%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}


/* ==================== EQUIPPED POKÉMON SPELL HUB (EXACT MODAL LAYOUT) ==================== */
.spell-hub-container.inv-panel {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    width: auto !important;
    min-width: 340px !important;
    max-width: 92vw !important;
    max-height: none !important;
    padding: 0 !important;
    border: 2px solid #ffcc00 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 204, 0, 0.25) !important;
    background: #0c0e17 !important;
    pointer-events: auto !important;
    animation: popIn 0.2s ease-out !important;
}

.spell-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spell-hub-pkmn-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spell-hub-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: repeating-conic-gradient(#1a1a28 0% 25%, #12121e 0% 50%) 50% / 16px 16px;
    border: 2px solid #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 204, 0, 0.15);
}

.spell-hub-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spell-hub-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.spell-hub-name {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.spell-hub-level {
    font-size: 13px;
    font-weight: 700;
    color: #ffcc00;
}

.spell-hub-type-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    width: fit-content;
}

.spell-hub-title-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffcc00;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.3);
}

.spell-hub-divider {
    height: 1px;
    background: #ffcc00;
    opacity: 0.8;
}

.spell-hub-moves-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.spell-hub-empty-msg {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 6px 12px;
    width: 100%;
}

/* Move Card Slot */
.spell-hub-card {
    border-radius: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    user-select: none;
    overflow: hidden;
    border: 3px solid #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.spell-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    filter: brightness(1.1);
}

.spell-hub-card.sh-card-cast {
    transform: scale(0.95);
    filter: brightness(1.3);
}

.sh-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-key-badge {
    background: #ffcc00;
    border: 1px solid #ffcc00;
    color: #000000;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: monospace;
}

.sh-move-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-lvl-badge {
    font-size: 9px;
    font-weight: 700;
    color: #ffcc00;
    white-space: nowrap;
}

.sh-card-body {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.sh-type-tag {
    font-size: 8px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid;
    letter-spacing: 0.3px;
}

.sh-stat-tag {
    color: #cbd5e1;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.sh-stat-tag strong {
    color: #ffffff;
    font-weight: 800;
}

/* ==================== EQUIPPED POKÉMON SPELL HUB (MODAL YELLOW STYLE) ==================== */
.spell-hub-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    z-index: 1000;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: auto;

    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.spell-hub-container.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.spell-hub-level {
    font-size: 13px;
    font-weight: 700;
    color: #ffcc00;
}

.spell-hub-type-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    width: fit-content;
}

.spell-hub-title-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffcc00;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.3);
}

.spell-hub-divider {
    height: 1px;
    background: #ffcc00;
    opacity: 0.8;
}

.spell-hub-moves-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 260px;
    padding-bottom: 2px;
}

.spell-hub-empty-msg {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 6px 12px;
    width: 100%;
}

/* Move Card Slot */
.spell-hub-card {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s, opacity 0.15s;
    user-select: none;
    position: relative;
}

.spell-hub-card:hover {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.3);
}

.spell-hub-card.sh-card-cast {
    transform: scale(0.95);
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
}

.sh-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-key-badge {
    background: #ffcc00;
    border: 1px solid #ffcc00;
    color: #000000;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: monospace;
}

.sh-move-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-lvl-badge {
    font-size: 9px;
    font-weight: 700;
    color: #ffcc00;
    white-space: nowrap;
}

.sh-card-body {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.sh-type-tag {
    font-size: 8px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid;
    letter-spacing: 0.3px;
}

.sh-stat-tag {
    color: #cbd5e1;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.sh-stat-tag strong {
    color: #ffffff;
    font-weight: 800;
}

/* ==================== NPC SHOP MODAL ==================== */
.npc-shop-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e0e0c8;
    border: 3px solid var(--retro-box-border);
    border-radius: 4px;
    padding: 8px 12px;
    transition: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.08);
    position: relative;
    color: var(--text-primary);
    text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.npc-shop-item-card:hover {
    background: #fff8c8;
    border-color: var(--accent-red);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.npc-shop-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.npc-shop-item-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.npc-shop-item-icon-wrapper canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 48px;
    max-height: 48px;
}

.npc-shop-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.npc-shop-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.npc-shop-item-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.npc-shop-item-price {
    color: #eab308;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.npc-shop-btn-buy {
    background: #4ade80;
    color: #0f172a;
    border: 2px solid var(--retro-box-border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.npc-shop-btn-buy:hover {
    background: #22c55e;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.npc-shop-btn-buy:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.npc-shop-btn-sell {
    background: #f87171;
    color: #fff;
    border: 2px solid var(--retro-box-border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.npc-shop-btn-sell:hover {
    background: #ef4444;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.npc-shop-btn-sell:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* Tabs retro do NPC Shop */
.npc-shop-tabs {
    border-bottom: 3px solid var(--retro-box-border);
    position: relative;
    z-index: 2;
}

.npc-shop-tab {
    flex: 1;
    background: #c0c0a8;
    border: 3px solid var(--retro-box-border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-shadow: 1px 1px 0px var(--text-shadow-color);
    cursor: pointer;
    box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: -3px;
    z-index: 1;
    position: relative;
}

.npc-shop-tab.active {
    background: #e0e0c8;
    color: var(--text-primary);
    box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.05), inset 2px 2px 0 rgba(255, 255, 255, 0.4);
    z-index: 3;
    padding-bottom: 13px;
}

/* Region Card Slanted Model */
.region-card-slanted-wrapper {
    filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.22));
    width: 100%;
}

.region-card-slanted {
    position: relative;
    background: #ffffff;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
    padding: 10px 12px 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.region-card-slanted:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.rcs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rcs-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rcs-badge {
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.rcs-body-combat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 4px;
    min-height: 42px;
    gap: 8px;
}

.region-card-pokemons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.region-poke-badge {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.region-poke-badge:hover {
    transform: scale(1.08);
}

.region-poke-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23cbd5e1' stroke-width='6'/%3E%3Cpath d='M5 50h90' stroke='%23cbd5e1' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='16' fill='%23ffffff' stroke='%23cbd5e1' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='6' fill='%23cbd5e1'/%3E%3C/svg%3E");
    background-size: 85% 85%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

.region-poke-badge canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    transform-origin: center center;
    pointer-events: none;
    z-index: 2;
}

.region-poke-badge.unowned canvas {
    filter: brightness(0) opacity(0.4);
}

.region-poke-badge.owned canvas {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.rcs-body-noncombat {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 36px;
}

.rcs-action-wrapper {
    flex-shrink: 0;
}

.region-card-action-btn {
    background: #e8e8d8;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s ease, color 0.15s ease;
}

.region-card-slanted:hover .region-card-action-btn {
    background: #ef4444;
    color: #ffffff;
}

.rcs-bar {
    height: 4px;
    background: #475569;
    width: 100%;
    margin-top: 4px;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.region-card-slanted:hover .rcs-bar {
    background: #ef4444;
}

/* Overrides for Header and Badges */
.region-group-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.region-group-title {
    color: #1e293b !important;
    text-shadow: none !important;
}

.region-group-badge {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

/* ==================== SPELL HUB (OFFICIAL POKÉMON SWSH VERTICAL STACK ON RIGHT) ==================== */
.spell-hub-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    transform: none !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 14px !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
}

.spell-hub-moves-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 14px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    padding: 4px 0 !important;
}

/* ==================== GARY RIVAL SPELL HUB (TOP LEFT) ==================== */
#gary-spell-hub.spell-hub-container,
.gary-spell-hub-container {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 24px !important;
    right: auto !important;
    transform: none !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    animation: garyHubSlideInLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes garyHubSlideInLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gary-spell-hub-container .spell-hub-moves-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 0 !important;
}

.gary-spell-hub-container .spell-hub-card {
    opacity: 1 !important;
    filter: none !important;
}

.gary-spell-hub-container .spell-hub-card.empty-move-slot,
.spell-hub-card.empty-move-slot {
    background: #f1f5f9 !important;
    border: 2px dashed #cbd5e1 !important;
    box-shadow: none !important;
    opacity: 0.55 !important;
    cursor: default !important;
}

.spell-hub-card-wrapper.empty-slot-wrapper {
    cursor: default !important;
}

/* ==================== SPELL HUB — CARD LAYOUT & TIPO POR ELEMENTO ==================== */

/* Wrapper do card (seta + card) */
.spell-hub-card-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Card base */
.spell-hub-card {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    width: 248px;
    border-radius: 23px;
    overflow: hidden;
    box-sizing: border-box;
    border: 2.5px solid rgba(0, 0, 0, 0.55);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}

/* Card inativo */
.spell-hub-card.inactive-move {
    opacity: 0.68;
    transform: scale(0.97);
    filter: brightness(0.88);
}

.spell-hub-card-wrapper:hover .inactive-move {
    opacity: 0.9;
    transform: scale(0.99);
    filter: brightness(0.95);
}

/* Card Ativo com Borda Externa Fina (2px) e Suave Aura Vermelha */
.spell-hub-card.active-move,
.spell-hub-card-wrapper:hover .spell-hub-card,
.spell-hub-card:hover {
    position: relative;
    border: 2px solid #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.02) !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px rgba(239, 68, 68, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    z-index: 2;
}

/* Seta indicadora */
.spell-arrow {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    width: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    pointer-events: auto;
}

.spell-arrow.spell-arrow--visible {
    opacity: 1;
    animation: arrowPulse 1.2s infinite ease-in-out;
}

/* Lado esquerdo: ícone + nome */
.sh-left {
    display: flex;
    align-items: center;
    width: calc(100% - 82px);
    height: 100%;
    padding-left: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    gap: 8px;
}

.sh-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}

.sh-move-label {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    font-family: var(--font-main, 'Inter', sans-serif);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

/* Bloco PP diagonal à direita */
.sh-pp-block {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 88px;
    background: #000000;
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 13px;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 3;
}

/* Bloco PP diagonal à direita (Alinhado à borda do card) */

.sh-pp-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    font-family: var(--font-main, 'Inter', sans-serif);
    letter-spacing: -0.5px;
}

/* ==================== CORES POR TIPO DE ELEMENTO ==================== */
.move-type-normal {
    background: #c8c8a9;
}

.move-type-fire {
    background: #f08030;
}

.move-type-water {
    background: #6890f0;
}

.move-type-grass {
    background: #78c850;
}

.move-type-electric {
    background: #f8d030;
}

.move-type-ice {
    background: #98d8d8;
}

.move-type-fighting {
    background: #c03028;
}

.move-type-poison {
    background: #a040a0;
}

.move-type-ground {
    background: #e0c068;
}

.move-type-flying {
    background: #a890f0;
}

.move-type-psychic {
    background: #f85888;
}

.move-type-bug {
    background: #a8b820;
}

.move-type-rock {
    background: #b8a038;
}

.move-type-ghost {
    background: #705898;
}

.move-type-dragon {
    background: #7038f8;
}

.move-type-dark {
    background: #705848;
}

.move-type-steel {
    background: #b8b8d0;
}

.move-type-fairy {
    background: #ee99ac;
}

/* Cor do ícone por tipo */
.sh-icon-normal i {
    color: #6d6d4e;
}

.sh-icon-fire i {
    color: #9c531f;
}

.sh-icon-water i {
    color: #445e9c;
}

.sh-icon-grass i {
    color: #4e8234;
}

.sh-icon-electric i {
    color: #a1871f;
}

.sh-icon-ice i {
    color: #638d8d;
}

.sh-icon-fighting i {
    color: #7d1f1a;
}

.sh-icon-poison i {
    color: #682a68;
}

.sh-icon-ground i {
    color: #927d44;
}

.sh-icon-flying i {
    color: #6d5e9c;
}

.sh-icon-psychic i {
    color: #a13959;
}

.sh-icon-bug i {
    color: #6d7815;
}

.sh-icon-rock i {
    color: #786824;
}

.sh-icon-ghost i {
    color: #493963;
}

.sh-icon-dragon i {
    color: #4924f5;
}

.sh-icon-dark i {
    color: #49392f;
}

.sh-icon-steel i {
    color: #787887;
}

.sh-icon-fairy i {
    color: #9b6470;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes rotateBorderClockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes activeMovePulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4);
        filter: brightness(1.04);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 255, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.6);
        filter: brightness(1.18);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    50%,
    100% {
        transform: translateX(280%) skewX(-20deg);
    }
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

.spell-hub-card.sh-card-cast {
    transform: scale(0.94) !important;
    filter: brightness(1.35) !important;
}

.spell-active-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    animation: shimmerSweep 2.5s infinite ease-in-out;
}

/* ==================== SEM SCROLL NO CONTAINER ==================== */
.spell-hub-container {
    overflow: visible !important;
}

.spell-hub-moves-grid {
    overflow: visible !important;
    max-height: none !important;
}

/* ==================== SPELL HUB CLEAN LIGHT TOOLTIP (TEMA MOCHILA) ==================== */
.spell-hub-move-tooltip {
    position: fixed;
    z-index: 100000;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    padding: 12px 14px;
    width: 270px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    font-family: inherit;
    opacity: 0;
    transform: translateX(6px) scale(0.98);
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.spell-hub-move-tooltip.sh-tooltip--visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.sh-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.sh-tooltip-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.sh-tooltip-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.sh-tooltip-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 2.5px 7px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sh-tooltip-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2.5px 6px;
    border-radius: 6px;
}

.sh-cat-icon--status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #7c3aed;
    font-size: 10px;
    line-height: 1;
}

.sh-tooltip-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
}

.sh-tooltip-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.sh-tooltip-stat-label {
    font-size: 8.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sh-tooltip-stat-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sh-tooltip-desc-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 4px;
}

.sh-tooltip-desc-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #f16c20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sh-tooltip-desc-text {
    font-size: 11.5px;
    line-height: 1.45;
    color: #334155;
    font-weight: 500;
    word-break: break-word;
}

.sh-tooltip-mechanic-tag {
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sh-tooltip-mechanic-tag--drain {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.sh-tooltip-mechanic-tag--recoil {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}



/* Clean up modal style */
.inv-panel,
.retro-box-border,
.modal-content {
    border-radius: 24px !important;
    border: 3px solid #1a1a1a !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    background: #e8eaf6 !important;
    padding: 24px 24px 24px 32px !important;
    color: #1a1a1a !important;
}

/* Fix text color for modals */
.inv-title {
    font-size: 24px !important;
    color: #1a1a1a !important;
    text-shadow: none !important;
    font-weight: 900 !important;
    text-transform: none !important;
}

.inv-subtitle {
    color: #475569 !important;
}



/* Add SwSh shop CSS */
/* ==================== SWSH STYLE NPC SHOP ==================== */
.pkmn-shop-modal {
    width: 600px;
    max-width: 95%;
    height: 85vh;
    background: #0bd6fc;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    /* Slight rounding to avoid sharp edges on mobile */
}

/* Orange angled background element */
.pkmn-shop-orange-bg {
    position: absolute;
    top: 0;
    left: -50px;
    width: 250px;
    height: 100%;
    background: #f16c20;
    clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
    z-index: 0;
}

/* Header */
.pkmn-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: relative;
    z-index: 2;
}

.pkmn-shop-tabs {
    display: flex;
    gap: 20px;
}

.pkmn-shop-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-main);
    transition: color 0.2s;
    padding: 0;
}

.pkmn-shop-tab.active {
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.pkmn-shop-wallet {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-weight: bold;
}

.pkmn-shop-wallet span:first-child {
    font-size: 14px;
    letter-spacing: 0.5px;
}

#npc-shop-player-gold {
    font-size: 18px;
    letter-spacing: 1px;
}

.pkmn-shop-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pkmn-shop-close:hover {
    transform: scale(1.1);
}

/* Content Area */
.pkmn-shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 30px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pkmn-shop-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Item Rows */
.pkmn-shop-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.1s;
    color: #1a1a1a;
}

.pkmn-shop-item-card:hover {
    background: linear-gradient(105deg, #000000 65%, #0a31c5 65%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pkmn-shop-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pkmn-shop-item-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-shop-item-icon-wrapper canvas {
    image-rendering: pixelated;
    max-width: 36px;
    max-height: 36px;
}

.pkmn-shop-item-name {
    font-size: 20px;
    font-weight: 700;
}

.pkmn-shop-item-right {
    display: flex;
    align-items: center;
}

.pkmn-shop-item-price {
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.1s;
}

.pkmn-shop-item-action {
    display: none;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    align-items: center;
    color: #ffffff;
}

.pkmn-shop-item-card:hover .pkmn-shop-item-price {
    display: none;
}

.pkmn-shop-item-card:hover .pkmn-shop-item-action {
    display: flex;
}

/* Update shop palette to clean menu style */
/* ==================== SWSH STYLE NPC SHOP ==================== */
.pkmn-shop-modal {
    width: 600px;
    max-width: 95%;
    height: 85vh;
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Background angled decoration (Clean white instead of orange) */
.pkmn-shop-orange-bg {
    position: absolute;
    top: 0;
    left: -50px;
    width: 250px;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
    z-index: 0;
}

/* Header */
.pkmn-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: relative;
    z-index: 2;
}

.pkmn-shop-tabs {
    display: flex;
    gap: 20px;
}

.pkmn-shop-tab {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-main);
    transition: color 0.2s;
    padding: 0;
}

.pkmn-shop-tab.active {
    color: #1a1a1a;
    text-shadow: none;
}

.pkmn-shop-wallet {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1a1a1a;
    font-weight: bold;
}

.pkmn-shop-wallet span:first-child {
    font-size: 14px;
    letter-spacing: 0.5px;
}

#npc-shop-player-gold {
    font-size: 18px;
    letter-spacing: 1px;
}

.pkmn-shop-close {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pkmn-shop-close:hover {
    transform: scale(1.1);
    color: #e3343d;
}

/* Content Area */
.pkmn-shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 30px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pkmn-shop-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Item Rows */
.pkmn-shop-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.1s;
    color: #1a1a1a;
}

.pkmn-shop-item-card:hover {
    background: linear-gradient(105deg, #1a1a1a 65%, #e3343d 65%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pkmn-shop-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pkmn-shop-item-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-shop-item-icon-wrapper canvas {
    image-rendering: pixelated;
    max-width: 36px;
    max-height: 36px;
}

.pkmn-shop-item-name {
    font-size: 20px;
    font-weight: 700;
}

.pkmn-shop-item-right {
    display: flex;
    align-items: center;
}

.pkmn-shop-item-price {
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.1s;
}

.pkmn-shop-item-action {
    display: none;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    align-items: center;
    color: #ffffff;
}

.pkmn-shop-item-card:hover .pkmn-shop-item-price {
    display: none;
}

.pkmn-shop-item-card:hover .pkmn-shop-item-action {
    display: flex;
}

/* Add quantity modal CSS */
.pkmn-shop-item-card:hover .pkmn-shop-item-price {
    display: none;
}

.pkmn-shop-item-card:hover .pkmn-shop-item-action {
    display: flex;
}

/* Quantity Selector Overlay */
.pkmn-qty-box {
    background: #ffffff;
    border: 3px solid #1a1a1a;
    border-radius: 8px;
    padding: 24px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #1a1a1a;
}

.pkmn-qty-box h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 800;
}

.pkmn-qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pkmn-qty-controls button {
    width: 36px;
    height: 36px;
    border: none;
    background: #e3343d;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.pkmn-qty-controls button:hover {
    transform: scale(1.1);
}

.pkmn-qty-controls input {
    width: 70px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    padding: 5px;
    background: #f2f2f2;
    color: #1a1a1a;
    font-family: var(--font-main);
}

.pkmn-qty-total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.pkmn-qty-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pkmn-qty-actions button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-main);
    transition: filter 0.1s;
}

.pkmn-qty-actions button:hover {
    filter: brightness(1.2);
}

.pkmn-qty-btn-cancel {
    background: #888888;
    color: #fff;
}

.pkmn-qty-btn-confirm {
    background: #1a1a1a;
    color: #fff;
}

/* Change team layout to vertical and make slots smaller and horizontal */
.team-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Top pane: 6 team slots */
.team-active-pane {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-active-pane h3,
.team-roster-pane h3 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom pane: roster + console */
.team-roster-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    overflow: hidden;
}

/* 6-slot grid: 6 cols x 1 row */
.team-slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    flex: 0 0 auto;
}

/* Each slot card */
.team-slot-card {
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(20, 30, 48, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-height: 70px;
    text-align: center;
}

.team-slot-card.empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
    font-size: 10px;
    cursor: default;
}

.team-slot-card.filled {
    cursor: pointer;
}

.team-slot-card.filled:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Slot number */
.slot-num-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 8px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.team-slot-card.filled .slot-num-badge {
    color: #38bdf8;
    opacity: 0.85;
}

/* Sprite wrap inside slot */
.slot-canvas-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Info text inside filled slot */
.slot-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-info h4 {
    font-size: 10px;
    font-weight: 800;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Remove inner square from team slot */
/* Sprite wrap inside slot */
.slot-canvas-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: -4px;
    /* Pull it slightly up to offset typical bottom-alignment of sprites */
}

/* Fix canvas positioning inside slots by anchoring canvas to bottom right */
/* Sprite wrap inside slot */
.slot-canvas-wrap {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.slot-canvas-wrap canvas {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Add selected state styling for team slots */
.team-slot-card.filled {
    cursor: pointer;
}

.team-slot-card.selected,
.team-slot-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.team-slot-card.selected {
    background: rgba(45, 65, 100, 0.7);
    border-color: #facc15;
}

/* Make roster cards smaller and add pokeball background */
/* ---- Roster inventory grid ---- */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    align-content: start;
}

.roster-card {
    padding: 6px 2px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Cpath d='M5 50h90' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='16' fill='none' stroke='rgba(0,0,0,0.15)' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='6' fill='rgba(0,0,0,0.15)'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center 30%;
    background-repeat: no-repeat;
    border: 2px solid transparent;
    transition: all 0.13s;
    position: relative;
    user-select: none;
    min-height: 65px;
}

.roster-card * {
    pointer-events: none;
}

.roster-sell-btn {
    pointer-events: auto !important;
}

.roster-card:hover {
    transform: scale(1.05);
}

.roster-card.selected-roster {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px #38bdf8);
    transform: scale(1.1);
}

.roster-card.equipped-roster {
    background-color: transparent !important;
    border-color: transparent !important;
    filter: drop-shadow(0 0 6px #fbbf24);
}

.roster-image {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.roster-image canvas {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Remove retro styles from team action console */
.team-action-console {
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 85px;
}

/* Improve scrollbar style for the team action console */
/* ---- Action Console ---- */
.team-action-console {
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 85px;
}

/* Custom modern scrollbar for the action console */
.team-action-console::-webkit-scrollbar {
    width: 6px;
}

.team-action-console::-webkit-scrollbar-track {
    background: transparent;
}

.team-action-console::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.team-action-console::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* SwSh Style Dialogue */
.pkmn-dialogue-wrapper {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100vw;
    z-index: 100005;
    animation: popIn 0.2s ease-out;
}

.pkmn-dialogue-bg-red {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100vw;
    height: 120px;
    background: #e3343d;
    z-index: 0;
}

.pkmn-dialogue-content-area {
    position: relative;
    width: 90vw;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.pkmn-dialogue-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #2b2b2b;
    padding: 24px 32px;
    color: #ffffff;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    z-index: 2;
    min-height: 120px;
}

.pkmn-dialogue-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #555;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-dialogue-text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pkmn-dialogue-title {
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.pkmn-dialogue-p {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
    font-weight: 500;
    font-family: var(--font-main);
}

.pkmn-dialogue-actions {
    position: absolute;
    top: -30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.pkmn-dialogue-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 30px 8px 34px;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--font-main);
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.pkmn-dialogue-btn:hover {
    background: #e3343d;
    transform: scale(1.05);
}


/* ==================== MENU ALIGNMENT FIX ==================== */


/* MENU BTN SwSh Width Managed in main block */


/* Inventory Item Hover override */
.inv-card:hover .pkmn-shop-item-price {
    display: block !important;
    color: #ffffff !important;
}

.btn-vender-tudo {
    display: none;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: bold;
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-right: 10px;
    transition: filter 0.2s;
    align-items: center;
    gap: 6px;
}

.btn-vender-tudo:hover {
    filter: brightness(1.2);
}

/* ==================== SWSH STYLE POKÉDEX (INSPIRATIONS 6 & 7 - LIGHT MODAL PALETTE) ==================== */
.swsh-pokedex-modal {
    background: #F2F2F2 !important;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px !important;
    color: #1A1A1A;
}

.swsh-pokedex-header {
    background: transparent;
    padding: 15px 25px !important;
    position: relative;
    z-index: 2;
}

.swsh-pokedex-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swsh-pokedex-logo-icon {
    font-size: 22px;
}

.swsh-pokedex-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1A1A1A;
    text-transform: uppercase;
}

.swsh-pokedex-stats-pill {
    display: flex;
    gap: 10px;
}

.swsh-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.swsh-stat-badge.seen {
    background: rgba(14, 165, 233, 0.1);
    color: #0284C7;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.swsh-stat-badge.caught {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.swsh-close-btn {
    color: #1A1A1A !important;
    font-size: 24px !important;
}

.swsh-close-btn:hover {
    color: #E3343D !important;
}

.swsh-pokedex-content {
    padding: 10px 20px 20px 20px !important;
    position: relative;
    z-index: 2;
}

.swsh-pokedex-split-layout {
    display: flex;
    gap: 14px;
    height: 100%;
}

/* Left Pane: Grid & Search (Clean Light Card - Image 7 Inspired) */
.swsh-dex-left-pane {
    flex: 0 0 530px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.swsh-dex-search-row {
    display: flex;
    gap: 8px;
}

.swsh-input-wrapper {
    position: relative;
    flex: 1;
}

.swsh-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 13px;
}

.swsh-dex-search-input {
    width: 100%;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 7px 12px 7px 32px;
    color: #1E293B;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.swsh-dex-search-input:focus {
    border-color: #0EA5E9;
    background: #FFFFFF;
}

.swsh-dex-type-select {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 7px 10px;
    color: #1E293B;
    font-size: 11px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.swsh-dex-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding-right: 4px;
}

/* SwSh Grid Slot Card (Light Theme) */
.swsh-dex-slot-card {
    position: relative;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 9px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 82px;
    box-sizing: border-box;
}

.swsh-dex-slot-card:hover {
    background: #F1F5F9;
    border-color: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.swsh-dex-slot-card.selected {
    background: rgba(227, 53, 69, 0.08) !important;
    border: 2px solid #E33545 !important;
    box-shadow: 0 0 12px rgba(227, 53, 69, 0.25);
}

.swsh-dex-slot-card.status-caught {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
}

.swsh-dex-slot-card.status-seen {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
}

.swsh-dex-slot-card.status-unknown {
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    opacity: 0.85;
}

.swsh-slot-ball-indicator {
    font-size: 9px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Chevron indicator pointing to selected slot (Image 7 style) */
.swsh-dex-slot-card.selected::before {
    content: '▼';
    position: absolute;
    top: -11px;
    color: #E33545;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: chevronBounce 1s infinite alternate;
}

@keyframes chevronBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}

.swsh-slot-num {
    font-size: 9.5px;
    font-weight: 800;
    color: #94A3B8;
    align-self: flex-start;
    line-height: 1;
    padding-left: 2px;
}

.swsh-slot-sprite-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 2px 0;
}

.swsh-slot-name {
    font-size: 10px;
    font-weight: 800;
    color: #1E293B;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
}

/* Right Pane: Summary Card (Clean Light Card - Image 6 & 7 Inspired) */
.swsh-dex-right-pane {
    flex: 1;
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Red Diagonal Banner Background (Image 6 SwSh Banner) */
.swsh-dex-red-banner {
    position: absolute;
    top: 0;
    left: -50px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #E33545 0%, #B91C1C 100%);
    clip-path: polygon(0 0, 100% 0, 35% 100%, 0 100%);
    z-index: 1;
    pointer-events: none;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
}

.swsh-dex-pokeball-watermark {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border: 30px solid rgba(0, 0, 0, 0.02);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.swsh-dex-details-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

/* Header bar inside details card */
.swsh-dex-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.swsh-dex-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swsh-dex-name {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.swsh-dex-no {
    font-size: 14px;
    font-weight: 800;
    color: #F8FAFC;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
}

.swsh-dex-badges-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* SwSh Type Badge Pills */
.swsh-type-pill {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hero Center Row */
.swsh-dex-hero-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
    background: #F8FAFC;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
}

.swsh-dex-avatar-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #FFFFFF 0%, #E2E8F0 90%);
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.swsh-dex-specs-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.swsh-dex-specs-box .spec-item {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swsh-dex-specs-box .spec-item strong {
    color: #0F172A;
}

.swsh-dex-specs-box .bst-item strong {
    color: #0EA5E9;
    font-size: 14px;
    font-weight: 800;
}

/* SwSh Tab Navigation Buttons (Image 6 Style - Light Theme) */
.swsh-dex-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 12px;
}

.swsh-dex-tab {
    flex: 1 1 0;
    min-width: 0;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #64748B;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swsh-dex-tab:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.swsh-dex-tab.active {
    background: #E33545 !important;
    color: #FFFFFF !important;
    border-color: #EF4444 !important;
    box-shadow: 0 4px 12px rgba(227, 53, 69, 0.3);
}

/* Tab Panels */
.swsh-dex-tab-panel {
    flex: 1;
    overflow-y: auto;
}

/* TAB 4: Research Quests Info View (Clean Light) */
.swsh-quests-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px;
}

.swsh-quest-info-card {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease;
}

.swsh-quest-info-card:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.swsh-quest-info-card.is-completed {
    border-color: #86EFAC;
    background: #F0FDF4;
}

.swsh-quest-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 14px;
    flex-shrink: 0;
}

.swsh-quest-info-card.is-completed .swsh-quest-icon-box {
    background: #DCFCE7;
    border-color: #BBF7D0;
    color: #16A34A;
}

.swsh-quest-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.swsh-quest-title {
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swsh-quest-prog-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swsh-quest-track {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.swsh-quest-fill {
    height: 100%;
    background: #0284C7;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.swsh-quest-info-card.is-completed .swsh-quest-fill {
    background: #16A34A;
}

.swsh-quest-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    white-space: nowrap;
    min-width: 45px;
    text-align: right;
}

.swsh-quest-status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.swsh-quest-status-badge.completed {
    background: #DCFCE7;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.swsh-quest-status-badge.in-progress {
    background: #E0F2FE;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

/* TAB 1: Base Stats Grid (Numerical Cards - Image 7 Style) */
.swsh-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.swsh-stat-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.swsh-stat-card .stat-lbl {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.swsh-stat-card .stat-val {
    font-size: 16px;
    font-weight: 900;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 2px 10px;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* TAB 2: Moves View (Image 6 SwSh Capsule Move Pills Style) */
.swsh-moves-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swsh-move-pill {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 16px;
    height: 42px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.swsh-move-pill:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.swsh-move-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    padding-right: 8px;
}

.swsh-move-lvl-badge {
    font-size: 10px;
    font-weight: 800;
    color: #0284C7;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.swsh-move-name {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swsh-move-right-badge {
    width: 175px;
    min-width: 175px;
    flex-shrink: 0;
    height: 100%;
    background: #1E293B;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
    padding: 0 16px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.swsh-move-type-pill {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 75px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.swsh-move-pp-text {
    font-size: 11px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: 0.5px;
}

/* TAB 3: Evolution Line View (Light Theme) */
.swsh-evolution-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

.swsh-evo-card {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-width: 95px;
    transition: all 0.2s;
}

.swsh-evo-card.active-evo {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: #0EA5E9 !important;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

.swsh-evo-card .evo-sprite-box {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swsh-evo-card .evo-name {
    font-size: 11px;
    font-weight: 800;
    color: #0F172A;
    margin-top: 4px;
}

.swsh-evo-card .evo-no {
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
}

.swsh-evo-arrow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0EA5E9;
}

.swsh-evo-arrow-box .req-label {
    font-size: 9px;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.swsh-evo-arrow-box .arrow {
    font-size: 14px;
    font-weight: 900;
}

/* Console Tab Navigation */
.swsh-console-tabs-nav {
    display: flex;
    background: #E2E8F0;
    padding: 3px;
    border-bottom: 1px solid #CBD5E1;
    gap: 3px;
    flex-shrink: 0;
}

.swsh-console-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 800;
    color: #64748B;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.swsh-console-tab:hover {
    color: #1E293B;
    background: rgba(255, 255, 255, 0.5);
}

.swsh-console-tab.active {
    background: #FFFFFF;
    color: #0EA5E9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* SwSh Team Modal Details Console & IV Progress Bars */
.swsh-team-console {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    color: #1E293B;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.swsh-team-console-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
}

.swsh-team-header {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: #FFFFFF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #E2E8F0;
}

.swsh-team-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.swsh-team-lvl-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* SwSh IV Stat Progress Card */
.swsh-team-stats-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.swsh-team-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F1F5F9;
}

.swsh-team-stats-title {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.swsh-team-nature-pill {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Stat Row with IV Progress Bar */
.swsh-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
}

.swsh-stat-label {
    width: 60px;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.swsh-stat-bar-bg {
    flex: 1;
    height: 9px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.swsh-stat-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease-out;
}

.swsh-stat-iv-tag {
    font-size: 9px;
    font-weight: 800;
    color: #0284C7;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    padding: 1px 4px;
    border-radius: 4px;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.swsh-stat-iv-tag.max-iv {
    color: #D97706;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.swsh-stat-values {
    width: 64px;
    text-align: right;
    font-size: 11px;
    font-weight: 800;
    color: #1E293B;
    flex-shrink: 0;
}

.swsh-stat-max-val {
    font-size: 9px;
    font-weight: 600;
    color: #94A3B8;
}

/* SwSh Move Pills for Team Modal */
/* SwSh Move Pills for Team Modal */
.swsh-team-move-pill {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    min-height: 38px;
    padding: 0 8px;
    flex-shrink: 0;
    margin-bottom: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    cursor: pointer;
}

.swsh-team-move-pill:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.swsh-team-move-pill.selected-slot {
    border-color: #1E293B !important;
    background: #F8FAFC !important;
    box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.15) !important;
}

.swsh-team-move-pill.empty {
    border: 1.5px dashed #CBD5E1;
    background: #F8FAFC;
}

.swsh-team-move-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.swsh-team-move-slot {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 2px 5px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.swsh-team-move-pill.selected-slot .swsh-team-move-slot {
    background: #1E293B;
    color: #FFFFFF;
    border-color: #1E293B;
}

.swsh-team-move-name {
    font-size: 12px;
    font-weight: 800;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.swsh-team-move-name.muted {
    color: #94A3B8;
    font-weight: 600;
}

.swsh-team-move-lvl {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    white-space: nowrap;
    flex-shrink: 0;
}

.swsh-team-move-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 6px;
}

.swsh-team-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-size: 9px;
    font-weight: 900;
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn-unequip-move-slot {
    background: #FEE2E2;
    color: #EF4444;
    border: 1px solid #FECACA;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-unequip-move-slot:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

.btn-equip-move-to-slot {
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-equip-move-to-slot:hover {
    background: #059669;
}

/* Helper para ocultar o container do Phaser sem quebrar a inicialização do WebGL (0x0 size) */
#game-container.game-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CHARACTER SETUP SCREEN — First-time trainer creation
   ═══════════════════════════════════════════════════════════════════ */

.cs-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0d14;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 20px;
}

.cs-screen.cs-visible {
    opacity: 1;
}

/* Wrapper card */
.cs-wrapper {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(145deg, #13151f 0%, #0e1019 100%);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(255, 204, 0, 0.08), 0 24px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
}

/* Diagonal decoration top-right */
.cs-wrapper::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff8c00 100%);
    transform: rotate(45deg);
    opacity: 0.07;
    pointer-events: none;
}

/* ── Header ── */
.cs-header {
    padding: 28px 36px 20px;
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 204, 0, 0.15);
    position: relative;
}

.cs-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #ffcc00, #ff8c00);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.cs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.cs-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ── Body ── */
.cs-body {
    display: flex;
    gap: 24px;
    padding: 24px 36px;
}

/* ── Left Column (Preview) ── */
.cs-col-preview {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cs-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffcc00;
    align-self: flex-start;
}

.cs-preview-box {
    width: 160px;
    height: 160px;
    background: repeating-conic-gradient(#1a1a24 0% 25%, #12121a 0% 50%) 50% / 16px 16px;
    border: 2px solid rgba(255, 204, 0, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 204, 0, 0.1);
    overflow: hidden;
}

.cs-preview-stage {
    position: relative;
    z-index: 1;
}

.cs-preview-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    border-radius: 12px;
    pointer-events: none;
}

/* Gender Cards */
.cs-gender-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cs-gender-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.cs-gender-card:hover {
    border-color: rgba(255, 204, 0, 0.4);
    background: rgba(255, 204, 0, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.cs-gender-card.cs-gender-active {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.12);
    color: #ffcc00;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.2);
}

/* ── Right Column (Form) ── */
.cs-col-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Nickname Input */
.cs-input-wrapper {
    position: relative;
}

.cs-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    pointer-events: none;
}

.cs-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 16px 12px 42px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.cs-input:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.cs-hint {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Part Tabs */
.cs-part-tabs {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-part-tab {
    flex: 1;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cs-part-tab:hover {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
}

.cs-part-tab.active {
    background: #ffcc00;
    color: #000000;
    font-weight: 800;
}

/* Palette Grid */
.cs-palette-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    max-height: 130px;
    overflow-y: auto;
    background: #060810;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.cs-palette-grid::-webkit-scrollbar {
    width: 4px;
}

.cs-palette-grid::-webkit-scrollbar-track {
    background: #060810;
}

.cs-palette-grid::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.cs-color-swatch {
    aspect-ratio: 1;
    border: 1.5px solid rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
}

.cs-color-swatch:hover {
    transform: scale(1.3);
    z-index: 1;
    position: relative;
}

.cs-color-swatch.cs-swatch-active {
    border-color: #ffcc00 !important;
    border-width: 2px;
    box-shadow: 0 0 6px #ffcc00;
    position: relative;
    z-index: 2;
}

/* ── Footer ── */
.cs-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 18px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.2);
}

.cs-status {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.cs-status.error {
    color: #ff6b6b;
}

.cs-status.success {
    color: #6bff9e;
}

.cs-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff8c00 100%);
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 204, 0, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cs-confirm-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.5);
}

.cs-confirm-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.cs-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .cs-body {
        flex-direction: column;
        padding: 18px 20px;
    }

    .cs-col-preview {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        align-items: flex-start;
        width: 100%;
    }

    .cs-header {
        padding: 20px 20px 14px;
    }

    .cs-footer {
        padding: 14px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .cs-confirm-btn {
        justify-content: center;
    }

    .cs-col-form {
        width: 100%;
    }
}

/* ── HUD Notification Dot Badge ── */
.hud-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    animation: pulseNotificationDot 1.5s infinite;
    z-index: 99;
    pointer-events: none;
}

@keyframes pulseNotificationDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    }

    70% {
        transform: scale(1.25);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ── HUD Notification Gift Badge ── */
.hud-notification-gift {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 15px;
    color: #ef4444;
    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    animation: giftNotificationWobble 2s infinite ease-in-out;
    z-index: 99;
    pointer-events: none;
    line-height: 1;
}

@keyframes giftNotificationWobble {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    15% {
        transform: scale(1.25) rotate(-14deg);
    }

    30% {
        transform: scale(1.25) rotate(14deg);
    }

    45% {
        transform: scale(1.15) rotate(-8deg);
    }

    60% {
        transform: scale(1.1) rotate(8deg);
    }

    75% {
        transform: scale(1.05) rotate(0deg);
    }
}


/* ==================== SWSH VIP MODAL STYLING ==================== */
.uib-vip-gold-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #fef08a;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    letter-spacing: 0.5px;
}

.swsh-vip-box {
    width: 92%;
    max-width: 620px;
    background: #0f172a;
    border: 2px solid #fbbf24;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
}

.swsh-vip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    margin: -24px -24px 20px -24px;
    padding: 16px 24px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom: 2px solid #fef08a;
}

.swsh-vip-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.swsh-vip-close {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
}

.swsh-vip-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.vip-badge-free {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
}

.vip-badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid #10b981;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
}

.vip-status-desc {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.swsh-vip-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.perk-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #e2e8f0;
}

.perk-item i {
    color: #fbbf24;
    margin-right: 6px;
}

.swsh-vip-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.swsh-vip-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.swsh-vip-plan-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.swsh-vip-plan-card:hover {
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.swsh-vip-plan-card.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.plan-badge {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 4px;
}

.plan-badge.tag-save {
    color: #38bdf8;
}

.plan-badge.tag-best {
    color: #f472b6;
}

.plan-days {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.plan-price {
    font-size: 18px;
    font-weight: 900;
    color: #fbbf24;
    margin-top: 4px;
}

.plan-sub {
    font-size: 10px;
    color: #64748b;
}

.swsh-vip-pay-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pay-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.swsh-vip-pay-body {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.swsh-vip-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease;
}

.swsh-vip-action-btn:hover {
    transform: scale(1.02);
}

.btn-pix {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

.btn-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-paypal {
    background: linear-gradient(135deg, #ffc439 0%, #e6a100 100%);
    color: #003087;
}

.btn-confirm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    margin-top: 8px;
}

.pix-result-box {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pix-qr-frame {
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-frame img {
    width: 100%;
    height: 100%;
}

.pix-code-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    border-radius: 6px;
    margin: 6px 0;
}

.pix-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.pix-sim-info {
    font-size: 11px;
    color: #fbbf24;
    margin-top: 8px;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-input-wrap.span-2 {
    grid-column: span 2;
}

.card-input-wrap label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 700;
}

.card-input-wrap input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.vip-feedback-msg {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.vip-feedback-msg.info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid #3b82f6;
}

.vip-feedback-msg.success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid #10b981;
}

.vip-feedback-msg.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #ef4444;
}

/* ==================== GLOBAL CHAT TEXT COLOR (BRANCO PURO) ==================== */
.chat-messages-container,
.chat-msg-row,
.chat-msg-author,
.chat-msg-text {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.chat-msg-author {
    font-weight: 800 !important;
    color: #ffffff !important;
}

.chat-msg-row.system-msg .chat-msg-text {
    color: #f87171 !important;
}

/* ==================== COMBAT HOTBAR & ATALHOS DE MOCHILA (MINIMALIST WHITE THEME) ==================== */
.combat-hotbar-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(242, 242, 242, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 6px 8px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-main, 'Outfit', sans-serif);
}

.combat-hotbar-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

/* FLOATING BATTLE MODE TOGGLE BUTTON (POSICIONADO ACIMA DO COMBAT-HOTBAR-CONTAINER) */
.hotbar-battle-mode-float {
    position: absolute;
    bottom: 94px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(19, 27, 46, 0.92);
    backdrop-filter: blur(12px);
    border: 2px solid #10b981;
    color: #10b981;
    font-family: var(--font-main, 'Outfit', sans-serif);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(16, 185, 129, 0.25);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    user-select: none;
}

.hotbar-battle-mode-float:hover {
    transform: translate(-50%, -3px) scale(1.05);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.hotbar-battle-mode-float.manual {
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(249, 115, 22, 0.25);
}

.hotbar-battle-mode-float.manual:hover {
    box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

.hotbar-battle-mode-float.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
}

.hotbar-toggle-thumb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    display: inline-block;
}

.combat-hotbar-slots {
    display: flex;
    gap: 8px;
}

.hotbar-slot-card {
    position: relative;
    width: 52px;
    height: 52px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hotbar-slot-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hotbar-slot-card.empty-slot {
    background: #f8fafc;
    border-style: dashed;
    border-color: #cbd5e1;
}

.hotbar-slot-key {
    position: absolute;
    top: 2px;
    left: 4px;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.hotbar-slot-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    background: #0f172a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.1;
}

.hotbar-slot-sprite-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotbar-slot-sprite-wrap canvas,
.hotbar-slot-sprite-wrap img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.hotbar-slot-icon-fallback {
    font-size: 16px;
    color: #94a3b8;
}

.hotbar-pokeball-img {
    width: 22px;
    height: 22px;
    background: url('../assets/pokeball.png') center/contain no-repeat;
}

.hotbar-slot-edit-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotbar-slot-card:hover .hotbar-slot-edit-btn {
    opacity: 1;
}

.hotbar-slot-edit-btn:hover {
    transform: scale(1.2);
    background: #3b82f6;
}

/* ═══════════════════════════════════════════════════════════════════
   GAME LOADING SCREEN OVERLAY (SWSH PREMIUM AESTHETIC)
   ═══════════════════════════════════════════════════════════════════ */
#game-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

#game-loading-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.glo-fullscreen-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/loading-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    animation: gloBgSlowZoom 25s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes gloBgSlowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.glo-vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.25) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 20%, transparent 45%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 20%);
    z-index: 2;
    pointer-events: none;
}

.glo-brand-wrapper {
    position: relative;
    z-index: 3;
    margin-top: 4vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gloLogoFloat 4s ease-in-out infinite alternate;
}

.glo-main-logo {
    max-width: 320px;
    width: 55vw;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 35px rgba(241, 108, 32, 0.35));
    user-select: none;
    pointer-events: none;
}

@keyframes gloLogoFloat {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    }

    100% {
        transform: translateY(-7px);
        filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.7));
    }
}

/* Footer Section */
.glo-footer-bar {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 30px auto;
    padding: 0 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pokémon Marching Track above progress bar */
.glo-pokemon-runner-track {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: hidden;
    pointer-events: none;
}

.glo-pokemon-marching-row {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 36px;
    white-space: nowrap;
    animation: gloMarchAcross 22s linear infinite;
    will-change: transform;
}

@keyframes gloMarchAcross {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.glo-marching-pkmn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
    animation: gloWalkBounce 0.45s ease-in-out infinite alternate;
}

.glo-marching-pkmn:nth-child(even) {
    animation-delay: 0.22s;
}

@keyframes gloWalkBounce {
    0% {
        transform: translateY(0) scaleY(1);
    }

    100% {
        transform: translateY(-5px) scaleY(1.05);
    }
}

.glo-marching-pkmn img,
.glo-marching-pkmn canvas {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

/* Progress bar container */
.glo-progress-container {
    width: 100%;
}

.glo-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: visible;
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.glo-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f16c20 0%, #fbbf24 60%, #ffffff 100%);
    border-radius: 999px;
    position: relative;
    transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 15px rgba(241, 108, 32, 0.8);
}

.glo-runner-glow {
    position: absolute;
    right: -4px;
    top: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 20px #fbbf24;
    animation: gloPulseGlow 1.2s ease-in-out infinite alternate;
}

@keyframes gloPulseGlow {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Status texts row */
.glo-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #f1f5f9;
    font-family: Outfit, Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.glo-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.glo-status-percent {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #fbbf24;
}

/* ==================== MODERN COMBAT MODE HUB (TEMA MOCHILA CLEAN LIGHT) ==================== */
.combat-mode-hub {
    position: fixed !important;
    top: 18px !important;
    right: 76px !important;
    z-index: 50 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    user-select: none;
    -webkit-user-select: none;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: auto !important;
    margin: 0 !important;
}

/* Oculta e desativa o Hub de Combate, Drawer e Status quando qualquer modal estiver aberto */
.combat-mode-hub.hidden,
#combat-mode-hub.hidden,
.combat-mode-hub.modal-obscured,
#combat-mode-hub.modal-obscured,
body.modal-open .combat-mode-hub,
body.modal-open #combat-mode-hub,
body.duel-active .combat-mode-hub,
body.duel-active #combat-mode-hub,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .combat-mode-hub,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) #combat-mode-hub,
body:has(.pcm-modal-overlay:not(.hidden)) .combat-mode-hub,
body:has(.pcm-modal-overlay:not(.hidden)) #combat-mode-hub,
body:has(.alpha-challenge-backdrop:not(.hidden)) .combat-mode-hub,
body:has(.alpha-challenge-backdrop:not(.hidden)) #combat-mode-hub,
body:has(.alpha-slot-picker-overlay:not(.hidden)) .combat-mode-hub,
body:has(.alpha-slot-picker-overlay:not(.hidden)) #combat-mode-hub,
body:has(.alpha-victory-modal-overlay:not(.hidden)) .combat-mode-hub,
body:has(.alpha-victory-modal-overlay:not(.hidden)) #combat-mode-hub,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .hud-bot-status-container,
body:has(.pcm-modal-overlay:not(.hidden)) .hud-bot-status-container,
body.modal-open .hud-bot-status-container,
.hud-bot-status-container.modal-obscured,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .cmh-quick-options-drawer,
body.modal-open .cmh-quick-options-drawer,
.cmh-quick-options-drawer.modal-obscured,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .hud-mode-feedback-toast,
body.modal-open .hud-mode-feedback-toast,
.hud-mode-feedback-toast.modal-obscured,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .hud-weather-indicator,
body:has(.pcm-modal-overlay:not(.hidden)) .hud-weather-indicator,
body.modal-open .hud-weather-indicator,
.hud-weather-indicator.modal-obscured,
body:has(.modal-overlay:not(.hidden):not(#npc-dialogue-modal)) .hud-menu-toggle,
body:has(.pcm-modal-overlay:not(.hidden)) .hud-menu-toggle,
body.modal-open .hud-menu-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.hud-bot-status-container {
    z-index: 45 !important;
}

/* ==================== ALTERNADOR SEGMENTADO (MANUAL / AUTO FARM) ==================== */
.cmh-segmented-controller {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #e2e8f0;
    border-radius: 26px;
    padding: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.03);
    height: 46px;
    box-sizing: border-box;
    transition: all 0.22s ease;
}

.cmh-segmented-controller:hover {
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.98);
}

/* Botões do Segmento */
.cmh-seg-btn {
    position: relative;
    border: none;
    background: transparent;
    border-radius: 20px;
    height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.cmh-seg-btn:hover {
    color: #1e293b;
    transform: translateY(-1px);
}

.cmh-seg-btn:active {
    transform: scale(0.96);
}

.cmh-seg-icon {
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Estado Ativo: MANUAL (Tema Quente SwSh Orange) */
.cmh-seg-btn.btn-manual.active {
    background: #ffffff;
    color: #ea580c;
    border: 1.5px solid #f97316;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cmh-seg-btn.btn-manual.active .cmh-seg-icon {
    color: #ea580c;
    transform: scale(1.1);
}

/* Estado Ativo: AUTO FARM (Tema Esmeralda Clean Light) */
.cmh-seg-btn.btn-auto.active {
    background: #ffffff;
    color: #059669;
    border: 1.5px solid #10b981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.22), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cmh-seg-btn.btn-auto.active .cmh-seg-icon {
    color: #059669;
    transform: scale(1.1);
}

/* Ponto Pulsante Indicador de Automação Ativa */
.cmh-seg-auto-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: none;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: cmhPulseGlow 1.8s infinite;
}

.cmh-seg-btn.btn-auto.active .cmh-seg-auto-pulse {
    display: inline-block;
}

@keyframes cmhPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        transform: scale(0.95);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
        transform: scale(1.1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(0.95);
    }
}

/* Hotkey Badge Flutuante [Z] */
.cmh-hotkey-badge {
    position: absolute;
    top: -5px;
    right: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1.5px 5px;
    border-radius: 6px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    line-height: 1;
    cursor: default;
    pointer-events: none;
}

/* ==================== BOTÃO DE OPÇÕES RÁPIDAS (DRAWER TRIGGER) ==================== */
.cmh-options-btn {
    color: #475569;
    font-size: 15px;
}

.cmh-options-btn:hover {
    color: #0f172a;
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.cmh-options-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* ==================== PAINEL / DRAWER DE OPÇÕES RÁPIDAS ==================== */
.cmh-quick-options-drawer {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 330px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99995;
    animation: cmhDrawerFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.cmh-quick-options-drawer.hidden {
    display: none !important;
}

@keyframes cmhDrawerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Drawer Header */
.cmh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

.cmh-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmh-drawer-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cmh-drawer-title {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.cmh-drawer-sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    line-height: 1;
    margin-top: 2px;
}

.cmh-drawer-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.cmh-drawer-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

/* Drawer Sections */
.cmh-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.cmh-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.cmh-drawer-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cmh-drawer-section {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 12px;
    transition: all 0.2s ease;
}

.cmh-drawer-section:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.cmh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmh-section-header.sub-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.cmh-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
}

.cmh-section-title i.icon-catch {
    color: #ef4444;
}

.cmh-section-title i.icon-potion {
    color: #3b82f6;
}

.cmh-section-title i.icon-revive {
    color: #f59e0b;
}

.cmh-section-title i.icon-route {
    color: #10b981;
}

.cmh-section-title i.icon-loot {
    color: #d97706;
}

.cmh-section-content {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmh-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cmh-subrow-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmh-subrow-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

/* Filter Pills (Somente Novos / Todos) */
.cmh-filter-pills {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 14px;
    padding: 2px;
    gap: 2px;
}

.cmh-pill-btn {
    border: none;
    background: transparent;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmh-pill-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cmh-pill-btn i {
    font-size: 9px;
    color: #eab308;
}

/* Seletor Rápido de Pokébolas */
.cmh-pokeball-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    min-height: 38px;
    align-items: center;
}

.cmh-pokeball-chip {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmh-pokeball-chip:hover {
    border-color: #ef4444;
    background: #fff;
    transform: translateY(-1px);
}

.cmh-pokeball-chip.active {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.cmh-pokeball-chip img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
}

.cmh-pokeball-chip .chip-label {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
}

.cmh-pokeball-chip .chip-qty {
    font-size: 9px;
    font-weight: 800;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 4px;
    border-radius: 6px;
}

.cmh-empty-hint {
    font-size: 10.5px;
    color: #94a3b8;
    font-style: italic;
}

/* HP Threshold Presets */
.cmh-hp-presets {
    display: inline-flex;
    gap: 4px;
}

.cmh-preset-btn {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmh-preset-btn:hover {
    border-color: #3b82f6;
    color: #1e293b;
}

.cmh-preset-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Botão Trocar Rota */
.cmh-action-btn-route {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cmh-action-btn-route:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cmh-action-btn-route i.fa-map {
    color: #10b981;
}

.cmh-action-btn-route .ml-auto {
    margin-left: auto;
    font-size: 10px;
    color: #94a3b8;
}

/* Drawer Footer */
.cmh-drawer-footer {
    padding-top: 8px;
    border-top: 1.5px solid #f1f5f9;
}

.cmh-drawer-hint {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== QUICK USE COMBAT ITEMS COMPARTILHADOS ==================== */
.cmh-round-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.cmh-round-btn:hover:not(.disabled) {
    transform: scale(1.08);
    background: #ffffff;
}

.cmh-round-btn:active:not(.disabled) {
    transform: scale(0.96);
}

.cmh-items-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cmh-slot-box {
    position: relative;
}

.cmh-slot-box.disabled {
    opacity: 0.45;
    filter: grayscale(100%);
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cmh-slot-box.disabled:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cmh-slot-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.cmh-slot-canvas {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
    pointer-events: none;
}

.cmh-slot-fallback {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.cmh-slot-count {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    line-height: 1.1;
    pointer-events: none;
    font-family: var(--font-main, 'Inter', sans-serif);
}

.cmh-slot-box.slot-pokeball:hover:not(.disabled) {
    border-color: #ef4444;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.cmh-slot-box.slot-potion:hover:not(.disabled) {
    border-color: #10b981;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.cmh-slot-box.slot-revive:hover:not(.disabled) {
    border-color: #f59e0b;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* ==================== WEATHER HUD INDICATOR (TEMA MOCHILA CLEAN LIGHT) ==================== */
.hud-weather-indicator {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 60 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 14px 6px 8px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif) !important;
    pointer-events: auto !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease !important;
    cursor: default;
    user-select: none;
}

.hud-weather-indicator.hidden,
#hud-weather-indicator.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(-10px) !important;
    pointer-events: none !important;
}

.hud-weather-icon-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hud-weather-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hud-weather-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-weather-title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.hud-weather-turns {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

.hud-weather-desc {
    font-size: 9.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.1;
    white-space: nowrap;
}

/* Modificadores de Clima Clean Light */
.hud-weather-indicator.weather-sun {
    border-color: #fed7aa !important;
}

.hud-weather-indicator.weather-sun .hud-weather-icon-bubble {
    background: #fff7ed;
    color: #f16c20;
    border: 1px solid #ffedd5;
}

.hud-weather-indicator.weather-sun .hud-weather-turns {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.hud-weather-indicator.weather-rain {
    border-color: #bfdbfe !important;
}

.hud-weather-indicator.weather-rain .hud-weather-icon-bubble {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.hud-weather-indicator.weather-rain .hud-weather-turns {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.hud-weather-indicator.weather-sandstorm {
    border-color: #fde68a !important;
}

.hud-weather-indicator.weather-sandstorm .hud-weather-icon-bubble {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.hud-weather-indicator.weather-sandstorm .hud-weather-turns {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.hud-weather-indicator.weather-snow {
    border-color: #bae6fd !important;
}

.hud-weather-indicator.weather-snow .hud-weather-icon-bubble {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #e0f2fe;
}

.hud-weather-indicator.weather-snow .hud-weather-turns {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* ==================== TOAST FLUTUANTE DE FEEDBACK DE MODO ==================== */
.hud-mode-feedback-toast {
    position: fixed !important;
    top: 72px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-12px) !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif) !important;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hud-mode-feedback-toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.hud-toast-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.hud-mode-feedback-toast.toast-auto {
    border-color: #10b981 !important;
}

.hud-mode-feedback-toast.toast-auto .hud-toast-icon-wrap {
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
}

.hud-mode-feedback-toast.toast-manual {
    border-color: #f97316 !important;
}

.hud-mode-feedback-toast.toast-manual .hud-toast-icon-wrap {
    background: #fff7ed;
    color: #ea580c;
    border: 1.5px solid #fed7aa;
}

.hud-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-toast-title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.hud-toast-desc {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

/* ==================== MINI SWITCH SINCRONIZADO NO PERFIL DO HUB ==================== */
.menu-profile-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    line-height: 1;
}

.menu-profile-mode-toggle:hover {
    transform: scale(1.06);
}

.menu-profile-mode-toggle.active-auto {
    border-color: #10b981;
    color: #059669;
    background: #ecfdf5;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.menu-profile-mode-toggle.active-manual {
    border-color: #f97316;
    color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

/* ==========================================================================
   TUTORIAL QUEST TRACKER (HUD GUIA DE ROTA)
   ========================================================================== */
#tutorial-quest-tracker {
    position: fixed;
    top: 16px;
    left: 20px;
    z-index: 500;
    pointer-events: auto;
    animation: tqtSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tqtSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container 100% Sem Fundo (Direto sobre o jogo, inspirado em quests.jpeg) */
.tqt-inner-genshin {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 320px;
    max-width: 90vw;
    box-sizing: border-box;
    transition: all 0.25s ease;
    pointer-events: none;
}

.tqt-inner-genshin:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Barra superior de categorias flutuante */
.tqt-category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: none !important;
    pointer-events: auto;
}

.tqt-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

.tqt-cat-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.tqt-cat-btn.active {
    color: #fef08a;
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.tqt-star-symbol {
    font-size: 16px;
    color: #fef08a;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.9));
    animation: tqtStarGlow 2.5s infinite ease-in-out;
}

@keyframes tqtStarGlow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

.tqt-cat-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tqt-dist {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fef08a !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6) !important;
    display: inline-block;
}

.tqt-untrack-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin-left: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    pointer-events: auto;
}

.tqt-untrack-btn.is-tracking:hover {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.85);
    border-color: #f87171;
    transform: scale(1.12);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.tqt-untrack-btn.is-paused {
    color: #fdba74;
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(249, 115, 22, 0.7);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
    animation: tqtPulseGlow 2.5s infinite ease-in-out;
}

.tqt-untrack-btn.is-paused:hover {
    color: #ffffff;
    background: #f16c20;
    border-color: #fb923c;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(241, 108, 32, 0.8);
}

@keyframes tqtPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.7);
    }
}

/* Corpo do texto da missão 100% Sem Fundo */
.tqt-content-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: auto;
}

.tqt-golden-title {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6);
    line-height: 1.25;
}

.tqt-objective-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tqt-bullet {
    color: #facc15;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.8);
}

.tqt-desc-text,
#tqt-desc-label {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.4;
    text-shadow: 0 1px 2px #000000, 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.2px;
    word-break: break-word;
}

.tqt-obj-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.35;
}

.tqt-obj-done {
    color: #86efac !important;
}

.tqt-obj-done .tqt-obj-check {
    color: #4ade80;
    font-weight: 900;
}

.tqt-obj-pending {
    color: #ffffff !important;
}

.tqt-obj-pending .tqt-obj-check {
    color: #facc15;
    font-weight: 900;
}

.tqt-obj-check {
    font-size: 13px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.tqt-actions-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.tqt-view-log-btn,
.tqt-go-target-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 0 !important;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    transition: all 0.2s ease;
}

.tqt-view-log-btn:hover,
.tqt-go-target-btn:hover {
    color: #fef08a !important;
    transform: translateX(2px);
}

.tqt-key-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   HUD ITEM DROP NOTIFICATIONS (INSPIRADO EM ITEM_PEGO.JPEG)
   Posicionado diretamente abaixo do menu de missões no HUD.
   ========================================================================== */
.hud-item-notifications-container {
    position: fixed !important;
    top: 180px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0 !important;
    pointer-events: none;
    z-index: 505;
    width: 320px;
    max-width: 90vw;
    transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Notificação Toast de Item Coletado (Inspirado em item_pego.jpeg) */
.hin-toast-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 13px 1px 6px;
    background: rgba(71, 85, 105, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    width: 310px;
    min-height: 32px;
    pointer-events: none;
    box-sizing: border-box;
    animation: hinToastEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

@keyframes hinToastEnter {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hin-toast-item.hin-leaving {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.94) !important;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hin-toast-item.hin-pulse {
    animation: hinToastPulse 0.3s ease-out;
}

@keyframes hinToastPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

/* Barra lateral vertical de destaque (cyan/light blue padrão) */
.hin-accent-bar {
    width: 3.5px;
    height: 17px;
    border-radius: 2px;
    background: #7dd3fc;
    box-shadow: 0 0 6px rgba(125, 211, 252, 0.55);
    flex-shrink: 0;
    margin-left: 1px;
}

.hin-accent-bar.hin-accent-success {
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34, 197, 94, 0.7);
}

.hin-accent-bar.hin-accent-warning {
    background: #f97316;
    box-shadow: 0 0 7px rgba(249, 115, 22, 0.7);
}

.hin-accent-bar.hin-accent-danger {
    background: #ef4444;
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.7);
}

.hin-accent-bar.hin-accent-info {
    background: #38bdf8;
    box-shadow: 0 0 7px rgba(56, 189, 248, 0.7);
}

.hin-accent-bar.hin-accent-gold {
    background: #eab308;
    box-shadow: 0 0 7px rgba(234, 179, 8, 0.75);
}

.hin-accent-bar.hin-accent-exp {
    background: #a855f7;
    box-shadow: 0 0 7px rgba(168, 85, 247, 0.75);
}

.hin-vector-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}

.hin-vector-icon.gold {
    color: #fbbf24;
    background: rgba(234, 179, 8, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.hin-vector-icon.exp {
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.hin-reward-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 1px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: auto;
}

.hin-reward-badge.gold {
    color: #fde047;
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(234, 179, 8, 0.45);
}

.hin-reward-badge.exp {
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid rgba(168, 85, 247, 0.45);
}

/* Container do ícone / sprite */
.hin-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: -2px 0;
}

.hin-sprite-canvas,
.hin-sprite-img {
    max-width: 36px;
    max-height: 36px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.hin-sprite-fallback {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Conteúdo textual */
.hin-content {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.hin-item-name {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.hin-poke-lvl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 5px;
    height: 17px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fef08a;
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 4px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1;
    flex-shrink: 0;
}

.hin-pokemon-sprite {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.hin-item-qty {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #ffffff;
    margin-left: auto;
    padding-left: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
    white-space: nowrap;
}

.hin-item-qty.hin-status-success {
    color: #86efac;
    font-weight: 600;
}

.hin-item-qty.hin-status-warning {
    color: #fed7aa;
    font-weight: 600;
}

.hin-item-qty.hin-status-danger {
    color: #fca5a5;
    font-weight: 600;
}

.hin-item-qty.hin-status-info {
    color: #bae6fd;
    font-weight: 600;
}


/* ==========================================================================
   REGISTRO DE MISSÕES (PADRÃO TEMA MOCHILA - CLEAN LIGHT)
   ========================================================================== */

/* Área de Conteúdo: Layout estrito em 2 colunas horizontais lado a lado */
.pkmn-shop-content.quest-log-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 14px !important;
    height: calc(100% - 65px) !important;
    padding: 12px 20px 20px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative;
    z-index: 5;
}

/* ==================== COLUNA ESQUERDA: SIDEBAR DE MISSÕES ==================== */
.quest-sidebar-panel {
    flex: 0 0 310px;
    width: 310px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 8px;
    overflow: hidden;
}

/* Header de Categoria */
.quest-category-badge-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 10px;
}

.quest-cat-leaf {
    font-size: 13px;
}

.quest-cat-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.3px;
}

/* Abas de Filtro Rápidas */
.quest-filter-tabs-row {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.quest-filter-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 5px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: var(--font-main);
}

.quest-filter-tab:hover {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.8);
}

.quest-filter-tab.active {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Lista Scrollable */
.quest-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

/* Item da Lista de Missões no Menu Lateral */
.quest-nav-item {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 6px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quest-nav-item:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateX(2px);
}

.quest-nav-item.active-state {
    border-left-color: #f16c20;
}

.quest-nav-item.completed-state {
    border-left-color: #16a34a;
    opacity: 0.85;
}

.quest-nav-item.locked-state {
    border-left-color: #cbd5e1;
    opacity: 0.6;
}

/* Missão Selecionada no Menu Lateral */
.quest-nav-item.selected {
    border-color: #f16c20 !important;
    border-left-color: #f16c20 !important;
    border-left-width: 5px !important;
    background: #fffaf5 !important;
    box-shadow: 0 2px 8px rgba(241, 108, 32, 0.15) !important;
}

.quest-nav-title {
    font-size: 13px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
}

.quest-nav-item.selected .quest-nav-title {
    color: #c2410c;
}

.quest-nav-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== COLUNA DIREITA: PAINEL DE DETALHES ==================== */
.quest-detail-panel {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 22px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Título e Cabeçalho do Detalhe */
.quest-detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.quest-detail-step-badge {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quest-detail-status-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pill-active {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.pill-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pill-locked {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.quest-detail-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

/* Descrição Narrativa */
.quest-detail-story {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

/* Seção Alvos da Missão */
.quest-detail-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.quest-detail-section-title i {
    color: #f16c20;
}

.quest-target-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.quest-target-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f16c20;
    flex-shrink: 0;
}

.quest-target-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.quest-target-npc {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 6px;
}

.ql-objectives-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
}

.ql-obj-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.ql-obj-done {
    color: #15803d;
}

.ql-obj-done .ql-obj-icon {
    color: #16a34a;
    font-weight: 900;
}

.ql-obj-pending {
    color: #334155;
}

.ql-obj-pending .ql-obj-icon {
    color: #f59e0b;
    font-weight: 900;
}

.ql-obj-icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 14px;
}

.ql-obj-text {
    flex: 1;
}

/* Seção Recompensas em Cards */
.quest-rewards-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: auto;
}

.quest-reward-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    background: #ffffff;
}

.reward-exp {
    border-color: #93c5fd;
    color: #1e40af;
}

.reward-exp .quest-reward-icon {
    color: #2563eb;
}

.reward-exp .quest-reward-label {
    background: #dbeafe;
    color: #1e40af;
}

.reward-gold {
    border-color: #fde68a;
    color: #92400e;
}

.reward-gold .quest-reward-icon {
    color: #d97706;
}

.reward-gold .quest-reward-label {
    background: #fef3c7;
    color: #92400e;
}

.reward-item {
    border-color: #c4b5fd;
    color: #5b21b6;
}

.reward-item .quest-reward-icon {
    color: #7c3aed;
}

.reward-item .quest-reward-label {
    background: #ede9fe;
    color: #5b21b6;
}

.quest-reward-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.quest-reward-val {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.quest-reward-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 8.5px;
    font-weight: 800;
    text-align: center;
    padding: 1px 0;
    text-transform: uppercase;
}

/* Rodapé com Botão de Rastreamento */
.quest-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1.5px solid #f1f5f9;
    margin-top: 14px;
}

.quest-detail-footer-hint {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-tracking-main {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.btn-tracking-main:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.btn-tracking-main.tracking-active {
    background: #15803d;
    color: #ffffff;
}

.btn-tracking-main i.btn-target-icon {
    font-size: 13px;
    color: #38bdf8;
    animation: tqtTargetSpin 4s infinite linear;
}

.btn-tracking-main.tracking-active i.btn-target-icon {
    color: #86efac;
}

.btn-tracking-main.btn-untrack {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-tracking-main.btn-untrack i {
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s ease;
}

.btn-tracking-main.btn-untrack:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
    transform: translateY(-1px);
}

.btn-tracking-main.btn-untrack:hover i {
    color: #dc2626;
}

.quest-nav-tracked-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-left: 5px;
    color: #ea580c;
    animation: tqtCompassPulse 2s infinite ease-in-out;
}

@keyframes tqtCompassPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@keyframes tqtTargetSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   WORLD MAP — Mapa Interativo do Mundo
   ============================================================ */

.wm-shop-modal {
    background: #f2f2f2 !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

/* ── Zoom Pill (Mochila Style) ── */
.wm-header-zoom-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wm-zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wm-zoom-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s ease;
}

.wm-zoom-btn:hover {
    background: #0ea5e9;
    border-color: #0284c7;
    color: #ffffff;
    transform: scale(1.08);
}

.wm-zoom-reset {
    background: #f1f5f9;
    color: #64748b;
}

.wm-zoom-label {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    min-width: 38px;
    text-align: center;
}

.wm-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(95vw, 1100px);
    height: min(90vh, 820px);
    background: #0a0f1a;
    border: 2px solid #1e3a5f;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 100, 255, 0.25), 0 25px 80px rgba(0, 0, 0, 0.8);
    font-family: var(--font-main, 'Outfit', sans-serif);
}

/* ── Header ── */
.wm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2a45 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.wm-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-header-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 8px #60a5fa);
}

.wm-header-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #e2e8f0;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.wm-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wm-zoom-label {
    font-size: 11px;
    font-weight: 700;
    color: #7dd3fc;
    min-width: 36px;
    text-align: center;
    letter-spacing: 0.5px;
}

.wm-close-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
}

.wm-close-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #fff;
    border-color: #ef4444;
}

/* ── Viewport (drag area) ── */
.wm-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #35679A;
    user-select: none;
}

/* ── Canvas (movable) ── */
.wm-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    transition: none;
}

.wm-map-image {
    display: block;
    width: 1024px;
    height: 1024px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── SVG Routes Layer ── */
.wm-svg-routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 1024px;
    height: 1024px;
    pointer-events: none;
    z-index: 2;
}

.wm-route-polygon {
    pointer-events: auto;
    cursor: pointer;
    fill: transparent;
    stroke: transparent;
    /* Sem contorno em repouso */
    stroke-width: 0;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: stroke 0.1s ease;
}

/* Unlocked route: transparente sem borda em repouso */
.wm-route-polygon.unlocked {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
}

/* Locked route: leve névoa escura sem borda em repouso */
.wm-route-polygon.locked {
    fill: rgba(0, 0, 0, 0.22);
    stroke: transparent;
    stroke-width: 0;
}

/* Next route: transparente sem borda em repouso */
.wm-route-polygon.next {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
}

/* ── HOVER: Contorno branco nítido, sem filtros pesados para evitar desfoque no Chromium ── */
.wm-route-polygon:hover,
.wm-route-polygon.is-hovered {
    fill: transparent !important;
    /* Totalmente transparente */
    stroke: #ffffff !important;
    /* Contorno branco límpido e nítido */
    stroke-width: 2.2px !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
    stroke-dasharray: none !important;
    cursor: pointer;
}

/* ── Overlays container (Centroid badges) ── */
.wm-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 1024px;
    height: 1024px;
    pointer-events: none;
    z-index: 3;
}

/* Floating Centroid Labels — Compacto sem cortar texto */
.wm-centroid-badge {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    cursor: pointer;
    transition: transform 0.18s ease;
    user-select: none;
    z-index: 4;
    max-width: none;
}

/* Informações da região em foco destacadas em primeiro plano */
.wm-centroid-badge.is-hovered {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 50 !important;
}

/* City Label — Nome da cidade reduzido para caber inteiro sem cortar */
.wm-city-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 5.2px;
    font-weight: 800;
    letter-spacing: 0.1px;
    color: #ffffff;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.88);
    padding: 0.5px 3px;
    border-radius: 5px;
    border: 1px solid rgba(74, 222, 128, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    user-select: none;
    pointer-events: auto;
}

.wm-city-label i {
    font-size: 5px;
    color: #4ade80;
}

/* Route Title — Título da Rota compacto exibido por completo */
.wm-route-title {
    display: inline-flex;
    align-items: center;
    font-size: 5.2px;
    font-weight: 800;
    letter-spacing: 0.1px;
    color: #ffffff;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.85);
    padding: 0.5px 3px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    user-select: none;
    pointer-events: auto;
}

/* Locked Route Label — Ícone + Nome bloqueado exibido por completo */
.wm-locked-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: #f1f5f9;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.82);
    padding: 0.5px 2.5px;
    border-radius: 5px;
    border: 1px solid rgba(203, 213, 225, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    user-select: none;
    pointer-events: auto;
}

.wm-locked-label i {
    font-size: 5px;
    color: #f59e0b;
}

/* Pokémon sprites row compacto */
.wm-pokemon-sprites {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 1px 0;
}

/* Mini White Pokéball Slot behind each Pokémon */
.wm-poke-slot {
    position: relative;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.wm-poke-slot:hover {
    transform: scale(1.18);
}

.wm-pokeball-bg {
    position: absolute;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.wm-poke-canvas-wrapper {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wm-poke-canvas-wrapper canvas {
    width: 13px !important;
    height: 13px !important;
    image-rendering: pixelated;
    object-fit: contain;
}

/* Silhueta preta para Pokémon ainda não encontrados */
.wm-poke-canvas-wrapper.undefeated canvas {
    filter: brightness(0) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.4));
    opacity: 0.95;
}

/* Fallback se canvas não renderizado */
.wm-poke-fallback {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    color: #94a3b8;
    font-weight: 800;
}

.wm-poke-badge.defeated canvas {
    image-rendering: pixelated;
    width: 16px !important;
    height: 16px !important;
}

/* ==================== WORLD MAP LEADER & BADGE (PILL COMPACTO - CABE NA REGIÃO) ==================== */
.wm-leader-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 9999px;
    height: 14px;
    padding: 0 0 0 2px;
    margin-top: 1.5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    user-select: none;
    gap: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 10;
    max-width: none;
}

.wm-leader-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.wm-leader-outfit-wrapper {
    position: relative;
    margin-left: -7px;
    margin-top: -4px;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.wm-leader-outfit-canvas {
    width: 20px !important;
    height: 20px !important;
    image-rendering: pixelated;
    object-fit: contain;
    display: block;
    background: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
}

.wm-leader-pill:hover .wm-leader-outfit-canvas {
    transform: scale(1.1);
}

.wm-leader-pill-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 5.8px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.2px;
    white-space: nowrap;
    padding: 0 2.5px 0 1px;
    line-height: 1;
    overflow: visible;
    text-overflow: clip;
}

.wm-leader-badge-circle {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -1px;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.wm-leader-pill:hover .wm-leader-badge-circle {
    transform: scale(1.08);
}

.wm-leader-badge-circle.unlocked {
    border-color: #f16c20;
    box-shadow: 0 0 3px rgba(241, 108, 32, 0.4);
}

.wm-badge-canvas {
    width: 11px !important;
    height: 11px !important;
    image-rendering: pixelated;
    object-fit: contain;
    display: block;
    background: transparent;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.wm-badge-canvas.locked {
    filter: grayscale(1) opacity(0.55);
}

.wm-badge-canvas.unlocked {
    filter: drop-shadow(0 0 3px rgba(241, 108, 32, 0.7));
}

/* â”€â”€ Loading â”€â”€ */
.wm-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(10, 15, 26, 0.7);
    z-index: 20;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

.wm-loading-pokeball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    border-top-color: transparent;
    animation: wm-spin 0.8s linear infinite;
}

@keyframes wm-spin {
    to {
        transform: rotate(360deg);
    }
}

.wm-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 26, 0.7);
    z-index: 20;
    font-size: 14px;
    color: #f87171;
    font-weight: 600;
    text-align: center;
    padding: 24px;
}

/* ── Footer Bar (Mochila Style) ── */
.wm-shop-footer,
.wm-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px !important;
    background: #ffffff !important;
    border-top: 1.5px solid #e2e8f0 !important;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

/* Mochila SwSh Footer Action Buttons */
.wm-swsh-footer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wm-swsh-footer-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wm-swsh-footer-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.wm-swsh-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.wm-swsh-icon.green {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.wm-swsh-icon.red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.wm-swsh-icon.purple {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.wm-swsh-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wm-swsh-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.wm-swsh-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
}

/* Legend (Mochila Style) */
.wm-shop-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.wm-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wm-legend-unlocked {
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.6);
}

.wm-legend-next {
    background: #eab308;
    box-shadow: 0 0 5px rgba(234, 179, 8, 0.6);
}

.wm-legend-locked {
    background: #475569;
}

.wm-legend-complete {
    background: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.6);
}

/* â”€â”€ Responsivo â”€â”€ */
@media (max-width: 640px) {
    .wm-container {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .wm-header-title {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .wm-footer {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }

    .wm-swsh-footer-btn {
        min-width: unset;
        width: 100%;
    }
}

/* Enter route button inside region area */
.wm-enter-btn {
    margin-top: 3px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: 1px solid rgba(74, 222, 128, 0.6);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    transition: all 0.15s ease;
    z-index: 10;
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wm-enter-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.6);
}

.wm-enter-btn:active {
    transform: scale(0.97);
}



/* ==========================================================================
   Tarefas de Pesquisa Pokémon (Inspirations/quest.jpeg + Tema Mochila)
   ========================================================================== */
.pq-modal-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
}

.pq-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Carrossel de Pokémons no topo */
.pq-pokemon-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    max-width: 480px;
    padding: 4px 8px;
    scrollbar-width: none;
}

.pq-pokemon-carousel::-webkit-scrollbar {
    display: none;
}

.pq-carousel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pq-carousel-avatar:hover {
    transform: scale(1.12);
    border-color: #cbd5e1;
}

.pq-carousel-avatar.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 4px 10px rgba(139, 92, 246, 0.2);
    transform: scale(1.18);
    background: #f5f3ff;
}

.pq-carousel-avatar img,
.pq-carousel-avatar canvas {
    max-width: 85%;
    max-height: 85%;
    image-rendering: pixelated;
}

/* Coluna Esquerda: Showcase */
.pq-left-showcase {
    width: 300px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.pq-showcase-pedestal {
    width: 100%;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pq-pedestal-ring {
    position: absolute;
    bottom: 25px;
    width: 160px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.2) 0%, rgba(241, 108, 32, 0.08) 50%, transparent 75%);
    border: 1.5px dashed rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.pq-pokemon-canvas-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
}

.pq-pokemon-canvas-container img,
.pq-pokemon-canvas-container canvas {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.pq-pokemon-canvas-container:hover img,
.pq-pokemon-canvas-container:hover canvas {
    transform: scale(1.08);
}

.pq-showcase-info {
    width: 100%;
    text-align: center;
}

.pq-showcase-num {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pq-showcase-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 2px 0 6px 0;
}

.pq-showcase-types {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.pq-type-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pq-overall-progress-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pq-overall-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.pq-overall-bar-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pq-overall-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f16c20, #8b5cf6);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.pq-overall-counts {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-align: right;
}

/* Coluna Direita: Tabela de Tarefas */
.pq-right-tasks-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.pq-table-header-row {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pq-task-cards-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.pq-task-cards-scroll::-webkit-scrollbar {
    width: 5px;
}

.pq-task-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Card Individual de Tarefa */
.pq-task-card {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pq-task-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pq-task-card.is-completed {
    background: #faf5ff;
    border-color: #ddd6fe;
}

.pq-task-card.is-claimed {
    opacity: 0.75;
    background: #f1f5f9;
}

.pq-task-topic {
    flex: 2.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pq-task-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #64748b;
    flex-shrink: 0;
}

.pq-task-card.is-completed .pq-task-icon-box {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.pq-task-desc-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
}

.pq-task-progress-col {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.pq-progress-track {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.pq-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pq-task-card.is-completed .pq-progress-fill {
    background: #8b5cf6;
}

.pq-progress-text-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pq-task-bonus-col {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pq-bonus-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pq-bonus-btn.can-claim {
    background: #f16c20;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(241, 108, 32, 0.35);
    animation: gloWalkBounce 0.6s infinite alternate;
}

.pq-bonus-btn.can-claim:hover {
    background: #e3343d;
    transform: translateY(-1px);
}

.pq-bonus-btn.claimed {
    background: #e2e8f0;
    color: #64748b;
    cursor: default;
}

.pq-bonus-btn.locked {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    cursor: default;
}

.pq-task-marco-col {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pq-marco-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: 999px;
}

/* Footer com Botão Resgatar Todas */
.pq-tasks-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
}

.pq-claim-all-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.pq-claim-all-btn:not(:disabled) {
    background: #f16c20;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.4);
}

.pq-claim-all-btn:not(:disabled):hover {
    background: #e3343d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 108, 32, 0.5);
}

.pq-claim-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
}

/* ==========================================================
/* ==========================================================
   EGG HATCHING MODAL & ANIMATION (Tema Mochila - Clean Light)
   ========================================================== */
.egg-hatch-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: var(--font-main, sans-serif);
}

.egg-hatch-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.egg-hatch-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 18px 20px 18px 20px;
    width: 320px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.egg-hatch-overlay.active .egg-hatch-card {
    transform: scale(1);
}

.egg-hatch-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s ease;
    padding: 0;
    z-index: 10;
}

.egg-hatch-close-x:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.08);
}

.egg-hatch-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #f16c20;
    border: 1px solid #ffedd5;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Stage do Ovo */
.egg-hatch-stage {
    width: 100%;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 10px 0;
}

.egg-svg-container {
    width: 90px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.egg-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Animações do Ovo */
.egg-wobble {
    animation: eggWobbleAnim 0.7s ease-in-out infinite alternate;
    transform-origin: 50% 90%;
}

@keyframes eggWobbleAnim {
    0% {
        transform: rotate(-7deg);
    }

    100% {
        transform: rotate(7deg);
    }
}

.egg-rattle {
    animation: eggRattleAnim 0.12s linear infinite alternate;
    transform-origin: 50% 90%;
}

@keyframes eggRattleAnim {
    0% {
        transform: translate(-3px, -1px) rotate(-4deg);
    }

    100% {
        transform: translate(3px, 1px) rotate(4deg);
    }
}

.egg-cracking-glow {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.75));
}

/* Flash de Eclosão */
.egg-burst-flash {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(254, 243, 199, 0.8) 50%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.25s ease;
}

.egg-burst-flash.active {
    opacity: 1;
    animation: flashFade 0.6s ease forwards;
}

@keyframes flashFade {
    0% {
        opacity: 1;
        transform: scale(0.6);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Revelação do Pokémon */
.egg-pokemon-revealed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pokemonRevealPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    z-index: 6;
}

@keyframes pokemonRevealPop {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(15px);
    }

    70% {
        transform: scale(1.12) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.egg-revealed-sprite {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.egg-revealed-canvas {
    image-rendering: pixelated;
    transform: scale(1.8);
    transform-origin: center center;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
}

/* Títulos & Textos */
.egg-hatch-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

.egg-hatch-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.egg-hatch-desc strong {
    color: #0f172a;
    font-weight: 700;
}

/* Recompensas */
.egg-rewards-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.egg-reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.egg-reward-pill.gold {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.egg-reward-pill.exp {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Botão Começar Jornada */
.egg-start-journey-btn {
    width: 100%;
    background: linear-gradient(135deg, #f16c20, #e05510);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.egg-start-journey-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(241, 108, 32, 0.4);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.egg-start-journey-btn:active {
    transform: translateY(0);
}

/* ==========================================================
   WORLD MAP: DESTAQUE DE OBJETIVO DE MISSÃO (Rota 1)
   ========================================================== */
.wm-quest-target-badge {
    outline: 2px solid #f16c20 !important;
    animation: wmQuestPulse 1.6s ease-in-out infinite alternate !important;
}

@keyframes wmQuestPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 108, 32, 0.5), 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 7px rgba(241, 108, 32, 0), 0 4px 16px rgba(241, 108, 32, 0.45);
    }
}

/* ==========================================================
   MENU TUTORIAL TOUR (Tema Mochila - Clean Light)
   ========================================================== */
.menu-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menu-tour-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.menu-tour-parent-elevated {
    z-index: 100000 !important;
}

.menu-tour-highlight-target {
    position: relative !important;
    z-index: 100001 !important;
    box-shadow: 0 0 0 3px #f16c20, 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    transition: box-shadow 0.3s ease !important;
}

.menu-tour-arrow {
    position: fixed;
    z-index: 100002;
    color: #f16c20;
    font-size: 24px;
    animation: tourArrowBounce 0.8s ease-in-out infinite alternate;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

@keyframes tourArrowBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-7px);
    }
}

.menu-tour-dialog {
    position: fixed;
    z-index: 100003;
    width: 340px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    font-family: var(--font-main, sans-serif);
    animation: tourDialogPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tourDialogPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.menu-tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff7ed;
    color: #f16c20;
    border: 1px solid #ffedd5;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.menu-tour-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.menu-tour-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 14px 0;
}

.menu-tour-desc strong {
    color: #0f172a;
    font-weight: 700;
}

.menu-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-tour-step-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s ease;
}

.menu-tour-dot.active {
    width: 16px;
    border-radius: 999px;
    background: #f16c20;
}

.menu-tour-next-btn {
    background: linear-gradient(135deg, #f16c20, #e05510);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.menu-tour-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(241, 108, 32, 0.4);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.menu-tour-next-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   POKETASK STORE MODAL (Clean Light / Tema Mochila)
   ========================================================================== */

.store-box {
    width: 900px;
    max-width: 96vw;
    height: 88vh;
    max-height: 840px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    animation: storeModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storeModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.store-orange-bg {
    position: absolute;
    top: 0;
    left: -40px;
    width: 220px;
    height: 100%;
    background: linear-gradient(135deg, rgba(241, 108, 32, 0.08), rgba(241, 108, 32, 0.01));
    clip-path: polygon(0 0, 100% 0, 35% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

.store-pokeball-bg {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.store-header {
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.store-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.store-header-title i {
    color: #f16c20;
    font-size: 20px;
}

.store-vip-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-vip-badge.free {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.store-vip-badge.vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.store-close-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.store-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Scroll Body */
.store-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.store-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.store-scroll-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Banner Pitch */
.store-banner-card {
    background: linear-gradient(135deg, #ffffff, #fffaf5);
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(241, 108, 32, 0.05);
    margin-bottom: 22px;
}

.store-banner-badge {
    font-size: 10px;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.store-banner-h2 {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.store-banner-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Section Header */
.store-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.store-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #fff7ed;
    color: #f16c20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid #ffedd5;
}

.store-section-h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.store-section-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 999px;
}

.store-section-badge.badge-cosmetic {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.store-section-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: -6px 0 14px 0;
}

/* Perks Box */
.store-perks-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.store-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-perk-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #f16c20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.store-perk-text {
    font-size: 12px;
    color: #334155;
    line-height: 1.35;
}

.store-perk-text strong {
    color: #0f172a;
}

/* VIP Plans Grid */
.store-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .store-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.store-plan-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.store-plan-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.store-plan-card.highlight {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.store-plan-tag {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.store-plan-tag.tag-discount {
    background: #dcfce7;
    color: #15803d;
}

.store-plan-tag.tag-popular {
    background: #e0f2fe;
    color: #0369a1;
}

.store-plan-tag.tag-best {
    background: #fef3c7;
    color: #b45309;
}

.store-plan-days {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.store-plan-price {
    font-size: 20px;
    font-weight: 900;
    color: #f16c20;
    margin-bottom: 2px;
}

.store-plan-sub {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
}

.store-buy-btn {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-buy-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.store-buy-btn.btn-highlight-action {
    background: linear-gradient(135deg, #f16c20, #ea580c);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(241, 108, 32, 0.25);
}

.store-buy-btn.btn-highlight-action:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.store-buy-btn.btn-gold-action {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.store-buy-btn.btn-gold-action:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Cosmetics Grid (Outfits & Wings) */
.store-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.store-item-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.store-item-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.store-item-rarity {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.store-item-rarity.rare {
    background: #e0f2fe;
    color: #0369a1;
}

.store-item-rarity.epic {
    background: #f3e8ff;
    color: #7e22ce;
}

.store-item-rarity.legendary {
    background: #fef3c7;
    color: #b45309;
}

.store-item-rarity.mythic {
    background: #fce7f3;
    color: #be185d;
}

.store-preview-canvas-box {
    width: 100%;
    height: 100px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.store-canvas-holder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-preview-loading {
    color: #94a3b8;
    font-size: 16px;
}

.store-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-item-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.store-item-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 10px;
    flex: 1;
}

.store-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.store-item-price {
    font-size: 15px;
    font-weight: 900;
    color: #f16c20;
}

.store-buy-btn-sm {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-buy-btn-sm:hover {
    background: #f16c20;
    transform: translateY(-1px);
}

/* Footer Note */
.store-footer-note {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.store-footer-note i {
    color: #10b981;
}

/* ==================== CHECKOUT DRAWER / MODAL ==================== */
.store-checkout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInCheckout 0.2s ease;
}

@keyframes fadeInCheckout {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.store-checkout-card {
    width: 480px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.store-checkout-header {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-checkout-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-checkout-title i {
    color: #10b981;
}

.store-checkout-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.store-checkout-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.store-checkout-summary {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-checkout-item-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.store-checkout-item-price {
    font-size: 17px;
    font-weight: 900;
    color: #f16c20;
}

.store-checkout-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    gap: 4px;
    margin: 14px 18px 0 18px;
    border-radius: 8px;
}

.store-checkout-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-checkout-tab.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-method-panel {
    padding: 18px;
}

.store-method-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.store-action-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #f16c20, #ea580c);
    color: #ffffff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.25);
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-action-btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-1px);
}

.store-pix-grid {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 480px) {
    .store-pix-grid {
        flex-direction: column;
    }
}

.store-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
}

.store-qr-wrapper img {
    width: 140px;
    height: 140px;
    border-radius: 4px;
}

.store-qr-timer {
    font-size: 11px;
    font-weight: 700;
    color: #ea580c;
    margin-top: 6px;
}

.store-pix-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-input-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
    display: block;
}

.store-copy-row {
    display: flex;
    gap: 6px;
}

.store-input-readonly {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 11px;
    color: #475569;
    font-family: monospace;
    outline: none;
}

.store-btn-copy {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-btn-copy:hover {
    background: #f16c20;
}

.store-waiting-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #0284c7;
    margin-top: 4px;
}

.store-dev-mock-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.store-dev-mock-btn {
    width: 100%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-dev-mock-btn:hover {
    background: #dcfce7;
}

/* Card Form */
.store-form-group {
    margin-bottom: 12px;
}

.store-form-row {
    display: flex;
    gap: 10px;
}

.store-form-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.store-form-input:focus {
    border-color: #f16c20;
}

/* Success View */
.store-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.store-success-icon {
    font-size: 46px;
    color: #10b981;
    margin-bottom: 10px;
}

.store-success-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.store-success-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px 0;
    line-height: 1.4;
}

/* ==========================================================================
   POKETASK MODERN CHAT WIDGET (Inspired by Inspirations/chat.jpeg)
   ========================================================================== */

.chat-hub-widget {
    position: fixed;
    bottom: 16px;
    left: 20px;
    font-family: var(--font-main, 'Outfit', 'Inter', sans-serif);
    user-select: none;
    z-index: 9990;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.chat-hub-widget.minimized {
    width: auto;
}

.chat-hub-widget.minimized .chat-modern-window {
    display: none !important;
}

.chat-hub-widget:not(.minimized) .chat-fab-btn {
    display: none !important;
}

/* 1. BOTÃO ÍCONE DISCRETO NO CANTO INFERIOR ESQUERDO (ESTILO HUB MISSÕES / TRANSPARENTE) */
.chat-fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    background: transparent !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
    box-shadow: none !important;
    position: relative;
    outline: none;
}

.chat-fab-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.chat-fab-btn:active {
    color: #fef08a;
    background: rgba(250, 204, 21, 0.18) !important;
    border: 1px solid rgba(250, 204, 21, 0.45) !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5) !important;
    transform: scale(1.1);
}

.chat-fab-icon {
    font-size: 14px;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chat-fab-btn:hover .chat-fab-icon {
    transform: scale(1.05);
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 2. JANELA PRINCIPAL MODERNA (Inspirada em chat.jpeg) */
.chat-modern-window {
    width: 590px;
    height: 480px;
    max-width: 95vw;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    overflow: hidden;
    position: relative;
    animation: chatWindowPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatWindowPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==================== COLUNA 1: DOCK LATERAL ESCURO ==================== */
.chat-dock-sidebar {
    width: 56px;
    background: linear-gradient(180deg, #252839 0%, #1c1d2b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px 0;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.chat-dock-brand {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f16c20, #e05510);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(241, 108, 32, 0.4);
    cursor: default;
}

.chat-dock-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.chat-dock-btn {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.chat-dock-btn:hover {
    color: #ffffff;
}

.chat-dock-btn-inner {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Destaque Ativo com o corte recortado orgânico do chat.jpeg */
.chat-dock-btn.active {
    background: #f8fafc;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    color: #4f46e5;
}

.chat-dock-btn.active .chat-dock-btn-inner {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.chat-dock-btn .planet-glow {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
}

.chat-dock-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chat-dock-footer-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.chat-dock-footer-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.chat-dock-brand-label {
    font-size: 8px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.6px;
}

/* ==================== COLUNA 2: SUB-COLUNA DE CANAIS VERTICAIS ==================== */
.chat-channels-column {
    width: 78px;
    background: #f8fafc;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 14px;
    overflow-y: auto;
    flex-shrink: 0;
}

.chat-channel-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 2px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-channel-btn:hover {
    transform: translateY(-1px);
}

.chat-channel-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #64748b;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.chat-channel-btn:hover .chat-channel-icon-circle {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Cores dos Ícones de Canais */
.chat-channel-btn.active .icon-purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #8b5cf6;
    color: #6d28d9;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.chat-channel-btn.active .icon-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #10b981;
    color: #047857;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.chat-channel-btn.active .icon-indigo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.chat-channel-btn.active .icon-amber {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.chat-channel-btn.active .icon-blue {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-color: #0284c7;
    color: #0369a1;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

.chat-channel-btn.active .icon-rose {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    border-color: #f43f5e;
    color: #be185d;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.chat-channel-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.15s;
}

.chat-channel-btn.active .chat-channel-label {
    color: #0f172a;
    font-weight: 800;
}

.channel-unread-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
}

/* ==================== COLUNA 3: FEED PRINCIPAL DE MENSAGENS ==================== */
.chat-feed-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Header */
.chat-feed-header {
    padding: 12px 18px;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.chat-feed-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-feed-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.chat-feed-subtitle {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.chat-feed-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-icon-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.chat-header-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.chat-header-icon-btn.close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Options Popover */
.chat-options-popover {
    position: absolute;
    top: 50px;
    right: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
    animation: fadeInPopover 0.15s ease;
}

@keyframes fadeInPopover {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-popover-item {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    transition: all 0.12s;
    font-family: inherit;
}

.chat-popover-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Feed Container */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.chat-messages-container::-webkit-scrollbar {
    width: 5px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ==================== MENSAGEM / BOLHA MODERNA (Estilo chat.jpeg) ==================== */
.chat-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 95%;
    animation: chatMsgAppear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatMsgAppear {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-avatar-inner {
    width: 100%;
    height: 100%;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-msg-avatar-inner img {
    width: 100%;
    height: 100%;
    max-width: 34px;
    max-height: 34px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.chat-msg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
}

.chat-msg-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
}

.chat-msg-author-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
}

.chat-msg-time {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.chat-badge-tag {
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.chat-badge-tag.tag-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border: 1px solid #fcd34d;
}

.chat-badge-tag.tag-adm {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.chat-badge-tag.tag-guia {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Balão Branco com cantos arredondados */
.chat-msg-bubble {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 4px 18px 18px 18px;
    padding: 9px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 12.5px;
    color: #1e293b;
    line-height: 1.45;
    word-break: break-word;
    font-weight: 500;
}

/* Mensagens do próprio jogador */
.chat-msg-row.is-me .chat-msg-bubble {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.chat-msg-row.is-system .chat-msg-bubble {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

/* Link Especial / Badge com brilho [Cooperspírito] exatamente como em chat.jpeg */
.chat-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1.5px solid #a5b4fc;
    color: #4338ca;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(165, 180, 252, 0.45);
    cursor: pointer;
    margin: 0 2px;
    transition: transform 0.15s ease;
}

.chat-item-badge:hover {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(165, 180, 252, 0.65);
}

.chat-item-badge i {
    color: #818cf8;
    font-size: 10px;
}

/* ==================== BARRA INFERIOR DE ENTRADA (Cápsula de Input) ==================== */
.chat-input-capsule-wrapper {
    padding: 10px 16px 14px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    position: relative;
    z-index: 5;
}

.chat-input-pill-box {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 10px;
    gap: 6px;
    transition: all 0.15s ease;
}

.chat-input-pill-box:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chat-pill-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 4px;
    font-size: 12.5px;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    font-weight: 500;
}

.chat-pill-input::placeholder {
    color: #94a3b8;
}

/* Botão de Envio Circular Escuro clássico de chat.jpeg */
.chat-pill-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chat-pill-send-btn:hover {
    background: #f16c20;
    transform: scale(1.08);
}

.chat-pill-icon-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-pill-icon-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.chat-pill-icon-btn.btn-plus {
    font-weight: 800;
    font-size: 15px;
}

/* Drawer Popover de Atalhos (+) */
.chat-plus-drawer {
    position: absolute;
    bottom: 56px;
    right: 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 300px;
    z-index: 20;
    animation: fadeInPopover 0.15s ease;
}

.chat-quick-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s;
}

.chat-quick-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.chat-quick-tag.tag-share {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chat-quick-tag.tag-share:hover {
    background: #dbeafe;
}

/* ==================== PROFILE CONFIG MODAL (TEMA MOCHILA CLEAN LIGHT) ==================== */
.pcm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.pcm-modal-overlay.hidden {
    display: none !important;
}

.pcm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pcm-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: pcmPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pcmPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pcm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pcm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcm-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff4ed;
    color: #f16c20;
    border: 1px solid #ffd8be;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pcm-header-title-box {
    display: flex;
    flex-direction: column;
}

.pcm-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.pcm-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.pcm-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pcm-close-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
    transform: rotate(90deg);
}

.pcm-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcm-current-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
}

.pcm-avatar-preview-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #f16c20;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.2);
    flex-shrink: 0;
}

.pcm-avatar-preview-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pcm-preview-level {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: #f16c20;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid #ffffff;
}

.pcm-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pcm-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pcm-preview-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.pcm-tag-rank {
    font-size: 8.5px;
    font-weight: 800;
    color: #f16c20;
    background: #fff4ed;
    border: 1px solid #ffd8be;
    padding: 1.5px 6px;
    border-radius: 6px;
}

.pcm-preview-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.pcm-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcm-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.pcm-badge-lock {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
}

.pcm-input-wrap.disabled {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pcm-input {
    width: 100%;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    box-sizing: border-box;
    outline: none;
    cursor: not-allowed;
}

.pcm-input-hint {
    font-size: 10.5px;
    color: #94a3b8;
    font-style: italic;
}

.pcm-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.pcm-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcm-tab-btn.active {
    background: #fff4ed;
    color: #f16c20;
    font-weight: 800;
}

.pcm-tab-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #1e293b;
}

.pcm-avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px 2px;
}

.pcm-avatar-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.pcm-avatar-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pcm-avatar-item:hover {
    transform: scale(1.1);
    border-color: #f16c20;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.25);
}

.pcm-avatar-item.selected {
    border-color: #f16c20;
    border-width: 2.5px;
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(241, 108, 32, 0.25);
}

.pcm-item-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    font-size: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pcm-avatar-item.selected .pcm-item-check {
    display: flex;
}

.pcm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pcm-btn-cancel {
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pcm-btn-cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.pcm-btn-save {
    padding: 8px 20px;
    background: #f16c20;
    border: 1.5px solid #ea580c;
    color: #ffffff;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(241, 108, 32, 0.25);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcm-btn-save:hover {
    background: #ea580c;
    box-shadow: 0 6px 14px rgba(241, 108, 32, 0.35);
    transform: translateY(-1px);
}

/* ==================== MAP DROP PROMPT BOX (TEMA MOCHILA - CLEAN LIGHT) ==================== */
.map-drop-prompt {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10005;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-drop-prompt.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    display: none !important;
}

.map-drop-prompt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 310px;
    max-width: 90vw;
    animation: dropPromptPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropPromptPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-drop-prompt-icon-frame {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: radial-gradient(circle at center, #ffffff 40%, #f8fafc 100%);
    border: 1.5px solid #fed7aa;
    box-shadow: 0 2px 8px rgba(241, 108, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-drop-prompt-icon-frame img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.map-drop-prompt-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.map-drop-prompt-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-drop-prompt-badge {
    font-size: 8.5px;
    font-weight: 800;
    color: #ea580c;
    background: #fff4ed;
    border: 1px solid #ffd8be;
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.map-drop-prompt-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-drop-prompt-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-drop-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-drop-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f16c20;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(241, 108, 32, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.map-drop-btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(241, 108, 32, 0.4);
}

.map-drop-btn-primary:active {
    transform: translateY(1px);
}

.map-drop-btn-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.map-drop-btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* =====================================================
   ALPHA POKÉMON SPAWN BANNER — TEMA MOCHILA CLEAN LIGHT
   Notificação de Alto Destaque ao Catalogar 100% da Rota
   ===================================================== */
.alpha-spawn-banner-wrap {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: auto;
    font-family: var(--font-main, 'Outfit', 'Inter', -apple-system, sans-serif);
    animation: alphaBannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alpha-spawn-banner-wrap.is-hiding {
    animation: alphaBannerSlideUp 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.alpha-spawn-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 14px;
    background: #ffffff;
    border: 2px solid #f16c20;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(241, 108, 32, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.alpha-spawn-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #f16c20 0%, #e3343d 100%);
}

.alpha-spawn-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1.5px solid #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(227, 52, 61, 0.1);
    position: relative;
}

.alpha-spawn-icon-badge::after {
    content: 'α';
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    color: #e3343d;
}

.alpha-spawn-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.alpha-spawn-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alpha-spawn-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.alpha-spawn-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid rgba(241, 108, 32, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: -0.2px;
}

.alpha-spawn-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
    font-weight: 500;
}

.alpha-spawn-desc b {
    color: #1e293b;
    font-weight: 700;
}

.alpha-spawn-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.alpha-spawn-track-btn {
    border: none;
    background: linear-gradient(135deg, #f16c20 0%, #e3343d 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(241, 108, 32, 0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.alpha-spawn-track-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(241, 108, 32, 0.4);
}

.alpha-spawn-track-btn:active {
    transform: translateY(0);
}

.alpha-spawn-close-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.alpha-spawn-close-btn:hover {
    color: #1a1a1a;
    background: #f1f5f9;
}

@keyframes alphaBannerSlideDown {
    0% {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes alphaBannerSlideUp {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

/* =====================================================
   ALPHA POKÉMON CHALLENGE MODAL — TEMA MOCHILA CLEAN LIGHT
   Modal de Confronto com a Silhueta Misteriosa do Chefe
   ===================================================== */
.alpha-challenge-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    pointer-events: auto;
    user-select: none;
    font-family: var(--font-main, 'Outfit', 'Inter', -apple-system, sans-serif);
    animation: alphaModalFadeIn 0.25s ease forwards;
}

.alpha-challenge-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    animation: alphaCardScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alpha-challenge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.alpha-challenge-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e3343d;
    background: #fff1f2;
    border: 1px solid rgba(227, 52, 61, 0.25);
    padding: 2.5px 8px;
    border-radius: 6px;
}

.alpha-challenge-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.alpha-challenge-close:hover {
    color: #1a1a1a;
    background: #e2e8f0;
}

.alpha-challenge-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.alpha-challenge-preview-wrap {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.alpha-challenge-aura-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 52, 61, 0.35) 0%, rgba(227, 52, 61, 0) 70%);
    animation: alphaGlowPulse 2s infinite ease-in-out;
    pointer-events: none;
}

.alpha-challenge-canvas-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: 900;
    color: #94a3b8;
}

.alpha-challenge-level-pill {
    position: absolute;
    bottom: -8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.alpha-challenge-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.alpha-challenge-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
}

.alpha-challenge-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #f16c20;
    margin-bottom: 4px;
}

.alpha-challenge-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    max-width: 380px;
}

.alpha-challenge-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 6px;
    font-weight: 600;
}

.alpha-challenge-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1.5px solid #e2e8f0;
}

.alpha-challenge-btn-cancel {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.alpha-challenge-btn-cancel:hover {
    background: #f1f5f9;
    color: #1a1a1a;
}

.alpha-challenge-btn-battle {
    border: none;
    background: linear-gradient(135deg, #f16c20 0%, #e3343d 100%);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 22px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241, 108, 32, 0.35);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alpha-challenge-btn-battle:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(241, 108, 32, 0.45);
}

.alpha-challenge-btn-battle:active {
    transform: translateY(0);
}

@keyframes alphaModalFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes alphaCardScaleUp {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes alphaGlowPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

/* ─────────────────────────────────────────────────────────────
   MODAL DE VITÓRIA DO ALFA (CLEAN LIGHT / TEMA MOCHILA)
   ───────────────────────────────────────────────────────────── */
.alpha-victory-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: alphaModalFadeIn 0.25s ease-out;
}

.alpha-victory-card {
    background: #ffffff;
    border: 2px solid #10b981;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18), 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 440px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: alphaCardScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alpha-victory-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-bottom: 1.5px solid #d1fae5;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.alpha-victory-trophy {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;
    border: 2px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.alpha-victory-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alpha-victory-tag {
    font-size: 11px;
    font-weight: 800;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alpha-victory-title {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.alpha-victory-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.alpha-victory-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.alpha-victory-rewards-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alpha-victory-reward-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
}

.alpha-victory-reward-val {
    font-weight: 800;
    color: #10b981;
}

.alpha-victory-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1.5px solid #e2e8f0;
}

.alpha-victory-btn-ok {
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 26px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

.alpha-victory-btn-ok:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* ==================== ALPHA CHALLENGE MODAL — 3 SLOTS TEAM SELECTOR (POKÉ-ORB HUD STYLE) ==================== */
.alpha-challenge-card {
    max-width: 480px !important;
}

.alpha-party-hud-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 0 6px 0;
}

.alpha-party-slots-track {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 28px !important;
    position: relative !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.alpha-hud-slot-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: none;
}

.alpha-hud-slot-unit:hover .poke-hud-slot {
    transform: translateY(-3px) scale(1.08);
    border-color: #f16c20;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14), 0 0 12px rgba(241, 108, 32, 0.25);
}

.alpha-hud-slot-unit:hover .alpha-hud-slot-tag {
    border-color: #f16c20;
    color: #c2410c;
}

.alpha-hud-slot-tag {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2.5px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.alpha-hud-slot-tag.is-leader {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.alpha-hud-slot-name {
    font-size: 11px;
    font-weight: 800;
    color: #1a1a1a;
    max-width: 86px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}

/* ==================== ALPHA SLOT PICKER POPOVER ==================== */
.alpha-slot-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    box-sizing: border-box;
    border-radius: 20px;
    animation: alphaPickerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alphaPickerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alpha-slot-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #e2e8f0;
}

.alpha-slot-picker-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alpha-slot-picker-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}

.alpha-slot-picker-sub {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}

.alpha-slot-picker-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.alpha-slot-picker-close:hover {
    background: #f1f5f9;
    color: #1a1a1a;
}

.alpha-slot-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alpha-slot-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.alpha-slot-picker-item:hover {
    border-color: #f16c20;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transform: translateX(2px);
}

.alpha-slot-picker-item.is-selected {
    border-color: #f16c20;
    background: #fffaf5;
}

.alpha-picker-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.alpha-picker-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alpha-picker-item-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alpha-picker-item-name {
    font-size: 12px;
    font-weight: 800;
    color: #1a1a1a;
}

.alpha-picker-item-level {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 4px;
}

.alpha-picker-item-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}

.alpha-picker-item-badge.in-slot-0 {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.alpha-picker-item-badge.in-slot-1,
.alpha-picker-item-badge.in-slot-2 {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ==================== ALPHA BOSS SPELL HUB (TOP LEFT DUEL) ==================== */
#alpha-spell-hub.spell-hub-container,
.alpha-spell-hub-container {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 24px !important;
    right: auto !important;
    transform: none !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    animation: alphaHubSlideInLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alphaHubSlideInLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alpha-spell-hub-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 5px 14px 5px 6px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.alpha-hub-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f16c20, #e3343d);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.alpha-hub-boss-name {
    font-size: 13px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.alpha-spell-hub-container .spell-hub-moves-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 0 !important;
}

.alpha-spell-hub-container .spell-hub-card {
    opacity: 1 !important;
    filter: none !important;
}