/* Polaropos — tampilan bersama halaman sesi & galeri.
   Arah: malam acara — biru kobalt seperti backdrop, aksen kuning bintang. */
:root{
  --bg:#F3F4FA; --surface:#FFFFFF; --ink:#141A3D; --muted:#5B6185; --line:#DADDEB;
  --accent:#2A39B5; --on-accent:#FFFFFF; --star:#F2E98A; --star-ink:#141A3D;
  --skeleton:#E6E8F3; --scrim:rgba(10,13,36,.88);
  --f-display:"Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark){ :root{
  --bg:#0E1230; --surface:#171C45; --ink:#EEF0FA; --muted:#9AA0C4; --line:#2A3060;
  --accent:#F2E98A; --on-accent:#141A3D; --skeleton:#1F255A; --scrim:rgba(5,7,22,.92);
  color-scheme:dark; } }

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 var(--f-body)}
img,video{max-width:100%; display:block}
.wrap{max-width:1180px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right))}
.narrow{max-width:620px}
.mono{font-family:var(--f-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.muted{color:var(--muted)}
[hidden]{display:none!important}

/* header */
.top{padding-block:max(20px, env(safe-area-inset-top)) 8px; display:flex; align-items:center; justify-content:flex-end; gap:8px; color:var(--muted)}
.top svg{width:15px; height:15px; fill:var(--star); stroke:var(--accent); stroke-width:1.5; flex:none}
h1{font-family:var(--f-display); font-weight:800; letter-spacing:-.02em; line-height:.98; margin:8px 0 6px; text-wrap:balance}
.h-sess{font-size:clamp(34px, 10vw, 56px)}
.h-event{font-size:clamp(40px, 8vw, 76px)}

/* buttons */
.btn{font:600 15px/1 var(--f-body); border:0; border-radius:999px; padding:14px 20px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; min-height:48px}
.btn svg{width:18px; height:18px; flex:none}
.btn-primary{background:var(--accent); color:var(--on-accent)}
.btn-ghost{background:transparent; color:var(--ink); border:1px solid var(--line)}
.btn:focus-visible,.tab:focus-visible,.chip:focus-visible,.tile:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.btn[disabled]{opacity:.5; pointer-events:none}

/* tabs (halaman sesi) */
.tabs{display:flex; gap:4px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:4px; margin-block:18px 14px;
  position:sticky; top:max(8px, env(safe-area-inset-top)); z-index:5}
.tab{flex:1; border:0; background:transparent; color:var(--ink); font:600 14px/1 var(--f-body); padding:12px 8px; border-radius:999px; cursor:pointer; white-space:nowrap}
.tab[aria-selected="true"]{background:var(--accent); color:var(--on-accent)}
.tab small{font-weight:500; opacity:.7; margin-left:3px}

.panel{display:grid; gap:12px}
.media{position:relative; border-radius:10px; overflow:hidden; background:var(--skeleton)}
.media img,.media video{width:100%; height:auto}
.media .act{position:absolute; right:8px; bottom:8px; display:flex; gap:6px}
.icon{width:42px; height:42px; border-radius:50%; border:0; background:rgba(15,18,48,.62); color:#fff; display:grid; place-items:center; cursor:pointer; backdrop-filter:blur(6px)}
.icon svg{width:19px; height:19px}
.print-wrap{display:flex; justify-content:center}
.print-wrap .media{max-width:100%}
.print-wrap .media img{width:auto; max-height:72vh; margin:0 auto}
.pending{aspect-ratio:3/2; display:grid; place-items:center; color:var(--muted); font-size:14px; text-align:center; padding:16px;
  background:linear-gradient(100deg, var(--skeleton) 30%, var(--surface) 50%, var(--skeleton) 70%); background-size:300% 100%; animation:shimmer 1.6s linear infinite}
@keyframes shimmer{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.pending{animation:none}}

.actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:16px}
.actions .btn{flex:1 1 180px}
.notice{display:flex; gap:10px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:14px}
.pulse{width:10px; height:10px; border-radius:50%; background:var(--accent); flex:none; animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.pulse{animation:none}}
.foot{padding-block:28px max(28px, env(safe-area-inset-bottom)); color:var(--muted); font-size:13px; display:grid; gap:12px}

/* galeri event */
.head-row{display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:18px; margin-block:18px 26px}
.stats{display:flex; gap:22px; font-variant-numeric:tabular-nums}
.stats div{display:flex; flex-direction:column}
.stats b{font-family:var(--f-display); font-size:28px; font-weight:600; line-height:1}
.bar{position:sticky; top:0; z-index:5; background:var(--bg); border-block:1px solid var(--line); padding-top:env(safe-area-inset-top)}
.bar .wrap{display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; padding-block:10px}
.chips{display:flex; gap:6px; flex-wrap:wrap}
.chip{font:500 13px/1 var(--f-body); color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:9px 14px; cursor:pointer; font-variant-numeric:tabular-nums}
.chip[aria-pressed="true"]{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.chip small{opacity:.6; margin-left:4px}
.session{padding-block:20px; border-bottom:1px solid var(--line)}
.s-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; margin-bottom:12px}
.s-no{font-family:var(--f-display); font-weight:600; font-size:20px}
.s-link{margin-left:auto; color:var(--accent); font-weight:600; font-size:14px; text-decoration:none}
.reel{display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin}
.tile{position:relative; flex:0 0 auto; border:0; padding:0; background:var(--skeleton); border-radius:6px; overflow:hidden; cursor:zoom-in; display:block}
.tile img{display:block; width:100%; height:100%; object-fit:cover}
.reel .tile{height:180px}
.badge{position:absolute; left:6px; top:6px; background:var(--star); color:var(--star-ink); font:500 10px/1 var(--f-mono); letter-spacing:.08em; padding:4px 6px; border-radius:3px}
.cap{position:absolute; right:6px; bottom:6px; color:#fff; background:rgba(0,0,0,.45); font:500 10px/1 var(--f-mono); padding:4px 6px; border-radius:3px}
.grid{columns:4 200px; column-gap:10px}
.grid .tile{width:100%; margin:0 0 10px; break-inside:avoid}
.empty{padding-block:60px; text-align:center; color:var(--muted)}

/* lightbox */
.lb{position:fixed; inset:0; z-index:30; background:var(--scrim); display:flex; flex-direction:column;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.lb-top,.lb-bot{display:flex; align-items:center; justify-content:space-between; gap:10px; color:#fff; flex-wrap:wrap}
.lb-stage{flex:1; min-height:0; display:flex; align-items:center; justify-content:center; position:relative; padding-block:12px}
.lb-stage img,.lb-stage video{max-height:100%; max-width:100%; object-fit:contain; border-radius:4px}
.nav{position:absolute; top:50%; transform:translateY(-50%)}
.nav.prev{left:0} .nav.next{right:0}
.lb .btn-ghost{color:#fff; border-color:rgba(255,255,255,.35)}

.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:calc(20px + env(safe-area-inset-bottom)); z-index:40; background:var(--ink); color:var(--bg);
  padding:12px 16px; border-radius:10px; font-size:14px; max-width:calc(100% - 32px); box-shadow:0 8px 24px rgba(0,0,0,.25)}
