/* ============================================================
   KUNANG · Design System
   Sticker style: outline tebal + hard shadow, nol blur.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* ground & navy (brand sheet v4) */
  --cream:  #FFF8ED;
  --paper:  #FFFFFF;
  --navy:   #1E2A4A;
  --dim:    #6B6F82;   /* brand sheet pakai #8A8DA0, tapi itu cuma 3.11:1 di atas
                          krem dan gagal AA. Digelapkan ke 4.71:1, hue biru-abu tetap. */
  --haze:   #F0E4D0;

  /* palet ceria */
  --nyala:  #FFD23F;   /* "nyala" = cahaya kunang-kunang */
  --coral:  #FF6B6B;
  --mint:   #4ECDC4;
  --sky:    #45AAF2;
  --purple: #A55EEA;   /* navy di atasnya 3.63:1; hanya untuk fill tanpa teks kecil */
  --purple-soft: #B77BF0;  /* varian aman teks: navy 4.78:1 */
  --orange: #FF9F43;
  --lime:   #26DE81;
  --bronze: #C87F3A;

  /* warna per game */
  --g-dota:   var(--coral);
  --g-cs2:    var(--nyala);
  --g-roc:    var(--mint);
  --g-rf:     var(--sky);
  --g-rtnw:   var(--purple-soft);
  --g-tekken: var(--orange);
  --g-sf6:    var(--lime);

  /* aksen aktif, di-override per konteks */
  --accent: var(--nyala);

  /* bentuk */
  --line: 2.5px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  /* hard shadow */
  --sh-sm: 0 2px 0 var(--navy);
  --sh:    0 3px 0 var(--navy);
  --sh-lg: 0 5px 0 var(--navy);

  /* motion */
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease:   cubic-bezier(.2, .8, .3, 1);

  /* ritme */
  --gut: 24px;
  --max: 1140px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* ---------- 3. BASE ---------- */
body {
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  /* pola titik lembut supaya krem tidak terasa kosong */
  background-image: radial-gradient(var(--haze) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { max-width: 62ch; }
strong { font-weight: 800; }

.num { font-variant-numeric: tabular-nums; }
code, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  font-weight: 500;
}

:focus-visible {
  outline: var(--line) solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }
.section--tight { padding-block: clamp(36px, 6vw, 64px); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }

/* ---------- 5. EYEBROW & HEADING ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  border: var(--line) solid var(--navy);
  border-radius: var(--pill);
  padding: 5px 15px;
  box-shadow: var(--sh-sm);
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--dim); font-weight: 600; }

/* ---------- 6. TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif;
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px;
  border: var(--line) solid var(--navy);
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: var(--sh);
  transition: transform .16s var(--bounce), box-shadow .16s var(--bounce);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn:active { transform: translateY(2px);  box-shadow: var(--sh-sm); }
.btn--primary { background: var(--nyala); }
.btn--coral   { background: var(--coral); }
.btn--mint    { background: var(--mint); }
.btn--ghost   { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--paper); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.btn--sm { padding: 8px 17px; font-size: .88rem; box-shadow: var(--sh-sm); }
.btn--lg { padding: 17px 34px; font-size: 1.12rem; }

/* ---------- 7. KARTU STIKER ---------- */
.card {
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 26px;
  position: relative;
}
.card--flat  { box-shadow: none; }
.card--tint  { background: var(--accent); }
.card--lift  { transition: transform .2s var(--bounce), box-shadow .2s var(--bounce); }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.card__cap {
  position: absolute; top: -15px; left: 24px;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent);
  border: var(--line) solid var(--navy);
  border-radius: var(--pill);
  padding: 3px 14px;
}

/* ---------- 8. PILL / CHIP / BADGE ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .86rem;
  padding: 7px 15px;
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--pill);
  white-space: nowrap;
}
.pill--tint { background: var(--accent); }
.pill--dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--navy);
}

.badge {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  background: var(--accent);
  border: var(--line) solid var(--navy);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  font-size: 1.6rem;
  transition: transform .2s var(--bounce);
  cursor: default;
}
.badge:hover { transform: translateY(-4px) rotate(-6deg); }
.badge--locked { background: var(--haze); filter: grayscale(1); opacity: .55; }

.shelf { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- 9. AVATAR CHIBI ---------- */
.avatar {
  --size: 108px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--sky);
  border: var(--line) solid var(--navy);
  box-shadow: var(--sh);
  display: grid; place-items: center;
  position: relative;
  flex: none;
}
.avatar svg { width: 88%; height: 88%; }
.avatar--gold {
  background: var(--nyala);
  box-shadow: 0 0 0 4px var(--nyala), 0 0 0 6px var(--navy), var(--sh);
}
.avatar--sm { --size: 54px; box-shadow: var(--sh-sm); }
.avatar--xs { --size: 40px; box-shadow: none; border-width: 2px; }
.avatar__tag {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy); color: var(--cream);
  border-radius: var(--pill);
  padding: 3px 11px;
  white-space: nowrap;
}

