@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/poppins-600.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --text: #edf0f2;
  --text-strong: #f1f3f4;
  --muted: #c6cbd0;
  --dim: rgba(229, 234, 238, 0.62);
  --surface: rgba(28, 30, 34, 0.86);
  --line: rgba(225, 232, 237, 0.76);
  --blue: #6abfff;
  --blue-soft: #9fdbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-root {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 8px;
  overflow: hidden;
  outline: none;
  background:
    radial-gradient(circle at 68% 43%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 50% 52%, rgba(106, 191, 255, 0.055), transparent 48%),
    #000000;
}

.screen {
  position: absolute;
  inset: 8px;
  z-index: 3;
}

.screen:not(.hidden) {
  animation: screen-reveal 340ms cubic-bezier(0.2, 0.24, 0.6, 1) both;
}

.geo-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 600px;
  height: 600px;
  opacity: 0;
  pointer-events: none;
  background: #020509;
  filter: saturate(0.72) contrast(1.18) brightness(0.46) hue-rotate(158deg);
  transition: opacity 520ms cubic-bezier(0.2, 0.24, 0.6, 1);
}

.app-root[data-map="ready"][data-screen="home"] .geo-map {
  opacity: 0.58;
}

.app-root[data-map="ready"][data-screen="collection"] .geo-map {
  inset: -8px;
  width: 600px;
  height: 600px;
  opacity: 0.44;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.46) 36%, #000000 48%, #000000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.46) 36%, #000000 48%, #000000 100%);
}

.maplibregl-map,
.maplibregl-canvas-container,
.maplibregl-canvas {
  width: 100%;
  height: 100%;
}

.maplibregl-map {
  position: relative;
  overflow: hidden;
}

.maplibregl-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.maplibregl-canvas {
  outline: none;
}

.map-attribution {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 9px;
  background: rgba(8, 12, 16, 0.72);
  color: rgba(226, 232, 236, 0.62);
  font: 600 18px/1.2 system-ui, sans-serif;
  white-space: nowrap;
}

.map-attribution a {
  color: rgba(226, 235, 241, 0.78);
  text-decoration: none;
}

.home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-action,
.back-action {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  outline: none;
  background: linear-gradient(145deg, rgba(42, 45, 50, 0.9), rgba(11, 13, 16, 0.94));
  color: rgba(237, 240, 242, 0.88);
  text-transform: uppercase;
  font-weight: 700;
}

.home-action:focus,
.home-action.dpad-selected,
.back-action:focus,
.back-action.dpad-selected {
  border-width: 3px;
  border-color: #bce7ff;
  color: var(--text-strong);
  background: linear-gradient(145deg, rgba(92, 177, 232, 0.42), rgba(21, 31, 40, 0.98));
  box-shadow:
    0 0 0 3px rgba(106, 191, 255, 0.2),
    0 0 28px rgba(106, 191, 255, 0.56),
    inset 0 0 22px rgba(159, 219, 255, 0.12);
  transform: scale(0.965);
}

.home-action:disabled {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.32);
  background: rgba(18, 20, 24, 0.62);
  box-shadow: none;
  transform: none;
}

.collection-action {
  position: relative;
  z-index: 5;
  width: 456px;
  height: 88px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 22px;
}

.collection-action span:last-child {
  color: var(--blue-soft);
  font-size: 20px;
}

.home-intro {
  position: absolute;
  z-index: 5;
  top: 104px;
  left: 50%;
  width: 476px;
  margin: 0;
  color: rgba(224, 230, 234, 0.76);
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  transform: translateX(-50%);
}

.location-stage {
  position: absolute;
  left: 50%;
  top: 148px;
  width: 260px;
  height: 190px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.accuracy-halo {
  position: absolute;
  width: 126px;
  height: 126px;
  border: 2px solid rgba(106, 191, 255, 0.38);
  border-radius: 50%;
  opacity: 0.24;
  transform: scale(var(--accuracy-scale, 1));
  transition: transform 280ms ease, opacity 280ms ease;
}

.dig-character {
  position: relative;
  width: 150px;
  height: 170px;
  color: rgba(231, 236, 239, 0.9);
}

.digger-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: inherit;
  fill: currentColor;
}

