:root {
  --bg: #0D0D10;
  --panel: rgba(14, 14, 18, 0.94);
  --field: #08080B;
  --line: rgba(240, 238, 234, 0.14);
  --line-strong: rgba(240, 238, 234, 0.32);
  --text: #F0EEEA;
  --muted: #B6B1AA;
  /* MCR: merah tua (poster & seatplan Live in Jakarta) di atas hitam; teks putih tulang */
  --accent: #E8343C;        /* yang terpilih, fokus, aksen kecil */
  --accent-ink: #FFFFFF;
  --cta: #C8101E;           /* tombol utama */
  --cta-hover: #E21E2C;
  --cta-ink: #FFFFFF;
  --warn: #F2A7AB;
  --warn-bg: rgba(179, 18, 31, 0.16);
  --danger: #FFA3A3;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
  cursor: grab;
}
#scene:active { cursor: grabbing; }

#panel {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 352px;
  max-height: calc(100vh - 16px - 52px);
  max-height: calc(100dvh - 16px - 52px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 18px;
}

/* scrollbar tipis gelap (panel & daftar lagu), bukan scrollbar putih bawaan Windows */
#panel, .music-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 241, 247, 0.22) transparent;
}
#panel::-webkit-scrollbar, .music-list::-webkit-scrollbar { width: 8px; }
#panel::-webkit-scrollbar-track, .music-list::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
#panel::-webkit-scrollbar-thumb, .music-list::-webkit-scrollbar-thumb {
  background: rgba(238, 241, 247, 0.22);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}
#panel::-webkit-scrollbar-thumb:hover, .music-list::-webkit-scrollbar-thumb:hover { background-color: rgba(238, 241, 247, 0.4); }
#panel::-webkit-scrollbar-button, .music-list::-webkit-scrollbar-button { display: none; height: 0; }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 0.95;
}
.panel-head .sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

