*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1117;
  --navy-light: #161b2e;
  --navy-card: #1a2035;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201,168,76,0.12);
  --cream: #f5f0e8;
  --cream-dim: rgba(245,240,232,0.6);
  --red: #e74c3c;
  --green: #27ae60;
  --border: rgba(201,168,76,0.22);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 14px;
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }
#page-content { flex: 1; }

.container { max-width: 600px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); width: 100%; font-size: 16px; padding: 17px;
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(201,168,76,0.35); }
.btn-secondary { background: transparent; color: var(--gold); border: 1.5px solid rgba(201,168,76,0.5); width: 100%; }
.btn-secondary:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--cream-dim); width: 100%; border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--cream); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; filter: none !important; }

/* Cards */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Forms */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.form-label .optional { color: var(--cream-dim); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; margin-left: 6px; }
.form-input, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(201,168,76,0.2);
  border-radius: 10px; color: var(--cream); font-family: var(--font-sans);
  font-size: 15px; padding: 13px 15px; transition: all 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,240,232,0.28); }
.form-textarea { resize: vertical; min-height: 130px; }
.char-counter { text-align: right; font-size: 11px; color: var(--cream-dim); margin-top: 5px; }
.char-counter.over { color: var(--red); }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-red { background: rgba(231,76,60,0.15); color: var(--red); }

.divider { border: none; border-top: 1px solid rgba(201,168,76,0.15); margin: 26px 0; }

/* Page Header */
.page-header {
  background: rgba(22,27,46,0.95); border-bottom: 1px solid var(--border);
  padding: 15px 20px; display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.page-header .logo { font-family: var(--font-serif); font-size: 17px; color: var(--gold); font-weight: 700; }
.back-btn { color: var(--cream-dim); font-size: 24px; text-decoration: none; line-height: 1; transition: color 0.2s; }
.back-btn:hover { color: var(--cream); }

/* Loading */
.loading-dots { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 20px; }
.loading-dots span { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: bounce 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100% { transform:scale(0.6); opacity:0.4; } 40% { transform:scale(1); opacity:1; } }
@keyframes stage-bounce { 0%,100% { transform:translateY(0) scale(1); } 45% { transform:translateY(-10px) scale(1.18); } }
@keyframes step-glow { 0%,100% { box-shadow:0 0 6px rgba(201,168,76,0.15); } 50% { box-shadow:0 0 20px rgba(201,168,76,0.6), 0 0 0 3px rgba(201,168,76,0.2); } }

/* Toast */
#toast-container { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: rgba(26,32,53,0.97); border: 1px solid var(--border); color: var(--cream);
  padding: 12px 22px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow);
  animation: slideUp 0.25s ease; pointer-events: auto; white-space: nowrap;
  backdrop-filter: blur(8px);
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* Footer */
#site-footer { background: var(--navy-light); border-top: 1px solid var(--border); padding: 32px 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--cream-dim); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-biz { font-size: 12px; color: rgba(245,240,232,0.35); line-height: 2; }

/* Step Cards */
.step-card { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; margin-bottom: 12px; }
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-role { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.step-content { font-size: 14px; line-height: 1.9; color: var(--cream); white-space: pre-wrap; }

/* Slider */
.form-range { width: 100%; accent-color: var(--gold); cursor: pointer; height: 6px; }
.slider-value { text-align: center; font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--gold); margin: 10px 0 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--cream-dim); margin-top: 8px; }

/* Judge reveal */
.judge-reveal { text-align: center; padding: 28px; background: linear-gradient(135deg, var(--gold-dim), rgba(201,168,76,0.06)); border: 1.5px solid var(--gold); border-radius: var(--radius); }
.judge-icon { font-size: 56px; margin-bottom: 10px; line-height: 1; }
.judge-name { font-family: var(--font-serif); font-size: 22px; color: var(--gold); font-weight: 700; }

/* Verdict */
.verdict-card { background: linear-gradient(135deg, var(--navy-card), rgba(201,168,76,0.04)) !important; border: 1.5px solid rgba(201,168,76,0.5) !important; }
.verdict-stamp { display: inline-block; border: 2.5px solid var(--red); color: var(--red); font-family: var(--font-serif); font-size: 16px; font-weight: 700; padding: 5px 14px; transform: rotate(-2deg); margin-bottom: 14px; letter-spacing: 0.12em; border-radius: 3px; }