.app-root[data-location="locating"] .home-character {
  opacity: 0.76;
}

.app-root[data-location="locating"] .accuracy-halo {
  animation: halo-pulse 1400ms ease-out infinite;
}

.app-root[data-location="ready"] .home-character {
  opacity: 1;
}

.app-root[data-location="ready"] .accuracy-halo {
  opacity: 0.78;
  border-color: rgba(159, 219, 255, 0.8);
  background: rgba(106, 191, 255, 0.06);
}

.app-root[data-location="denied"] .home-character,
.app-root[data-location="unavailable"] .home-character {
  color: rgba(231, 236, 239, 0.45);
}

.home-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  right: auto;
  top: 338px;
  width: 456px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.dig-action {
  width: 100%;
  height: 88px;
  font-size: 32px;
  letter-spacing: 0.01em;
}

.location-status {
  min-height: 29px;
  margin: 0 12px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(230, 234, 237, 0.82);
  font-size: 18px;
  line-height: 1.2;
}

.status-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(106, 191, 255, 0.28);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.app-root:not([data-location="locating"]) .status-spinner {
  display: none;
}

.location-detail {
  min-height: 24px;
  margin: 0 12px 12px;
  color: rgba(218, 224, 229, 0.68);
  font-size: 18px;
  line-height: 1.25;
}

.viewer-header {
  position: absolute;
  z-index: 10;
  left: 7px;
  right: 7px;
  top: 6px;
  height: 64px;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}

.back-action {
  width: 64px;
  height: 64px;
  font-size: 34px;
}