/* ---------- 10. PROGRESS ---------- */
.bar {
  height: 22px;
  background: var(--haze);
  border: var(--line) solid var(--navy);
  border-radius: var(--pill);
  overflow: hidden;
  position: relative;
}
.bar__fill {
  height: 100%;
  background: var(--accent);
  border-right: var(--line) solid var(--navy);
  border-radius: var(--pill) 0 0 var(--pill);
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px);
}
.bar--sm { height: 14px; border-width: 2px; }
.bar__meta { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; }

/* ---------- 11. PITA JUARA ---------- */
.ribbon {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--nyala);
  border: var(--line) solid var(--navy);
  padding: 5px 16px 5px 13px;
  box-shadow: var(--sh-sm);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%);
  padding-right: 26px;
}
.ribbon--silver { background: #E3E0DA; }
.ribbon--bronze { background: var(--orange); }

/* ---------- 12. TAB GAME ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: nowrap; }
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; font-size: .92rem;
  padding: 11px 19px;
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: 0 -2px 0 rgba(30,42,74,.14);
  transition: transform .16s var(--bounce), background .16s var(--ease);
  white-space: nowrap;
  position: relative;
  top: 3px;
}
.tab:hover { transform: translateY(-3px); }
.tab[aria-selected="true"] {
  background: var(--g);
  top: 0;
  box-shadow: 0 -3px 0 var(--navy);
  z-index: 2;
}
.tab__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--g); border: 2px solid var(--navy); }
.tab[aria-selected="true"] .tab__dot { background: var(--paper); }

.panel {
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  box-shadow: var(--sh);
  padding: clamp(22px, 3.5vw, 38px);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 9px;
  background: var(--accent);
  border-bottom: var(--line) solid var(--navy);
  border-radius: 0 var(--r-lg) 0 0;
}
.panel[hidden] { display: none; }

/* ---------- 13. STAT TILE ---------- */
.stat {
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 15px 18px;
  text-align: center;
}
.stat__n {
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  /* ink diredupkan, bukan --dim: tile ini bisa berlatar sunny */
  color: color-mix(in srgb, var(--navy) 76%, transparent);
  margin-top: 5px;
}

/* ---------- 14. EMPTY STATE ---------- */
.empty {
  text-align: center;
  padding: 46px 24px;
  border: var(--line) dashed var(--dim);
  border-radius: var(--r-lg);
  background: var(--cream);
}
.empty__art { font-size: 3.2rem; line-height: 1; margin-bottom: 12px; }

/* ---------- 15. DEKORASI ---------- */
.blob { position: absolute; z-index: 0; pointer-events: none; opacity: .55; }
.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  width: 13px; height: 13px;
  background: var(--c, var(--nyala));
  border: 2px solid var(--navy);
  border-radius: 3px;
  animation: float 5s var(--ease) infinite alternate;
  animation-delay: var(--d, 0s);
}
.confetti i:nth-child(even) { border-radius: 50%; width: 11px; height: 11px; }
.confetti i:nth-child(3n)   { border-radius: 3px; height: 20px; width: 8px; }
@keyframes float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-16px) rotate(24deg); }
}

