* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #03030c;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
#crosshair::before, #crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 4px #ff3366;
}
#crosshair::before {
    width: 2px;
    height: 12px;
}
#crosshair::after {
    width: 12px;
    height: 2px;
}

/* HUD Overlay */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Top Bar */
.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Navigatie / Kompas naar de winkel */
.compass-badge {
    background: rgba(15, 20, 35, 0.85);
    border: 1px solid rgba(255, 170, 0, 0.4);
    border-radius: 20px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffcc00;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.compass-arrow {
    display: inline-block;
    transition: transform 0.1s linear;
    font-size: 16px;
}

.brand-badge {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.85), rgba(10, 10, 20, 0.95));
    border: 1px solid rgba(255, 80, 0, 0.5);
    border-radius: 12px;
    padding: 10px 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(255, 60, 0, 0.2);
}

.brand-badge h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ff8c00, #ff0055, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 80, 0, 0.4);
}

.brand-badge p {
    font-size: 11px;
    color: #a0a5b5;
    margin-top: 2px;
}

.wallet-badge {
    background: linear-gradient(135deg, rgba(16, 32, 24, 0.85), rgba(10, 20, 15, 0.95));
    border: 1px solid rgba(46, 204, 113, 0.6);
    border-radius: 12px;
    padding: 10px 20px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 18px rgba(46, 204, 113, 0.25);
    pointer-events: auto;
}

/* Levensbalk Badge */
.health-badge {
    background: linear-gradient(135deg, rgba(35, 12, 16, 0.88), rgba(20, 8, 10, 0.95));
    border: 1px solid rgba(255, 68, 68, 0.65);
    border-radius: 12px;
    padding: 10px 18px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(255, 50, 50, 0.25);
    pointer-events: auto;
}

