* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #222;
    display: flex;
    justify-content: center;
    padding: 20px 12px;
}

.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

h1 {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: 0;
}

h2 {
    margin-top: 0;
}

p.subtitle {
    text-align: center;
    color: #fff;
    margin-top: -8px;
    margin-bottom: 20px;
    opacity: 0.9;
}

input[type=text], textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 12px;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: #2575fc;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

button.secondary {
    background: #6c757d;
}

button.danger {
    background: #dc3545;
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-list li {
    padding: 10px 12px;
    background: #f4f4f8;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #2575fc;
    color: #fff;
    margin-left: 6px;
}

.badge.ready {
    background: #28a745;
}

.badge.waiting {
    background: #ffc107;
    color: #333;
}

.category-btn {
    margin-bottom: 12px;
    text-align: left;
    padding: 18px;
}

.category-btn.graciosas { background: #ffb703; color: #3a2a00; }
.category-btn.vergonzosas { background: #fb6f92; }
.category-btn.picantes { background: #d00000; }

.category-btn small {
    display: block;
    font-weight: normal;
    opacity: 0.85;
    margin-top: 4px;
}

.category-btn:disabled {
    background: #ddd;
    color: #888;
}

.question-box {
    background: #f0f4ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.progress {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.answer-card {
    background: #f4f4f8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.answer-card .name {
    font-weight: bold;
    color: #2575fc;
    margin-bottom: 4px;
}

.status-msg {
    text-align: center;
    color: #666;
    margin: 12px 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
}

.error-box {
    background: #f8d7da;
    color: #842029;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.question-list li {
    padding: 10px;
    background: #f4f4f8;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.question-list li span {
    flex: 1;
}

.question-list li.inactive {
    opacity: 0.5;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tabs button {
    background: #e9ecef;
    color: #333;
}

.tabs button.active {
    background: #2575fc;
    color: #fff;
}

.small-btn {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
}
