/* =====================================================================
   HIPMI Tabanan — page-kegiatan.css (halaman Kegiatan)
   Semua kelas berawalan .kg- agar tidak bertabrakan dengan halaman lain.
   Hanya memakai token dari hipmi.css → otomatis terang/gelap.
   ===================================================================== */

/* =============================== HERO =============================== */
.kg-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(20px, 3.6vw, 52px) clamp(44px, 6vw, 84px); }
.kg-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* pola kontur memudar ke kiri-atas & ke bawah tanpa menutup butir kertas */
  -webkit-mask-image: radial-gradient(75% 110% at 92% 40%, #000 20%, rgba(0,0,0,.35) 62%, transparent 92%);
  mask-image: radial-gradient(75% 110% at 92% 40%, #000 20%, rgba(0,0,0,.35) 62%, transparent 92%); }
.kg-hero__bg::before { content: ''; position: absolute; inset: 0; background-color: color-mix(in srgb, var(--ink) 11%, transparent); -webkit-mask: var(--kontur) 0 0 / 380px auto repeat; mask: var(--kontur) 0 0 / 380px auto repeat; }
.kg-hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(34% 44% at 84% 46%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%); }
@media (max-width: 999px) { .kg-hero__bg { -webkit-mask-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 75%, transparent); mask-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 75%, transparent); } .kg-hero__bg::after { background: radial-gradient(60% 30% at 70% 78%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%); } }
.kg-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.kg-hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1000px) { .kg-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); } }
.kg-hero__text { min-width: 0; }
.kg-hero__title { display: flex; align-items: flex-start; margin-top: clamp(14px, 2vw, 22px); font-family: var(--font-display); font-weight: 500; font-size: clamp(4rem, 10.2vw, 8.6rem); line-height: .92; letter-spacing: -.045em; color: var(--ink); font-variation-settings: 'opsz' 144; }
.kg-hero__mask { display: block; overflow: hidden; padding: 0 .05em .16em 0; margin-bottom: -.16em; }
.kg-hero__word { display: block; }
.kg-hero__sup { flex: none; margin: .55em 0 0 .45em; font-family: var(--font-mono); font-size: clamp(.78rem, 1.15vw, 1rem); font-weight: 500; line-height: 1; letter-spacing: .08em; color: var(--accent-ink); vertical-align: baseline; top: 0; }
.kg-hero__sup::before { content: '('; } .kg-hero__sup::after { content: ')'; }
.kg-hero__rule { margin-top: clamp(20px, 2.4vw, 28px); }
.kg-hero__lead { margin-top: 18px; max-width: 34ch; font-size: clamp(1.08rem, 1.45vw, 1.28rem); color: var(--ink-2); }
.kg-hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.kg-hero__hint { font-size: .8rem; line-height: 1.4; color: var(--muted); max-width: 30ch; }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.no-anim):not(.is-reduced-motion) .kg-hero:not(.is-in) [data-kg-h] { opacity: 0; animation: kg-safe 0s linear 2.4s forwards; }
}
@keyframes kg-safe { to { opacity: 1; } }