/* jumlah pengunjung (dari /api/visits) */
.visits {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.visits[hidden] { display: none; }
.panel-head { flex-wrap: wrap; }
.panel-head > div:first-child { flex: 1 1 0; min-width: 0; }
.panel-head > .ghost { flex-shrink: 0; }
.visits-row { flex-basis: 100%; }
.visits span { white-space: nowrap; }
.visits svg { color: var(--accent); flex-shrink: 0; }
.visits strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* teks khusus pembaca layar */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Saweria: pil kecil di header (kelihatan juga waktu panel diciutkan) + kartu ajakan di panel.
   Satu-satunya warna hangat di panel, warnanya ngikut oranye Saweria. */
.visits-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.visits-row .visits { margin: 0; }
.sawer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border: 1px solid rgba(255, 178, 64, 0.45);
  border-radius: 999px;
  background: rgba(255, 178, 64, 0.08);
  color: #FFC861;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.sawer-pill:hover { background: rgba(255, 178, 64, 0.18); border-color: rgba(255, 178, 64, 0.8); }
.sawer-pill:active { transform: scale(0.96); }
.sawer-pill svg { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sawer-pill:hover svg { transform: rotate(-12deg) scale(1.1); }

.sawer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'pick title go' 'pick desc desc';
  align-items: center;
  gap: 4px 10px;
  padding: 12px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(255, 170, 60, 0.2), transparent 55%) padding-box,
    linear-gradient(#0D1326, #0D1326) padding-box,
    linear-gradient(115deg, #FFD25A, #FF9A3D 50%, #FF5E7A) border-box;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
}
/* kilau yang lewat sesekali (dan waktu disorot) */
.sawer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 220, 160, 0.16) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: sawer-sheen 7s ease-in-out 2.5s infinite;
  pointer-events: none;
}
@keyframes sawer-sheen {
  0%, 82% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
.sawer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(255, 140, 60, 0.7);
}
.sawer:active { transform: translateY(0) scale(0.985); transition-duration: 80ms; }
.sawer:focus-visible { outline: 2px solid #FFC861; outline-offset: 2px; }
.sawer-pick {
  grid-area: pick;
  align-self: center;
  display: grid;
  filter: drop-shadow(0 3px 8px rgba(255, 130, 60, 0.45));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sawer:hover .sawer-pick { transform: rotate(-10deg) scale(1.06); }
.sawer-text { display: contents; }
.sawer-text strong {
  grid-area: title;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.sawer-text span { grid-area: desc; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sawer-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px 6px 11px;
  border-radius: 999px;
  background: linear-gradient(115deg, #FFD25A, #FF9A3D);
  color: #1A1206;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.sawer-go svg { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sawer:hover .sawer-go svg { transform: translate(2px, -2px); }
/* link Saweria di label pojok kiri bawah (labelnya sendiri nggak bisa diklik, cuma link ini) */
.sim-sawer {
  pointer-events: auto;
  color: #FFC861;
  font-weight: 700;
  text-decoration: none;
}
.sim-sawer:hover { color: #FFD98F; text-decoration: underline; text-underline-offset: 2px; }
.sim-sawer:focus-visible { outline: 2px solid #FFC861; outline-offset: 2px; border-radius: 3px; }

/* ajakan Saweria di HUD POV: langsung muncul begitu masuk POV, tiap kali situs dibuka (lihat app.js) */
.sawer-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 6px 8px 10px;
  border: 1px solid rgba(255, 178, 64, 0.5);
  border-radius: 10px;
  background:
    radial-gradient(120% 200% at 0% 50%, rgba(255, 170, 60, 0.2), transparent 60%),
    rgba(255, 178, 64, 0.06);
  animation: sawer-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sawer-nudge[hidden] { display: none; }
@keyframes sawer-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.sawer-nudge > svg { flex-shrink: 0; color: #FF9A3D; }
.sawer-nudge p { margin: 0; flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.sawer-nudge p strong { color: var(--text); }
.sawer-nudge-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px 6px 11px;
  border-radius: 999px;
  background: linear-gradient(115deg, #FFD25A, #FF9A3D);
  color: #1A1206;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sawer-nudge-go:hover { transform: translateY(-1px); }
.sawer-nudge-go:active { transform: scale(0.96); }
.sawer-nudge-x {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.sawer-nudge-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

@media (prefers-reduced-motion: reduce) {
  .sawer::after { animation: none; }
  .sawer-nudge { animation: none; }
}
/* 29 Okt 2026 ("support dan supporter hilangin di semua situs kecuali bts jakarta"): link Saweria di HTML hidden dari
   awal; display grid/inline-flex di atas menimpa [hidden] bawaan browser, jadi dipaksa di sini. Nyala lagi:
   CONFIG.support = true di app.js (atribut hidden-nya dilepas di sana) */
.sim-sawer[hidden], .sawer-pill[hidden], .sawer[hidden], .sawer-nudge[hidden] { display: none !important; }

#panelBody {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#panel.collapsed #panelBody { display: none; }

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ghost {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.ghost:hover { color: var(--text); border-color: var(--line-strong); }

.cat-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cat-title { margin: 0; color: var(--muted); font-size: 14px; }
.seg.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.three button { min-height: 44px; font-size: 15px; }
.cat-note { margin: 0; min-height: 18px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.finder .fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.finder label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.finder input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}
.finder input::placeholder { color: #5E6780; }

.error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
}

.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  transition: background-color 120ms ease, transform 120ms ease;
}
.primary:hover { background: var(--cta-hover); }
.primary:active { transform: scale(0.98); }

.seat-btn {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  transition: background-color 120ms ease, transform 120ms ease;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}
.seat-btn:hover { background: rgba(255, 255, 255, 0.08); }
.seat-btn:active { transform: scale(0.98); }

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
}
.card .mine {
  margin: -2px 0 10px;
  color: var(--accent);
  font-size: 15px;
}
.card dl {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.35;
}
.card dl > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}
.card dt { color: var(--muted); }
.card .sub-dd { color: var(--muted); font-size: 13px; }
.card dd { margin: 0; }

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.views button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  font-size: 14px;
}
.views button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

/* tab jenis tiket */
.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tabs button {
  min-height: 44px;
  border: 0;
  background: var(--field);
  color: var(--muted);
  font-size: 15px;
}
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.finder[hidden], .fest-form[hidden] { display: none; }

.fest-form { display: flex; flex-direction: column; gap: 10px; }
.mini-title { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.grid3 button {
  min-height: 42px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  font-size: 13px;
  line-height: 1.2;
}
.grid3 button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.fest-form .hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.height-field { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 14px; }
.height-row { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; }
.height-row input {
  width: 96px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.height-row input::placeholder { color: #5E6780; }
.height-row input[aria-invalid="true"] { border-color: var(--danger); }

.card .warn-line {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  line-height: 1.4;
}
.card .lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.card .lead strong { color: var(--text); }
.card .povgo { margin-top: 14px; }

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  font-size: 15px;
  color: var(--text);
}
.music-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

.card .hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* tandai kursi: nama pengunjung di kursi + cari teman */
.names {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.names-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.names-title + .names-list { margin-bottom: 0; }
.names .names-title:not(:first-child) { margin-top: 12px; }
.names-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.names-form input, .friends input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.names-form input::placeholder, .friends input::placeholder { color: #5E6780; }
.names-form .primary { width: auto; min-height: 44px; margin: 0; padding: 0 16px; font-size: 19px; }
.names-form .primary:disabled { opacity: 0.6; cursor: default; }
.names .fine, .friends .fine { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.names-me { margin: 0; font-size: 15px; line-height: 1.4; }
.names-me strong { color: var(--accent); }
.names-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.names-btns .ghost { min-height: 36px; padding: 6px 10px; }
.names-msg {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 95, 162, 0.12);
  color: #FFB3D3;
  font-size: 13.5px;
  line-height: 1.4;
}
.names-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.names-list li {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.name-go {
  overflow: hidden;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(255, 95, 162, 0.45);
  border-radius: 999px;
  background: rgba(255, 95, 162, 0.12);
  color: #FFD1E4;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name-go:hover { background: rgba(255, 95, 162, 0.22); }
.name-go em { font-style: normal; font-weight: 400; color: var(--muted); }
.name-where { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.name-flag {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6F7891;
  font-size: 14px;
}
.name-flag:hover { color: var(--danger); background: rgba(255, 163, 163, 0.08); }
.names-empty { color: var(--muted); font-size: 14px; }
.friends h2 { margin: 0 0 4px; font-size: 26px; }
.friends #friendsCount { margin: 0 0 8px; }
.friends .names-list { margin-top: 8px; }
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
}
.toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.legend h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}
.legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.legend li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
}
.sw {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.update-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.update-note strong { color: var(--accent); }

.note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#tooltip {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  transform: translate(14px, 14px);
  max-width: 240px;
  padding: 8px 10px;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
#tooltip strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}
/* kotak warna kategori (warna seatplan) di tooltip denah */
.tip-sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.tip-fine { color: var(--muted); font-size: 12px; }
.tip-rv { font-weight: 700; color: var(--accent); }
/* restricted view (CAT 6 & 7, seatplan resmi): arsiran miring, sama dengan arsiran di denah. Warnanya dari
   background-color inline */
.rv { background-image: repeating-linear-gradient(135deg, rgba(12, 12, 15, 0.62) 0 2px, transparent 2px 5px); }
/* titik warna kategori di tombol kategori & blok floor, sama dengan warna di denah */
.cat-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}
[aria-pressed="true"] > .cat-dot { box-shadow: 0 0 0 1.5px var(--accent-ink); }

/* Pratinjau "dari kursi": kotak transparan, isinya digambar WebGL di belakangnya */
.pip {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 340px;
  height: 200px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(10, 15, 30, 0.6);
}
.pip[hidden] { display: none; }
.pip-open {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  text-align: left;
}
.pip-open:hover .pip-tag { background: var(--accent); color: var(--accent-ink); }
.pip-tag, .pip-where {
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 15, 30, 0.88);
  font-size: 13px;
  line-height: 1.3;
}
.pip-tag {
  margin-left: 8px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.pip-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.88);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.pip-close:hover { color: var(--text); }

/* HUD saat mode "Dari kursi" */
.pov-hud {
  position: fixed;
  left: calc(16px + 352px + 16px);
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pov-hud[hidden] { display: none; }
#panel.collapsed ~ .pov-hud { left: 16px; bottom: 48px; }
.pov-btns { display: flex; gap: 6px; flex-shrink: 0; }
.pov-btns [aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.pov-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pov-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
}
.pov-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.pov-ctrls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.zoom {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}
.zoom output { color: var(--text); font-variant-numeric: tabular-nums; }
.zoom input { width: 100%; min-height: 28px; accent-color: var(--accent); }
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.seg[hidden] { display: none; }
.seg button {
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  background: var(--field);
  font-size: 14px;
  color: var(--muted);
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pov-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* panah di tepi layar ke arah posisi kamu (POV dari panggung, kalau labelnya di luar layar) */
.you-arrow {
  position: fixed;
  z-index: 4;
  margin: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.you-arrow[hidden] { display: none; }
.you-arrow-ic { display: inline-block; font-size: 18px; line-height: 1; }

.seg.wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.wide button { min-height: 44px; font-size: 15px; }
.pip-close.static { position: static; }

/* label "simulasi": selalu di kiri bawah, di semua mode (ikut ke screenshot yang dibagikan).
   Panel dibuat berhenti di atasnya supaya nggak ketutup. */
.sim-badge {
  position: fixed;
  left: 16px;
  bottom: 10px;
  z-index: 9;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
}
/* mode "sembunyikan semua": cuma label pojok kiri bawah, bar musik, dan tombol "Tampilkan" yang tersisa */
body.ui-hidden #panel,
body.ui-hidden .pov-hud,
body.ui-hidden .pip,
body.ui-hidden .you-arrow,
body.ui-hidden #tooltip { display: none !important; }
.show-ui {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(10, 15, 30, 0.85);
  color: var(--text);
  font-size: 14px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.show-ui:hover, .show-ui:focus-visible { opacity: 1; }
.show-ui[hidden] { display: none; }
.show-ui svg { color: var(--accent); }
.pov-btns .icon-btn { display: inline-flex; align-items: center; justify-content: center; padding-left: 10px; padding-right: 10px; }

/* kredit pembuat, ikut di label pojok kiri bawah */
.sim-badge .credit { color: var(--accent); font-weight: 700; }

/* pemutar musik: bar mini. Pemutar YouTube-nya tetap jalan tapi nggak ditampilkan (cuma audio),
   kecuali browser nahan suara otomatis dan user perlu ngetuk tombol putarnya. */
.music {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 292px;
  padding: 5px 5px 5px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  z-index: 6;
}
.music[hidden] { display: none; }
.music-bar { display: flex; align-items: center; gap: 2px; }
.music-title {
  flex: 1;
  min-width: 0;
  margin: 0 4px 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--accent);
}
/* judul lagu = tombol buka daftar lagu */
.music-pick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
  padding: 4px 4px 4px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}
.music-pick:hover { background: rgba(255, 255, 255, 0.07); }
.music-pick .chev { flex-shrink: 0; color: var(--muted); transition: transform 0.15s; }
.music-pick[aria-expanded="true"] .chev { transform: rotate(180deg); }
.music-list {
  list-style: none;
  margin: 6px 7px 4px 0;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
  max-height: min(300px, 40vh);
  overflow-y: auto;
}
.music-list[hidden] { display: none; }
.music-list button {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
}
.music-list button:hover { background: rgba(255, 255, 255, 0.07); }
.music-list button[aria-current="true"] { color: var(--accent); font-weight: 700; }
.music-list button[aria-current="true"]::before { content: "▶ "; font-size: 11px; }
.mbtn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.mbtn[aria-expanded="true"] { color: var(--accent); }
.mbtn .ic-play { display: none; }
.music.paused .mbtn .ic-play { display: block; }
.music.paused .mbtn .ic-pause { display: none; }
/* equalizer kecil: gerak waktu lagu jalan */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; flex-shrink: 0; }
.eq i { display: block; width: 3px; height: 40%; border-radius: 1px; background: var(--accent); }
.music.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.music.playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.music.playing .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.vol { margin: 6px 8px 6px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.vol[hidden] { display: none; }
.vol input { flex: 1; accent-color: var(--accent); }
.music-hint { margin: 6px 8px 4px 0; color: var(--accent); font-size: 13px; line-height: 1.4; }
.music-hint[hidden] { display: none; }
.player {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
/* suara diblok browser: tampilkan pemutarnya supaya bisa diketuk.
   opacity < 1 supaya video nggak dijadikan "overlay" GPU (penyebab kotak gelap di kanvas). */
.music.needs-tap .player {
  position: relative;
  width: auto;
  height: 150px;
  margin: 0 7px 6px 0;
  opacity: 0.99;
  pointer-events: auto;
  z-index: auto;
  border-radius: 10px;
}

/* peringatan awal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 16, 0.72);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(460px, 100%);
  padding: 22px 22px 20px;
  background: #131317;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
}
.modal-card h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  color: var(--accent);
}
.modal-card ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }

.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  margin: 0;
  color: var(--text);
}

@media (max-width: 720px) {
  #panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: 40vh;
    max-height: 40dvh;
    border-radius: 16px 16px 0 0;
    padding: 12px 16px 12px;
  }
  /* HP: panel ringkas (judul 1 baris) supaya stadion dapat ruang lebih */
  .panel-head { align-items: center; gap: 8px; }
  .panel-head h1 { font-size: 24px; line-height: 1; }
  .panel-head .sub { font-size: 13px; margin-top: 3px; }
  .panel-head .sub-long { display: none; }
  .panel-head .ghost { min-height: 38px; padding: 6px 10px; font-size: 14px; }
  #panelBody { margin-top: 12px; gap: 12px; }
  #tooltip { display: none; }
  .pip {
    top: 12px;
    right: 12px;
    bottom: auto;
    width: min(40vw, 168px);
    height: 100px;
  }
  .pip-tag { font-size: 13px; }
  .pip-where { display: none; }
  .pov-hud,
  #panel.collapsed ~ .pov-hud {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    padding: 10px 12px;
  }
  .pov-title { font-size: 18px; }
  .pov-meta { font-size: 12px; margin-top: 2px; }
  .pov-ctrls { margin-top: 6px; gap: 6px 8px; flex-wrap: wrap; }
  .zoom { flex: 1 1 130px; flex-direction: row; align-items: center; gap: 8px; }
  .zoom span { white-space: nowrap; }
  .seg button { min-height: 36px; padding: 4px 10px; }
  .pov-btns .ghost { min-height: 36px; padding: 6px 10px; }
  .pov-hint { margin-top: 4px; font-size: 11px; }
  /* peringatan simulasi di HP cukup label di kiri bawah */
  .pov-hint { display: none; }
  .sim-badge { left: 12px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); padding: 4px 8px; font-size: 12px; }
  .music { top: 12px; left: 12px; right: 12px; width: auto; padding-left: 10px; }
  .show-ui { top: 12px; left: 12px; }
  /* mode sembunyikan: bar musik ke kanan supaya nggak nabrak tombol "Tampilkan" */
  body.ui-hidden .music { left: auto; width: 240px; }
  body.pip-on .music { right: calc(12px + min(40vw, 168px) + 8px); }
  body.pip-on .music .mbtn#musicMore, body.pip-on .music .eq { display: none; }
  /* di POV panel tertutup nempel di bawah; bar musik di atasnya (--panel-space diisi app.js) */
  body.pov .music { top: auto; bottom: calc(var(--panel-space, 110px) + 8px); left: auto; right: 12px; width: 240px; }
  .music-title { font-size: 15px; margin-left: 6px; }
  .mbtn { width: 32px; height: 32px; }
  .sawer-nudge { margin-top: 8px; gap: 8px; padding: 6px 4px 6px 8px; }
  .sawer-nudge p { font-size: 12px; }
}
/* HP sempit: label pojok cukup "♥" biar nggak kepotong */
@media (max-width: 380px) {
  .sim-sawer-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .music.playing .eq i { animation: none; height: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

/* 4 kategori floor (2 x 2) & 11 kategori tribun (grid 4 kolom) */
.seg.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.two button { min-height: 44px; font-size: 15px; }
.seg.two button:nth-child(3) { border-left: 0; }
.seg.two button:nth-child(n+3) { border-top: 1px solid var(--line); }
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.grid4 button {
  min-height: 42px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  font-size: 15px;
  font-weight: 700;
}
.grid4 button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* MCR: 9 kategori (CAT 1–3 x Center/Right/Left) = 3 kolom */
.grid4.cat3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4.cat3 button { font-size: 14px; line-height: 1.15; }

/* 20 Okt 2026: pop up ucapan terima kasih (#thxPop, app.js showThx), sama dengan situs BTS/BIGBANG luar negeri
   (D:\bts sg 3d): kartu di tengah, sekeliling diburamkan & nggak bisa diklik, tanpa tombol tutup, sisa detik di cincin
   pojok kanan atas + bar bawah (digerakkan app.js). Layar mini = jumlah pengunjung situs ini, angkanya naik dari 0 */
.sup-pop {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  touch-action: none;
  animation: thx-fade 320ms ease-out;
  transition: opacity 240ms ease;
}
.sup-pop[hidden] { display: none; }
.sup-pop.out { opacity: 0; }
@keyframes thx-fade { from { opacity: 0; } to { opacity: 1; } }
.sup-pop-card {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 22px 26px;
  text-align: center;
  touch-action: pan-y;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(150, 90, 255, 0.26), transparent 62%),
    radial-gradient(100% 45% at 50% 100%, rgba(255, 150, 60, 0.12), transparent 70%),
    #131317;
  border: 1px solid rgba(196, 160, 255, 0.38);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: sup-pop-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sup-pop-card:focus { outline: none; }
@keyframes sup-pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.sup-time { position: absolute; top: 24px; right: 28px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(10, 6, 24, 0.72); }
.sup-time svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sup-time circle { fill: none; stroke-width: 3; }
.thx-ring-bg { stroke: rgba(255, 255, 255, 0.18); }
.thx-ring { stroke: #FFB24A; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.sup-time b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
/* layar mini = tiruan layar LED panggung */
.sp-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 16 / 7;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(110deg, #1A0B33 0%, #3A1670 30%, #6A2CA8 50%, #3A1670 70%, #1A0B33 100%);
  background-size: 240% 100%;
  box-shadow: 0 0 0 1px rgba(233, 216, 255, 0.16), 0 14px 40px -14px rgba(150, 90, 255, 0.8);
  animation: sp-pulse 4.5s ease-in-out infinite alternate;
}
/* kelip bintang kecil, lalu kisi LED */
.sp-screen::before,
.sp-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sp-screen::before {
  background-image:
    radial-gradient(1.5px 1.5px at 9% 24%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 78%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 63% 86%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 91% 64%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 5% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 8%, #fff, transparent);
  opacity: 0.55;
  animation: sp-twinkle 1.8s ease-in-out infinite alternate;
}
.sp-screen::after {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}
@keyframes sp-pulse { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes sp-twinkle { from { opacity: 0.25; } to { opacity: 0.75; } }
.sp-thanks {
  position: relative;
  padding-left: 0.42em;
  color: #E9D8FF;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.42em;
  line-height: 1;
}
.thx-n {
  position: relative;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 68px;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(190, 140, 255, 0.95), 0 0 3px rgba(255, 255, 255, 0.6);
}
.sp-sub {
  position: relative;
  color: #D9C2FF;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}
.sp-eyebrow { margin: 0 0 6px; color: #CDB8FF; font-size: 16px; font-weight: 700; line-height: 1.35; }
.sup-pop-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.02;
  text-wrap: balance;
}
.sp-lead { margin: 0 auto 10px; max-width: 36ch; color: #D8DEEB; font-size: 16.5px; line-height: 1.45; }
.thx-ask { margin: 0 auto 16px; max-width: 40ch; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.sp-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-tips.one { grid-template-columns: 1fr; }
.sp-tip[hidden] { display: none; }
.sp-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#141A2E, #141A2E) padding-box,
    linear-gradient(115deg, #FFD25A, #FF9A3D 50%, #FF5E7A) border-box;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease, filter 160ms ease;
}
.sp-tip.main {
  background: linear-gradient(115deg, #FFD25A, #FF9A3D) padding-box, linear-gradient(115deg, #FFD25A, #FF9A3D) border-box;
  color: #1A1206;
}
.sp-tip-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.sp-tip strong { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; white-space: nowrap; }
.sp-tip-t span { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.sp-tip.main .sp-tip-t span { color: rgba(26, 18, 6, 0.72); }
.sp-tip svg { flex-shrink: 0; }
.sp-tip:focus-visible { outline: 2px solid #FFC861; outline-offset: 2px; }
.sp-tip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .sp-tip:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(255, 140, 60, 0.75); }
  .sp-tip.main:hover { filter: brightness(1.06); }
}
.sp-fine { margin: 12px 0 0; color: rgba(174, 182, 200, 0.75); font-size: 13px; line-height: 1.4; }
/* sisa waktu tampil */
.sup-pop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 178, 64, 0.15); }
.sup-pop-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #FFD25A, #FF9A3D);
  transform-origin: left;
}
/* HP: tombol tip bertumpuk selebar kartu */
@media (max-width: 400px) {
  .sup-pop-card { padding: 14px 16px 22px; }
  .sup-pop-card h2 { font-size: 34px; }
  .sp-lead { font-size: 15.5px; }
  .sp-tips { grid-template-columns: 1fr; }
  .thx-n { font-size: 56px; }
  .thx-ask { font-size: 13.5px; margin-bottom: 14px; }
}
/* HP pendek: layar mini lebih pipih biar kartu muat tanpa digulir */
@media (max-height: 740px) {
  .thx-screen { aspect-ratio: 16 / 5.6; margin-bottom: 12px; }
  .thx-n { font-size: 52px; }
  .thx-pop h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .sup-pop, .sup-pop-card, .sp-screen, .sp-screen::before { animation: none; }
}
/* BIGBANG: layar mini kuning-emas (lightstick mahkota, "lautan kuning") */
.thx-pop.gold .sup-pop-card {
  border-color: rgba(255, 214, 102, 0.38);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 196, 40, 0.2), transparent 62%),
    radial-gradient(100% 45% at 50% 100%, rgba(255, 150, 60, 0.12), transparent 70%),
    #131317;
}
.thx-pop.gold .thx-screen {
  background: linear-gradient(110deg, #261600 0%, #634400 30%, #B38400 50%, #634400 70%, #261600 100%);
  background-size: 240% 100%;
  box-shadow: 0 0 0 1px rgba(255, 228, 150, 0.2), 0 14px 40px -14px rgba(255, 196, 40, 0.75);
}
.thx-pop.gold .sp-thanks, .thx-pop.gold .sp-sub { color: #FFF0BF; }
.thx-pop.gold .thx-n { text-shadow: 0 0 24px rgba(255, 200, 50, 0.95), 0 0 3px rgba(255, 255, 255, 0.6); }
.thx-pop.gold .sp-eyebrow { color: #FFE08A; }

/* 22 Okt 2026: pop up panduan Lynk.id (#guidePop, CONFIG.guidePop), sama dengan situs BIGBANG Manila. Kerangka, cincin detik
   & bar sama dengan #thxPop (nggak bisa di-skip); warna emas, gambar halaman panduan menggantikan layar mini */
.guide-pop .sup-pop-card {
  border-color: rgba(255, 214, 102, 0.38);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 196, 40, 0.2), transparent 62%),
    radial-gradient(100% 45% at 50% 100%, rgba(255, 150, 60, 0.12), transparent 70%),
    #131317;
}
.gp-cover { display: block; width: 100%; height: auto; aspect-ratio: 800 / 350; margin: 0 0 16px; border-radius: 14px; background: #1A1206; box-shadow: 0 0 0 1px rgba(255, 228, 150, 0.2), 0 14px 40px -14px rgba(255, 196, 40, 0.6); }
.guide-pop .sp-eyebrow { color: #FFE08A; }
.guide-pop .sp-lead { margin-bottom: 12px; color: #D8DEEB; }
.gp-pts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.gp-pts li { padding: 5px 10px; border: 1px solid rgba(255, 214, 102, 0.3); border-radius: 999px; background: rgba(255, 214, 102, 0.08); color: #FFF0BF; font-size: 13px; font-weight: 600; line-height: 1.2; }
@media (max-width: 400px) {
  .gp-pts li { font-size: 12px; padding: 4px 9px; }
}
/* HP pendek: gambar lebih pipih biar kartu muat tanpa digulir */
@media (max-height: 740px) {
  .gp-cover { aspect-ratio: 16 / 5.4; object-fit: cover; margin-bottom: 12px; }
  .guide-pop h2 { font-size: 30px; }
  .guide-pop .sp-lead { font-size: 14.5px; }
  .gp-pts { margin-bottom: 12px; }
}

/* kuota pengguna Tiket Simulator (#kuota, app.js kuotaSet; sama dengan situs DAY OFF): tampil selama
   gerbang nyala, emas seperti tombol beli; kuota penuh = merah */
.kuota {
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border: 1px solid rgba(255, 200, 97, 0.45);
  border-radius: 12px;
  background: rgba(255, 200, 97, 0.1);
  color: #F2DDB6;
  font-size: 13px;
  line-height: 1.35;
}
.kuota[hidden] { display: none; }
/* 9 Nov 2026, pemilik: "akses dibatasi sekian pengguna hapus aja ternyata mereka ngira bener-bener gk bisa liat dari situ. cukup tulisan itu aja": tulisan batasnya disembunyikan, yang tampil cuma pesan kalau kuota penuh. Sistem kuotanya tetap jalan. */
.kuota:not(.full) { display: none; }
.kuota svg { flex: none; margin-top: 1px; color: #FFC861; }
.kuota strong { color: #FFE2B0; }
.kuota.full { border-color: rgba(255, 120, 120, 0.5); background: rgba(255, 90, 90, 0.12); color: #FFD0D0; }
.kuota.full svg, .kuota.full strong { color: #FFB3B3; }

/* 2 Nov 2026: gerbang Tiket Simulator (#tkGate, app.js tiketShow; pemilik situs: "siapin tiket dan asset lynkid buat bigbang
   jakarta"). Mesin & susunan sama dengan gerbang situs DAY OFF (kyungsoo-3d: Lynk.id + email, kuota, harga sementara), warnanya
   XX : COSMOS: kartu hitam bersorot lampu emas dari atas, tiket = badan ungu kosmos bertekstur guilloche + bintik bintang +
   sobekan (stub) dengan stiker hologram 360°, judul COSMOS foil emas, tombol beli emas. Lapisan cahaya: .tk-foil (pelangi
   hologram), .tk-glare (pantulan lampu), .tk-sheen (kilau lewat tiap ±5 dtk). Miring 3D & posisi cahaya dari app.js
   (tiketTiltFrame: --rx --ry derajat, --mx --my persen, --px --py -1..1). Isi kartu masuk bergiliran (tk-rise).
   .scan = sinar pindai, .ok = cap TIKET VALID, .bad = tiket goyang. Bisa ditutup (×, Esc, klik di luar kartu) */
.tk-wrap {
  --tk-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 5, 10, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  animation: tk-fade 240ms ease-out;
  transition: opacity 200ms ease;
}
.tk-wrap[hidden] { display: none; }
.tk-wrap.out { opacity: 0; }
@keyframes tk-fade { from { opacity: 0; } }
.tk-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 24px 18px;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(75% 30% at 50% -2%, rgba(255, 196, 64, 0.26), transparent 74%),
    radial-gradient(60% 24% at 50% 102%, rgba(130, 100, 255, 0.16), transparent 74%),
    #0A0B12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 80px rgba(0, 0, 0, 0.65);
  animation: tk-in 380ms var(--tk-ease);
}
.tk-card:focus { outline: none; }
@keyframes tk-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
/* 2 sorot lampu panggung dari atas, memudar ke bawah */
.tk-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% -6%, transparent 0deg 13deg, rgba(255, 240, 205, 0.07) 18deg, transparent 24deg 336deg, rgba(255, 240, 205, 0.07) 342deg, transparent 347deg);
  -webkit-mask: linear-gradient(#000, transparent 85%);
  mask: linear-gradient(#000, transparent 85%);
}
/* butiran halus biar warnanya nggak rata kayak gambar komputer */
.tk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tk-card > :not(.tk-x) { position: relative; z-index: 1; animation: tk-rise 460ms var(--tk-ease) both; }
.tk-card > :nth-child(3) { animation-delay: 50ms; }
.tk-card > :nth-child(4) { animation-delay: 90ms; }
.tk-card > :nth-child(5) { animation-delay: 120ms; }
.tk-card > :nth-child(n+6) { animation-delay: 150ms; }
@keyframes tk-rise { from { opacity: 0; transform: translateY(10px); } }
.tk-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 241, 247, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--tk-ease);
}
.tk-x:active { transform: scale(0.94); }
.tk-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .tk-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
}

/* ---- tiket */
.tk-tix {
  margin: 32px 0 30px;   /* atas 32: tiket mulai di bawah tombol × */
  perspective: 1000px;
  touch-action: pan-y;   /* geser jari ke samping di atas tiket = miringin tiket, ke atas-bawah tetap gulir */
  filter: drop-shadow(0 18px 26px rgba(255, 190, 60, 0.26)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.tk-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -20px;
  z-index: -1;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 80, 0.42), transparent);
  filter: blur(6px);
}
.tk-ticket {
  --stub: 112px;
  --notch: 12px;
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --px: 0;
  --py: 0;
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  color: #F6F2FF;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  background:
    repeating-radial-gradient(circle at 16% 135%, transparent 0 6px, rgba(255, 226, 160, 0.06) 6px 7px),
    repeating-radial-gradient(circle at 92% -40%, transparent 0 9px, rgba(255, 226, 160, 0.04) 9px 10px),
    radial-gradient(1px 1px at 22% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 61% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 78% 72%, rgba(255, 240, 200, 0.6), transparent),
    linear-gradient(125deg, #05050C 0%, #121230 36%, #2C2358 70%, #4C3C86 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.tk-card.bad .tk-ticket { animation: tk-shake 360ms ease; }
@keyframes tk-shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.tk-main { flex: 1 1 auto; min-width: 0; display: grid; align-content: center; gap: 3px; padding: 16px 14px 15px 20px; }
.tk-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(240, 234, 255, 0.72);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tk-no { color: rgba(240, 234, 255, 0.42); letter-spacing: 0.08em; }
.tk-name {
  margin: 4px 0 1px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 48px;
  line-height: 0.86;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, #9C7A35 0%, #F8E7A8 22%, #C99B45 40%, #FFF6D0 52%, #B98B3A 68%, #F3D98C 86%, #A47E36 100%);
  background-size: 240% 100%;
  background-position: var(--mx) 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
}
.tk-name small { margin-right: 0.12em; font-size: 0.5em; letter-spacing: 0.06em; vertical-align: 0.42em; }
.tk-sub { color: #EFE9FF; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tk-meta { display: flex; gap: 18px; margin: 8px 0 1px; }
.tk-meta div { display: grid; }
.tk-meta dt { color: rgba(240, 234, 255, 0.55); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tk-meta dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.05; }
.tk-venue { margin-top: 2px; color: rgba(240, 234, 255, 0.6); font-size: 11.5px; line-height: 1.3; }
.tk-stub {
  flex: 0 0 var(--stub);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  border-left: 2px dashed rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.32));
}
.tk-admit { color: rgba(240, 234, 255, 0.75); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
/* stiker hologram: warna pelangi muter ikut arah miring tiket */
.tk-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(from calc(var(--px) * 120deg + 20deg), #FF9CC0, #FFD978, #A6FFC4, #86E4FF, #BDA4FF, #FF9CC0);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.tk-seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.tk-seal b { position: relative; color: rgba(40, 12, 46, 0.85); font-family: var(--display); font-weight: 800; font-size: 16px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.tk-pass-l { color: #FFF8E6; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 0.95; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.tk-code {
  width: 78px;
  height: 20px;
  opacity: 0.85;
  background: repeating-linear-gradient(90deg, #F6F2FF 0 2px, transparent 2px 4px, #F6F2FF 4px 5px, transparent 5px 8px,
    #F6F2FF 8px 11px, transparent 11px 12px, #F6F2FF 12px 13px, transparent 13px 16px);
}
/* lapisan cahaya */
.tk-foil, .tk-glare, .tk-sheen { position: absolute; inset: 0; pointer-events: none; }
.tk-foil {
  opacity: 0.2;
  mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 120, 170, 0.6) 32%, rgba(255, 230, 140, 0.6) 41%, rgba(120, 255, 200, 0.55) 50%, rgba(120, 200, 255, 0.6) 59%, rgba(190, 140, 255, 0.6) 68%, transparent 82%);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
}
.tk-glare {
  mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 26%, transparent 56%);
}
.tk-sheen { overflow: hidden; }
.tk-sheen::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent);
  mix-blend-mode: overlay;
  transform: translateX(-140%) skewX(-14deg);
  animation: tk-sheen 5.4s cubic-bezier(0.77, 0, 0.175, 1) 0.9s infinite;
}
@keyframes tk-sheen {
  0% { transform: translateX(-140%) skewX(-14deg); }
  24%, 100% { transform: translateX(460%) skewX(-14deg); }
}
.tk-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 4%;
  height: 2px;
  background: #FFD24A;
  box-shadow: 0 0 12px 3px rgba(255, 210, 74, 0.85);
  opacity: 0;
  pointer-events: none;
}
.tk-card.scan .tk-laser { opacity: 1; animation: tk-scan 0.9s ease-in-out infinite alternate; }
@keyframes tk-scan { from { top: 4%; } to { top: 94%; } }
.tk-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 4px 14px;
  border: 3px solid #5CF2A0;
  border-radius: 10px;
  background: rgba(6, 28, 18, 0.78);
  color: #5CF2A0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.6);
  pointer-events: none;
}
.tk-card.ok .tk-stamp {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.3, 1.4), opacity 160ms ease;
}


/* ---- penawaran */
.tk-card h2 {
  margin: 0 0 6px;
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: 800;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.tk-lead { margin: 0; color: #AEB6C8; font-size: 14.5px; line-height: 1.45; }
.tk-buy {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #1B1206;
  text-decoration: none;
  background: linear-gradient(100deg, #C3923A 0%, #F6DD8E 30%, #E3B759 52%, #FFF0C0 66%, #D3A447 84%, #EFCB71 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(120, 80, 20, 0.35), 0 12px 28px -12px rgba(240, 190, 80, 0.6);
  transition: transform 160ms var(--tk-ease), box-shadow 200ms ease, filter 160ms ease;
}
.tk-buy::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7) 50%, transparent);
  transform: translateX(-160%) skewX(-14deg);
  animation: tk-sheen 5.4s cubic-bezier(0.77, 0, 0.175, 1) 3.6s infinite;
  pointer-events: none;
}
.tk-buy-l { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; }
.tk-buy svg { flex: none; margin-left: auto; }
.tk-buy:active { transform: scale(0.97); }
.tk-buy:focus-visible { outline: 2px solid #FFC861; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tk-buy:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(120, 80, 20, 0.35), 0 16px 34px -12px rgba(240, 190, 80, 0.75); }
}
.tk-buy-note { margin: 8px 0 0; color: #8F98AD; font-size: 12.5px; line-height: 1.4; }
/* harga 3 jam (24 Okt 2026, #tkFlash, app.js renderFlash): kotak emas berdenyut pelan di atas tombol beli, angka hitung
   mundur lebarnya tetap; sengaja tanpa kata promo / diskon */
.tk-flash {
  margin: 16px 0 0;
  padding: 11px 14px 10px;
  border: 1px solid rgba(255, 210, 90, 0.55);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(255, 210, 90, 0.16), rgba(255, 140, 60, 0.1));
  animation: tk-flash-glow 2.4s ease-in-out infinite;
}
.tk-flash[hidden] { display: none; }
@keyframes tk-flash-glow { 50% { box-shadow: 0 0 0 4px rgba(255, 210, 90, 0.12); } }
.tk-flash-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.tk-flash-p { color: #FFE08A; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.tk-flash-c { color: #FFD9A8; font-size: 13.5px; font-weight: 700; }
.tk-flash-c b { color: #FFFFFF; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tk-flash-n { margin: 5px 0 0; color: #D8C9A8; font-size: 12.5px; line-height: 1.4; }
.tk-flash:not([hidden]) + .tk-buy { margin-top: 10px; }
@media (max-height: 700px) {
  .tk-flash { margin-top: 10px; padding: 8px 12px; }
  .tk-flash-p { font-size: 25px; }
  .tk-flash-n { display: none; }
}
/* selama kotak harga tampil (.tk-card.flash): layar <=860 px tinggi, kalimat pembuka & catatan kecil kotak disembunyikan
   biar kolom email tetap kelihatan tanpa digulir */
@media (max-height: 860px) {
  .tk-card.flash .tk-lead, .tk-card.flash .tk-flash-n { display: none; }
}
/* HP pendek (<=700 px) selama kotak harga tampil: tiket, surat terima kasih (Jakarta), judul & kotak harga dirapatkan;
   isi surat tetap utuh, cuma hurufnya sedikit lebih kecil */
@media (max-height: 700px) {
  .tk-card.flash .tk-tix { margin: 26px 0 12px; }
  .tk-card.flash .tk-note { margin-bottom: 10px; }
  .tk-card.flash .tk-note p { font-size: 12.5px; line-height: 1.4; }
  .tk-card.flash .tk-note .tk-note-h { font-size: 16.5px; }
  .tk-card.flash h2 { font-size: 22px; }
  .tk-card.flash .tk-flash { padding: 6px 12px; }
  .tk-card.flash .tk-flash-p { font-size: 22px; }
  .tk-card.flash .tk-form { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tk-flash { animation: none; } }
/* promo hari ini (27 Okt 2026, pemilik situs: "kasih peringatan promo hari ini yang heboh", CONFIG.kilat.promo): label
   kuning berdenyut + harga biasa dicoret di kotak harga gerbang (.tk-flash.promo) & bar promo merah-oranye di header panel
   (#promoBar, gradasi bergerak, cahaya berdenyut, kilau lewat). Animasi mati kalau prefers-reduced-motion */
.tk-flash-row { justify-content: flex-start; }
.tk-flash-c { margin-left: auto; }
.tk-flash-was { color: #E9CDB8; font-size: 15px; opacity: 0.75; }
.tk-flash-tag { display: none; }
.tk-flash.promo {
  border-color: rgba(255, 150, 90, 0.8);
  background: linear-gradient(115deg, rgba(255, 70, 50, 0.26), rgba(255, 170, 40, 0.16));
  animation: promo-glow 1.6s ease-in-out infinite;
}
.tk-flash.promo .tk-flash-tag,
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FFE14D;
  color: #3A0A00;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  animation: promo-pop 1.2s ease-in-out infinite;
}
.tk-flash.promo .tk-flash-tag { margin: 0 0 6px; }
.promo-bar {
  position: relative;
  overflow: hidden;
  flex-basis: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 170, 110, 0.75);
  border-radius: 14px;
  background: linear-gradient(110deg, #5A0B1A 0%, #A3122E 38%, #E2481C 72%, #F59E0B 100%);
  background-size: 220% 100%;
  color: #FFF4EC;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(255, 90, 40, 0.8);
  animation: promo-bg 5s ease-in-out infinite alternate, promo-glow 1.6s ease-in-out infinite;
}
.promo-bar[hidden] { display: none; }
.promo-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35) 50%, transparent);
  transform: translateX(-160%) skewX(-14deg);
  animation: promo-shine 3.2s cubic-bezier(0.77, 0, 0.175, 1) 1s infinite;
  pointer-events: none;
}
.promo-top { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo-time { color: #FFE3D2; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.promo-time b { color: #FFFFFF; font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.promo-main { grid-column: 1; grid-row: 2; font-size: 14px; line-height: 1.3; }
.promo-main strong { color: #FFE14D; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; }
.promo-main s { opacity: 0.75; }
.promo-until { color: #FFD9C2; }
.promo-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFF4EC;
  color: #A3122E;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}
.promo-bar:active { transform: scale(0.98); }
.promo-bar:focus-visible { outline: 2px solid #FFE14D; outline-offset: 2px; }
@keyframes promo-bg { to { background-position: 100% 0; } }
@keyframes promo-glow { 50% { box-shadow: 0 8px 26px -6px rgba(255, 110, 40, 0.95), 0 0 0 3px rgba(255, 200, 80, 0.2); } }
@keyframes promo-pop { 50% { transform: scale(1.07); } }
@keyframes promo-shine { 0% { transform: translateX(-160%) skewX(-14deg); } 30%, 100% { transform: translateX(460%) skewX(-14deg); } }
@media (max-height: 700px) {
  .tk-flash.promo .tk-flash-tag { margin-bottom: 3px; font-size: 12px; }
}
/* selama promo (.tk-card.flash.promo) baris label promo bikin kolom email turun: layar <=960 px tinggi, kalimat pembuka,
   DOOR/ROW/SEAT di tiket, catatan kecil kotak & catatan bayar disembunyikan; layar <=700 px di gerbang yang ada surat
   terima kasih (Jakarta) judulnya juga. Surat & kuota tetap utuh */
@media (max-height: 960px) {
  .tk-card.flash.promo .tk-lead, .tk-card.flash.promo .tk-meta, .tk-card.flash.promo .tk-flash-n, .tk-card.flash.promo .tk-buy-note { display: none; }
}
@media (max-height: 700px) {
  .tk-card.flash.promo:has(.tk-note) h2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bar, .promo-tag, .tk-flash.promo, .tk-flash.promo .tk-flash-tag { animation: none; }
  .promo-bar::after { display: none; }
}
/* kuota pengguna (26 Okt 2026, #tkKuota): di atas tombol beli, tetap tampil di layar pendek. Penuh (.tk-full) = merah,
   tombol beli, kotak harga & catatan bayar hilang; kolom email tetap */
.tk-kuota {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 200, 97, 0.4);
  border-radius: 12px;
  background: rgba(255, 200, 97, 0.08);
  color: #F2DDB6;
  font-size: 13px;
  line-height: 1.4;
}
.tk-kuota svg { flex: none; margin-top: 1px; color: #FFC861; }
.tk-kuota strong { color: #FFE2B0; }
.tk-card.tk-full .tk-kuota { border-color: rgba(255, 120, 120, 0.5); background: rgba(255, 90, 90, 0.12); color: #FFD0D0; }
.tk-card.tk-full .tk-kuota svg, .tk-card.tk-full .tk-kuota strong { color: #FFB3B3; }
.tk-card:not(.tk-full) .tk-kuota { display: none; }
.tk-card.tk-full .tk-buy, .tk-card.tk-full .tk-flash, .tk-card.tk-full .tk-buy-note { display: none !important; }

/* ---- sudah punya tiket */
.tk-form { margin: 22px 0 0; }
.tk-form label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #8F98AD;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tk-form label::before, .tk-form label::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.1); }
.tk-row { display: flex; gap: 8px; }
.tk-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.tk-row input::placeholder { color: #737C91; }
.tk-row input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.07); }
.tk-row button {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #F2F3F7;
  color: #111214;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  transition: transform 160ms var(--tk-ease), background-color 150ms ease;
}
.tk-row button:active { transform: scale(0.97); }
.tk-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-row button:disabled { opacity: 0.6; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .tk-row button:hover { background: #FFFFFF; }
}
.tk-msg { min-height: 1.4em; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tk-msg.err { color: var(--danger); }
.tk-msg.ok { color: #5CF2A0; font-weight: 700; }
.tk-fine { margin: 2px 0 0; color: rgba(174, 182, 200, 0.6); font-size: 12px; line-height: 1.45; }
/* sisa POV gratis di HUD POV (24 Okt 2026, sama dengan BTS Jakarta); 10 detik terakhir merah */
.tk-trial { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; }
.tk-trial[hidden] { display: none; }
.tk-trial-t { padding: 4px 10px; border-radius: 999px; background: rgba(255, 210, 90, 0.14); color: #FFD25A; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tk-trial-t b { font-variant-numeric: tabular-nums; }
.tk-trial.low .tk-trial-t { background: rgba(255, 94, 122, 0.18); color: #FF8DA1; }
.tk-trial button {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(115deg, #FFD25A, #FF9A3D);
  color: #1A1206;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
  cursor: pointer;
}
.tk-trial button:focus-visible { outline: 2px solid #FFC861; outline-offset: 2px; }
/* tanpa tiket (body.tk-locked, app.js tiketSync): gembok di tombol yang membuka POV, pratinjau POV kecil (#pip.locked)
   nggak dirender & diganti kartu ajakan pakai tiket (sama dengan bts-3d: tanpa preview gratis) */
body.tk-locked .povgo::before,
body.tk-locked .views [data-view="pov"]::before,
body.tk-locked .views [data-view="stage"]::before,
.pip-lock strong::before {
  content: '';
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.35em;
  vertical-align: -0.08em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* pemegang tiket (body.tk-pass, app.js tiketSync): sudah bayar, jadi nggak disodorin Saweria lagi kalau CONFIG.support
   dinyalakan lagi (kartu Saweria di panel & ajakan di HUD POV; pil kecil di header tetap, seperti bts-3d) */
body.tk-pass .sawer,
body.tk-pass #sawerNudge { display: none !important; }
.pip-lock { display: none; }
.pip.locked {
  border-color: rgba(255, 214, 120, 0.45);
  background: linear-gradient(118deg, #0E0D22 0%, #2C2358 52%, #8C6A1E 100%);
}
.pip.locked .pip-open { align-items: center; justify-content: center; cursor: pointer; }
.pip.locked .pip-tag, .pip.locked .pip-where { display: none; }
.pip.locked .pip-lock { display: grid; justify-items: center; gap: 8px; padding: 0 16px; color: #fff; text-align: center; }
.pip-lock strong { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.pip-lock > span {
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(115deg, #FFD25A, #FF9A3D);
  color: #1A1206;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}
.pip.locked .pip-open:hover .pip-lock > span { filter: brightness(1.06); }
/* HP: pratinjau cuma ±150–168 x 100 & tombol × di pojok kanan atas (sampai y ±38) -> isi dikecilkan, 1 baris masing-
   masing, & ditaruh di bawah tombol × */
@media (max-width: 720px) {
  .pip.locked .pip-open { align-items: flex-end; padding-bottom: 10px; }
  .pip.locked .pip-lock { gap: 5px; padding: 0 6px; }
  .pip-lock strong { font-size: 14px; white-space: nowrap; }
  .pip-lock > span { padding: 3px 9px; font-size: 12.5px; white-space: nowrap; }
}
/* HP sempit: tiket & huruf dikecilkan, tetap proporsional */
@media (max-width: 400px) {
  .tk-card { padding: 18px 18px 16px; }
  .tk-ticket { --stub: 94px; --notch: 11px; }
  .tk-main { padding: 14px 10px 13px 16px; }
  .tk-top { font-size: 11px; letter-spacing: 0.12em; }
  .tk-name { font-size: 40px; }
  .tk-sub { font-size: 12.5px; }
  .tk-meta { gap: 12px; }
  .tk-meta dd { font-size: 15.5px; }
  .tk-seal { width: 44px; height: 44px; }
  .tk-seal b { font-size: 14px; }
  .tk-pass-l { font-size: 16px; }
  .tk-code { width: 64px; }
  .tk-stamp { font-size: 25px; }
  .tk-card h2 { font-size: 27px; }
  .tk-lead { font-size: 14px; }
  .tk-buy-l { font-size: 21px; }
}
/* layar nggak terlalu tinggi (laptop 800 px, kebanyakan HP): baris DOOR/ROW/SEAT disembunyikan biar kolom email kelihatan
   tanpa digulir; layar pendek (HP 640 px): keterangan & catatan kecil juga */
@media (max-height: 860px) {
  .tk-meta { display: none; }
  .tk-tix { margin: 32px 0 24px; }
  .tk-form { margin-top: 18px; }
}
@media (max-height: 700px) {
  .tk-tix { margin: 30px 0 18px; }
  .tk-venue, .tk-lead, .tk-buy-note, .tk-fine { display: none; }
  .tk-card h2 { font-size: 25px; }
  .tk-kuota { margin-top: 10px; padding: 7px 10px; font-size: 12.5px; }
  .tk-buy { margin-top: 12px; padding: 12px 16px; }
  .tk-form { margin-top: 16px; }
}
/* HP 360 px */
@media (max-width: 370px) {
  .tk-name { font-size: 36px; }
  .tk-no, .tk-city { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-wrap, .tk-card, .tk-card > :not(.tk-x), .tk-card.bad .tk-ticket, .tk-sheen::before, .tk-buy::after { animation: none; }
  .tk-sheen, .tk-buy::after { display: none; }
  .tk-card.scan .tk-laser { animation: none; top: 50%; }
}

/* ---- Akses & sekitar JIS (3 Nov 2026, sama dengan BTS Jakarta bts-3d): tombol ngambang, laci/lembar info, pin peta. Posisi tombol dari app.js
   placeAksesBtn (pojok kiri bawah area 3D, menghindari panel, HUD POV, bar musik). */
.akses-btn[hidden], .akses[hidden], .akses-pins[hidden] { display: none; }
.akses-btn {
  position: fixed; left: 0; top: 0; z-index: 5; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 15px 8px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: #F4F1EA; color: #111214; font: 700 15px var(--body); white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.akses-btn svg { color: #B8860B; flex-shrink: 0; }
/* Akses ke JIS ikut tiket (body.tk-nopass, app.js tiketSync): gembok kecil di ujung tombol, klik = gerbang tiket */
body.tk-nopass .akses-btn::after {
  content: ''; width: 0.85em; height: 0.85em; margin-left: 1px; flex-shrink: 0; background: currentColor; opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.akses-btn .ak-short { display: none; }
.akses-btn.short .ak-long { display: none; }
.akses-btn.short .ak-short { display: inline; }
.akses-btn:hover { background: #fff; }
.akses-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.akses {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: 400px; z-index: 8;
  display: flex; flex-direction: column; background: #0C1222; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.ak-head { display: flex; align-items: flex-start; gap: 8px; padding: 16px 14px 10px 18px; }
.ak-titles { flex: 1; min-width: 0; }
.ak-head h2 { margin: 0; font: 700 30px/1 var(--display); letter-spacing: 0.01em; }
.ak-asof { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.ak-min, .ak-x {
  flex-shrink: 0; min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font: 600 13px var(--body); cursor: pointer;
}
.ak-min { padding: 0 10px; display: none; }
.ak-x { width: 36px; font-size: 22px; line-height: 1; }
.ak-min:hover, .ak-x:hover { border-color: var(--line-strong); }
/* tab dibungkus ke baris berikutnya: semua kelihatan tanpa digeser (3 Nov 2026, pemilik situs: "gk bisa geser kanan") */
.ak-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px 18px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.ak-tabs button {
  flex-shrink: 0; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 600 13.5px var(--body); cursor: pointer; white-space: nowrap;
}
.ak-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ak-body { flex: 1; overflow-y: auto; padding: 12px 14px 18px 18px; overscroll-behavior: contain; }
.ak-lead { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ak-card {
  margin: 0 0 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}
.ak-card.flash { border-color: #F4F1EA; background: rgba(244, 241, 234, 0.08); }
.ak-ch { display: flex; align-items: flex-start; gap: 8px; }
.ak-ch h3 { flex: 1; margin: 0; font: 700 15.5px/1.3 var(--body); }
.ak-ch .ak-ic { margin-top: 1px; }
.ak-st { flex-shrink: 0; padding: 2px 7px; border-radius: 6px; font: 700 10.5px/1.5 var(--body); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.ak-st.st-resmi { background: rgba(64, 192, 87, 0.18); color: #8CE99A; }
.ak-st.st-normal { background: rgba(77, 171, 247, 0.18); color: #A5D8FF; }
.ak-st.st-prev { background: rgba(250, 176, 5, 0.16); color: #FFD43B; }
.ak-st.st-est { background: rgba(174, 182, 200, 0.16); color: #CED4DA; }
.ak-st.st-tbd { background: rgba(250, 82, 82, 0.16); color: #FFA8A8; }
.ak-st.st-cek { background: rgba(253, 126, 20, 0.16); color: #FFC078; }
.ak-cb { margin-top: 7px; font-size: 14px; line-height: 1.5; color: #D5DAE4; }
.ak-cb p { margin: 0 0 6px; }
.ak-cb p:last-child { margin-bottom: 0; }
.ak-cb ul { margin: 4px 0 0; padding-left: 18px; }
.ak-cb li { margin: 2px 0; }
.ak-cb b { color: var(--text); }
.ak-cb table { width: 100%; margin: 6px 0 2px; border-collapse: collapse; font-size: 13px; }
.ak-cb th, .ak-cb td { padding: 5px 6px 5px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ak-cb th { color: var(--muted); font-weight: 600; font-size: 12px; }
.ak-cb .src { display: block; margin-top: 6px; font-size: 11.5px; color: #8C95A8; }
.ak-map {
  margin-top: 9px; min-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: 600 13px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ak-map:hover { background: rgba(255, 255, 255, 0.06); }
.ak-src { margin-top: 14px; font-size: 12px; line-height: 1.5; color: #8C95A8; }
.ak-src b { color: var(--muted); }
.ak-src p { margin: 0 0 6px; }

/* ikon kategori (dipakai di pin peta & judul kartu) */
.ak-ic {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px;
  padding: 0 4px; border-radius: 5px; font: 800 11px/1 var(--body); color: #fff; background: #495057;
}
.c-mrt { background: #0E9F8E; } .c-tj { background: #E8590C; } .c-krl { background: #C2255C; } .c-lrt { background: #7048E8; }
.c-parkir { background: #1C7ED6; } .c-pintu { background: #F1F3F5; color: #111214; } .c-ojol { background: #2F9E44; }
.c-taksi { background: #F59F00; color: #111214; } .c-wc { background: #5F3DC4; } .c-ibadah { background: #2B8A3E; }
.c-atm { background: #364FC7; } .c-sehat { background: #E03131; } .c-polisi { background: #343A40; border: 1px solid #868E96; }
.c-makan { background: #D9480F; } .c-tukar { background: #F4F1EA; color: #C2255C; }
.c-bus { background: #A33F0B; } .c-mart { background: #0B7285; } .c-shuttle { background: #5C7CFA; }
.c-mikro { background: #2B8A3E; } .c-jpo { background: #C2255C; } .c-tol { background: #495057; border: 1px solid #ADB5BD; }
.c-lalin { background: #E03131; }

.akses-pins { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
body.akses-open .pip { display: none; }
.ak-pin {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; max-width: 220px;
  padding: 3px 8px 3px 3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 15, 0.92); color: var(--text); font: 700 12px/1.2 var(--body); white-space: nowrap;
  pointer-events: auto; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.ak-pin::after {
  content: ''; position: absolute; left: 12px; bottom: -6px; border: 6px solid transparent; border-bottom: 0;
  border-top-color: rgba(12, 12, 15, 0.92);
}
.ak-pin span { overflow: hidden; text-overflow: ellipsis; }
.ak-pin.flip::after { left: auto; right: 12px; }
.ak-pin.mini { padding: 3px; gap: 0; }
.ak-pin.mini span { display: none; }
.ak-pin.on { border-color: #F4F1EA; box-shadow: 0 0 0 2px rgba(244, 241, 234, 0.55), 0 3px 10px rgba(0, 0, 0, 0.5); z-index: 2; }
.ak-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ak-lbl {
  position: absolute; left: 0; top: 0; font: 600 11px/1.1 var(--body); color: #B9C2D6; white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.9); letter-spacing: 0.02em;
}
.ak-lbl.road { font-style: italic; font-weight: 500; color: #8F9AB2; }

@media (max-width: 720px) {
  /* lembar bawah, di atas label simulasi (sama seperti panel); panel kiri disembunyikan selama lembar ini terbuka */
  .akses {
    top: auto; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); width: auto; height: 58vh; height: 58dvh;
    border-radius: 18px; background: #0C1222;
  }
  .akses.min { height: auto; }
  .akses.min .ak-body, .akses.min .ak-tabs { display: none; }
  .akses.min .ak-head { padding-bottom: 12px; }
  body.akses-open #panel { visibility: hidden; }
  .ak-min { display: inline-block; }
  .ak-head { padding: 12px 12px 8px 16px; }
  .ak-head h2 { font-size: 26px; }
  .ak-tabs { padding: 0 12px 8px 16px; }
  .ak-body { padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px)) 16px; }
  .akses-btn { min-height: 38px; font-size: 14px; padding: 7px 13px 7px 10px; }
  /* bar musik di atas peta: selama Akses terbuka cuma barisnya (pemutar YouTube balik tersembunyi tapi tetap jalan; daftar
     lagu, volume & petunjuk ketuk disembunyikan), biar pin & tombol peta nggak ketutup */
  body.akses-open .music.needs-tap .player { position: absolute; width: 200px; height: 200px; margin: 0; opacity: 0; pointer-events: none; z-index: -1; }
  body.akses-open .music .music-hint, body.akses-open .music .music-list, body.akses-open .music .vol { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ak-card { transition: none; } }

/* jalur di peta (SVG di atas kawasan 3D, app.js akDrawRoutes) */
.ak-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ak-r-case, .ak-r-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ak-r-case { stroke: rgba(8, 11, 22, 0.85); stroke-width: 8.5; }
.ak-r-line { stroke: var(--c); stroke-width: 4.5; }
.ak-r-mrt .ak-r-line { stroke-dasharray: 11 7; stroke-linecap: butt; stroke-width: 5; }
.ak-r-krl .ak-r-case { stroke-width: 9.5; }
.ak-r-krl .ak-r-line { stroke-width: 5.5; }
.ak-r-road .ak-r-case { stroke: rgba(8, 11, 22, 0.6); stroke-width: 10; }
.ak-r-road .ak-r-line { stroke-width: 6; stroke-dasharray: 7 5; stroke-linecap: butt; opacity: 0.9; }
.ak-r-walk .ak-r-case { stroke-width: 10; stroke: rgba(8, 11, 22, 0.7); }
.ak-r-walk .ak-r-line { stroke-width: 6.5; stroke-dasharray: 0.1 10; animation: akFlow 0.9s linear infinite; }
@keyframes akFlow { to { stroke-dashoffset: -10.1; } }
.ak-r-stops circle { fill: #fff; stroke: var(--c); stroke-width: 3.5; }
.ak-r-stops text { font: 700 11.5px var(--body); fill: #fff; paint-order: stroke; stroke: #0C0C10; stroke-width: 3.5px; stroke-linejoin: round; }
/* daftar jalur di kartu */
.ak-routes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ak-rt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text); font: inherit; cursor: pointer;
}
.ak-rt:hover { border-color: var(--line-strong); }
.ak-rt[aria-pressed="true"] { border-color: #F4F1EA; background: rgba(244, 241, 234, 0.08); }
.ak-rt:disabled { cursor: default; opacity: 0.6; }
.ak-rt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-rt-t b { font-size: 13.5px; line-height: 1.3; }
.ak-rt-t small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.ak-sw { flex-shrink: 0; width: 28px; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1.5px #0B1020; }
.ak-sw-mrt { background: repeating-linear-gradient(90deg, var(--c) 0 7px, transparent 7px 11px); }
.ak-sw-walk { height: 8px; margin-top: 6px; background: radial-gradient(circle, var(--c) 2.6px, transparent 3px) 0 50% / 8px 8px repeat-x; box-shadow: none; }
.ak-sw-road { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
/* tombol peta */
.ak-nav[hidden] { display: none; }
.ak-nav {
  position: fixed; left: 0; top: 0; z-index: 6; display: grid; gap: 4px; padding: 5px; border-radius: 12px;
  grid-template-columns: repeat(3, 38px); grid-template-areas: "all all all" "in u out" "l fit r" ". d ." "keys keys keys";
  background: rgba(14, 14, 18, 0.9); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ak-nav button {
  height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #151C30; color: var(--text);
  font: 700 12.5px var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.ak-nav button:hover { border-color: var(--line-strong); background: #1C2440; }
.ak-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ak-nav .ak-allroutes { grid-area: all; padding: 0 8px; background: #F4F1EA; color: #111214; border-color: #F4F1EA; }
.ak-nav .ak-allroutes[hidden] { display: none; }
.ak-keys { grid-area: keys; margin: 2px 0 0; font: 500 10.5px/1.45 var(--body); color: var(--muted); }
.ak-keys b { color: var(--text); font-weight: 700; }
.n-in { grid-area: in; } .n-out { grid-area: out; } .n-u { grid-area: u; } .n-d { grid-area: d; } .n-l { grid-area: l; } .n-r { grid-area: r; } .n-fit { grid-area: fit; }

@media (max-width: 720px) {
  /* HP: satu baris di atas lembar Akses */
  .ak-nav { grid-template-columns: repeat(7, 34px); grid-template-areas: "all all all all all all all" "out in l u d r fit"; gap: 4px; padding: 4px; }
  .ak-keys { display: none; }
  .ak-nav button { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .ak-r-walk .ak-r-line { animation: none; } }

/* ---- Kartu koleksi XX : COSMOS 3D (kartu/kartu.js, 3 Nov 2026) ----
   Kanvas WebGL layar penuh (latar Blender, bungkus & kartu 3D, bloom) + lapisan UI di atasnya: tombol tutup, petunjuk
   sobek (diposisikan kartu.js tepat di garis sobek), panel bawah (HP) / kanan (layar lebar), layar hasil Story 9:16. */
.kc3 {
  --kc-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --kc-glow: 200, 220, 255;
  position: fixed;
  inset: 0;
  z-index: 23;
  overflow: hidden;
  color: #FFFFFF;
  font-family: var(--body);
  background: #05060D;
  outline: none;
  animation: kc3-in 320ms ease-out;
  transition: opacity 220ms ease;
}
.kc3[hidden] { display: none; }
.kc3.out { opacity: 0; }
.kc3.rar-gold { --kc-glow: 255, 200, 60; }
.kc3.rar-holo { --kc-glow: 160, 220, 255; }
.kc3.rar-crown { --kc-glow: 255, 190, 40; }
@keyframes kc3-in { from { opacity: 0; } }
.kc3-gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.kc3.editing .kc3-gl { cursor: move; }
.kc3-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none; background: linear-gradient(to top, rgba(4, 5, 12, 0.92), rgba(4, 5, 12, 0.5) 45%, transparent); }
.kc3-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.85), rgba(var(--kc-glow), 0.5) 26%, transparent 62%); mix-blend-mode: screen; }
.kc3-flash.on { animation: kc3-flash 700ms ease-out; }
@keyframes kc3-flash { from { opacity: 1; } to { opacity: 0; } }
.kc3-x {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--kc-ease), background-color 160ms ease;
}
.kc3-x:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .kc3-x:hover { background: rgba(255, 255, 255, 0.16); } }
.kc3-load { position: absolute; left: 50%; top: 44%; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.82); font: 700 18px var(--display); letter-spacing: 0.04em; }
.kc3-load[hidden] { display: none; }
.kc3-load i { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--accent); border-radius: 50%; animation: kc3-spin 0.8s linear infinite; }
@keyframes kc3-spin { to { transform: rotate(360deg); } }

/* petunjuk sobek: ujung jari meluncur di sepanjang garis sobek bungkus */
.kc3-hint { position: absolute; left: 0; top: 0; z-index: 3; width: var(--w, 200px); height: 0; pointer-events: none; }
.kc3-hint[hidden] { display: none; }
.kc3-hint b {
  position: absolute;
  left: 50%;
  top: -64px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font: 800 14px var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: kc3-bob 2.4s ease-in-out infinite;
}
.kc3-finger {
  position: absolute;
  left: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 28%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  box-shadow: 0 0 24px rgba(var(--kc-glow), 0.95);
  opacity: 0;
  animation: kc3-swipe 2.2s var(--kc-ease) 0.6s infinite;
}
.kc3-hint.held b, .kc3-hint.held .kc3-finger { opacity: 0; animation: none; transition: opacity 150ms ease; }
@keyframes kc3-swipe {
  0% { opacity: 0; transform: translateX(0) scale(0.8); }
  12% { opacity: 1; transform: translateX(0) scale(1); }
  64% { opacity: 1; transform: translateX(var(--w, 200px)) scale(1); }
  80%, 100% { opacity: 0; transform: translateX(var(--w, 200px)) scale(0.8); }
}
@keyframes kc3-bob { 50% { transform: translate(-50%, -4px); } }

/* panel */
.kc3-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 20px max(20px, env(safe-area-inset-bottom)); text-align: center; pointer-events: none; }
.kc3-panel > * { max-width: 420px; margin-right: auto; margin-left: auto; pointer-events: auto; }
.kc3-panel section[hidden] { display: none; }
.kc3-panel section { animation: kc3-up 460ms var(--kc-ease) both; }
.kc3-panel section.gone { opacity: 0; transform: translateY(10px); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none; }
@keyframes kc3-up { from { opacity: 0; transform: translateY(14px); } }
.kc3-kick { margin: 0 0 6px; color: var(--accent); font: 700 12px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
#kc3Head { margin: 0 0 6px; font: 800 28px/1.05 var(--display); }
.kc3-lead { max-width: 36ch; margin: 0 auto 8px; color: rgba(255, 255, 255, 0.8); font-size: 14px; line-height: 1.45; }
.kc3-lead b { color: #FFFFFF; }
/* nama kelangkaan: huruf masuk satu-satu (pegas), kilau berjalan */
.kc3-rar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; margin: 0 0 4px; font: 800 66px/0.95 var(--display); letter-spacing: 0.04em; }
.kc3-rar span {
  display: inline-block;
  background: linear-gradient(100deg, var(--r1), var(--r2) 25%, var(--r3) 50%, var(--r2) 75%, var(--r1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(var(--kc-glow), 0.55));
  animation: kc3-shine 3.2s linear infinite;
}
.kc3-rar.anim span { animation: kc3-letter 700ms cubic-bezier(0.2, 1.4, 0.4, 1) both, kc3-shine 3.2s linear infinite; animation-delay: calc(var(--i) * 60ms), 0s; }
.kc3-rar .kc3-star { margin-right: 6px; font-size: 42px; }
.kc3-rar small { display: block; width: 100%; margin-top: 8px; color: rgba(255, 255, 255, 0.6); font: 700 15px var(--display); letter-spacing: 0.22em; }
.kc3 .kc3-rar { --r1: #8D96A2; --r2: #F6F8FB; --r3: #FFFFFF; }
.kc3.rar-gold .kc3-rar { --r1: #B8860B; --r2: #FFD21F; --r3: #FFF6C8; }
.kc3.rar-holo .kc3-rar { --r1: #FF9FC2; --r2: #8FCBFF; --r3: #8FFFD2; }
.kc3.rar-crown .kc3-rar { --r1: #B8860B; --r2: #FFD21F; --r3: #FFFFFF; }
@keyframes kc3-letter { from { opacity: 0; transform: translateY(28px) scale(0.6); } }
@keyframes kc3-shine { to { background-position: -300% 0; } }
.kc3-odds { margin: 4px 0 14px; color: rgba(255, 255, 255, 0.84); font-size: 14px; }
.kc3-acts { display: grid; gap: 10px; }
.kc3-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc3-row:has(> [hidden]) { grid-template-columns: 1fr; }
.kc3-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  font: 800 17px/1 var(--display);
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--kc-ease), filter 160ms ease, background-color 160ms ease;
}
.kc3-btn[hidden] { display: none; }
.kc3-btn:active { transform: scale(0.97); }
.kc3-gold {
  color: #1B1206;
  background: linear-gradient(100deg, #C3923A 0%, #F6DD8E 30%, #E3B759 52%, #FFF0C0 66%, #D3A447 84%, #EFCB71 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(120, 80, 20, 0.35), 0 12px 28px -12px rgba(240, 190, 80, 0.65);
}
.kc3-gold::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7) 50%, transparent);
  transform: translateX(-130%) skewX(-14deg);
  animation: kc3-sheen 3.6s cubic-bezier(0.77, 0, 0.175, 1) 1.2s infinite;
}
@keyframes kc3-sheen { 0% { transform: translateX(-130%) skewX(-14deg); } 30%, 100% { transform: translateX(430%) skewX(-14deg); } }
.kc3-line { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kc3-ghost { min-height: 42px; color: rgba(255, 255, 255, 0.8); background: transparent; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .kc3-gold:hover { filter: brightness(1.06); }
  .kc3-line:hover, .kc3-ghost:hover { background: rgba(255, 255, 255, 0.14); }
}
.kc3-pick input, .kc3-pick2 input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.kc3-pick:focus-within, .kc3-pick2:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.kc3-field { display: grid; gap: 6px; margin-bottom: 10px; color: rgba(255, 255, 255, 0.78); font-size: 13px; text-align: left; }
.kc3-field input[type=text] { height: 46px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(8, 10, 20, 0.55); color: #FFFFFF; font: 700 16px var(--body); }
.kc3-field input[type=text]:focus { border-color: var(--accent); outline: none; }
.kc3-field input[type=range] { width: 100%; accent-color: var(--accent); }
.kc3-fine { margin: 10px 0 0; color: rgba(255, 255, 255, 0.56); font-size: 12px; line-height: 1.4; }
[data-s=edit] .kc3-fine { margin: 0 0 12px; text-align: left; }
.kc3-msg { margin: 8px 0 0; color: var(--accent); font-size: 13px; }
.kc3-msg:empty { display: none; }
.kc3-share-h { margin: 0 0 12px; font: 800 26px var(--display); }

/* hasil Story: bingkai 9:16 */
.kc3-out { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; padding-top: max(60px, env(safe-area-inset-top)); background: rgba(4, 5, 12, 0.74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.kc3-out[hidden] { display: none; }
.kc3-out-frame { position: relative; height: min(56vh, 640px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #000000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 70px -10px rgba(var(--kc-glow), 0.5); }
.kc3-out-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc3-out-frame > [hidden] { display: none; }
.kc3-out.busy .kc3-out-frame { animation: kc3-pulse 1.6s ease-in-out infinite; }
@keyframes kc3-pulse { 50% { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 90px 0 rgba(var(--kc-glow), 0.6); } }
.kc3-out-bar { width: min(260px, 60vw); height: 4px; margin-top: 16px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.kc3-out-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFFFFF); transform: scaleX(0); transform-origin: left; }
.kc3-out.done .kc3-out-bar { display: none; }
.kc3-out-t { margin: 10px 0 0; color: rgba(255, 255, 255, 0.86); font: 700 16px var(--display); letter-spacing: 0.04em; }
.kc3.exporting .kc3-panel, .kc3.exporting .kc3-x { visibility: hidden; }

/* layar lebar: panel di kanan, kartu di kiri */
@media (min-width: 860px) and (min-aspect-ratio: 1/1) {
  .kc3-panel { top: 50%; right: 7vw; bottom: auto; left: auto; width: 380px; padding: 0; text-align: left; transform: translateY(-50%); }
  .kc3-panel > * { margin-left: 0; }
  .kc3-rar { justify-content: flex-start; }
  .kc3-lead { margin-left: 0; }
  .kc3-shade { top: 0; left: auto; width: 52%; height: auto; background: linear-gradient(to left, rgba(4, 5, 12, 0.85), transparent); }
  .kc3-out { justify-content: center; padding-top: 0; padding-right: 440px; }
  .kc3-out-frame { height: min(80vh, 760px); }
}
@media (prefers-reduced-motion: reduce) {
  .kc3-finger, .kc3-hint b, .kc3-rar span, .kc3-gold::after, .kc3-out.busy .kc3-out-frame { animation: none; }
  .kc3-finger { opacity: 1; }
}
/* tombol "Kartu" di HUD POV: cuma buat pemegang tiket (atau cek lokal ?kartu=1) yang sudah pilih kursi / tempat atau sudah
   buka kartunya (body.kc-siap, app.js kartuSlot) */
body:not(.kc-siap) .kartu-btn { display: none; }
@media (max-width: 859px), (max-aspect-ratio: 1/1) {
  .kc3-rar { font-size: 56px; }
  .kc3-odds { margin-bottom: 12px; font-size: 13px; }
  .kc3-acts { gap: 8px; }
  .kc3-btn { min-height: 46px; }
}
@media (max-height: 760px) { [data-s=card] .kc3-fine { display: none; } }
[data-s=intro] .kc3-btn { margin: 0 auto; padding: 0 22px; }
@media (min-width: 860px) and (min-aspect-ratio: 1/1) { [data-s=intro] .kc3-btn { margin: 0; } }
/* layar lebar: teks panel kartu lebih besar (penilai buta: kekecilan) */
@media (min-width: 860px) and (min-aspect-ratio: 1/1) {
  .kc3-panel { width: 430px; }
  .kc3-rar { font-size: 92px; }
  #kc3Head { font-size: 38px; }
  .kc3-lead, .kc3-odds { font-size: 16px; }
  .kc3-btn { min-height: 54px; font-size: 19px; }
  .kc3-fine { font-size: 13px; }
}
.kc3-rar .kc3-star { align-self: center; margin-right: 8px; font-size: 0.62em; }
[data-s=intro] .kc3-btn { min-width: 190px; color: #FFFFFF; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
@media (min-width: 860px) and (min-aspect-ratio: 1/1) { .kc3-fine { font-size: 14px; color: rgba(255, 255, 255, 0.66); } .kc3-odds { font-size: 17px; } }

/* kartu koleksi yang sudah didapat, di ruang kosong kepala panel di bawah "Sembunyikan" (app.js kartuSlot) */
.head-side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.kartu-slot {
  display: grid; justify-items: center; gap: 8px;
  padding: 2px 0 0; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 700 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.kartu-slot[hidden] { display: none; }
.ks-card {
  position: relative; display: block; width: 66px; height: 102px; border-radius: 6px; overflow: hidden;
  transform: rotate(-4deg);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 12px 18px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ks-card img { display: block; width: 100%; height: 100%; }
.ks-card img[hidden] { display: none; }
.ks-card::after {                                  /* kilau lewat sekali: waktu kartu baru masuk & waktu disorot */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-130%);
}
@media (hover: hover) and (pointer: fine) {
  .kartu-slot:hover .ks-card { transform: rotate(0deg) translateY(-3px) scale(1.05); }
  .kartu-slot:hover .ks-card::after { transform: translateX(130%); transition: transform 650ms ease-out; }
  .kartu-slot:hover .ks-cap { color: var(--text); }
}
.kartu-slot:active .ks-card { transform: rotate(-2deg) scale(0.97); }
.kartu-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.kartu-slot[data-rar="silver"] .ks-cap { color: #DCE2EA; }
.kartu-slot[data-rar="gold"] .ks-cap { color: #E7C46C; }
.kartu-slot[data-rar="holo"] .ks-cap { color: #D9C9FF; }
.kartu-slot[data-rar="crown"] .ks-cap { color: #EBCB7B; }
/* belum dibuka: bungkus kecil bergerigi */
.ks-pack { display: none; position: absolute; inset: 0; place-items: center; color: #E8C46A; }
.kartu-slot.sealed .ks-pack { display: grid; }
.kartu-slot.sealed .ks-card {
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 4px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 4px) bottom / 100% 6px no-repeat,
    linear-gradient(160deg, #3B3552, #17141F 58%, #2B2339);
}
.kartu-slot.ks-new .ks-card { animation: ksIn 560ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.kartu-slot.ks-new .ks-card::after { animation: ksGlint 900ms 380ms ease-out both; }
@keyframes ksIn { from { opacity: 0; transform: translateY(-22px) rotate(-14deg) scale(1.2); } }
@keyframes ksGlint { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@media (max-width: 720px) {                        /* HP: kepala panel 1 baris, kartu kecil di kiri tombol */
  .head-side { flex-direction: row; gap: 6px; }
  .kartu-slot { order: -1; padding: 0; }
  .ks-card { width: 24px; height: 37px; border-radius: 3px; transform: rotate(-6deg); }
  .ks-pack svg { width: 12px; height: 12px; }
  .ks-cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ks-card { transition: none; }
  .kartu-slot.ks-new .ks-card, .kartu-slot.ks-new .ks-card::after { animation: none; }
}
