/* Final judging — judge.html, admin Judges / Live Results, results.html */
.jg-page { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: #0f172a; background: #f4f7fb; min-height: 100vh; }
.jg-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.jg-brand { font-weight: 800; font-size: 1.1rem; color: #0b4ea2; }
.jg-role { font-size: .72rem; font-weight: 800; background: #fef3c7; color: #78350f; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.jg-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 18px; }
.jg-hero { background: #0b4ea2; color: #fff; border-radius: 20px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.jg-hero.dark { background: #0f172a; }
.jg-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: #bcd3f5; }
.jg-hero h1, .jg-hero h2 { margin: 4px 0 6px; font-weight: 800; color: #fff; font-size: 1.75rem; }
.jg-hero p { margin: 0; color: #dbe7fa; line-height: 1.55; max-width: 640px; }
.jg-progress { background: #fff; color: #0f172a; border-radius: 16px; padding: 14px 18px; min-width: 250px; display: flex; flex-direction: column; gap: 8px; }
.jg-bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.jg-bar > div { height: 100%; background: #16a34a; border-radius: 999px; transition: width .3s; }
.jg-notice { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 16px; font-size: .9rem; }
.jg-notice.open { background: #ecfdf3; border: 1px solid #a7e3bd; color: #14532d; }
.jg-notice.locked { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.jg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #16a34a; }
.jg-notice.locked .jg-dot { background: #dc2626; }
.jg-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; }
.jg-card-head { padding: 14px 20px; border-bottom: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.jg-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 700; font-size: .82rem; }
.jg-chip.active { background: #0b4ea2; border-color: #0b4ea2; color: #fff; }
.jg-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jg-table th { background: #f8fafc; color: #475569; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 12px; text-align: left; }
.jg-table td { padding: 12px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.jg-table tr.todo td { background: #fffdf5; }
.jg-score { display: flex; align-items: center; gap: 8px; }
.jg-score input { width: 92px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #cbd5e1; font-size: 1rem; font-weight: 700; color: #0f172a; }
.jg-score input.todo { border-color: #f59e0b; }
.jg-score input:disabled { background: #f1f5f9; }
.jg-btn { text-decoration: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: none; background: #0b4ea2; color: #fff; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jg-btn:hover { background: #093f85; color: #fff; }
.jg-btn:disabled { background: #94a3b8; }
.jg-btn.outline { background: #fff; color: #0b4ea2; border: 1.5px solid #0b4ea2; }
.jg-btn.ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.jg-btn.danger { background: #fff; color: #b42318; border: 1.5px solid #f3b4ad; }
.jg-btn.light { background: #fff; color: #0f172a; }
.jg-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.jg-pill.ok { background: #dcfce7; color: #15803d; }
.jg-pill.todo { background: #fef3c7; color: #92400e; }
.jg-pill.err { background: #fee2e2; color: #991b1b; }
.jg-mcard { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jg-mcard.todo { border-color: #f59e0b; }
.jg-mcard .jg-score input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 48px; font-size: 1.1rem; }

/* Stats */
.jg-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.jg-stat { flex: 1 1 200px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px 20px; }
.jg-stat-label { font-size: .8rem; color: #475569; font-weight: 600; }
.jg-stat-value { font-size: 1.6rem; font-weight: 800; }
.jg-stat-value small { font-size: .9rem; color: #64748b; font-weight: 600; }

/* Ranking rows */
.jg-rank-row { display: grid; grid-template-columns: 56px minmax(110px, 180px) minmax(0, 1fr) 110px 130px; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #f1f5f9; }
.jg-rank-row:last-child { border-bottom: 0; }
@media (max-width: 767.98px) { .jg-rank-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 16px; } .jg-rank-row .jg-track { grid-column: 1 / -1; order: 5; } .jg-rank-row .jg-judges { grid-column: 2 / -1; text-align: left !important; } }
.jg-rank { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: #f1f5f9; color: #475569; }
.jg-rank.r1 { background: #dcfce7; color: #15803d; }
.jg-rank.r2, .jg-rank.r3 { background: #e8f0fc; color: #0b4ea2; }
.jg-track { height: 12px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.jg-track > div { height: 100%; border-radius: 999px; background: #0b4ea2; transition: width .4s; }
.jg-avg { text-align: right; font-size: 1.35rem; font-weight: 800; }
.jg-avg small { font-size: .78rem; color: #64748b; font-weight: 600; }
.jg-live { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: #86efac; }
.jg-live .jg-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.jg-live.final { color: #fde68a; }
.jg-live.final .jg-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }

/* Public podium */
.jg-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.jg-pod { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 22px 18px; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.jg-pod .jg-pod-badge { font-size: .8rem; font-weight: 800; background: #e8f0fc; color: #0b4ea2; padding: 4px 12px; border-radius: 999px; }
.jg-pod .jg-pod-name { font-size: 1.3rem; font-weight: 800; }
.jg-pod .jg-pod-members { font-size: .82rem; color: #475569; }
.jg-pod .jg-pod-score { font-size: 2.2rem; font-weight: 800; color: #0b4ea2; line-height: 1.1; }
.jg-pod .jg-pod-score small { font-size: .85rem; color: #64748b; font-weight: 600; }
.jg-pod.first { background: #ecfdf3; border: 2px solid #16a34a; border-radius: 22px; min-height: 340px; padding: 30px 20px; box-shadow: 0 14px 30px rgba(22, 163, 74, .18); }
.jg-pod.first .jg-pod-badge { background: #16a34a; color: #fff; }
.jg-pod.first .jg-pod-name { font-size: 1.6rem; color: #14532d; }
.jg-pod.first .jg-pod-members { color: #166534; }
.jg-pod.first .jg-pod-score { font-size: 3rem; color: #15803d; }
.jg-pod-trophy { width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.jg-pod.empty { visibility: hidden; }
@media (max-width: 720px) { .jg-podium { grid-template-columns: 1fr; } .jg-pod.first { order: -1; } .jg-pod.empty { display: none; } }
.jg-tabs { display: inline-flex; gap: 6px; background: #fff; border: 1px solid #e2e8f0; padding: 6px; border-radius: 999px; }
.jg-tab { min-height: 42px; padding: 0 20px; border-radius: 999px; border: none; background: transparent; color: #334155; font-weight: 700; }
.jg-tab.active { background: #0b4ea2; color: #fff; }

/* Fullscreen projector view */
.jg-fs:fullscreen { background: #f4f7fb; padding: 32px; overflow: auto; }
