[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: 'Anek Gujarati', system-ui, sans-serif; }
body.idle, body.idle * { cursor: none !important; }
#screen { position: fixed; inset: 0; overflow: hidden; background: #000; }
.p-slide { position: absolute; inset: 0; }
.p-empty { color: #fff; display: grid; place-items: center; height: 100%; font-size: 28px; }

/* slide transitions */
.p-in-fade { animation: p-fade-in .6s ease both; }
.p-out-fade { animation: p-fade-out .6s ease both; }
.p-in-slide { animation: p-slide-in .65s cubic-bezier(.2,.8,.2,1) both; }
.p-out-slide { animation: p-slide-out .65s cubic-bezier(.2,.8,.2,1) both; }
.p-in-zoom { animation: p-zoom-in .65s cubic-bezier(.2,.8,.2,1) both; }
.p-out-zoom { animation: p-fade-out .5s ease both; }
.p-in-curtain { animation: p-curtain .8s cubic-bezier(.6,0,.2,1) both; }
.p-out-curtain { animation: p-fade-out .8s ease both; }
@keyframes p-fade-in { from { opacity: 0; } }
@keyframes p-fade-out { to { opacity: 0; } }
@keyframes p-slide-in { from { transform: translateX(100%); } }
@keyframes p-slide-out { to { transform: translateX(-30%); opacity: 0; } }
@keyframes p-zoom-in { from { transform: scale(1.08); opacity: 0; } }
@keyframes p-curtain { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .p-slide { animation: none !important; } }

/* overlays */
.ov { position: fixed; inset: 0; z-index: 20; background: #000; }
.ov-logo { background: radial-gradient(circle at 50% 45%, #fff 0, #FFF4EA 55%, #FCE0CE 100%); display: grid; place-items: center; }
.ov-logo img { width: min(42vh, 40vw); height: auto; filter: drop-shadow(0 20px 40px rgba(117,20,9,.25)); }

#ticker { position: fixed; left: 0; right: 0; bottom: 9.2vh; z-index: 15; background: linear-gradient(90deg, #751409, #A3260E 50%, #751409); color: #FFF3E2; height: 6.2vh; display: flex; align-items: center; overflow: hidden; box-shadow: 0 -2px 0 #F7A500, 0 2px 0 #F7A500; }
.tk-track { white-space: nowrap; animation: tk var(--tk-dur, 20s) linear infinite; padding-left: 100%; font-size: 3.4vh; font-weight: 700; }
@keyframes tk { to { transform: translateX(-100%); } }

/* start screen */
.start { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #7A160A, #3B0904 70%); color: #FFF3E2; overflow: auto; padding: 24px; }
.start::before, .start::after { content: ''; position: absolute; width: 38vh; height: 40vh; background: url(/assets/theme/mandala-corner.svg) no-repeat center/contain; opacity: .28; filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.4); pointer-events: none; }
.start::before { left: 0; bottom: 0; }
.start::after { right: 0; top: 0; transform: scale(-1, -1); }
.start-card { position: relative; max-width: 720px; text-align: center; }
.start-logo { width: 180px; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.start h1 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; margin: 12px 0 4px; line-height: 1.25; }
.start-title { font-size: clamp(17px, 2.2vw, 22px); color: #F7A500; font-weight: 600; margin: 0 0 28px; line-height: 1.35; }
.btn-start { font: 700 22px 'Anek Gujarati', sans-serif; background: #E84C18; color: #fff; border: 0; border-radius: 999px; padding: 16px 44px; cursor: pointer; box-shadow: 0 0 0 4px rgba(247,165,0,.35), 0 12px 30px rgba(0,0,0,.35); }
.btn-start:hover:not(:disabled) { background: #F25A22; }
.btn-start:disabled { opacity: .6; cursor: progress; }
.btn-start:focus-visible, .btn-ghost:focus-visible { outline: 3px solid #F7A500; outline-offset: 3px; }
.start-opt { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 22px 0 10px; font-size: 16px; }
.start-opt input { width: 18px; height: 18px; accent-color: #E84C18; }
.start-row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.btn-ghost { font: 600 15px 'Anek Gujarati', sans-serif; background: transparent; color: #FFF3E2; border: 1.5px solid rgba(255,243,226,.5); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.btn-ghost:hover { border-color: #F7A500; color: #F7A500; }
.start-status { font-size: 15px; opacity: .85; margin: 18px 0 6px; }
.start-keys { font-size: 13px; opacity: .6; margin: 0; }

/* toolbar */
.bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 6px; background: rgba(30,8,4,.86); color: #FFF3E2; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.bar button { font: 600 14px 'Anek Gujarati', sans-serif; background: transparent; color: inherit; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.bar button[data-act="prev"], .bar button[data-act="next"] { font-size: 24px; line-height: 1; padding: 2px 12px; }
.bar button:hover { background: rgba(255,255,255,.12); }
.bar-sep { width: 1px; height: 20px; background: rgba(255,255,255,.2); margin: 0 4px; }
.bar-follow { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.bar-follow input { accent-color: #E84C18; }
#bar-pos { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.net { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.net.ok { background: #1f6f43; }
.net.off { background: #b45309; }

.help { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.help-card { background: #FFFBF6; color: #1A1918; border-radius: 18px; padding: 28px 36px; max-width: 560px; }
.help-card h2 { margin: 0 0 12px; color: #751409; }
.help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.help-card dt { font-weight: 700; color: #E84C18; }
.help-card dd { margin: 0; }
.jump { position: fixed; top: 24px; right: 24px; z-index: 35; background: rgba(30,8,4,.9); color: #F7A500; font-size: 28px; font-weight: 800; padding: 10px 22px; border-radius: 14px; }
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 45; background: rgba(30,8,4,.92); color: #FFF3E2; padding: 10px 22px; border-radius: 999px; font-size: 16px; }

/* print / PDF backup */
body.print-mode { overflow: visible; height: auto; background: #fff; }
body.print-mode #screen, body.print-mode .bar { display: none; }
.print-page { position: relative; width: 1920px; height: 1080px; overflow: hidden; page-break-after: always; break-after: page; }
.print-page .k-stage { transform: none; }
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { background: #fff; overflow: visible; height: auto; }
  .start, .bar, #toast, #ticker, .ov { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