/* strip "sedang berlangsung" */
.kg-now { margin-top: clamp(28px, 3.4vw, 40px); max-width: 560px; }
.kg-now__label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kg-now__label > span:last-child { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
ul.kg-now__list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--border); }
.kg-now__item { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px 12px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); text-decoration: none; border-radius: 0; }
.kg-now__bar { width: 4px; height: 36px; border-radius: 4px; background: var(--c); }
.kg-now__txt { min-width: 0; }
.kg-now__txt b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.14rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.kg-now__txt span { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kg-now__arrow { color: var(--muted); transition: transform .25s var(--ease-out), color .2s; }
.kg-now__item:hover .kg-now__arrow { transform: translateX(4px); color: var(--ink); }
.kg-now__item:hover .kg-now__txt b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* =============================== KALENDER BULANAN =============================== */
.kg-cal { position: relative; width: 100%; max-width: 430px; justify-self: end; padding: 20px 20px 14px; border-radius: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); box-shadow: var(--sh-lg); }
@media (max-width: 999px) { .kg-cal { justify-self: stretch; max-width: 560px; } }
.kg-cal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kg-cal__heading { display: grid; gap: 6px; }
.kg-cal__month { font-family: var(--font-display); font-weight: 500; font-size: 1.62rem; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.kg-cal__yr { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); vertical-align: .32em; }
.kg-cal__nav { display: flex; gap: 6px; }
.kg-cal__nav .icon-btn[disabled] { opacity: .32; cursor: default; pointer-events: none; }
.kg-cal__body { margin-top: 12px; }
.kg-cal__dows, .kg-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kg-cal__dows span { padding: 6px 0 8px; text-align: center; font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kg-cal__dows .is-we { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.kg-cal__cell { position: relative; height: 46px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-mono); font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.kg-cal__cell.is-past { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.kg-cal__num { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; margin-top: -8px; border-radius: 50%; transition: background-color .2s, color .2s, box-shadow .2s; }
button.kg-cal__cell { cursor: pointer; color: var(--ink); transition: background-color .2s; }
button.kg-cal__cell.is-past { color: var(--muted); }
button.kg-cal__cell:hover { background: var(--surface-2); }
button.kg-cal__cell:focus-visible { box-shadow: var(--focus); border-radius: 12px; }
.kg-cal__cell.is-today .kg-cal__num { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); font-weight: 600; }
.kg-cal__cell.is-sel .kg-cal__num { background: var(--ink); color: var(--bg); box-shadow: none; }
.kg-cal__cell.is-today.is-sel .kg-cal__num { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.kg-cal__dots { position: absolute; z-index: 1; left: 50%; bottom: 8px; display: flex; gap: 3px; transform: translateX(-50%); }
.kg-cal__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.kg-cal__cell.is-past .kg-cal__dots i { opacity: .55; }
/* rentang beberapa hari (pameran): pita lembut di belakang angka */
.kg-cal__band { position: absolute; z-index: 0; left: 0; right: 0; top: 3px; height: 33px; background: color-mix(in srgb, var(--c) 15%, transparent); border-block: 1px solid color-mix(in srgb, var(--c) 26%, transparent); }
.kg-cal__band.is-s { left: 4px; border-left: 1px solid color-mix(in srgb, var(--c) 26%, transparent); border-radius: 17px 0 0 17px; }
.kg-cal__band.is-e { right: 4px; border-right: 1px solid color-mix(in srgb, var(--c) 26%, transparent); border-radius: 0 17px 17px 0; }
.kg-cal__band.is-s.is-e { border-radius: 17px; }
.kg-cal__cell.is-c0 .kg-cal__band:not(.is-s) { left: 2px; border-left: 0; border-radius: 6px 0 0 6px; }
.kg-cal__cell.is-c6 .kg-cal__band:not(.is-e) { right: 2px; border-right: 0; border-radius: 0 6px 6px 0; }
.kg-cal__cell.is-past .kg-cal__band { opacity: .55; }
button.kg-cal__cell:has(.kg-cal__band):hover { background: transparent; }
button.kg-cal__cell:not(.is-sel):has(.kg-cal__band):hover .kg-cal__num { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.kg-agenda { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--border); min-height: 124px; }
.kg-agenda__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kg-agenda__today { padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-ink); font-family: var(--font-mono); font-size: .6rem; font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.kg-agenda__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kg-agenda__item { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px 9px 6px; border-radius: 12px; color: var(--ink-2); text-decoration: none; transition: background-color .2s; }
.kg-agenda__item:hover { background: var(--surface-2); }
.kg-agenda__bar { width: 3px; height: 32px; border-radius: 3px; background: var(--c); }
.kg-agenda__txt { min-width: 0; }
.kg-agenda__txt b, .kg-agenda__txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kg-agenda__txt b { font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.kg-agenda__txt span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.kg-agenda__empty { padding: 6px 0; font-size: .86rem; color: var(--muted); }

/* =============================== TAB STATUS =============================== */
.kg-sentinel { display: block; height: 1px; }
.kg-tabbar { position: sticky; top: 76px; z-index: 40; padding-block: 6px; pointer-events: none; }
.kg-tabbar__inner { display: flex; justify-content: center; }
.kg-seg { pointer-events: auto; transition: box-shadow .3s, background-color .3s; }
.kg-tabbar.is-stuck .kg-seg { background: color-mix(in srgb, var(--surface-2) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--sh-md); }
.kg-seg .seg__btn { height: 44px; padding: 0 20px; font-size: .95rem; }
.kg-seg .seg__btn > span:first-child { white-space: nowrap; }
.kg-livebadge { letter-spacing: .1em; }
@media (max-width: 639px) {
  .kg-long { display: none; }
  .kg-seg { width: 100%; }
  .kg-seg .seg__btn { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 0 10px; font-size: .86rem; }
}
@media (max-width: 480px) { .kg-tabbar { top: 80px; } }
@media (max-width: 374px) { .kg-seg .seg__btn { padding: 0 7px; font-size: .8rem; gap: 5px; } .kg-seg .seg__count { font-size: .66rem; } }

/* =============================== PANEL =============================== */
.kg-panels { padding-block: clamp(28px, 4vw, 52px) var(--section-y); }
.kg-panel { outline: none; }
.kg-panel.kg-fade { animation: kg-fade .2s ease-out; }
@keyframes kg-fade { from { opacity: 0; } }
.kg-pending { opacity: 0; transform: translateY(18px); }

.kg-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; padding-bottom: clamp(22px, 3vw, 32px); margin-bottom: clamp(28px, 3.6vw, 44px); border-bottom: 1px solid var(--border); }
.kg-toolbar__intro { display: grid; gap: 10px; max-width: 560px; min-width: 0; }
.kg-toolbar__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.kg-toolbar__title em { font-style: italic; font-weight: 400; color: var(--accent-ink); font-variant-numeric: lining-nums; }
.kg-toolbar__sub { color: var(--muted); max-width: 56ch; }
.kg-toolbar__sub .tag-real { vertical-align: 1px; }
.kg-filters { display: grid; gap: 10px; min-width: 0; }
.kg-filter { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kg-filter__label { flex: none; width: 46px; }
.kg-filter__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.kg-filter__chips .chip { height: 34px; padding: 0 13px; font-size: .82rem; }
@media (max-width: 899px) {
  .kg-filters { width: 100%; }
  .kg-filter__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .kg-filter__chips::-webkit-scrollbar { display: none; }
  .kg-filter__chips .chip { flex: none; }
}

.kg-block + .kg-block { margin-top: clamp(52px, 6.5vw, 88px); }
.kg-blockhead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.kg-blockhead__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.72rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.kg-blockhead__meta { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
@media (min-width: 1100px) { .kg-next .ecard--feature { min-height: 440px; } }

/* timeline per bulan */
.kg-month { display: grid; gap: 14px; }
.kg-month + .kg-month { margin-top: 40px; }
.kg-month__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.kg-month__name { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.kg-month__yr { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.kg-month__n { font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kg-month__sub { flex-basis: 100%; margin-top: 6px; font-size: .9rem; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.kg-month__sub b { color: var(--ink); }
.kg-month__list { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1024px) {
  .kg-month { grid-template-columns: 188px minmax(0, 1fr); gap: 32px; }
  .kg-month__head { position: sticky; top: 156px; align-self: start; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
  .kg-month--tba .kg-month__name { font-size: 1.7rem; }
}
.kg-month--tba .kg-month__head { border-top-color: var(--accent); }

/* tanda "kamu terdaftar" pada kartu kegiatan */
.kg-mine { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: .74rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.kg-mine--bell { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-ink); }

/* sedang berlangsung */
.kg-live + .kg-live { margin-top: 36px; }
.kg-live__today { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 clamp(12px, 2.6vw, 28px); padding: 14px 20px; border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); border-top: 0; border-radius: 0 0 16px 16px; background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); font-size: .92rem; color: var(--ink-2); }
.kg-live__today > .icon { color: var(--live); flex: none; }
.kg-live__today p { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.kg-ticks { display: inline-flex; gap: 4px; flex: none; }
.kg-ticks i { width: 20px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.kg-ticks i.is-done { background: var(--primary); }
.kg-ticks i.is-now { background: var(--live); animation: kg-blink 1.8s ease-in-out infinite; }
@keyframes kg-blink { 50% { opacity: .45; } }

/* arsip */
.kg-year + .kg-year { margin-top: clamp(52px, 6vw, 80px); }
.kg-year__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.kg-year__num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: .9; letter-spacing: -.06em; color: var(--ink); }
.kg-year__n { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kg-archive { row-gap: 40px; }
.kg-switch { flex: none; }
.kg-switch__n { margin-left: 2px; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--muted); }

/* =============================== DETAIL (sheet) =============================== */
.kg-sheet .sheet__body { padding: 0; }
.kg-sheet .sheet__close--float { top: 16px; right: 16px; }
.kg-d { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(20px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px) clamp(28px, 4vw, 56px); }
.kg-d__grid { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .kg-d__grid { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 4.5vw, 64px); row-gap: 20px; }
  .kg-d__media { grid-column: 1; grid-row: 1; }
  .kg-d__side { grid-column: 1; grid-row: 2; align-self: start; }
  .kg-d__main { grid-column: 2; grid-row: 1 / span 2; padding-top: 4px; }
}
.kg-d__main { min-width: 0; }
.kg-d__media .poster { border-radius: 20px; box-shadow: var(--sh-lg); }
@media (max-width: 899px) {
  .kg-d { padding-top: 8px; }
  .kg-d__media .poster { aspect-ratio: 16 / 9; border-radius: 18px; }
  .kg-d__media .poster__date b { font-size: 12cqw; }
  .kg-d__media .poster__title { top: 14cqw; right: 26cqw; font-size: max(16px, 6.4cqw); }
  .kg-d__media .poster__top, .kg-d__media .poster__date span { font-size: max(9px, 2.6cqw); }
  .kg-d__media .poster__top { right: 18cqw; }
}
.kg-d__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 52px; }
@media (max-width: 899px) { .kg-d__tags { padding-right: 0; } }
.kg-d__title { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.5vw, 3.05rem); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; outline: none; }
.kg-d__sub { margin-top: 10px; max-width: 52ch; font-size: 1.06rem; line-height: 1.5; color: var(--muted); }

ul.kg-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.kg-fact { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.kg-fact__txt { display: grid; gap: 1px; min-width: 0; }
.kg-fact__txt b { font-weight: 700; line-height: 1.3; color: var(--ink); }
.kg-fact__txt span { font-size: .9rem; line-height: 1.4; color: var(--muted); }
.kg-calico { width: 48px; height: 50px; display: grid; grid-template-rows: 17px 1fr; overflow: hidden; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); background: var(--surface); text-align: center; box-shadow: var(--sh-sm); }
.kg-calico span { background: var(--pc); color: #FFFCF4; font-family: var(--font-mono); font-size: .58rem; font-weight: 500; line-height: 17px; letter-spacing: .14em; text-transform: uppercase; }
.kg-calico b { font-family: var(--font-mono); font-weight: 500; font-size: 1.25rem; line-height: 31px; letter-spacing: -.04em; color: var(--ink); }
.kg-fact__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); background: var(--surface); color: var(--accent-ink); }

/* kartu pendaftaran / pengingat / berlangsung / recap */
.kg-reg { margin-top: 30px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); scroll-margin-top: 16px; }
.kg-reg__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.kg-reg__head > div:first-child { display: grid; gap: 4px; min-width: 0; }
.kg-reg__title { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); outline: none; }
.kg-reg__meta { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.kg-reg__lead { max-width: 52ch; margin-top: 4px; color: var(--ink-2); }
.kg-reg__proof { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.kg-reg__proof .avatar { box-shadow: 0 0 0 2px var(--bg); }
.kg-reg__bar { margin-top: 16px; }
.kg-reg__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--ink-2); font-size: .9rem; }
.kg-reg__note .icon { color: var(--accent-ink); flex: none; }
.kg-reg__head:has(.kg-reg__bell) { flex-wrap: nowrap; }
.kg-reg__head:has(.kg-reg__bell) > div:first-child { flex: 1 1 auto; }
.kg-reg__bell { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }

.kg-form { margin-top: 22px; gap: 18px; }
.kg-form .field__label > span:first-child { display: inline; }
.kg-fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.kg-fieldset > legend { display: block; width: 100%; padding: 0; margin-bottom: 9px; }
.kg-fieldset > .field__error, .kg-fieldset > .field__note { margin-top: 8px; }
.kg-rcards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 8px; }
.kg-rcards .rcard__box { min-height: 76px; padding: 14px 14px 14px 44px; }
.kg-rcards .rcard__box::before { left: 14px; top: 15px; }
.kg-fieldset .field__note { display: block; font-size: .84rem; font-weight: 500; line-height: 1.45; color: var(--ok); }
.kg-gate { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--live) 32%, transparent); background: color-mix(in srgb, var(--live) 7%, var(--surface)); }
.kg-gate > .icon { flex: none; margin-top: 2px; color: var(--live); }
.kg-gate b { color: var(--ink); }
.kg-gate p { margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.kg-gate__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kg-consents { display: grid; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--border); }
.kg-consents .field { gap: 2px; }
.kg-form__submit { display: grid; gap: 10px; margin-top: 2px; }
.kg-form__submit--row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 16px; }
@media (max-width: 559px) { .kg-form__submit--row { grid-template-columns: minmax(0, 1fr); } .kg-form__submit--row .btn { width: 100%; } }
.kg-form__note { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.kg-form__note .icon { flex: none; margin-top: 2px; }
.btn.is-loading, .btn.is-loading[disabled] { opacity: .88; cursor: progress; }
.btn[data-kg-submit][disabled]:not(.is-loading) { opacity: .4; }
.kg-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: kg-spin .7s linear infinite; }
@keyframes kg-spin { to { transform: rotate(360deg); } }

