@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --bg: #261d18; --card: #3e3028; --card2: #5e4a3c; --dark: #201814; --text: #fcf5e8; --muted: #c6b29a;
  --accent: #d6a86e; --accent-d: #805c3c; --accent-l: #f4daae; --red: #e46256; --red-d: #70362e;
  --green: #7acca4; --blue: #68c2d6; --amber: #f2c05c; --outline: #140e0b; --rim: #3a2b22;
  --fh: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --fb: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font-family: var(--fb); font-weight: 600; line-height: 1.45; min-height: 100vh; }
.bgv { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bgo { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(32,24,20,.72), rgba(32,24,20,.88)); }
@media (prefers-reduced-motion: reduce) { .bgv { display: none; } }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
svg.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-i] { display: inline-flex; align-items: center; }
.panel { background: linear-gradient(160deg, rgba(78,61,49,.94), rgba(34,26,21,.95)); border: 3px solid var(--outline); border-radius: 18px; box-shadow: 0 6px 0 var(--rim), 0 6px 0 3px var(--outline); }
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 3px; pointer-events: none; background: conic-gradient(from var(--a), var(--accent), transparent 25%, var(--accent-l) 50%, transparent 75%, var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 7s linear infinite; opacity: .75; }
@keyframes rot { to { --a: 360deg; } }
.actions { display: flex; align-items: center; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.who b { color: var(--text); font-family: var(--fh); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--outline); background: var(--card2); color: var(--text); padding: 7px 14px; border-radius: 12px; font-family: var(--fh); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.12); transition: transform .12s, border-color .15s, filter .15s; }
.btn:hover { border-color: var(--accent); filter: brightness(1.08); }
.btn:active { transform: scale(.95); }
.btn.primary { background: linear-gradient(180deg, var(--accent-l), var(--accent)); color: #2a1d12; }
.btn.full { width: 100%; padding: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--outline); background: var(--card2); color: var(--text); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.12); transition: transform .12s, color .15s, border-color .15s; font-size: 16px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-l); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.sm { width: 26px; height: 26px; font-size: 13px; }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }
.toolbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 18px; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav h1 { font-family: var(--fh); font-weight: 700; font-size: 24px; min-width: 190px; text-align: center; text-shadow: 0 2px 0 var(--outline); }
.tb-actions { display: flex; gap: 8px; justify-content: center; }
.cols { margin-bottom: 22px; }
.col { overflow: hidden; }
.col-head { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 12px 16px; border-bottom: 3px solid var(--outline); background: rgba(32,24,20,.45); }
.col-head small { display: block; color: var(--accent); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 800; }
.col-head h2 { font-family: var(--fh); font-size: 21px; font-weight: 700; line-height: 1.15; }
.count { min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; font-size: 18px; color: var(--accent-l); background: var(--accent-d); border: 2px solid var(--outline); border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.day { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 2px solid rgba(20,14,11,.7); }
.day:last-child { border-bottom: 0; }
.dbox { text-align: center; padding-top: 2px; }
.dbox b { display: block; font-family: var(--fh); font-size: 24px; line-height: 1; }
.dbox span { font-size: 10px; letter-spacing: 1px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.day.today .dbox b { color: var(--accent-l); }
.day.today .dbox span { color: var(--accent); }
.ents { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ent { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; }
.ent + .ent { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; }
.time { font-family: var(--fh); font-weight: 600; color: var(--accent); font-size: 14px; white-space: nowrap; margin-bottom: 1px; }
.time em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; margin-left: 4px; }
.main { min-width: 0; }
.ttl { font-family: var(--fh); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 8px; border: 2px solid var(--outline); background: var(--dark); font-size: 11px; font-weight: 800; color: var(--muted); text-decoration: none; white-space: nowrap; }
.chip.type { background: var(--accent-d); color: var(--accent-l); }
.chip.rl { color: var(--green); }
.chip.rbx { color: var(--blue); }
a.chip:hover { border-color: var(--accent); }
.note { margin-top: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.side .dur { color: var(--muted); font-size: 13px; white-space: nowrap; font-weight: 700; }
.tools { display: none; gap: 5px; }
body.is-admin .tools { display: flex; }
.badge { font-family: var(--fb); font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--outline); letter-spacing: .4px; text-transform: uppercase; }
.badge.live { background: var(--green); color: #12301f; animation: pulse 1.6s ease-in-out infinite; }
.badge.today { background: var(--amber); color: #3a2a0c; }
.badge.upcoming { background: var(--card2); color: var(--accent-l); }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.empty { grid-column: 1 / -1; text-align: center; padding: 44px 16px; color: var(--muted); font-family: var(--fh); font-size: 17px; }
.sc-card { overflow: hidden; margin-bottom: 14px; }
.panel { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 3px solid var(--outline); background: rgba(32,24,20,.45); }
.card-head h2 { font-family: var(--fh); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.h-ic { color: var(--accent); }
.sc { width: 100%; height: 420px; border: 0; display: block; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 0 34px; font-weight: 700; }
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin .guest-only { display: none !important; }
dialog { border: 0; background: transparent; color: var(--text); padding: 0; width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: visible; }
dialog::backdrop { background: rgba(20,14,11,.75); backdrop-filter: blur(3px); }
.dlg { padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h3 { font-family: var(--fh); font-size: 20px; }
label, .lab { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
label[hidden] { display: none; }
input, textarea { background: var(--dark); border: 2px solid var(--outline); color: var(--text); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 700; width: 100%; text-transform: none; letter-spacing: 0; transition: border-color .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
#durPrev { color: var(--accent-l); font-size: 13px; font-weight: 800; margin-top: -4px; }
#durPrev:empty { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--dark); border: 2px solid var(--outline); border-radius: 14px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-family: var(--fh); font-weight: 600; font-size: 14px; padding: 7px; border-radius: 10px; cursor: pointer; transition: .2s; }
.seg button.on { background: var(--accent-d); color: var(--text); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.err { color: var(--red); font-size: 13px; }
.err:empty { display: none; }
form.sub { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--outline); padding-top: 12px; }
.sub h4 { font-family: var(--fh); font-size: 15px; }
.admin-list { display: flex; flex-direction: column; gap: 6px; }
.arow { display: flex; align-items: center; justify-content: space-between; background: var(--dark); border: 2px solid var(--outline); padding: 6px 8px 6px 12px; border-radius: 12px; gap: 8px; }
.arow span { display: inline-flex; align-items: center; gap: 8px; }
.arow em { font-style: normal; font-size: 10px; color: var(--accent-l); background: var(--accent-d); padding: 1px 8px; border-radius: 999px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dark); border: 3px solid var(--outline); padding: 9px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .25s; font-family: var(--fh); font-weight: 600; font-size: 14px; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.tools { align-self: start; }
.hero, .book { position: relative; margin-bottom: 18px; text-align: center; }
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; z-index: 0; }
.hero::before, .book::before { content: ""; position: absolute; inset: 0; border-radius: 15px; z-index: 1; background: linear-gradient(180deg, rgba(32,24,20,.55), rgba(32,24,20,.82)); }
.hero-in, .book-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 22px; }
.hero-logo { height: 64px; width: auto; filter: drop-shadow(0 0 12px rgba(70,170,255,.5)); }
.tag { font-family: var(--fh); font-weight: 600; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-l); }
.stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stat { min-width: 128px; padding: 9px 16px; background: rgba(20,14,11,.6); border: 2px solid var(--outline); border-radius: 14px; backdrop-filter: blur(4px); }
.stat b { display: block; font-family: var(--fh); font-size: 30px; line-height: 1.1; color: var(--accent-l); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.stat i { font-style: normal; }
.hero .actions { justify-content: center; flex-wrap: wrap; }
.col-head h2 { text-align: left; }
.av { position: relative; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; border: 2px solid var(--outline); background: var(--dark); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.av-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; opacity: .9; }
.av[data-rbx] .av-bg { object-fit: cover; padding: 0; opacity: .45; filter: blur(1px); }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.book-in h2 { font-family: var(--fh); font-size: 22px; }
.book-in p { color: var(--text); font-size: 14px; max-width: 420px; }
.book-logo { height: 42px; width: auto; }
.dc-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin-top: 4px; }
.dc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; background: rgba(20,14,11,.72); border: 2px solid var(--outline); border-radius: 14px; }
.dc img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; padding: 5px; background: var(--dark); border: 2px solid var(--outline); }
.dc-t { flex: 1; min-width: 0; }
.dc-t b { display: block; font-family: var(--fh); font-size: 16px; overflow-wrap: anywhere; }
.dc-t span { font-size: 11px; color: #8ea1ff; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.foot img { height: 30px; width: auto; opacity: .85; }
.rp { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0; min-height: 0; color: var(--muted); }
.rp:empty { display: none; }
.rp img { width: 34px; height: 34px; border-radius: 10px; background: var(--dark); border: 2px solid var(--outline); }
.rp.ok { color: var(--text); } .rp.ok small { color: var(--muted); font-size: 12px; }
.rp.bad { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .vid { display: none; } }
@media (max-width: 560px) {
  .month-nav { width: 100%; justify-content: center; }
  .month-nav h1 { min-width: 0; font-size: 20px; flex: 1; }
  .day { grid-template-columns: 40px 1fr; padding: 10px; }
  .ent { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .av { width: 46px; height: 46px; border-radius: 13px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 label:first-child { grid-column: 1 / -1; }
  .hero-logo { height: 52px; }
  .stat { min-width: 110px; }
}

/* ---- v3: compact, dialog tengah, avatar pas, soundcloud ---- */
dialog { margin: auto; }
.dlg-head h3 { text-align: center; flex: 1; padding-left: 34px; }
.wrap { max-width: 700px; }
.hero { margin-bottom: 12px; }
.hero-in { gap: 8px; padding: 16px 14px 14px; }
.hero-logo { height: 46px; }
.tag { font-size: 13px; letter-spacing: 2.5px; }
.stats { gap: 8px; }
.stat { min-width: 110px; padding: 6px 12px; border-radius: 12px; }
.stat b { font-size: 24px; }
.stat span { font-size: 11px; }
.toolbar { margin: 4px 0 10px; gap: 8px; }
.month-nav h1 { font-size: 20px; min-width: 170px; }
.cols { margin-bottom: 12px; }
.col-head { padding: 8px 14px; }
.col-head h2 { font-size: 18px; }
.count { min-width: 34px; height: 34px; font-size: 16px; }
.day { grid-template-columns: 42px 1fr; gap: 8px; padding: 8px 12px; }
.dbox b { font-size: 20px; }
.ents { gap: 6px; }
.ent { grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.ent + .ent { padding-top: 6px; }
.ttl { font-size: 14px; }
.chips { margin-top: 3px; gap: 4px; }
.chip { height: 19px; font-size: 10.5px; padding: 0 7px; }
.note { margin-top: 3px; font-size: 11.5px; }
.tools { align-self: center; }
.av { width: 44px; height: 44px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #4a392f, #1c1511); }
.av-bg, .av[data-rbx] .av-bg { position: absolute; left: 50%; top: 50%; width: auto; height: 100%; max-width: none; object-fit: unset; padding: 0; transform: translate(-50%, -50%) scale(.82); }
.av:not([data-rbx]) .av-bg { width: 86%; height: auto; transform: translate(-50%, -50%); opacity: 1; filter: none; }
.av[data-rbx] .av-bg { height: 100%; width: auto; opacity: .4; filter: none; transform: translate(-50%, -50%) scale(2.4); }
.av-img { object-fit: cover; }
.book { margin-bottom: 12px; }
.book::before { display: none; }
.book-in { gap: 6px; padding: 14px; }
.book-in h2 { font-size: 18px; }
.book-in p { font-size: 13px; color: var(--muted); }
.dc-list { flex-direction: row; flex-wrap: wrap; max-width: none; gap: 8px; justify-content: center; margin-top: 6px; }
.dc { flex: 1 1 250px; padding: 8px 10px; background: var(--dark); }
.dc-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: #5865f2; border: 2px solid var(--outline); flex: none; }
.dc .btn { padding: 6px 12px; font-size: 13px; }
.sc-card { margin-bottom: 8px; }
.card-head { padding: 8px 14px; }
.card-head h2 { font-size: 16px; }
.sc-btns { display: flex; gap: 6px; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 10px; }
.chev { transition: transform .25s; transform: rotate(90deg); }
.sc-card.open .chev { transform: rotate(-90deg); }
.sc-body { padding: 10px; background: linear-gradient(180deg, rgba(214,168,110,.08), rgba(20,14,11,.5)); }
.sc { height: 166px; border-radius: 12px; border: 2px solid var(--outline); background: var(--dark); transition: height .3s ease; }
.sc-card.open .sc { height: 420px; }
.foot { padding: 6px 0 22px; }
@media (max-width: 560px) {
  .ent { grid-template-columns: 40px 1fr auto; }
  .av { width: 40px; height: 40px; }
  .day { grid-template-columns: 34px 1fr; padding: 8px; }
  .btn.sm .lbl { display: none; }
}

/* ---- v5: full animation ---- */
:root { --spring: cubic-bezier(.34,1.56,.64,1); --smooth: cubic-bezier(.22,1,.36,1); }
@keyframes pop { 0% { opacity: 0; transform: translateY(26px) scale(.92,.84); } 55% { opacity: 1; transform: translateY(-5px) scale(1.025,1.03); } 78% { transform: translateY(1px) scale(.992,.99); } 100% { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes slot { 0% { opacity: 0; transform: translate(var(--dx,0px),var(--dy,24px)) scale(.96); } 60% { opacity: 1; transform: translate(calc(var(--dx,0px) * -.08),calc(var(--dy,24px) * -.12)) scale(1.012); } 100% { opacity: 1; transform: none; } }
@keyframes leaveN { to { opacity: 0; transform: translateX(-28px) scale(.97); } }
@keyframes leaveP { to { opacity: 0; transform: translateX(28px) scale(.97); } }
@keyframes avpop { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 65% { opacity: 1; transform: scale(1.12) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes rollN { from { opacity: 0; transform: translateX(22px); filter: blur(4px); } }
@keyframes rollP { from { opacity: 0; transform: translateX(-22px); filter: blur(4px); } }
@keyframes bgIn { from { opacity: 0; filter: blur(10px); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-6px,-4px); } }
@keyframes blobA { from { transform: translate(-20%,-20%); } to { transform: translate(18%,14%); } }
@keyframes blobB { from { transform: translate(14%,18%); } to { transform: translate(-16%,-12%); } }
@keyframes shine { from { background-position: 160% 0, 0 0; } 55%, to { background-position: -60% 0, 0 0; } }
@keyframes floatY { 50% { transform: translateY(-3px); } }
@keyframes logoGlow { 50% { filter: drop-shadow(0 0 20px rgba(92,196,242,.85)); } }
@keyframes tagIn { from { opacity: 0; letter-spacing: 9px; } }
@keyframes glowT { 50% { text-shadow: 0 0 14px rgba(92,196,242,.85); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(122,204,164,.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(122,204,164,0); } }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes flashE { 0% { background: rgba(16,144,208,.4); box-shadow: 0 0 0 7px rgba(16,144,208,.4); } 100% { background: transparent; box-shadow: 0 0 0 7px rgba(16,144,208,0); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(34px) scale(.88) rotate(-1.2deg); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(18px) scale(.93); } }
@keyframes bdIn { from { opacity: 0; } }
@keyframes bdOut { to { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.bgv { animation: bgIn 1.8s ease .1s backwards, drift 38s ease-in-out 2s infinite alternate; }
.bgo { overflow: hidden; }
.bgo::before, .bgo::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .17; pointer-events: none; }
.bgo::before { left: -20vmax; top: -20vmax; background: radial-gradient(circle, #1090d0, transparent 65%); animation: blobA 22s ease-in-out infinite alternate; }
.bgo::after { right: -22vmax; bottom: -22vmax; background: radial-gradient(circle, #d6a86e, transparent 65%); animation: blobB 28s ease-in-out infinite alternate; }

.hero { animation: pop .95s ease-out .05s backwards; }
.toolbar { animation: pop .9s ease-out .24s backwards; }
.hero::before { background: linear-gradient(112deg, transparent 38%, rgba(120,205,255,.2) 50%, transparent 62%) no-repeat, linear-gradient(180deg, rgba(8,26,56,.5), rgba(24,18,16,.85)); background-size: 260% 100%, 100% 100%; animation: shine 9s ease-in-out 1.6s infinite; }
.hero-logo { animation: pop .9s ease-out .28s backwards, floatY 5s ease-in-out 1.3s infinite, logoGlow 4s ease-in-out 1.3s infinite; }
.tag { animation: tagIn .9s var(--smooth) .5s backwards; }
.stat { animation: pop .8s ease-out backwards; }
.stat:nth-child(1) { animation-delay: .4s; } .stat:nth-child(2) { animation-delay: .5s; }
body:not(.ready) .actions > * { animation: rise .6s var(--smooth) backwards; animation-delay: calc(.6s + var(--k,0) * 70ms); }
.actions > *:nth-child(1) { --k: 0; } .actions > *:nth-child(2) { --k: 1; } .actions > *:nth-child(3) { --k: 2; } .actions > *:nth-child(4) { --k: 3; }
body.ready .admin-only, body.ready .guest-only { animation: pop .55s ease-out backwards; }
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: pop .85s ease-out var(--rd,0ms) backwards; }
.book.in .dc { animation: pop .65s ease-out backwards; animation-delay: calc(var(--rd,0ms) + 260ms + var(--k,0) * 90ms); }
.dc:nth-child(1) { --k: 0; } .dc:nth-child(2) { --k: 1; } .dc:nth-child(3) { --k: 2; } .dc:nth-child(4) { --k: 3; }
.dc-av img { animation: fade .5s ease; }

.month-nav h1.roll-n { animation: rollN .5s var(--smooth); }
.month-nav h1.roll-p { animation: rollP .5s var(--smooth); }
#cols { --base: 20ms; }
#cols[data-dir=first] { --base: 380ms; --dx: 0px; --dy: 32px; }
#cols[data-dir=up] { --dx: 0px; --dy: 26px; }
#cols[data-dir=next] { --dx: 38px; --dy: 0px; }
#cols[data-dir=prev] { --dx: -38px; --dy: 0px; }
#cols.play .col, #cols.play .empty { animation: slot .65s ease-out var(--base) backwards; }
#cols.play .col-head .count { animation: pop .7s ease-out calc(var(--base) + 260ms) backwards; }
#cols.play .day { animation: rise .55s var(--smooth) backwards; animation-delay: calc(var(--base) + 140ms + var(--n,0) * 65ms); }
#cols.play .dbox, #cols.play .av { animation: avpop .65s ease-out backwards; animation-delay: calc(var(--base) + 230ms + var(--n,0) * 65ms); }
#cols[data-leave=next] .col, #cols[data-leave=next] .empty { animation: leaveN .19s ease-in forwards; }
#cols[data-leave=prev] .col, #cols[data-leave=prev] .empty { animation: leaveP .19s ease-in forwards; }
.day.today .dbox b { animation: glowT 2.6s ease-in-out infinite; }
.badge.live { display: inline-flex; align-items: center; animation: pulse 1.6s ease-in-out infinite, ring 1.6s ease-out infinite; }
.eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; margin-right: 5px; }
.eq s { display: block; width: 2px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq s:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; } .eq s:nth-child(3) { animation-duration: 1.1s; animation-delay: -.6s; }
.ent { border-radius: 12px; transition: transform .35s var(--spring); }
.ent.flash { animation: flashE 2.2s ease-out; }
.ent.leaving { height: 0 !important; opacity: 0; transform: translateX(44px) scale(.96); margin: 0; padding: 0 !important; overflow: hidden; transition: height .32s var(--smooth), opacity .22s ease, transform .32s var(--smooth), padding .32s; }
.av { transition: transform .4s var(--spring); }
.av-img { animation: avpop .5s ease-out; }
@media (hover: hover) {
  .ent:hover { transform: translateX(4px); }
  .ent:hover .av { transform: rotate(-5deg) scale(1.08); }
  .btn:hover { transform: translateY(-2px); }
  .icon-btn:hover { transform: translateY(-2px) scale(1.07); }
  a.chip:hover { transform: translateY(-2px); }
  #prev:hover svg { transform: translateX(-2px); } #next:hover svg { transform: translateX(2px); }
}
.btn:active { transform: scale(.94); } .icon-btn:active { transform: scale(.9); }
.btn, .icon-btn { transition: transform .3s var(--spring), border-color .2s, filter .2s, box-shadow .2s, color .2s; }
.btn { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-120%); }
.btn.primary:hover::after { transform: translateX(120%); transition: transform .7s var(--smooth); }
a.chip { transition: transform .25s var(--spring), border-color .2s; }
.month-nav .icon-btn svg { transition: transform .25s var(--spring); }

.sc { transition: height .6s var(--smooth); }
.chev { transition: transform .5s var(--spring); }
.toast { transition: opacity .25s ease, transform .5s var(--spring); }

dialog[open] .dlg { animation: dlgIn .55s var(--spring); }
dialog[open].out .dlg { animation: dlgOut .2s ease-in forwards; }
dialog[open]::backdrop { animation: bdIn .35s ease; }
dialog.out::backdrop { animation: bdOut .2s ease forwards; }
dialog[open] .dlg > * { animation: rise .5s var(--smooth) backwards; animation-delay: calc(.08s + var(--k,0) * 40ms); }
.dlg > *:nth-child(1) { --k: 0; } .dlg > *:nth-child(2) { --k: 1; } .dlg > *:nth-child(3) { --k: 2; } .dlg > *:nth-child(4) { --k: 3; } .dlg > *:nth-child(5) { --k: 4; } .dlg > *:nth-child(6) { --k: 5; } .dlg > *:nth-child(7) { --k: 6; } .dlg > *:nth-child(8) { --k: 7; } .dlg > *:nth-child(9) { --k: 8; } .dlg > *:nth-child(10) { --k: 9; } .dlg > *:nth-child(11) { --k: 10; } .dlg > *:nth-child(12) { --k: 11; }
.arow { animation: rise .45s var(--smooth) backwards; }
.arow:nth-child(2) { animation-delay: .05s; } .arow:nth-child(3) { animation-delay: .1s; } .arow:nth-child(4) { animation-delay: .15s; }
.seg { position: relative; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 7px); border-radius: 10px; background: var(--accent-d); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); transition: transform .45s var(--spring); }
.seg[data-mode=Roblox]::before { transform: translateX(calc(100% + 6px)); }
.seg button { position: relative; z-index: 1; }
.seg button.on { background: transparent; box-shadow: none; }
input, textarea { transition: border-color .2s, box-shadow .25s; }
input:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(16,144,208,.28); }
.err:not(:empty) { animation: shake .45s ease; }
.rp:not(:empty), #durPrev:not(:empty) { animation: rise .35s var(--smooth); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; }
}
/* ---- v4: aksen biru logo, avatar jelas ---- */
:root { --navy: #0a2f66; --sky: #1090d0; --sky-l: #5cc4f2; }
.glow::after { background: conic-gradient(from var(--a), var(--sky), transparent 25%, var(--accent-l) 50%, transparent 75%, var(--sky)); }
.hero::before { background: linear-gradient(180deg, rgba(8,26,56,.5), rgba(24,18,16,.85)); }
.stat { border-color: var(--navy); background: rgba(6,20,44,.62); }
.stat b { color: var(--sky-l); }
.col-head { background: linear-gradient(90deg, rgba(10,47,102,.55), rgba(32,24,20,.45)); border-bottom-color: var(--navy); }
.col-head small { color: var(--sky-l); }
.count { background: var(--navy); color: var(--sky-l); border-color: var(--outline); }
.day.today .dbox b { color: var(--sky-l); }
.day.today .dbox span { color: var(--sky); }
.time { color: var(--sky-l); }
.chip.map { color: var(--sky-l); }
.av { background: linear-gradient(145deg, #e6f6ff, #7fcaf0 60%, #3a9fd8); border: 2px solid var(--navy); box-shadow: 0 0 0 1px var(--outline), inset 0 -3px 0 rgba(10,47,102,.25); }
.av:not([data-rbx]) .av-bg { width: 94%; height: auto; opacity: 1; }
.av[data-rbx] .av-bg { width: 190%; height: auto; opacity: .9; transform: translate(-50%, -50%); }
.sc-body { background: linear-gradient(180deg, rgba(16,144,208,.12), rgba(20,14,11,.5)); }
.sc-card { border-color: var(--outline); }
.card-head { background: linear-gradient(90deg, rgba(10,47,102,.55), rgba(32,24,20,.45)); border-bottom-color: var(--navy); }
.h-ic { color: var(--sky-l); }
.dc { border-color: var(--navy); }
.dc-av.has { padding: 0; overflow: hidden; background: var(--dark); }
.dc-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dc-t span { color: var(--sky-l); }
.rp.ok { color: var(--sky-l); }