/* ---------- 16. HEADER SITUS ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: var(--line) solid var(--navy);
}
.site-head__in { display: flex; align-items: center; gap: 18px; padding-block: 13px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
/* Wordmark digambar oleh kunang.js supaya titik pada counter huruf G jatuh presisi. */
.brand__logo { display: block; height: 35px; width: auto; }
.brand__logo text { font-kerning: none; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-weight: 700; font-size: .9rem; text-decoration: none;
  padding: 8px 15px; border-radius: var(--pill);
  border: var(--line) solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.nav a:hover { background: var(--paper); border-color: var(--navy); }
.nav a[aria-current="page"] { background: var(--nyala); border-color: var(--navy); }

/* ---------- 17. FOOTER ---------- */
.site-foot {
  border-top: var(--line) solid var(--navy);
  background: var(--paper);
  padding-block: 40px;
  margin-top: 40px;
}
.site-foot__in { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.site-foot small { color: var(--dim); font-weight: 700; }

/* ---------- 18. BREADCRUMB ---------- */
.crumb { display: flex; gap: 9px; align-items: center; font-size: .84rem; font-weight: 700; color: var(--dim); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--navy); }

/* Anak .stack yang seharusnya sekecil isinya. Tanpa ini, align-items:stretch
   membuat pill/eyebrow/tierchip melar selebar kolom. */
.stack > .eyebrow,
.stack > .pill,
.stack > .tierchip,
.stack > .ribbon,
.stack > .crumb { align-self: flex-start; }

/* ---------- 19. UTIL ---------- */
.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(2.2deg); }
.mt-0 { margin-top: 0 !important; }
.muted { color: var(--dim); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 20. RESPONSIF ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --gut: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* stat tile lebih enak 2 kolom */
  .card { padding: 20px; border-radius: var(--r-md); }
  .avatar { --size: 84px; }

  /* Navigasi tidak disembunyikan, tapi digeser ke baris sendiri dan bisa digulir.
     Menyembunyikannya membuat mockup tidak bisa ditelusuri di HP. */
  .site-head__in { flex-wrap: wrap; row-gap: 10px; }
  .nav {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .brand { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   21. KOMPOSIT: komponen besar khas Kunang
   ============================================================ */

/* ---- Kartu Passport ---- */
.pcard {
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  width: 100%; max-width: 462px;
}
.pcard__top {
  display: flex; align-items: center; gap: 10px;
  background: var(--nyala);
  border-bottom: var(--line) solid var(--navy);
  padding: 11px 18px;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
}
.pcard__top > svg { width: 22px; height: 25px; flex: none; }
.pcard__id { margin-left: auto; font-variant-numeric: tabular-nums; }
.pcard__body { display: flex; gap: 17px; align-items: center; padding: 24px 22px 16px; }
.pcard__name { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.pcard__strip { display: flex; gap: 7px; padding: 4px 22px 16px; flex-wrap: wrap; }
.pcard__strip i {
  width: 27px; height: 27px; border-radius: 9px;
  border: 2.5px solid var(--navy); background: var(--c);
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; font-style: normal;
}
.pcard__foot {
  border-top: var(--line) dashed #DCCDB6;
  padding: 13px 22px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}

/* ---- Track: timeline gaya papan permainan ---- */
.track { display: flex; min-width: min-content; padding-top: 6px; }
.track__step { flex: 1 0 205px; position: relative; padding: 62px 12px 0; text-align: center; }
.track__step::before {
  content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 11px, transparent 11px 22px);
}
.track__step:first-child::before { left: 50%; }
.track__step:last-child::before  { right: 50%; }
.track__node {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c, var(--paper));
  border: var(--line) solid var(--navy);
  box-shadow: var(--sh-sm);
  display: grid; place-items: center;
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.05rem;
  z-index: 2;
}
.track__node svg { width: 30px; height: 30px; }
.track__when { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.track__what { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; font-size: 1.02rem; margin-top: 3px; }

/* ---- Ladder: tier per game ---- */
.ladder { display: flex; min-width: min-content; gap: 0; }
.ladder__step { flex: 1 0 150px; position: relative; padding: 86px 10px 0; text-align: center; }
.ladder__step::before {
  content: ""; position: absolute; top: 30px; left: 0; right: 0; height: 6px; background: var(--haze);
}
.ladder__step.is-done::before { background: var(--mint); }
/* Tier yang sedang ditempati sudah diraih: garis masuk hijau, garis keluar belum. */
.ladder__step.is-now::before {
  background: linear-gradient(90deg, var(--mint) 0 50%, var(--haze) 50% 100%);
}
.ladder__step:first-child.is-now::before { background: var(--haze); }
.ladder__step:last-child.is-now::before  { background: var(--mint); }
.ladder__step:first-child::before { left: 50%; }
.ladder__step:last-child::before  { right: 50%; }
.ladder__node {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 22px;
  background: var(--c); border: var(--line) solid var(--navy);
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: var(--sh-sm); z-index: 2;
  transition: transform .2s var(--bounce);
}
.ladder__step.is-now .ladder__node {
  transform: translateX(-50%) scale(1.18);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--navy), var(--sh-sm);
}
.ladder__step.is-next .ladder__node { opacity: .45; }
.ladder__name { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1rem; }

/* ---- Stairs: prestige menuju langit ---- */
.sky {
  position: relative;
  background: linear-gradient(#CDEBFF, #EAF7FF 60%, var(--cream));
  border: var(--line) solid var(--navy);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 40px 26px 30px;
  overflow: hidden;
}
.sky__cloud { position: absolute; opacity: .95; }
.sky__star  { position: absolute; color: var(--nyala); width: 26px; height: 26px; }
.stairs { display: flex; align-items: flex-end; justify-content: center; gap: 12px; position: relative; z-index: 2; min-width: min-content; }
.stairs__step {
  flex: 1 0 128px; max-width: 168px;
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  padding: 15px 12px; text-align: center;
  margin-bottom: calc(var(--i, 0) * 30px);
}
.stairs__step.is-now { background: var(--purple-soft); }
.stairs__step.is-far { background: var(--haze); border-style: dashed; box-shadow: none; }
.stairs__lvl { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.stairs__pt  { font-size: .74rem; font-weight: 800; letter-spacing: .06em;
               color: color-mix(in srgb, var(--navy) 76%, transparent); }

/* ---- Roster ---- */
.roster { display: flex; flex-direction: column; }
.roster li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px;
  border-bottom: 2px dashed var(--haze);
}
.roster li:last-child { border-bottom: 0; }
.roster__name { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; }
.roster__meta { font-size: .8rem; color: var(--dim); font-weight: 700; }
.roster__right { margin-left: auto; text-align: right; }
.roster li.is-past { opacity: .58; }

/* ---- Baris riwayat turnamen ---- */
.hist { display: flex; flex-direction: column; gap: 12px; }
.hist__row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--cream);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md);
  padding: 13px 17px;
}
.hist__row.is-win { background: #FFF3CE; }
.hist__name { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; }
.hist__meta { font-size: .78rem; font-weight: 700; color: var(--dim); }
.hist__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---- Scout: lembar CV ---- */
.cv {
  background: var(--paper);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  padding: clamp(26px, 4vw, 46px);
  max-width: 860px; margin-inline: auto;
}
.cv__head { display: flex; gap: 22px; align-items: center; padding-bottom: 22px; border-bottom: var(--line) solid var(--navy); }
.cv__name { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; }
.cv__sec { padding-block: 22px; border-bottom: 2px dashed var(--haze); }
.cv__sec:last-child { border-bottom: 0; padding-bottom: 0; }
.cv__lbl {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 12px;
}
.cv table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cv th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 10px 6px 0; }
.cv td { padding: 9px 10px 9px 0; border-top: 2px solid var(--haze); font-variant-numeric: tabular-nums; }

