:root {
  --bg: #f6ddbc;
  --bg-soft: #f8e8d3;
  --surface: #fffaf1;
  --surface-strong: #fff4e3;
  --text: #3b1708;
  --muted: #6b4f3d;
  --bhagwa: #cf4f00;
  --bhagwa-deep: #9f3400;
  --gold: #c99435;
  --border: rgba(78, 31, 8, 0.14);
  --shadow: 0 18px 42px rgba(121, 53, 10, 0.15);
  --ok: #2b8a3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  background:
    radial-gradient(circle at 5% 5%, rgba(255, 178, 81, 0.45), transparent 22%),
    radial-gradient(circle at 95% 0%, rgba(224, 116, 27, 0.42), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, #f7e2c7 100%);
  min-height: 100vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.orb-1 { top: -110px; right: -90px; background: #e77719; }
.orb-2 { bottom: -100px; left: -90px; background: #f2c690; }

.topbar,
.layout,
.footer {
  position: relative;
  z-index: 1;
}

.page-shell {
  position: relative;
  z-index: 4;
}

.topbar {
  width: min(1280px, calc(100% - 28px));
  margin: 14px auto 0;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 251, 244, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--bhagwa), #e7781f);
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(121, 53, 10, 0.34);
  border: 2px solid rgba(128, 0, 32, 0.35);
  background: #fdfbf7;
}

.brand-title {
  font-weight: 800;
  color: var(--bhagwa-deep);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.brand-sub-home {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.brand-sub-hi {
  font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #5b2a10;
}

.brand-sub-en {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #7a5a45;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(78, 31, 8, 0.16);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.menu a.active,
.menu a:hover {
  color: var(--bhagwa-deep);
}

.status {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.chip.ok {
  color: var(--ok);
  border-color: rgba(43, 138, 62, 0.35);
}

.layout {
  width: min(1280px, calc(100% - 28px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 14px;
}

.page-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 14px auto 0;
  display: grid;
  gap: 14px;
}

.page-shell.two-col {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: var(--shadow);
}

.side {
  padding: 16px;
  position: sticky;
  top: 14px;
  height: fit-content;
}

.side h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bhagwa-deep);
}

.side .list {
  display: grid;
  gap: 10px;
}

.side .item {
  border: 1px solid rgba(207, 79, 0, 0.16);
  border-radius: 14px;
  background: #fff7eb;
  padding: 11px 12px;
}

.item strong {
  display: block;
  font-size: 13px;
}

.item span {
  font-size: 12px;
  color: var(--muted);
}

.main {
  display: grid;
  gap: 14px;
}

.hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  background:
    radial-gradient(circle at 10% 10%, rgba(224, 116, 27, 0.17), transparent 26%),
    linear-gradient(180deg, #fffdf8, #ffefd9);
}

.hero-copy {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.hero-table {
  display: grid;
  grid-template-columns: clamp(96px, 11vw, 132px) 1fr;
  gap: 16px;
  align-items: start;
}

.hero-col-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 132px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(78, 31, 8, 0.22);
  background: rgba(255, 248, 236, 0.95);
  box-shadow: 0 10px 24px rgba(113, 52, 14, 0.18);
  object-fit: contain;
}

.hero-col-text {
  display: grid;
  gap: 0;
  align-content: start;
}

.hero-main-hi {
  margin: 0;
  color: #5f2205;
  font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-size: clamp(1.02rem, 1.85vw, 1.36rem);
  font-weight: 700;
  line-height: 1.34;
}

.hero-main-en {
  margin: 0;
  color: #5a3b2b;
  font-size: clamp(0.94rem, 1.35vw, 1.08rem);
  line-height: 1.46;
  font-weight: 600;
}

.hero-sub-hi {
  margin: 12px 0 0;
  color: #6b2a09;
  font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-size: clamp(0.96rem, 1.55vw, 1.2rem);
  line-height: 1.36;
  font-weight: 700;
}

.hero-divider {
  margin: 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(84, 49, 29, 0.72);
}

.hero-divider-icon {
  flex: 0 0 auto;
  color: #7d5b46;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1;
}

.hero-sub-en {
  margin: 0;
  color: #6f5849;
  font-size: clamp(0.9rem, 1.22vw, 1rem);
  line-height: 1.5;
  font-weight: 600;
}

.hero-copy .actions {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(207, 79, 0, 0.13);
  color: var(--bhagwa-deep);
  font-weight: 700;
  font-size: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

.hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.puja-title-stack {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  row-gap: 6px;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.puja-title-main,
.puja-title-hi {
  display: block;
  width: 100%;
  margin: 0;
  font-family: "Noto Sans Devanagari", "Noto Sans", "Segoe UI", Arial, sans-serif;
  margin-top: 0;
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  white-space: normal;
}

.puja-title-hi {
  text-align: left;
}

.puja-title-main {
  text-align: left;
}

.hero p,
.copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  white-space: pre-line;
}

.actions,
.row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-table {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .hero-col-logo {
    justify-content: flex-start;
  }

  .hero-logo {
    max-width: 82px;
    border-radius: 12px;
  }

  .hero-col-text {
    gap: 0;
  }
}

.btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--bhagwa), #e7781f);
  color: #fff;
  box-shadow: 0 12px 24px rgba(159, 52, 0, 0.26);
}

.btn.soft {
  background: #fff;
  border-color: rgba(78, 31, 8, 0.16);
  color: var(--text);
}

.btn.small {
  min-height: 40px;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.list-view {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bhagwa-deep);
  background: rgba(207, 79, 0, 0.12);
}

.view-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.view-toggle .btn {
  min-height: 38px;
}

.card p,
.meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.meta-row span {
  border: 1px solid rgba(78, 31, 8, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  background: #fffaf2;
}

.today-row {
  padding: 18px 20px;
}

.today-meta {
  margin-top: 8px;
  color: var(--muted);
}

.today-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.progress-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.progress-step {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(78, 31, 8, 0.16);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.progress-step.active {
  background: linear-gradient(135deg, rgba(224, 116, 27, 0.16), rgba(255, 214, 162, 0.30));
  color: var(--text);
  border-color: rgba(207, 79, 0, 0.25);
}

.progress-step.completed {
  background: linear-gradient(135deg, rgba(43, 138, 62, 0.20), rgba(157, 224, 170, 0.26));
  color: #215d2c;
  border-color: rgba(43, 138, 62, 0.30);
}

.progress-step.current {
  background: linear-gradient(135deg, rgba(207, 79, 0, 0.20), rgba(255, 214, 162, 0.30));
  color: var(--text);
  border-color: rgba(207, 79, 0, 0.32);
}

.progress-step.upcoming {
  background: #fff;
  color: var(--muted);
}

.verse-box {
  border: 1px solid rgba(78, 31, 8, 0.12);
  border-radius: 14px;
  background: #fffdf8;
  padding: 14px;
}

.verse-box .tag {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--bhagwa-deep);
  font-weight: 700;
}

.copy.chapter-copy {
  white-space: pre-line;
  line-height: 1.35;
}

.copy.karaoke-active {
  white-space: pre-line;
  line-height: inherit;
}

.karaoke-word {
  display: inline;
  padding: 0;
  border-radius: 4px;
  transition: background-color 140ms ease, color 140ms ease;
}

.karaoke-word.done {
  color: #7d3303;
  background: rgba(230, 120, 28, 0.16);
}

.karaoke-word.active {
  color: #fff;
  background: linear-gradient(135deg, var(--bhagwa), #e7781f);
  box-shadow: 0 0 0 1px rgba(159, 52, 0, 0.18);
}

.controls {
  position: sticky;
  bottom: 8px;
  border: 1px solid rgba(78, 31, 8, 0.14);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.96);
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  border: 1px solid rgba(78, 31, 8, 0.12);
  border-radius: 14px;
  background: #fffdf8;
  padding: 10px 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--bhagwa);
}

.check-content strong {
  display: block;
  font-size: 14px;
}

.check-content span {
  color: var(--muted);
  font-size: 13px;
}

.about-origin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 18px;
  align-items: stretch;
}

.about-origin-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border: 1px solid rgba(78, 31, 8, 0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 252, 247, 0.96), rgba(255, 244, 228, 0.96));
  padding: 14px;
  min-height: 100%;
}

.about-origin-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}

@media (max-width: 900px) {
  .about-origin-layout {
    grid-template-columns: 1fr;
  }

  .about-origin-logo-wrap {
    justify-content: flex-start;
  }
}

.ritual-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ritual-nav {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.accordion-section {
  border: 1px solid rgba(78, 31, 8, 0.14);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.accordion-section summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bhagwa-deep);
  background: #fff7eb;
  border-bottom: 1px solid rgba(78, 31, 8, 0.10);
}

.accordion-section summary::-webkit-details-marker {
  display: none;
}

.accordion-section:not(.active) {
  opacity: 0.72;
}

.accordion-section.active {
  opacity: 1;
  border-color: rgba(207, 79, 0, 0.30);
  box-shadow: 0 8px 16px rgba(121, 53, 10, 0.10);
}

.stack {
  display: grid;
  gap: 8px;
}

.nav-btn {
  border: 1px solid rgba(78, 31, 8, 0.14);
  background: #fff;
  border-radius: 12px;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(224, 116, 27, 0.18), rgba(255, 214, 162, 0.32));
  border-color: rgba(207, 79, 0, 0.30);
}

