/* ==========================
   MAIN MENU
========================== */

#main-menu {
    display: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px 40px 20px;
    box-sizing: border-box;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.30)
        ),
        url("bgassets/mainmenu.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-menu:not([style*="display: none"]),
#main-menu[style*="display: block"],
#main-menu[style*="display: flex"] {
    display: flex !important;
}


/* ==========================
   REMOVED FOG & SCANLINES OVERLAYS
========================== */

#main-menu::before {
    display: none !important;
}

#main-menu::after {
    display: none !important;
}


/* ==========================
   MAIN MENU TITLE
========================== */

#main-menu h1 {
    position: static;
    transform: none;
    width: auto;
    max-width: 90%;
    margin: 0 auto 10px auto;
    font-family:
        'Press Start 2P',
        'Courier New',
        monospace;
    font-size: clamp(24px, 4.2vmin + 10px, 52px);
    letter-spacing: clamp(2px, 0.4vmin, 4px);
    color: #f8fafc;
    text-align: center;
    text-shadow:
        3px 3px 0 #1e0938,
        0 4px 12px rgba(0, 0, 0, 0.85),
        0 0 10px rgba(167, 139, 250, 0.35);
    z-index: 5;
}


/* ==========================
   TITLE UNDERLINE
========================== */

#main-menu h1::after {
    content: "✦ PYTHON BUG HUNTING ARENA ✦";
    display: block;
    margin-top: clamp(8px, 1.2vmin, 14px);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.4vmin, 15px);
    font-weight: 700;
    letter-spacing: clamp(2px, 0.4vmin, 4px);
    color: #cbd5e1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}


/* ==========================
   WELCOME MESSAGE
========================== */

#welcome-message {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    padding: 10px 28px;
    box-sizing: border-box;
    background: rgba(22, 12, 42, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 20px;
    color: #f3e8ff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(8px);
    z-index: 5;
    white-space: nowrap;
}


/* ==========================
   TRUE POINTS
========================== */

#true-points-menu {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    color: #fef08a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
    z-index: 5;
    white-space: nowrap;
    line-height: 1;
}

/* =========================================================
   MAIN MENU BUTTONS DECK (CLEAN FLEX COLUMN - NO OVERLAPPING)
========================================================= */

.menu-buttons-deck {
    position: static;
    transform: none;
    width: min(90%, clamp(280px, 32vw, 420px));
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vmin, 14px);
    align-items: stretch;
    z-index: 10;
    margin: 0 auto;
}

.menu-btn {
    width: 100%;
    min-height: clamp(48px, 5.8vmin, 60px);
    box-sizing: border-box;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(15.5px, 1.6vmin, 18px);
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(10px, 1.4vmin, 14px) clamp(16px, 2vmin, 24px);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(32, 20, 52, 0.95), rgba(16, 10, 30, 0.98));
    border: 1px solid #5a388a;
    color: #e9d5ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.menu-btn:hover {
    transform: translateY(-2px);
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(55, 30, 95, 0.95), rgba(28, 16, 52, 0.98));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.menu-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: 1px solid #c084fc;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.menu-btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.65);
}

.menu-btn-tutorial {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: 1px solid #60a5fa;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.menu-btn-tutorial:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
}

.menu-btn-logout {
    border-color: #ef4444;
    color: #fca5a5;
    background: rgba(45, 12, 22, 0.7);
}

.menu-btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.menu-btn-reset {
    height: 38px;
    font-size: 12px;
    color: #8c7a9e;
    background: transparent;
    border: 1px dashed #4a3366;
    box-shadow: none;
    opacity: 0.7;
}

.menu-btn-reset:hover {
    opacity: 1;
    color: #f87171;
    border-color: #ef4444;
    background: rgba(45, 12, 22, 0.5);
    box-shadow: none;
}


/* ==========================
   DECORATIVE SIDE PANEL
========================== */

#main-menu .menu-decoration {
    position: absolute;

    top: 185px;
    left: 50%;

    width: 590px;
    height: 625px;

    transform: translateX(-50%);

    border: 1px solid rgba(157, 77, 204, 0.25);

    background:
        linear-gradient(
            180deg,
            rgba(35, 0, 50, 0.10),
            rgba(0, 0, 0, 0.25)
        );

    box-shadow:
        inset 0 0 40px rgba(100, 0, 150, 0.08);

    pointer-events: none;

    z-index: 2;
}


/* ==========================
   CORNER MARKER
========================== */

#main-menu .menu-decoration::before {
    content: "G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��";

    position: absolute;

    top: -13px;
    left: 20px;

    color: #a78bfa;

    font-family:
        'Press Start 2P',
        monospace;

    font-size: 10px;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8);
}


/* ==========================
   SYSTEM STATUS
========================== */

