/* 쇼부카지노 시안 - 월간 대회(/tournament)와 전체 순위(/tournament/rankings) 전용. 접두어 tn- */
/* site.css 의 --leaf·--gold-btn 은 상대 주소라 p/ 폴더에서는 그림 주소가 어긋난다. 같은 재질을 절대 주소로 둔다. */
:root {
  --tn-leaf: url(/assets/img/goldleaf.webp);
  --tn-gold: linear-gradient(180deg, rgba(250, 233, 180, .9) 0%, rgba(229, 196, 124, .86) 42%, rgba(198, 154, 78, .88) 70%, rgba(160, 114, 44, .92) 100%), url(/assets/img/goldleaf-soft.webp) 50% 50% / 720px auto;
  --tn-silver: linear-gradient(180deg, #f6f2ea 0%, #cfc8b9 45%, #9a9384 100%);
  --tn-bronze: linear-gradient(180deg, #f3c9a0 0%, #c98a58 48%, #8a5532 100%);
}

/* ───────── 큰 머리 ───────── */
.tn-hero { min-height: clamp(400px, 36vw, 520px); }
.tn-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 14px/1.2 var(--sans); color: var(--champagne); }
.tn-hero .ph-t { font-size: clamp(30px, 2.8vw, 40px); color: var(--ivory); }
.tn-total { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; }
.tn-total-k { font: 600 14px/1 var(--sans); letter-spacing: .06em; color: var(--ivory-2); }
.tn-total b { font: 900 clamp(46px, 5.6vw, 84px)/1.02 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; filter: drop-shadow(0 2px 0 rgba(40, 24, 6, .55)) drop-shadow(0 14px 30px rgba(0, 0, 0, .6)); animation: tnSheen 6s var(--ease) .8s infinite; }
@keyframes tnSheen { 0% { background-position: 160% 0, 0 0, 30% 40%; } 30%, 100% { background-position: -60% 0, 0 0, 30% 40%; } }

/* 남은 시간 칸 */
.tn-cd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tn-cd-k { margin-right: 6px; font: 600 14px/1.2 var(--sans); color: var(--ivory-2); }
.tn-cd-c { display: flex; align-items: baseline; gap: 3px; min-width: 66px; height: 54px; padding: 0 12px; justify-content: center; align-items: center; border-radius: 8px; background: linear-gradient(180deg, rgba(36, 28, 18, .92), rgba(14, 11, 7, .92)); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 240, 200, .08), 0 10px 24px -14px rgba(0, 0, 0, .8); }
.tn-cd-c b { font: 800 26px/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tn-cd-c small { font-size: 12.5px; color: var(--ivory-3); }
.tn-cd-sep { font: 700 20px/1 var(--serif); color: var(--gold); opacity: .55; }

/* ───────── 부문 탭 ───────── */
.tn-tabs { margin: 0 0 28px; }
.tn-tabs button { display: inline-flex; align-items: baseline; gap: 8px; padding: 16px 20px 14px; font-size: 16px; }
.tn-tabs button small { font: 500 13px/1 var(--sans); color: var(--ivory-3); }
.tn-tabs button[aria-selected="true"] small { color: var(--champagne); }

/* ───────── 시상대 ───────── */
.tn-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.tn-pod { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 26px 16px 22px; border-radius: 16px; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 177, 101, .14), transparent 70%), linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.tn-pod.r1 { order: 2; padding-top: 34px; padding-bottom: 30px; background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(246, 226, 164, .26), transparent 70%), linear-gradient(180deg, #241b10, var(--ink)); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 70px -20px rgba(217, 177, 101, .6); }
.tn-pod.r2 { order: 1; }
.tn-pod.r3 { order: 3; }
.tn-pod-crown { position: absolute; top: -18px; left: 50%; width: 44px; height: 30px; margin-left: -22px; fill: url(#tnCrownG); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); animation: tnFloat 3.2s ease-in-out infinite; }
@keyframes tnFloat { 50% { transform: translateY(-4px); } }
.tn-medal { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font: 900 22px/1 var(--serif); color: #1d1408; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.r1 .tn-medal { width: 60px; height: 60px; font-size: 28px; background: var(--tn-gold); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .75), 0 0 0 6px rgba(217, 177, 101, .14), 0 14px 30px -12px rgba(217, 177, 101, .8); }
.r2 .tn-medal { background: var(--tn-silver); }
.r3 .tn-medal { background: var(--tn-bronze); }
.tn-pod-nick { max-width: 100%; margin-top: 14px; font: 700 19px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r1 .tn-pod-nick { font-size: 23px; }
.tn-pod-tier { margin-top: 3px; font-size: 12.5px; color: var(--ivory-3); }
.tn-pod-score { margin-top: 12px; font: 700 16px/1.2 var(--sans); color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.tn-pod-score b { color: var(--ivory); font-size: 18px; }
.tn-pod-prize { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; font: 900 20px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.r1 .tn-pod-prize { font-size: 26px; }
.tn-pod-prize small { display: block; margin-bottom: 6px; font: 600 12px/1 var(--sans); color: var(--ivory-3); -webkit-text-fill-color: var(--ivory-3); }

/* ───────── 순위 표 ───────── */
.tn-board td { vertical-align: middle; }
.tn-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; font: 800 14px/1 var(--sans); color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.tn-rank.m1 { background: var(--tn-gold); color: #1d1408; }
.tn-rank.m2 { background: var(--tn-silver); color: #1d1408; }
.tn-rank.m3 { background: var(--tn-bronze); color: #1d1408; }
.tn-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tn-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2014, #0f0b07); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 15px/1 var(--serif); color: var(--gold-hi); }
.tn-who b { font-weight: 600; color: var(--ivory); }
.tn-who small { display: block; margin-top: 2px; font-size: 12px; color: var(--ivory-3); }
.tn-score { font-weight: 700; }
.tn-prize-c { font-weight: 700; color: var(--gold-hi); }
.tn-mv { display: inline-flex; align-items: center; gap: 3px; font: 700 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.tn-mv.up { color: var(--rise); }
.tn-mv.dn { color: var(--fall); }
.tn-mv.eq { color: var(--ivory-3); }
.tn-board tr.tn-top3 td { background: rgba(217, 177, 101, .045); }
.tn-board tr.tn-cut td { border-bottom: 1px solid var(--line-2); }
.tn-board td.tn-bump { animation: tnBump 1.1s var(--ease); }
@keyframes tnBump { 0% { background-color: rgba(239, 90, 70, .26); color: #ffd9cf; } 100% { background-color: transparent; } }
.tn-board tr.tn-swap td { animation: tnSwap 1.3s var(--ease); }
@keyframes tnSwap { 0% { background-color: rgba(246, 226, 164, .22); } 100% { background-color: transparent; } }

/* ───────── 오른쪽: 내 순위 · 상금 구조 ───────── */
.tn-side { display: grid; gap: 14px; }
.tn-me-rank { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; }
.tn-me-rank b { font: 900 54px/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tn-me-rank span { font: 600 15px/1 var(--sans); color: var(--ivory-2); }
.tn-me-who { margin: 8px 0 16px; font-size: 14px; color: var(--ivory-3); }
.tn-me-who b { color: var(--ivory); font-weight: 600; }
.tn-me .kv { margin-bottom: 14px; }
.tn-me .prog { margin: 6px 0 8px; }
.tn-me-gap { margin: 0 0 16px; font-size: 13.5px; color: var(--ivory-2); }
.tn-me-gap b { color: var(--gold-hi); }
.tn-guest p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: var(--ivory-2); }
.tn-prize-t td, .tn-prize-t th { padding: 10px 4px; }
.tn-prize-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tn-prize-t th { text-align: left; font: 600 12.5px/1.2 var(--sans); color: var(--ivory-3); border-bottom: 1px solid var(--line); }
.tn-prize-t td { border-bottom: 1px solid rgba(217, 177, 101, .07); color: var(--ivory); }
.tn-prize-t tr:last-child td { border-bottom: 0; }
.tn-prize-t .r { text-align: right; }
.tn-prize-t tr:first-child td:last-child { color: var(--gold-hi); font-weight: 700; }
.tn-prize-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ivory-3); }
.tn-prize-sum b { font: 800 20px/1 var(--serif); }

/* 점수 규칙 카드 */
.tn-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tn-rule { padding: 22px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.tn-rule h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 19px/1.3 var(--serif); color: var(--champagne); }
.tn-rule h3 img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.tn-rule ul { margin: 0; padding: 0; list-style: none; }
.tn-rule li { position: relative; padding: 7px 0 7px 16px; font-size: 14px; line-height: 1.6; color: var(--ivory-2); }
.tn-rule li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.tn-rule li b { color: var(--ivory); }
.tn-notes { padding: 4px 24px; }
.tn-notes details.acc:last-child { border-bottom: 0; }

/* ───────── 전체 순위 ───────── */
.tn-rk-bar { margin: 18px 0 18px; }
.tn-sel { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ivory-3); }
.tn-sel select { height: 42px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #0c0907 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b064' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; color: var(--ivory); font: 600 14.5px/1 var(--sans); -webkit-appearance: none; appearance: none; cursor: pointer; }
.tn-sel select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 177, 101, .2); }
.tn-rk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tn-rk-tiles { margin-bottom: 18px; }
.tn-rk-tiles { --cols: 4; }
.tn-rk tr.tn-me-row td { background: rgba(217, 177, 101, .1); }
.tn-me-tag { margin-left: 6px; height: 20px; padding: 0 7px; font-size: 11px; vertical-align: 1px; }
.tn-rk-info { margin: 0 0 12px; font-size: 13.5px; color: var(--ivory-3); }
.tn-rk-info b { color: var(--ivory-2); }
.pager .tn-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--ivory-3); }

/* ───────── 반응형 ───────── */
@media (max-width: 1100px) {
  .tn-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .tn-rules { grid-template-columns: minmax(0, 1fr); }
  .tn-rk-tiles { --cols: 2; }
}
@media (max-width: 760px) {
  .tn-hero { min-height: 0; }
  .tn-eyebrow { font-size: 13px; }
  .tn-total b { font-size: clamp(40px, 11.5vw, 52px); }
  .tn-cd { gap: 5px; margin-top: 18px; }
  .tn-cd-k { flex: 1 0 100%; margin: 0 0 4px; font-size: 13px; }
  .tn-cd-c { flex: 1 1 0; min-width: 0; height: 50px; padding: 0 6px; }
  .tn-cd-c b { font-size: 22px; }
  .tn-cd-sep { display: none; }
  .tn-hero .ph-act .btn { flex: 1 1 0; padding: 0 12px; }
  .tn-tabs { margin-bottom: 20px; }
  .tn-tabs button { flex: 1 0 auto; justify-content: center; padding: 14px 10px 12px; font-size: 15px; }
  .tn-tabs button small { display: none; }
  .tn-podium { gap: 8px; margin-bottom: 22px; }
  .tn-pod { padding: 20px 6px 14px; border-radius: 12px; }
  .tn-pod.r1 { padding-top: 26px; padding-bottom: 20px; }
  .tn-pod-crown { width: 34px; height: 24px; margin-left: -17px; top: -13px; }
  .tn-medal { width: 38px; height: 38px; font-size: 18px; }
  .r1 .tn-medal { width: 46px; height: 46px; font-size: 22px; }
  .tn-pod-nick, .r1 .tn-pod-nick { margin-top: 10px; font-size: 15px; }
  .tn-pod-tier { font-size: 11px; }
  .tn-pod-score { margin-top: 8px; font-size: 12px; }
  .tn-pod-score b { font-size: 13.5px; }
  .tn-pod-prize, .r1 .tn-pod-prize { margin-top: 8px; padding-top: 9px; font-size: 14.5px; }
  .tn-pod-prize small { font-size: 11.5px; margin-bottom: 4px; }
  .tn-side { grid-template-columns: minmax(0, 1fr); }
  .tn-me-rank b { font-size: 46px; }
  .tn-notes { padding: 0 16px; }
  .tn-rule { padding: 18px 16px; }
  .tn-rk-tools { width: 100%; }
  .tn-sel { flex: 1 1 100%; }
  .tn-sel select { flex: 1; }
  /* 휴대폰 순위 표: 줄마다 한 줄 카드(순위·회원 | 점수·상금) */
  .tn-board thead, .tn-rk thead { display: none; }
  .tn-board, .tn-board tbody, .tn-rk, .tn-rk tbody { display: block; }
  .tn-board tr, .tn-rk tr { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "rk who sc" "rk who pz"; align-items: center; column-gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(217, 177, 101, .08); }
  .tn-board tbody tr:last-child, .tn-rk tbody tr:last-child { border-bottom: 0; }
  .tn-board td, .tn-rk td { display: block; padding: 0; border: 0; white-space: nowrap; }
  .tn-board td.c-rk, .tn-rk td.c-rk { grid-area: rk; }
  .tn-board td.c-who, .tn-rk td.c-who { grid-area: who; min-width: 0; overflow: hidden; }
  .tn-board td.c-sc, .tn-rk td.c-sc { grid-area: sc; text-align: right; font-size: 14px; }
  .tn-board td.c-pz, .tn-rk td.c-pz { grid-area: pz; text-align: right; font-size: 12.5px; }
  .tn-board td.c-mv, .tn-rk td.c-tier { display: none; }
  .tn-board tr.tn-cut { border-bottom-color: var(--line-2); }
  .tn-board tr.tn-top3 { background: rgba(217, 177, 101, .045); }
  .tn-board tr.tn-top3 td { background: none; }
  .tn-rk tr.tn-me-row { background: rgba(217, 177, 101, .1); }
  .tn-rk tr.tn-me-row td { background: none; }
  .tn-av { width: 30px; height: 30px; font-size: 13px; }
  .tn-who { gap: 8px; }
  .tn-who b { font-size: 14px; }
  .tn-who small { font-size: 11.5px; }
}
[data-tn-pager] button[disabled] { opacity: .4; pointer-events: none; }
.tn-board td { padding-top: 11px; padding-bottom: 11px; }
/* 전체 순위 표: 등급은 메달 그림과 함께, 회원 칸의 등급 글은 넓은 화면에서 숨김 */
.tn-rk td { padding-top: 9px; padding-bottom: 9px; }
.tn-tier { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory-2); }
.tn-tier img { width: 28px; height: 28px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
@media (min-width: 761px) { .tn-rk .tn-who small { display: none; } }

/* 전체 순위 쪽 넘김: 좁은 폭에서 줄바꿈, 누르는 곳 40px */
[data-tn-pager] { flex-wrap: wrap; row-gap: 8px; }
[data-tn-pager] button { min-width: 40px; height: 40px; }

/* ═════════ 실연동(서버에 등록된 대회): 목록 · 월간 순위 · 대회 상세. 접두어 tl- (시안 모드에서는 쓰이지 않는다) ═════════ */
.tn-total.tl-total b { font-size: clamp(32px, 4.4vw, 60px); overflow-wrap: anywhere; }
.tl-cap { margin: 8px 0 0; font-size: 13px; color: var(--ivory-3); }
.tl-stats { margin-top: 20px; }

/* 종목 분류 */
.tl-filter { margin: 0 0 28px; }
.chip.tl-empty { opacity: .55; }

/* 대회 카드 */
.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tl-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.tl-card:hover { box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .5), 0 22px 44px -24px rgba(0, 0, 0, .85); }
.tl-card.tl-active, .tl-card.tl-registration { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 46px -22px rgba(217, 177, 101, .55); }
.tl-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0806; }
.tl-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 4, .88) 0%, rgba(8, 6, 4, 0) 58%); }
.tl-card:hover .tl-art img { transform: scale(1.04); }
.tl-ended .tl-art img, .tl-calculating .tl-art img { filter: grayscale(.4) brightness(.85); }
.tl-art .bdg { position: absolute; top: 12px; left: 12px; z-index: 1; height: 26px; padding: 0 11px; }
.tl-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tl-eye { margin: 0 0 6px; font: 600 12.5px/1.2 var(--sans); letter-spacing: .04em; color: var(--ivory-3); }
.tl-t { margin: 0; font: 700 21px/1.35 var(--serif); letter-spacing: -.03em; }
.tl-t a { display: block; margin: -10px 0; padding: 10px 0; color: var(--ivory); text-decoration: none; } /* 제목 링크의 눌리는 높이를 42px 로(보이는 자리는 그대로) */
.tl-t a:hover { color: var(--gold-hi); }
.tl-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ivory-2); }
.tl-prize { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.tl-prize span { flex: none; font-size: 13px; color: var(--ivory-3); }
.tl-prize b { min-width: 0; font: 900 clamp(22px, 2vw, 27px)/1.1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.tl-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 12px; margin: 14px 0 0; }
.tl-meta div { min-width: 0; }
.tl-meta dt { font-size: 12px; color: var(--ivory-3); }
.tl-meta dd { margin: 3px 0 0; font: 600 13.5px/1.4 var(--sans); color: var(--ivory); overflow-wrap: anywhere; }
.tl-meta .tl-per { grid-column: span 2; }
.tl-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.tl-act .btn { flex: 1 1 auto; justify-content: center; }
#tlGrid .empty, #tlRecentGrid .empty { padding: 64px 20px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
#tlGrid .empty .btn { margin-top: 14px; }

/* 상금 순위표 */
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.tl-pz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tl-pz-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tl-pz-hd span:first-child { display: block; font-size: 13px; color: var(--ivory-3); }
.tl-pz-hd b { display: block; margin-top: 4px; font: 900 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-pz-list { margin: 0; padding: 0; list-style: none; }
.tl-pz-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(217, 177, 101, .07); font-size: 14px; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.tl-pz-list li:last-child { border-bottom: 0; }
.tl-pz-list li b { font-weight: 700; color: var(--ivory); text-align: right; }
.tl-pz-list li.top b { color: var(--gold-hi); }

/* 참여 방법 */
.tl-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tl-how li { display: flex; gap: 16px; padding: 22px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.tl-how li > b { flex: none; font: 900 30px/1 var(--serif); color: var(--gold); opacity: .8; font-variant-numeric: tabular-nums; }
.tl-how strong { display: block; font: 700 17px/1.4 var(--serif); letter-spacing: -.02em; color: var(--champagne); }
.tl-how p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--ivory-2); }

/* 월간 순위 */
.tl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; font-size: 14px; color: var(--ivory-2); }
.tl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s infinite; }
.tl-status-r { margin-left: auto; font-size: 13px; color: var(--ivory-3); }
.tl-rk-tiles { --cols: 2; margin-bottom: 30px; }
.tl-rk-tiles .tile .sub .btn { vertical-align: middle; }
.tl-rk tr.tn-me-row td { background: rgba(217, 177, 101, .1); }
.tl-rk .tn-score { font-size: 16px; }
.tl-rk td.c-sc { white-space: nowrap; }
.tl-rk .tn-who b { overflow-wrap: anywhere; }
.tl-foot { margin-top: 20px; }
.tl-foot a { text-decoration: none; }