/* Trial progress */
.trial-progress { display: flex; gap: 5px; margin-bottom: 24px; }
.progress-step { flex: 1; height: 3px; background: rgba(201,168,76,0.15); border-radius: 2px; transition: background 0.5s; }
.progress-step.done { background: var(--gold); }

/* Example cards */
.example-card { cursor: pointer; transition: all 0.2s; border-left: 3px solid rgba(201,168,76,0.5); min-height: 96px; padding: 18px 20px; }
.example-card:hover { transform: translateX(4px); border-left-color: var(--gold); background: rgba(26,32,53,0.9); box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.example-card .case-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.example-card .case-meta { font-size: 12px; color: var(--cream-dim); display: flex; gap: 12px; margin-top: 8px; }

/* Disclaimer */
.disclaimer { background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.18); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: rgba(245,240,232,0.65); line-height: 1.75; }
.disclaimer strong { color: #e88; }

/* How-to steps */
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-step-num { min-width: 32px; height: 32px; background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--gold); flex-shrink: 0; }

/* Sentence card */
.sentence-card { border-color: rgba(201,168,76,0.5) !important; background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05)) !important; text-align: center; padding: 28px !important; }
.sentence-text { font-family: var(--font-serif); font-size: 17px; color: var(--gold-light); font-weight: 700; line-height: 1.6; }

/* Action buttons area */
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* Admin styles */
.admin-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.admin-tab { padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--cream-dim); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; background: none; border-left: none; border-right: none; border-top: none; }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; color: var(--gold); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; border-bottom: 1px solid rgba(201,168,76,0.08); vertical-align: top; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.tag { display: inline-block; background: rgba(255,255,255,0.07); padding: 2px 8px; border-radius: 4px; font-size: 11px; margin: 2px; cursor: pointer; transition: background 0.2s; }
.tag:hover { background: rgba(231,76,60,0.3); }

/* Judge select grid */
.judge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.judge-option {
  background: var(--navy-card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 8px 12px; text-align: center;
  cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.judge-option:hover { border-color: var(--gold); background: var(--gold-dim); }
.judge-option.active {
  border-color: var(--gold) !important;
  background: var(--gold-dim) !important;
  box-shadow: 0 0 0 2px var(--gold), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: scale(1.03);
}
.judge-option-name { font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 7px; }
.judge-option-desc { font-size: 10px; color: var(--cream-dim); margin-top: 3px; line-height: 1.35; }

/* 테마 토글 버튼 */
#theme-toggle {
  position: fixed; bottom: 76px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-card); border: 1.5px solid var(--border);
  font-size: 18px; cursor: pointer; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#theme-toggle:hover { transform: scale(1.12); border-color: var(--gold); }

/* 하단 네비게이션 */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(13,17,23,0.97); border-top: 1px solid var(--border);
  display: flex; z-index: 300; height: 58px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 6px 0;
  color: rgba(245,240,232,0.38); text-decoration: none;
  transition: color 0.18s; -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--gold); }
.nav-item.nav-cta { color: rgba(201,168,76,0.6); }
.nav-item.nav-cta.active { color: var(--gold); }
.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }

/* 하단 네비게이션 공간 확보 */
#site-footer { padding-bottom: 72px; }

