@import "./campus.css";
@import "./board.css";
/* The schedule refreshes while the user walks. Give the clock and both icons stable tracks. */
#gather{display:grid;box-sizing:border-box;inline-size:min(14.5rem,46vw);block-size:3.55rem;grid-template-columns:35px minmax(0,1fr) 15px;gap:10px}
#gather .gather-copy,#gather-key,#gather-state{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gather-time{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.32em;white-space:nowrap;line-height:1.35}
#gather-digits{text-align:end;font-variant-numeric:tabular-nums;font-family:ui-monospace,Consolas,monospace;letter-spacing:0}
@media(max-width:600px){
  #gather{inline-size:clamp(119px,39vw,160px);block-size:2.55rem;grid-template-columns:24px minmax(0,1fr);gap:5px}
  #gather small{max-width:none}
}
[hidden] {
  display: none !important;
}
.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.topbar .round-icon {
  font: 19px/1 var(--sans);
  width: 36px;
  height: 36px;
}
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.lang-item {
  padding: 13px 15px;
  border-radius: 9px;
  border: 1px solid #bcc6b6;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 600;
  text-align: start;
}
.lang-item:hover,
.lang-item:focus-visible {
  background: #e4eadc;
  border-color: var(--accent);
}
.choosing #overlay {
  justify-items: center;
}
.choosing #panel {
  width: min(425px, 100%);
  padding: 29px;
}
.choosing #panel-eyebrow {
  color: var(--accent);
}
.choosing #panel-title {
  margin-block: 8px 4px;
}
.choosing #scrim {
  background: #10251c48;
  backdrop-filter: blur(1px);
}
.visitor-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block: 10px 4px;
}
.visitor-choice {
  min-width: 0;
  padding: 8px 8px 10px;
  border: 1px solid #b3bba7;
  border-radius: 12px;
  background: #fbf8ee;
  color: #263e30;
  box-shadow: 0 2px 4px #39452c16;
}
.visitor-choice:focus-visible, .visitor-choice:hover, .visitor-choice[aria-pressed="true"] {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.visitor-portrait {
  display: block;
  overflow: hidden;
  border-radius: 50% 50% 4px 4px;
  background: radial-gradient(ellipse at 48% 28%, #f8edce, #e6dcca 68%, #c8c9b6);
}
.visitor-choice:nth-child(2) .visitor-portrait {
  background: radial-gradient(ellipse at 48% 28%, #f2efde, #dce3d2 68%, #c1cabc);
}
.visitor-portrait img { display: block; width: 100%; height: auto; }
.visitor-name { display: block; margin-top: 8px; font-weight: 650; font-size: 16px; }
.avatar-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  min-height: 40px;
  background: transparent;
  color: var(--accent);
}
.ann-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(400px, 100%);
  padding: 6px 11px;
  margin-top: 7px;
  background: #f5f0def2;
  color: #243d30;
  border-radius: 14px;
  font: 600 12px var(--sans);
  pointer-events: auto;
}
.brand-name small {
  max-width: 156px;
}
.prose,
.credits dd {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.form-field {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: var(--ink);
}
.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
#panel input:not([type="checkbox"]):not([type="range"]),
#panel select {
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid #bcc5b6;
  border-radius: 8px;
  padding: 9px 10px;
  min-width: 0;
}
#panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.filters,
.rank-filters {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
  margin: 2px 0 15px;
}
.filters input {
  grid-column: 1/-1;
}
.rank-filters select:last-child {
  grid-column: 1/-1;
}
.time-row,
.rank-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.rank-row {
  padding: 10px 0;
  border-top: 1px solid #b5bdac;
}
.time-row,
.meta-line,
.credits {
  font-size: 12px;
  color: #58695c;
}
.credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 10px;
}
.credits dd {
  margin: 0;
}
.credits a,
#panel a {
  color: #335e49;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 14px 0;
}
.metrics > div,
.event-card {
  padding: 13px;
  border: 1px solid #c2cbba;
  border-radius: 10px;
}
.metrics small,
.metrics strong,
.event-card small,
#lesson-bar small {
  display: block;
}
.metrics strong {
  margin-top: 5px;
  font-size: 19px;
}
.event-card {
  margin: 8px 0;
}
.event-card h3 {
  margin: 2px 0 7px;
}
.event-card small {
  color: #62725f;
}
.audio-cover {
  border-radius: 12px;
  background: linear-gradient(130deg, #304e3b, #526e5d);
  color: #e6d3a2;
  display: grid;
  place-items: center;
  min-height: 88px;
}
.bead-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #c9c5ab;
  background: radial-gradient(ellipse at 40% 24%, #faf5e7 10%, #eae3cf 60%, #d4d1b9 100%);
}
.bead-counter {
  position: absolute;
  inset-inline: 0;
  top: 41%;
  transform: translateY(-50%);
  pointer-events: none;
  text-align: center;
  color: #314a3c;
  display: grid;
  justify-items: center;
  gap: 1px;
}
.bead-counter small { font: 600 12px var(--sans); }
.bead-counter strong {
  font: 42px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
#bead-view {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(165px, 35vh, 244px);
  padding: 0;
  background: transparent;
  cursor: grab;
  border: 0;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#bead-view:active { cursor: grabbing; }
#bead-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
#bead-view canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
#bead-help {
  margin: 10px 0 12px;
  color: #435a49;
  font-size: .9rem;
  line-height: 1.45;
}
.audio-cover {
  margin-bottom: 11px;
}
.primary {
  background: var(--accent, #2d5141);
}
[aria-pressed="true"] {
  outline: 2px solid var(--accent);
}
.media-preview {
  max-width: 100%;
  max-height: 280px;
}
.topbar {
  z-index: 3;
}
.scene-head {
  pointer-events: none;
}
.scene-head button {
  pointer-events: auto;
}
#lesson-bar {
  color: #f8edd5;
  min-width: min(280px, 95%);
  max-width: 90vw;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  background: #18362ef2;
  text-align: center;
}
.bar-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.teaching #dock,
.teaching .mini-player,
.teaching .nav-hint,
.teaching #joystick,
.teaching #gather {
  display: none;
}
.less-motion *,
body.less-motion #greeting-stream div {
  animation: none !important;
  scroll-behavior: auto !important;
}
.fade {
  animation-name: greetFade !important;
}
@keyframes greetFade {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
}
#front-banner {
  position: absolute;
  inset-inline-start: 3%;
  bottom: 107px;
  max-width: 210px;
}
#front-banner:empty,
#lib-banner:empty {
  display: none;
}
#front-banner a,
#lib-banner a {
  background: #fff8e8e8;
  color: #354637;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  text-decoration: none;
}
#front-banner img,
#lib-banner img {
  max-width: 100%;
  height: 38px;
  object-fit: contain;
}
#front-banner small,
#lib-banner small {
  font-size: 9px;
}
.transition-ad {
  position: fixed;
  inset: 0;
  background: #0c201bf5;
  display: grid;
  place-items: center;
  z-index: 50;
  color: #f2e7cc;
}
.transition-ad > div {
  width: min(92%, 600px);
}
.transition-ad video {
  width: 100%;
  max-height: 65vh;
}
.transition-ad a {
  color: inherit;
}
.transition-ad small {
  display: block;
  margin: 8px 0;
}
#greeting-stream div {
  pointer-events: auto;
}
.quiet-mode #front-banner,
.quiet-mode #greeting-stream,
.quiet-mode .action-dock,
.quiet-mode .mini-player,
.quiet-mode #gather,
.quiet-mode .nav-hint,
.quiet-mode #joystick,
.quiet-mode .scene-head {
  display: none;
}
body[data-scene="church"] .topbar,
body[data-scene="church"] .action-dock,
body[data-scene="church"] .mini-player,
body[data-scene="church"] #gather {
  background: #3c332df5;
}
body[data-scene="church"] .brand-mark {
  font: 32px/1 Georgia;
  color: #e3c593;
}
body[data-scene="church"] .cover,
body[data-scene="church"] .audio-cover {
  background: linear-gradient(120deg, #574039, #98694f);
}
@media (max-width: 820px) {
  #front-banner {
    inset-inline-end: 10px;
    inset-inline-start: auto;
    bottom: 145px;
    max-width: 160px;
  }
  #lesson-bar {
    bottom: 18px;
  }
  .brand-name small {
    max-width: 110px;
  }
  .scene-head {
    max-width: 54%;
  }
  .ann-button {
    max-width: 100%;
    font-size: 10px;
  }
}
@media (max-width: 540px) {
  .topbar .round-icon {
    height: 30px;
    width: 30px;
  }
  .tabs button {
    min-width: 0;
  }
  .choosing #panel {
    padding: 21px;
  }
  .scene-head h2 {
    font-size: clamp(24px, 6vw, 33px);
  }
  .scene-head p {
    font-size: 11px;
  }
  .top-tools {
    gap: 4px;
  }
  #greeting-stream {
    top: 75px;
  }
  .action-dock {
    max-width: 98vw;
  }
  .action-dock button {
    min-width: 0;
    padding-inline: 8px;
  }
  .mini-copy {
    max-width: 150px;
  }
  .lang-item {
    padding: 12px;
  }
  .scene-head {
    max-width: 60%;
  }
}
@media (max-width: 365px) {
  .online-chip {
    display: none;
  }
}

.mini-player {
  max-width: min(265px, 28vw);
}
#mini-details,
.mini-copy {
  min-width: 0;
}
.mini-copy strong,
.mini-copy > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-player .play-round,
.mini-player .cover {
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .mini-player {
    bottom: calc(104px + env(safe-area-inset-bottom));
    max-width: min(227px, 50vw);
    inset-inline-end: 16px;
  }
  .nav-hint {
    inset-inline-start: 16px;
  }
  .mini-copy strong {
    font-size: 15px;
  }
}
@media (max-width: 540px) {
  .mini-player {
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-width: min(190px, 53vw);
    min-width: 0;
    inset-inline-end: 10px;
  }
  .mini-player .mini-copy > span {
    max-width: 112px;
  }
}

.audience-widget{position:fixed;z-index:120;inset-inline-end:12px;top:calc(78px + env(safe-area-inset-top));max-width:calc(100vw - 24px)}
