/* ==========================================================
   POWER SCORE — 메인 시안 v1
   컨셉: 딥 네이비·바이올렛 바탕 + 일렉트릭 옐로(볼트) 포인트
   - 게임 4종은 각자 고유색(--g)을 갖는다
   - 상단 띠와 게임 무대는 어두운 면, 본문 패널은 밝은 면
   ========================================================== */
:root {
  --ink:      #101233;   /* 상단 띠 · 무대 바탕 */
  --ink-deep: #0A0B24;
  --ink-2:    #191C4A;   /* 어두운 면 위의 카드 */
  --ink-3:    #232765;
  --ink-line: #2D3176;
  --on-ink:   #EEF0FF;
  --on-ink-2: #A9AEDD;
  --on-ink-3: #7479B0;

  --volt:     #FFE14A;   /* 브랜드 포인트 */
  --volt-ink: #12143A;

  --bg:       #EEF0F7;
  --panel:    #FFFFFF;
  --panel-2:  #F5F6FB;
  --line:     #DDE0EE;
  --line-2:   #EBEDF5;
  --text:     #14163A;
  --text-2:   #4B5078;
  --muted:    #8A8FAE;

  --blue:     #3B82F6;   /* 홀 · 좌 · 하이 */
  --red:      #F0475C;   /* 짝 · 우 · 로우 */
  --green:    #19B37C;

  --r: 14px;
  --num: "Outfit", "Pretendard Variable", sans-serif;
}
[data-g="ld"] { --g: #2FE0B0; --g-rgb: 47,224,176; --g-ink: #06281F; }
[data-g="sd"] { --g: #FF6B7F; --g-rgb: 255,107,127; --g-ink: #36070F; }
[data-g="rl"] { --g: #B18CFF; --g-rgb: 177,140,255; --g-ink: #1D0B45; }
[data-g="sb"] { --g: #58B6FF; --g-rgb: 88,182,255; --g-ink: #06223D; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 4px; }
main :focus-visible { outline-color: #5B5FE0; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- util ---------- */
.util { background: var(--ink-deep); color: var(--on-ink-2); font-size: 12px; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.util__notice { display: flex; align-items: center; gap: 8px; min-width: 0; }
.util__notice b { flex: none; padding: 1px 7px; border-radius: 9px; background: var(--volt); color: var(--volt-ink); font-size: 11px; font-weight: 700; }
.util__notice a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.util__links { display: flex; align-items: center; gap: 16px; flex: none; }
.util a:hover { color: #fff; }
.util__clock { color: var(--on-ink-3); font: 600 11px/1 var(--num); letter-spacing: .12em; }
.util__clock b { margin-left: 4px; color: var(--on-ink); font-size: 13px; letter-spacing: .02em; }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 36px; height: 36px; }
.logo__word { font: 800 24px/1 var(--num); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.logo__word em { font-style: normal; color: var(--volt); margin-left: 4px; }
.gnb { flex: 1; min-width: 0; }
.gnb ul { display: flex; justify-content: flex-end; gap: 2px; }
.gnb a { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 19px; font-size: 15px; font-weight: 600; color: var(--on-ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.gnb a:hover { color: #fff; background: var(--ink-2); }
.gnb a[aria-current="page"] { color: var(--volt-ink); background: var(--volt); }
.gnb a i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.head__m { display: none; gap: 6px; margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .12s, filter .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn--volt { background: var(--volt); color: var(--volt-ink); }
.btn--ghost { border: 1px solid var(--ink-line); color: var(--on-ink-2); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { border: 1px solid var(--line); color: var(--text-2); background: var(--panel); }
.btn--line:hover { border-color: var(--muted); color: var(--text); }
.btn--game { background: var(--g); color: var(--g-ink); }
.btn--game:hover, .btn--volt:hover { filter: brightness(1.07); }

/* ---------- game rail ---------- */
.band { background: var(--ink); background-image: radial-gradient(900px 260px at 85% 0, rgba(124,92,255,.28), transparent 70%), radial-gradient(600px 200px at 5% 100%, rgba(255,225,74,.07), transparent 70%); padding: 18px 0 150px; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 14px 16px 17px; text-align: left; color: var(--on-ink); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); transition: border-color .15s, background .15s, transform .15s; }
.tile:hover { border-color: rgba(var(--g-rgb), .6); transform: translateY(-1px); }
.tile[aria-selected="true"] { background: linear-gradient(160deg, rgba(var(--g-rgb), .22), var(--ink-2) 62%); border-color: var(--g); }
.tile__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tile__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(var(--g-rgb), .16); color: var(--g); }
.tile[aria-selected="true"] .tile__ico { background: var(--g); color: var(--g-ink); }
.tile__ico svg { width: 19px; height: 19px; }
.tile__name { display: grid; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.tile__name small { font-size: 11px; font-weight: 500; color: var(--on-ink-3); }
.tile__last { margin-left: auto; flex: none; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; background: var(--ink-3); color: var(--on-ink); }
.tile__bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tile__round { font-size: 12px; color: var(--on-ink-2); white-space: nowrap; }
.tile__round em { font-style: normal; }
.tile__round b { font-size: 15px; font-weight: 700; color: var(--on-ink); margin-right: 1px; }
.tile__time { font-size: 30px; font-weight: 700; line-height: .9; color: #fff; }
.tile__time.is-soon, .stage__time.is-soon { color: var(--volt); }
.tile__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink-3); }
.tile__bar i { display: block; height: 100%; width: 0; background: var(--g); transition: width .9s linear; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; margin-top: -132px; padding-bottom: 56px; align-items: start; }
.col-main, .col-side { display: grid; gap: 20px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(20,22,58,.04); }
.panel__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel__title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.more { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
a.more:hover { color: var(--text); }

/* ---------- stage ---------- */
.stage { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "info result" "info road"; overflow: hidden; color: var(--on-ink); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); box-shadow: 0 18px 40px -22px rgba(10,11,36,.7); }
.stage__info { grid-area: info; display: flex; flex-direction: column; padding: 22px 20px 20px; background: linear-gradient(180deg, rgba(var(--g-rgb), .2), rgba(var(--g-rgb), .03) 70%); border-right: 1px solid var(--ink-line); }
.stage__tag { font: 700 11px/1 var(--num); letter-spacing: .16em; color: var(--g); }
.stage__title { margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.stage__round { margin-top: 10px; font-size: 13px; color: var(--on-ink-2); }
.stage__round b { font-size: 17px; font-weight: 700; color: var(--on-ink); margin-right: 1px; }
.stage__label { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--on-ink-3); }
.stage__time { margin-top: 4px; font-size: 66px; font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.stage__bar { height: 6px; margin: 14px 0 18px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.stage__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--g); transition: width .9s linear; }
.stage .btn--game { width: 100%; height: 44px; font-size: 14px; }
.stage__result { grid-area: result; padding: 18px 22px 20px; min-width: 0; }
.stage__road { grid-area: road; padding: 14px 22px 18px; border-top: 1px solid var(--ink-line); background: rgba(10,11,36,.28); min-width: 0; }
.stage__sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--on-ink-3); white-space: nowrap; }
.stage__sub b { color: var(--on-ink-2); font-weight: 600; }
.stage__sub a:hover { color: var(--on-ink); }

.res { display: flex; align-items: center; gap: 28px; min-height: 176px; padding-top: 12px; }
.res__vis { flex: 1; min-width: 0; display: grid; place-items: center; }
.facts { flex: none; width: 216px; display: grid; gap: 0; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; border-bottom: 1px dashed var(--ink-line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--on-ink-2); white-space: nowrap; }
.facts dd { display: flex; gap: 5px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--ink-3); color: var(--on-ink); }
.chip--blue  { background: var(--blue); color: #fff; }
.chip--red   { background: var(--red); color: #fff; }
.chip--green { background: var(--green); color: #fff; }
.chip--dark  { background: #05061A; color: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
.chip--gold  { background: #F5B301; color: #2A1B00; }
.chip--purple { background: #7C4DE8; color: #fff; }
.chip--num   { font-family: var(--num); font-size: 15px; }

/* 사다리 */
.ladder { width: 250px; height: 164px; }
.ladder .rail-l, .ladder .rung { stroke: #3A3F8C; stroke-width: 5; stroke-linecap: round; fill: none; }
.ladder .path { stroke: var(--g); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 6px rgba(var(--g-rgb), .6)); }
.ladder text { font: 700 13px "Pretendard Variable", sans-serif; text-anchor: middle; fill: var(--on-ink-3); }
.ladder text.on { fill: #fff; }
.ladder .end { fill: var(--ink-3); }
.ladder .end.on-a { fill: var(--blue); }
.ladder .end.on-b { fill: var(--red); }
.ladder .start { fill: var(--ink-3); }
.ladder .start.on { fill: var(--g); }
.ladder text.on-g { fill: var(--g-ink); }

/* 섯다 */
.sutda { display: flex; align-items: stretch; gap: 14px; }
.hand { position: relative; display: grid; justify-items: center; gap: 9px; padding: 12px 16px 11px; border-radius: 12px; border: 1px solid var(--ink-line); background: rgba(10,11,36,.3); opacity: .62; }
.hand.is-win { opacity: 1; border-color: var(--g); background: rgba(var(--g-rgb), .12); }
.hand__side { font-size: 12px; font-weight: 700; color: var(--on-ink-2); }
.hand.is-win .hand__side::after { content: "승"; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: var(--g); color: var(--g-ink); font-size: 11px; }
.hand__cards { display: flex; gap: 6px; }
.hwatu { position: relative; display: grid; place-items: center; width: 50px; height: 76px; border-radius: 7px; background: #FFF8EA; color: #1B1B2B; border: 3px solid #D3243B; font: 800 28px/1 var(--num); }
.hwatu small { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 600 10px/1 "Pretendard Variable", sans-serif; color: #9A8F7C; }
.hwatu.is-k::before { content: "光"; position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #D3243B; color: #fff; font: 700 10px/1 "Pretendard Variable", sans-serif; }
.hand__name { font-size: 14px; font-weight: 800; }
.sutda__vs { align-self: center; font: 800 15px/1 var(--num); color: var(--on-ink-3); }

/* 룰렛 */
.wheel { position: relative; width: 168px; height: 168px; }
.wheel__disc { position: absolute; inset: 0; border-radius: 50%; border: 5px solid #C9A24A; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.wheel__disc span { position: absolute; left: 50%; top: 50%; width: 16px; margin-left: -8px; margin-top: -5px; font: 800 10px/1 var(--num); text-align: center; color: #fff; }
.wheel__hub { position: absolute; inset: 34px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 50%; background: var(--ink-deep); border: 3px solid #C9A24A; }
.wheel__hub b { font: 800 40px/1 var(--num); }
.wheel__hub small { font-size: 11px; font-weight: 700; color: var(--on-ink-2); }
.wheel__pin { position: absolute; left: 50%; top: -7px; margin-left: -8px; border: 8px solid transparent; border-top: 14px solid var(--volt); border-bottom: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }

/* 세븐볼 */
.seven { display: grid; justify-items: center; gap: 16px; }
.seven__balls { display: flex; gap: 7px; }
.ball { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none; font: 700 20px/1 var(--num); color: #fff; box-shadow: inset 0 -4px 6px rgba(0,0,0,.25), 0 3px 0 rgba(0,0,0,.3); }
.ball--blue { background: radial-gradient(circle at 34% 26%, #9CC4FF, var(--blue) 58%); }
.ball--red  { background: radial-gradient(circle at 34% 26%, #FFA5B0, var(--red) 58%); }
.seven__sum { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--on-ink-2); }
.seven__sum b { font: 800 34px/1 var(--num); color: #fff; }
.seven__sum span { font: 600 12px/1 var(--num); color: var(--on-ink-3); }

/* 흐름표 */
.stat { display: flex; gap: 10px; font-weight: 600; }
.stat b { font-weight: 700; }
.t-blue { color: #8DB8FF; } .t-red { color: #FF8E9C; } .t-green { color: #6FDDB4; } .t-dark { color: var(--on-ink); } .t-gold { color: #FFD23F; } .t-purple { color: #C4A8FF; }
.road { display: flex; justify-content: flex-end; gap: 3px; height: 135px; margin-top: 10px; overflow: hidden; }
.road ol { display: flex; flex-direction: column; gap: 3px; flex: none; }
.road li { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; color: #fff; }
.road .blue { background: var(--blue); } .road .red { background: var(--red); } .road .green { background: var(--green); }
.road .dark { background: #05061A; box-shadow: inset 0 0 0 1px #4A4F9A; }
.road .gold { background: #F5B301; color: #2A1B00; } .road .purple { background: #7C4DE8; }
.road li.more { background: none; box-shadow: none; color: var(--on-ink-2); font-family: var(--num); font-size: 11px; }
.road ol:last-child li:last-child:not(.more) { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 4px var(--volt); }

/* ---------- live score ---------- */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 17px; background: var(--panel-2); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 28px; padding: 0 13px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.frame { background: #fff; }
.frame__hint { display: none; padding: 7px 12px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.frame.is-pan .frame__hint { display: block; }
.frame__scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.frame__box { position: relative; overflow: hidden; }
.frame__box iframe { position: relative; z-index: 1; display: block; border: 0; transform-origin: 0 0; }
.frame__ph { position: absolute; inset: 0; display: grid; place-content: start center; padding-top: 72px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--muted); background: repeating-linear-gradient(#fff 0 45px, var(--line-2) 45px 46px); }
.frame__ph b { color: var(--text-2); }
.frame.is-loaded .frame__ph { display: none; }
.live__more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line-2); }
.live__more .btn { min-width: 200px; }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.posts { counter-reset: p; padding: 6px 0; }
.posts a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; }
.posts a::before { counter-increment: p; content: counter(p); width: 16px; flex: none; font: 700 14px/1 var(--num); color: var(--muted); }
.posts li:nth-child(-n+3) a::before { color: #5B5FE0; }
.posts a:hover { background: var(--panel-2); }
.posts__t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.posts__c { flex: none; font: 700 13px/1 var(--num); color: var(--red); }
.new { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); font-size: 10px; font-weight: 800; }
.posts time { margin-left: auto; padding-left: 8px; flex: none; font: 500 13px/1 var(--num); color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 16px 18px 18px; }
.photos a { min-width: 0; }
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, var(--c), #14163A); }
.ph::after { content: "PHOTO"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px var(--num); letter-spacing: .28em; color: rgba(255,255,255,.5); }
.ph span { position: absolute; z-index: 1; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 9px; background: rgba(10,11,36,.7); color: #fff; font: 600 11px/1 var(--num); }
.photos a:hover .ph { outline: 2px solid #5B5FE0; outline-offset: 2px; }
.photos p { margin-top: 7px; font-size: 12px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- sidebar ---------- */
.login { display: grid; gap: 8px; padding: 18px; }
.login h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.login label { display: block; }
.login input[type="text"], .login input[type="password"] { width: 100%; height: 42px; padding: 0 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.login input::placeholder { color: var(--muted); }
.login input:focus { outline: 0; border-color: #5B5FE0; background: #fff; }
.login .btn { width: 100%; height: 44px; font-size: 14px; border-radius: 10px; }
.login__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.login__row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.login__row input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.login__row span { display: flex; gap: 10px; }
.login__row a:hover { color: var(--text); text-decoration: underline; }
.notice { padding: 6px 0; }
.notice a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; height: 38px; padding: 0 18px; }
.notice a:hover { background: var(--panel-2); }
.notice span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice time { font: 500 13px/1 var(--num); color: var(--muted); }
.rank__leagues { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 12px; }
.pill { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pill:hover { color: var(--text); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rank table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank th { height: 30px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.rank td { height: 36px; text-align: center; border-top: 1px solid var(--line-2); font-family: var(--num); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rank th:nth-child(2), .rank td:nth-child(2) { text-align: left; }
.rank td:nth-child(2) { width: 42%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); }
.rank td:first-child { width: 44px; }
.rank td:first-child b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; color: var(--text); }
.rank tr:nth-child(-n+3) td:first-child b { background: var(--ink); color: var(--volt); }
.rank td:last-child { font-weight: 700; color: var(--text); padding-right: 14px; }
.rank th:last-child { padding-right: 14px; }
.rank tbody tr:hover td { background: var(--panel-2); }

/* 최신글: 제목과 날짜만 */
.posts--plain a::before { content: none; }
.posts--plain a { justify-content: space-between; }
/* 리그 순위: Sofascore 위젯 */
.rank__sports { display: flex; gap: 2px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; }
.rank__sports button { height: 30px; padding: 0 11px; border-radius: 15px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rank__sports button:hover { color: var(--text); }
.rank__sports button[aria-selected="true"] { color: var(--text); background: var(--panel-2); }
.rank .rank__leagues { padding-top: 10px; border-bottom: 1px solid var(--line-2); }
.rank__widget { overflow: hidden; background: #fff; }
.rank__widget img { display: block; width: calc(100% + 4px); max-width: none; height: auto; margin: -2px; }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); color: var(--on-ink-3); font-size: 12px; }
.foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 34px; }
.foot .logo__word { font-size: 19px; }
.foot p { margin-top: 10px; line-height: 1.7; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--on-ink-2); }
.foot a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .gnb a { padding: 0 10px; font-size: 14px; }
  .head .wrap { gap: 16px; }
  .facts { width: 190px; }
}
@media (max-width: 1040px) {
  .head { position: static; }
  .head .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 8px; }
  .head__m { display: flex; }
  .head__m .btn { height: 34px; padding: 0 14px; }
  .gnb { order: 3; flex: 0 0 100%; margin: 0 -20px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
  .gnb::-webkit-scrollbar { display: none; }
  .gnb ul { justify-content: flex-start; }
  .util__links a { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-main { order: -1; }
  .col-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .col-side > :first-child { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .gnb { margin: 0 -12px; padding: 0 6px 10px; }
  .band { padding: 12px 0 146px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 11px 12px 14px; gap: 9px; }
  .tile__ico { width: 28px; height: 28px; border-radius: 8px; }
  .tile__ico svg { width: 16px; height: 16px; }
  .tile__name { font-size: 14px; }
  .tile__last { display: none; }
  .tile__time { font-size: 24px; }
  .tile__round { font-size: 11px; }
  .layout { margin-top: -134px; gap: 12px; }
  .col-main, .col-side, .community { gap: 12px; }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "result" "road"; }
  .stage__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; padding: 16px; border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .stage__tag, .stage__title, .stage__round { grid-column: 1; }
  .stage__title { font-size: 22px; }
  .stage__label { display: none; }
  .stage__time { grid-column: 2; grid-row: 1 / 4; align-self: end; font-size: 46px; text-align: right; }
  .tile__round em { display: none; }
  .stage__bar, .stage .btn--game { grid-column: 1 / -1; }
  .stage__bar { margin: 12px 0; }
  .stage__result, .stage__road { padding-left: 16px; padding-right: 16px; }
  .res { flex-direction: column; gap: 12px; min-height: 0; padding-top: 14px; }
  .facts { width: 100%; }
  .ball { width: 38px; height: 38px; font-size: 17px; }
  .seven__balls { gap: 5px; }
  .hand { padding: 10px 10px 9px; }
  .community, .col-side { grid-template-columns: minmax(0, 1fr); }
  .panel__head { flex-wrap: wrap; padding: 12px 14px; }
  .live .seg { order: 3; flex: 0 0 100%; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
