@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400&display=swap');

body {
    margin: 0;
    overflow: hidden;
    /* The Classic PS3 Gradient */
    background: radial-gradient(circle at 70% 30%, #004e75 0%, #001f3f 60%, #000000 100%);
    font-family: 'Roboto', sans-serif; /* Clean sans-serif */
    color: #ffffff;
}

h1 {
    font-weight: 100; /* Very thin */
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 2px;
    text-transform: capitalize; /* XMB uses Title Case often */
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Soft drop shadow, not neon glow */
    border-bottom: 1px solid rgba(255,255,255,0.2); /* Subtle separator line */
    padding-bottom: 10px;
    display: inline-block;
}

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

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
    /* No heavy gradient, keep it airy */
}

.header, .controls, .inventory, .modal {
    pointer-events: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.stats {
    display: flex;
    gap: 40px;
}

.stat-box {
    text-align: right;
}

.stat-box .label {
    display: block;
    font-size: 0.9em;
    color: #a0a0a0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stat-box .value {
    font-weight: 500;
    font-size: 2.5em;
    color: #ffd700; /* Soft Gold */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.message {
    text-align: center;
    font-weight: 300;
    font-size: 1.8em;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    margin-bottom: auto;
    margin-top: 60px;
    height: 40px;
}

.inventory {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 70px;
}

.card-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.6);
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.glow-btn {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.0) 51%, rgba(255,255,255,0.0) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 15px 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px; /* Less rounded, more like menu items */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.glow-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.5); /* White glow on hover */
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 900px;
    width: 90%;
}

.modal-content h2 {
    font-weight: 300;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 5px;
    font-size: 2em;
}

.card-choices {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.choice-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 220px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.choice-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.choice-card h3 {
    margin: 0;
    color: #ffd700;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 1px;
}

.choice-card p {
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.5;
    font-weight: 300;
}

/* Confirmation Modal for using a card */
.confirm-modal {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
}

.confirmation-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    max-width: 500px;
}

.confirmation-content p {
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 1px;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.cancel-btn {
    border-color: rgba(255,255,255,0.2);
    background: transparent;
}

.cancel-btn:hover {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.5);
    box-shadow: 0 0 15px rgba(255,0,0,0.2);
}

.mute-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: auto;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}