@media (max-width: 1100px) {
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tl-grid, .tl-pz-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tl-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
  .tl-filter::-webkit-scrollbar { display: none; }
  .tl-body { padding: 16px 16px 18px; }
  .tl-t { font-size: 19px; }
  .tl-act .btn { flex: 1 1 100%; height: 44px; }
  .tl-how li { padding: 18px 16px; }
  .tl-rk-tiles { --cols: 1; margin-bottom: 22px; }
  .tl-status-r { margin-left: 0; flex: 1 0 100%; }
  .tl-rk tr.tn-me-row { background: rgba(217, 177, 101, .1); }
  .tl-rk tr.tn-me-row td { background: none; }
  .tl-rk td.c-sc { font-size: 14px; }
}

/* ───────── 실연동 대회 상세(mp-tour.js live) ───────── */
.tl-cd .tn-cd-k { margin-right: 6px; }
.tl-prog { max-width: 520px; margin-top: 18px; }
.tl-prog .prog { margin: 0 0 8px; }
.tl-prog-i { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 12.5px; color: var(--ivory-3); }
.tl-prog-i b { color: var(--gold-hi); font-weight: 700; }
.tl-detail-tiles { margin-bottom: 18px; }
.tl-refresh { margin: 0 0 12px; font-size: 13px; color: var(--ivory-3); }