/* layar sukses + tiket */
.kg-done { container: kgdone / inline-size; }
.kg-done__head { display: flex; align-items: flex-start; gap: 16px; }
.kg-done__ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--primary); color: var(--on-primary); box-shadow: var(--sh-md); transform: rotate(-6deg); }
.kg-done__ico--bell { background: var(--gold); color: #14180F; }
.kg-done__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); outline: none; }
.kg-done__text { margin-top: 6px; color: var(--ink-2); max-width: 56ch; }
.kg-done__sim { font-size: .85em; color: var(--muted); }
.kg-done__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kg-done__foot { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.kg-linkbtn { display: inline; padding: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.kg-linkbtn:hover { color: var(--ink); }

.kg-ticket { --notch: 13px; --tk-r: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 22px; color: var(--ink); filter: drop-shadow(0 16px 26px rgba(20,24,15,.17)) drop-shadow(0 2px 4px rgba(20,24,15,.08)); }
.kg-ticket__main, .kg-ticket__stub { background-color: var(--surface); background-image: var(--grain-paper); background-size: 180px; }
.kg-ticket__main {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); min-width: 0; overflow: hidden; border-radius: var(--tk-r) 0 0 var(--tk-r);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.kg-ticket__art { position: relative; min-height: 100%; }
.kg-ticket__art .poster { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.kg-ticket__body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 18px 20px; min-width: 0; }
.kg-ticket__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kg-ticket__brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.kg-ticket__brand img { width: 18px; height: 18px; }
.kg-ticket__type { color: var(--accent-ink); white-space: nowrap; }
.kg-ticket__title { font-family: var(--font-display); font-weight: 500; font-size: 1.42rem; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.kg-ticket__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 4px 0 0; }
.kg-ticket__kv div { min-width: 0; }
.kg-ticket__kv dt { font-family: var(--font-mono); font-size: .58rem; font-weight: 500; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kg-ticket__kv dd { margin: 3px 0 0; font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.kg-ticket__stub {
  display: grid; justify-items: center; align-content: center; gap: 8px; min-width: 172px; padding: 18px 20px;
  border-left: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 0 var(--tk-r) var(--tk-r) 0;
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.kg-ticket__qr .qr { width: 128px; height: 128px; border-radius: 6px; }
.kg-ticket__code { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: .14em; color: var(--ink); }
.kg-ticket__cap { font-family: var(--font-mono); font-size: .56rem; font-weight: 500; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; text-wrap: balance; }
@container kgdone (max-width: 560px) {
  .kg-ticket { grid-template-columns: minmax(0, 1fr); }
  .kg-ticket__main {
    grid-template-columns: minmax(0, 1fr); border-radius: var(--tk-r) var(--tk-r) 0 0;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .kg-ticket__art { height: 76px; min-height: 0; }
  .kg-ticket__art .poster__date { display: none; }
  .kg-ticket__stub {
    grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 16px; row-gap: 6px; min-width: 0;
    border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 0 0 var(--tk-r) var(--tk-r);
    -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .kg-ticket__qr { grid-row: span 2; }
  .kg-ticket__qr .qr { width: 104px; height: 104px; }
  .kg-ticket__code { align-self: end; font-size: 1.05rem; }
  .kg-ticket__cap { align-self: start; text-align: left; }
}

.kg-invite { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--forest); color: var(--on-forest); text-decoration: none; }
.kg-invite::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--forest-line); -webkit-mask: var(--kontur) 0 0 / 260px auto repeat; mask: var(--kontur) 0 0 / 260px auto repeat; }
.kg-invite__mark { color: var(--gold); }
.kg-invite__txt b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.2; color: var(--on-forest); }
.kg-invite__txt b em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.kg-invite__txt > span { display: block; margin-top: 4px; font-size: .88rem; color: var(--on-forest-muted); }
.kg-invite__arrow { color: var(--gold); transition: transform .25s var(--ease-out); }
.kg-invite:hover .kg-invite__arrow { transform: translateX(4px); }
@media (max-width: 479px) { .kg-invite { grid-template-columns: minmax(0, 1fr) auto; } .kg-invite__mark { display: none; } }

.kg-remdone { display: flex; align-items: flex-start; gap: 16px; }
.kg-remdone p { margin-top: 4px; color: var(--ink-2); }
.kg-remdone .kg-linkbtn { margin-top: 10px; }

/* berlangsung */
.kg-reg--live { border-color: color-mix(in srgb, var(--live) 26%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--live) 6%, var(--bg)), var(--bg) 55%); }
.kg-reg--live .kg-reg__head > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.kg-prog { display: grid; gap: 8px; margin-top: 18px; }
.kg-prog__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.kg-prog__row b { color: var(--ink); }
.kg-prog__row span { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.kg-prog .kg-ticks { margin-top: 4px; }
.kg-live__now { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); font-size: .92rem; color: var(--ink-2); }
.kg-live__now .icon { flex: none; margin-top: 1px; color: var(--live); }
.kg-live__now b { color: var(--ink); }
.kg-live__closed, .kg-live__open { margin-top: 18px; color: var(--ink-2); }
.kg-live__open { display: grid; justify-items: start; gap: 14px; }
.kg-live__remind { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.kg-live__remind .kg-reg__title { font-size: 1.25rem; }

/* recap */
.kg-recap__sum { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.14rem, 1.6vw, 1.32rem); line-height: 1.42; color: var(--ink); max-width: 56ch; }
.kg-recap__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 18px; }
.kg-stat { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); }
.kg-stat__v { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.kg-stat__l { font-family: var(--font-mono); font-size: .6rem; font-weight: 500; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kg-recap__gal { margin-top: 22px; }
.kg-recap__galhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.kg-recap__count { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kg-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kg-gal--2, .kg-gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kg-gal--1 { grid-template-columns: minmax(0, 1fr); }
.kg-gal__tile { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; color: rgba(255,252,244,.62);
  background: linear-gradient(calc(150deg + var(--k) * 29deg), color-mix(in oklab, var(--pc) calc(94% - var(--k) * 7%), #F0CC55 calc(6% + var(--k) * 1%)), color-mix(in oklab, var(--pc) 42%, #14180F)); }
.kg-gal__tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: rgba(240,204,85,.3); -webkit-mask: var(--kontur) calc(var(--k) * 41px) calc(var(--k) * 17px) / 210px auto repeat; mask: var(--kontur) calc(var(--k) * 41px) calc(var(--k) * 17px) / 210px auto repeat; }
.kg-gal--5 .kg-gal__tile:first-child { grid-column: span 2; aspect-ratio: auto; }
.kg-gal__ico { width: 28px; height: 28px; }
.kg-gal__tile figcaption { position: absolute; left: 10px; bottom: 8px; font-family: var(--font-mono); font-size: .56rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,244,.78); }
.kg-gal__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,17,12,.5); color: #FFFCF4; font-family: var(--font-display); font-size: 1.8rem; }
.kg-recap__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.kg-recap__note .icon { flex: none; margin-top: 2px; color: var(--accent-ink); }

/* bagian isi */
.kg-sec { margin-top: clamp(32px, 4vw, 44px); }
.kg-sec__h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.kg-sec__h::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.kg-prose { display: grid; gap: 1em; max-width: 64ch; color: var(--ink-2); }
.kg-sec__muted { color: var(--muted); }

.kg-run { list-style: none; margin: 0; padding: 0; }
.kg-run__item { position: relative; display: grid; grid-template-columns: 62px 18px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 0; }
.kg-run__item::before { content: ''; position: absolute; left: 82.5px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.kg-run__item:first-child::before { top: 18px; }
.kg-run__item:last-child::before { bottom: calc(100% - 18px); }
.kg-run__item:only-child::before { display: none; }
.kg-run__time { padding-top: 1px; text-align: right; font-family: var(--font-mono); font-size: .84rem; font-weight: 500; line-height: 1.5; letter-spacing: .02em; color: var(--accent-ink); white-space: nowrap; }
.kg-run__dot { position: relative; z-index: 1; width: 12px; height: 12px; margin: 5px auto 0; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); }
.kg-run__what { font-weight: 600; line-height: 1.5; color: var(--ink); }
.kg-run__item.is-done .kg-run__dot { border-color: var(--primary); background: var(--primary); }
.kg-run__item.is-done .kg-run__what { font-weight: 500; color: var(--muted); }
.kg-run__item.is-now .kg-run__dot { border-color: var(--live); background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 18%, transparent); }
.kg-run__now { display: inline-flex; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--live) 12%, transparent); color: var(--live); font-family: var(--font-mono); font-size: .6rem; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }

.kg-share { display: grid; gap: 12px; margin-top: clamp(30px, 3.6vw, 40px); padding-top: 22px; border-top: 1px solid var(--border); }
.kg-share__row { display: flex; flex-wrap: wrap; gap: 8px; }

.kg-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kg-more__item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); color: var(--ink-2); text-decoration: none; transition: border-color .2s, background-color .2s, transform .3s var(--ease-out); }
.kg-more__item:hover { border-color: var(--border); background: var(--bg); transform: translateX(2px); }
.kg-more__date { width: 46px; height: 48px; display: grid; grid-template-rows: 16px 1fr; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-align: center; }
.kg-more__date span { background: var(--c); color: #FFFCF4; font-family: var(--font-mono); font-size: .55rem; font-weight: 500; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.kg-more__date b { font-family: var(--font-mono); font-weight: 500; font-size: 1.08rem; line-height: 30px; color: var(--ink); }
.kg-more__txt { min-width: 0; }
.kg-more__txt b { display: block; font-weight: 700; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kg-more__txt span { display: block; font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kg-more__arrow { color: var(--muted); transition: transform .25s var(--ease-out); }
.kg-more__item:hover .kg-more__arrow { transform: translateX(3px); color: var(--ink); }

/* kolom samping: penyelenggara, tuan rumah, lokasi */
.kg-d__side { display: grid; gap: 14px; min-width: 0; }
.kg-side { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
.kg-org__row { display: flex; align-items: center; gap: 12px; }
.kg-org__mark { width: 44px; height: 44px; flex: none; }
.kg-org__row b { display: block; color: var(--ink); line-height: 1.3; }
.kg-org__row span span { display: block; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.kg-hostb__card { display: flex; justify-content: center; padding: 8px 0 4px; }
.kg-hostb__card .mcard { --mc-w: 220px; }
.kg-hostb__cap { font-size: .86rem; line-height: 1.5; color: var(--muted); }
.kg-hostb__cap b { color: var(--ink); }
.kg-place__name { font-weight: 700; line-height: 1.35; color: var(--ink); }
.kg-place__addr { margin-top: -6px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.kg-place__btn { justify-self: start; }
.kg-mini { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-2); }
.kg-mini__lines { position: absolute; inset: 0; z-index: -1; color: var(--ink); opacity: .11; }
.kg-mini__dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.kg-mini__dot.is-on { z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--pc); box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--accent); }
.kg-mini__dot.is-on::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: kg-ping 2.4s var(--ease-out) infinite; }
@keyframes kg-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.kg-mini__lbl { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.kg-mini__dot.is-r .kg-mini__lbl { left: auto; right: -6px; transform: none; }
.kg-mini__dot.is-l .kg-mini__lbl { left: -6px; transform: none; }
.kg-mini__tag { position: absolute; left: 9px; bottom: 7px; font-family: var(--font-mono); font-size: .54rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* bar Daftar menempel (mobile) */
.kg-dbar { display: none; overflow-anchor: none; }
@media (max-width: 899px) {
  .kg-dbar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px calc(-1 * clamp(20px, 3.4vw, 48px)) calc(-1 * clamp(28px, 4vw, 56px)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); transition: transform .35s var(--ease-out), opacity .25s; }
  .kg-dbar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
  .kg-dbar__txt { min-width: 0; }
  .kg-dbar__txt b, .kg-dbar__txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kg-dbar__txt b { font-size: .92rem; color: var(--ink); line-height: 1.3; }
  .kg-dbar__txt span { font-size: .78rem; color: var(--muted); }
  .kg-dbar .btn { flex: none; }
}

/* poster terbang (kartu → sheet) */
.kg-ghost { box-shadow: var(--sh-lg); will-change: left, top, width, height, opacity; }

/* =============================== TUAN RUMAH AFTER HOURS =============================== */
.kg-hostcard { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--forest); color: var(--on-forest); }
@media (min-width: 960px) { .kg-hostcard { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }
.kg-hostcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--forest-line); -webkit-mask: var(--kontur) 0 0 / 360px auto repeat; mask: var(--kontur) 0 0 / 360px auto repeat; }
.kg-hostcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 100% 0%, rgba(232,184,32,.14), transparent 70%), linear-gradient(90deg, var(--forest) 0%, color-mix(in srgb, var(--forest) 70%, transparent) 50%, transparent); }
.kg-hostcard .dateline { color: var(--gold-soft); }
.kg-hostcard__title { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.04; letter-spacing: -.02em; color: var(--on-forest); text-wrap: balance; }
.kg-hostcard__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.kg-hostcard__lead { margin-top: 16px; max-width: 48ch; font-size: 1.04rem; color: var(--on-forest-muted); }
.kg-hostcard__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kg-hostcard__steps { list-style: none; margin: 0; padding: 0; }
.kg-hostcard__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 0; border-top: 1px solid rgba(255,252,244,.16); }
.kg-hostcard__steps li:last-child { border-bottom: 1px solid rgba(255,252,244,.16); }
.kg-hostcard__no { grid-row: span 2; padding-top: 3px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: var(--gold-soft); }
.kg-hostcard__steps b { font-size: 1.04rem; color: var(--on-forest); }
.kg-hostcard__steps span:last-child { font-size: .9rem; color: var(--on-forest-muted); }

