/* ═══════════════════════════════════════════
   이상형 월드컵 - Premium Design v28 (브래킷)
═══════════════════════════════════════════ */

* { box-sizing: border-box; }

:root {
  --c-surface: #FFFFFF;
  --c-surface-2: #F8FAFC;
  --c-border: #E2E8F0;
  --c-border-soft: #F1F5F9;
  --c-text: #0F172A;
  --c-text-2: #475569;
  --c-text-3: #94A3B8;
  --c-accent: #E11D48;
  --c-accent-dark: #BE123C;
  --c-gold: #D4A574;
  --c-gold-2: #C9955F;
  --c-male: #3B82F6;
  --c-female: #EC4899;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --shadow-xl: 0 24px 48px rgba(15,23,42,.14), 0 8px 16px rgba(15,23,42,.06);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

body {
  margin: 0; padding: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #F5F7FA;
  color: var(--c-text);
  letter-spacing: -0.4px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

.wc-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 60px; }

.wc-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding: 20px 28px; background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
  border: 1px solid var(--c-border-soft);
}
.wc-head h1 {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.wc-head nav {
  display: flex; gap: 6px; padding: 4px;
  background: var(--c-surface-2); border-radius: 100px;
}
.wc-head nav a {
  color: var(--c-text-2); text-decoration: none;
  font-weight: 600; font-size: 13.5px;
  padding: 9px 18px; border-radius: 100px;
  transition: all .2s ease; white-space: nowrap;
}
.wc-head nav a:hover { color: var(--c-text); background: rgba(255,255,255,.7); }
.wc-head nav a.on {
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  box-shadow: 0 4px 12px rgba(225,29,72,.25);
}

.wc-round-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.wc-round-bar::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(225,29,72,.20) 0%, transparent 70%);
}
.wc-round-text {
  font-size: 26px; font-weight: 900; letter-spacing: -1px; color: #fff;
  position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.wc-round-count {
  font-size: 14px; color: rgba(255,255,255,.75); font-weight: 700;
  padding: 6px 14px; background: rgba(255,255,255,.1); border-radius: 100px;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15);
  position: relative; z-index: 1;
}

.wc-start {
  text-align: center; padding: 100px 32px;
  background: linear-gradient(180deg, #fff 0%, #FAFBFC 100%);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border-soft);
  position: relative; overflow: hidden;
}
.wc-start-emoji {
  font-size: 90px; margin-bottom: 20px; display: inline-block;
  animation: trophy 2s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(212,165,116,.4));
}
@keyframes trophy {
  0%,100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-12px) rotate(3deg) scale(1.05); }
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.wc-start-title {
  font-size: 42px; font-weight: 900; margin: 0 0 12px; letter-spacing: -1.8px;
  background: linear-gradient(135deg, #0F172A 0%, #334155 60%, var(--c-accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; z-index: 1;
}
.wc-start-sub {
  font-size: 16px; color: var(--c-text-2); margin-bottom: 40px;
  font-weight: 500; position: relative; z-index: 1;
}
.wc-start-btn {
  padding: 18px 72px; border: 0; border-radius: 100px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 32px rgba(15,23,42,.25), 0 4px 12px rgba(15,23,42,.15);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative; z-index: 1; overflow: hidden;
  font-family: inherit;
}
.wc-start-btn::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s ease;
}
.wc-start-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  box-shadow: 0 20px 48px rgba(225,29,72,.4);
}
.wc-start-btn:hover::before { left: 100%; }

.wc-arena {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 28px; align-items: stretch; margin-bottom: 28px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wc-card {
  position: relative; cursor: pointer;
  border-radius: var(--radius-lg); background: #fff; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), opacity .3s;
  user-select: none; -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--c-border-soft);
  display: flex; flex-direction: column;
}
.wc-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-xl); }
.wc-card.wc-picked {
  box-shadow: 0 0 0 4px var(--c-accent), 0 0 0 8px rgba(225,29,72,.15), var(--shadow-xl);
  transform: scale(1.02);
}
.wc-card.wc-faded { opacity: .15; filter: grayscale(1); }

.wc-thumb {
  aspect-ratio: 3/4;
  background: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex: 1;
}
.wc-thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.wc-card:hover .wc-thumb img { transform: scale(1.05); }