/* ---- Brand: swatch ---- */
.sw {
  display: block;                 /* <button> default inline-block: anak span tidak bisa diberi tinggi */
  border: var(--line) solid var(--navy);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden; cursor: pointer; text-align: left; width: 100%;
  transition: transform .16s var(--bounce);
}
.sw:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.sw__chip { display: block; height: 78px; background: var(--c); border-bottom: var(--line) solid var(--navy); }
.sw__meta { display: block; padding: 10px 13px; background: var(--paper); }
.sw__nm { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; }
.sw__hex { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--dim); font-weight: 500; }

/* ---- Do / Don't ---- */
.dd { border-left: 6px solid var(--c); padding-left: 15px; }

/* ---- Cetak: Scout Mode → A4 ---- */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body { background: #fff; background-image: none; }
  .site-head, .site-foot, .no-print, .confetti, .blob { display: none !important; }
  .section { padding-block: 0; }
  .cv { box-shadow: none; border: 2px solid #000; max-width: none; padding: 0; border-radius: 0; }
  .cv, .card { break-inside: avoid; }
}

/* ============================================================
   22. PENYELENGGARA & RINCIAN POIN
   Kunang tidak punya entitas komunitas. Kepercayaan menempel
   pada penyelenggara turnamen, dan bobot turnamen adalah
   mekanisme verifikasinya.
   ============================================================ */

.org {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: 3px 11px;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: var(--pill);
  white-space: nowrap;
}
.org__tick {
  display: grid; place-items: center;
  width: 14px; height: 14px; flex: none;
  border-radius: 50%; background: var(--mint);
  border: 1.5px solid var(--navy);
  font-size: .55rem; line-height: 1;
}
.org--pending { opacity: .6; }
.org--pending .org__tick { background: var(--haze); }

/* Rincian poin: append-only, tiap baris punya alasan */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th {
  text-align: left; padding: 0 0 10px;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
.ledger td {
  padding: 10px 0;
  border-top: 2px dashed var(--haze);
  font-variant-numeric: tabular-nums;
}
.ledger td:last-child { text-align: right; font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; }
.ledger tr.is-sum td {
  border-top: var(--line) solid var(--navy);
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 700; font-size: 1.05rem;
}
.ledger tr.is-total td {
  border-top: var(--line) solid var(--navy);
  font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.2rem;
}
.ledger caption {
  caption-side: top; text-align: left; padding-bottom: 14px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
