@font-face {
  font-family: DM;
  src: url(/fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(/fonts/cormorant-garamond.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --pine: #142d27;
  --deep: #10241f;
  --gold: #e7cc94;
  --paper: #f1eee3;
  --ink: #21382d;
  --line: #fff2;
  --serif: Cormorant, Georgia, "Noto Serif CJK SC", "Songti SC", serif;
  --sans: DM, "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#mosque-app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--deep);
  font: 14px/1.45 var(--sans);
  color: #faf7ee;
}
button,
a,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #e4b966;
  outline-offset: 3px;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#mosque-app {
  display: flex;
  flex-direction: column;
}
.topbar {
  background: #142c27;
  border-bottom: 1px solid #e8c78a40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px max(3.25vw, env(safe-area-inset-right)) 8px
    max(3.25vw, env(safe-area-inset-left));
  padding-top: max(8px, env(safe-area-inset-top));
  min-height: 76px;
  position: relative;
  z-index: 3;
  flex: none;
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #e5ca94;
  border: 1px solid #cead704e;
  border-radius: 21px 21px 7px 7px;
  background: linear-gradient(155deg, #365044, #23382e);
}
.brand-name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -1.15px;
  line-height: 0.92;
}
.brand-name small {
  display: block;
  font: 500 8px/1.6 var(--sans);
  letter-spacing: 2.1px;
  color: #d9c7a3;
  margin: 4px 0 0 1px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #ccd5c9;
  font-size: 13px;
  white-space: nowrap;
}
.tabs button.selected {
  color: #f2d9a9;
  background: #35483a;
  border-color: #8c906044;
}
.tabs button:hover,
.icon-btn:hover {
  background: #ffffff12;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.online-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #e4eade;
  font-size: 12px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbb9a1;
}
.online-chip.live .status-dot {
  background: #a8cf9c;
  box-shadow: 0 0 0 3px #9ac68f19;
}
.icon-btn {
  color: #d2d9ca;
  border-inline-start: 1px solid #ffffff25;
  padding: 6px 0 6px 14px;
  border-radius: 0;
}
.lang-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e2e4d7;
  font: 500 11px var(--sans);
}
.lang-box select {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.lang-box:focus-within {
  outline: 1px solid var(--gold);
}
select option {
  color: #163b2d;
  background: #fbf9ef;
}
#stage {
  isolation: isolate;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#8dadaf, #e3c798 64%, #a19678 64%, #c8b998);
}
#viewport,
#viewport canvas,
.stage-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#viewport {
  touch-action: none;
  outline: none;
  background-size: cover;
  background-position: center;
}
#viewport canvas {
  touch-action: none;
  user-select: none;
}
.stage-shade {
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(18, 37, 34, 0.24) 0%,
      transparent 28%,
      transparent 62%,
      rgba(20, 35, 30, 0.35) 100%
    ),
    linear-gradient(115deg, #1c2b2610, transparent 48%);
}
.scene-head {
  position: absolute;
  top: clamp(22px, 4.1vh, 48px);
  inset-inline-start: 3.4vw;
  text-shadow: 0 2px 15px #1a271e88;
  pointer-events: none;
}
.sun-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffe4ab;
  background: #243b32cf;
  padding: 5px 10px;
  border: 1px solid #d5c89e58;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 650;
  text-transform: uppercase;
  text-shadow: none;
}
.scene-head h2 {
  font: 500 clamp(40px, 4.4vw, 75px) / 0.99 var(--serif);
  letter-spacing: -2px;
  margin: 13px 0 6px;
  color: #fff9e9;
}
.scene-head p {
  margin: 0;
  color: #faf3dd;
  font-size: 13px;
  letter-spacing: 0.25px;
}
#gather {
  position: absolute;
  top: clamp(20px, 4.1vh, 48px);
  inset-inline-end: 3.4vw;
  background: #203a32ed;
  border: 1px solid #f0dcaf51;
  color: #f8edcf;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  box-shadow: 0 5px 18px #14251d25;
  text-align: start;
}
#gather:hover,
.action-dock button:hover,
.round-icon:hover {
  background: #36523f;
}
.gather-icon {
  width: 35px;
  height: 35px;
  background: #e3cd9715;
  color: #ecd199;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
#gather small,
.mini-copy small {
  display: block;
  color: #d8c89d;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 650;
}
#gather strong {
  font-weight: 560;
  font-size: 14px;
}
.action-dock,
.mini-player,
.round-icon,
#controls-hint {
  background: #19342df5;
  border: 1px solid #c2be955f;
  box-shadow: 0 5px 22px #12251b3d;
  backdrop-filter: blur(10px);
}
.action-dock {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 6px;
  border-radius: 17px;
  gap: 2px;
}
.action-dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-width: 64px;
  min-height: 55px;
  font-size: 11px;
  color: #edeee0;
  border-radius: 10px;
}
.action-dock .icon {
  color: #e2cca0;
}
.action-dock button.on {
  background: #40533f;
  color: #ffdf9e;
}
.nav-hint {
  position: absolute;
  bottom: calc(34px + env(safe-area-inset-bottom));
  inset-inline-start: 3.4vw;
  display: flex;
  gap: 7px;
  align-items: center;
}
.round-icon,
.panel-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  color: #e4d7b3;
}
#controls-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f2eedc;
  border-radius: 18px;
  padding: 6px 10px;
  font-size: 11px;
}
kbd {
  font: 600 10px var(--sans);
  border: 1px solid #e0dab488;
  color: inherit;
  border-radius: 4px;
  padding: 1px 4px;
  box-shadow: 0 1px 0 #a8a182;
}
.mini-player {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom));
  inset-inline-end: 3.4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 235px;
  border-radius: 13px;
  padding: 10px 12px;
  overflow: hidden;
}
.mini-player button {
  padding: 0;
}
#mini-details {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: start;
}
.cover,
.lib-art,
.tasbih-art {
  color: #e4cd97;
  background-color: #36604e;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 10px,
      #b0b48d52 10.5px,
      transparent 12px
    ),
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 10px,
      #b0b48d52 10.5px,
      transparent 12px
    ),
    linear-gradient(130deg, #142d2b, #538072);
}
.cover {
  width: 43px;
  height: 45px;
  border: 1px solid #dfcc984d;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.cover > span {
  font: 28px/1 Georgia;
  background: #2d544d9c;
  border-radius: 50%;
}
.mini-copy strong,
.mini-copy > span {
  display: block;
}
.mini-copy strong {
  font: 500 19px/1.03 var(--serif);
  margin: 2px 0;
}
.mini-copy > span {
  font-size: 10px;
  color: #d0d9c8;
}
.mini-copy small {
  font-size: 8px;
}
.play-round {
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--pine);
  background: #ecd399;
}
.play-round:hover,
.primary:hover {
  filter: brightness(1.08);
}
#mini-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #e8ca8b;
}
#self-label {
  position: absolute;
  pointer-events: none;
  background: #263f33e8;
  border: 1px solid #d9d0a556;
  border-radius: 15px;
  padding: 2px 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -115%);
  line-height: 1.3;
  color: #fff3d5;
}
#self-label b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8b566;
}
#greeting-stream {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: min(37%, 370px);
  display: grid;
  justify-items: center;
  gap: 4px;
}
#greeting-stream div {
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid #e2ca8f70;
  border-radius: 20px;
  background: #19382de6;
  color: #ffedcc;
  animation: floatMsg 6s ease-in-out both;
  text-align: center;
}
@keyframes floatMsg {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%,
  78% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}