#main-menu .menu-decoration::after {
    content: "SYSTEM ONLINE // BUG DATABASE READY";

    position: absolute;

    bottom: 18px;
    left: 0;

    width: 100%;

    color: #6f4c7c;

    font-family:
        'Press Start 2P',
        monospace;

    font-size: 8px;

    letter-spacing: 2px;

    text-align: center;
}
/* ==========================
   SHOP SCREEN (CYBER AUGMENTATION LAB)
========================== */

#shop-screen {
    display: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 32px clamp(20px, 4vw, 56px) 60px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.16) 0%, transparent 65%),
        linear-gradient(180deg, rgba(8, 3, 16, 0.94) 0%, rgba(4, 1, 9, 0.98) 100%),
        url("bgassets/mainmenu.png") center/cover no-repeat;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    font-family: 'Inter', sans-serif;
}

/* Shop Header Row */
.shop-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--theme-border, rgba(168, 85, 247, 0.25));
    padding-bottom: 24px;
    margin-bottom: 34px;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-back-btn {
    background: rgba(18, 10, 32, 0.85);
    border: 1.5px solid var(--theme-border, rgba(168, 85, 247, 0.35));
    border-radius: 12px;
    padding: 11px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.shop-back-btn:hover {
    background: var(--theme-primary, #7c3aed);
    border-color: var(--theme-accent, #c084fc);
    color: #ffffff;
    box-shadow: 0 0 22px var(--theme-glow, rgba(168, 85, 247, 0.5));
    transform: translateX(-4px);
}

.shop-title-cluster {
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.shop-badge-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--theme-accent, #c084fc);
    letter-spacing: 2.5px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 5px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.shop-badge-chip::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-accent, #c084fc);
    box-shadow: 0 0 8px var(--theme-accent, #c084fc);
}

.shop-main-title {
    margin: 0 0 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 20px var(--theme-glow, rgba(168, 85, 247, 0.4));
}

.shop-subtitle {
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #94a3b8;
    max-width: 620px;
    line-height: 1.5;
}

/* True Points Balance Pill */
.shop-points-pill {
    background: linear-gradient(135deg, rgba(35, 14, 58, 0.9) 0%, rgba(18, 7, 32, 0.95) 100%);
    border: 1.5px solid rgba(232, 121, 249, 0.45);
    border-radius: 28px;
    padding: 9px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(232, 121, 249, 0.25);
    transition: all 0.25s ease;
}

.shop-points-pill:hover {
    border-color: #f0abfc;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 24px rgba(232, 121, 249, 0.45);
    transform: translateY(-2px);
}

.shop-tp-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(232, 121, 249, 0.8));
    animation: shop-tp-pulse 2.5s ease-in-out infinite;
}

@keyframes shop-tp-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(232, 121, 249, 0.8));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 14px rgba(240, 171, 252, 1));
    }
}

.shop-points-pill .points-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15.5px;
    font-weight: 800;
    color: #f5d0fe;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(232, 121, 249, 0.4);
}

/* Shop Cards Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    }
}

/* Individual Shop Card */
.shop-card {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 14, 40, 0.88) 0%, rgba(11, 6, 20, 0.96) 100%);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 30px 26px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Sleek top glowing border accents per archetype */
.shop-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.95;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.shop-card-hp::before {
    background: linear-gradient(90deg, #f43f5e, #fda4af, #f43f5e);
    box-shadow: 0 0 12px #f43f5e;
}

.shop-card-temp::before {
    background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b);
    box-shadow: 0 0 12px #f59e0b;
}

.shop-card-hint::before {
    background: linear-gradient(90deg, #06b6d4, #a5f3fc, #06b6d4);
    box-shadow: 0 0 12px #06b6d4;
}

.shop-card:hover {
    transform: translateY(-7px);
}

.shop-card-hp:hover {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(244, 63, 94, 0.28);
}

.shop-card-temp:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.28);
}

.shop-card-hint:hover {
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.28);
}

/* Card Header Badges */
.shop-card-badge-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
}

.shop-tier-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge-perm {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.badge-temp {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.shop-attr-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Holographic Icon Pedestals */
.shop-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: shop-icon-float 3.5s ease-in-out infinite;
}

@keyframes shop-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.icon-hp {
    background: radial-gradient(circle at 50% 40%, rgba(244, 63, 94, 0.22) 0%, rgba(244, 63, 94, 0.05) 75%);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.25), inset 0 0 15px rgba(244, 63, 94, 0.15);
}

.icon-temp {
    background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.05) 75%);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.15);
}

.icon-hint {
    background: radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0.05) 75%);
    border: 1.5px solid rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25), inset 0 0 15px rgba(6, 182, 212, 0.15);
}

.shop-card:hover .shop-icon-wrap {
    transform: scale(1.08) translateY(-4px);
}

.shop-card-hp:hover .icon-hp {
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.5), inset 0 0 20px rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
}