/* 내 순위 한 줄 - 순위표 맨 위(2026-11-01 형님 "본인 순위 쉽게 보이게, 위쪽에 한 줄로") */
.tl-mine { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid rgba(212, 175, 55, .5); border-radius: 10px; background: rgba(212, 175, 55, .1); font-size: 14px; color: var(--ivory-2); }
.tl-mine b { font: 800 20px/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tl-mine span { margin-left: auto; font-weight: 700; color: var(--ivory); font-variant-numeric: tabular-nums; }
.tl-me { margin: 0 0 10px; font-size: 13px; color: var(--ivory-2); }
.tl-me b { font-size: 16px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tl-guide { margin-bottom: 18px; }
.split.tl-solo { grid-template-columns: minmax(0, 1fr); }
.tl-guide-b h2 { margin: 10px 0 10px; font: 700 22px/1.35 var(--serif); letter-spacing: -.02em; color: var(--ivory); }
.tl-guide-b p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); }
.tl-guide-b b { color: var(--gold-hi); }
.tl-guide-k { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.tl-p { margin: 10px 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--ivory-2); }
.tl-p b { color: var(--ivory); }
.tl-small { font-size: 13px; color: var(--ivory-3); }
.tl-part .box-t { margin-bottom: 4px; }
.tl-part .tn-me-rank { margin: 10px 0 16px; }
.tl-part .btn { margin-top: 4px; }
.tl-ok { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font: 700 16px/1.4 var(--sans); color: #8fdcb0; }
.tl-ok i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(63, 174, 114, .18); font-style: normal; font-size: 14px; }
.tl-fee { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-fee span { font-size: 13px; color: var(--ivory-3); }
.tl-fee b { font: 800 22px/1.2 var(--serif); }
.tl-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(200, 64, 42, .12); box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .35); font-size: 13.5px; line-height: 1.6; color: #ffb4a6; }
.tl-err[hidden] { display: none; }

