.halo-preview {
  --ink: #ece4d3;
  --muted: #c9c1b1;
  --copper: #bfaa83;
  --border: rgb(222 207 177 / 17%);
  --glass: rgb(24 23 20 / 82%);
  background: #080807;
}

.halo-preview .caravan-door-marker { position: fixed; left: 0; top: 0; z-index: 7; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgb(170 215 209 / 65%); border-radius: 50%; background: rgb(18 35 34 / 70%); color: #d5eeea; backdrop-filter: blur(8px); cursor: pointer; }
.halo-preview .caravan-door-marker:hover { background: rgb(48 81 76 / 90%); }
.halo-preview .caravan-access { position: fixed; z-index: 8; right: var(--edge); bottom: 140px; width: 240px; padding: 15px 17px; border: 1px solid rgb(168 205 197 / 28%); border-radius: 5px; background: rgb(18 29 28 / 72%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.halo-preview .caravan-access .eyebrow { margin: 0 28px 8px 0; color: #b9d5cd; font-size: 9px; letter-spacing: 2px; }
.halo-preview .caravan-feedback { margin: 0 0 12px; color: #d2d9cb; font-size: 11px; line-height: 1.6; }
.halo-preview .caravan-access button { width: 100%; min-height: 44px; padding: 10px; color: #d8eee5; background: rgb(77 116 103 / 24%); border: 1px solid rgb(187 220 208 / 35%); border-radius: 3px; font: inherit; font-size: 11px; cursor: pointer; }
.halo-preview .caravan-access button:hover { background: rgb(77 116 103 / 44%); }
.halo-preview .caravan-access button:disabled { opacity: .6; cursor: wait; }
.halo-preview .caravan-access .caravan-close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; }
.halo-preview .caravan-access .caravan-close:hover { background: rgb(77 116 103 / 24%); }
.halo-preview .caravan-access[hidden], .halo-preview .caravan-door-marker[hidden] { display: none; }
.halo-preview.is-interior .weather-modes, .halo-preview.is-interior .halo-legend, .halo-preview.is-interior .view-switch, .halo-preview.is-interior .halo-settings:not(.music-settings) { display: none; }
.halo-preview.is-interior .scene-vignette { background: linear-gradient(180deg, rgb(4 12 14 / 25%), transparent 24%, transparent 78%, rgb(4 12 14 / 30%)); }
.halo-preview.is-interior .place { pointer-events: none; }
.halo-preview.is-interior .caravan-access { bottom: 65px; }
@media (max-width: 720px) {
  .halo-preview .caravan-access { bottom: 186px; width: 210px; padding: 12px 14px; }
  .halo-preview.is-interior .caravan-access { bottom: 125px; width: 210px; }
  .halo-preview.is-interior .place h1 { font-size: clamp(24px, 6vw, 36px); }
}

.halo-preview .experiment-heading { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-left: 25px; border-left: 1px solid var(--border); }
.halo-preview .prototype-label { padding: 0; border: 0; color: #e0d5bd; }
.halo-preview .experiment-return { display: flex; align-items: center; min-height: 44px; width: fit-content; color: #c4b695; font-size: 10px; letter-spacing: .15px; text-decoration-color: rgb(196 182 149 / 35%); text-underline-offset: 4px; }
.halo-preview .experiment-return:hover { color: var(--ink); text-decoration-color: currentColor; }
.halo-preview .performance-label { display: none; }
.halo-preview .status-dot { background: #c1af89; box-shadow: none; }
.halo-preview .scene-vignette { background: linear-gradient(180deg, rgb(9 8 6 / 22%), transparent 22%, transparent 65%, rgb(9 8 6 / 24%)); }

.halo-preview .settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 280px; }
.halo-preview .settings details { min-width: 0; box-shadow: none; }
.halo-preview .settings details[open] { max-height: calc(100dvh - 255px); }
.halo-preview .weather-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.halo-preview .weather-button { position: static; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: none; min-width: 0; min-height: 44px; padding: 9px 8px; border-radius: 4px; color: #ddd2ba; background: var(--glass); font-size: 10px; line-height: 1.4; white-space: nowrap; box-shadow: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: color 180ms, background 180ms, border-color 180ms; }
.halo-preview .weather-button svg { color: var(--copper); }
.halo-preview .weather-button[aria-pressed="true"] { color: #eadfc9; background: rgb(84 72 51 / 77%); border-color: rgb(189 166 121 / 49%); box-shadow: none; }
.halo-preview .weather-button[aria-pressed="true"] svg { color: currentColor; }
.halo-preview .weather-button:hover { background: rgb(80 69 51 / 88%); border-color: #a18d66; }
.halo-preview .field select { background-color: #2a2923; }
.halo-preview .field option { background-color: #25241e; }
.halo-preview .halo-settings { margin-top: 18px; }
.halo-preview .party-settings .settings-note + .field { margin-top: 14px; }
.halo-preview .party-settings select, .halo-preview .party-settings .reset-button { min-height: 44px; }
.halo-preview .party-settings .reset-button:disabled { opacity: .45; cursor: default; }
.halo-preview .music-control { right: calc(var(--edge) + 54px); }
.halo-preview .music-control .music-muted-mark { display: none; }
.halo-preview .music-control[aria-pressed="false"] .music-muted-mark { display: block; }
.halo-preview .music-control[aria-pressed="true"] { border-color: var(--border); }
.halo-preview .music-control:hover { border-color: var(--copper); }

.halo-preview .poi-panel { z-index: 8; }
.halo-preview .poi-collectors { margin-top: 13px; padding: 11px 0 2px; border-top: 1px solid var(--ui-glass-divider); }
.poi-collectors-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.poi-collectors-header h3 { margin: 0; font: 400 10px/1.4 Arial, sans-serif; color: var(--ui-text); }
#poi-collectors-count { flex: 0 0 auto; font-size: 9px; color: var(--ui-accent); font-variant-numeric: tabular-nums; }
#poi-collectors-list { padding: 0; margin: 7px 0 0; list-style: none; }
.poi-collector { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; font-size: 10px; color: var(--ui-text); }
.poi-collector-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.poi-collector-presence { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 8px; color: var(--ui-text-muted); }
.poi-collector-presence::before { content: ''; width: 5px; height: 5px; border: 1px solid #cfb88e; border-radius: 50%; }
.poi-collector[data-online="true"] .poi-collector-presence::before { border-color: var(--ui-accent); background: var(--ui-accent); box-shadow: 0 0 6px rgb(187 220 202 / 22%); }
#poi-collectors-empty { margin: 7px 0 0; font-size: 9px; line-height: 1.5; color: var(--ui-text-muted); }
.halo-preview .exploration-controls { right: calc(var(--edge) + 108px); }
.halo-preview .halo-settings input { height: 44px; margin: 0; accent-color: #c4b28c; }
.halo-preview .halo-settings .settings-note { line-height: 1.65; }
.halo-preview .halo-settings .reset-button { min-height: 44px; color: #d6c9ae; border-color: rgb(211 192 156 / 22%); }
.halo-preview .resource-readings { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.halo-preview .resource-readings h3 { margin: 0 0 8px; color: var(--ink); font-size: 11px; font-weight: 500; }
.halo-preview .resource-readings .metrics { margin: 0; padding: 0; border: 0; color: #d6cebe; font-size: 11px; overflow-wrap: anywhere; }
.halo-preview #metrics-note { margin: 9px 0 0; line-height: 1.5; }

.halo-preview .preview-bag[open] { background: rgb(25 24 20 / 90%); border-color: var(--border); }
.halo-preview .poi-panel { background: rgb(22 40 38 / 46%); border-color: rgb(222 226 202 / 35%); backdrop-filter: blur(6px) saturate(1.12); -webkit-backdrop-filter: blur(6px) saturate(1.12); text-shadow: 0 1px 3px rgb(8 17 16 / 65%); }
.halo-preview .poi-content, .halo-preview .poi-return, .halo-preview .poi-collection-note { margin: 8px 0 0; color: #d6ddca; font-size: 10px; line-height: 1.6; }
.halo-preview .poi-return { color: #e3ce9f; }
.halo-preview .poi-budget { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgb(222 226 202 / 15%); color: #eee2c6; font-size: 10px; font-variant-numeric: tabular-nums; }
.halo-preview .poi-collect { width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 12px; color: #d9eee2; background: rgb(176 224 204 / 8%); border: 1px solid rgb(183 224 204 / 30%); border-radius: 3px; font-size: 10px; }
.halo-preview .poi-collect:hover { background: rgb(176 224 204 / 16%); border-color: rgb(183 224 204 / 55%); }
.halo-preview .poi-collect:disabled { opacity: .5; cursor: default; }
.halo-preview .poi-panel [hidden] { display: none !important; }
.halo-preview .preview-bag { background: rgb(25 24 20 / 48%); }
.halo-preview .poi-panel .eyebrow, .halo-preview #poi-feedback, .halo-preview #bag-count { color: #d3c19b; }
.halo-preview .poi-marker { color: #e1d4b8; }
.halo-preview .poi-marker::before { border-color: rgb(220 204 166 / 40%); background: rgb(42 37 28 / 34%); }
.halo-preview .poi-marker:hover::before, .halo-preview .poi-marker:focus-visible::before, .halo-preview .poi-marker.selected::before { border-color: rgb(237 221 185 / 72%); background: rgb(70 59 40 / 56%); }
.halo-preview .poi-marker.searched { color: #aaa28f; }
.halo-preview .poi-marker.searched::after { color: #d6ccb5; background: #322e22; }
.halo-preview #poi-progress { accent-color: #c4b28c; }
.halo-preview #poi-progress::-webkit-progress-value { background: #c4b28c; }
.halo-preview #poi-progress::-moz-progress-bar { background: #c4b28c; }
.halo-preview #poi-search { background: #d7c8a9; border-color: #d7c8a9; color: #2c2a22; }
.halo-preview #poi-search:hover { background: #e5d7b8; }

.halo-preview .halo-legend { bottom: 139px; left: var(--edge); display: flex; flex-wrap: wrap; gap: 5px 16px; max-width: calc(100vw - 2 * var(--edge)); margin: 0; padding: 0; list-style: none; color: #c7bfae; font-size: 9px; line-height: 1.4; pointer-events: none; text-shadow: 0 1px 4px #080807; }
.halo-preview .halo-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.halo-preview .halo-legend span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgb(216 205 179 / 30%); }
.halo-preview .legend-visible { background: #d5c4a1; }
.halo-preview .legend-known { background: #645b48; }
.halo-preview .legend-unknown { background: #080807; }
.halo-preview .view-switch, .halo-preview .photo-control, .halo-preview .mobile-movement button { background: rgb(24 23 19 / 77%); }
.halo-preview .view-switch button[aria-pressed="true"] { color: #29271e; background: #d7cbb1; border-color: #d7cbb1; }
.halo-preview .loading-screen, .halo-preview .error-screen { background-color: #11100d; background-image: radial-gradient(ellipse at 50% 40%, rgb(126 105 64 / 12%), transparent 65%); }

@media (max-width: 720px) {
  .halo-preview .music-control { right: calc(var(--edge) + 47px); }
  .halo-preview .exploration-controls { right: calc(var(--edge) + 96px); }
  .halo-preview .view-switch { min-width: 0; }
  .halo-preview .view-switch button { flex: 1 1 0; min-width: 0; }
  .halo-preview .masthead { gap: 15px; }
  .halo-preview .experiment-heading { padding-left: 15px; }
  .halo-preview .prototype-label { max-width: none; font-size: 8px; line-height: 1.7; letter-spacing: .65px; white-space: nowrap; }
  .halo-preview .experiment-return { font-size: 9px; }
  .halo-preview .settings { width: calc(100vw - 2 * var(--edge)); }
  .halo-preview .settings details { justify-self: end; width: min(258px, calc(100% - 100px)); }
  .halo-preview .settings details[open] { max-height: calc(100dvh - 240px); }
  .halo-preview .preview-bag { top: 139px; }
  .halo-preview .poi-panel { top: 199px; }
  .halo-preview .halo-legend { gap: 5px 12px; }
}

@media (max-width: 360px) {
  .halo-preview .masthead { gap: 11px; }
  .halo-preview .experiment-heading { padding-left: 11px; }
  .halo-preview .prototype-label { font-size: 7px; letter-spacing: .4px; }
}

@media (max-height: 560px) and (min-width: 721px) {
  .halo-preview .halo-legend { bottom: 103px; }
}

@media (max-height: 560px) {
  .halo-preview .settings details[open] { max-height: calc(100dvh - 150px); }
}

@media (max-height: 560px) and (max-width: 720px) {
  .halo-preview .preview-bag { top: 127px; }
  .halo-preview .poi-panel { top: 185px; max-height: calc(100dvh - 260px); }
}
.shield-warning-setting { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: #d0d7cd; font-size: 11px; cursor: pointer; }
.shield-warning-setting input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: #b7d3c1; cursor: pointer; }
.shield-warning-setting input:focus-visible { outline: 2px solid #b7d3c1; outline-offset: 4px; }
.shield-warning-setting:has(input:disabled) { opacity: .6; cursor: wait; }
@media (max-height: 560px) {
  .halo-preview .poi-panel { top: 70px; bottom: auto; max-height: calc(100dvh - 90px); width: min(300px, calc(100vw - 2 * var(--edge))); }
}
