body.minimal-ui {
  --bg: #0a0a0a;
  --panel: #111;
  --ink: #f4f1e8;
  --muted: #9a9a9a;
  --line: #262626;
  --accent: #e8c55a;
  --ready: #5dcaa5;
  --error: #e2645f;
  background: #0a0a0a;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.spotter-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0a0a0a;
}

.qr-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0a0a0a;
}

.qr-camera-panel {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
  isolation: isolate;
}

.qr-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
}

.qr-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 28%, transparent 58%, rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 42%, transparent 0 9rem, rgba(0, 0, 0, 0.48) 9.2rem);
  pointer-events: none;
}

.qr-frame {
  position: relative;
  z-index: 2;
  width: min(64vw, 240px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(232, 197, 90, 0.74);
  border-radius: 22px;
}

.qr-frame::before,
.qr-frame::after,
.qr-frame span::before,
.qr-frame span::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #e8c55a;
}

.qr-frame::before {
  left: -2px;
  top: -2px;
  border-left: 4px solid;
  border-top: 4px solid;
  border-radius: 20px 0 0;
}

.qr-frame::after {
  right: -2px;
  top: -2px;
  border-right: 4px solid;
  border-top: 4px solid;
  border-radius: 0 20px 0 0;
}

.qr-frame span::before {
  left: -2px;
  bottom: -2px;
  border-left: 4px solid;
  border-bottom: 4px solid;
  border-radius: 0 0 0 20px;
}

.qr-frame span::after {
  right: -2px;
  bottom: -2px;
  border-right: 4px solid;
  border-bottom: 4px solid;
  border-radius: 0 0 20px;
}

.qr-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  gap: 8px;
  text-align: center;
}

.qr-kicker {
  margin: 0;
  color: #e8c55a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qr-copy h1 {
  margin: 0;
  color: #f4f1e8;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1;
}

.qr-copy p:not(.qr-kicker) {
  margin: 0;
  color: #c8c3b8;
  font-size: 14px;
  line-height: 1.45;
}

.qr-action-bar {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
  border-top: 0.5px solid #262626;
  background: #111;
}

.spotter-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-toggle {
  min-height: 44px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(232, 197, 90, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.language-toggle button {
  min-width: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.language-toggle button.is-active {
  background: #e8c55a;
  color: #1a1505;
}

.round-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1e8;
}

.round-icon-button svg,
.spotter-sub-actions svg,
.sheet-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.spotter-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.spotter-brand span {
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.spotter-brand strong {
  max-width: 100%;
  color: #e8c55a;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 44vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
  isolation: isolate;
}

.home-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
}

.camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.04), transparent 18rem),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.74) 100%);
  pointer-events: none;
}

.ar-target {
  position: relative;
  z-index: 2;
  width: 140px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(232, 197, 90, 0.72);
  border-radius: 18px;
  color: #e8c55a;
  background: rgba(10, 10, 10, 0.2);
}

.ar-target svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.camera-panel.is-detected .ar-target {
  border-style: solid;
  border-color: #e8c55a;
  background: rgba(232, 197, 90, 0.08);
}

.camera-guide {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px;
  z-index: 2;
  margin: 0;
  color: rgba(244, 241, 232, 0.88);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.permission-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.permission-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #6b6b6b;
}

.permission-dot.is-ready {
  background: #5dcaa5;
}

.permission-dot.is-error {
  background: #e2645f;
}

.spotter-action-bar {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
  border-top: 0.5px solid #262626;
  background: #111;
}

.spotter-main-action,
.request-access-action {
  min-height: 56px;
  width: 100%;
  border: 0;
  border-radius: 30px;
  padding: 0 18px;
  font-weight: 900;
  text-align: center;
}

.spotter-main-action {
  background: #e8c55a;
  color: #1a1505;
}

.spotter-main-action:disabled {
  background: rgba(232, 197, 90, 0.35);
  color: rgba(26, 21, 5, 0.68);
  filter: none;
  opacity: 1;
}

.request-access-action {
  min-height: 46px;
  border: 1px solid rgba(232, 197, 90, 0.36);
  background: transparent;
  color: #e8c55a;
  font-size: 13px;
}

.spotter-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-storage-note {
  margin: -2px 0 0;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.play-usage-pill,
.howto-link {
  min-height: 44px;
  color: #9a9a9a;
  background: transparent;
  font-size: 13px;
}

.play-usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 62%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c8c3b8;
  font-weight: 800;
}

.play-usage-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-usage-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #e8c55a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.howto-link {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.member-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}

.member-strip[hidden],
.sheet-backdrop[hidden],
.bottom-sheet[hidden] {
  display: none !important;
}

.member-strip::-webkit-scrollbar {
  display: none;
}

.member-avatar {
  position: relative;
  flex: 0 0 48px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-avatar > span {
  position: relative;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--artist-color);
}

.member-avatar em {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8c55a;
  color: #1a1505;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.member-avatar strong {
  max-width: 58px;
  color: #c8c3b8;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.58);
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: grid;
  gap: 16px;
  max-height: min(72vh, 560px);
  padding: 10px 20px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #262626;
  border-radius: 18px 18px 0 0;
  background: #111;
  color: #f4f1e8;
}

.sheet-handle {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #3a3a3a;
}

.bottom-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-sheet h2 {
  margin: 0;
  color: #f4f1e8;
  font-size: 20px;
  line-height: 1.2;
}

.sheet-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1e8;
}

.bottom-sheet ul,
.bottom-sheet ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #c8c3b8;
}

.bottom-sheet li {
  line-height: 1.45;
}

.bottom-sheet ol strong {
  display: block;
  color: #e8c55a;
}

.bottom-sheet ol span {
  display: block;
}