.shop-card-temp:hover .icon-temp {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.shop-card-hint:hover .icon-hint {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.5), inset 0 0 20px rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
}

/* Item Sprite Graphics */
.shop-item-sprite {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.icon-hp .shop-item-sprite {
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.65));
}

.icon-temp .shop-item-sprite {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.65));
}

.icon-hint .shop-item-sprite {
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.65));
}

/* Card Typography */
.shop-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.shop-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0 0 22px 0;
    min-height: 44px;
}

/* Progression Meter Box */
.shop-progression-box {
    width: 100%;
    background: rgba(6, 2, 14, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.shop-meter-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-meter-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.fill-hp {
    background: linear-gradient(90deg, #e11d48, #f43f5e, #fda4af);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.7);
}

.fill-hint {
    background: linear-gradient(90deg, #0891b2, #06b6d4, #67e8f9);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.7);
}

.shop-meter-text {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

.shop-stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-prefix {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-val {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.highlight-temp {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Price Row */
.shop-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 22px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-sizing: border-box;
}

.price-label {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #f0abfc;
    text-shadow: 0 0 8px rgba(232, 121, 249, 0.5);
}

/* Action Buttons */
.shop-action-btn {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    color: #ffffff;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-hp {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

.btn-hp:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.6);
    filter: brightness(1.1);
}

.btn-temp {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-temp:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.6);
    filter: brightness(1.1);
}

.btn-hint {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-hint:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.6);
    filter: brightness(1.1);
}

.shop-action-btn:disabled {
    background: rgba(28, 20, 38, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    filter: none !important;
}

/* =========================================================
   INSUFFICIENT TRUE POINTS MODAL PROMPT
========================================================= */

.shop-alert-modal-wrap {
    position: absolute;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease-out;
}

.shop-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(8px);
}

.shop-alert-box {
    position: relative;
    z-index: 10;
    width: 680px;
    max-width: 95%;
    background: linear-gradient(180deg, #240a28 0%, #0d0115 100%);
    border: 2px solid #f59e0b;
    border-top: 5px solid #fbbf24;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.35);
    overflow: hidden;
    animation: modalPopIn 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.shop-alert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(45, 25, 8, 0.65);
}

.shop-alert-icon {
    font-size: 34px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
}

.shop-alert-titles {
    flex: 1;
}

.shop-alert-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.shop-alert-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
}

.shop-alert-close-x {
    background: rgba(60, 35, 10, 0.85);
    border: 1px solid #f59e0b;
    color: #fde68a;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shop-alert-close-x:hover {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    transform: scale(1.05);
}

.shop-alert-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-alert-details-card {
    background: rgba(20, 10, 30, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #cbd5e1;
}

.alert-detail-row span {
    color: #94a3b8;
}

.alert-detail-row strong {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #ffffff;
}

.cost-highlight {
    color: #e879f9 !important;
}

.deficit-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.deficit-highlight {
    color: #f87171 !important;
    font-size: 16px;
}

.shop-alert-advice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(30, 20, 10, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
}

.advice-icon {
    font-size: 26px;
    line-height: 1;
    margin-top: 2px;
}

.advice-content {
    flex: 1;
}

.advice-content strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.advice-content p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

.shop-alert-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(22, 12, 4, 0.85);
}

.shop-alert-action-btn {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
    transition: all 0.2s ease !important;
}

.shop-alert-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6) !important;
}

.shop-alert-dismiss-btn {
    background: rgba(45, 30, 15, 0.8) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.shop-alert-dismiss-btn:hover {
    background: rgba(88, 55, 20, 0.9) !important;
    color: #ffffff !important;
}

/* =========================================================
   BUGHUNT: SYSTEM ARCHIVE & ABOUT SCREEN (css/menu.css)
   Universal, Theme-Aware Cyberpunk Archive Interface
   Fully powered by dynamic theme tokens (--theme-*)
========================================================= */

#about-screen {
    display: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: clamp(24px, 4vh, 48px) clamp(16px, 4vw, 36px);
    background-image:
        linear-gradient(180deg, rgba(8, 4, 16, 0.88) 0%, rgba(14, 7, 28, 0.82) 45%, rgba(6, 2, 12, 0.94) 100%),
        url("bgassets/mainmenu.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--theme-text-title);
}

#about-screen:not([style*="display: none"]),
#about-screen[style*="display: flex"],
#about-screen[style*="display: block"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Subtle Dynamic Theme Atmosphere Glow */
#about-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 15%, var(--theme-glow), transparent 60%);
    box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.92);
    pointer-events: none;
    z-index: 1;
}

/* Retro CRT Scanline Texture */
#about-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.012) 0px,
        rgba(255, 255, 255, 0.012) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
}

#about-screen > * {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
}

