@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
    --bg-dark: #0f172a;
    --text: #f1f5f9;
    --yellow-glow: #fcd34d;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header { padding: 40px 20px; text-align: center; }

.game-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

/* Borda Amarela Giratória */
.game-card {
    width: 320px;
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background-image: conic-gradient(from var(--angle), transparent 70%, var(--yellow-glow));
    animation: spin 3s linear infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@keyframes spin { from { --angle: 0deg; } to { --angle: 360deg; } }

.game-card:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(252, 211, 77, 0.4); }

.card-inner {
    background: #1e293b;
    border-radius: 17px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image { height: 180px; background-size: cover; background-position: center; }

/* Imagens JPG */
.card-doubt { background-image: url('assets/I doubt.jpg'); }
.card-guess { background-image: url('assets/guess the phase.jpg'); }

.card-content { padding: 20px; flex-grow: 1; }

/* Fundos das cores específicas */
.type-doubt .card-content { background: linear-gradient(to bottom, #7f1d1d, #450a0a); } /* Vermelho */
.type-guess .card-content { background: linear-gradient(to bottom, #1e3a8a, #172554); } /* Azul */

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }

.btn-play {
    background: white; color: black; border: none; padding: 8px 16px;
    border-radius: 6px; font-weight: bold; cursor: pointer;
}

/* Utilitários */
.internal-body { padding: 20px; text-align: center; }
.btn-back { background: #334155; color: white; padding: 10px 15px; border-radius: 5px; text-decoration: none; display: inline-block; margin-bottom: 20px; }
.hidden { display: none !important; }