/* InfoLift - player layar tegak (desain full color).
   Kanvas desain 1080 x 1920, diskalakan otomatis ke layar (1440 x 2560 = 1,333x). */
:root {
  --font-judul: "Oswald", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
  --font: "Roboto", "Inter", "Segoe UI", system-ui, sans-serif;
}

html, body {
  margin: 0; height: 100%; overflow: hidden; background: #000;
  cursor: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}

#stage {
  --latar: #0b3a9e;
  --judul: #ffffff;
  --judul2: #ffd23f;
  --judul-garis: #0a1f66;
  --bingkai: #ffc400;
  --gold: #ffc400;
  --navy: #071a52;
  position: absolute; left: 50%; top: 50%;
  width: 1080px; height: 1920px;
  transform-origin: 50% 50%;
  overflow: hidden; font-family: var(--font); color: #10203a;
  background: var(--latar);
}

/* ---------- latar ---------- */
#bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--latar); background-size: cover; background-position: center; }
#bg.default { background-image: url("latar.svg"); }

/* ---------- susunan utama (atas ke bawah) ---------- */
#layout { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 0 34px 18px; z-index: 2; }
#layout > * { flex: none; }
#layout > * + * { margin-top: 18px; }

/* ---------- header ---------- */
#hdr { display: flex; align-items: center; padding: 14px 6px 34px; box-sizing: border-box; }
#logoBox { height: 100%; flex: none; margin-right: 26px; display: flex; align-items: center; justify-content: center; }
#logo { height: 100%; max-width: 200px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 2px rgba(255, 255, 255, .6)); }
#logoBox.off { display: none; }
#hdr .title { flex: 1; min-width: 0; text-align: center; font-family: var(--font-judul); font-weight: 700; line-height: 1.04; }
#jk {
  display: inline-block; font-family: var(--font); font-weight: 800; font-size: 22px; letter-spacing: 5px; text-transform: uppercase;
  color: #0a1f66; background: linear-gradient(90deg, #ffde59, #ffb300); padding: 4px 18px 5px; border-radius: 99px; margin-bottom: 8px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
#jk:empty { display: none; }
#j1, #j2 { white-space: nowrap; letter-spacing: 1px; text-shadow: 3px 0 0 var(--judul-garis), -3px 0 0 var(--judul-garis), 0 3px 0 var(--judul-garis), 0 -3px 0 var(--judul-garis), 2px 2px 0 var(--judul-garis), -2px 2px 0 var(--judul-garis), 2px -2px 0 var(--judul-garis), -2px -2px 0 var(--judul-garis), 0 7px 0 rgba(0, 0, 0, .3), 0 12px 22px rgba(0, 0, 0, .35); }
#j1 { color: var(--judul); }
#j2 { color: var(--judul2); }

/* ---------- konten: video + jam + slide ---------- */
#content { display: flex; min-height: 0; }
.card-frame {
  position: relative; border-radius: 22px; padding: 7px; box-sizing: border-box;
  background: linear-gradient(140deg, #ffde59 0%, #ff8a00 30%, #ff1f5a 62%, #7c3aed 100%);
  box-shadow: 0 16px 34px rgba(0, 10, 50, .45);
}
.card-frame.alt { background: linear-gradient(160deg, var(--bingkai) 0%, #00e0ff 55%, #1e88e5 100%); }
.card-frame > .zone { width: 100%; height: 100%; border-radius: 16px; }
#mainCard { height: 100%; }
#zMain { background: #000; }
#rightCol { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 20px; }
#rightCol > * + * { margin-top: 20px; }

#clock {
  flex: none; height: 270px; border-radius: 22px; padding: 22px 26px; box-sizing: border-box; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #ff2d55 0%, #e3122b 45%, #ff7a00 100%);
  box-shadow: 0 16px 34px rgba(0, 10, 50, .45), inset 0 0 0 3px rgba(255, 255, 255, .25);
  display: flex; flex-direction: column; justify-content: center;
}
#clock::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
#clock::after { content: ""; position: absolute; right: 40px; bottom: -90px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 222, 89, .18); }
#cDay { font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: #ffe27a; white-space: nowrap; position: relative; z-index: 1; }
#cDate { font-size: 30px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
#cTime { display: flex; align-items: baseline; margin-top: 6px; white-space: nowrap; position: relative; z-index: 1; }
#cHM { flex: none; font-family: var(--font-judul); font-size: 108px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 1px; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
#cZone { flex: none; margin-left: 12px; font-size: 26px; font-weight: 800; color: #e3122b; background: #fff; padding: 2px 10px; border-radius: 8px; }
#sideCard { flex: 1; min-height: 0; }
#zSide { background: #fff; }

.zone { position: relative; overflow: hidden; }
.zone .layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; object-fit: contain; display: block; background: transparent; }
.zone .layer.show { opacity: 1; }
.zone.cover .layer { object-fit: cover; }
.zone .empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .65); font-size: 30px; padding: 30px; }
#zSide .empty { color: #8a96a8; }