/* Top Navigation Bar */
.archive-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#about-back-button.about-back-nav-btn {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 20px;
    background: var(--theme-card-bg-subtle);
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    color: var(--theme-text-title);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#about-back-button.about-back-nav-btn:hover {
    background: var(--theme-btn-gradient);
    border-color: var(--theme-accent);
    color: #ffffff;
    box-shadow: 0 0 18px var(--theme-glow);
    transform: translateX(-2px);
}

.archive-nav-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--theme-card-bg-subtle);
    border: 1px solid var(--theme-border-subtle);
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-accent);
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.archive-status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-accent);
    box-shadow: 0 0 8px var(--theme-accent);
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Main Archive Card Container */
.about-card-container {
    background: var(--theme-card-bg);
    border: 1.5px solid var(--theme-border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 32px var(--theme-glow-soft);
    padding: clamp(24px, 3.5vw, 42px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 1. Header & Overview */
.about-card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.archive-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--theme-accent);
    letter-spacing: 2px;
}

.archive-badge-bracket {
    color: var(--theme-text-sub);
    opacity: 0.8;
}

.about-icon-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--theme-btn-gradient);
    border: 1.5px solid var(--theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    box-shadow: 0 0 24px var(--theme-glow);
}

.archive-system-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(24px, 3.8vw, 32px);
    letter-spacing: 4px;
    color: var(--theme-text-title);
    margin: 4px 0 0 0;
    text-shadow: 0 0 16px var(--theme-glow), 2px 2px 0 rgba(0, 0, 0, 0.9);
}

.about-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--theme-accent);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.about-description-box {
    width: 100%;
    background: var(--theme-card-bg-subtle);
    border: 1px solid var(--theme-border-subtle);
    border-radius: 12px;
    padding: 16px 24px;
    box-sizing: border-box;
    text-align: center;
}

.about-main-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--theme-text-title);
    margin: 0;
}

/* Section Dividers */
.archive-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.archive-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-border), transparent);
}

.archive-divider-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--theme-accent);
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 2. Gameplay Modules Grid */
.about-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.about-module-card {
    background: var(--theme-card-bg-subtle);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.about-module-card:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 8px 26px var(--theme-glow-soft);
    transform: translateY(-2px);
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.module-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-type-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--theme-accent);
    letter-spacing: 1.5px;
}

.module-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-text-title);
    margin: 0;
    letter-spacing: 0.5px;
}

.module-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--theme-text-sub);
    margin: 0;
}

/* 3. Learning Reference Panel */
.about-reference-panel {
    background: var(--theme-card-bg-subtle);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.25s ease;
}

.about-reference-panel:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 8px 26px var(--theme-glow-soft);
}

.reference-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(var(--theme-primary-rgb), 0.18);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.reference-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.reference-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reference-title {
    font-family: 'Inter', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--theme-text-title);
    margin: 0;
}

.reference-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--theme-text-sub);
    margin: 0;
}

/* 4 & 5. Dossier Split: Project Record & Credits */
.about-dossier-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.archive-dossier-card {
    background: var(--theme-card-bg-subtle);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s ease;
}

.archive-dossier-card:hover {
    border-color: var(--theme-border-hover);
}

.dossier-card-header {
    border-bottom: 1px solid var(--theme-border-subtle);
    padding-bottom: 10px;
}

.dossier-header-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-accent);
    letter-spacing: 2px;
    margin: 0;
}

.dossier-specs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dossier-spec-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dossier-spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dossier-spec-val {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-title);
    line-height: 1.5;
}

.dossier-equal-team {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.developer-entry,
.adviser-entry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.developer-role-badge,
.adviser-role-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(var(--theme-primary-rgb), 0.22);
    border: 1px solid var(--theme-border-subtle);
    color: var(--theme-text-highlight);
    letter-spacing: 0.5px;
}

.developer-name-item,
.adviser-name-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--theme-text-title);
    letter-spacing: 0.5px;
}

.institution-primary {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-title);
}

.institution-sub {
    font-size: 12.5px;
    color: var(--theme-text-sub);
}

/* 6. System Footer */
.archive-system-footer {
    border-top: 1px solid var(--theme-border-subtle);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-footer-terminal-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--theme-accent);
}

.terminal-prompt {
    font-weight: 800;
    color: var(--theme-text-highlight);
}

.terminal-cursor {
    color: var(--theme-accent);
    animation: blink-cursor 1s infinite step-start;
}

/* Responsive Polish */
@media (max-width: 640px) {
    #about-screen {
        padding: 20px 12px 36px 12px;
    }
    .about-card-container {
        padding: 20px 16px;
        gap: 18px;
    }
    .about-reference-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .archive-nav-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .archive-system-title {
        font-size: 20px;
        letter-spacing: 2px;
    }
}
/* Language switcher is unified into global access bar */

