:root {
    --bg-black: #000000;
    --deep-teal: #008080;
    --electric-orange: #FF5733;
    --text-white: #ffffff;
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    background: url('../common_assets/background-blur.png') no-repeat center center;
    background-size: cover;
    font-family: var(--font-inter);
    color: var(--text-white);
    overflow: hidden;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Digital Mist Background */
.mist-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: radial-gradient(ellipse at bottom, rgba(0, 128, 128, 0.5), transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: drift 15s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(5%);
    }
}

/* Scanning AI Orb */
.orb-container {
    position: absolute;
    top: 15%;
    z-index: 10;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-glow {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--electric-orange);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 1;
    animation: scan-pulse 2s infinite alternate;
}

.orb-outer-glass {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 87, 51, 0.3);
    border-right-color: transparent;
    border-bottom-color: transparent;
    z-index: 3;
    animation: rotate-scan 3s linear infinite;
}

.orb-core {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, var(--electric-orange) 100%);
    box-shadow: 0 0 20px var(--electric-orange);
    z-index: 2;
}

@keyframes rotate-scan {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scan-pulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

.message-wrapper {
    position: absolute;
    top: 25%;
    width: 100%;
    padding: 0 24px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.ai-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-white);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--electric-orange);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Equipment Vault */
.vault-container {
    position: absolute;
    top: 38%;
    width: 90%;
    max-width: 480px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1000px;
}

.vault-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.vault-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.equip-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.equip-chip svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.equip-chip span {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

/* Active Selection logic */
.equip-chip.active {
    background: rgba(255, 87, 51, 0.1);
    border-color: rgba(255, 87, 51, 0.6);
    box-shadow: inset 0 0 15px rgba(255, 87, 51, 0.2), 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateZ(20px) scale(1.05);
}

.equip-chip.active svg {
    color: var(--electric-orange);
    filter: drop-shadow(0 0 5px var(--electric-orange));
}

.equip-chip.active span {
    color: white;
    font-weight: 600;
}

.vault-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.btn-other {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Inventory Badge Count */
.count-badge {
    background: rgba(0, 128, 128, 0.2);
    border: 1px solid var(--deep-teal);
    border-radius: 20px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--deep-teal);
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.2);
    transition: all 0.3s ease;
}

.count-badge.has-items {
    color: var(--electric-orange);
    border-color: var(--electric-orange);
    background: rgba(255, 87, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 87, 51, 0.2);
}

.btn-confirm {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--electric-orange);
    color: white;
    border: none;
    margin-top: 16px;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
}

.btn-confirm.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    position: absolute;
}

.btn-confirm:active {
    transform: scale(0.98);
}

/* Responsive adjustments for 2-col on smaller screens */
@media (max-width: 400px) {
    .inventory-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.cuesz-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    z-index: 100;
}
