/* ================================
   Eversearch Year in Review
   - 이미지 없이 CSS만으로 “세련된” 톤 구현
   - 글래스/그라디언트/노이즈/모션(감속 옵션 지원)
   ================================ */

/* 한국어 주석: 테마 변수(기본값) */
:root{
    --primary-color: #4A90D9;
    --secondary-color: #89BFE4;
  
    --bg0: #070A12;
    --bg1: #0B1021;
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --card: rgba(255,255,255,.06);
    --card2: rgba(255,255,255,.08);
    --stroke: rgba(255,255,255,.12);
    --shadow: 0 18px 60px rgba(0,0,0,.45);
  
    --radius: 18px;
    --radius2: 24px;
    --pad: 18px;
    --max: 1160px;
    
    /* 한국어 주석: 폼 컨트롤(드롭다운) 색상 스킴을 다크로 유도 */
    color-scheme: dark;
  }
  
  /* 한국어 주석: 다크모드 강제(원래 사이트 다크 토글과 연결 가능) */
  body.dark{
    --bg0: #06070F;
    --bg1: #0A0F1E;
  }
  
  /* 한국어 주석: 모션 축소(사용자 옵션) */
  html.reduce-motion *{
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1400px 900px at 15% 10%, rgba(74,144,217,.28), transparent 55%),
                radial-gradient(1200px 900px at 85% 10%, rgba(137,191,228,.22), transparent 55%),
                linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x:hidden;
  }
  
  /* 한국어 주석: 배경 노이즈/하이라이트 레이어 */
  .bg{
    position: fixed;
    inset: 0;
    pointer-events:none;
    z-index:-1;
  }
  .bg::before{
    content:"";
    position:absolute; inset:-30%;
    background:
      radial-gradient(800px 500px at 20% 30%, rgba(255,255,255,.06), transparent 60%),
      radial-gradient(700px 420px at 80% 20%, rgba(255,255,255,.05), transparent 65%),
      radial-gradient(900px 560px at 70% 80%, rgba(255,255,255,.04), transparent 65%);
    filter: blur(10px);
    opacity:.9;
  }
  .bg::after{
    content:"";
    position:absolute; inset:0;
    /* 한국어 주석: 순수 CSS 노이즈(반복 그라디언트로 약한 그레인) */
    background-image:
      repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px),
      repeating-linear-gradient(90deg, rgba(0,0,0,.02) 0, rgba(0,0,0,.02) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: overlay;
    opacity:.35;
  }
  
  /* ---------- Topbar ---------- */
  .topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(10,12,20,.72), rgba(10,12,20,.40));
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .topbar-inner{
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
  }
  
  .brand{
    display:flex;
    align-items:center;
    gap: 12px;
    text-decoration:none;
    color: var(--text);
  }
  .brand-mark{
    width: 34px; height: 34px;
    border-radius: 12px;
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%),
      linear-gradient(135deg, var(--primary-color), rgba(255,255,255,.10));
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .brand-text{ display:flex; flex-direction:column; line-height:1.1; }
  .brand-text strong{ font-size: 14px; letter-spacing:.2px; }
  .muted{ color: var(--muted); font-size: 12px; }
  
  .controls{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content:flex-end;
  }
  .control-group{
    display:flex;
    align-items:center;
    gap: 8px;
  }
  .control-label{
    font-size: 12px;
    color: var(--muted);
  }
  .select{
    appearance:none;
    color-scheme: dark;
    min-width: 120px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    outline: none;
  }
  .select:focus{
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 0 0 3px rgba(74,144,217,.22);
  }


  /* 한국어 주석: Windows/Chrome 등에서 드롭다운(option) 텍스트가 흰 배경과 겹쳐 안 보이는 문제를 방지 */
  #yearSelect{ min-width: 92px; }
  #sortSelect{ min-width: 170px; }
  .select option{
    background: rgba(10,12,20,.98);
    color: rgba(255,255,255,.92);
  }
  
  /* 한국어 주석: 세그 토글(포인트/검색수) */
  .seg{
    display:flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    cursor:pointer;
  }
  .seg-item{
    padding: 7px 10px;
    border-radius: 11px;
    font-size: 12px;
    color: var(--muted);
    user-select:none;
  }
  .seg-item.is-active{
    color: rgba(255,255,255,.95);
    background: linear-gradient(135deg, rgba(74,144,217,.35), rgba(137,191,228,.18));
    border: 1px solid rgba(255,255,255,.16);
  }
  
  /* 버튼 */
  .btn{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    cursor:pointer;
  }
  .btn:hover{
    background: rgba(255,255,255,.09);
  }
  .btn:active{
    transform: translateY(1px);
  }
  
  /* ---------- Layout ---------- */
  .container{
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 16px 40px;
  }
  .section{
    margin-top: 22px;
  }
  .section-head{
    margin-bottom: 12px;
  }
  .section-head h2{
    margin:0 0 6px 0;
    font-size: 18px;
    letter-spacing:.2px;
  }
  .section-head.split{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 14px;
  }
  .section-head p{ margin:0; }
  
  /* ---------- Hero ---------- */
  .hero{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
    margin-top: 14px;
  }
  @media (max-width: 980px){
    .hero{ grid-template-columns: 1fr; }
  }
  
  .hero-left, .hero-right{
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 18px;
    position:relative;
    overflow:hidden;
  }
  .hero-left::before{
    content:"";
    position:absolute; inset:-40%;
    background: radial-gradient(700px 480px at 30% 30%, rgba(74,144,217,.18), transparent 55%);
    filter: blur(16px);
  }
  .hero-left > *{ position:relative; }
  
  #heroTitle{
    margin:0;
    font-size: 34px;
    letter-spacing: .2px;
  }
  .hero-sub{
    margin: 10px 0 14px;
    color: var(--muted);
    max-width: 52ch;
  }
  
  .hero-badges{
    display:flex;
    gap: 10px;
    flex-wrap:wrap;
  }
  .pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    font-size: 12px;
    color: rgba(255,255,255,.82);
  }
  
  /* Scorecard */
  .scorecard{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
    padding: 16px;
    overflow:hidden;
    position:relative;
  }
  .scorecard::before{
    content:"";
    position:absolute; inset:-60%;
    background:
      radial-gradient(700px 520px at 65% 35%, rgba(137,191,228,.16), transparent 55%),
      radial-gradient(620px 460px at 25% 70%, rgba(74,144,217,.14), transparent 55%);
    filter: blur(18px);
  }
  .scorecard > *{ position:relative; }
  
  .scorecard-title{
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .scorecard-main{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .crown{
    width: 44px; height: 44px;
    display:grid; place-items:center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(74,144,217,.35), rgba(137,191,228,.14));
    border: 1px solid rgba(255,255,255,.14);
  }
  .scorecard-name{
    font-size: 18px;
    font-weight: 800;
    letter-spacing:.2px;
  }
  .scorecard-meta{
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
  }
  
  .scorecard-foot{
    margin-top: 14px;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .mini{
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
  }
  .mini-k{
    font-size: 11px;
    color: var(--muted);
  }
  .mini-v{
    margin-top: 5px;
    font-size: 14px;
    font-weight: 800;
  }
  
  /* ---------- KPI Grid ---------- */
  .kpi-grid{
    display:grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  @media (max-width: 1120px){
    .kpi-grid{ grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 640px){
    .kpi-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  .kpi{
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.34);
    position:relative;
    overflow:hidden;
  }
  .kpi::before{
    content:"";
    position:absolute; inset:-60%;
    background: radial-gradient(520px 360px at 25% 30%, rgba(74,144,217,.12), transparent 60%);
    filter: blur(14px);
  }
  .kpi > *{ position:relative; }
  .kpi .k{
    font-size: 12px;
    color: var(--muted);
  }
  .kpi .v{
    margin-top: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing:.2px;
  }
  .kpi .s{
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.72);
  }
  
  /* ---------- Month Grid ---------- */
  .month-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  @media (max-width: 980px){
    .month-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  .month{
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 14px;
    position:relative;
    overflow:hidden;
  }
  .month::before{
    content:"";
    position:absolute; inset:-60%;
    background: radial-gradient(520px 360px at 65% 35%, rgba(137,191,228,.12), transparent 60%);
    filter: blur(14px);
  }
  .month > *{ position:relative; }
  .month-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 10px;
  }
  .month-name{
    font-size: 12px;
    color: var(--muted);
  }
  .month-winner{
    margin-top: 6px;
    font-size: 15px;
    font-weight: 900;
  }
  .month-meta{
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.72);
  }
  .spark{
    margin-top: 12px;
    display:flex;
    gap: 4px;
    height: 34px;
    align-items:flex-end;
  }
  .spark i{
    display:block;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(74,144,217,.40), rgba(137,191,228,.12));
    border: 1px solid rgba(255,255,255,.10);
  }
  
  /* ---------- Table ---------- */
  .table-tools{
    display:flex;
    gap: 10px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .searchbox{
    display:flex;
    align-items:center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
  }
  .searchbox input{
    background: transparent;
    border: none;
    outline:none;
    color: var(--text);
    width: 220px;
  }
  @media (max-width: 520px){
    .searchbox input{ width: 150px; }
  }
  
  .table-wrap{
    border-radius: var(--radius2);
    overflow:hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
  }
  .table{
    width:100%;
    border-collapse: collapse;
  }
  .table thead th{
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10,12,20,.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    text-align:left;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    padding: 12px;
  }
  .table tbody td{
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
  }
  .table tbody tr{
    cursor:pointer;
  }
  .table tbody tr:hover{
    background: rgba(255,255,255,.06);
  }
  .col-num{ text-align:right; font-variant-numeric: tabular-nums; }
  .col-rank{ width: 64px; text-align:right; }
  
  .namecell{
    display:flex;
    align-items:center;
    gap: 10px;
  }
  .badge{
    width: 28px; height: 28px;
    border-radius: 12px;
    display:grid; place-items:center;
    background: linear-gradient(135deg, rgba(74,144,217,.32), rgba(137,191,228,.12));
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-weight: 900;
    font-size: 12px;
  }
  .spiritlink{
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
  }
  .spiritlink:hover{
    text-decoration: underline;
    text-decoration-color: rgba(137,191,228,.55);
  }
  
  .expand{
    display:none;
  }
  .expand.open{
    display: table-row;
  }
  .expand td{
    padding-top: 0;
    padding-bottom: 14px;
  }
  .panel{
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    padding: 12px;
  }
  .panel-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .panel-top .muted{
    font-size: 12px;
  }
  .mini-bars{
    height: 54px;
    display:flex;
    align-items:flex-end;
    gap: 4px;
  }
  .mini-bars .b{
    flex:1;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(74,144,217,.40), rgba(137,191,228,.10));
    border: 1px solid rgba(255,255,255,.10);
  }
  .mini-bars .b.zero{
    opacity:.22;
  }
  
  /* ---------- Note / Awards / Status ---------- */
  .note{
    margin-top: 10px;
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
    font-size: 12px;
  }
  
  .awards-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  @media (max-width: 980px){
    .awards-grid{ grid-template-columns: 1fr; }
  }
  .award{
    border-radius: var(--radius2);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 16px;
    position:relative;
    overflow:hidden;
  }
  .award::before{
    content:"";
    position:absolute; inset:-60%;
    background: radial-gradient(520px 360px at 30% 30%, rgba(74,144,217,.12), transparent 60%);
    filter: blur(14px);
  }
  .award > *{ position:relative; }
  .award h3{
    margin:0 0 6px 0;
    font-size: 14px;
    letter-spacing:.2px;
  }
  .award .big{
    font-size: 18px;
    font-weight: 900;
  }
  .award .sub{
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
  }
  
  /* Status box */
  .status{
    border-radius: var(--radius2);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
  }
  .status-left{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .spinner{
    width: 18px; height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.72);
    animation: spin .9s linear infinite;
  }
  @keyframes spin{
    to{ transform: rotate(360deg); }
  }
  .status-title{ font-weight: 900; }
  .status-sub{ color: var(--muted); font-size: 12px; margin-top: 4px; }
  
  .status-right{
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 220px;
  }
  .progress{
    flex:1;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.20);
    overflow:hidden;
  }
  .bar{
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(74,144,217,.70), rgba(137,191,228,.35));
    transition: width .25s ease;
  }
  
  .footer{
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.12);
  }
  .footer-inner{
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 16px;
    display:flex;
    justify-content:space-between;
    gap: 12px;
    flex-wrap:wrap;
  }
  
  /* -----------------------------
   한국어 주석: TOP 50 더보기/접기
----------------------------- */
.more-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    margin-top: 12px;
  }
  
  .btn.btn-more{
    padding: 8px 14px;
    border-radius: 999px;
    line-height: 1;
  }
  
  .more-wrap[hidden]{
    display:none !important;
  }