.wc-name {
  padding: 18px 20px; font-size: 16px; font-weight: 700; line-height: 1.4;
  text-align: center; color: var(--c-text); background: #fff;
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid var(--c-border-soft);
}

.wc-vs {
  font-size: 22px; font-weight: 900; color: var(--c-text-3);
  letter-spacing: 1px; padding: 0 4px; align-self: center;
  position: relative;
}
.wc-vs::before, .wc-vs::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 30px;
  background: linear-gradient(180deg, transparent, var(--c-border), transparent);
}
.wc-vs::before { top: -45px; }
.wc-vs::after { bottom: -45px; }

.wc-link {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(15,23,42,.75); color: #fff;
  text-decoration: none; z-index: 10;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
.wc-link:hover {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 24px rgba(225,29,72,.5);
  border-color: rgba(255,255,255,.4);
}
.wc-card:hover .wc-link { transform: scale(1.05); }
.wc-winner-card .wc-link { width: 44px; height: 44px; top: 16px; right: 16px; }

.wc-winner {
  text-align: center; padding: 60px 24px 40px;
  animation: winnerIn .6s cubic-bezier(.4,0,.2,1);
}
@keyframes winnerIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wc-winner-title {
  font-size: 52px; font-weight: 900; margin: 0 0 36px; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-2) 50%, var(--c-accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: goldShine 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(212,165,116,.4));
}
@keyframes goldShine {
  0%,100% { filter: drop-shadow(0 8px 24px rgba(212,165,116,.4)) brightness(1); }
  50% { filter: drop-shadow(0 12px 32px rgba(212,165,116,.6)) brightness(1.15); }
}
.wc-winner-card {
  max-width: 400px; margin: 0 auto 32px; border-radius: var(--radius-xl);
  overflow: hidden; background: #fff; position: relative;
  box-shadow: 0 24px 64px rgba(212,165,116,.35), 0 12px 24px rgba(15,23,42,.15), 0 0 0 2px var(--c-gold);
}
.wc-winner-card .wc-thumb { aspect-ratio: 3/4; }
.wc-winner-card .wc-name {
  font-size: 20px; font-weight: 800; padding: 22px;
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF1F2 100%);
  border-top: 1px solid rgba(212,165,116,.2);
}

.wc-actions {
  text-align: center; margin-top: 28px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.wc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border: 0; border-radius: 100px;
  background: #fff; color: var(--c-text);
  font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}
.wc-btn:hover {
  background: var(--c-surface-2); border-color: var(--c-text-3);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.wc-btn.primary {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(15,23,42,.25);
}
.wc-btn.primary:hover {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  box-shadow: 0 12px 32px rgba(225,29,72,.4);
  transform: translateY(-3px);
}
.wc-btn:disabled {
  opacity: .4; cursor: not-allowed; transform: none !important;
  background: var(--c-surface-2); color: var(--c-text-3); border-color: var(--c-border);
  box-shadow: none;
}

.wc-tabs {
  display: flex; gap: 6px; margin-bottom: 20px; padding: 6px;
  background: var(--c-surface); border-radius: 100px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-border-soft);
  width: fit-content;
}
.wc-tabs a {
  padding: 11px 26px; border-radius: 100px; color: var(--c-text-2);
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: all .2s ease; white-space: nowrap;
}
.wc-tabs a:hover { color: var(--c-text); background: var(--c-surface-2); }
.wc-tabs a.on {
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  box-shadow: 0 4px 12px rgba(225,29,72,.3);
}

.wc-stats {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.wc-stats::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(225,29,72,.18) 0%, transparent 70%);
  pointer-events: none;
}
.wc-stats-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.wc-stats-icon { font-size: 18px; }
.wc-stats-row {
  position: relative; z-index: 1;
  margin-bottom: 24px;
}
.wc-stat-main {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 14px 26px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.wc-stat-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.wc-stat-value { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.8px; line-height: 1; }
.wc-stat-unit { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); margin-left: 2px; }

