@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono&display=swap");

:root {
    --red: #d10000;
    --red-light: #ff4848;
    --purple: #b967ff;
    --orange: #ff6600;
    --blue: #0066ff;
    --green: #00cc66;
    --background: #0a0a0a;
    --card-bg: rgba(20, 20, 25, 0.75);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: #b3b3b3;
}

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

body {
    background: linear-gradient(135deg, #0c0c16 0%, #1a001a 50%, #0c0c16 100%);
    color: var(--text);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 10px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    body {
        font-size: 12px;
    }
    .container-fluid {
        font-size: 14px;
        padding: 20px;
    }
    h1 {
        font-size: 3rem;
    }
    .card-display {
        width: 260px;
        height: 360px;
    }
}

/* Subtle animated background elements */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(209, 0, 0, 0.1) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(185, 103, 255, 0.1) 0%,
            transparent 40%
        );
    pointer-events: none;
    z-index: 0;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(0) translateX(10px);
    }
    75% {
        transform: translateY(10px) translateX(5px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    border-radius: 3px;
}

h1 {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(209, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 span {
    color: var(--red-light);
    font-weight: 700;
}

/* Safeword Banner */
.safeword {
    background: var(--card-bg);
    color: var(--red);
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

/* Game Status Bar */
.game-status-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.status-label {
    font-weight: 500;
}

.status-value {
    color: var(--text);
}

/* Clickable status card */
.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    background: rgba(209, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 0, 0, 0.2);
}

.clickable:active {
    transform: translateY(0);
}

.status-subtext {
    margin-top: 4px;
    font-size: 0.75rem;
}

/* Card Display */
.card-display {
    width: 180px;
    height: 250px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-display:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow:
        0 20px 40px rgba(209, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Modal Styles */
.modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 15px 20px;
}

/* Dare Box */
.dare-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Timer Styles */
.timer-display {
    font-size: 12rem;
    font-weight: 700;
    color: var(--red-light);
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    text-shadow: 0 0 20px rgba(209, 0, 0, 0.5);
    text-transform: uppercase;
}

.timer-warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(209, 0, 0, 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(209, 0, 0, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(209, 0, 0, 0);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Button Styles */
.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgba(209, 0, 0, 0.2) !important;
    border-color: rgba(209, 0, 0, 0.3) !important;
    color: var(--red) !important;
}

.btn-primary:hover {
    background: rgba(209, 0, 0, 0.3) !important;
    color: #ff6666 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 0, 0, 0.2);
}

.btn-success {
    background: rgba(0, 204, 102, 0.15) !important;
    border-color: rgba(0, 204, 102, 0.3) !important;
    color: #00cc66 !important;
}

.btn-success:hover {
    background: rgba(0, 204, 102, 0.25) !important;
    color: #00ff80 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 204, 102, 0.2);
}

.btn-info {
    background: rgba(0, 102, 255, 0.15) !important;
    border-color: rgba(0, 102, 255, 0.3) !important;
    color: #0066ff !important;
}

.btn-info:hover {
    background: rgba(0, 102, 255, 0.25) !important;
    color: #3388ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-warning {
    background: rgba(255, 153, 0, 0.15) !important;
    border-color: rgba(255, 153, 0, 0.3) !important;
    color: #ff9900 !important;
}

.btn-warning:hover {
    background: rgba(255, 153, 0, 0.25) !important;
    color: #ffbb33 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
}

.btn-danger {
    background: rgba(209, 0, 0, 0.2) !important;
    border-color: rgba(209, 0, 0, 0.3) !important;
    color: var(--red) !important;
}

.btn-danger:hover {
    background: rgba(209, 0, 0, 0.3) !important;
    color: #ff4848 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 0, 0, 0.2);
}

.btn-outline-danger {
    background: transparent !important;
    border-color: rgba(209, 0, 0, 0.3) !important;
    color: var(--red) !important;
}

.btn-outline-danger:hover {
    background: rgba(209, 0, 0, 0.1) !important;
    color: #ff4848 !important;
}

.btn-close {
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .container-fluid {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
        padding: 6px 15px;
    }

    .status-card {
        padding: 10px;
    }

    .status-label {
        font-size: 0.7rem;
    }

    .status-value {
        font-size: 1.2rem;
    }

    .card-display {
        width: 140px;
        height: 200px;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