#joystick {
  display: none;
  position: absolute;
  bottom: calc(100px + env(safe-area-inset-bottom));
  inset-inline-start: 17px;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  border: 1px solid #f7edc87c;
  background: #24413668;
  touch-action: none;
  align-items: center;
  justify-content: center;
}
#joystick span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f9e8baaa;
  border: 1px solid #ffedc9;
  pointer-events: none;
}
#end-quiet {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: #1c392ad9;
  color: #f2ddb1;
  padding: 11px 17px;
  border: 1px solid #dbcfaa6b;
  border-radius: 22px;
}
.quiet-mode .topbar,
.quiet-mode .scene-head,
.quiet-mode #gather,
.quiet-mode .action-dock,
.quiet-mode .mini-player,
.quiet-mode .nav-hint,
.quiet-mode #joystick,
.quiet-mode #greeting-stream,
.quiet-mode #self-label {
  display: none !important;
}
#toast {
  position: absolute;
  bottom: calc(115px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #19392eeb;
  border: 1px solid #d2c99e6b;
  color: #fff1ca;
  padding: 8px 16px;
  border-radius: 22px;
  text-align: center;
  z-index: 4;
  font-size: 13px;
}
#overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: calc(81px + env(safe-area-inset-top)) 3.4vw
    max(15px, env(safe-area-inset-bottom));
  pointer-events: none;
}
#scrim {
  position: absolute;
  inset: 0;
  background: #10251c57;
  pointer-events: auto;
  backdrop-filter: blur(2px);
}
#panel {
  position: relative;
  pointer-events: auto;
  color: var(--ink);
  border: 1px solid #fff7da;
  width: min(410px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #f6f2e7;
  border-radius: 20px;
  box-shadow: 0 18px 65px #0a211d55;
  padding: 24px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  outline: none;
}
#panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
}
#panel-eyebrow {
  color: #6a725c;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
}
#panel-title {
  font: 500 36px/1.05 var(--serif);
  letter-spacing: -1px;
  margin: 5px 0 0;
}
.panel-close {
  color: #3a503e;
  background: #e7e6d9;
  flex-shrink: 0;
}
#panel-body p {
  line-height: 1.6;
  margin: 8px 0 16px;
}
.detail {
  font-size: 12px;
  color: #647061;
}
.primary,
.secondary,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
}
.primary {
  color: #f6eacc;
  background: #2d5141;
}
.secondary,
.chip-btn {
  color: #36523e;
  background: #e6e7d7;
}
.panel-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.panel-row.spread {
  justify-content: space-between;
}
.wide {
  width: 100%;
}
.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--ink);
  text-align: start;
  padding: 12px 0;
  border-top: 1px solid #c9cebc;
}
.entry .num {
  color: #78856e;
  font: 13px var(--serif);
  min-width: 23px;
  text-align: center;
}
.entry .entry-text {
  flex: 1;
}
.entry strong,
.entry small {
  display: block;
}
.entry small {
  color: #637260;
  font-size: 12px;
}
.entry.selected {
  color: #33724f;
}
.entry .glyph {
  color: #6d7d60;
  font-size: 17px;
}
.lib-art,
.tasbih-art {
  border-radius: 12px;
  text-align: center;
  padding: 17px;
  color: #faecd0;
}
.lib-art .arabic,
.tasbih-art .arabic {
  font:
    32px/1.5 Georgia,
    Tahoma,
    serif;
}
.lib-art small,
.tasbih-art small {
  display: block;
  font-size: 11px;
  opacity: 0.88;
  margin-top: 3px;
}
.lib-art strong,
.tasbih-art strong {
  display: block;
  font: 500 30px var(--serif);
}
input[type="range"] {
  width: 100%;
  accent-color: #53765c;
  cursor: pointer;
}
.tiny {
  font-size: 10px;
  color: #677460;
}
.credit {
  font-size: 11px;
  color: #5d715e;
  margin-top: 10px;
}
.credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bless-count {
  margin-inline-start: auto;
  background: #e4e4cd;
  border-radius: 13px;
  font-size: 12px;
  padding: 3px 8px;
}
.arabic {
  font-family: Georgia, Tahoma, serif;
}
.prayer-note {
  font-size: 12px;
  line-height: 1.5;
  color: #5a695b;
  padding: 10px 12px;
  background: #e9ecdf;
  border-inline-start: 3px solid #9da985;
  border-radius: 3px;
}
.tap-bead {
  width: 100%;
  font-size: 19px;
  padding: 14px;
}
.greeting-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.greeting-toggle input {
  accent-color: #41674f;
}
.lesson-step {
  text-align: center;
  background: #e8e8d7;
  border-radius: 12px;
  padding: 18px;
}
.lesson-step strong {
  font: 500 27px/1.25 var(--serif);
  display: block;
}
.lesson-step small {
  display: block;
  color: #59715b;
  margin-top: 6px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.help-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4d8c4;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
}
.sponsor {
  display: block;
  margin-top: 14px;
}
.sponsor img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.sponsor small {
  display: block;
}
.sponsor video {
  width: 100%;
}
#panel-body button:hover {
  filter: brightness(0.94);
}
[dir="rtl"] #overlay {
  justify-items: start;
}
@media (max-width: 1120px) {
  .nav-hint #controls-hint {
    display: none;
  }
  .mini-player {
    min-width: 195px;
  }
  .action-dock button {
    min-width: 55px;
  }
  .top-tools {
    gap: 10px;
  }
  .tabs button {
    padding: 8px 11px;
  }
}
@media (max-width: 790px) {
  .topbar {
    padding-inline: 15px;
    min-height: 62px;
  }
  .brand-mark {
    width: 32px;
    height: 36px;
  }
  .brand-mark .icon {
    width: 26px;
  }
  .brand-name {
    font-size: 24px;
  }
  .brand-name small {
    font-size: 6.5px;
    letter-spacing: 1.3px;
  }
  .brand {
    gap: 7px;
  }
  .tabs {
    position: static;
    transform: none;
    gap: 1px;
  }
  .tabs button {
    padding: 8px 6px;
    gap: 4px;
    font-size: 11px;
  }
  .top-tools {
    gap: 6px;
  }
  .online-chip {
    font-size: 10px;
  }
  .scene-head {
    inset-inline-start: 20px;
  }
  .mini-player {
    inset-inline-end: 14px;
    min-width: 155px;
    gap: 8px;
    padding: 8px;
  }
  .cover {
    width: 32px;
    height: 35px;
  }
  .nav-hint {
    inset-inline-start: 15px;
  }
  .action-dock button {
    min-width: 52px;
  }
  .scene-head h2 {
    font-size: 45px;
  }
  .mini-copy strong {
    font-size: 16px;
  }
  .mini-copy small {
    font-size: 7px;
  }
}
@media (pointer: coarse) {
  #joystick {
    display: flex;
  }
  .nav-hint {
    bottom: calc(179px + env(safe-area-inset-bottom));
  }
  #controls-hint {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding: 7px 13px 0;
    padding-top: max(7px, env(safe-area-inset-top));
    min-height: 85px;
  }
  .brand {
    order: 0;
  }
  .brand-mark {
    height: 31px;
    width: 30px;
  }
  .brand-name {
    font-size: 24px;
  }
  .brand-name small {
    margin-top: 2px;
  }
  .top-tools {
    order: 1;
    gap: 12px;
  }
  .tabs {
    order: 2;
    justify-content: space-around;
    width: 100%;
    border-top: 1px solid #d8bd8123;
    margin-top: 6px;
  }
  .tabs button,
  .tabs button.selected {
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 11px;
    padding: 7px 3px;
    flex: 1;
    gap: 5px;
  }
  .tabs button.selected {
    box-shadow: inset 0 -2px #ddc48c;
  }
  .tabs button .icon {
    width: 15px;
  }
  .icon-btn {
    padding: 2px 0 2px 9px;
  }
  .lang-box {
    font-size: 10px;
  }
  .scene-head {
    top: 17px;
    inset-inline-start: 14px;
  }
  .sun-tag {
    font-size: 8px;
    padding: 3px 7px;
    letter-spacing: 1px;
  }
  .sun-tag .icon {
    width: 12px;
    height: 12px;
  }
  .scene-head h2 {
    font-size: clamp(32px, 8vw, 43px);
    letter-spacing: -1.3px;
    margin: 7px 0 3px;
  }
  .scene-head p {
    font-size: 10px;
  }
  .gather-icon {
    width: 24px;
    height: 24px;
  }
  .gather-icon .icon {
    width: 15px;
    height: 15px;
  }
  #gather {
    top: 16px;
    inset-inline-end: 12px;
    gap: 5px;
    padding: 6px 7px;
    border-radius: 9px;
  }
  #gather > svg {
    display: none;
  }
  #gather small {
    max-width: 99px;
    font-size: 7px;
    letter-spacing: 0.45px;
  }
  #gather strong {
    font-size: 11px;
  }
  .action-dock {
    bottom: calc(11px + env(safe-area-inset-bottom));
    padding: 3px 5px;
    border-radius: 12px;
    max-width: calc(100% - 18px);
  }
  .action-dock button {
    min-width: clamp(46px, 13vw, 60px);
    min-height: 44px;
    font-size: 9px;
    gap: 2px;
  }
  .action-dock .icon {
    width: 18px;
    height: 18px;
  }
  .mini-player {
    bottom: calc(78px + env(safe-area-inset-bottom));
    min-width: 155px;
    padding: 6px 8px;
  }
  .play-round {
    width: 28px;
    height: 28px;
  }
  .cover {
    width: 28px;
    height: 31px;
  }
  .cover > span {
    font-size: 21px;
  }
  .mini-copy strong {
    font-size: 15px;
  }
  .mini-copy > span {
    font-size: 8px;
  }
  .nav-hint {
    bottom: calc(156px + env(safe-area-inset-bottom));
  }
  .round-icon {
    width: 29px;
    height: 29px;
  }
  #joystick {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  #greeting-stream {
    top: 105px;
    width: 90%;
  }
  #toast {
    bottom: calc(143px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: 90%;
  }
  #overlay {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }
  #panel {
    width: 100%;
    max-height: 80dvh;
    border-radius: 19px 19px 0 0;
    padding: 18px 19px max(18px, env(safe-area-inset-bottom));
  }
  #panel-title {
    font-size: 30px;
  }
  #panel-top {
    margin-bottom: 13px;
  }
}
@media (max-height: 510px) and (orientation: landscape) {
  .topbar {
    min-height: 43px;
    padding-block: 3px;
  }
  .brand-mark {
    height: 31px;
  }
  .brand-name {
    font-size: 23px;
  }
  .scene-head {
    top: 10px;
  }
  .scene-head h2 {
    font-size: 31px;
    margin: 4px 0;
  }
  .scene-head p {
    display: none;
  }
  #gather {
    top: 8px;
    padding: 5px 8px;
  }
  .action-dock,
  .mini-player {
    bottom: 7px;
  }
  .action-dock {
    padding: 2px;
  }
  .action-dock button {
    min-height: 39px;
    min-width: 47px;
    gap: 0;
  }
  .action-dock .icon {
    height: 16px;
  }
  #joystick {
    width: 52px;
    height: 52px;
    bottom: 13px;
  }
  .nav-hint {
    bottom: 76px;
  }
  .mini-player {
    padding: 4px 7px;
  }
  .sun-tag {
    font-size: 8px;
  }
  #overlay {
    padding-block: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #greeting-stream div {
    animation: none;
  }
}