.wc-chart-section {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px; margin-top: 18px;
}
.wc-chart-title {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55);
  margin-bottom: 14px; letter-spacing: 0.3px;
}
.wc-gender-chart { display: flex; flex-direction: column; gap: 10px; }
.wc-gc-item { display: flex; flex-direction: column; gap: 5px; }
.wc-gc-track {
  height: 10px; background: rgba(255,255,255,.08);
  border-radius: 100px; overflow: hidden; position: relative;
}
.wc-gc-fill {
  height: 100%; border-radius: 100px;
  transition: width .8s cubic-bezier(.4,0,.2,1); min-width: 2px;
}
.wc-gc-male { background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%); }
.wc-gc-female { background: linear-gradient(90deg, #EC4899 0%, #F472B6 100%); }
.wc-gc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.wc-gc-name { font-weight: 700; color: rgba(255,255,255,.85); }
.wc-gc-pct { font-weight: 900; color: #fff; font-size: 13px; }

.wc-age-graph {
  display: flex; align-items: flex-end; gap: 10px;
  height: 100px; padding: 6px 0;
}
.wc-ag-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 0; height: 100%; gap: 5px;
}
.wc-ag-track {
  flex: 1; width: 100%; max-width: 48px;
  background: rgba(255,255,255,.06);
  border-radius: 8px 8px 3px 3px;
  overflow: hidden; position: relative;
  display: flex; align-items: flex-end;
}
.wc-ag-fill {
  width: 100%; border-radius: 8px 8px 3px 3px;
  transition: height .6s cubic-bezier(.4,0,.2,1); min-height: 3px;
}
.wc-ag-10 { background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%); }
.wc-ag-20 { background: linear-gradient(180deg, #F43F5E 0%, #E11D48 100%); }
.wc-ag-30 { background: linear-gradient(180deg, #A78BFA 0%, #7C3AED 100%); }
.wc-ag-40 { background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%); }
.wc-ag-name {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75);
  letter-spacing: -0.3px; line-height: 1; white-space: nowrap;
}
.wc-ag-pct {
  font-size: 11.5px; font-weight: 900; color: #fff;
  letter-spacing: -0.3px; line-height: 1;
}

.wc-empty {
  text-align: center; padding: 80px 24px;
  color: var(--c-text-2); background: #fff;
  border-radius: var(--radius-lg); font-weight: 500; font-size: 15px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-border-soft);
}

/* ═══════════════ 랭킹 (3단) ═══════════════ */
.wc-rank-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.wc-rank-item {
  display: grid;
  grid-template-columns: 44px 90px minmax(0, 1fr) 200px;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: 1px solid var(--c-border-soft);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}
.wc-rank-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent;
}
.wc-rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
}
.wc-rank-item:hover::before { background: var(--c-accent); }