.viewer-header h1 {
  margin: 0;
  text-align: center;
  color: rgba(233, 237, 240, 0.9);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.viewer-count {
  justify-self: end;
  color: rgba(222, 228, 232, 0.76);
  font-size: 18px;
  font-weight: 700;
}

.app-header {
  position: relative;
  z-index: 8;
  height: 54px;
  display: grid;
  grid-template-columns: 189px 1fr 189px;
  align-items: start;
  gap: 4px;
}

.brand-logo,
.screen-logo {
  display: block;
  width: 137px;
  height: 55px;
}

.brand-logo {
  justify-self: center;
  margin-top: 3px;
}

.header-action,
.error-action {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(48, 49, 52, 0.78), rgba(16, 17, 20, 0.86));
  color: rgba(232, 236, 239, 0.86);
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  outline: none;
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header-action span:last-child {
  color: rgba(218, 225, 230, 0.62);
}

.header-action.has-new span:last-child {
  color: var(--blue);
}

.header-action.dpad-selected,
.header-action[aria-current="true"] {
  border-color: #bce7ff;
  border-width: 3px;
  color: var(--text-strong);
  background: linear-gradient(145deg, rgba(92, 177, 232, 0.42), rgba(21, 31, 40, 0.98));
  box-shadow: 0 0 24px rgba(106, 191, 255, 0.5);
  transform: scale(0.965);
}

.material-stage {
  position: absolute;
  inset: 74px 7px 35px;
  outline: none;
  overflow: hidden;
}

.text-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.title-stack,
.new-badge,
.depth-label,
.type-rail,
.copy-panel,
.layer-counter {
  --switch-y: 0px;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 260ms cubic-bezier(0.4, 0.04, 0.5, 1),
    opacity 210ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.title-stack.copy-exit,
.new-badge.copy-exit,
.depth-label.copy-exit,
.type-rail.copy-exit,
.copy-panel.copy-exit,
.layer-counter.copy-exit {
  opacity: 0;
}

.title-stack.copy-exit-up,
.new-badge.copy-exit-up,
.depth-label.copy-exit-up,
.copy-panel.copy-exit-up,
.layer-counter.copy-exit-up {
  transform: translateY(-34px);
}

.type-rail.copy-exit-up {
  --switch-y: -34px;
}

.title-stack.copy-exit-down,
.new-badge.copy-exit-down,
.depth-label.copy-exit-down,
.copy-panel.copy-exit-down,
.layer-counter.copy-exit-down {
  transform: translateY(34px);
}

.type-rail.copy-exit-down {
  --switch-y: 34px;
}

.title-stack.copy-enter,
.new-badge.copy-enter,
.depth-label.copy-enter,
.type-rail.copy-enter,
.copy-panel.copy-enter,
.layer-counter.copy-enter {
  opacity: 0;
  transition: none;
}

.title-stack.copy-enter-up,
.new-badge.copy-enter-up,
.depth-label.copy-enter-up,
.copy-panel.copy-enter-up,
.layer-counter.copy-enter-up {
  transform: translateY(-34px);
}

.type-rail.copy-enter-up {
  --switch-y: -34px;
}

.title-stack.copy-enter-down,
.new-badge.copy-enter-down,
.depth-label.copy-enter-down,
.copy-panel.copy-enter-down,
.layer-counter.copy-enter-down {
  transform: translateY(34px);
}

.type-rail.copy-enter-down {
  --switch-y: 34px;
}

.title-stack {
  position: absolute;
  left: 6px;
  top: 16px;
  width: 570px;
  height: 126px;
  pointer-events: none;
}

.material-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 570px;
  margin: 0;
  font-size: 62px;
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
  overflow: visible;
  transition:
    opacity 210ms cubic-bezier(0.4, 0.04, 0.5, 1),
    transform 260ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.title-ghost {
  z-index: 2;
  color: var(--material-title-tint, #e7ebed);
  text-shadow: 0 0 34px rgba(0, 0, 0, 0.86);
}

.title-front {
  z-index: 6;
  color: var(--material-title-soft, rgba(231, 235, 237, 0.54));
}

.viewer-shell {
  position: absolute;
  z-index: 4;
  right: 0;
  top: -34px;
  width: min(540px, 100%);
  max-width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.viewer-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, transparent 0 24%, rgba(0, 0, 0, 0.12) 36%, rgba(0, 0, 0, 0.7) 78%),
    linear-gradient(118deg, transparent 0 36%, rgba(0, 0, 0, 0.74) 78%, rgba(0, 0, 0, 0.92) 100%);
  mix-blend-mode: multiply;
  opacity: 0.76;
}

.app-root[data-screen="collection"] .viewer-shell::after {
  display: none;
}

#materialCanvas {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 440px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 260ms cubic-bezier(0.4, 0.04, 0.5, 1),
    opacity 210ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

#materialCanvas.stone-exit-up {
  opacity: 0;
  transform: translateY(-116px) scale(0.93);
}

#materialCanvas.stone-exit-down {
  opacity: 0;
  transform: translateY(116px) scale(0.93);
}

#materialCanvas.stone-enter-up {
  opacity: 0;
  transform: translateY(-116px) scale(0.93);
  transition: none;
}

#materialCanvas.stone-enter-down {
  opacity: 0;
  transform: translateY(116px) scale(0.93);
  transition: none;
}

.depth-label {
  position: absolute;
  z-index: 6;
  left: 10px;
  top: 83px;
  max-width: 372px;
  color: rgba(225, 231, 235, 0.78);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 500;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
}

.depth-label.with-new {
  top: 112px;
}

.new-badge {
  position: absolute;
  z-index: 7;
  left: 10px;
  top: 82px;
  padding: 4px 11px 5px;
  border: 1px solid rgba(106, 191, 255, 0.8);
  background: rgba(106, 191, 255, 0.18);
  color: #9fe8ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.layer-mode {
  display: block;
  margin-top: 5px;
  color: rgba(218, 225, 230, 0.66);
  font-size: 18px;
  line-height: 1.1;
  font-style: italic;
  font-weight: 500;
}

