:root {
    --vh: 1vh;
}

body {
    font-family: 'DM Sans', sans-serif;
}

.neon-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.1);
}

.neon-border {
    border: 1px solid rgba(168, 85, 247, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 8000px;
}

.tab-active {
    border-bottom: 3px solid #a855f7;
    color: #e9d5ff;
}

.inline-popup {
    background: rgba(31, 31, 46, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin: 4px 0 4px 1.5rem;
}

.inline-popup input,
.inline-popup select {
    width: 100%;
    background: #1f2937;
    border: 1px solid rgba(107, 114, 128, 0.5);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.75rem;
}

.inline-popup input:focus,
.inline-popup select:focus {
    outline: none;
    border-color: #a855f7;
}

.inline-popup input.field-error,
.inline-popup select.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.inline-popup label {
    font-size: 0.65rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 2px;
}

.progress-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.popup-box {
    background: #1f1f2e;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
}

.gauntlet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.gauntlet-grid label {
    font-size: 0.7rem;
}

/* Premium Bingo Overlays */
.bingo-card-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bingo-overlay-grid {
    position: absolute;
    top: 23.18%;
    left: 2.22%;
    width: 96.02%;
    height: 76.89%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    padding: 0;
    gap: 1%;
}

#bingo-grid-dusty {
    top: 24.22%;
    left: 11.02%;
    width: 77.96%;
    height: 67.85%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 1.5%;
}


.glass-bingo-cell {
    position: relative;
    background: rgba(15, 15, 25, 0.2);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-align: center;
    user-select: none;
}

.glass-bingo-cell:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    z-index: 10;
}

/* Centered Radial Watercolor Stamps */
.daub-marker {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    z-index: 5;
    mix-blend-mode: color-burn;
    transform: scale(0);
    animation: daub-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pink Stamp for GAY SH!T */
.daub-gayshit {
    background: radial-gradient(circle, hsla(320, 95%, 60%, 0.85) 0%, hsla(320, 85%, 50%, 0.4) 50%, transparent 75%);
    filter: drop-shadow(0 0 8px hsla(320, 90%, 55%, 0.6));
    mix-blend-mode: multiply;
}

/* Indigo Blue Stamp for Dusty's */
.daub-dusty {
    background: radial-gradient(circle, hsla(240, 95%, 60%, 0.85) 0%, hsla(240, 85%, 50%, 0.4) 50%, transparent 75%);
    filter: drop-shadow(0 0 8px hsla(240, 90%, 55%, 0.6));
    mix-blend-mode: multiply;
}

@keyframes daub-bounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    70% { transform: scale(1.15) rotate(10deg); opacity: 0.95; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
}

/* Prompt coordinate text layers inside cells */
.cell-coord-tag {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0,0,0,0.6);
    color: #e2e8f0;
    margin-bottom: 2px;
    border: 1px solid rgba(255,255,255,0.1);
}

.cell-points-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

/* Board Game Visual Track and Pieces */
.game-track-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 1rem;
    background: rgba(15, 12, 30, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.4) rgba(0,0,0,0.2);
}

.game-track-tile {
    position: relative;
    flex: 0 0 4rem;
    height: 4rem;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-track-tile.active-tile {
    color: #06b6d4;
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.1);
}

.game-track-tile.action-tile {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.game-track-tile.action-tile::after {
    content: "⚡";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
}

.game-pawn-piece {
    font-size: 1.8rem;
    position: absolute;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    animation: pawn-idle 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-pawn-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.active-gamepiece-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}


@keyframes pawn-idle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Zoomed landing spaces popup cards */
.zoomed-landed-card {
    background: linear-gradient(135deg, #150f2b 0%, #0d091a 100%);
    border: 2px solid #06b6d4;
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
    border-radius: 24px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    transform: scale(0.5) rotateX(45deg);
    opacity: 0;
    animation: landed-zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes landed-zoom {
    0% { transform: scale(0.5) rotateX(45deg); opacity: 0; }
    100% { transform: scale(1) rotateX(0deg); opacity: 1; }
}

/* Custom overlay background blur */
.popup-overlay-blur {
    backdrop-filter: blur(8px);
}

.companion-btn {
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(31, 41, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companion-btn:hover {
    background: rgba(31, 41, 55, 0.8);
    transform: scale(1.1);
}

.companion-btn.selected-piece {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: scale(1.05);
}

.pawn-hop {
    animation: pawn-hop-bounce 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pawn-hop-bounce {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.3) translateY(-20px); }
    100% { transform: scale(1) translateY(0); }
}

/* Roster Social Icons & Badges styling */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    text-decoration: none;
}
.icon-link:hover {
    opacity: 0.8;
}
.badge-gr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #ece6dd;
    border-radius: 3px;
    padding: 0px;
}
.badge-fable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

/* Custom Badges & Roles labels */
.badge-role {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}
.badge-admin { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.badge-captain { background: #78350f; color: #fde68a; border: 1px solid #92400e; }
.badge-host { background: #1e3a8a; color: #93c5fd; border: 1px solid #1e40af; }
.badge-koda-sub { background: #581c87; color: #e9d5ff; border: 1px solid #6b21a8; }
.badge-nicole-sub { background: #831843; color: #fbcfe8; border: 1px solid #9d174d; }
.badge-discord-admin { background: #312e81; color: #c7d2fe; border: 1px solid #3730a3; }
.badge-youtube-admin { background: #1f2937; color: #e5e7eb; border: 1px solid #374151; }
.badge-floater { background: #164e63; color: #99f6e4; border: 1px solid #155e75; }
.badge-super-reader { background: #064e3b; color: #a7f3d0; border: 1px solid #065f46; }

/* Notification Bell animations */
#btn-notification-bell:hover {
    transform: scale(1.05);
}

/* Scrollbar styling for notification lists and grids */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Modal form inputs */
.modal-select, .modal-input {
    background: #111827;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.75rem;
}
.modal-select:focus, .modal-input:focus {
    outline: none;
    border-color: #a855f7;
}

/* Unread notifications list */
.notification-item {
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease-out;
}
.notification-item.unread {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}
