/* Spice Wali Diwali — guest pages (entry + hall).
   .stage is a fixed-aspect frame (16:9 landscape / 9:16 portrait) that covers the viewport,
   so everything positioned in % of the stage lines up with the artwork on any screen. */
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --orange: #F24A0C; --orange-2: #D93D04; --blue: #1C3FD0; --ink: #26150A; --muted: #7A5A43; --cream: #FFF6E6; --gold: #C98A2B; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #F7E2BF; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.stage { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  background: url(/brand/frame-landscape.jpg) center / 100% 100% no-repeat; overflow: hidden; }
@media (orientation: portrait) { .stage { width: max(100vw, 56.25vh); height: max(100vh, 177.78vw); background-image: url(/brand/frame-portrait.jpg); } }

/* ---------- entry ---------- */
.entry-card { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); width: min(520px, 34%, 92vw); padding: 34px 36px 30px; border-radius: 28px;
  background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 30px 70px -28px rgba(120,50,0,.45); backdrop-filter: blur(8px); text-align: center; }
.eyebrow { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .28em; color: var(--blue); }
.entry-card h1 { margin: 10px 0 0; font-size: clamp(30px, 2.9vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 850; }
.entry-card h1 span { color: var(--orange); display: block; }
.entry-copy { margin: 12px 0 22px; color: var(--muted); font-size: 16px; }
.entry-form { text-align: left; }
.entry-form label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.entry-form input { width: 100%; height: 52px; border: 1.5px solid #E7CDB0; border-radius: 13px; padding: 0 16px; font-size: 17px; color: var(--ink); background: #fff; outline: none; }
.entry-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,74,12,.15); }
.primary-button { width: 100%; height: 54px; margin-top: 14px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-size: 17px; font-weight: 800;
  background: linear-gradient(90deg, var(--orange-2), var(--orange) 55%, #FF7A1A); box-shadow: 0 14px 26px -12px rgba(217,61,4,.7); }
.primary-button:hover { filter: brightness(1.05); }
.primary-button:disabled { opacity: .65; cursor: default; }
.entry-status { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: var(--orange-2); text-align: center; font-weight: 600; }

/* ---------- hall ---------- */
.player-zone { position: absolute; left: 50%; top: 56.5%; transform: translate(-50%, -50%); width: min(55%, 96vh); z-index: 4; }
.hall-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hall-bar .grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px -12px rgba(120,50,0,.5);
  font-weight: 800; font-size: 14.5px; color: var(--ink); border: 1px solid rgba(255,255,255,.9); white-space: nowrap; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #A8A29E; }
.pill.live { color: #fff; background: #E11D2E; }
.pill.live .dot { background: #fff; animation: pulse 1.4s infinite; }
.pill.soon .dot { background: #F59E0B; }
@keyframes pulse { 50% { opacity: .35; } }
.control-button { cursor: pointer; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.94); box-shadow: 0 8px 22px -12px rgba(120,50,0,.5); color: var(--ink); }
.control-button svg { width: 19px; height: 19px; }
.control-button:hover { transform: translateY(-1px); }
.player-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #140A05; box-shadow: 0 26px 60px -20px rgba(80,25,0,.55); border: 2px solid rgba(255,255,255,.65); }
.player-shell iframe, .player-shell video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stream-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #FFE9C7;
  background: radial-gradient(60% 70% at 50% 60%, #4A1D06 0%, #1E0C04 70%); }
.stream-empty .diya { font-size: clamp(34px, 4vw, 56px); filter: drop-shadow(0 0 18px rgba(255,170,40,.75)); animation: glow 2.4s ease-in-out infinite; }
.stream-empty h2 { margin: 12px 0 6px; font-size: clamp(18px, 1.8vw, 28px); font-weight: 800; color: #fff; }
.stream-empty p { margin: 0; font-size: clamp(13px, 1.1vw, 17px); color: #F5D6A8; max-width: 520px; }
@keyframes glow { 50% { filter: drop-shadow(0 0 30px rgba(255,190,60,.95)); transform: translateY(-2px); } }

.reaction-dock { position: absolute; z-index: 6; left: 15.6%; top: 56.5%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 4px; padding: 7px; border-radius: 999px;
  background: rgba(255,255,255,.95); box-shadow: 0 14px 34px -14px rgba(120,50,0,.5); border: 1px solid rgba(255,255,255,.9); }
.reaction-button { width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; font-size: 29px; cursor: pointer; transition: transform .15s, background .15s; }
.reaction-button:hover { background: #FFF1E2; transform: scale(1.08); }
.reaction-button:active { transform: scale(.9); }
.reaction-dock.off { opacity: .45; pointer-events: none; }
.full-page-reactions { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.floating-reaction { position: absolute; bottom: -70px; font-size: clamp(34px, 3.4vw, 56px); filter: drop-shadow(0 8px 10px rgba(0,0,0,.18));
  animation: rise var(--d, 4.4s) cubic-bezier(.2,.7,.25,1) forwards; }
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) scale(var(--s, 1)); }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 0px), calc(-1 * var(--h, 70vh))) scale(var(--s, 1)) rotate(var(--r, 0deg)); }
}
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; background: rgba(38,21,10,.92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
.stage:fullscreen { width: 100vw; height: 100vh; background-size: cover; }

@media (orientation: portrait) {
  .entry-card { top: 60%; width: min(440px, 88vw); padding: 26px 22px 22px; border-radius: 22px; }
  .entry-card h1 { font-size: clamp(28px, 8.4vw, 44px); }
  .player-zone { top: 53.5%; width: min(84%, 92vw); }
  .hall-bar { margin-bottom: 8px; gap: 6px; }
  .pill { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .control-button { width: 34px; height: 34px; }
  .player-shell { border-radius: 16px; }
  .reaction-dock { left: 50%; top: 74%; flex-direction: row; padding: 5px; }
  .reaction-button { width: 46px; height: 46px; font-size: 26px; }
}
@media (orientation: portrait) and (max-width: 380px) { .reaction-button { width: 40px; height: 40px; font-size: 23px; } .pill.name { display: none; } }
@media (orientation: landscape) and (max-height: 620px) {
  .entry-card { width: min(420px, 44%); padding: 18px 22px 16px; border-radius: 18px; }
  .entry-card h1 { font-size: clamp(22px, 3.6vw, 32px); } .entry-copy { margin: 6px 0 12px; font-size: 14px; }
  .entry-form input, .primary-button { height: 44px; }
  .reaction-button { width: 40px; height: 40px; font-size: 22px; }
  .pill, .control-button { height: 32px; } .control-button { width: 32px; }
}
