/* 그리드벳 토너먼트(/main/tournament.php) — 순위표는 원본 CSS 의 .fame-*(명예의 전당) 목록 머리 · 줄 틀을 그대로 쓰고, 대회 카드 · 상세만 여기서 채운다.
   색은 원본 변수(--surface-* · --font-color · --aeae · --126e51 · --38ffa8)만 써서 어두운 · 밝은 테마가 같이 바뀐다(밝은 테마에서 --black 은 짙은 글자색이라 바탕에 쓰지 않는다). */
.hd-t-tabs{display:flex;gap:8px;margin:0 0 14px}
.hd-t-tabs a{display:inline-flex;align-items:center;height:36px;padding:0 20px;border:1px solid var(--surface-4);border-radius:20px;background:var(--surface-1);font-family:'p6';font-size:13px;color:var(--aeae)}
.hd-t-tabs a.on{border-color:var(--126e51);background:var(--126e51);color:#fff}
.hd-t-body{min-height:200px}
.hd-t-wait{padding:50px 0;text-align:center;font-size:13px;color:var(--aeae)}
.hd-t-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:50px 20px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1);text-align:center;font-size:13px;line-height:20px;color:var(--aeae)}
.hd-t-empty b{font-family:'p7';font-size:16px;color:var(--font-color)}
.hd-t-empty .hd-t-btn{margin-top:8px}

