/* 토끼카지노 하위 페이지(게임 목록·게임사·게임 상세·프로모션·레이스·약관).
   색·서체·간격은 site.css 의 토큰을 그대로 쓴다. */

.main.page { padding-top: 92px; }

/* 뒤로 가기 머리줄 */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.back-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--tile); color: var(--text-2);
  transition: background .14s, color .14s;
}
.back-btn:hover { background: var(--tile-hover); color: var(--text); }
.back-btn .ico { width: 15px; height: 15px; }
.page-head-text { min-width: 0; }
.page-head-text h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 4vw, 30px); line-height: 1.15; }
.page-sub { margin-top: 5px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.page-count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.toolbar + .page-grid { margin-top: 28px; }

/* 게임 그리드(로비 레일과 같은 카드, 줄바꿈) */
.page-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 10px;
}
.page-grid .card { width: auto; }
@media (max-width: 599px) { .page-grid { gap: 8px; } }

/* 게임사 그리드 */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.prov-cell .maker { width: 100%; aspect-ratio: 200 / 96; }
.prov-cell .maker b { font-size: 17px; }
.prov-cell .maker--display b { font-size: 21px; }
.prov-cell .maker .ico { width: 20px; height: 20px; }

/* 섹션 머리줄의 "전체보기" */
.sec-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
  transition: color .14s;
}
.sec-more + .sec-nav { margin-left: 14px; }
.sec-more:hover { color: var(--carrot); }
.sec-more .ico { width: 12px; height: 12px; }

/* ---------------- 게임 상세 ---------------- */
.page--game .game-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.game-art {
  position: relative; border-radius: 20px; overflow: hidden; isolation: isolate;
  aspect-ratio: 300 / 360; background: linear-gradient(var(--c1, #6b3df5), var(--c2, #2a1a8f));
}
.game-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.game-art-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 8%, transparent 40%, rgba(12, 7, 20, .78) 100%); }
.game-play { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.game-play-name { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: #fff; text-shadow: 0 2px 10px rgba(10, 5, 16, .6); }
.btn-lg { height: 50px; padding: 0 28px; border-radius: 12px; font-size: 16px; }
.game-demo { height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 700; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .14s; }
.game-demo:hover { background: rgba(255, 255, 255, .24); }

.game-head { display: flex; align-items: flex-start; gap: 14px; }
.game-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.game-maker { margin-top: 4px; font-size: 15px; color: var(--carrot); font-weight: 700; }
.game-head > div, .game-head { flex: 1; }
.game-fav { margin-left: auto; flex: none; }
.game-head .game-fav { align-self: center; }
.game-meta { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .06); border-radius: 14px; overflow: hidden; }
.game-meta li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--panel); }
.game-meta small { font-size: 12px; color: var(--muted); }
.game-meta span { font-size: 15px; font-weight: 700; }
.game-note { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.game-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.game-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--tile); color: var(--text-2); font-size: 13px; font-weight: 700; }
.game-chip .ico { width: 15px; height: 15px; color: var(--carrot); }
.page--game .section[data-similar] { margin-top: 44px; }

