/* =============================================
   ハッカソン結果発表アプリ - メインCSS
   ============================================= */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gold: #f59e0b;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card2: #2d3748;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html, body {
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* =============================================
   Layout Utilities
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.hidden { display: none !important; }
.grid { display: grid; }

/* =============================================
   Common Components
   ============================================= */

/* Page wrapper */
#app { min-height: 100vh; }

.page {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.3s ease;
}
.page.active { display: block; }

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:not(:disabled):hover { background: var(--bg-card2); color: var(--text); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-success { background: rgba(16,185,129,0.2); color: #10b981; }
.badge-warning { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-danger { background: rgba(239,68,68,0.2); color: #ef4444; }
.badge-muted { background: rgba(148,163,184,0.2); color: #94a3b8; }
.badge-count {
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  position: absolute;
  top: -4px;
  right: -4px;
}

/* Spinner */
.spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast-container {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 10000;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  min-width: 260px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  font-size: 0.9rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   Page: Home (#/)
   ============================================= */
.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 60%);
}
.home-inner { text-align: center; padding: 2rem; }
.home-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.home-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.home-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.home-buttons { display: flex; flex-direction: column; gap: 1rem; max-width: 320px; margin: 0 auto; }
.home-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-btn:hover { border-color: var(--primary); transform: translateX(4px); background: var(--bg-card2); }
.home-btn-icon { font-size: 1.5rem; }

/* =============================================
   Page: Admin Login
   ============================================= */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 60%);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.login-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.login-sub { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin-bottom: 2rem; }

/* =============================================
   Page: Admin Dashboard
   ============================================= */
.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-header-title { font-size: 1.1rem; font-weight: 800; }
.admin-tabs {
  display: flex;
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.25rem;
}
.admin-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  background: none; border: none;
}
.admin-tab.active { background: var(--primary); color: white; }
.admin-content { padding: 1.5rem; max-width: 960px; margin: 0 auto; }

/* Team/Judge lists */
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s;
}
.list-item:hover { border-color: var(--primary); }
.list-item-name { font-weight: 700; font-size: 1rem; }
.list-item-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15rem; }

/* Member input rows */
.member-row { display: flex; gap: 0.5rem; align-items: center; }
.member-row .form-input { flex: 1; }

/* Vote status grid */
.vote-status-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.vote-status-table th {
  background: var(--bg-card2);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vote-status-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); }
.vote-status-table tr:last-child td { border-bottom: none; }

/* =============================================
   Page: Judge Select (#/judge)
   ============================================= */
.judge-select-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #0d1b2a 0%, #0f172a 60%);
  padding: 1.5rem 1rem;
}
.judge-select-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.judge-select-sub { color: var(--text-muted); text-align: center; margin-bottom: 2rem; }
.judge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 600px; margin: 0 auto;
}
.judge-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  min-height: 100px;
}
.judge-btn:hover { border-color: var(--primary); background: var(--bg-card2); transform: translateY(-2px); }
.judge-btn-icon { font-size: 2rem; }

/* =============================================
   Page: Vote (#/judge/vote)
   ============================================= */
.vote-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 120px;
}
.vote-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
.vote-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.vote-judge-name { font-weight: 800; font-size: 1.1rem; }
.vote-status-badge { font-size: 0.8rem; }

/* Team tabs */
.team-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab {
  flex-shrink: 0;
  position: relative;
  padding: 0.6rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.team-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.team-tab:hover:not(.active) { color: var(--text); }

/* Vote criteria */
.vote-content { padding: 1.5rem 1rem; }
.criteria-section { margin-bottom: 1.5rem; }
.criteria-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.criteria-label-num {
  background: var(--primary);
  color: white;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  flex-shrink: 0;
}

/* Score select (プルダウン) */
.score-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
}
.score-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.score-select:not(:disabled):hover {
  border-color: var(--primary);
}
.score-select option {
  background: #1e293b;
  color: var(--text);
  font-size: 1rem;
  padding: 0.5rem;
}
.score-select option:disabled {
  color: var(--text-muted);
}
/* 選択済みの場合は色を変える */
.score-select.selected {
  border-color: var(--primary);
  background-color: rgba(99,102,241,0.08);
  color: #a78bfa;
}
.score-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Vote footer */
.vote-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: flex; gap: 0.75rem;
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.vote-footer .btn { flex: 1; }

/* =============================================
   Page: Result (#/result)
   ============================================= */