.kg-host__lead { color: var(--muted); }
.kg-hostdone { display: grid; justify-items: center; gap: 12px; padding: 18px 0 8px; text-align: center; }
.kg-hostdone__mark { color: var(--accent-ink); }
.kg-hostdone__title { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; line-height: 1.1; color: var(--ink); outline: none; }
.kg-hostdone p { max-width: 42ch; color: var(--ink-2); }

/* =============================== CETAK TIKET =============================== */
#kg-print { display: none; }
@media print {
  html.kg-print-mode, html.kg-print-mode body { overflow: visible !important; height: auto !important; background: #fff !important; padding: 0 !important; }
  html.kg-print-mode body::before { display: none !important; }
  html.kg-print-mode body > *:not(#kg-print) { display: none !important; }
  html.kg-print-mode #kg-print { display: block !important; padding: 10mm; color: #14180F; }
  html.kg-print-mode .kg-ticket { max-width: 175mm; filter: none; }
  html.kg-print-mode .kg-ticket__main, html.kg-print-mode .kg-ticket__stub { background-image: none; }
  .kg-print__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8mm; font-family: var(--font-mono); font-size: 9pt; letter-spacing: .1em; text-transform: uppercase; }
  .kg-print__note { margin-top: 6mm; font-size: 9pt; color: #5F6455; }
  html.kg-print-mode * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =============================== REDUCED MOTION =============================== */
@media (prefers-reduced-motion: reduce) {
  .kg-ticks i.is-now, .kg-mini__dot.is-on::after { animation: none; }
  .kg-pending { opacity: 1; transform: none; }
  .kg-dbar { transition: opacity .15s linear; }
  .kg-dbar.is-hidden { transform: none; }
}

/* =============================== PENYEMPURNAAN =============================== */

/* detail di mobile: judul sudah ada tepat di bawah poster → poster cukup motif + tanggal */
@media (max-width: 899px) {
  .kg-d__media .poster__title { display: none; }
  .kg-d__media .poster__date b { font-size: 14cqw; }
}
.kg-recap__stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }

/* tiket sempit: peserta & lokasi selebar penuh, tanggal + waktu berdampingan */
@container kgdone (max-width: 400px) {
  .kg-ticket__kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kg-ticket__kv > div:nth-child(1), .kg-ticket__kv > div:nth-child(4) { grid-column: 1 / -1; }
  .kg-done__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kg-done__actions > :first-child { grid-column: 1 / -1; }
  .kg-done__actions .btn { width: 100%; padding-inline: 12px; }
}
.kg-lbl-s { display: none; }
@container kgdone (max-width: 400px) { .kg-done__actions .kg-lbl-l { display: none; } .kg-done__actions .kg-lbl-s { display: inline; } }