/* 라이트 테마 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --navy: #f7f3ed;
    --navy-light: #eee8df;
    --navy-card: #ffffff;
    --gold: #9a7018;
    --gold-light: #c9a84c;
    --gold-dim: rgba(154,112,24,0.1);
    --cream: #1a150a;
    --cream-dim: rgba(26,21,10,0.55);
    --border: rgba(154,112,24,0.22);
    --shadow: 0 2px 16px rgba(0,0,0,0.1);
  }
}
[data-theme="light"] {
  --navy: #f7f3ed;
  --navy-light: #eee8df;
  --navy-card: #ffffff;
  --gold: #9a7018;
  --gold-light: #c9a84c;
  --gold-dim: rgba(154,112,24,0.1);
  --cream: #1a150a;
  --cream-dim: rgba(26,21,10,0.55);
  --border: rgba(154,112,24,0.22);
  --shadow: 0 2px 16px rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-primary { box-shadow: 0 2px 12px rgba(154,112,24,0.25); }
[data-theme="light"] .btn-ghost { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: rgba(26,21,10,0.6); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.09); color: rgba(26,21,10,0.85); }
[data-theme="light"] #bottom-nav { background: rgba(247,243,237,0.97); }
[data-theme="light"] .nav-item { color: rgba(26,21,10,0.42); }
[data-theme="light"] .hero-section { background: linear-gradient(180deg, #2d1f08 0%, #1a1205 65%); }
[data-theme="light"] .hero-h1 { color: #f5f0e8; }
[data-theme="light"] .cta-section { background: linear-gradient(135deg, #2d1f08 0%, #1a1205 100%); }
[data-theme="light"] .cta-section h2,
[data-theme="light"] .cta-section p { color: #f5f0e8; }
[data-theme="light"] .page-header { background: rgba(247,243,237,0.95); }
[data-theme="light"] .example-card:hover { background: rgba(238,232,223,0.9); }
[data-theme="light"] .verdict-card { background: linear-gradient(135deg, #fff, rgba(154,112,24,0.04)) !important; }
[data-theme="light"] .footer-biz { color: rgba(26,21,10,0.4); }
[data-theme="light"] .disclaimer { color: rgba(26,21,10,0.68); background: rgba(200,40,30,0.06); }
[data-theme="light"] .disclaimer strong { color: #c0392b; }
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea { background: rgba(0,0,0,0.04); border-color: rgba(154,112,24,0.35); color: #1a150a; }
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder { color: rgba(26,21,10,0.3); }
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus { background: rgba(154,112,24,0.05); }
[data-theme="light"] .card { box-shadow: 0 1px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9); }
[data-theme="light"] .toast { background: rgba(247,243,237,0.97); color: #1a150a; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-ghost { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: rgba(26,21,10,0.6); }
  :root:not([data-theme="dark"]) .btn-ghost:hover { background: rgba(0,0,0,0.09); color: rgba(26,21,10,0.85); }
  :root:not([data-theme="dark"]) .nav-item { color: rgba(26,21,10,0.42); }
  :root:not([data-theme="dark"]) .hero-section { background: linear-gradient(180deg, #2d1f08 0%, #1a1205 65%); }
  :root:not([data-theme="dark"]) .hero-h1 { color: #f5f0e8; }
  :root:not([data-theme="dark"]) .cta-section { background: linear-gradient(135deg, #2d1f08 0%, #1a1205 100%); }
  :root:not([data-theme="dark"]) .cta-section h2,
  :root:not([data-theme="dark"]) .cta-section p { color: #f5f0e8; }
  :root:not([data-theme="dark"]) .page-header { background: rgba(247,243,237,0.95); }
  :root:not([data-theme="dark"]) .example-card:hover { background: rgba(238,232,223,0.9); }
  :root:not([data-theme="dark"]) .footer-biz { color: rgba(26,21,10,0.4); }
  :root:not([data-theme="dark"]) .disclaimer { color: rgba(26,21,10,0.68); background: rgba(200,40,30,0.06); }
  :root:not([data-theme="dark"]) .disclaimer strong { color: #c0392b; }
  :root:not([data-theme="dark"]) .form-input,
  :root:not([data-theme="dark"]) .form-textarea { background: rgba(0,0,0,0.04); border-color: rgba(154,112,24,0.35); color: #1a150a; }
  :root:not([data-theme="dark"]) .form-input::placeholder,
  :root:not([data-theme="dark"]) .form-textarea::placeholder { color: rgba(26,21,10,0.3); }
  :root:not([data-theme="dark"]) .form-input:focus,
  :root:not([data-theme="dark"]) .form-textarea:focus { background: rgba(154,112,24,0.05); }
  :root:not([data-theme="dark"]) .card { box-shadow: 0 1px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9); }
  :root:not([data-theme="dark"]) .toast { background: rgba(247,243,237,0.97); color: #1a150a; }
}

/* ===== Home Hero ===== */
.hero-section { background: linear-gradient(180deg, #161b2e 0%, #0d1117 65%); padding: 56px 20px 44px; text-align: center; }
.hero-badge { display: inline-block; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4); color: var(--gold); font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 30px; margin-bottom: 20px; }
.hero-h1 { font-family: var(--font-serif); font-size: 52px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--cream); }
.hero-sub { font-size: 15px; color: rgba(245,240,232,0.7); line-height: 1.8; margin-bottom: 22px; max-width: 320px; margin-left: auto; margin-right: auto; }
.hero-tw { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; display: inline-block; padding: 9px 18px; font-size: 13px; color: rgba(245,240,232,0.65); margin-bottom: 28px; min-height: 40px; max-width: 320px; }
.hero-tw strong { color: #e8c97a; font-weight: 700; }
.cursor-blink { animation: blink 1s step-end infinite; color: #c9a84c; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-cta { display: inline-block; background: linear-gradient(135deg, #c9a84c, #e8c97a); color: #0d1117; font-size: 16px; font-weight: 900; padding: 17px 36px; border-radius: var(--radius); text-decoration: none; box-shadow: 0 4px 22px rgba(201,168,76,0.4); transition: all 0.15s; -webkit-tap-highlight-color: transparent; letter-spacing: 0.01em; }
.hero-cta:hover { filter: brightness(1.1); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 32px rgba(201,168,76,0.6); }
.hero-cta:active { transform: scale(0.97); }
.hero-cta-pulse { animation: pulse-glow 2.4s ease-in-out infinite; }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 4px 22px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 4px 36px rgba(201,168,76,0.75), 0 0 0 6px rgba(201,168,76,0.12); }
}
.hero-disclaimer { font-size: 11px; color: rgba(245,240,232,0.28); margin-top: 12px; }
@keyframes wiggle {
  0%,100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

/* Stats row */
.stats-row { display: flex; justify-content: center; gap: 0; margin-top: 36px; border-top: 1px solid rgba(201,168,76,0.15); padding-top: 24px; max-width: 380px; margin-left: auto; margin-right: auto; }
.stat-item { flex: 1; text-align: center; padding: 0 8px; border-right: 1px solid rgba(201,168,76,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: #c9a84c; margin-bottom: 4px; }
.stat-label { font-size: 10px; color: rgba(245,240,232,0.45); line-height: 1.4; }

/* Section sub label */
.section-sub { font-size: 13px; color: var(--cream-dim); margin-bottom: 16px; }

/* Judge Lineup horizontal scroll */
.judge-lineup { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.judge-lineup::-webkit-scrollbar { display: none; }
.judge-card { flex-shrink: 0; width: 100px; background: var(--navy-card); border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 8px 13px; text-align: center; cursor: pointer; transition: all 0.18s; }
.judge-card:hover { border-color: var(--gold); transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.judge-card:active { transform: scale(0.97); }
.judge-card-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.judge-card-name { font-size: 10.5px; font-weight: 700; color: var(--gold); margin-bottom: 4px; line-height: 1.3; }
.judge-card-desc { font-size: 9.5px; color: var(--cream-dim); line-height: 1.4; font-style: italic; }

/* Bottom CTA section */
.cta-section { background: linear-gradient(135deg, #161b2e 0%, #0d1117 100%); border-top: 1px solid rgba(201,168,76,0.15); padding: 52px 20px; text-align: center; }
.cta-section h2 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 10px; color: var(--cream); }
.cta-section p { font-size: 14px; color: var(--cream-dim); margin-bottom: 24px; line-height: 1.7; }

/* 프로필 사진 변경 버튼 묶음 */
.auth-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-photo-actions .btn {
  margin-top: 0;
}

.auth-photo-actions .btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* 판결 결과 하단의 관련 태그 칩 (검색 유입 태그 페이지로 이동) */
.result-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 2px 18px;
}

.result-tag-chip {
  text-decoration: none;
  border: 1px solid var(--border, rgba(201,168,76,.22));
  background: var(--navy-light, #161b2e);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold, #c9a84c);
}

.result-tag-chip:hover {
  border-color: var(--gold, #c9a84c);
}