#bead-preview {
  float: inline-start;
  width: 84px;
  height: 99px;
  display: grid;
  place-items: center;
  margin-inline-end: 8px;
  font-size: 42px;
  color: #ccae66;
}
#bead-preview canvas {
  width: 80px;
  height: 97px;
}
.tasbih-art {
  min-height: 129px;
}
.chip-btn.selected {
  box-shadow: inset 0 0 0 2px #72846b;
}
.in-lesson .action-dock,
.in-lesson .nav-hint,
.in-lesson .mini-player,
.in-lesson #joystick {
  display: none;
}
#lesson-bar {
  position: absolute;
  bottom: calc(23px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #20392fee;
  border: 1px solid #c7bd9580;
  padding: 10px 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f5e8c9;
}
#lesson-bar small,
#lesson-bar strong {
  display: block;
  white-space: nowrap;
}
#lesson-bar small {
  font-size: 10px;
  color: #cfcaad;
}
#lesson-bar strong {
  font: 500 22px var(--serif);
}
#lesson-bar .secondary {
  padding: 5px 9px;
  font-size: 12px;
}
#lesson-bar .round-icon {
  width: 27px;
  height: 27px;
}
.quiet-mode #lesson-bar {
  display: none;
}
.cover,
.lib-art {
  background-image:
    linear-gradient(#12332966, #16362799), url("/world/tile-cover.webp");
  background-size: cover;
  background-position: center;
}
.cover > span {
  display: none;
}
#bead-preview {
  background: url("/world/beads-view.webp") center/contain no-repeat;
}
#bead-preview > span {
  visibility: hidden;
}
#greeting-stream button {
  pointer-events: auto;
  padding: 5px 12px;
  border-radius: 20px;
  color: #fff0c8;
  background: #234336f5;
  border: 1px solid #e1c88e9e;
  box-shadow: 0 3px 12px #17292236;
}
#greeting-stream div:has(button) {
  background: none;
  border: 0;
  padding: 0;
}
#greeting-stream button b {
  margin-inline-start: 6px;
  color: #eac886;
}
#lesson-bar .lesson-audio {
  width: 31px;
  height: 31px;
  border: 1px solid #b8c6a560;
  border-radius: 50%;
  padding: 4px;
}
#lesson-bar small {
  letter-spacing: 0;
}
.quiet-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 18px;
}
.quiet-option input {
  accent-color: #43664c;
}
@media (min-width: 791px) {
  .tabs button {
    font-size: 14px;
  }
  .action-dock button {
    font-size: 12px;
  }
  .scene-head p {
    font-size: 14px;
  }
}
#panel-body {
  font-size: 15px;
}
.help-grid div {
  font-size: 13px;
}
@media (max-width: 600px) {
  #joystick {
    display: flex;
  }
  .nav-hint #controls-hint {
    display: none;
  }
  .action-dock button {
    min-height: 46px;
    font-size: 10px;
  }
  .lang-box {
    min-height: 32px;
  }
  .scene-head {
    max-width: 58%;
  }
  #lesson-bar {
    padding: 7px;
    gap: 6px;
  }
}

#viewport { background-image: url("/world/courtyard-view.webp"); }
