/* 허브(메인) 페이지 전용 스타일 — 히어로, 랭킹 보드 배경, 시즌/등급 배분 바.
   공통 컴포넌트(버튼·nav·랭킹행·패널·가격카드·모달 등)는 shared/css/*.css 참고, 여기는
   이 페이지에서만 쓰는 레이아웃만.

   2026-07-29 리팩토링 — 흐르는 티커(.ticker-bar)를 shared/css/season-strip.css로 교체하며 제거.
   board-col·panel·shop-card 스타일은 다른 페이지도 쓰게 되어 각각 rank.css/panel.css로 승격,
   여기서는 중복 정의하지 않는다. */

/* ── 히어로 슬라이드 ── */
.hero { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 64px 0 90px; position: relative; overflow: hidden; color: #fff; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.12fr; gap: 64px; align-items: center; min-height: 440px; }
.hero-slides { position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.hero-slide.is-active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--game); flex-shrink: 0; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.32; letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; }
.hero h1 .accent { color: #8fc6ff; }
.hero p.lede { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.84); max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn--outline:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.hero-dots { display: flex; gap: 8px; margin-top: 44px; }
.hero-dot { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); cursor: pointer; border: none; padding: 0; transition: background .2s; }
.hero-dot.is-active { background: #fff; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 60px; } }

/* 종목 카드 그리드 스타일은 shared/css/games-grid.css(is-later 배지 색 포함) 공용. */

/* ── 월간대회 랭킹 보드 배경 ── 컬럼 자체 스타일은 shared/css/rank.css(.board-columns 등) 공용 */
.board, .shop-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board { padding: 100px 0; }

/* ── 시즌/등급 배분 바 ── 이 페이지에만 있는 시각화라 여기 유지, 패널 자체는 shared/css/panel.css */
.tierbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.tierseg { height: 100%; }
/* grid-template-columns는 main.js가 TIERS 개수만큼 repeat(n, 1fr)로 채워서, 등급이 늘거나
   줄어도 전체 너비를 항상 균등 분할해서 채운다. */
.tier-legend { display: grid; gap: 10px; margin-top: 18px; margin-bottom: 40px; }
.tier-chip { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; font-size: 12px; font-weight: 600; color: var(--text-dim); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
/* !important: main.js가 인라인 style로 grid-template-columns를 지정하므로, 모바일에서 3열로
   줄 바꿈 하려면 미디어쿼리가 그 인라인 스타일을 이겨야 한다. */
@media (max-width: 640px) { .tier-legend { grid-template-columns: repeat(3, 1fr) !important; } .tier-chip { font-size: 11px; padding: 6px 4px; } }
.tier-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* season-grid는 shared/css/panel.css의 .panel-grid를 그대로 쓰되 비율만 이 페이지에서 조정 */
.season-grid { grid-template-columns: 1.1fr .9fr; margin-top: 0; }
.note-desc { font-size: 13.5px; color: var(--text-mute); line-height: 1.7; margin-bottom: 16px; }
.note-preview { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.note-preview-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; background: var(--bg); border-radius: 8px; padding: 10px 14px; }
.note-preview-row b { color: var(--text); font-weight: 700; }
.note-preview-row span { color: var(--text-mute); }
@media (max-width: 860px) { .season-grid { grid-template-columns: 1fr; } }

/* ── 이용권 ── 가격 카드 자체는 shared/css/panel.css(.price-card), 여기는 3칸 배치만 */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .shop-grid { grid-template-columns: 1fr; } }