/* 단추 · 딱지 */
.hd-t-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 20px;border:1px solid var(--surface-4);border-radius:5px;background:var(--surface-2);font-family:'p7';font-size:13px;color:var(--font-color);white-space:nowrap;cursor:pointer}
.hd-t-btn.main{border-color:var(--126e51);background:var(--126e51);color:#fff}
.hd-t-btn.block{display:flex;width:100%}
.hd-t-btn:disabled{opacity:.5;cursor:default}
.hd-t-bdg{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:11px;background:var(--surface-4);font-family:'p6';font-size:11px;color:var(--font-color)}
.hd-t-bdg.line{background:transparent;border:1px solid var(--surface-4);color:var(--aeae)}
.hd-t-bdg.st-live{background:#e5484d;color:#fff}
.hd-t-bdg.st-reg{background:var(--38ffa8);color:#fff}
.hd-t-bdg.st-up{background:var(--126e51);color:#fff}
.hd-t-bdg.st-calc{background:#f5a623;color:#fff}

/* 목록 */
.hd-t-sum{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 14px}
.hd-t-sum>div{display:flex;flex-direction:column;gap:4px;padding:14px 18px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1)}
.hd-t-sum>div.wide{grid-column:1/-1}
.hd-t-sum span{font-size:12px;color:var(--aeae)}
.hd-t-sum b{font-family:'p7';font-size:18px;color:var(--font-color)}
.hd-t-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.hd-t-chips button{height:34px;padding:0 16px;border:1px solid var(--surface-4);border-radius:17px;background:var(--surface-1);font-family:'p6';font-size:12px;color:var(--aeae);cursor:pointer}
.hd-t-chips button[aria-pressed="true"],.hd-t-chips button[aria-selected="true"]{border-color:var(--126e51);background:var(--126e51);color:#fff}
.hd-t-sec{margin:0 0 24px}
.hd-t-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-family:'p7';font-size:16px;color:var(--font-color)}
.hd-t-h em{font-style:normal;font-size:12px;color:var(--aeae)}
.hd-t-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hd-t-card{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1)}
.hd-t-card h3,.hd-t-head h3{margin:0;font-family:'p7';font-size:18px;line-height:1.35;color:var(--font-color);word-break:keep-all}
.hd-t-card .sub,.hd-t-head .sub{margin:0;font-size:13px;line-height:20px;color:var(--aeae)}
.hd-t-card-top{display:flex;flex-wrap:wrap;gap:6px}
.hd-t-prize{display:flex;flex-direction:column;gap:2px}
.hd-t-prize span{font-size:12px;color:var(--aeae)}
.hd-t-prize b{font-family:'p7';font-size:22px;color:var(--38ffa8)}
.hd-t-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0}
.hd-t-info>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.hd-t-info>div.wide{grid-column:1/-1}
.hd-t-info dt{font-size:11px;color:var(--aeae)}
.hd-t-info dd{margin:0;font-size:13px;color:var(--font-color)}
.hd-t-prog{height:6px;border-radius:3px;background:var(--surface-4);overflow:hidden}
.hd-t-prog i{display:block;height:100%;background:var(--126e51)}
.hd-t-card .hd-t-btn{margin-top:auto}

/* 상세 */
.hd-t-head{display:flex;flex-direction:column;gap:12px;margin:0 0 14px;padding:20px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1)}
.hd-t-head-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
.hd-t-cd{display:flex;flex-direction:column;gap:2px;text-align:right}
.hd-t-cd span{font-size:12px;color:var(--aeae)}
.hd-t-cd b{font-family:'p7';font-size:20px;color:var(--font-color);font-variant-numeric:tabular-nums}
.hd-t-prog-l{display:flex;justify-content:space-between;gap:8px;margin:-6px 0 0;font-size:11px;color:var(--aeae)}
.hd-t-head-act{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0}
.hd-t-warn{margin:0 0 10px;padding:10px 14px;border-radius:5px;background:var(--surface-2);font-size:12px;color:#f5a623}
.hd-t-note{margin:0 0 14px;padding:18px 20px;border-left:3px solid var(--126e51);border-radius:5px;background:var(--surface-1);font-size:13px;line-height:22px;color:var(--aeae)}
.hd-t-note b{display:block;margin-bottom:4px;font-family:'p7';font-size:15px;color:var(--font-color)}
.hd-t-note p{margin:0}
.hd-t-note .sm,.hd-t-part .sm,.hd-t-small{font-size:12px;line-height:20px;color:var(--aeae)}
.hd-t-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.hd-t-tiles>div{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1)}
.hd-t-tiles dt{font-size:12px;color:var(--aeae)}
.hd-t-tiles dd{margin:0;font-family:'p7';font-size:16px;color:var(--font-color);word-break:break-all}
.hd-t-tiles span{font-size:11px;color:var(--aeae)}
.hd-t-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.hd-t-cols.solo{grid-template-columns:minmax(0,1fr)}
.hd-t-main{min-width:0}
.hd-t-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.hd-t-subtabs button{height:34px;padding:0 16px;border:1px solid var(--surface-4);border-radius:5px;background:var(--surface-1);font-family:'p6';font-size:12px;color:var(--aeae);cursor:pointer}
.hd-t-subtabs button[aria-selected="true"]{border-color:var(--126e51);color:var(--126e51)}
.hd-t-panel[hidden]{display:none}
.hd-t-side{position:sticky;top:70px}
.hd-t-part{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--surface-4);border-radius:10px;background:var(--surface-1);font-size:13px;line-height:21px;color:var(--aeae)}
.hd-t-part h4{margin:0;font-family:'p7';font-size:16px;color:var(--font-color)}
.hd-t-part p{margin:0}
.hd-t-part .ok{color:var(--38ffa8);font-family:'p6'}
.hd-t-part .err{color:#ff6b6b}
.hd-t-part .fee{display:flex;align-items:baseline;gap:8px}
.hd-t-part .fee b,.hd-t-part .rank b{font-family:'p7';font-size:22px;color:var(--38ffa8)}
.hd-t-part .rank{display:flex;align-items:baseline;gap:10px}
.hd-t-row{display:flex;gap:8px}
.hd-t-row .hd-t-btn{flex:1}

/* 순위표(.fame-*) 보충 */
.hd-t-lb{margin:0 0 10px}
.hd-t-lb .fame-col-id{justify-content:flex-start;padding-left:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-t-lb .fame-list-header .fame-col-id{justify-content:center;padding-left:0}
.hd-t-lb .fame-col-rate{width:200px;flex-shrink:0;flex-direction:column;gap:1px;text-align:center}
.hd-t-lb .fame-list-header small{display:block;font-size:10px;color:var(--38ffa8)}
.hd-t-lb .fame-col-bonus{width:170px;flex-shrink:0;font-size:12px}
.hd-t-lb .fame-col-rank{display:flex;align-items:center;justify-content:center}
.hd-t-me{margin-left:8px;padding:1px 7px;border-radius:9px;background:var(--126e51);font-style:normal;font-size:10px;color:#fff}
.hd-t-mine{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:0 0 12px;padding:14px 18px;border:1px solid var(--126e51);border-radius:10px;background:var(--surface-1);font-size:13px;color:var(--aeae)}
.hd-t-mine b{font-family:'p7';font-size:20px;color:var(--38ffa8)}

/* 표 · 글 */
.hd-t-tw{overflow-x:auto;margin:0 0 10px}
.hd-t-table{width:100%;border-collapse:collapse;font-size:13px}
.hd-t-table th,.hd-t-table td{padding:11px 14px;border-bottom:1px solid var(--surface-4);text-align:left;color:var(--font-color)}
.hd-t-table th{font-family:'p6';font-size:12px;color:var(--aeae)}
.hd-t-table .r{text-align:right}
.hd-t-table td small{display:block;font-size:11px;color:var(--aeae)}
.hd-t-desc{margin:0 0 12px;font-size:13px;line-height:22px;color:var(--aeae)}
.hd-t-list{margin:0 0 10px;padding-left:18px;list-style:disc;font-size:13px;line-height:22px;color:var(--aeae)}
.hd-t-list li{padding:2px 0;word-break:keep-all}
.hd-t-sch{margin:0 0 10px;padding:0;list-style:none}
.hd-t-sch li{display:grid;grid-template-columns:110px 150px 1fr;gap:10px;padding:11px 14px;border-bottom:1px solid var(--surface-4);font-size:13px;color:var(--aeae)}
.hd-t-sch li b{color:var(--font-color)}
.hd-t-sch li.done b{color:var(--38ffa8)}
.hd-t-sch li p{margin:0}

@media (max-width:1100px){.hd-t-cols{grid-template-columns:minmax(0,1fr)}.hd-t-side{position:static}}
html[device-mode="mobile"] .hd-t-grid,html[device-mode="mobile"] .hd-t-cols{grid-template-columns:minmax(0,1fr)}
html[device-mode="mobile"] .hd-t-side{position:static}
html[device-mode="mobile"] .hd-t-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
html[device-mode="mobile"] .hd-t-head{padding:16px}
html[device-mode="mobile"] .hd-t-cd{text-align:left}
html[device-mode="mobile"] .hd-t-sch li{grid-template-columns:1fr;gap:2px}
html[device-mode="mobile"] .hd-t-lb .fame-col-rate{width:92px}
html[device-mode="mobile"] .hd-t-lb .fame-col-bonus{width:80px;font-size:11px}
html[device-mode="mobile"] .hd-t-lb .fame-col-id{padding-left:8px}
html[device-mode="mobile"] .hd-t-lb .fame-rate-val{font-size:11px}
html[device-mode="mobile"] .hd-t-lb .fame-col-id{flex:1;width:auto}
