/* ═══════════════════════════════════════════
   QUIRÓN — Estilos Personalizados
   Trivia Médica Interactiva
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables CSS ── */
:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: rgba(124, 58, 237, 0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(245, 158, 11, 0.3);
    --option-red: #ef4444;
    --option-blue: #3b82f6;
    --option-green: #22c55e;
    --option-orange: #f97316;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ── Reset & Base ── */
.quiron-app {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.quiron-app * {
    box-sizing: border-box;
}

/* ── Tipografía Cinzel (títulos mitológicos) ── */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

/* ── Fondos y Gradientes ── */
.bg-mythic {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.bg-hero-gradient {
    background:
        radial-gradient(circle at 30% 40%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, #16162a 50%, var(--bg-secondary) 100%);
}

/* ── Glass Cards ── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-static {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
}

/* ── Gold Glow Effects ── */
.glow-gold {
    box-shadow: 0 0 20px var(--gold-glow), 0 0 60px rgba(245, 158, 11, 0.1);
}

.glow-purple {
    box-shadow: 0 0 20px var(--purple-glow), 0 0 60px rgba(124, 58, 237, 0.1);
}

.text-gold {
    color: var(--gold);
}

.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Botones ── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a14;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-outline-gold:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* ── Options de Juego (estilo Kahoot!) ── */
.option-btn {
    padding: 20px 24px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.option-btn:hover::before {
    opacity: 1;
}

.option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-a { background: var(--option-red); }
.option-b { background: var(--option-blue); }
.option-c { background: var(--option-green); }
.option-d { background: var(--option-orange); }

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.option-btn.correct {
    border-color: #22c55e !important;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4) !important;
    animation: pulse-correct 0.6s ease;
}

.option-btn.incorrect {
    border-color: #ef4444 !important;
    animation: shake 0.5s ease;
    opacity: 0.6;
}

.option-btn .option-letter {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Timer Circular ── */
.timer-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.timer-ring svg {
    transform: rotate(-90deg);
}

.timer-ring .timer-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-ring .timer-circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-ring .timer-circle.warning {
    stroke: #f97316;
}

.timer-ring .timer-circle.danger {
    stroke: #ef4444;
    animation: pulse-danger 0.5s ease infinite;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Progress Bar ── */
.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--purple));
    border-radius: 3px;
    transition: width var(--transition-smooth);
}

/* ── Score Badge ── */
.score-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Category Badge ── */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ── Toggle Switch ── */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: background var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gold);
    border-color: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* ── Form Inputs ── */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ── Correct Option Selector ── */
.correct-option-selector {
    display: flex;
    gap: 8px;
}

.correct-option-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.correct-option-btn:hover {
    transform: scale(1.1);
}

.correct-option-btn.selected {
    border-width: 3px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    position: relative;
}

.correct-option-btn.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.correct-opt-a { background: rgba(239, 68, 68, 0.3); }
.correct-opt-a.selected { border-color: #22c55e; background: rgba(239, 68, 68, 0.5); }
.correct-opt-b { background: rgba(59, 130, 246, 0.3); }
.correct-opt-b.selected { border-color: #22c55e; background: rgba(59, 130, 246, 0.5); }
.correct-opt-c { background: rgba(34, 197, 94, 0.3); }
.correct-opt-c.selected { border-color: #22c55e; background: rgba(34, 197, 94, 0.5); }
.correct-opt-d { background: rgba(249, 115, 22, 0.3); }
.correct-opt-d.selected { border-color: #22c55e; background: rgba(249, 115, 22, 0.5); }

/* ── Scrollbar ── */
.quiron-app ::-webkit-scrollbar {
    width: 6px;
}

.quiron-app ::-webkit-scrollbar-track {
    background: transparent;
}

.quiron-app ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.quiron-app ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

@keyframes pulse-correct {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes score-pop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
    50% { box-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(245, 158, 11, 0.1); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-slide-left { animation: slideInLeft 0.5s ease-out; }
.animate-slide-right { animation: slideInRight 0.5s ease-out; }
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
.animate-score-pop { animation: score-pop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.animate-glow-pulse { animation: glow-pulse 2s ease-in-out infinite; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; animation-fill-mode: both; }
.delay-200 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-300 { animation-delay: 0.3s; animation-fill-mode: both; }
.delay-400 { animation-delay: 0.4s; animation-fill-mode: both; }

/* ── Confetti ── */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confetti-fall linear forwards;
    pointer-events: none;
}

/* ── Explanation Box ── */
.explanation-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    animation: fadeInUp 0.4s ease-out;
    transition: all 0.3s ease;
}

.explanation-box.correct-box {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
}

.explanation-box.incorrect-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
}

.explanation-box.timeout-box {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
}

.explanation-box .explanation-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* ── Results Screen ── */
.result-card {
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(124, 58, 237, 0.1));
    animation: glow-pulse 2s ease-in-out infinite;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Ranking Table ── */
.ranking-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 80px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background var(--transition-fast);
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ranking-position {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.ranking-position.gold { background: rgba(245, 158, 11, 0.2); color: var(--gold); }
.ranking-position.silver { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.ranking-position.bronze { background: rgba(180, 120, 60, 0.2); color: #d4a56a; }
.ranking-position.normal { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

/* ── Admin Panel ── */
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    min-height: 100vh;
    width: 260px;
    transition: width var(--transition-smooth);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border-radius: 8px;
    margin: 2px 12px;
    font-size: 0.9rem;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

/* ── Question Card (Admin) ── */
.question-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition-fast);
    cursor: grab;
}

.question-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.question-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ── Loading Spinner ── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .option-btn {
        padding: 16px 18px;
        font-size: 0.95rem;
        min-height: 60px;
    }
    
    .option-btn .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .timer-ring {
        width: 64px;
        height: 64px;
    }
    
    .timer-text {
        font-size: 1.2rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .ranking-row {
        grid-template-columns: 32px 1fr 80px;
    }
    
    .ranking-row > :nth-child(4) {
        display: none;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
}

@media (max-width: 480px) {
    .option-btn {
        padding: 14px 14px;
        font-size: 0.9rem;
    }
}

/* ── Lobby Quiron Image ── */
.quiron-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
}

.quiron-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.quiron-image-container:hover img {
    transform: scale(1.03);
}

/* ── Divider ── */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 32px 0;
    opacity: 0.3;
}

/* ── Tooltip ── */
.tooltip-container {
    position: relative;
}

.tooltip-container .tooltip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.tooltip-container:hover .tooltip-text {
    opacity: 1;
}

/* ── Print ── */
@media print {
    .quiron-app { display: none; }
}
