/* Leelo's main hall (home card + inside the hall) and committed study sessions. */

/* ---------- home: the big hall card ---------- */
.hall-hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; margin-bottom: 24px; overflow: hidden; position: relative;
  border: 3px solid transparent;
  border-image: conic-gradient(from var(--angle), #f4999e, #fcccd8, #ca6891, #ffe0f5, #f4999e) 1;
  background: linear-gradient(135deg, #fedbe1, #fdebeb 60%, #ffe0f5);
  box-shadow: 0 8px 0 var(--shadow), 0 0 40px rgba(255, 120, 190, .45);
  animation: spin 8s linear infinite, view-in .6s both;
  color: #542430;
}
.hall-hero-pic { position: relative; cursor: pointer; }
.hall-hero-pic canvas { width: 100%; display: block; aspect-ratio: 640 / 420; }
.hall-hero-pic:hover canvas { filter: brightness(1.05) saturate(1.1); }
.hall-live, .hall-host {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .9); border: 2px solid #ff9ec7; color: #d6267f;
}
.hall-host { top: auto; bottom: 10px; background: #ffd24a; border-color: #e0a82a; color: #4a2a08; animation: badge-bounce 1.4s ease-in-out infinite; }
.hall-hero-info { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hall-tag { font-size: 12px; font-weight: 700; color: #d6267f; letter-spacing: 1px; text-transform: uppercase; }
.hall-name { font-size: 30px; margin: 0; color: #b65189; text-shadow: 0 2px 0 #fcccd8; }
.hall-msg { margin: 0; color: #7a4a66; }
.hall-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hall-stats > div { background: #fff; border: 2px solid #ffd0e4; padding: 8px; text-align: center; display: grid; }
.hall-stats b { font-size: 24px; color: #df8096; font-variant-numeric: tabular-nums; }
.hall-stats span { font-size: 11px; color: #9a6a86; }
.big-btn { padding: 12px 20px; font-size: 16px; }
.tiktok-btn { display: inline-flex; align-items: center; padding: 10px 14px; border: 2px solid #1a1a2a; background: #1a1a2a; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 #25f4ee, -3px -3px 0 #fe2c55; }
.tiktok-btn:hover { transform: translateY(-2px); }

/* ---------- inside the hall ---------- */
.hall-banner {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; padding: 10px 14px;
  background: linear-gradient(90deg, #ffe3ef, #f0e6ff); color: #7a2a5a; border: 2px solid #ff9ec7; font-weight: 700;
}
.hall-banner-right { display: flex; gap: 6px; flex-wrap: wrap; }
.hall-banner .chip { background: #fff; border-color: #ff9ec7; color: #d6267f; }
.hall-banner .host-chip { background: #ffd24a; border-color: #e0a82a; color: #4a2a08; animation: badge-bounce 1.4s ease-in-out infinite; }
.scene-wrap.hall-wrap { border-color: #ff9ec7; box-shadow: 0 6px 0 var(--shadow), 0 0 30px rgba(255, 158, 199, .5); }
.scene-wrap.hall-wrap .scanlines { display: none; }

/* ---------- committed session bar ---------- */
.session-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 14px;
  background: var(--panel); border: 2px solid var(--neon); box-shadow: 0 0 18px rgba(255, 62, 165, .3); animation: view-in .3s both;
}
.session-bar.idle { border-color: var(--line); box-shadow: none; cursor: pointer; }
.session-bar.idle:hover { border-color: var(--soft); }
.sess-ring { width: 42px; height: 42px; transform: rotate(-90deg); flex: none; }
.sess-text b { font-size: 22px; color: var(--neon); font-variant-numeric: tabular-nums; }
.sess-warn { flex: 1; color: var(--muted); min-width: 160px; }
.session-bar.idle .sess-warn { display: none; }

/* ---------- session length picker ---------- */
.session-dlg { text-align: center; }
.session-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin: 16px 0; }
.session-opt { display: grid; padding: 14px 6px; background: var(--panel-2); border: 2px solid var(--line); transition: transform .12s, border-color .12s; }
.session-opt b { font-size: 26px; color: var(--neon); }
.session-opt span { font-size: 12px; color: var(--muted); }
.session-opt:hover { transform: translateY(-3px); border-color: var(--neon); box-shadow: 0 0 14px rgba(255, 62, 165, .4); }
.session-opt.recommended { border-color: var(--soft); }
.session-opt.recommended::after { content: '💗'; font-size: 12px; }

.hall-row b { color: #ff7ac8; }

@media (max-width: 860px) {
  .hall-hero { grid-template-columns: 1fr; }
  .hall-name { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