/* =========================================================
   GLOBAL ACCESSIBILITY & DISPLAY TOOLBAR (FIXED TOP)
========================================================= */

.global-access-bar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(10, 6, 20, 0.88);
    border-bottom: 1px solid rgba(120, 70, 180, 0.35);
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.access-tools-left,
.access-tools-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.access-pill-btn {
    background: rgba(30, 20, 50, 0.85);
    border: 1px solid #634394;
    border-radius: 20px;
    color: #e2d4f8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.global-user-avatar {
    width: 22px;
    height: 22px;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 4px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.access-pill-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #a855f7;
    transform: translateY(-1px);
}

.access-pill-btn.active {
    background: #0072b2;
    border-color: #56b4e9;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 114, 178, 0.5);
}

.access-pill-btn.tutorial-pill {
    background: linear-gradient(135deg, rgba(70, 30, 120, 0.85), rgba(40, 15, 80, 0.85));
    border-color: #a855f7;
    color: #f3e8ff;
}

.access-pill-btn.tutorial-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.access-pill-btn.tp-pill {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(18, 14, 34, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 20px;
    color: #fef08a;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(250, 204, 21, 0.15);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.access-pill-btn.tp-pill:hover {
    transform: none;
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(250, 204, 21, 0.3);
    background: rgba(28, 20, 50, 0.98);
}

.access-pill-btn.tp-pill .tp-pill-icon {
    color: #facc15;
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.65));
}

.access-pill-btn.tp-pill .tp-pill-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(250, 204, 21, 0.85);
    text-transform: uppercase;
    line-height: 1;
}

.access-pill-btn.tp-pill #true-points-menu {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #fef08a !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.5) !important;
    line-height: 1 !important;
}

/* =========================================================
   HOW TO PLAY / TUTORIAL MODAL
========================================================= */

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 2, 12, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-sizing: border-box;
    padding: 30px;
}

.tutorial-modal-card {
    width: 1120px;
    max-width: 95%;
    background: linear-gradient(180deg, #18112c 0%, #0d091a 100%);
    border: 2px solid #7c3aed;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(124, 58, 237, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tutorial-header {
    text-align: center;
    margin-bottom: 28px;
}

.tutorial-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    letter-spacing: 1px;
}

.tutorial-title {
    margin: 12px 0 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
}

.tutorial-subtitle {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #c4b5fd;
}

.tutorial-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 960px) {
    .tutorial-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 580px) {
    .tutorial-steps-grid {
        grid-template-columns: 1fr;
    }
}

.tutorial-step-card {
    background: rgba(26, 18, 48, 0.7);
    border: 1px solid #4a3074;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.tutorial-step-card:hover {
    transform: translateY(-4px);
    border-color: #a855f7;
    background: rgba(35, 24, 65, 0.85);
}

.tutorial-step-num {
    position: absolute;
    top: 14px;
    left: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
}

.tutorial-step-icon {
    font-size: 44px;
    margin: 10px 0 16px 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.tutorial-step-heading {
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f3e8ff;
}

.tutorial-step-desc {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #c4b5fd;
}

.tutorial-footer {
    display: flex;
    justify-content: center;
}

.tutorial-gotit-btn {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 44px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tutorial-gotit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.7);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

/* =========================================================
   USER PROFILE MODAL & PROFILE BUTTONS
========================================================= */

.access-pill-btn.profile-pill {
    background: linear-gradient(135deg, rgba(35, 22, 65, 0.85), rgba(20, 12, 45, 0.85));
    border-color: #8b5cf6;
    color: #ede9fe;
}

.access-pill-btn.profile-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #ffffff;
    border-color: #c084fc;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.menu-btn.menu-btn-profile {
    background: linear-gradient(135deg, rgba(30, 18, 60, 0.85), rgba(15, 10, 35, 0.85));
    border: 1px solid #7c3aed;
    color: #f3e8ff;
}

.menu-btn.menu-btn-profile:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.6);
}

.user-profile-card {
    width: 760px;
    max-width: 95%;
    background: linear-gradient(180deg, #170f2c 0%, #0d081b 100%);
    border: 2px solid #8b5cf6;
    border-radius: 20px;
    padding: 32px 38px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.35);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 18px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: 2px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
    flex-shrink: 0;
}

.profile-avatar-icon {
    font-size: 26px;
}

.profile-modal-avatar-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.profile-avatar-picker-section,
.register-avatar-container {
    width: 100%;
    margin: 10px 0 16px 0;
    box-sizing: border-box;
}

.register-avatar-container {
    max-width: 440px;
    margin: 12px auto 16px auto;
    text-align: left;
}

.register-avatar-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.avatar-pick-card {
    background: rgba(22, 14, 42, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
}

.avatar-pick-card:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.avatar-pick-card.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
    transform: scale(1.03);
}