.tn-podium.tl-podium .tn-pod-score small { font-size: 11.5px; color: var(--ivory-3); font-weight: 600; }
.tn-podium.tl-podium .tn-medal.m1 { background: var(--tn-gold); }
.tn-podium.tl-podium .tn-medal.m2 { background: var(--tn-silver); }
.tn-podium.tl-podium .tn-medal.m3 { background: var(--tn-bronze); }
.blk-t[tabindex="-1"]:focus { outline: none; }
.blk-t[tabindex="-1"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.tl-part h2:focus { outline: none; }
.tl-part h2:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
/* 리더보드: 열이 대회마다 달라서(공개 항목 설정) 넓은 화면은 모두, 좁은 화면은 순위·참가자·대표 성과·예상 상금만 */
.tl-lb td.c-who { min-width: 150px; }
.tl-lb .tn-who small.tl-prim { display: none; }
.tl-lb tr.tn-me-row td { background: rgba(217, 177, 101, .1); }
.tl-lb td.r { white-space: nowrap; }
.tn-board.tl-lb .rise { color: var(--rise); }
.tn-board.tl-lb .fall { color: var(--fall); }

/* 상금 구조 · 규칙 · 일정 */
.tl-pt { margin-top: 4px; }
.tl-pt tbody tr.top td:last-child { color: var(--gold-hi); font-weight: 700; }
.tl-pt .tl-per1 { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ivory-3); }
.tl-rules h3 { margin: 22px 0 8px; font: 700 16px/1.4 var(--serif); letter-spacing: -.02em; color: var(--champagne); }
.tl-rules h3:first-of-type { margin-top: 4px; }
.tl-rules .list li { display: block; padding: 9px 0; line-height: 1.75; } /* sub.css 의 .list > li 는 가로 배치(flex)라 글 속 굵은 글씨·줄바꿈이 칸으로 쪼개진다 */
.tl-rules .list b { color: var(--ivory); }
.tl-rules .list li small { font-size: 13px; color: var(--ivory-3); }
.tl-desc { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); white-space: pre-line; }
.tl-tl { margin: 4px 0 0; padding: 0; list-style: none; }
.tl-tl li { position: relative; display: flex; gap: 16px; padding: 0 0 22px; }
.tl-tl li:last-child { padding-bottom: 0; }
.tl-tl li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line-2); }
.tl-tl li:last-child::before { display: none; }
.tl-tl li > i { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #0c0907; box-shadow: inset 0 0 0 1px var(--line-2); font-style: normal; font-size: 13px; color: #1d1408; }
.tl-tl li.done > i { background: var(--tn-gold); box-shadow: none; }
.tl-tl li.on > i { box-shadow: inset 0 0 0 2px var(--gold), 0 0 16px rgba(217, 177, 101, .55); }
.tl-tl b { display: block; font: 700 16px/1.4 var(--sans); color: var(--ivory); }
.tl-tl li:not(.done):not(.on) b { color: var(--ivory-2); }
.tl-tl span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tl-tl p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ivory-3); }

@media (max-width: 760px) {
  .tl-prog { max-width: none; }
  .tl-lb tr.tn-me-row { background: rgba(217, 177, 101, .1); }
  .tl-lb tr.tn-me-row td { background: none; }
  .tl-lb td.c-ex { display: none; }
  .tl-lb .tn-who small.tl-prim { display: block; }
  .tl-lb td.c-pz { font-size: 12.5px; }
  .tl-guide-b h2 { font-size: 19px; }
}