/* ---------------- 프로모션 ---------------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.promo-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel); transition: transform .16s var(--ease); }
.promo-card:hover { transform: translateY(-4px); }
.promo-card > img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: right center; background: var(--b-bg); }
.promo-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-tag { align-self: flex-start; height: 24px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--carrot-tint); color: var(--carrot); font-size: 12px; font-weight: 800; }
.promo-card-body strong { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.promo-card-body p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.promo-more { margin-top: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: var(--carrot); }
.promo-more .ico { width: 12px; height: 12px; }

.page--promo .wrap { max-width: 760px; }
.promo-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.promo-hero { width: 100%; border-radius: 24px; overflow: hidden; background: var(--b-bg); }
.promo-hero img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: right center; }
.promo-detail h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 5vw, 34px); line-height: 1.12; }
.promo-period { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.promo-period .ico { width: 15px; height: 15px; color: var(--carrot); }
.promo-lead { font-size: 16px; line-height: 1.6; color: var(--text); }
.promo-detail h2 { margin-top: 10px; font-size: 18px; font-weight: 800; }
.promo-how { display: flex; flex-direction: column; gap: 10px; counter-reset: step; width: 100%; }
.promo-how li { position: relative; padding: 2px 0 2px 42px; font-size: 15px; line-height: 1.5; color: var(--text-2); counter-increment: step; }
.promo-how li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--carrot); color: var(--carrot-ink); font-size: 14px; font-weight: 800; }
.promo-note { margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: var(--tile); font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------------- 레이스 순위 ---------------- */
.race-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.race-prize-box { display: flex; flex-direction: column; gap: 5px; padding: 20px; border-radius: 18px; background: var(--panel); }
.race-prize-box small { font-size: 13px; color: var(--muted); }
.race-prize-box strong { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--moon); }
.race-prize-box span { font-size: 13px; color: var(--text-2); }
.race-prize-box .btn-carrot { margin-top: 8px; align-self: flex-start; }
.race-table { border-radius: 18px; overflow: hidden; background: var(--panel); }
.race-head, .race-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) 1fr 1.3fr 1.3fr; align-items: center; gap: 12px; padding: 0 18px; }
.race-head { height: 44px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .03); }
.race-list { list-style: none; margin: 0; padding: 0; }
.race-row { min-height: 60px; border-top: 1px solid rgba(255, 255, 255, .05); }
.race-rank { font-family: var(--f-display); font-size: 18px; color: var(--text-2); }
.race-row--gold .race-rank { color: #ffcf33; }
.race-row--silver .race-rank { color: #cdd6e4; }
.race-row--bronze .race-rank { color: #e0975a; }
.race-user { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.race-user .ico { width: 15px; height: 15px; color: var(--muted); flex: none; }
.race-tier { font-size: 13px; color: var(--muted); }
.race-bet { font-variant-numeric: tabular-nums; font-weight: 700; }
.race-prize { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--leaf); text-align: right; }
.race-head span:last-child { text-align: right; }
.race-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------------- 약관 ---------------- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav-item { padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .14s, color .14s; }
.legal-nav-item:hover { background: var(--tile); }
.legal-nav-item.is-active { background: var(--carrot-tint); color: var(--carrot); }
.legal-body { min-width: 0; max-width: 72ch; }
.legal-doc h1 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.legal-eff { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.legal-doc h2 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.legal-doc p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.legal-foot-note { margin-top: 30px; padding: 14px 16px; border-radius: 12px; background: var(--tile); font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------------- 좁은 화면 ---------------- */
@media (max-width: 899px) {
  .main.page { padding-top: 76px; }
  .page--game .game-wrap { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; }
  .legal-wrap { grid-template-columns: 1fr; gap: 18px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav-item { background: var(--tile); }
  .race-top { grid-template-columns: 1fr; }
  .race-head, .race-row { grid-template-columns: 40px minmax(0, 1.4fr) 1.2fr 1.2fr; }
  .race-tier, .race-head span:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .race-head, .race-row { grid-template-columns: 36px minmax(0, 1fr) 1fr; padding: 0 14px; }
  .race-bet, .race-head span:nth-child(4) { display: none; }
}

/* ======================================================================
   스포츠(sports.html): 탭 · 종목 칩 · 경기 줄 · 배당 버튼 · 베팅 슬립
   ====================================================================== */
:root { --live: #ff5d6c; }
html[data-page="sports"] .chat-fab { display: none; }
.page--sports .wrap { padding-bottom: 72px; }

.sp-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sp-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--tile); color: var(--text-2); font-size: 14px; font-weight: 800; transition: background .14s, color .14s;
}
.sp-tab .ico { width: 16px; height: 16px; }
.sp-tab:hover { background: var(--tile-hover); color: var(--text); }
.sp-tab.is-active { background: var(--carrot); color: var(--carrot-ink); }
.sp-live-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--live); color: #fff; font-size: 11px; font-style: normal; }

.sp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--tile); color: var(--text-2); font-size: 14px; font-weight: 700; transition: background .14s, color .14s;
}
.sp-chip .ico { width: 16px; height: 16px; }
.sp-chip em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-chip:hover { background: var(--tile-hover); }
.sp-chip.is-active { background: var(--carrot-tint); color: var(--carrot); }
.sp-chip.is-active em { color: var(--carrot); }

.sp-list { display: flex; flex-direction: column; gap: 10px; }
.match {
  display: grid; grid-template-columns: minmax(250px, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px 18px; border-radius: 18px; background: var(--panel);
}
.match[hidden] { display: none; }
.m-info { min-width: 0; padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .07); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.m-league { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-league .ico { width: 13px; height: 13px; flex: none; }
.m-time { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.m-time .ico { width: 13px; height: 13px; color: var(--muted); }
.m-time.is-live { color: var(--live); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.m-teams { display: flex; flex-direction: column; gap: 8px; }
.m-teams li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-teams span { min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.m-score { margin-left: auto; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-size: 14px; font-variant-numeric: tabular-nums; }

.m-markets { display: flex; gap: 14px; align-items: flex-end; }
.m-market { display: flex; flex-direction: column; gap: 6px; }
/* 시장 칸 너비 고정: 승패(2칸)도 승무패(3칸) 자리를 그대로 써서 경기마다 열이 맞는다 */
.m-main { width: 234px; }
.m-ou, .m-hc { width: 154px; }
.m-market .odd { flex: 1; width: auto; }
.m-market small { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.m-odds { display: flex; gap: 6px; }
.odd {
  width: 74px; height: 52px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--tile); transition: background .14s, color .14s, transform .12s;
}
.odd span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.odd b { font-size: 15px; font-variant-numeric: tabular-nums; }
.odd:hover { background: var(--tile-hover); }
.odd:active { transform: scale(.97); }
.odd.is-picked { background: var(--carrot); color: var(--carrot-ink); }
.odd.is-picked span { color: rgba(43, 18, 0, .72); }
.sp-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* 베팅 슬립 */
.betslip { position: fixed; z-index: 40; right: 24px; bottom: 20px; width: 340px; display: flex; flex-direction: column; gap: 8px; }
.bs-bar {
  height: 56px; padding: 0 10px 0 6px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between;
  background: var(--carrot); color: var(--carrot-ink); box-shadow: 0 14px 34px rgba(8, 4, 14, .5);
}
.bs-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 12px; font-size: 15px; font-weight: 800; }
.bs-toggle .ico { width: 18px; height: 18px; }
.bs-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--carrot-ink); color: var(--carrot); font-size: 12px; font-style: normal; }
.bs-caret { width: 12px !important; height: 12px !important; transition: transform .18s var(--ease); }
.betslip[data-open="true"] .bs-caret { transform: rotate(180deg); }
.bs-toggle:focus-visible, .bs-switch:focus-visible { outline-color: var(--carrot-ink); }
.bs-quick { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.bs-switch { width: 44px; height: 26px; border-radius: 999px; background: rgba(43, 18, 0, .28); position: relative; transition: background .16s; }
.bs-switch i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); }
.bs-switch[aria-pressed="true"] { background: var(--carrot-ink); }
.bs-switch[aria-pressed="true"] i { transform: translateX(18px); background: var(--carrot); }

.bs-panel {
  max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; border-radius: 18px;
  background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(6, 3, 10, .6);
}
.bs-panel[hidden] { display: none; }
.bs-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bs-panel-head b { font-size: 16px; }
.bs-clear { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bs-clear .ico { width: 14px; height: 14px; }
.bs-clear:hover { color: var(--text); }
.bs-empty { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.bs-list { display: flex; flex-direction: column; gap: 8px; }
.bs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.bs-item small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-item b { display: block; font-size: 13.5px; }
.bs-odd { font-weight: 800; color: var(--carrot); font-variant-numeric: tabular-nums; }
.bs-remove { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.bs-remove:hover { background: var(--tile); color: var(--text); }
.bs-remove .ico { width: 13px; height: 13px; }
.bs-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bs-foot[hidden] { display: none; }
.bs-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.bs-row b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.bs-win b { color: var(--leaf); }
.bs-stake { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg); }
.bs-stake:focus-within { outline: 2px solid var(--carrot); outline-offset: 1px; }
.bs-stake span { font-size: 13px; color: var(--muted); }
.bs-stake input { min-width: 0; border: 0; background: none; outline: 0; text-align: right; font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.bs-stake em { font-style: normal; font-size: 13px; color: var(--muted); }
.bs-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bs-chips button { height: 34px; border-radius: 9px; background: var(--tile); font-size: 13px; font-weight: 700; color: var(--text-2); }
.bs-chips button:hover { background: var(--tile-hover); color: var(--text); }
.bs-place { height: 48px; border-radius: 12px; font-size: 15px; }

/* ======================================================================
   게임 허브(holdem·card-games·virtual·pachinko·hash·polymarket)
   ====================================================================== */
.hub-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hub-stats li { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--tile); }
.hub-stats .ico { width: 16px; height: 16px; color: var(--carrot); }
.hub-stats b { font-size: 13.5px; font-weight: 700; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hub-enter {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px;
  background: rgba(16, 10, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .14s, color .14s;
}
.hub-enter .ico { width: 12px; height: 12px; }
.hub-tile:hover .hub-enter, .hub-tile:focus-visible .hub-enter { background: var(--carrot); color: var(--carrot-ink); }

.hub-table-wrap { margin-top: 40px; }
.hub-table { border-radius: 18px; overflow: hidden; background: var(--panel); }
.ht-row { display: grid; grid-template-columns: var(--ht-grid); gap: 12px; align-items: center; min-height: 58px; padding: 8px 18px; border-top: 1px solid rgba(255, 255, 255, .05); }
.ht-head { min-height: 44px; border-top: 0; background: rgba(255, 255, 255, .03); }
.ht-head .ht-cell { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ht-cell { min-width: 0; font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-row:not(.ht-head) .ht-cell:first-child { font-weight: 700; color: var(--text); }
.ht-go { width: 100%; height: 34px; border-radius: 999px; background: var(--carrot-tint); color: var(--carrot); font-size: 13px; font-weight: 800; transition: background .14s, color .14s; }
.ht-go:hover { background: var(--carrot); color: var(--carrot-ink); }
.ht-pick { width: 100%; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; transition: filter .14s; }
.ht-pick span { font-size: 12px; font-weight: 700; }
.ht-pick b { font-variant-numeric: tabular-nums; }
.ht-yes { background: rgba(115, 224, 127, .14); color: var(--leaf); }
.ht-no { background: rgba(255, 93, 108, .14); color: var(--live); }
.ht-pick:hover { filter: brightness(1.25); }
.page--hub[data-hub="polymarket"] .ht-row:not(.ht-head) .ht-cell:first-child { white-space: normal; line-height: 1.4; }
.ht-cd { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ht-cd.is-soon { color: var(--live); }
.ht-hash { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
.hub-explain { margin-top: 24px; padding: 22px; border-radius: 18px; background: var(--panel); }
.hub-explain h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 17px; font-weight: 800; }
.hub-explain h2 .ico { width: 18px; height: 18px; color: var(--leaf); }
.hub-explain ol { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.hub-explain li { position: relative; padding-left: 38px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); counter-increment: step; }
.hub-explain li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--text); font-size: 13px; font-weight: 800; }
.hub-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------------- 스포츠·허브 폭별 ---------------- */
@media (max-width: 1320px) { .m-hc { display: none; } }
@media (max-width: 1100px) { .m-ou { display: none; } }
@media (max-width: 899px) {
  .match { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .m-info { padding-right: 0; border-right: 0; }
  .m-markets, .m-market.m-main { width: 100%; }
  .m-market.is-empty { display: none; }
  .m-market.m-main small { text-align: left; }
  .m-odds { width: 100%; }
  .odd { flex: 1; width: auto; }
  .betslip { left: 16px; right: 16px; width: auto; bottom: 88px; }
  .bs-panel { max-height: 52vh; }
  .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ht-row { grid-template-columns: var(--ht-grid-sm); padding: 8px 14px; gap: 10px; }
  .ht-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
