/* =====================================================================
   ScoutLink, 다크 분석 스타일
   레이아웃: 깊은 차콜 배경 + 은은한 빛 번짐과 필름 그레인, 위쪽에만 희미한 분석 그리드.
   그 위에 반투명 유리 패널. 강조는 레드오렌지(행동·핵심 숫자), 데이터는 틸.
   브레이크포인트: 1100 이상 데스크톱 3단 / 760~1099 태블릿 2단 / 760 미만 폰 1단
   ===================================================================== */
:root {
  --bg: #0b0d11;
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .15);
  --fg: #eef1f6;
  --muted: #8f97a8;
  --dim: #5d6474;
  --accent: #ff5d36;
  --accent-2: #ff8a4c;
  --accent-soft: rgba(255, 93, 54, .15);
  --teal: #37c9b5;
  --teal-soft: rgba(55, 201, 181, .14);
  --gold: #f6c453;
  --t-s: #f6c453; --t-a: #3dd6a8; --t-b: #5aa9ff; --t-c: #c3c9d6; --t-d: #8b919d; --t-none: #5d6474;
  --font-display: "Outfit", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans KR", system-ui, sans-serif;
  --radius: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; position: relative;
}
/* 배경 1: 빛 번짐 + 필름 그레인 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 12% -12%, rgba(55, 201, 181, .13), transparent 62%),
    radial-gradient(900px 600px at 92% -6%, rgba(255, 93, 54, .13), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(70, 90, 160, .10), transparent 60%);
}
/* 배경 2: 위쪽에만 희미한 분석 그리드(아래로 갈수록 사라짐) */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(1100px 520px at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(1100px 520px at 50% 0%, #000 0%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- 유리 패널 ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.glass.hot { background: linear-gradient(160deg, rgba(255, 93, 54, .32), rgba(255, 93, 54, .06)); border-color: rgba(255, 125, 90, .5); }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; background: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #1c0802; box-shadow: 0 6px 20px -8px rgba(255, 93, 54, .7); }
.btn-primary:hover { box-shadow: 0 8px 26px -8px rgba(255, 93, 54, .9); }
.btn-ghost { background: var(--glass); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-ghost.on { border-color: rgba(255, 93, 54, .55); background: var(--accent-soft); color: #ffc3b2; }
.btn-teal { background: var(--teal-soft); border-color: rgba(55, 201, 181, .45); color: #a5efe4; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 헤더 ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(11, 13, 17, .9);
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11, 13, 17, .7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 12px rgba(255, 93, 54, .35)); }
.logo .word { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.logo .word b { font-weight: 700; }
.logo .word span { font-weight: 300; color: #c9cfdb; }
.nav { display: flex; gap: 2px; margin: 0 auto; padding: 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 13px; }
.nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { color: var(--fg); }
.nav a.on { background: var(--glass-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.on svg { color: var(--accent); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #1c0802; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.top-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 12px; font-weight: 600; }
.lang a { padding: 5px 9px; color: var(--muted); }
.lang a.on { background: var(--glass-2); color: var(--fg); }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.who .role { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--teal-soft); color: #9be9dd; }
.tabbar { display: none; }
@media (max-width: 1020px) { .nav a span:not(.badge) { display: none; } .nav a { padding: 8px 10px; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .hide-sm { display: none !important; }
  .topbar .wrap { justify-content: space-between; height: 60px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(11, 13, 17, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--fg); }
  .tabbar a.on svg { color: var(--accent); }
  main { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 알림(flash) ---------- */
.flash-wrap { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 40; display: grid; justify-items: center; padding: 0 16px; pointer-events: none; animation: flash-out .4s ease 4.5s forwards; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: rgba(20, 30, 28, .96); border: 1px solid rgba(55, 201, 181, .45); color: #c9f5ee; font-size: 14px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7); pointer-events: auto; }
.flash svg { width: 18px; height: 18px; color: var(--teal); }
.flash.error { background: rgba(40, 18, 14, .96); border-color: rgba(255, 93, 54, .55); color: #ffd3c6; }
.flash.error svg { color: var(--accent); }
@keyframes flash-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- 공통 섹션 ---------- */
main { display: block; }
.section { padding-block: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 23px; font-weight: 600; }
.page-head { padding-block: 30px 8px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.page-head p { color: var(--muted); max-width: 60ch; margin-top: 6px; }

/* =====================================================================
   선수 히어로(상세 + 메인 스포트라이트 공용): 사진 | 레이더 | 정보
   ===================================================================== */
.hero { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "photo radar info"; align-items: stretch; padding-block: 24px 8px; }
.hero-photo { grid-area: photo; } .hero-radar { grid-area: radar; } .hero-info { grid-area: info; }

.player-plate { position: relative; height: 100%; min-height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 20%, #232a36, #12151b 70%); isolation: isolate; }
.player-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: saturate(1.05) contrast(1.04); }
.player-plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 17, 0) 45%, rgba(11, 13, 17, .92) 100%), linear-gradient(90deg, rgba(11, 13, 17, .25), transparent 40%); pointer-events: none; }
.plate-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.plate-fallback svg { width: 46%; max-width: 190px; color: var(--accent); opacity: .95; filter: drop-shadow(0 10px 40px rgba(255, 93, 54, .35)); }
.plate-fallback .ini { position: absolute; bottom: 18%; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .4em; color: var(--muted); }
.plate-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plate-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 6px 11px 6px 8px; border-radius: 99px; background: rgba(11, 13, 17, .6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.plate-tag svg { width: 18px; height: 18px; color: var(--accent); }
.demo-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(11, 13, 17, .65); color: var(--gold); border: 1px solid rgba(246, 196, 83, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hero-radar { display: grid; grid-template-rows: auto 1fr auto; padding: 18px; gap: 6px; }
.radar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.radar-box { position: relative; display: grid; place-items: center; }
.radar { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.radar .ring.outer { stroke: rgba(255, 255, 255, .16); }
.radar .spoke { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.radar .s0 { fill: rgba(55, 201, 181, .18); stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
.radar .s1 { fill: rgba(255, 93, 54, .16); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .s2 { fill: rgba(246, 196, 83, .14); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.radar .d0 { fill: var(--teal); stroke: #0b0d11; stroke-width: 2; }
.radar .d1 { fill: var(--accent); stroke: #0b0d11; stroke-width: 2; }
.radar .d2 { fill: var(--gold); stroke: #0b0d11; stroke-width: 2; }
.radar .lbl { font-family: var(--font-body); font-size: 12.5px; fill: var(--muted); }
.radar .val { font-family: var(--font-display); font-size: 21px; font-weight: 600; fill: var(--fg); }
.radar .val.na { fill: var(--dim); }

/* 점수 링(레이더 중앙) */
.score-ring { --tier: var(--t-none); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 25%; max-width: 112px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #171b22 58%, rgba(23, 27, 34, 0) 72%); }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 7; }
.score-ring .fill { fill: none; stroke: var(--tier); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--tier)); }
.score-ring .g { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: var(--tier); margin-top: -10px; }
.score-ring .t { position: absolute; bottom: 24%; font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tier-s { --tier: var(--t-s); } .tier-a { --tier: var(--t-a); } .tier-b { --tier: var(--t-b); } .tier-c { --tier: var(--t-c); } .tier-d { --tier: var(--t-d); } .tier-none { --tier: var(--t-none); }

.coverage { display: grid; gap: 6px; font-size: 12.5px; }
.coverage .track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.coverage .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #8ae8db); }
.coverage .row { display: flex; justify-content: space-between; color: var(--muted); }

.hero-info { display: grid; gap: 14px; align-content: start; }
.name-block { display: grid; gap: 8px; padding-top: 6px; }
.name-block h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: .96; font-weight: 300; letter-spacing: -.035em; }
.name-block h1 strong { display: block; font-weight: 700; }
.team-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; flex-wrap: wrap; }
.team-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.score-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px 10px 13px; display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; }
.tile svg { width: 22px; height: 22px; color: var(--muted); }
.tile.hot svg { color: #ffd1c4; }
.tile .k { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.tile.hot .k { color: #ffd9cf; }
.tile .v { font-family: var(--font-display); font-size: 27px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 11px 13px; display: grid; gap: 2px; min-width: 0; border-radius: 12px; }
.stat .k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.stat .v small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .v .flag { align-self: center; }
.hero-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.hero-actions form { display: contents; }
.hero-actions .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo info" "radar radar"; }
  .player-plate { min-height: 380px; }
}
@media (max-width: 759px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "info" "radar"; padding-top: 14px; }
  .player-plate { min-height: 0; height: auto; aspect-ratio: 4 / 3.6; }
  .name-block h1 { font-size: 42px; }
  .score-tiles .v { font-size: 23px; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-actions > :first-child { grid-column: 1 / -1; }
}

/* =====================================================================
   상세 하단
   ===================================================================== */
.detail-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); padding-block: 10px 30px; }
.detail-grid > * { min-width: 0; display: grid; gap: 18px; align-content: start; }
.panel { padding: 20px; display: grid; gap: 14px; align-content: start; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h3 { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.panel-head h3 svg { width: 20px; height: 20px; color: var(--teal); }
.pill { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.ai { color: var(--teal); border-color: rgba(55, 201, 181, .4); background: var(--teal-soft); }
.axes { display: grid; gap: 15px; }
.axis { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 42px; gap: 12px; align-items: center; }
.axis .n { font-size: 14px; font-weight: 500; }
.axis .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.axis .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d978a, var(--teal)); }
.axis.best .bar i { background: linear-gradient(90deg, #d84a2a, var(--accent-2)); }
.axis .s { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.axis .s.na { color: var(--dim); font-size: 13px; }
.axis .ev { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.ev span { font-size: 11.5px; color: var(--muted); padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.ev span.miss { color: var(--dim); border-style: dashed; }
.ev b { color: var(--fg); font-weight: 600; }
@media (max-width: 759px) {
  .axis { grid-template-columns: minmax(0, 1fr) 42px; }
  .axis .bar { grid-column: 1 / 3; grid-row: 2; }
  .axis .ev { grid-column: 1 / 3; grid-row: 3; margin-top: 0; }
}
.report p { line-height: 1.7; }
.report h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.report ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.report li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.5; }
.report li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: var(--teal); }
.report .checks li::before { background: var(--gold); }
.report .hl li::before { background: var(--accent); }
.disclaimer { font-size: 12px; color: var(--dim); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.records { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; min-width: 520px; }
.records th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 12px 2px; }
.records td { padding: 11px 12px; background: rgba(255, 255, 255, .03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.records td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.records td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.res { font-weight: 700; font-size: 13px; }
.res.win { color: var(--accent-2); } .res.podium { color: var(--gold); } .res.finalist { color: var(--teal); } .res.participated { color: var(--muted); }
.video-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-card .thumb svg { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line-2); }
.chip.hot { background: var(--accent-soft); border-color: rgba(255, 93, 54, .4); color: #ffbca9; }
.chip.teal { background: var(--teal-soft); border-color: rgba(55, 201, 181, .4); color: #9be9dd; }
.empty-note { font-size: 13.5px; color: var(--muted); padding: 16px; border-radius: 12px; border: 1px dashed var(--line-2); text-align: center; }
@media (max-width: 1099px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   선수 카드
   ===================================================================== */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.pcard { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.pcard:hover .pc-top img { transform: scale(1.04); }
.pc-top { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(120% 100% at 50% 10%, #242b37, #12151b 75%); isolation: isolate; }
.pc-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.pc-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 17, .35) 0%, transparent 30%, transparent 55%, rgba(11, 13, 17, .85) 100%); pointer-events: none; }
.pc-sport { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 30%; color: var(--accent); opacity: .9; }
.pc-init { position: absolute; left: 50%; top: 74%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; letter-spacing: .35em; font-size: 12px; color: var(--muted); }
.pc-chip { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 6px; border-radius: 99px; background: rgba(11, 13, 17, .6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pc-chip svg { width: 16px; height: 16px; color: var(--accent); }
.pc-demo { position: absolute; top: 12px; left: 12px; z-index: 2; }
.grade-badge { --tier: var(--t-none); position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; align-content: center; background: rgba(11, 13, 17, .62); border: 1.5px solid var(--tier); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 18px -6px var(--tier); }
.grade-badge b { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; color: var(--tier); }
.grade-badge small { font-size: 7.5px; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-top: 2px; }
.grade-badge.tier-none b { font-size: 16px; }
.pc-body { padding: 14px 16px 16px; display: grid; gap: 11px; align-content: start; }
.pc-body h3 { font-size: 18.5px; font-weight: 600; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.mini { display: grid; gap: 7px; }
.mini .r { display: grid; grid-template-columns: minmax(0, 1fr) 72px 26px; gap: 8px; align-items: center; font-size: 12.5px; }
.mini .r span:first-child { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .t { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mini .t i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.mini .r b { font-family: var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.pc-foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.pc-foot .big { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-foot .big.match { color: var(--accent-2); }
.pc-foot small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.reasons span { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--teal-soft); color: #9be9dd; }
@media (max-width: 759px) { .pc-top { aspect-ratio: 16 / 9; } }

/* =====================================================================
   메인
   ===================================================================== */
.home-intro { padding-block: 40px 8px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
.home-intro h1 { font-size: clamp(36px, 5vw, 66px); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; }
.home-intro h1 strong { font-weight: 700; }
.home-intro h1 em { font-style: normal; font-weight: 700; background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-intro p { color: var(--muted); max-width: 56ch; font-size: 15.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 15px; display: grid; gap: 2px; }
.kpi .v { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 12px; color: var(--muted); }
@media (max-width: 899px) { .home-intro { grid-template-columns: minmax(0, 1fr); } }
.ai-search { display: grid; gap: 12px; padding: 16px; }
.ai-search form { display: flex; gap: 10px; align-items: center; }
.ai-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 13px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(55, 201, 181, .38); box-shadow: 0 0 0 4px rgba(55, 201, 181, .06), inset 0 1px 0 rgba(255, 255, 255, .04); }
.ai-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(55, 201, 181, .14); }
.ai-field svg { width: 22px; height: 22px; color: var(--teal); }
.ai-field input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 15px; }
.ai-field input::placeholder { color: var(--dim); }
.ai-search .btn { height: 54px; padding: 0 22px; }
.examples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.examples a { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); }
.examples a:hover { border-color: var(--line-2); }
@media (max-width: 600px) { .ai-search form { flex-direction: column; align-items: stretch; } .ai-field { flex: none; height: 50px; } .ai-search .btn { height: 48px; } }
.sport-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px; white-space: nowrap; font-size: 14px; font-weight: 500; }
.sport-tab svg { width: 20px; height: 20px; color: var(--accent); }
.sport-tab.on { border-color: rgba(255, 93, 54, .5); background: var(--accent-soft); }
.how { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how .glass { padding: 20px; display: grid; gap: 10px; align-content: start; }
.how .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255, 93, 54, .35); }
.how .ic svg { width: 24px; height: 24px; color: var(--accent-2); }
.how h3 { font-size: 17px; font-weight: 600; }
.how p { color: var(--muted); font-size: 14px; }
.cta-band { margin-block: 10px 40px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(255, 93, 54, .18), rgba(55, 201, 181, .1)); }
.cta-band h2 { font-size: 24px; font-weight: 600; }
.cta-band p { color: var(--muted); margin-top: 4px; }
.cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 899px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   선수 찾기
   ===================================================================== */
.search-layout { display: grid; gap: 18px; grid-template-columns: 272px minmax(0, 1fr); padding-block: 20px 34px; align-items: start; }
.filters { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); padding: 16px; display: grid; gap: 14px; }
.filters details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.filters details > summary::-webkit-details-marker { display: none; }
.filters .body { display: grid; gap: 14px; margin-top: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.results-head h1 { font-size: 22px; font-weight: 600; }
.parsed { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
@media (max-width: 899px) { .search-layout { grid-template-columns: minmax(0, 1fr); } .filters { position: static; } }
@media (min-width: 900px) { .filters details > summary { pointer-events: none; } .filters details > summary .tog { display: none; } }

/* =====================================================================
   폼(가입·로그인·프로필 편집·연락 요청)
   ===================================================================== */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 0 13px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .28); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(55, 201, 181, .14); }
.field select option { background: #161a21; }
.field input[type="number"] { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .form-grid, .form-grid.g3 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.seg label { position: relative; display: grid; place-items: center; min-height: 36px; padding: 0 8px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: 13.5px; text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--glass-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.grades label { font-family: var(--font-display); }
.form-error { padding: 11px 14px; border-radius: 11px; background: rgba(255, 93, 54, .12); border: 1px solid rgba(255, 93, 54, .4); color: #ffcabb; font-size: 14px; }
.form-ok { padding: 11px 14px; border-radius: 11px; background: var(--teal-soft); border: 1px solid rgba(55, 201, 181, .4); color: #b6f1e8; font-size: 14px; }

/* 로그인·가입 */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 66px); }
.auth-visual { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: end; padding: 40px; gap: 12px; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9); }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 17, .2), rgba(11, 13, 17, .92)), linear-gradient(90deg, transparent 60%, var(--bg)); }
.auth-visual h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; max-width: 14ch; }
.auth-visual h2 strong { font-weight: 700; }
.auth-visual p { color: #c1c7d3; max-width: 46ch; }
.auth-form { display: grid; place-items: center; padding: 40px var(--gutter-r) 60px var(--gutter-l); }
.auth-card { width: min(440px, 100%); display: grid; gap: 18px; }
.auth-card h1 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.auth-card .sub { color: var(--muted); margin-top: -8px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; }
.role-pick label svg { width: 26px; height: 26px; color: var(--muted); }
.role-pick label b { font-size: 15px; }
.role-pick label span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick label:has(input:checked) { border-color: rgba(255, 93, 54, .6); background: var(--accent-soft); }
.role-pick label:has(input:checked) svg { color: var(--accent-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; } .auth-visual { min-height: 220px; padding: 24px var(--gutter-r) 24px var(--gutter-l); } .auth-visual::before { background: linear-gradient(180deg, rgba(11, 13, 17, .2), var(--bg)); } .auth-form { padding-top: 10px; } }

/* 프로필 편집 */
.edit-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding-block: 8px 40px; }
.edit-main { display: grid; gap: 18px; min-width: 0; }
.edit-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 14px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .no { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(255, 93, 54, .35); }
.photo-up { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.photo-up .pv { width: 120px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 30%, #252c38, #13161c); display: grid; place-items: center; }
.photo-up .pv img { width: 100%; height: 100%; object-fit: cover; }
.photo-up .pv svg { width: 46px; height: 46px; color: var(--dim); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sport-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sport-pick label { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; font-size: 13px; font-weight: 600; text-align: center; }
.sport-pick label svg { width: 30px; height: 30px; color: var(--muted); }
.sport-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sport-pick label:has(input:checked) { border-color: rgba(255, 93, 54, .6); background: var(--accent-soft); }
.sport-pick label:has(input:checked) svg { color: var(--accent-2); }
@media (max-width: 600px) { .sport-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sport-fields[hidden] { display: none !important; }
.ach-list { display: grid; gap: 10px; }
.ach-row { display: grid; grid-template-columns: 84px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: end; padding: 12px; border-radius: 13px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.ach-row .note-f { grid-column: 2 / 5; }
.ach-row .del { height: 44px; width: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ach-row .del:hover { color: var(--accent); border-color: rgba(255, 93, 54, .5); }
.ach-row .del svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .ach-row { grid-template-columns: 84px minmax(0, 1fr) 40px; } .ach-row .note-f { grid-column: 1 / -1; } }
.preview-card { padding: 16px; display: grid; gap: 10px; }
.preview-card .radar-box { min-height: 200px; }
.preview-card .score-ring { width: 27%; }
.miss-list { display: flex; flex-wrap: wrap; gap: 5px; }
.miss-list span { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--muted); }
.save-bar { display: grid; gap: 8px; }
@media (max-width: 1100px) { .edit-layout { grid-template-columns: minmax(0, 1fr); } .edit-side { position: static; order: -1; } }

/* 목록(받은 연락·보낸 요청·관심 선수) */
.list { display: grid; gap: 14px; }
.msg-card { padding: 18px; display: grid; gap: 12px; }
.msg-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-top .who2 { display: grid; gap: 1px; min-width: 0; }
.msg-top .who2 b { font-size: 16px; }
.msg-top .who2 span { font-size: 12.5px; color: var(--muted); }
.msg-top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; color: var(--accent-2); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-body { font-size: 14.5px; line-height: 1.7; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); white-space: pre-line; }
.msg-reply { font-size: 14px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); border: 1px solid rgba(55, 201, 181, .3); white-space: pre-line; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); white-space: nowrap; }
.status.SENT { color: var(--gold); border-color: rgba(246, 196, 83, .4); }
.status.READ { color: var(--t-b); border-color: rgba(90, 169, 255, .4); }
.status.ACCEPTED { color: var(--t-a); border-color: rgba(61, 214, 168, .45); background: rgba(61, 214, 168, .1); }
.status.DECLINED { color: var(--muted); }
.type-tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: #ffbca9; }
.contact-reveal { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(61, 214, 168, .4); background: rgba(61, 214, 168, .08); font-size: 14px; flex-wrap: wrap; }
.contact-reveal svg { width: 20px; height: 20px; color: var(--t-a); }
.contact-reveal b { user-select: all; }
.respond { display: grid; gap: 10px; }
.respond .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fav-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 800px) { .fav-row { grid-template-columns: minmax(0, 1fr); } }
.empty-state { padding: 46px 20px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.empty-state svg { width: 48px; height: 48px; color: var(--dim); }
.empty-state h3 { font-size: 19px; font-weight: 600; }
.empty-state p { color: var(--muted); max-width: 46ch; }

/* 비교 */
.compare-cols { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-col { position: relative; padding: 14px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-col .avatar { width: 64px; height: 64px; border-radius: 16px; }
.cmp-col .x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.cmp-col .x svg { width: 15px; height: 15px; }
.cmp-col .x:hover { color: var(--accent); }
.cmp-col h3 { font-size: 17px; font-weight: 600; padding-right: 30px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.swatch.c0 { background: var(--teal); } .swatch.c1 { background: var(--accent); } .swatch.c2 { background: var(--gold); }
.cmp-add { display: grid; place-items: center; gap: 6px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 13.5px; text-align: center; min-height: 92px; }
.compare-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding-block: 18px; }
.compare-grid > * { min-width: 0; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.cmp-table thead th { font-size: 12.5px; color: var(--fg); font-weight: 600; }
.cmp-table td.best { color: var(--accent-2); font-weight: 700; }
.cmp-table tr.sec td { padding-top: 18px; color: var(--fg); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom-color: var(--line-2); }
@media (max-width: 1000px) { .compare-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .compare-cols { grid-template-columns: minmax(0, 1fr); } }

/* 정적 문서·오류 */
.doc { max-width: 760px; padding: 26px; display: grid; gap: 14px; margin-block: 10px 40px; }
.doc h2 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.doc p, .doc li { color: #c6ccd7; line-height: 1.75; font-size: 14.5px; }
.doc ul { margin: 0; padding-left: 20px; }
.oops { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 50px; }
.oops .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 16vw, 170px); line-height: 1; background: linear-gradient(180deg, var(--accent-2), rgba(255, 93, 54, .1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oops h1 { font-size: 26px; font-weight: 500; margin: 8px 0; }
.oops p { color: var(--muted); margin-bottom: 18px; }

/* 국기(Windows는 국기 이모지를 못 그려서 이미지로 표시) */
.flag { display: inline-block; width: 1.3em; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; vertical-align: -0.15em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }

/* ---------- 푸터 ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding-block: 30px 34px; color: var(--dim); font-size: 13px; background: rgba(0, 0, 0, .2); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: start; }
.foot-brand { display: grid; gap: 8px; }
.foot-brand .mark { width: 26px; height: 26px; }
.foot-brand .word { font-size: 18px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
.foot-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 등급 색: 기본값(--t-none)보다 뒤에 둬야 덮어쓴다 */
.grade-badge.tier-s, .score-ring.tier-s { --tier: var(--t-s); }
.grade-badge.tier-a, .score-ring.tier-a { --tier: var(--t-a); }
.grade-badge.tier-b, .score-ring.tier-b { --tier: var(--t-b); }
.grade-badge.tier-c, .score-ring.tier-c { --tier: var(--t-c); }
.grade-badge.tier-d, .score-ring.tier-d { --tier: var(--t-d); }

/* hidden 속성은 어떤 display 규칙보다 우선 */
[hidden] { display: none !important; }

/* =====================================================================
   v8: 배경 보강 + 렌더링 성능 + 갤러리
   ===================================================================== */

/* 배경 1(덮어쓰기): 그레인 + 빛 번짐 + 경기장 라인·패스 네트워크 장식 */
body::after {
  background:
    url("/img/bg-radar.svg") center 40px / min(1600px, 150vw) auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 12% -12%, rgba(55, 201, 181, .12), transparent 62%),
    radial-gradient(900px 600px at 92% -6%, rgba(255, 93, 54, .12), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(70, 90, 160, .10), transparent 60%);
}
/* 배경 3: 천천히 흐르는 오로라(transform 애니메이션이라 가볍다) */
html::after {
  content: ""; position: fixed; inset: -25% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 30% 35%, rgba(55, 201, 181, .07), transparent 70%),
    radial-gradient(32% 28% at 72% 60%, rgba(255, 93, 54, .07), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate; will-change: transform;
}
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg); } 100% { transform: translate3d(4%, 3%, 0) rotate(8deg); } }

/* 성능: 카드마다 걸린 배경 흐림(backdrop-filter)은 스크롤을 무겁게 한다. 상단바·탭바에만 남긴다 */
.glass {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)), rgba(13, 16, 21, .6);
}
.glass.hot { background: linear-gradient(160deg, rgba(255, 93, 54, .32), rgba(255, 93, 54, .06)), rgba(13, 16, 21, .6); }
.pc-chip, .plate-tag, .grade-badge, .demo-badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
.pc-chip, .plate-tag { background: rgba(11, 13, 17, .78); }
.grade-badge { background: rgba(11, 13, 17, .8); }
.demo-badge { background: rgba(11, 13, 17, .8); }
.pcard, .pc-top img { will-change: auto; }
.pc-top, .player-plate { background-color: #151920; }

/* 카드 위 종목 리본(상단 왼쪽 예시 배지 옆 정리) */
.pc-top .pc-demo { top: 12px; left: 12px; }

/* 메인: 종목 띠(천천히 흐름) */
.ticker { overflow: hidden; margin-top: 18px; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 46px; width: max-content; padding-block: 14px; animation: ticker 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.ticker-track svg { width: 22px; height: 22px; color: var(--accent); }
.ticker-track b { color: var(--fg); font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 상세: 사진 갤러리 */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery button { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #151920; cursor: zoom-in; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 13, 17, .6); font-family: var(--font-display); font-size: 24px; font-weight: 600; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 크게 보기(라이트박스) */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 1fr auto; background: rgba(6, 7, 10, .94); padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lightbox[hidden] { display: none !important; }
.lightbox .stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox .stage img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 30px 80px -20px #000; }
.lightbox .bar { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 13px; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 24, 30, .8); color: var(--fg); display: grid; place-items: center; cursor: pointer; font-size: 22px; }
.lightbox .nav-btn.prev { left: 0; } .lightbox .nav-btn.next { right: 0; }
.lightbox .close { position: absolute; top: 0; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 24, 30, .8); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.lightbox .close svg { width: 20px; height: 20px; }

/* 프로필 편집: 갤러리 관리 */
.gallery-edit { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-edit .item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #151920; }
.gallery-edit .item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit .item label { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: rgba(11, 13, 17, .8); cursor: pointer; }
.gallery-edit .item label input { accent-color: var(--accent); }
.gallery-edit .item:has(input:checked) img { opacity: .3; }
.gallery-edit .item .new { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--teal-soft); color: #a5efe4; }
.gallery-edit .add { display: grid; place-items: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; text-align: center; position: relative; cursor: pointer; }
.gallery-edit .add svg { width: 26px; height: 26px; }
.gallery-edit .add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compress-note { font-size: 12px; color: var(--teal); min-height: 1em; }
@media (max-width: 760px) { .gallery-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .gallery-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 폰: 배경 장식은 더 작게 */
@media (max-width: 760px) { body::after { background-size: 220vw auto, auto, auto, auto, auto; background-position: center 20px, 0 0, 0 0, 0 0, 0 0; } }

/* 갤러리: 첫 장(대표 사진)을 크게, 나머지를 옆에 모아 빈칸 없이 */
.gallery { grid-auto-flow: dense; grid-auto-rows: 1fr; }
.gallery button { aspect-ratio: auto; min-height: 150px; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery button { min-height: 110px; } .gallery button:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; } }

/* 배경 장식(빛 번짐·격자·경기장 라인)은 z-index:-1 이라 body 배경색이 있으면 그 밑에 깔려 안 보인다.
   배경색은 html 에만 두고 body 는 투명하게 */
body { background: transparent; }

/* 갤러리 칸 높이 고정(큰 첫 장 2x2 + 작은 칸) */
.gallery { grid-auto-rows: clamp(110px, 13vw, 180px); }
.gallery button { min-height: 0; height: 100%; }
@media (max-width: 760px) { .gallery { grid-auto-rows: 120px; } .gallery button:first-child { grid-row: span 2; aspect-ratio: auto; } }

/* 배경 장식이 카드 글씨와 겹쳐 보이지 않게 카드 바탕을 조금 더 진하게 */
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)), rgba(13, 16, 21, .78); }
.glass.hot { background: linear-gradient(160deg, rgba(255, 93, 54, .32), rgba(255, 93, 54, .06)), rgba(13, 16, 21, .78); }

/* =====================================================================
   v9: 다듬기
   ===================================================================== */
/* 한글은 단어 중간에서 줄이 바뀌지 않게 */
body { word-break: keep-all; overflow-wrap: anywhere; }

/* 내용이 짧은 페이지에서도 푸터가 화면 아래에 붙게 */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
body > main.auth { width: auto; }

/* 관심 선수: 메모 칸이 카드 높이를 채우게(빈 공간 없이) */
.fav-row > .glass.panel { display: flex; flex-direction: column; }
.fav-row > .glass.panel > form:first-of-type { flex: 1; display: flex; flex-direction: column; }
.fav-row > .glass.panel > form:first-of-type .field { flex: 1; }
.fav-row > .glass.panel > form:first-of-type textarea { flex: 1; min-height: 120px; }

/* 폰: 선수 카드를 가로형 목록으로(사진 왼쪽, 정보 오른쪽) 바꿔 스크롤 길이를 절반 이하로 */
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcard { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
  .pc-top { aspect-ratio: auto; height: 100%; min-height: 148px; }
  .pc-top::after { background: linear-gradient(90deg, transparent 60%, rgba(11, 13, 17, .35)); }
  .pc-chip { left: 8px; bottom: 8px; padding: 4px; }
  .pc-chip span { display: none; }
  .pc-demo { top: auto; bottom: 8px; left: auto; right: 8px; }
  .grade-badge { width: 38px; height: 38px; border-radius: 11px; top: 8px; right: auto; left: 8px; }
  .grade-badge b { font-size: 17px; }
  .grade-badge small { display: none; }
  .pc-sport { width: 46%; top: 50%; }
  .pc-init { display: none; }
  .pc-body { padding: 11px 13px 12px; gap: 8px; }
  .pc-body h3 { font-size: 16.5px; }
  .meta { font-size: 12px; gap: 5px; }
  .mini { gap: 5px; }
  .mini .r { grid-template-columns: minmax(0, 1fr) 46px 22px; font-size: 12px; }
  .pc-foot { padding-top: 8px; }
  .pc-foot .big { font-size: 22px; }
  .pc-foot small { margin-top: 2px; }
  .fav-row .pcard { grid-template-columns: 112px minmax(0, 1fr); }
}

/* 배경 격자(직선)는 콘텐츠 박스 테두리와 겹쳐 보여서 점 패턴으로 바꾼다 */
html::before {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 28px 28px; background-position: center 0;
}

/* =====================================================================
   v10: 계정 설정·관리자
   ===================================================================== */
.who { padding: 5px 8px; border-radius: 9px; }
.who:hover { background: var(--glass-2); color: var(--fg); }
.who .gear { width: 15px; height: 15px; color: var(--dim); }
.btn-danger { background: rgba(255, 70, 70, .12); border-color: rgba(255, 90, 90, .45); color: #ffb4b4; }
.btn-danger:hover { background: rgba(255, 70, 70, .2); }
.settings { display: grid; gap: 18px; max-width: 760px; padding-bottom: 40px; }
.settings .panel > div:last-child { display: flex; gap: 8px; }
.danger-zone { border-color: rgba(255, 90, 90, .28); }
.danger-zone .panel-head h3 svg { color: #ff8a8a; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tabs a.on { color: var(--fg); border-bottom-color: var(--accent); }
.admin-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
@media (max-width: 1000px) { .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-bottom: 40px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter .field { min-width: 180px; flex: 0 1 260px; }
.admin-filter .btn { height: 44px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.admin-grid .admin-table { min-width: 0; }
.admin-table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr.off td { opacity: .5; }
.admin-table tr.off td.acts { opacity: 1; }
.admin-table td.acts { white-space: nowrap; text-align: right; }
.admin-table td.acts form { display: inline-block; margin-left: 4px; }
.role-tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--glass-2); color: var(--muted); }
.role-tag.ATHLETE { background: var(--teal-soft); color: #9be9dd; }
.role-tag.SCOUT { background: var(--accent-soft); color: #ffbca9; }
.role-tag.ADMIN { background: rgba(246, 196, 83, .15); color: var(--gold); }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 38px; height: 38px; border-radius: 10px; }

/* 대표 사진은 얼굴이 위쪽에 있으니 잘라낼 때 위를 기준으로 */
.pc-top img { object-position: 50% 18%; }
.player-plate img { object-position: 50% 12%; }
.gallery button:first-child img { object-position: 50% 15%; }
.cmp-col .avatar img, .msg-top .avatar img, .who-cell .avatar img { object-position: 50% 15%; }

/* 폰 목록 카드: 배지가 얼굴을 가리지 않게 사진 아래쪽으로 */
@media (max-width: 600px) {
  .grade-badge { top: auto; bottom: 8px; left: 8px; right: auto; }
  .pc-chip { display: none; }
  .pc-demo { bottom: 8px; right: 8px; top: auto; left: auto; font-size: 10px; padding: 2px 6px; }
  .pc-top::after { background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 17, .6)); }
}

@media (max-width: 600px) { .pc-top .pc-demo { top: auto; left: auto; bottom: 8px; right: 8px; } }

/* =====================================================================
   v11: 메인 보강(기능 소개·FAQ)·푸터
   ===================================================================== */
.section-head .eyebrow { display: block; margin-bottom: 6px; color: var(--accent-2); }

/* 선수용 / 스카우터용 */
.duo { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; padding: 26px; align-items: center; }
.duo-card::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 93, 54, .18), transparent 65%); pointer-events: none; }
.duo-card.scout::before { background: radial-gradient(circle, rgba(55, 201, 181, .18), transparent 65%); }
.duo-text { position: relative; display: grid; gap: 14px; align-content: start; }
.duo-text h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.duo-text .btn { justify-self: start; margin-top: 4px; }
.duo-tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: #ffbca9; border: 1px solid rgba(255, 93, 54, .35); }
.duo-tag.scout { background: var(--teal-soft); color: #9be9dd; border-color: rgba(55, 201, 181, .35); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14.5px; color: #c9cfdb; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2337c9b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.athlete .ticks li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23ff8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.duo-visual { position: relative; }
.mock-card { border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), #10131a; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); transform: rotate(-1.5deg); display: grid; gap: 10px; }
.scout .mock-card { transform: rotate(1.5deg); }
.mock-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.mock-radar { width: 100%; height: auto; }
.mock-radar .r1 { fill: none; stroke: rgba(255, 255, 255, .14); }
.mock-radar .r2 { fill: none; stroke: rgba(255, 255, 255, .07); }
.mock-radar .r3 { fill: rgba(55, 201, 181, .2); stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
.mock-radar circle { fill: var(--teal); stroke: #10131a; stroke-width: 2; }
.mock-score { display: flex; align-items: baseline; gap: 8px; }
.mock-score b { font-family: var(--font-display); font-size: 28px; color: var(--t-b); line-height: 1; }
.mock-score span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-bars { display: grid; gap: 6px; }
.mock-bars i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #1d978a, var(--teal)); }
.mock-bars i:first-child { background: linear-gradient(90deg, #d84a2a, var(--accent-2)); }
.mock-search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(55, 201, 181, .4); background: rgba(0, 0, 0, .3); font-size: 12px; color: #c9cfdb; white-space: nowrap; overflow: hidden; }
.mock-search svg { width: 16px; height: 16px; color: var(--teal); }
.mock-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mock-chips span { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: #ffbca9; border: 1px solid rgba(255, 93, 54, .3); }
.mock-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.mock-row img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; object-position: 50% 15%; }
.mock-row .mr-name { display: grid; min-width: 0; }
.mock-row .mr-name b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .mr-name small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .mr-score { font-family: var(--font-display); font-weight: 700; color: var(--accent-2); }
@media (max-width: 1100px) { .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .duo-card { grid-template-columns: minmax(0, 1fr); padding: 20px; } .mock-card, .scout .mock-card { transform: none; } }

/* FAQ */
.faq { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--accent-2); }
.faq details[open] { border-color: var(--line-2); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* 푸터(여러 단) */
.foot .wrap { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px 30px; }
.foot-brand p { color: var(--muted); max-width: 34ch; line-height: 1.6; }
.foot-sports { display: flex; gap: 10px; margin-top: 4px; }
.foot-sports svg { width: 20px; height: 20px; color: var(--dim); }
.foot-col { display: grid; gap: 9px; align-content: start; font-size: 13.5px; }
.foot-col b { color: var(--fg); font-size: 13px; letter-spacing: .04em; margin-bottom: 2px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--fg); }
.foot-note { grid-column: 1 / -1; }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-brand .logo { justify-self: start; }
.foot-brand .word b { color: var(--fg); }
@media (max-width: 600px) { .mock-radar { max-width: 190px; justify-self: center; } .duo-visual { max-width: 340px; } }

/* =====================================================================
   v12: 워드마크 로고 (sc◎utlink, o 자리에 포커스 링)
   ===================================================================== */
.logo .word { font-weight: 600; font-size: 24px; letter-spacing: -.035em; color: var(--fg); white-space: nowrap; }
.logo .word span { font-weight: 300; color: #9aa3b5; }
.logo .o { display: inline-block; width: .56em; height: .56em; margin: 0 .03em; vertical-align: -.04em; color: currentColor; overflow: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.logo:hover .o { transform: rotate(45deg); }
.foot-brand .word { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .logo .o { transition: none; } }

/* =====================================================================
   v13: 기타 종목(점수 없음) 표시
   ===================================================================== */
.unrated-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.unrated-note svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: 1px; }
.unrated-box { display: flex; flex-direction: column; }
.unrated-body { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 28px 18px; }
.unrated-body svg { width: 56px; height: 56px; color: var(--accent-2); opacity: .9; }
.unrated-body b { font-size: 18px; }
.unrated-body p { color: var(--muted); max-width: 34ch; line-height: 1.65; font-size: 14px; }

/* =====================================================================
   v14: 움직임(마우스 올림·스크롤). static/js/fx.js 와 짝. 움직임 줄이기 설정이면 꺼진다
   ===================================================================== */
/* 맨 위 스크롤 진행 막대 */
.scroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #ff8a4c, #ff5d36 50%, #37c9b5); }
/* 상단바: 스크롤하면 진하고 얇게 */
.topbar { transition: background .3s ease, box-shadow .3s ease, border-color .3s ease; }
.topbar .wrap { transition: height .3s cubic-bezier(.2, .8, .2, 1); }
.topbar.scrolled { background: rgba(9, 11, 15, .88); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .95); }
.topbar.scrolled .wrap { height: 58px; }

/* 스크롤 등장 */
.fx .rv { opacity: 0; transform: translate3d(0, 22px, 0); }
.fx .rv.in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.fx .rv .mini .t i, .fx .rv .axis .bar i, .fx .rv .mock-bars i { transform: scaleX(0); transform-origin: 0 50%; }
.fx .rv.in .mini .t i, .fx .rv.in .axis .bar i, .fx .rv.in .mock-bars i { transform: none; transition: transform 1s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0ms) + .2s); }

/* 첫 화면: 레이더가 가운데서 펼쳐지고 점수 링이 차오름 */
.fx .radar polygon[class^="s"] { transform-box: view-box; transform-origin: 50% 50%; animation: radar-in .9s cubic-bezier(.2, .8, .2, 1) both .1s; }
.fx .radar circle { animation: fade-in .4s ease both .7s; }
.fx .score-ring .fill { animation: ring-in 1.1s cubic-bezier(.2, .8, .2, 1) both .2s; }
.fx .coverage .track i { transform-origin: 0 50%; animation: bar-in 1s cubic-bezier(.2, .8, .2, 1) both .3s; }
@keyframes radar-in { from { transform: scale(.35); opacity: 0; } }
@keyframes ring-in { from { stroke-dasharray: 0 264; } }
@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes fade-in { from { opacity: 0; } }

/* 카드 위 마우스 조명 */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 45%); }
.spot:hover::after { opacity: 1; }
.duo-card.spot::after { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 138, 76, .1), transparent 45%); }
.duo-card.scout.spot::after { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(55, 201, 181, .1), transparent 45%); }

/* 카드·패널 마우스 올림 */
.pcard { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-5px); border-color: rgba(255, 138, 76, .35); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 138, 76, .12); }
.pcard .grade-badge { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .grade-badge { transform: scale(1.08) rotate(-4deg); }
.pcard .mini .t i { transition: filter .25s ease; }
.pcard:hover .mini .t i { filter: brightness(1.25); }
.duo-card, .how > div, .kpi, .score-tiles .tile, .stat-grid .stat { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s ease; }
.duo-card:hover, .how > div:hover, .kpi:hover, .stat-grid .stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.mock-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.duo-card:hover .mock-card { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95); }
.how .ic { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.how > div:hover .ic { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.sport-tab { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.sport-tab:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sport-tab svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sport-tab:hover svg { transform: rotate(-12deg) scale(1.12); }

/* 버튼: 누르면 살짝 눌리고, 주 버튼은 빛이 지나감 */
.btn:active { transform: scale(.97); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.btn-primary:hover { transform: translateY(-1px); }

/* 상단 메뉴: 밑줄이 가운데서 펼쳐짐 */
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.on::after { display: none; }
.foot-col a { transition: color .2s ease, transform .2s ease; display: inline-block; }
.foot-col a:hover { transform: translateX(3px); }

@media (hover: none) { .spot::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-prog { display: none; } }

/* v15: 메인 제목 크기·글씨 정리(한글은 가는 글씨 + 좁은 자간이 어색해 보여 굵기와 자간을 따로) */
.home-intro h1 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.12; letter-spacing: -.03em; }
:lang(ko) .home-intro h1 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 400; line-height: 1.25; letter-spacing: -.035em; }
:lang(ko) .home-intro h1 strong, :lang(ko) .home-intro h1 em { font-weight: 800; }

/* ===== v16: 공개 범위(요약/회원)·이메일 인증·스카우터 인증 ===== */

/* 비회원: 상세 화면 잠금 패널 */
.locked { position: relative; overflow: hidden; margin-bottom: 18px; padding: 0; min-height: 300px; display: grid; }
.locked-ghost { position: absolute; inset: 0; padding: 34px 32px; display: grid; gap: 18px; align-content: start; filter: blur(7px); opacity: .5; pointer-events: none; }
.locked-ghost i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--glass-2), rgba(255, 255, 255, .12), var(--glass-2)); }
.locked-ghost i:nth-child(odd) { height: 44px; border-radius: 12px; }
.locked::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 40%, rgba(11, 13, 17, .55), rgba(11, 13, 17, .92)); pointer-events: none; }
.locked-body { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 22px 36px; max-width: 620px; margin: 0 auto; }
.locked-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255, 93, 54, .35); color: var(--accent-2); }
.locked-ic svg { width: 26px; height: 26px; }
.locked-body h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.locked-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.locked-list { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.locked-list li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); font-size: 13px; color: #c6ccd7; }
.locked-list svg { width: 15px; height: 15px; color: var(--teal); }
.locked-list b { font-size: 11.5px; color: var(--fg); background: rgba(255, 255, 255, .1); padding: 1px 7px; border-radius: 99px; }
.locked-body .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* 히어로: 기록 자리에 들어가는 잠금 안내 */
.lock-note { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; transition: border-color .2s, color .2s, background .2s; }
.lock-note svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.lock-note:hover { border-color: rgba(255, 93, 54, .5); color: var(--fg); background: var(--accent-soft); }

/* 가입: 스카우터 추가 항목 */
.scout-fields { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.scout-fields[hidden] { display: none; }
.scout-intro { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); }
.scout-intro svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 1px; }
.field .opt { font-size: 11px; font-weight: 600; color: var(--dim); margin-left: 4px; }

/* 이메일 인증 안내 */
.verify-card { gap: 18px; }
.verify-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--teal-soft); border: 1px solid rgba(55, 201, 181, .4); color: var(--teal); }
.verify-ic.warn { background: var(--accent-soft); border-color: rgba(255, 93, 54, .4); color: var(--accent-2); }
.verify-ic svg { width: 28px; height: 28px; }
.verify-card .sub b { color: var(--fg); font-weight: 700; }
.verify-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.verify-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; font-size: 14px; color: #c6ccd7; }
.verify-steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12.5px; font-weight: 700; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--fg); }

/* 스카우터 인증 상태 표시 */
.vstate { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.vstate.PENDING { color: var(--gold); border-color: rgba(246, 196, 83, .45); background: rgba(246, 196, 83, .08); }
.vstate.VERIFIED { color: var(--t-a); border-color: rgba(61, 214, 168, .45); background: rgba(61, 214, 168, .1); }
.vstate.REJECTED { color: #ff9b82; border-color: rgba(255, 93, 54, .4); background: var(--accent-soft); }
.vbadge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: 2px; font-size: 11px; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 99px; color: var(--t-a); background: rgba(61, 214, 168, .1); border: 1px solid rgba(61, 214, 168, .35); }
.vbadge svg { width: 13px; height: 13px; }
.scout-verify { border-color: rgba(55, 201, 181, .25); }
.vnote { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 93, 54, .3); font-size: 14px; }
.vnote b { font-size: 12px; color: #ff9b82; }

/* 선수 찾기: 인증 전 스카우터 안내 띠 */
.verify-band { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 13px 16px; border-radius: 14px; background: rgba(246, 196, 83, .07); border: 1px solid rgba(246, 196, 83, .3); color: #e9dcb8; font-size: 14px; transition: background .2s; }
.verify-band:hover { background: rgba(246, 196, 83, .12); }
.verify-band svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.verify-band b { color: var(--gold); margin-right: 4px; }
.verify-band span { flex: 1; }
.verify-band i { font-style: normal; font-size: 20px; color: var(--gold); }

/* 관리자: 탭 숫자, 상태 필터, 심사 카드 */
.tab-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--accent); color: #1c0802; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.admin-filter.seg .btn.on { background: var(--glass-2); border-color: var(--line-2); color: var(--fg); }
.scout-list { display: grid; gap: 12px; padding-bottom: 40px; }
.scout-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.sr-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.sr-info { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; }
.sr-info div { min-width: 0; }
.sr-info .wide { grid-column: 1 / -1; }
.sr-info dt { font-size: 11px; letter-spacing: .06em; color: var(--dim); font-weight: 600; margin-bottom: 2px; }
.sr-info dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.proof-link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.sr-acts { display: grid; gap: 8px; justify-items: end; min-width: 230px; }
.reject-form { display: flex; gap: 6px; }
.reject-form input { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--glass); color: var(--fg); font: inherit; font-size: 13px; width: 180px; }
@media (max-width: 760px) {
  .scout-row { grid-template-columns: 1fr; }
  .sr-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-acts { justify-items: stretch; min-width: 0; }
  .reject-form input { flex: 1; width: auto; }
  .locked-ghost { padding: 24px 18px; }
}
.admin-filter.seg .btn.on { border-color: rgba(255, 93, 54, .55); color: var(--accent-2); background: var(--accent-soft); }

/* ===== v17: AI 점수 보정 ===== */
.pill svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.ai-how { margin: -4px 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ev span.ai-why { display: inline-flex; align-items: center; gap: 6px; color: #cfeee9; background: var(--teal-soft); border-color: rgba(55, 201, 181, .35); }
.ev span.ai-why svg { width: 12px; height: 12px; color: var(--teal); flex: none; }
.ev span.ai-why b { color: var(--teal); }
.ev span.ai-why.down { color: #f3d9cf; background: var(--accent-soft); border-color: rgba(255, 93, 54, .32); }
.ev span.ai-why.down svg, .ev span.ai-why.down b { color: #ff9b82; }
.ev span.ai-why em { font-style: normal; color: var(--dim); }
.ai-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.ai-note svg { width: 14px; height: 14px; color: var(--teal); flex: none; margin-top: 3px; }

/* ===== v17: 경기 영상 플레이어 ===== */
.player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #05070a; border: 1px solid var(--line); object-fit: contain; overflow: hidden; }
.player.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-link { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.video-link:hover { color: var(--fg); }
.video-current { display: grid; gap: 8px; margin-bottom: 6px; }
.video-current video { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; border-radius: 12px; background: #05070a; border: 1px solid var(--line); }