.health-icon {
    font-size: 20px;
    animation: heartPulse 1.4s infinite ease-in-out;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.health-bar-container {
    width: 110px;
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.health-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff2244, #ff5500);
    border-radius: 6px;
    transition: width 0.25s ease-out, background 0.3s;
    box-shadow: 0 0 10px rgba(255, 34, 68, 0.6);
}

.health-text {
    font-size: 14px;
    font-weight: 800;
    color: #ff6677;
    min-width: 58px;
}

/* Schade Flits Overlay */
#damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 14;
    background: radial-gradient(circle, transparent 40%, rgba(220, 0, 0, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

/* Dood Overlay */
.death-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}
.death-overlay.active {
    display: flex;
    animation: deathFadeIn 0.4s ease-out forwards;
}
@keyframes deathFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.death-title {
    font-size: 42px;
    font-weight: 900;
    color: #ff2244;
    text-shadow: 0 0 25px rgba(255, 34, 68, 0.8), 0 0 50px rgba(255, 0, 0, 0.4);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.death-subtitle {
    font-size: 20px;
    color: #ffbbbb;
    font-weight: 600;
}

.wallet-icon {
    font-size: 22px;
}

.wallet-amount {
    font-size: 22px;
    font-weight: 800;
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.btn-cheat {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #a3ffc9;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-cheat:hover {
    background: rgba(46, 204, 113, 0.5);
    color: #fff;
    transform: scale(1.05);
}

/* Prompts & Messages */
#interaction-prompt {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 30, 0.9);
    border: 2px solid #ffaa00;
    border-radius: 30px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    letter-spacing: 0.5px;
}

#interaction-prompt.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.key-badge {
    background: #ffaa00;
    color: #111;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 900;
    margin-right: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Info Log notifications */
#notification-container {
    position: absolute;
    top: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.notification-item {
    background: rgba(15, 20, 35, 0.9);
    border-left: 4px solid #ff4400;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: slideIn 0.3s ease-out forwards;
    backdrop-filter: blur(6px);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Bottom Bar - Hotbar & Controls */
.hud-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.controls-hint {
    background: rgba(15, 20, 30, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 12px;
    color: #bbb;
    display: flex;
    gap: 14px;
}

.controls-hint span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.controls-hint kbd {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: inherit;
    color: #fff;
    font-weight: bold;
}

/* Inventory Hotbar */
.hotbar {
    display: flex;
    gap: 6px;
    background: rgba(10, 14, 25, 0.92);
    border: 1px solid rgba(255, 100, 0, 0.35);
    border-radius: 16px;
    padding: 6px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    pointer-events: auto;
    max-width: 96vw;
    overflow-x: auto;
    scrollbar-width: thin;
}
.hotbar::-webkit-scrollbar {
    height: 4px;
}
.hotbar::-webkit-scrollbar-thumb {
    background: #ff7700;
    border-radius: 2px;
}

.hotbar-slot {
    width: 58px;
    height: 60px;
    min-width: 58px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hotbar-slot:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 150, 0, 0.7);
}

.hotbar-slot.active {
    background: rgba(255, 100, 0, 0.28);
    border-color: #ff7700;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(255, 119, 0, 0.45);
}

.slot-key {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #8899aa;
}

.slot-icon {
    font-size: 22px;
    line-height: 1;
}

.slot-count {
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 0 4px;
    border-radius: 4px;
}

.slot-name {
    font-size: 8px;
    color: #ccc;
    text-align: center;
    margin-top: 1px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating Reward Text */
.floating-reward {
    position: absolute;
    pointer-events: none;
    font-weight: 900;
    font-size: 20px;
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.8), 0 2px 4px #000;
    transform: translate(-50%, -50%);
    z-index: 50;
    animation: floatUp 1.2s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    30% { transform: translate(-50%, -80%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(1.0); }
}

/* Tinnitus & Flash Overlay */
#tinnitus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,80,0,0.3) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.08s ease-out;
}

/* Shop Category Tabs */
.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #bbb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #fff;
    border-color: #ffaa00;
}

.tab-btn.active {
    background: #ff7700;
    border-color: #ff9900;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.4);
}

/* Modal Windows (Shop & Start Screen) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Start / Welcome Screen */
.start-card {
    background: linear-gradient(145deg, #121528, #0a0d18);
    border: 2px solid rgba(255, 100, 0, 0.4);
    border-radius: 20px;
    padding: 36px 44px;
    max-width: 580px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 70, 0, 0.25);
}

.start-title {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(90deg, #ff9900, #ff1155, #ffdd00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.start-subtitle {
    font-size: 15px;
    color: #a0acc0;
    margin-bottom: 24px;
}

.instruction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.instruction-item {
    font-size: 13px;
    color: #d1d8e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-item kbd {
    background: rgba(255, 120, 0, 0.25);
    border: 1px solid rgba(255, 120, 0, 0.6);
    color: #ffbb66;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6600, #ff1155);
    border: none;
    color: #fff;
    padding: 14px 34px;
    font-size: 17px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 50, 0, 0.4);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 50, 0, 0.6);
}

/* Shop Modal */
.shop-card {
    background: linear-gradient(160deg, #12182c, #0a0e1c);
    border: 2px solid #ff7700;
    border-radius: 24px;
    padding: 30px;
    width: 820px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 40px rgba(255, 119, 0, 0.3);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.shop-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #ffaa00;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.shop-close:hover {
    background: #ff2255;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding-right: 6px;
    max-height: 480px;
}

/* Custom Scrollbar */
.shop-items-grid::-webkit-scrollbar {
    width: 6px;
}
.shop-items-grid::-webkit-scrollbar-thumb {
    background: #ff7700;
    border-radius: 3px;
}

.shop-item-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.shop-item-card:hover {
    background: rgba(255, 119, 0, 0.08);
    border-color: rgba(255, 119, 0, 0.5);
    transform: translateY(-3px);
}

.shop-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.shop-item-icon {
    font-size: 32px;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-item-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.shop-item-desc {
    font-size: 12px;
    color: #a0acc0;
    line-height: 1.4;
    margin-bottom: 14px;
}

.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-price {
    font-size: 16px;
    font-weight: 800;
    color: #2ecc71;
}

.btn-buy {
    background: #ff7700;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy:hover {
    background: #ff9900;
    transform: scale(1.05);
}

.btn-buy:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Sound toggle */
.audio-toggle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 25, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
    transition: all 0.2s;
}
.audio-toggle:hover {
    color: #fff;
    border-color: #ff9900;
}

/* Tool Slot Styling (Roblox Snellont Tool) */
.hotbar-slot.tool-slot {
    border-color: rgba(0, 220, 255, 0.45);
    background: rgba(0, 180, 255, 0.08);
}
.hotbar-slot.tool-slot.active {
    border-color: #00ddff;
    background: rgba(0, 200, 255, 0.25);
    box-shadow: 0 6px 15px rgba(0, 220, 255, 0.5);
}

/* Multi-Detonatie Combo Popup */
#combo-container {
    position: absolute;
    top: 90px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    z-index: 30;
}

.combo-badge {
    background: linear-gradient(135deg, #ff0055, #ffaa00);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.5);
    border: 2px solid #fff;
    animation: comboPulse 0.4s ease-out;
    letter-spacing: 0.5px;
}

@keyframes comboPulse {
    0% { transform: scale(0.6) rotate(-4deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(2deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(0); opacity: 1; }
}

/* Festival Show Rating Banner */
.show-rating-banner {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.95), rgba(40, 10, 30, 0.95));
    border: 3px solid #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 24px 40px;
    text-align: center;
    color: #fff;
    z-index: 90;
    pointer-events: none;
    animation: bannerPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bannerPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
}

.show-rating-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    margin-bottom: 8px;
}

.show-rating-stars {
    font-size: 24px;
    margin-bottom: 10px;
}

.show-rating-payout {
    font-size: 20px;
    font-weight: 800;
    color: #2ecc71;
}