.avatar-pick-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.avatar-pick-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    pointer-events: none;
}

.avatar-pick-card.selected .avatar-pick-label {
    color: #34d399;
}

@media (max-width: 600px) {
    .avatar-picker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.profile-header-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.profile-role-badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-role-badge.badge-student {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.profile-role-badge.badge-teacher {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #f59e0b;
    color: #fbbf24;
}

.profile-subtitle {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #c4b5fd;
}

.profile-modal-close {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #c4b5fd;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-modal-close:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #ffffff;
    border-color: #a855f7;
    transform: rotate(90deg);
}

.profile-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    background: rgba(22, 14, 42, 0.7);
    border: 1px solid #4a3074;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
    box-sizing: border-box;
}

.profile-metric-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.metric-value.metric-points {
    color: #facc15;
}

.metric-value.metric-status {
    color: #4ade80;
}

.profile-status-msg {
    padding: 11px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.profile-status-msg.status-error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.profile-status-msg.status-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.profile-section-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 12px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 6px;
}

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 0.8px;
}

.profile-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-input-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #e9d5ff;
}

.required-star {
    color: #f87171;
}

.profile-text-input {
    background: rgba(16, 10, 32, 0.9);
    border: 1px solid #634394;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.profile-text-input:focus {
    border-color: #a855f7;
    background: rgba(24, 15, 48, 0.95);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

select.profile-text-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

select.profile-text-input option {
    background: #180f2d;
    color: #ffffff;
    padding: 10px;
}

.profile-input-hint {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #a78bfa;
    line-height: 1.3;
}

.profile-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.profile-action-save {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    transition: all 0.2s ease;
}

.profile-action-save:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.6);
    transform: translateY(-1px);
}

.profile-action-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.profile-action-cancel {
    background: rgba(30, 20, 50, 0.8);
    border: 1px solid #634394;
    border-radius: 10px;
    color: #c4b5fd;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-action-cancel:hover {
    background: rgba(50, 30, 80, 0.9);
    color: #ffffff;
    border-color: #8b5cf6;
}

/* =========================================================
   COMPREHENSIVE ACCESSIBILITY MODES:
   1. HIGH CONTRAST DARK MODE (.high-contrast-mode)
   2. COLOR BLIND FRIENDLY WONG MODE (.colorblind-mode)
========================================================= */

/* --- 1. HIGH CONTRAST DARK MODE --- */
#game-container.high-contrast-mode {
    background: #000000 !important;
}

#game-container.high-contrast-mode .global-access-bar {
    background: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
}

#game-container.high-contrast-mode .access-pill-btn {
    background: #0a0a0a !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

#game-container.high-contrast-mode .access-pill-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

#game-container.high-contrast-mode .access-pill-btn.active {
    background: #00f0ff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px #00f0ff !important;
}

#game-container.high-contrast-mode .lang-switch-box {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

#game-container.high-contrast-mode .lang-switch-box .lang-btn {
    color: #ffffff !important;
}

#game-container.high-contrast-mode .lang-switch-box .lang-btn.active {
    color: #00f0ff !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px #00f0ff;
}

#game-container.high-contrast-mode .lang-switch-box .lang-sep {
    color: #ffffff !important;
}

/* Maintain the main menu artwork in high contrast mode while maximizing button and typography clarity */
#game-container.high-contrast-mode #main-menu {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.30) 100%
        ),
        url("bgassets/mainmenu.png") !important;
}

#game-container.high-contrast-mode #main-menu h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 10px rgba(14, 165, 233, 0.5) !important;
}

#game-container.high-contrast-mode #main-menu h1::after {
    color: #38bdf8 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

#game-container.high-contrast-mode #welcome-message {
    background: rgba(5, 5, 12, 0.95) !important;
    border: 2px solid #00f0ff !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.45) !important;
}

#game-container.high-contrast-mode #true-points-menu {
    color: #ffe600 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 14px rgba(255, 230, 0, 0.6) !important;
}

#game-container.high-contrast-mode .menu-btn {
    background: #050508 !important;
    border: 2px solid #00f0ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important;
    text-shadow: none !important;
}

#game-container.high-contrast-mode .menu-btn:hover {
    background: #00f0ff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 25px #00f0ff !important;
    font-weight: 800 !important;
}

#game-container.high-contrast-mode .user-profile-card,
#game-container.high-contrast-mode .tutorial-modal-card,
#game-container.high-contrast-mode .diff-stage-card,
#game-container.high-contrast-mode .steam-achieve-card,
#game-container.high-contrast-mode .admin-table-container,
#game-container.high-contrast-mode .admin-filter-bar {
    background: #050508 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

#game-container.high-contrast-mode .profile-text-input,
#game-container.high-contrast-mode .auth-input-field {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

#game-container.high-contrast-mode .profile-text-input:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 14px #00f0ff !important;
}