.type-rail {
  position: absolute;
  z-index: 7;
  right: 3px;
  top: 10px;
  width: 42px;
  height: auto;
  min-height: 92px;
  max-height: 268px;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #061925;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: translateY(calc(34px + var(--switch-y, 0px))) rotate(180deg);
  text-transform: capitalize;
}

.type-long {
  min-height: 152px;
}

.type-xl {
  min-height: 206px;
  width: 48px;
}

.type-bedrock {
  background: #74bfff;
  color: #071f33;
}

.type-crystal {
  background: #9fe8ff;
  color: #06212a;
}

.type-gem {
  background: #c9a8ff;
  color: #1d0f33;
}

.type-mineral {
  background: #8ff0c2;
  color: #062516;
}

.type-evaporite {
  background: #f3e68d;
  color: #332a05;
}

.type-deposit {
  background: #d7a16e;
  color: #2c1505;
}

.type-possible {
  background: #f1c45f;
  color: #261704;
}

.type-layer {
  background: #d7dde6;
  color: #111820;
}

.depth-bedrock .layer-mode {
  color: #74bfff;
}

.depth-crystal .layer-mode {
  color: #9fe8ff;
}

.depth-gem .layer-mode {
  color: #c9a8ff;
}

.depth-mineral .layer-mode {
  color: #8ff0c2;
}

.depth-evaporite .layer-mode {
  color: #f3e68d;
}

.depth-deposit .layer-mode {
  color: #d7a16e;
}

.depth-possible .layer-mode {
  color: #f1c45f;
}

.depth-layer .layer-mode {
  color: #d7dde6;
}

.copy-panel {
  position: absolute;
  z-index: 6;
  left: 10px;
  bottom: 42px;
  width: 382px;
  min-height: 168px;
  opacity: 1;
}

.sentence,
.where {
  margin: 0;
  color: rgba(229, 233, 236, 0.8);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 400;
  text-wrap: balance;
}

.where {
  margin-top: 4px;
  color: rgba(217, 223, 228, 0.72);
}

.layer-counter {
  position: absolute;
  z-index: 7;
  right: 10px;
  bottom: 75px;
  width: 48px;
  height: 204px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.layer-counter .ticks {
  display: flex;
  width: 36px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(3px, calc(48px / var(--tick-count, 12)), 6px);
  opacity: 0.78;
  max-height: 204px;
}

.layer-counter .tick {
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: rgba(218, 228, 234, 0.68);
  transform: scale(0.353, 0.6);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(0.4, 0.04, 0.5, 1), opacity 210ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.layer-counter .tick.selected {
  transform: scale(1);
  background: var(--blue-soft);
  box-shadow: 0 0 12px rgba(106, 191, 255, 0.64);
}

.app-root[data-location="locating"] .accuracy-halo,
.loading-step.active .loader-ring {
  will-change: transform, opacity;
}

.app-root[data-screen="collection"] .layer-counter {
  position: absolute;
  z-index: 10;
  width: auto;
  height: auto;
  right: 34px;
  top: auto;
  bottom: 58px;
  justify-content: center;
  font-size: 36px;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.96);
  transform: none;
}

.app-root[data-screen="collection"] .layer-counter.copy-exit-up,
.app-root[data-screen="collection"] .layer-counter.copy-enter-up {
  transform: translateY(-22px);
}

.app-root[data-screen="collection"] .layer-counter.copy-exit-down,
.app-root[data-screen="collection"] .layer-counter.copy-enter-down {
  transform: translateY(22px);
}

.app-root[data-screen="collection"] .layer-counter .ticks {
  display: none;
}

.app-root[data-screen="collection"] .copy-panel {
  bottom: 108px;
  min-height: 122px;
}

.collection-place {
  position: absolute;
  z-index: 9;
  left: 18px;
  right: 18px;
  bottom: 38px;
  min-height: 80px;
  padding: 12px 104px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(90deg, rgba(5, 9, 13, 0.94), rgba(13, 23, 31, 0.7));
  pointer-events: none;
}

.collection-place-label {
  color: rgba(234, 237, 239, 0.88);
  font-size: 18px;
  line-height: 1.2;
}

.collection-place-time {
  color: rgba(216, 223, 228, 0.68);
  font-size: 18px;
  line-height: 1.2;
}

.layer-peek {
  display: none;
}

.app-footer {
  position: absolute;
  z-index: 8;
  left: 24px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(211, 219, 225, 0.62);
  font-size: 18px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
  opacity: 1;
  transition: opacity 700ms cubic-bezier(0.2, 0.24, 0.9, 1);
}

.app-footer span {
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-footer.faded {
  opacity: 0;
}

.app-footer .mode {
  display: none;
}

#sourceLabel {
  margin-left: auto;
  text-align: right;
}

.loading-screen,
.error-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000000;
}