.chapter-tag {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.nav-main {
  display: grid;
}

.state-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(78, 31, 8, 0.16);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

.state-pill.done {
  border-color: rgba(43, 138, 62, 0.30);
  background: rgba(43, 138, 62, 0.14);
  color: #215d2c;
}

.state-pill.current {
  border-color: rgba(207, 79, 0, 0.30);
  background: rgba(207, 79, 0, 0.14);
  color: var(--bhagwa-deep);
}

.state-pill.pending {
  border-color: rgba(78, 31, 8, 0.16);
  background: #fff;
  color: var(--muted);
}

.ritual-main {
  display: grid;
  gap: 14px;
}

.voice-banner {
  border: 1px dashed rgba(78, 31, 8, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff7eb;
  color: var(--muted);
}

.permission-banner {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sankalp-location-banner {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sankalp-location-banner[hidden] {
  display: none !important;
}

.sankalp-location-banner.required {
  border-color: rgba(207, 79, 0, 0.40);
  background: rgba(255, 230, 204, 0.95);
}

.sankalp-location-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-room-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.live-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-mic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(43, 138, 62, 0.35);
  background: rgba(43, 138, 62, 0.12);
  color: #1f6f31;
  font-size: 14px;
  line-height: 1;
}

.detail-stack {
  display: grid;
  gap: 10px;
}

.detail-item {
  border: 1px solid rgba(78, 31, 8, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.detail-item.done {
  border-color: rgba(43, 138, 62, 0.28);
  background: rgba(43, 138, 62, 0.08);
}

.detail-item.current {
  border-color: rgba(207, 79, 0, 0.28);
  background: rgba(207, 79, 0, 0.10);
}

.detail-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.detail-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.verse-detail {
  border: 1px solid rgba(78, 31, 8, 0.12);
  border-radius: 12px;
  background: #fffdf8;
  padding: 10px 12px;
}

.verse-detail.current {
  border-color: rgba(207, 79, 0, 0.28);
  background: rgba(207, 79, 0, 0.10);
}

.mini-player {
  border: 1px solid rgba(78, 31, 8, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.96);
  padding: 10px;
  display: grid;
  gap: 10px;
  position: sticky;
  bottom: 8px;
}

.header-mini-player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  top: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  min-width: 0;
  width: fit-content;
  max-width: calc(100vw - 12px);
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  box-shadow: none;
  z-index: 240;
  overflow: visible;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-mini-player::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.header-player-body {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
}

.mini-player-top {
  display: none;
  margin-right: 0;
}

.mini-player-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bhagwa-deep);
  letter-spacing: 0.01em;
}

.mini-player-meta {
  font-size: 11px;
  color: var(--muted);
}

.lang-pills {
  display: flex;
  gap: 6px;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 0;
  margin-right: 0;
  align-items: center;
}

.lang-btn {
  border: 1px solid #d6d6d6;
  background: transparent;
  color: #222;
  border-radius: 2px;
  min-height: 24px;
  min-width: 0;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn.active {
  border-color: #bdbdbd;
  background: #f7f7f7;
  color: #111;
}

.compact-actions {
  display: flex;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: visible;
  padding-bottom: 0;
  max-width: none;
}

.compact-actions .btn.small {
  min-height: 24px;
  min-width: 24px;
  padding: 0 4px;
  font-size: 12px;
  border-radius: 2px;
  line-height: 1;
  flex: 0 0 auto;
}

.header-mini-player .btn,
.header-mini-player .btn.primary,
.header-mini-player .btn.soft {
  border: 1px solid #d6d6d6;
  background: transparent;
  color: #1b1b1b;
  box-shadow: none;
}

.header-mini-player .btn:hover,
.header-mini-player .btn:focus-visible {
  background: #f6f6f6;
  outline: none;
}

.header-mini-player .today-top {
  display: none;
}

.ritual-main {
  padding-bottom: 138px;
}

.active-puja-page .footer {
  margin-bottom: 110px;
}

.jump-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jump-controls label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.jump-select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(78, 31, 8, 0.16);
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
}

.today-card {
  width: min(100%, 360px);
  border: 1px solid rgba(207, 79, 0, 0.16);
  border-radius: 28px;
  background: #ffffff;
  padding: 14px;
  justify-self: center;
  box-shadow: 0 16px 34px rgba(121, 53, 10, 0.13);
}

.today-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-red { background: #ff6b6b; }
.dot-yellow { background: #f7c948; }
.dot-green { background: #46c369; }

.today-body {
  border: 1px solid rgba(78, 31, 8, 0.08);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.today-card .label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--bhagwa);
  font-weight: 800;
}

.today-card .title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

.step-pill {
  border: 1px solid rgba(207, 79, 0, 0.15);
  background: #fffdf8;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.step-pill.active {
  background: linear-gradient(135deg, rgba(224, 116, 27, 0.16), rgba(255, 214, 162, 0.30));
  color: var(--text);
}

.audio-wave {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 40px;
  margin: 12px 0 8px;
}

.audio-wave span {
  width: 8px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bhagwa), #f5b15d);
  animation: pulse 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; }

.mini-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.footer {
  width: min(1280px, calc(100% - 28px));
  margin: 18px auto 18px;
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.96);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-hits-line {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.footer-tagline {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.footer-hi {
  font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-size: 13px;
  font-weight: 600;
  color: #5b2a10;
}

.footer-en {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7a5a45;
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.9); opacity: 0.8; }
  50% { transform: scaleY(1.7); opacity: 1; }
}

@media (max-width: 1023px) {
  .layout,
  .page-shell.two-col,
  .ritual-layout,
  .hero,
  .grid.cards-2,
  .grid.cards-3 {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }

  .hero {
    padding: 22px;
  }

  .today-card {
    transform: none;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 2;
  }

  .menu {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(78, 31, 8, 0.12);
    border-radius: 12px;
    background: rgba(255, 251, 244, 0.98);
    flex-direction: column;
    gap: 8px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
  }

  .menu a.active,
  .menu a:hover {
    border-color: rgba(207, 79, 0, 0.20);
    background: rgba(207, 79, 0, 0.08);
  }

  .live-room-header-row {
    grid-template-columns: 1fr;
  }

  .header-mini-player {
    width: fit-content;
    max-width: calc(100vw - 12px);
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    overflow: visible;
    z-index: 400;
  }

  .header-player-body {
    width: auto;
    display: flex;
    gap: 4px;
  }

  .mini-player-top,
  .lang-pills,
  .compact-actions {
    flex-wrap: nowrap;
  }

  .ritual-main {
    padding-bottom: 146px;
  }

  .ritual-nav {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 13px;
  }

  .today-row {
    padding: 14px;
  }

  .hero {
    padding: 16px;
  }

  .brand-sub-hi {
    font-size: 11.5px;
  }

  .brand-sub-en {
    font-size: 10.5px;
  }

  .puja-title-main,
  .puja-title-hi {
    font-size: clamp(1.2rem, 5.8vw, 1.7rem);
  }

  .copy,
  .meta,
  .detail-copy,
  .check-content span {
    font-size: 12px;
    line-height: 1.5;
  }

  .btn {
    min-height: 40px;
    font-size: 12px;
    padding: 0 10px;
  }

  .menu a {
    font-size: 13px;
  }

  .header-mini-player {
    width: fit-content;
    max-width: calc(100vw - 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    padding: 0;
    z-index: 420;
  }

  .header-player-body {
    display: flex;
    gap: 4px;
  }

  .lang-pills {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .lang-btn {
    min-height: 24px;
    padding: 0 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  .compact-actions {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: visible;
    max-width: none;
  }

  .compact-actions .btn.small {
    min-height: 24px;
    min-width: 24px;
    font-size: 12px;
    padding: 0 4px;
  }

  .active-puja-page .footer {
    margin-bottom: 124px;
  }
}