/* --- 2. COLOR BLIND FRIENDLY PALETTE (WONG ACCESSIBLE SYSTEM) --- */
#game-container.colorblind-mode #welcome-message {
    border: 2px solid #0072b2 !important;
    color: #ffffff !important;
    background: rgba(0, 40, 80, 0.9) !important;
}

#game-container.colorblind-mode #true-points-menu {
    color: #f0e442 !important;
    text-shadow: 0 0 12px rgba(240, 228, 66, 0.6) !important;
}

#game-container.colorblind-mode {
    filter: contrast(1.1) saturate(1.15);
}

#game-container.colorblind-mode #toggle-colorblind-btn.active {
    background: #0072b2 !important;
    border: 2px solid #e69f00 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(230, 159, 0, 0.7) !important;
}

#game-container.colorblind-mode .menu-btn {
    border-left: 8px solid #e69f00 !important;
    border-right: 2px solid #0072b2 !important;
    border-top: 1px solid #56b4e9 !important;
    border-bottom: 1px solid #56b4e9 !important;
    box-shadow: -4px 0 12px rgba(230, 159, 0, 0.4), 0 0 10px rgba(0, 114, 178, 0.3) !important;
}

#game-container.colorblind-mode .menu-btn:hover {
    background: #0072b2 !important;
    border-left: 8px solid #f0e442 !important;
    border-color: #56b4e9 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 114, 178, 0.8) !important;
}

#game-container.colorblind-mode .card-easy {
    border-color: #56b4e9 !important;
    box-shadow: 0 0 20px rgba(86, 180, 233, 0.5) !important;
}

#game-container.colorblind-mode .card-normal {
    border-color: #e69f00 !important;
    box-shadow: 0 0 20px rgba(230, 159, 0, 0.5) !important;
}

#game-container.colorblind-mode .card-hard {
    border-color: #d55e00 !important;
    box-shadow: 0 0 20px rgba(213, 94, 0, 0.5) !important;
}

#game-container.colorblind-mode .card-star-badge {
    background: #e69f00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
}

#game-container.colorblind-mode .card-powerup-badge {
    background: #0072b2 !important;
    color: #ffffff !important;
}

#game-container.colorblind-mode .profile-role-badge.badge-student {
    background: #0072b2 !important;
    color: #ffffff !important;
    border-color: #56b4e9 !important;
}

#game-container.colorblind-mode .profile-role-badge.badge-teacher {
    background: #e69f00 !important;
    color: #000000 !important;
    border-color: #f0e442 !important;
}

#game-container.colorblind-mode .user-profile-card {
    border-color: #0072b2 !important;
}

#game-container.colorblind-mode .profile-action-save {
    background: #0072b2 !important;
    border: 2px solid #56b4e9 !important;
}

#game-container.colorblind-mode .profile-action-save:hover {
    background: #56b4e9 !important;
    color: #000000 !important;
}

/* =========================================================
   STEAM-STYLE TROPHY COLLECTION SHOWCASE (DEDICATED TIERS)
========================================================= */

#collection-screen,
.steam-collection-screen {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    box-sizing: border-box;
    padding: 30px clamp(20px, 4vw, 60px) 50px clamp(20px, 4vw, 60px);
    background: radial-gradient(circle at 50% 10%, rgba(35, 15, 60, 0.75) 0%, rgba(10, 6, 20, 0.97) 60%, #06030c 100%),
                url("bgassets/mainmenu.png") center/cover no-repeat;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    font-family: 'Inter', sans-serif;
    z-index: 50;
    scroll-behavior: smooth;
    text-align: left;
}

/* Custom scrollbar for trophy showcase */
#collection-screen::-webkit-scrollbar {
    width: 12px;
}
#collection-screen::-webkit-scrollbar-track {
    background: rgba(15, 10, 28, 0.95);
    border-radius: 8px;
    margin: 15px 0;
}
#collection-screen::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 8px;
    border: 2px solid rgba(15, 10, 28, 0.95);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
#collection-screen::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}

.steam-top-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

#collection-back-button,
.steam-back-btn {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(28, 18, 48, 0.9) !important;
    border: 1px solid #7c3aed !important;
    color: #e9d5ff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    flex-shrink: 0;
    text-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

#collection-back-button:hover,
.steam-back-btn:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
    transform: translateX(-3px) !important;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.5) !important;
}

.steam-title-block {
    flex: 1;
}

.steam-badge-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 1.5px;
}

.steam-main-title {
    position: static !important;
    transform: none !important;
    margin: 2px 0 6px 0 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
    width: auto !important;
}
.steam-main-title::after {
    display: none !important;
}

.steam-overall-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
}

.steam-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(20, 14, 36, 0.95);
    border-radius: 6px;
    border: 1px solid #4a336a;
    overflow: hidden;
}

