/* dari demo leaderboard.html */
:root {
    --gold:#d8b45a; --gold-hi:#f0d089; --gold-bright:#f2ce74;
    --jade:#2ea37c; --jade-hi:#7fe5b9; --red:#b3352b; --red-hi:#ff9d94;
    --bg:#0d0b07; --panel:rgba(12,10,6,.78); --line:#3a3208; --line-soft:#221d10;
    --text:#efe6d0; --muted:#8a7a52; --faint:#6f6448;
  }
  body { background:var(--bg); color:var(--text); font-family:'Marcellus',Georgia,serif;          background:#060402 url('bg-690271da8f.jpg') center/cover no-repeat fixed; }
  .font-display { font-family:'Marcellus',Georgia,serif; letter-spacing:.1em; font-weight:400; }
  a { color:var(--gold); }
  .front-nav a { color:#b9a87e; text-decoration:none; padding:.4rem 1rem; border-radius:999px;
                 font-size:.78rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
  .front-nav a:hover { color:var(--gold-hi); }
  .front-nav a.active { background:var(--gold); color:#1a1508; }
  .front-nav a.admin-link { border:1px solid var(--line); color:var(--faint); margin-left:.5rem; }
  .card-jade { background:var(--panel); border:1px solid var(--line); border-radius:1rem;
               box-shadow:0 0 40px rgba(216,180,90,.06), inset 0 1px 0 rgba(216,180,90,.12); }
  .badge-expert { background:var(--gold); color:#1a1508; font-weight:700; }
  .badge-beginner { background:var(--jade); color:#06251d; font-weight:700; }
  .badge-guest { background:var(--red); color:#fff; font-weight:700; }
  .badge-status-live { background:#ef4444; color:#fff; font-weight:700; }
  .badge-status-done { background:var(--line); color:var(--muted); font-weight:700; }
  .text-gold { color:var(--gold-bright); } .text-jade { color:var(--jade-hi); } .text-neg { color:var(--red-hi); }
  .text-muted2 { color:var(--muted); } .text-faint { color:var(--faint); }
  .wind { display:inline-flex; align-items:center; justify-content:center; width:1.6rem; height:1.6rem;
          background:#1a1610; color:var(--jade-hi); border:1px solid var(--line); border-bottom-width:2px;
          border-radius:.35rem; font-family:'Marcellus',serif; font-weight:700; font-size:.8rem; }
  .table-dark-jade { --bs-table-bg:transparent; --bs-table-color:var(--text); --bs-table-border-color:var(--line-soft); }
  .table-dark-jade thead th { color:var(--faint); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; }
  .page-watermark { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%);
                    width:min(95vh,900px); opacity:.028; filter:blur(1.5px) saturate(1.05);
                    pointer-events:none; user-select:none; z-index:0; }
  main.container { position:relative; z-index:1; }
  .player-link { cursor:pointer; }
  .player-link:hover { color:var(--gold-hi) !important; text-decoration:underline; }
html,body{overflow-x:hidden;max-width:100%}

  @media (max-width: 768px) {
    header.container { flex-wrap:wrap; gap:.6rem; justify-content:center !important; text-align:center; }
    .front-nav { display:flex; flex-wrap:wrap; gap:.35rem; justify-content:center; }
    .front-nav a { font-size:.62rem !important; padding:.3rem .6rem !important; }
    main.container { padding-left:.4rem; padding-right:.4rem; }
    .tab-content { padding:.6rem .4rem !important; }
    h1.font-display { font-size:1.5rem !important; }
    .nav-pills .nav-link { font-size:.62rem; padding:.35rem .7rem; }

    /* mobile table: clean columns */
    .tab-content .table { font-size:.66rem; margin-bottom:0; }
    .tab-content .table th, .tab-content .table td { padding:.28rem .12rem; vertical-align:middle; }
    .tab-content .table th:nth-child(1), .tab-content .table td:nth-child(1) { width:30px; text-align:center; }
    .tab-content .table th:nth-child(2), .tab-content .table td:nth-child(2) { width:auto; }
    .tab-content .table td:nth-child(2) .d-flex { gap:.4rem !important; }
    .tab-content .table td:nth-child(2) img { width:20px !important; height:20px !important; }
    .tab-content .table td:nth-child(2) .player-link { font-size:.72rem; display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .tab-content .table td:nth-child(2) .text-faint { font-size:.5rem !important; }
    .tab-content .table th:nth-child(n+3), .tab-content .table td:nth-child(n+3) { width:44px; text-align:right !important; padding-right:.3rem !important; }
    .tab-content .table td:nth-child(3) { font-size:.85rem !important; }
    .tab-content .table .fs-5 { font-size:.85rem !important; }
    .tab-content .table .text-jade { white-space:nowrap; }
  }

    .table .text-nowrap { white-space:nowrap; }

  /* compact rows so top 10 fits */
  .tab-content { max-width:820px !important; }
  .tab-content .table { margin-bottom:0; }
  .tab-content .table td, .tab-content .table th { padding-top:.32rem; padding-bottom:.32rem; }
  .tab-content .table img { width:26px !important; height:26px !important; }
  .tab-content .fs-5 { font-size:1.05rem !important; }

  /* bootstrap-independent tab panes */
  div.tab-content > div.tab-pane, #tab-beginner { display:none !important; }
  div.tab-content > div.tab-pane.active, #tab-beginner.active { display:block !important; }

  /* bootstrap-independent layout */
  body { margin:0; }
  header.container, main.container { max-width:1140px; margin-left:auto; margin-right:auto; padding-left:1rem; padding-right:1rem; box-sizing:border-box; }
  .d-flex { display:flex !important; }
  .align-items-center { align-items:center !important; }
  .justify-content-between { justify-content:space-between !important; }
  .justify-content-center { justify-content:center !important; }
  .gap-2 { gap:.5rem !important; } .gap-3 { gap:1rem !important; }
  .text-center { text-align:center !important; }
  .text-end { text-align:right !important; }
  .mx-auto { margin-left:auto !important; margin-right:auto !important; }
  .mb-0 { margin-bottom:0 !important; } .mb-3 { margin-bottom:1rem !important; } .mt-2 { margin-top:.5rem !important; }
  .pb-3 { padding-bottom:1rem !important; }
  .nav { display:flex; flex-wrap:wrap; list-style:none; padding-left:0; margin:0; }
  .nav-item { list-style:none; }
  .nav-pills { gap:.5rem; }
  .nav-pills .nav-link { border:0; border-radius:.4rem; padding:.5rem 1rem; cursor:pointer; font-family:inherit; }
  .pt-3 { padding-top:1rem !important; } .pb-1 { padding-bottom:.25rem !important; }
  .fs-5 { font-size:1.25rem !important; }
  .fw-bold { font-weight:700 !important; }
  .font-display { letter-spacing:.08em; }
  .table { width:100%; border-collapse:collapse; }
  .table th, .table td { border-bottom:1px solid var(--line-soft); }
  .text-nowrap { white-space:nowrap !important; }

  /* hard pane visibility */
  .tab-content > .tab-pane:not(.active) { display:none !important; visibility:hidden !important; height:0 !important; overflow:hidden !important; }
  .tab-content > .tab-pane.active { display:block !important; visibility:visible !important; height:auto !important; overflow:visible !important; }

@font-face { font-family:'Marcellus'; src:url('marcellus.ttf') format('truetype'); font-display:swap; }
.font-display{font-family:'Marcellus',Georgia,serif !important;}

/* penanda tab aktif leaderboard: strip bawah + glow, warna tombol tidak berubah */
.lb-tabs .lb-tab { position: relative; }
.lb-tabs .lb-tab::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 0; height: 3px;
  transform: translateX(-50%); border-radius: 2px; background: transparent;
  transition: width .25s ease, background .25s ease, box-shadow .25s ease;
}
.lb-tabs .lb-tab.active::after { width: 70%; }
.lb-tabs .lb-tab.active.is-expert::after  { background: #f0d089; box-shadow: 0 0 10px 2px rgba(240,208,137,.85); }
.lb-tabs .lb-tab.active.is-chicken::after { background: #7fe5b9; box-shadow: 0 0 10px 2px rgba(127,229,185,.8); }