.result-page {
  min-height: 100vh;
  background: #0a0a0f;
  color: white;
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
}

/* Waiting state */
.result-waiting {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  flex-direction: column; gap: 1.5rem; text-align: center;
  padding: 2rem;
}
.result-waiting-icon { font-size: 5rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.result-waiting-title { font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,0.6); }
.result-waiting-sub { font-size: 1.1rem; color: rgba(255,255,255,0.3); }

/* Result header */
.result-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  position: relative;
}
.result-main-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.result-subtitle {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

/* Next button */
.result-next-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
  transition: all 0.2s ease;
  z-index: 200;
  display: flex; align-items: center; gap: 0.5rem;
}
.result-next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.7); }

/* Current leader display */
.current-leader {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  text-align: center;
  margin: 0 2rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  transition: all 0.5s ease;
}
.current-leader-label { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.current-leader-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #f59e0b;
  transition: all 0.5s ease;
}

/* Matrix table */
.matrix-container {
  padding: 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
}
.matrix-table th, .matrix-table td {
  padding: 0.75rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.matrix-table th {
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  color: rgba(255,255,255,0.6);
  position: sticky; top: 0; z-index: 10;
}
.matrix-table th:first-child { text-align: left; min-width: 160px; }
.matrix-table td:first-child { text-align: left; font-weight: 700; }
.matrix-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Cell states */
.cell-hidden { color: rgba(255,255,255,0.15); letter-spacing: 0.1em; }
.cell-revealed {
  animation: cellReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cellReveal {
  from { opacity: 0; transform: scale(0.5) rotateY(90deg); }
  to { opacity: 1; transform: scale(1) rotateY(0deg); }
}
.cell-gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(251,191,36,0.15)) !important;
  color: #fbbf24 !important;
  font-weight: 900;
  box-shadow: inset 0 0 12px rgba(245,158,11,0.2);
}
.cell-gold-best {
  background: linear-gradient(135deg, rgba(245,158,11,0.5), rgba(251,191,36,0.3)) !important;
  color: #fcd34d !important;
  font-weight: 900;
  animation: goldPulse 1.5s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% { box-shadow: inset 0 0 12px rgba(245,158,11,0.3), 0 0 0 rgba(245,158,11,0); }
  50% { box-shadow: inset 0 0 20px rgba(245,158,11,0.5), 0 0 20px rgba(245,158,11,0.2); }
}
.cell-total { font-weight: 900; font-size: 1.1em; color: #a78bfa; }
.cell-rank1-count { font-weight: 900; color: #fbbf24; }

/* Count up animation */
.countup { transition: all 0.5s ease; }

/* Step indicator */
.step-indicator {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* Final ranking */
.final-ranking {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.final-ranking-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateX(-40px);
}
.rank-item.revealed {
  animation: rankSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes rankSlideIn {
  to { opacity: 1; transform: translateX(0); }
}
.rank-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  min-width: 60px;
  text-align: center;
}
.rank-1 .rank-number { font-size: 3.5rem; color: #fbbf24; text-shadow: 0 0 30px rgba(245,158,11,0.8); }
.rank-2 .rank-number { color: #94a3b8; }
.rank-3 .rank-number { color: #b45309; }
.rank-name { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 800; }
.rank-1 .rank-name { font-size: clamp(1.5rem, 3vw, 2rem); color: #fbbf24; }
.rank-scores { display: flex; gap: 1rem; margin-top: 0.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.rank-members { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.15rem; }

.rank-1 {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 0 40px rgba(245,158,11,0.15);
}

/* Winner celebration */
.winner-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  pointer-events: none;
}
.winner-text {
  text-align: center;
  animation: winnerEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
@keyframes winnerEntrance {
  from { opacity: 0; transform: scale(0.3) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.winner-crown { font-size: 6rem; display: block; margin-bottom: 0.5rem; }
.winner-label { font-size: 1.5rem; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 0.5rem; }
.winner-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.winner-members {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.winner-score { font-size: 1rem; color: rgba(255,255,255,0.4); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .admin-tabs { flex-wrap: wrap; }
  .admin-tab { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .vote-header { padding: 0.75rem 0.75rem 0; }
  .vote-content { padding: 1rem 0.75rem; }
  .matrix-table th, .matrix-table td { padding: 0.5rem 0.5rem; }
}

@media (min-width: 769px) {
  .judge-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Add form card */
.add-form-card {
  background: rgba(99,102,241,0.05);
  border: 1px dashed rgba(99,102,241,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.add-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
