/* 재즈 이상형 월드컵 (/lab/jazz-bracket/). 사이트 스타일과 섞이지 않게 모두 .wc 안에서만 쓴다 */
.wc { --dark: #2A2724; --cream: #E8E4DE; --gold: #C9A46A; --serif: "EB Garamond", Georgia, serif;
  --wbg: #F8F6F1; --wbg2: #EFEDE8; --wink: #1F1D1B; --wink2: #615D59; --wink3: #8C8780; --wline: rgba(31,29,27,.12);
  max-width: 880px; margin: 0 auto; padding: 28px var(--gutter, 16px) 64px; min-height: 70vh; color: var(--wink); }
.wc * { box-sizing: border-box; }
.wc button { font: inherit; color: inherit; cursor: pointer; }
.wc img { max-width: none; }
.wc .wl { background: none; border: 0; color: var(--wink2); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; font-size: 13px; }
.wc .wl:disabled { opacity: .3; cursor: default; }
.wc .wb { background: var(--wink); color: var(--wbg); border: 1px solid var(--wink); padding: 12px 20px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.wc .wb:disabled { opacity: .3; cursor: default; }
.wc .wb.ghost { background: transparent; color: var(--wink); }

/* 시작 */
/* 제목은 사이트의 다른 제목과 같은 방식: 같은 글꼴, 굵기만 다르게 (EB Garamond 에는 한글이 없다) */
.wc .intro h1 { font-size: clamp(34px, 6.4vw, 52px); line-height: 1.3; margin: 4vh 0 18px; font-weight: 400; letter-spacing: -.03em; }
.wc .intro h1 strong { font-weight: 700; }
.wc .intro p { color: var(--wink2); line-height: 1.7; margin: 0 0 28px; max-width: 34em; }
.wc .faces { display: flex; margin: 0 0 32px; }
.wc .faces img { display: inline-block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 3px solid var(--wbg); margin-right: -12px; }
.wc .friend { display: flex; gap: 14px; align-items: center; background: var(--dark); color: var(--cream); padding: 14px 16px; border-radius: 6px; margin: 0 0 24px; max-width: 460px; }
.wc .friend img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.wc .friend small { display: block; font-size: 12px; color: #A39E98; }
.wc .friend b { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; }

/* 대결 */
.wc .round { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.wc .round b { font-size: 22px; }
.wc .round span { font-size: 13px; color: var(--wink3); font-variant-numeric: tabular-nums; }
.wc .wbar { height: 3px; background: var(--wline); margin-bottom: 22px; }
.wc .wbar i { display: block; height: 100%; background: var(--wink); transition: width .3s; }
.wc .duel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.wc .wcard { background: #fff; border: 2px solid transparent; padding: 0; text-align: left; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, opacity .2s; }
@media (hover: hover) { .wc .wcard:hover { transform: translateY(-2px); border-color: var(--wink); } }
.wc .wcard .ph { aspect-ratio: 4 / 5; max-height: 52vh; background: var(--wbg2); overflow: hidden; }
.wc .wcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.wc .wcard .who { padding: 14px 16px 16px; }
.wc .wcard .who b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.05; margin-bottom: 8px; }
.wc .wcard .meta { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.wc .wcard .meta span { font-weight: 400; color: var(--wink3); font-variant-numeric: tabular-nums; }
.wc .wcard .rep { font-size: 13px; color: var(--wink2); line-height: 1.45; border-top: 1px solid var(--wline); padding-top: 9px; }
.wc .wcard .rep small { display: block; font-size: 11px; color: var(--wink3); letter-spacing: .06em; }
.wc .wcard.win { border-color: var(--wink); }
.wc .wcard.lose { opacity: .25; }
.wc .tools { display: flex; justify-content: space-between; margin-top: 18px; }
.wc .hint { font-size: 12px; color: var(--wink3); text-align: center; margin-top: 12px; }
@media (hover: none) { .wc .hint { display: none; } }

/* 대진표 */
.wc .bk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.wc .bk-head b { font-size: 22px; }
.wc .bk-head span { font-size: 13px; color: var(--wink3); }
.wc .bk-sub { color: var(--wink2); font-size: 14px; margin: 0 0 14px; min-height: 1.4em; }
.wc .bracket { overflow-x: auto; background: transparent; border-top: 1px solid var(--wline); border-bottom: 1px solid var(--wline); -webkit-overflow-scrolling: touch; }
.wc .bracket svg { display: block; margin: 0 auto; }
.wc .bracket text { font-family: var(--sans); font-size: 10.5px; fill: var(--wink); }
.wc .bracket .lbl { font-size: 10px; fill: var(--wink3); letter-spacing: .1em; }
.wc .bracket .box { fill: #fff; stroke: var(--wline); stroke-width: 1; }
.wc .bracket .lose text { fill: var(--wink3); }
.wc .bracket .lose image { opacity: .35; }
.wc .bracket .lose .box { fill: transparent; }
.wc .bracket .win text { font-weight: 700; }
.wc .bracket .empty .box { fill: transparent; stroke: rgba(31,29,27,.18); stroke-dasharray: 3 3; }
.wc .bracket .champ .box { fill: var(--gold); stroke: none; }
.wc .bracket .champ text { fill: var(--wink); font-weight: 700; }
.wc .bracket path { fill: none; stroke: rgba(31,29,27,.14); stroke-width: 1.2; }
.wc .bracket path.w { stroke: #B48A4C; stroke-width: 2; }
.wc .bracket path.new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wc-draw var(--d, .9s) ease-in-out forwards; animation-delay: var(--t, 0s); }
.wc .bracket .dot { fill: #B48A4C; filter: drop-shadow(0 0 4px rgba(201,164,106,.9)); opacity: 0; }
.wc .bracket .arrive { opacity: 0; animation: wc-arrive .35s ease-out forwards; animation-delay: var(--t, 0s); }
.wc .bracket .fade { animation: wc-fade .5s ease-out both; animation-delay: var(--t, 0s); }
@keyframes wc-draw { to { stroke-dashoffset: 0; } }
@keyframes wc-arrive { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes wc-fade { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .wc .bracket path.new, .wc .bracket .arrive, .wc .bracket .fade { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .wc .bracket .dot { display: none; }
}
.wc .bracket.ladder { padding: 10px 0; }
.wc .bracket.ladder text { font-size: 12px; }
.wc details.more { margin-top: 12px; }
.wc details.more summary { font-size: 13px; color: var(--wink2); cursor: pointer; margin-bottom: 8px; }
.wc .nudge { margin: 18px 0 0; font-size: 15px; color: var(--wink); text-align: right; }
.wc .go-card { padding: 15px 24px; font-size: 16px; }
.wc .bk-next { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }

/* 앨범 고르기 */
.wc .pick-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.wc .pick-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.wc .pick-head small { font-size: 11px; letter-spacing: .2em; color: var(--wink3); }
.wc .pick-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 6vw, 40px); margin: 2px 0 0; line-height: 1.05; letter-spacing: 0; }
.wc .pick-head .pm { font-size: 13px; color: var(--wink2); margin-top: 6px; }
.wc .pick > p { color: var(--wink2); margin: 0 0 18px; font-size: 14px; }
.wc .albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding-bottom: 90px; }
.wc .alb { background: none; border: 0; padding: 0; text-align: left; position: relative; }
.wc .tile { width: 100%; aspect-ratio: 1; background: var(--wbg2); color: var(--wink2); display: flex; align-items: flex-end; padding: 10px; font-family: var(--serif); font-size: 15px; line-height: 1.15; overflow: hidden; }
.wc .dec { grid-column: 1 / -1; margin: 14px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--wink3); border-top: 1px solid var(--wline); padding-top: 12px; }
.wc .alb img, .wc .alb .tile { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s, filter .15s; }
.wc .alb .tile { display: flex; }
.wc .alb .t { font-size: 12.5px; margin-top: 6px; line-height: 1.3; }
.wc .alb .y { font-size: 11px; color: var(--wink3); }
.wc .alb .n { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--wink); color: var(--wbg); font-weight: 700; display: none; align-items: center; justify-content: center; font-size: 14px; }
.wc .alb.on img, .wc .alb.on .tile { outline-color: var(--wink); }
.wc .alb.on .n { display: flex; }
.wc .albums.full .alb:not(.on) img, .wc .albums.full .alb:not(.on) .tile { filter: grayscale(.6) opacity(.55); }
.wc-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(248,246,241,.96); border-top: 1px solid rgba(31,29,27,.12); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.wc-dock .in { max-width: 880px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wc-dock .wb { background: #1F1D1B; color: #F8F6F1; border: 0; padding: 12px 20px; border-radius: 4px; font: 600 15px/1.2 var(--sans); cursor: pointer; }
.wc-dock .wb:disabled { opacity: .3; cursor: default; }
.wc-dock .sel { display: flex; gap: 6px; }
.wc-dock .sel span, .wc-dock .sel img { width: 38px; height: 38px; background: #EFEDE8; display: block; object-fit: cover; }

/* 결과 */
.wc .result { display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* 결과 카드: 공유되는 얼굴이라 조용하고 단정하게 (아이보리 종이, 먹색, 넓은 여백, 가는 선) */
.wc .shot { --paper: #F4F0E8; --ink: #23201D; --mute: #8A847C; --hair: rgba(35,32,29,.16);
  width: min(100%, 400px); background: var(--paper); color: var(--ink); padding: 34px 30px 26px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(35,32,29,.08); }
.wc .shot .k { font-size: 10px; letter-spacing: .32em; color: var(--mute); text-transform: uppercase; margin: 0; }
.wc .shot .por { width: 46%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; margin: 22px auto 18px; }
.wc .shot .name { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8vw, 38px); line-height: 1.05; margin: 0; letter-spacing: -.005em; }
.wc .shot .k2 { font-size: 10.5px; letter-spacing: .18em; color: var(--mute); margin: 10px 0 0; }
.wc .shot .taste { margin: 18px 0 0; }
.wc .shot .taste .tl { font-size: 9.5px; letter-spacing: .28em; color: var(--mute); text-transform: uppercase; margin: 0 0 6px; }
.wc .shot .taste .tt { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.wc .shot .taste .tg { font-size: 12.5px; color: var(--mute); margin: 4px 0 0; }
.wc .shot hr { border: 0; border-top: 1px solid var(--hair); width: 36px; margin: 22px auto; }
.wc .shot .favs { font-size: 9.5px; letter-spacing: .28em; color: var(--mute); text-transform: uppercase; margin: -6px 0 12px; }
.wc .shot .covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wc .shot .covers img, .wc .shot .covers .tile { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.wc .shot .covers .tile { display: flex; background: #E7E1D6; color: var(--ink); font-size: 12px; font-style: italic; padding: 8px; text-align: left; }
.wc .shot ol { margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 15px; line-height: 1.7; }
.wc .shot ol li span { font-family: var(--sans); font-size: 9.5px; letter-spacing: .2em; color: var(--mute); margin-right: 10px; }
.wc .shot ol li em { font-style: normal; color: var(--mute); font-size: 13px; }
.wc .shot .slogo { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-top: 40px; padding-top: 30px; padding-bottom: 6px; border-top: 1px solid var(--hair); }
.wc .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wc .actions .wb { min-width: 128px; }
.wc .toast { font-size: 13px; color: var(--wink2); min-height: 1.2em; margin: -8px 0 0; }
.wc .wstats { width: min(100%, 420px); border-top: 1px solid var(--wline); padding-top: 16px; font-size: 14px; color: var(--wink2); line-height: 1.6; text-align: center; }
.wc .wstats p { margin: 0; }
.wc .wstats p + p { margin-top: 12px; }
.wc .wstats ol { text-align: left; display: inline-block; }
.wc .wstats b { color: var(--wink); }
.wc .wstats .pct { font-family: var(--serif); font-size: 34px; color: var(--wink); line-height: 1; margin-right: 6px; }
.wc .wstats ol { margin: 8px 0 0; padding-left: 1.3em; }
.wc .fb { width: min(100%, 420px); text-align: center; padding: 18px 0 6px; border-top: 1px solid var(--wline); }
.wc .fb summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--wink2); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.wc .fb summary::-webkit-details-marker { display: none; }
.wc .fb[open] summary { text-decoration: none; color: var(--wink); margin-bottom: 10px; }
.wc .fb-done { font-size: 13px; color: var(--wink2); margin: 0; }
.wc .fb .q { font-size: 14px; color: var(--wink2); margin: 0 0 10px; }
.wc .fb .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.wc .fb .chip { background: transparent; border: 1px solid var(--wline); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--wink); transition: background .15s, border-color .15s; }

.wc .fb .chip.on { background: var(--wink); border-color: var(--wink); color: var(--wbg); }
.wc .fb textarea { width: 100%; border: 1px solid var(--wline); border-radius: 4px; padding: 12px; font: inherit; font-size: 14px; line-height: 1.5; background: #fff; color: var(--wink); resize: vertical; margin-bottom: 10px; }
.wc .fb .wb:disabled { opacity: .35; }
/* (unused) */ .wc .fb input.unused { flex: 1; min-width: 0; border: 1px solid var(--wline); border-radius: 4px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--wink); }
.wc .fb .wb { padding: 11px 16px; font-size: 14px; }
.wc .tools { gap: 12px; flex-wrap: wrap; align-items: center; }
.wc .bk-open { min-width: 268px; }
.wc-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(35,32,29,.45); display: flex; align-items: flex-end; justify-content: center; padding: 0; max-width: none; min-height: 0; }
.wc-sheet .in { background: var(--wbg); width: min(100%, 980px); max-height: 92vh; overflow: auto; border-radius: 12px 12px 0 0; padding: 20px var(--gutter, 16px) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.wc-sheet .sh-top { display: flex; justify-content: space-between; align-items: baseline; }
.wc-sheet .sh-top b { font-size: 18px; }
.wc-sheet .actions { justify-content: center; }
.wc-sheet .toast { text-align: center; margin: 0; }
@media (min-width: 760px) { .wc-sheet { align-items: center; } .wc-sheet .in { border-radius: 10px; } }
.wc-hold { z-index: 80; align-items: center; }
.wc-hold .in { border-radius: 10px; width: min(92%, 420px); align-items: center; text-align: center; }
.wc-hold .pv { width: 100%; display: flex; justify-content: center; background: var(--wbg2); border-radius: 6px; padding: 12px; }
.wc-hold img { max-height: 58vh; height: auto; width: auto; max-width: 100%; display: block; box-shadow: 0 6px 24px rgba(35,32,29,.12); -webkit-touch-callout: default; user-select: auto; transition: opacity .2s; }
.wc-hold .sh-top { width: 100%; }
.wc-hold .hold { margin: 0; font-size: 14px; color: var(--wink); }
.wc .fmt { display: flex; gap: 6px; justify-content: center; margin-bottom: -6px; }
.wc .fmt .chip { background: transparent; border: 1px solid var(--wline); border-radius: 999px; padding: 6px 12px; font-size: 12px; letter-spacing: .02em; color: var(--wink2); }
.wc .fmt .chip.on { background: var(--wink); border-color: var(--wink); color: var(--wbg); }
.wc .full { width: 100%; }
.wc .full h3 { font-size: 14px; margin: 8px 0 8px; color: var(--wink2); font-weight: 600; }
.wc-credits { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter, 16px) 48px; font-size: 12px; color: var(--ink-3); }
.wc-credits summary { cursor: pointer; }
.wc-credits ul { columns: 2 220px; padding-left: 1.1em; line-height: 1.7; }
.wc-credits a { color: inherit; }

@media (max-width: 640px) { .wc .nudge { text-align: left; } }
@media (max-width: 520px) {
  .wc .duel { gap: 10px; }
  .wc .wcard .who { padding: 12px 12px 14px; }
  .wc .wcard .rep { font-size: 12px; }
  .wc .albums { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