.loading-screen:not(.hidden),
.error-screen:not(.hidden) {
  animation: overlay-reveal 300ms cubic-bezier(0.2, 0.24, 0.6, 1) both;
}

.screen-logo {
  position: absolute;
  top: 25px;
  left: 50%;
  display: grid;
  place-items: center;
  color: rgba(237, 240, 242, 0.88);
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  transform: translateX(-50%);
}

.digging-character {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 64px;
  width: 156px;
  height: 144px;
  color: rgba(231, 236, 239, 0.88);
  transform: translateX(-50%);
}

.loading-steps {
  position: absolute;
  left: 92px;
  top: 218px;
  width: 430px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.loading-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: center;
  opacity: 0.2;
  transition: opacity 250ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.loading-step.previous {
  opacity: 0.5;
}

.loading-step.active {
  opacity: 1;
}

.loading-step h2 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 800;
}

.loading-step p {
  margin: 0;
  max-width: 382px;
  color: rgba(220, 226, 231, 0.74);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 600;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(106, 191, 255, 0.3);
  border-top-color: var(--blue);
  opacity: 0;
}

.loading-step.active .loader-ring {
  opacity: 1;
  animation: spin 900ms linear infinite;
}

.error-copy {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 240px;
  text-align: center;
}

.error-copy h2 {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.05;
  font-weight: 800;
}

.error-copy p {
  margin: 0;
  color: rgba(223, 229, 233, 0.78);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.error-action {
  position: absolute;
  left: 165px;
  top: 350px;
  width: 280px;
  height: 82px;
  font-size: 28px;
}

.hidden {
  display: none;
}

.focusable {
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    border-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.focusable:focus {
  border-color: #bce7ff;
  transform: scale(0.965);
}

.home-action.focusable:focus,
.home-action.dpad-selected {
  transform: none;
}

.home-action.focusable:active,
.back-action:active,
.error-action:active {
  transform: scale(0.94);
  transition-duration: 100ms;
}

.header-action:focus,
.error-action:focus {
  border-width: 3px;
  color: var(--text-strong);
  background: linear-gradient(145deg, rgba(92, 177, 232, 0.42), rgba(21, 31, 40, 0.98));
  box-shadow:
    0 0 0 3px rgba(106, 191, 255, 0.2),
    0 0 28px rgba(106, 191, 255, 0.54);
}

.material-stage:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes screen-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlay-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes halo-pulse {
  0% { transform: scale(0.7); opacity: 0.56; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .screen:not(.hidden),
  .loading-screen:not(.hidden),
  .error-screen:not(.hidden),
  .focusable,
  #materialCanvas,
  .copy-panel,
  .material-title,
  .loading-step {
    transition: none;
  }

  .screen:not(.hidden),
  .loading-screen:not(.hidden),
  .error-screen:not(.hidden) {
    animation: none;
  }

  .loading-step.active .loader-ring {
    animation: none;
  }

  .accuracy-halo,
  .status-spinner {
    animation: none !important;
  }
}