.wc-rank-no {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--c-surface-2);
  font-weight: 900; font-size: 17px; color: var(--c-text-2);
  letter-spacing: -0.5px; align-self: center;
}
.rank-1 .wc-rank-no {
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-2) 100%);
  color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(212,165,116,.4);
}
.rank-2 .wc-rank-no {
  background: linear-gradient(135deg, #64748B 0%, #334155 100%);
  color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(51,65,85,.3);
}
.rank-3 .wc-rank-no {
  background: linear-gradient(135deg, #B45309 0%, #92400E 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(180,83,9,.3);
}
.rank-1 { background: linear-gradient(135deg, #FFFBF5 0%, #FFFFFF 40%); border-color: rgba(212,165,116,.3); box-shadow: 0 8px 24px rgba(212,165,116,.15), var(--shadow-md); }
.rank-1::before { background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-gold-2) 100%); }
.rank-2 { background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 40%); box-shadow: 0 6px 20px rgba(51,65,85,.10), var(--shadow-sm); }
.rank-2::before { background: linear-gradient(180deg, #64748B 0%, #334155 100%); }
.rank-3 { background: linear-gradient(135deg, #FEF6F0 0%, #FFFFFF 40%); }
.rank-3::before { background: linear-gradient(180deg, #B45309 0%, #92400E 100%); }

.wc-rank-thumb {
  width: 90px; height: 120px;
  align-self: center;
  position: relative;
  border-radius: 10px; overflow: hidden;
  background: #0a0a0a; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.wc-rank-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: transform .4s ease;
}
.wc-rank-item:hover .wc-rank-thumb img { transform: scale(1.08); }
.noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--c-text-3); font-weight: 700;
}
.wc-rank-body {
  min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0;
}
.wc-rank-title {
  color: var(--c-text); text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: -0.4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s ease;
}
.wc-rank-title:hover { color: var(--c-accent); }
.wc-rank-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--c-text-3);
  font-weight: 600; align-items: center;
}
.wc-rank-meta .points { color: var(--c-accent); font-weight: 900; font-size: 13px; }
.wc-rank-info { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.wc-info-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 100px;
  background: #F1F5F9;
  font-size: 11.5px; font-weight: 700;
  color: #475569; line-height: 1;
  letter-spacing: -0.2px; white-space: nowrap;
}
.wc-info-badge .wc-info-icon { font-size: 11px; }
.wc-info-part { background: #F1F5F9; color: #475569; }
.wc-info-male { background: rgba(59,130,246,.1); color: #2563EB; }
.wc-info-female { background: rgba(236,72,153,.1); color: #DB2777; }
.rank-1 .wc-info-badge:not(.wc-info-male):not(.wc-info-female) {
  background: rgba(212,165,116,.15); color: #92400E;
}
.wc-rank-ages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-self: center;
  padding: 0 4px;
}
.wc-age-mini {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; min-width: 0;
}
.wc-age-mini-track {
  width: 100%; height: 52px;
  background: #F1F5F9;
  border-radius: 8px 8px 2px 2px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.rank-1 .wc-age-mini-track { background: rgba(212,165,116,.15); }
.wc-age-mini-fill {
  width: 100%; min-height: 3px;
  border-radius: 8px 8px 2px 2px;
  transition: height .5s cubic-bezier(.4,0,.2,1);
}
.wc-age-mini-name {
  font-size: 9.5px; font-weight: 700;
  color: var(--c-text-3);
  line-height: 1; letter-spacing: -0.2px; white-space: nowrap;
}
.wc-age-mini-pct {
  font-size: 10.5px; font-weight: 900;
  color: var(--c-text);
  line-height: 1; letter-spacing: -0.3px;
}

/* ═══════════════ 🪜 브래킷 ═══════════════ */
.wc-bracket-wrap {
  margin-top: 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border-soft);
  overflow: hidden;
}
.wc-bracket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border-soft);
  background: linear-gradient(180deg, #fff 0%, #FAFBFC 100%);
}
.wc-bracket-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.3px;
}
.wc-bracket-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: -0.2px;
}
.wc-bracket-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 720px;
  padding: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
}
.wc-bracket {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 960px;
  padding: 4px 0;
}
.wc-br-col {
  flex: 0 0 auto;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: center;
}
.wc-br-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-text-3);
  text-align: center;
  padding: 4px 0 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.wc-br-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wc-br-match {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(241, 245, 249, .5);
  transition: background .2s ease, box-shadow .25s ease;
}
.wc-br-match.active {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  box-shadow: 0 0 0 2px var(--c-accent), 0 6px 18px rgba(225,29,72,.18);
  animation: brPulse 1.8s ease-in-out infinite;
}
@keyframes brPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--c-accent), 0 6px 18px rgba(225,29,72,.18); }
  50%      { box-shadow: 0 0 0 3px var(--c-accent), 0 8px 24px rgba(225,29,72,.3); }
}
.wc-br-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--c-border-soft);
  height: 34px;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  user-select: none;
}
.wc-br-slot:hover:not(.empty):not(.winner):not(.loser) {
  background: #FFF1F2;
  border-color: rgba(225,29,72,.4);
  transform: translateX(2px);
}
.wc-br-slot.empty {
  background: rgba(241,245,249,.6);
  border-style: dashed;
  border-color: var(--c-border);
  cursor: default;
  opacity: .55;
}
.wc-br-slot.winner {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border-color: var(--c-accent);
  box-shadow: 0 2px 8px rgba(225,29,72,.15);
}
.wc-br-slot.loser {
  opacity: .35;
  background: #F8FAFC;
}
.wc-br-slot.loser .wc-br-name {
  text-decoration: line-through;
  color: var(--c-text-3);
}
.wc-br-thumb {
  width: 22px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0a;
  flex-shrink: 0;
  position: relative;
}
.wc-br-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-br-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
  flex: 1;
  min-width: 0;
}
.wc-br-col[data-round="0"] .wc-br-match { padding: 3px; }
.wc-br-col[data-round="0"] .wc-br-slot  { height: 30px; }
.wc-br-col[data-round="0"] .wc-br-thumb { width: 20px; height: 26px; }
.wc-br-col[data-round="4"] .wc-br-head {
  color: var(--c-accent);
  font-size: 12px;
}
.wc-br-col[data-round="4"] .wc-br-slot {
  height: 44px;
  padding: 6px 10px;
}
.wc-br-col[data-round="4"] .wc-br-thumb {
  width: 26px;
  height: 36px;
}
.wc-br-col[data-round="4"] .wc-br-name {
  font-size: 12.5px;
  font-weight: 800;
}
.wc-bracket-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.wc-bracket-scroll::-webkit-scrollbar-track { background: transparent; }
.wc-bracket-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 100px;
}
.wc-bracket-scroll::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ═══════════════ 모달 ═══════════════ */
.wc-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.wc-modal-bg {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wc-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  max-width: 420px; width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  text-align: center;
  animation: boxIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes boxIn {
  from { transform: translateY(20px) scale(.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.wc-modal-icon {
  font-size: 52px; margin-bottom: 12px;
  animation: wave 2s ease-in-out infinite;
  display: inline-block; transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-8deg); }
}
.wc-modal-title {
  font-size: 22px; font-weight: 800; margin: 0 0 6px;
  letter-spacing: -0.6px; color: var(--c-text);
}
.wc-modal-sub {
  font-size: 13.5px; color: var(--c-text-3); margin: 0 0 28px; font-weight: 500;
}
.wc-form-section { margin-bottom: 22px; text-align: left; }
.wc-form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--c-text-2); margin-bottom: 10px; letter-spacing: -0.2px;
}
.wc-age-group {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.wc-age-btn {
  padding: 14px 6px;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface-2);
  font-size: 14px; font-weight: 700;
  color: var(--c-text-2);
  cursor: pointer; font-family: inherit;
  transition: all .2s ease; letter-spacing: -0.2px;
}
.wc-age-btn:hover { border-color: var(--c-text-3); background: #fff; color: var(--c-text); }
.wc-age-btn.on {
  border-color: var(--c-accent);
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: var(--c-accent-dark);
  box-shadow: 0 0 0 4px rgba(225,29,72,.1);
}
.wc-gender-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wc-gender-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface-2);
  font-size: 14.5px; font-weight: 700;
  color: var(--c-text-2);
  cursor: pointer; font-family: inherit;
  transition: all .2s ease; letter-spacing: -0.2px;
}
.wc-gender-btn:hover { border-color: var(--c-text-3); background: #fff; color: var(--c-text); }
.wc-gender-btn.on {
  border-color: var(--c-accent);
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: var(--c-accent-dark);
  box-shadow: 0 0 0 4px rgba(225,29,72,.1);
}
.wc-gender-emoji { font-size: 20px; }
.wc-modal-start {
  width: 100%; margin-top: 8px; padding: 16px;
  font-size: 15.5px; font-weight: 800;
}
.wc-modal-start:disabled { opacity: .35; }

/* ═══════════════ 반응형 ═══════════════ */
@media (max-width: 900px) {
  .wc-rank-item {
    grid-template-columns: 40px 80px minmax(0, 1fr) 140px;
    gap: 14px; padding: 14px 16px; min-height: 130px;
  }
  .wc-rank-thumb { width: 80px; height: 107px; }
  .wc-rank-ages { gap: 5px; }
  .wc-age-mini-track { height: 44px; }
  .wc-age-mini-name { font-size: 9px; }
  .wc-age-mini-pct { font-size: 9.5px; }
}

@media (max-width: 768px) {
  .wc-wrap { padding: 16px 14px 40px; }
  .wc-head { padding: 14px 18px; border-radius: var(--radius-md); }
  .wc-head h1 { font-size: 17px; }
  .wc-head nav { gap: 2px; padding: 3px; }
  .wc-head nav a { padding: 7px 14px; font-size: 12.5px; }

  .wc-round-bar { padding: 18px 22px; border-radius: var(--radius-md); }
  .wc-round-text { font-size: 20px; }
  .wc-round-count { font-size: 12px; padding: 5px 11px; }

  .wc-start { padding: 70px 24px; }
  .wc-start-emoji { font-size: 64px; }
  .wc-start-title { font-size: 28px; }
  .wc-start-sub { font-size: 14px; margin-bottom: 30px; }
  .wc-start-btn { padding: 15px 52px; font-size: 15.5px; }

  .wc-arena { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wc-vs { display: none; }
  .wc-name { font-size: 13px; padding: 12px 10px; min-height: 46px; }

  .wc-link { width: 32px; height: 32px; top: 8px; right: 8px; }
  .wc-winner-card .wc-link { width: 38px; height: 38px; top: 10px; right: 10px; }

  .wc-winner { padding: 40px 16px 30px; }
  .wc-winner-title { font-size: 36px; margin-bottom: 28px; }
  .wc-winner-card { max-width: 320px; }
  .wc-winner-card .wc-name { font-size: 17px; padding: 18px; }

  .wc-actions { gap: 8px; }
  .wc-btn { padding: 12px 24px; font-size: 13.5px; }

  .wc-stats { padding: 20px 18px; border-radius: var(--radius-md); }
  .wc-stats-title { font-size: 12.5px; margin-bottom: 16px; }
  .wc-stat-main { padding: 12px 20px; }
  .wc-stat-value { font-size: 22px; }
  .wc-age-graph { height: 80px; gap: 8px; }
  .wc-ag-track { max-width: 40px; }

  .wc-rank-item {
    grid-template-columns: 36px 72px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 14px;
    min-height: auto;
    align-items: start;
  }
  .wc-rank-no {
    width: 36px; height: 36px; font-size: 14px; border-radius: 11px;
    grid-column: 1; grid-row: 1;
  }
  .wc-rank-thumb {
    width: 72px; height: 96px; border-radius: 8px;
    grid-column: 2; grid-row: 1;
  }
  .wc-rank-body {
    grid-column: 3; grid-row: 1;
    gap: 5px;
  }
  .wc-rank-title { font-size: 14px; }
  .wc-rank-meta { font-size: 11px; gap: 8px; }

  .wc-rank-ages {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 6px;
    padding: 0;
  }
  .wc-age-mini-track { height: 44px; }
  .wc-age-mini-name { font-size: 9px; }
  .wc-age-mini-pct { font-size: 9.5px; }

  .wc-tabs { width: 100%; }
  .wc-tabs a { flex: 1; text-align: center; padding: 10px 14px; font-size: 13px; }

  .wc-bracket-wrap {
    margin-top: 20px;
    border-radius: 14px;
  }
  .wc-bracket-head { padding: 12px 14px; }
  .wc-bracket-title { font-size: 12.5px; }
  .wc-bracket-hint  { font-size: 10.5px; }
  .wc-bracket-scroll { padding: 14px; max-height: 560px; }
  .wc-bracket { min-width: 760px; gap: 10px; }
  .wc-br-col { min-width: 132px; }
  .wc-br-head { font-size: 10px; }
  .wc-br-slots { gap: 6px; }
  .wc-br-slot { height: 30px; padding: 4px 6px; gap: 6px; }
  .wc-br-thumb { width: 18px; height: 24px; }
  .wc-br-name { font-size: 10px; }
  .wc-br-col[data-round="0"] .wc-br-slot  { height: 27px; }
  .wc-br-col[data-round="0"] .wc-br-thumb { width: 16px; height: 21px; }
  .wc-br-col[data-round="4"] .wc-br-slot  { height: 38px; padding: 5px 8px; }
  .wc-br-col[data-round="4"] .wc-br-thumb { width: 22px; height: 30px; }
  .wc-br-col[data-round="4"] .wc-br-name  { font-size: 11.5px; }

  .wc-modal-box { padding: 32px 22px 24px; border-radius: var(--radius-lg); }
  .wc-modal-icon { font-size: 40px; }
  .wc-modal-title { font-size: 19px; }
  .wc-modal-sub { font-size: 12.5px; margin-bottom: 22px; }
  .wc-age-btn { padding: 12px 4px; font-size: 13px; border-radius: 12px; }
  .wc-gender-btn { padding: 12px 12px; font-size: 13.5px; border-radius: 12px; }
  .wc-gender-emoji { font-size: 18px; }
  .wc-modal-start { padding: 14px; font-size: 14.5px; }
}

@media (max-width: 480px) {
  .wc-rank-item { grid-template-columns: 32px 64px minmax(0, 1fr); gap: 8px 10px; }
  .wc-rank-no { width: 32px; height: 32px; font-size: 13px; }
  .wc-rank-thumb { width: 64px; height: 85px; }
  .wc-rank-title { font-size: 13px; }
  .wc-info-badge { font-size: 10.5px; padding: 4px 9px; }
}