/* =========================================================
   [추가] 2025 연말 리포트(참고 파일) 스타일 이식본
   - 아래 블록이 최종 적용(상단 기존 CSS는 보존)
   ========================================================= */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 헤더 */
        header {
            text-align: center;
            padding: 60px 20px 40px;
            color: white;
        }

        .header-top {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        #yearSelect {
            padding: 10px 20px;
            border-radius: 12px;
            border: 2px solid rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.15);
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(10px);
        }

        #yearSelect option {
            background: #764ba2;
            color: white;
        }

        .seg-toggle {
            display: flex;
            background: rgba(255,255,255,0.15);
            border-radius: 12px;
            padding: 4px;
            backdrop-filter: blur(10px);
        }

        .seg-item {
            padding: 8px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            color: rgba(255,255,255,0.7);
            font-weight: 600;
            font-size: 14px;
        }

        .seg-item.is-active {
            background: white;
            color: #667eea;
        }

        #shareBtn {
            padding: 10px 24px;
            border-radius: 12px;
            border: 2px solid rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.15);
            color: white;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s;
        }

        #shareBtn:hover {
            background: rgba(255,255,255,0.25);
        }

        #heroTitle {
            font-size: 3.5em;
            font-weight: 800;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .pills {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .pill {
            padding: 10px 20px;
            background: rgba(255,255,255,0.2);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            font-size: 14px;
            font-weight: 600;
        }

        /* 챔피언 섹션 */
        .champion-section {
            background: white;
            border-radius: 24px;
            padding: 50px;
            margin: 40px 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            text-align: center;
        }

        .champion-label {
            font-size: 1.2em;
            color: #667eea;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 20px;
        }

        #yearChampion {
            font-size: 3.5em;
            font-weight: 900;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
        }

        #yearChampionMeta {
            font-size: 1.1em;
            color: #666;
        }

        .mini-kpis {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .mini-kpi {
            padding: 20px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 16px;
            text-align: center;
        }

        .mini-kpi-label {
            font-size: 0.85em;
            color: #666;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .mini-kpi-value {
            font-size: 1.5em;
            font-weight: 800;
            color: #333;
        }

        /* KPI 그리드 */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }

        .kpi {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .kpi:hover {
            transform: translateY(-5px);
        }

        .kpi .k {
            font-size: 0.9em;
            color: #667eea;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }

        .kpi .v {
            font-size: 2em;
            font-weight: 800;
            color: #333;
            margin-bottom: 8px;
        }

        .kpi .s {
            font-size: 0.9em;
            color: #666;
        }

        /* 월별 그리드 */
        .section {
            background: white;
            border-radius: 24px;
            padding: 40px;
            margin: 40px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .section h2 {
            font-size: 2em;
            margin-bottom: 30px;
            color: #333;
            position: relative;
            padding-bottom: 15px;
        }

        .section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }

        .month-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .month {
            padding: 24px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .month:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .month-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .month-name {
            font-size: 1.1em;
            color: #667eea;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .month-winner {
            font-size: 1.3em;
            font-weight: 800;
            color: #333;
            margin-bottom: 6px;
        }

        .month-meta {
            font-size: 0.9em;
            color: #666;
        }

        .badge {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.1em;
        }

        .spark {
            display: flex;
            align-items: flex-end;
            gap: 4px;
            height: 50px;
        }

        .spark i {
            flex: 1;
            background: linear-gradient(180deg, #667eea, #764ba2);
            border-radius: 3px 3px 0 0;
            min-width: 3px;
        }

        /* 테이블 */
        .table-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .table-controls input,
        .table-controls select {
            padding: 12px 20px;
            border-radius: 12px;
            border: 2px solid #e0e0e0;
            font-size: 14px;
            font-weight: 600;
        }

        .table-controls input {
            flex: 1;
            min-width: 250px;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        thead {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        th {
            padding: 16px;
            text-align: left;
            font-weight: 700;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        th:first-child {
            border-radius: 12px 0 0 0;
        }

        th:last-child {
            border-radius: 0 12px 0 0;
        }

        tbody tr {
            background: white;
            transition: all 0.2s;
            cursor: pointer;
        }

        tbody tr:hover {
            background: #f8f9fa;
        }

        td {
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
        }

        .col-rank {
            font-weight: 800;
            color: #667eea;
            font-size: 1.1em;
        }

        .col-num {
            text-align: right;
            font-weight: 600;
        }

        .namecell {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .namecell .badge {
            width: 32px;
            height: 32px;
            font-size: 0.9em;
        }

        .spiritlink {
            color: #333;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.05em;
        }

        .spiritlink:hover {
            color: #667eea;
        }

        .expand {
            display: none;
        }

        .expand.open {
            display: table-row;
        }

        .panel {
            padding: 30px;
            background: #f8f9fa;
            border-radius: 12px;
            margin: 10px 0;
        }

        .panel-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .muted {
            color: #999;
            font-size: 0.9em;
        }

        .mini-bars {
            display: flex;
            align-items: flex-end;
            gap: 4px;
            height: 120px;
            background: white;
            padding: 20px;
            border-radius: 12px;
        }

        .mini-bars .b {
            flex: 1;
            background: linear-gradient(180deg, #667eea, #764ba2);
            border-radius: 4px 4px 0 0;
            min-width: 8px;
            transition: all 0.3s;
        }

        .mini-bars .b.zero {
            background: #e0e0e0;
            opacity: 0.3;
        }

        .mini-bars .b:hover {
            opacity: 0.8;
        }

        /* 더보기 버튼 */
        .top-more-wrap {
            text-align: center;
            margin: 30px 0;
        }

        .top-more-btn {
            padding: 14px 40px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s;
        }

        .top-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

        .top-more-meta {
            margin-top: 10px;
            color: #666;
            font-size: 0.9em;
        }

        /* 어워드 */
        .awards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
            margin: 30px 0;
        }

        .award {
            padding: 30px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 20px;
            color: white;
            transition: transform 0.3s;
        }

        .award:hover {
            transform: scale(1.05);
        }

        .award h3 {
            font-size: 1.3em;
            margin-bottom: 15px;
            opacity: 0.95;
        }

        .award .big {
            font-size: 1.8em;
            font-weight: 800;
            margin: 15px 0;
        }

        .award .sub {
            font-size: 0.95em;
            opacity: 0.9;
            line-height: 1.6;
        }

        /* 상태 표시 */
        .status-box {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
            z-index: 9999;
            min-width: 300px;
        }

        .status-box.hidden {
            display: none;
        }

        .progress-bar-wrap {
            width: 100%;
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            margin: 20px 0 10px;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.3s;
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            color: white;
            margin-top: 60px;
        }

        @media (max-width: 768px) {
            #heroTitle {
                font-size: 2.5em;
            }

            .champion-section {
                padding: 30px 20px;
            }

            #yearChampion {
                font-size: 2.5em;
            }

            .section {
                padding: 25px 15px;
            }

            .table-controls {
                flex-direction: column;
            }

            .table-controls input {
                min-width: 100%;
            }

            table {
                font-size: 0.9em;
            }

            th, td {
                padding: 10px 8px;
            }
        }
/* ===============================
   [추가] 산정 기준 툴팁/설명 UI
   - hover + 클릭(모바일) 모두 지원
   =============================== */

/* 한국어 주석: 섹션 하단 안내문 */
.calc-note{
  margin-top: 10px;
  font-size: 0.92em;
  color: rgba(0,0,0,.62);
  line-height: 1.6;
}

/* 한국어 주석: 아이콘형 툴팁 트리거 */
.info-tip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  background: rgba(102,126,234,0.16);
  border: 1px solid rgba(102,126,234,0.28);
  color: #667eea;
  position: relative;
  vertical-align: middle;
}

/* 한국어 주석: 툴팁 말풍선 */
.info-tip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,22,28,0.92);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 한국어 주석: 말풍선 삼각형 */
.info-tip::before{
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(20,22,28,0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 한국어 주석: PC hover + 모바일 click(open 클래스) 모두 표시 */
.info-tip:hover::after,
.info-tip:hover::before,
.info-tip.open::after,
.info-tip.open::before{
  opacity: 1;
  visibility: visible;
}

/* 한국어 주석: 작은 화면에서는 툴팁 폭을 더 유연하게 */
@media (max-width: 520px){
  .info-tip::after{
    min-width: 180px;
    max-width: 84vw;
  }
}

/* ===============================
   [추가] Top50 표 정렬/칸 맞춤 고정
   =============================== */
#topTable.top-table{
  width: 100%;
  table-layout: fixed;          /* 한국어 주석: 컬럼 폭 기준을 고정해서 칸 밀림 방지 */
  border-collapse: separate;
  border-spacing: 0;
}

#topTable.top-table th,
#topTable.top-table td{
  padding: 16px 18px;           /* 한국어 주석: 헤더/바디 동일 패딩 */
  vertical-align: middle;
  text-align: center;           /* 한국어 주석: 기본은 가운데 정렬 */
  white-space: nowrap;          /* 한국어 주석: 숫자 줄바꿈 방지 */
}

/* 한국어 주석: 2번째 컬럼(정령명)만 왼쪽 정렬 */
#topTable.top-table th:nth-child(2),
#topTable.top-table td:nth-child(2){
  text-align: left;
}

/* 한국어 주석: 컬럼 폭 지정(화면에서 칸 “정확히” 맞추기) */
#topTable.top-table th:nth-child(1),
#topTable.top-table td:nth-child(1){
  width: 70px;                  /* 순위 */
}
#topTable.top-table th:nth-child(2),
#topTable.top-table td:nth-child(2){
  width: 280px;                 /* 정령명 */
}
#topTable.top-table th:nth-child(n+3),
#topTable.top-table td:nth-child(n+3){
  width: 110px;                 /* 포인트~변동성 숫자 컬럼 */
}

/* 한국어 주석: 작은 화면에서는 정령명 폭을 좀 줄여서 깨짐 방지 */
@media (max-width: 900px){
  #topTable.top-table th:nth-child(2),
  #topTable.top-table td:nth-child(2){
    width: 220px;
  }
}
@media (max-width: 640px){
  #topTable.top-table th:nth-child(2),
  #topTable.top-table td:nth-child(2){
    width: 160px;
  }
}