/* ---------- teks berjalan ---------- */
.ticker {
  height: 74px; display: flex; align-items: stretch; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, #06154a, #0b2f86 50%, #06154a);
  box-shadow: 0 10px 24px rgba(0, 10, 50, .4), inset 0 0 0 3px var(--gold);
}
.ticker.alt { box-shadow: 0 10px 24px rgba(0, 10, 50, .4), inset 0 0 0 3px #00e0ff; }
.tk-label {
  flex: none; display: flex; align-items: center; padding: 0 24px 0 22px; position: relative; z-index: 1;
  font-family: var(--font-judul); font-weight: 700; font-size: 32px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #ff1f4b, #e3122b); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); padding-right: 40px;
}
.ticker.alt .tk-label { background: linear-gradient(135deg, #ffb300, #ff6d00); color: #1a1033; }
.tk-label:empty { display: none; }
.tk-view { flex: 1; position: relative; overflow: hidden; }
.tk-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; white-space: nowrap; font-size: 36px; font-weight: 600; color: #fff; will-change: transform; }
.tk-track span { padding: 0 34px 0 0; }
.tk-track span::before { content: "◆"; color: var(--gold); margin-right: 26px; font-size: 24px; vertical-align: 3px; }
.ticker.alt .tk-track span::before { color: #00e0ff; }
@keyframes il-ticker { from { transform: translateX(0); } to { transform: translateX(var(--to)); } }

/* ---------- denah lantai ---------- */
#floors {
  position: relative; padding: 16px 20px 20px; border-radius: 26px; box-sizing: border-box; min-height: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 14px 30px rgba(0, 10, 50, .35);
  display: flex; flex-direction: column;
}
#floorTitle {
  align-self: center; margin-bottom: 12px; font-family: var(--font-judul); font-weight: 700; font-size: 30px; letter-spacing: 3px; text-transform: uppercase; color: #0a1f66;
  background: linear-gradient(90deg, #ffde59, #ffb300); padding: 2px 26px 4px; border-radius: 99px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
#floorTitle:empty { display: none; }
#floorGrid { flex: 1; display: grid; grid-gap: 14px 14px; gap: 14px 14px; min-height: 0; }
.fl {
  position: relative; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; min-height: 0;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .28), 0 10px 18px rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255, 255, 255, .28);
  --c1: #1f4fd8; --c2: #12308f;
  background: linear-gradient(160deg, var(--c1), var(--c2));
}
.fl::after { content: ""; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.fl .lb {
  display: flex; align-items: center; font-family: var(--font-judul); font-weight: 700; font-size: 26px; color: var(--c2);
  background: rgba(255, 255, 255, .92); padding: 1px 12px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fl .lb i { font-style: normal; display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--c2); color: #fff; font-size: 20px; padding: 0 4px; }
.fl .is > div { white-space: nowrap; }
.fl .is { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6px 8px; color: #fff; font-family: var(--font-judul); font-weight: 700; text-transform: uppercase; line-height: 1.05; min-height: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.fl.w-biru { --c1: #2f6bff; --c2: #1237a8; }
.fl.w-navy { --c1: #2b3f78; --c2: #111c44; }
.fl.w-merah { --c1: #ff2d47; --c2: #b3001b; }
.fl.w-hijau { --c1: #1fbf6a; --c2: #087a3d; }
.fl.w-oranye { --c1: #ff9a1f; --c2: #d84f00; }
.fl.w-ungu { --c1: #9b4dff; --c2: #5a1fb0; }
.fl.w-tosca { --c1: #14c8c8; --c2: #007a8a; }
.fl.w-pink { --c1: #ff4fa3; --c2: #b0105e; }
.fl.w-kuning { --c1: #ffd23f; --c2: #e09400; }
.fl.w-kuning .is { color: #2a1a00; text-shadow: none; }
.fl.w-abu { --c1: #7a8696; --c2: #3e4652; }

/* ---------- footer ---------- */
#ftr { flex: 1 1 auto !important; min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
#ftrLines { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 20px; text-align: center; }
#ftrLines div + div { margin-top: 4px; }
#ftrLines div { font-family: var(--font-judul); font-weight: 700; color: #fff; line-height: 1.1; text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 16px rgba(0, 0, 0, .4); white-space: nowrap; }

/* ---------- kotak info / saran / kritik (WhatsApp) ---------- */
#waBox {
  flex: 1 1 auto; min-height: 0; margin-top: 12px; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #0fa958, #077a5e 55%, #0a5a8a);
  box-shadow: 0 14px 30px rgba(0, 10, 50, .45), inset 0 0 0 3px rgba(255, 255, 255, .35);
}
.wa-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 8px; color: #fff; }
.wa-title { display: flex; align-items: center; min-width: 0; }
.wa-title svg { margin-right: 12px; width: 40px; height: 40px; flex: none; fill: #fff; stroke: #0a7a4a; stroke-width: 1.8; stroke-linecap: round; }
.wa-title svg path:last-child { fill: none; }
.wa-title b { font-family: var(--font-judul); font-weight: 700; font-size: 32px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-num { margin-left: 16px; flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.wa-num small { font-size: 18px; font-weight: 600; color: #c9ffe0; }
.wa-num b { font-family: var(--font-judul); font-size: 38px; color: #ffe066; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.wa-body { position: relative; margin: 0 12px 12px; background: #fff; border-radius: 14px; min-height: 0; flex: 1; }
.wa-card { position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: border-box; padding: 10px 20px 26px 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s ease, transform .5s ease; }
.wa-card.out { opacity: 0; transform: translateY(10px); }
.wa-card .wa-text { font-size: 32px; font-weight: 600; line-height: 1.2; color: #10203a; overflow: hidden; flex: 0 1 auto; min-height: 0; }
.wa-card .wa-text::before { content: "“"; color: #0fa958; font-weight: 800; margin-right: 4px; }
.wa-card .wa-text::after { content: "”"; color: #0fa958; font-weight: 800; margin-left: 2px; }
.wa-card .wa-meta { margin-top: 6px; display: flex; align-items: center; font-size: 22px; color: #5b6a80; white-space: nowrap; }
.wa-meta > * + * { margin-left: 12px; }
.wa-kat { font-size: 19px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff; padding: 3px 12px; border-radius: 8px; background: #0b5cc4; }
.wa-kat.k-saran { background: #0f9d58; }
.wa-kat.k-kritik { background: #e3122b; }
.wa-kat.k-pesan { background: #7b2cbf; }
.wa-from { font-weight: 700; color: #0a7a4a; font-variant-numeric: tabular-nums; }
.wa-card.kosong .wa-text { color: #3a4a62; }
.wa-card.kosong .wa-text::before, .wa-card.kosong .wa-text::after { content: none; }
#waDots { position: absolute; right: 16px; bottom: 10px; display: flex; }
#waDots i + i { margin-left: 6px; }
#waDots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e3; }
#waDots i.on { background: #0fa958; width: 22px; border-radius: 9px; }

/* ---------- jadwal ruang pola ---------- */
#jdBox {
  flex: 1 1 auto; min-height: 0; margin-top: 12px; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #5b21b6, #2343c4 55%, #0b7fd1);
  box-shadow: 0 14px 30px rgba(0, 10, 50, .45), inset 0 0 0 3px rgba(255, 222, 89, .7);
}
.jd-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 8px; color: #fff; }
.jd-title { display: flex; align-items: center; min-width: 0; }
.jd-title svg { margin-right: 12px; width: 40px; height: 40px; flex: none; fill: none; stroke: #ffd23f; stroke-width: 2; stroke-linecap: round; }
.jd-title b { font-family: var(--font-judul); font-weight: 700; font-size: 32px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jdTgl { flex: none; margin-left: 16px; font-family: var(--font-judul); font-weight: 700; font-size: 28px; color: #ffe066; white-space: nowrap; }
.jd-body { flex: 1; min-height: 0; display: flex; margin: 0 12px 12px; }
.jd-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; }
.jd-col + .jd-col { margin-left: 12px; }
.jd-room { flex: none; display: flex; align-items: center; padding: 6px 14px; color: #fff; background: #d3142b; }
.jd-col:nth-child(2) .jd-room { background: #1458b8; }
.jd-col:nth-child(3) .jd-room { background: #0f9d58; }
.jd-room b { flex: 1; min-width: 0; font-family: var(--font-judul); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-room i { flex: none; margin-left: 8px; font-style: normal; font-weight: 800; font-size: 18px; letter-spacing: 1px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.jd-list { flex: 1; min-height: 0; position: relative; overflow: hidden; padding: 6px 14px 18px; display: flex; flex-direction: column; justify-content: flex-start; transition: opacity .45s ease; }
.jd-list.out { opacity: 0; }
.jd-item { flex: none; padding: 6px 0 7px; }
.jd-item + .jd-item { border-top: 2px dashed #e1e7f0; }
.jd-time { display: flex; align-items: center; font-family: var(--font-judul); font-weight: 700; font-size: 26px; color: #1237a8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jd-badge { margin-left: 10px; font-family: var(--font); font-style: normal; font-weight: 800; font-size: 15px; letter-spacing: 1px; color: #fff; padding: 2px 8px; border-radius: 6px; background: #8a96a8; }
.jd-item.now .jd-badge { background: #0f9d58; animation: il-pulse 1.6s ease-in-out infinite; }
.jd-item.next .jd-badge { background: #1458b8; }
.jd-item.rawat .jd-badge { background: #e67300; }
.jd-item.rawat .jd-time { color: #b45309; }
.jd-item.done { opacity: .5; }
.jd-ket { font-size: 24px; font-weight: 600; line-height: 1.2; color: #10203a; max-height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #3a4a62; font-size: 24px; font-weight: 600; }
.jd-empty small { margin-top: 4px; font-size: 20px; font-weight: 700; color: #0f9d58; text-transform: uppercase; letter-spacing: 1px; }
.jd-dots { position: absolute; right: 10px; bottom: 6px; display: flex; }
.jd-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfd8e3; }
.jd-dots i + i { margin-left: 5px; }
.jd-dots i.on { width: 18px; border-radius: 8px; background: #5b21b6; }
.jd-err { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; color: #5b6a80; font-size: 24px; text-align: center; padding: 10px; }

/* ---------- lapisan khusus ---------- */
#sleep { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 50; display: none; }
#sleep.on { display: block; }
#alarm { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: none; background: radial-gradient(circle at 50% 40%, #ff2d47, #8d0717); align-items: center; justify-content: center; padding: 80px; }
#alarm.on { display: flex; }
#alarm .box { background: #fff; border-radius: 28px; padding: 70px 60px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); width: 100%; border: 10px solid #ffc400; }
#aTitle { font-family: var(--font-judul); font-weight: 700; font-size: 110px; color: #c7102b; line-height: 1; margin-bottom: 40px; animation: il-pulse 1.6s ease-in-out infinite; }
#aText { font-size: 64px; font-weight: 700; line-height: 1.25; color: #10203a; white-space: pre-line; }
@keyframes il-pulse { 50% { opacity: .55; } }

#msg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; display: none; align-items: center; justify-content: center; text-align: center; padding: 80px; font-size: 44px; font-weight: 600; color: #fff; background: rgba(5, 20, 50, .88); white-space: pre-line; }
#msg.on { display: flex; }
#net { position: absolute; right: 14px; bottom: 10px; z-index: 80; font-size: 18px; color: rgba(255, 255, 255, .8); display: none; text-shadow: 0 1px 2px #000; }
#net.on { display: block; }
#net::before { content: "●"; color: #ffb000; margin-right: 6px; }

#stage.loading #layout { visibility: hidden; }
.hidden { display: none !important; }