.steam-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
    transition: width 0.4s ease;
}

.steam-progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #c4b5fd;
    white-space: nowrap;
}

/* Filter Pills Bar */
.steam-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.trophy-filter-btn {
    background: rgba(25, 18, 44, 0.85);
    border: 1px solid #4f3377;
    border-radius: 16px;
    color: #c4b5fd;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.trophy-filter-btn:hover {
    background: rgba(60, 35, 100, 0.9);
    color: #ffffff;
    border-color: #8b5cf6;
}

.trophy-filter-btn.active {
    background: #7c3aed;
    color: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.filter-sep {
    color: #553e77;
    font-size: 14px;
    margin: 0 2px;
}

/* Dedicated Tiers Wrapper */
.trophies-tiers-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

/* Dedicated Tier Section Divs */
.trophy-tier-section {
    background: rgba(18, 12, 32, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 80, 180, 0.35);
    border-radius: 12px;
    padding: 12px 18px 14px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* Tier Themes */
.trophy-tier-section.tier-easy {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(16, 185, 129, 0.04);
}
.trophy-tier-section.tier-normal {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(59, 130, 246, 0.04);
}
.trophy-tier-section.tier-hard {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(245, 158, 11, 0.04);
}
.trophy-tier-section.tier-hell {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(239, 68, 68, 0.04);
}

.tier-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(100, 70, 150, 0.25);
}

.tier-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tier-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 1px;
}

.tier-badge.diff-easy { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.tier-badge.diff-normal { background: rgba(59, 130, 246, 0.22); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.45); }
.tier-badge.diff-hard { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); }
.tier-badge.diff-hell { background: rgba(239, 68, 68, 0.22); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.45); }

.tier-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.tier-desc {
    font-size: 11px;
    color: #9486ad;
}

.tier-progress-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.tier-progress-track {
    flex: 1;
    height: 8px;
    background: rgba(15, 10, 26, 0.9);
    border-radius: 5px;
    border: 1px solid rgba(100, 70, 150, 0.4);
    overflow: hidden;
}

.tier-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.35s ease;
}

.tier-progress-bar.bar-easy {
    background: linear-gradient(90deg, #059669, #10b981);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.tier-progress-bar.bar-normal {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}
.tier-progress-bar.bar-hard {
    background: linear-gradient(90deg, #d97706, #f59e0b);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}
.tier-progress-bar.bar-hell {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.tier-progress-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #e2d9f3;
    white-space: nowrap;
}

/* Steam Achievements Grid (Responsive auto-fit) */
.steam-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
}

.steam-achieve-card {
    background: linear-gradient(135deg, rgba(25, 18, 44, 0.92) 0%, rgba(14, 10, 26, 0.96) 100%);
    border: 1px solid #4a3070;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    position: relative;
    min-height: 68px;
}

.steam-achieve-card:hover {
    transform: translateY(-2px);
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(139, 92, 246, 0.25);
}

.steam-achieve-icon-frame {
    width: 44px;
    height: 44px;
    background: rgba(12, 8, 24, 0.92);
    border: 1.5px solid #6d42a6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.steam-achieve-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.steam-achieve-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.steam-achieve-topline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.steam-achieve-name {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

.steam-achieve-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.steam-achieve-tag.diff-easy { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.steam-achieve-tag.diff-normal { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.steam-achieve-tag.diff-hard { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.steam-achieve-tag.diff-hell { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.steam-achieve-desc {
    margin: 0;
    font-size: 13px;
    color: #a79cb8;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.steam-achieve-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.steam-achieve-target {
    font-size: 12px;
    color: #8b7ca8;
}

/* Status Badge - 100% true to game data */
.steam-achieve-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.badge-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.badge-status-title {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-status-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
}

.steam-achieve-status-badge.badge-unlocked {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
}
.steam-achieve-status-badge.badge-unlocked .badge-status-pct {
    color: #10b981;
}

.steam-achieve-status-badge.badge-locked {
    background: rgba(30, 20, 45, 0.7);
    border: 1px solid rgba(90, 70, 120, 0.35);
    color: #716288;
}
.steam-achieve-status-badge.badge-locked .badge-status-pct {
    color: #83759b;
}

/* Locked Card State */
.steam-achieve-card.locked {
    opacity: 0.6;
    background: rgba(16, 11, 26, 0.75);
    border-color: #38244e;
}

.steam-achieve-card.locked .steam-achieve-icon-frame {
    filter: grayscale(100%);
    border-color: #402b5c;
    background: rgba(10, 7, 18, 0.9);
}

.steam-achieve-card.locked .steam-achieve-name {
    color: #8c829e;
}

.tier-empty-notice {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    background: rgba(20, 14, 34, 0.6);
    border: 1px dashed rgba(120, 80, 180, 0.3);
    border-radius: 10px;
    color: #a79cb8;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

