/*
 * Grande Prêmio Genesys — layout do PSD "PERSONALIZADO - GENESYS".
 *
 * Todas as medidas vêm das pranchetas de 1080×1920 e são escritas como
 * `calc(N * var(--u))`, onde --u é 1px do layout na tela atual. Assim qualquer valor
 * aqui confere direto com o PSD, e a tela escala igual em qualquer celular.
 */

@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --orange: #ff451a;
  --navy: #111f46;
  --navy-deep: #141f3b;
  --ink: #15223e;
  --grey: #c5c5c5;
  --grey-text: #9ba0aa;
  --field-placeholder: #a9a9a9;
  --option-border: #98999b;
  --bg: #0a0e1d;
  --ok: #1fa35b;
  --err: #d62d20;

  /* Pino de parceiro ainda não concluído: mesma família do laranja, mais claro. */
  --pin-pending-fill: #ffffff;
  --pin-pending-ink: var(--orange);

  /* Largura útil: a tela inteira no celular, travada em 480px no desktop. */
  --w: min(100vw, 480px);
  --u: calc(var(--w) / 1080);
  --nav-h: calc(300 * var(--u));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: "Roboto", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.is-orange { color: var(--orange); }

/* ------------------------------------------------------------------ casca */

.app {
  position: relative;
  width: var(--w);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg) url("/assets/ui/bg.jpg") top center / 100% auto no-repeat;
  padding-bottom: calc(var(--nav-h) + 40 * var(--u));
  overflow-x: hidden;
}
/* Telas de entrada: fundo com o quadriculado na base, e sem barra de navegação. */
.app.is-intro {
  background-image: url("/assets/ui/bg-inicio.jpg");
  padding-bottom: calc(60 * var(--u));
}

.brand { padding-top: calc(166 * var(--u)); text-align: center; }
.brand img { width: calc(607 * var(--u)); height: auto; display: block; margin: 0 auto; }

.screen { display: none; }
.screen.is-active { display: block; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(calc(16 * var(--u))); } to { opacity: 1; transform: none; } }

.loading { display: grid; place-items: center; padding-top: calc(600 * var(--u)); }
.spinner {
  width: calc(90 * var(--u)); height: calc(90 * var(--u));
  border-radius: 50%;
  border: calc(10 * var(--u)) solid rgba(255, 255, 255, .15);
  border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- botões */

.btn {
  display: block;
  margin-left: auto; margin-right: auto;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .25);
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { filter: saturate(.4) brightness(.85); cursor: default; }
.btn--xl { width: calc(708 * var(--u)); height: calc(159 * var(--u)); border-radius: calc(46 * var(--u)); font-size: calc(60 * var(--u)); }
.btn--md { width: calc(562 * var(--u)); height: calc(127 * var(--u)); border-radius: calc(40 * var(--u)); font-size: calc(47 * var(--u)); }

/* ------------------------------------------------------------- abertura */

.intro__title { margin: calc(281 * var(--u)) 0 0; text-align: center; line-height: 0; }
.intro__title img { width: calc(894 * var(--u)); height: auto; }
.intro__lead {
  margin: calc(66 * var(--u)) 0 0;
  text-align: center;
  font-size: calc(50 * var(--u));
  line-height: 1.12;
}
#screen-intro .btn { margin-top: calc(73 * var(--u)); }

/* --------------------------------------------------------- formulários */

.title { margin: 0; text-align: center; font-weight: 900; font-style: italic; }
.title--form {
  margin-top: calc(271 * var(--u));
  font-size: calc(80 * var(--u));
  line-height: 1;
}

.form {
  width: calc(708 * var(--u));
  margin: calc(63 * var(--u)) auto 0;
  display: grid;
  gap: calc(15 * var(--u));
}
.input {
  width: 100%;
  height: calc(103 * var(--u));
  border: 0;
  border-radius: calc(52 * var(--u));
  background: #fff;
  color: #000;
  text-align: center;
  font: 300 max(16px, calc(35 * var(--u))) "Roboto", sans-serif; /* 16px mínimo: evita zoom do iOS */
  outline: none;
}
.input::placeholder { color: var(--field-placeholder); }
.input:focus { box-shadow: 0 0 0 calc(6 * var(--u)) var(--orange); }
.input[aria-invalid="true"] { box-shadow: 0 0 0 calc(6 * var(--u)) var(--err); }

.form__hint {
  margin: calc(6 * var(--u)) 0 0;
  text-align: center;
  font-size: calc(28 * var(--u));
  line-height: 1.3;
  color: rgba(255, 255, 255, .75);
}
.form .btn { margin-top: calc(33 * var(--u)); }
.form__error {
  min-height: calc(40 * var(--u));
  margin: calc(4 * var(--u)) 0 0;
  text-align: center;
  font-size: calc(30 * var(--u));
  font-weight: 500;
  color: #ffb4a3;
}

.consent {
  display: flex;
  gap: calc(14 * var(--u));
  align-items: flex-start;
  margin: calc(6 * var(--u)) calc(38 * var(--u)) 0 calc(36 * var(--u));
  font-size: calc(25 * var(--u));
  line-height: calc(30 * var(--u));
  letter-spacing: -0.02em;
  text-align: justify;
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: none;
  width: calc(24 * var(--u)); height: calc(24 * var(--u));
  margin: calc(4 * var(--u)) 0 0;
  border-radius: 50%;
  border: calc(3 * var(--u)) solid #fff;
  background: transparent;
  cursor: pointer;
  /* Área de toque maior que o círculo do layout. */
  outline: calc(18 * var(--u)) solid transparent;
}
.consent input:checked { background: var(--orange); border-color: #fff; box-shadow: inset 0 0 0 calc(3 * var(--u)) #fff; }
.consent.is-invalid input { border-color: #ffb4a3; }
.consent.is-invalid span { color: #ffb4a3; }

/* ------------------------------------------------------- como participar */

.title--how { margin-top: calc(160 * var(--u)); font-size: calc(100 * var(--u)); line-height: 1.05; }
.how__lead { margin: calc(40 * var(--u)) 0 0; text-align: center; font-size: calc(50 * var(--u)); line-height: 1.1; }

.steps {
  list-style: none;
  width: calc(854 * var(--u));
  margin: calc(53 * var(--u)) auto 0;
  padding: 0;
  background: #fff;
  border-radius: calc(46 * var(--u));
  color: #000;
}
.steps li {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(170 * var(--u));
  margin: 0 calc(73 * var(--u)) 0 calc(71 * var(--u));
}
.steps li + li { border-top: calc(4 * var(--u)) solid var(--navy); }
.steps__n {
  position: absolute;
  left: calc(-118 * var(--u));
  width: calc(106 * var(--u)); height: calc(106 * var(--u));
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: calc(60 * var(--u));
  font-weight: 900;
}
.steps img { flex: none; width: calc(130 * var(--u)); height: calc(130 * var(--u)); object-fit: contain; margin-left: calc(57 * var(--u)); }
.steps p { margin: 0 0 0 calc(88 * var(--u)); font-size: calc(45 * var(--u)); line-height: 1.15; }
#screen-how .btn { margin-top: calc(80 * var(--u)); }

/* ------------------------------------------------------------- cartões */

.card {
  position: relative;
  width: calc(963 * var(--u));
  margin: calc(102 * var(--u)) auto 0;
  border-radius: calc(44 * var(--u));
  overflow: hidden;
}
.card--orange { background: var(--orange); color: #fff; }
.card--white { background: #fff; color: var(--ink); }
.card__title { margin: 0; text-align: center; font-size: calc(60 * var(--u)); font-weight: 900; line-height: 1.2; }
.card__title--sm { font-size: calc(50 * var(--u)); line-height: 1.04; }

/* ------------------------------------------------------------------ mapa */

.card--map { padding: calc(62 * var(--u)) 0 calc(28 * var(--u)); }
.map {
  position: relative;
  width: calc(885 * var(--u));
  height: calc(730 * var(--u));
  margin: calc(38 * var(--u)) auto 0;
  overflow: hidden;
  background: #fff;
  touch-action: none; /* o pan/pinch é tratado no JS */
  user-select: none;
}
.map__canvas {
  position: absolute; inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.map.is-animating .map__canvas { transition: transform .25s ease; }
.map__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.map__pins { position: absolute; inset: 0; }

/* Pino: ponta ancorada na coordenada; escala inversa ao zoom para manter o tamanho. */
.pin {
  position: absolute;
  width: calc(52 * var(--u)); height: calc(70 * var(--u));
  transform: translate(-50%, -100%) scale(calc(1 / var(--z, 1)));
  transform-origin: 50% 100%;
  border: 0; padding: 0; background: none;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, .3));
}
.pin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pin .pin__body { fill: var(--pin-pending-fill); stroke: var(--pin-pending-ink); stroke-width: 3.5; }
/* Unidades do viewBox (52×70), não px: o número escala junto com o pino. */
.pin .pin__n { fill: var(--pin-pending-ink); font: 900 40px "Roboto", sans-serif; }
.pin--done .pin__body { fill: var(--orange); stroke: none; }
.pin--done .pin__n { fill: #fff; }

.pin--here { width: calc(78 * var(--u)); height: calc(103 * var(--u)); z-index: 2; }
.pin--here .pin__body { fill: var(--navy); stroke: none; }
.pin--here::after {
  /* Pulso sob a ponta: é o que diferencia "você está aqui" de um ponto qualquer. */
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: calc(60 * var(--u)); height: calc(24 * var(--u));
  margin-left: calc(-30 * var(--u));
  border-radius: 50%;
  background: rgba(17, 31, 70, .45);
  transform: translateY(50%);
  animation: here 1.8s ease-out infinite;
  z-index: -1;
}
@keyframes here { from { opacity: .9; transform: translateY(50%) scale(.6); } to { opacity: 0; transform: translateY(50%) scale(2.2); } }

/* Estande Genesys quando o participante está em outro ponto. */
.pin--hub .pin__body { fill: #fff; stroke: var(--navy); stroke-width: 3.5; }

.pin__symbol {
  position: absolute;
  left: 50%; top: 14%;
  width: 34%; height: auto;
  transform: translateX(-50%);
}

.pin--legend {
  position: relative;
  transform: none;
  flex: none;
}
.pin--legend::after { display: none; }

.map__popup {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(759 * var(--u));
  min-height: calc(330 * var(--u));
  padding: calc(56 * var(--u)) calc(40 * var(--u)) calc(34 * var(--u));
  transform: translate(-50%, -50%);
  background: #fff;
  border: calc(4 * var(--u)) solid var(--orange);
  border-radius: calc(40 * var(--u));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 calc(10 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, .3);
  animation: pop .22s ease both;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
.popup__pin {
  position: absolute;
  left: calc(29 * var(--u)); top: calc(-50 * var(--u));
  width: calc(98 * var(--u)); height: calc(132 * var(--u));
}
.popup__pin .pin { position: static; width: 100%; height: 100%; transform: none; }
.popup__local {
  margin: calc(26 * var(--u)) 0 0;
  font-size: calc(30 * var(--u));
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.05em;
  color: #b7b7b7;
}
.popup__status {
  margin: calc(14 * var(--u)) 0 0;
  font-size: calc(28 * var(--u));
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--orange);
}

.map__footer {
  display: flex;
  align-items: center;
  width: calc(885 * var(--u));
  margin: calc(12 * var(--u)) auto 0;
  padding-left: calc(5 * var(--u));
}
.legend { display: flex; align-items: center; gap: calc(12 * var(--u)); width: calc(310 * var(--u)); }
.legend span:last-child {
  font-size: calc(27 * var(--u));
  line-height: calc(29.5 * var(--u));
  font-weight: 500;
  letter-spacing: -0.05em;
}
.zoom { display: flex; align-items: center; gap: calc(22 * var(--u)); }
.zoom span { font-size: calc(27 * var(--u)); font-weight: 900; letter-spacing: -0.05em; }
.zoom__btn {
  width: calc(76 * var(--u)); height: calc(76 * var(--u));
  border-radius: 50%;
  border: calc(5 * var(--u)) solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: calc(47 * var(--u));
  font-weight: 900;
  line-height: 1;
  padding: 0;
}
.zoom__btn:disabled { opacity: .4; }

/* --------------------------------------------------------------- scanner */

.card--scan { padding: calc(62 * var(--u)) 0 calc(118 * var(--u)); }
.scanner {
  position: relative;
  width: calc(726 * var(--u));
  height: calc(726 * var(--u));
  margin: calc(43 * var(--u)) auto 0;
  background: #000;
  overflow: hidden;
}
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner__frame {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(539 * var(--u));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.scanner__msg {
  position: absolute; inset: 0;
  margin: 0;
  display: grid; place-items: center;
  padding: calc(90 * var(--u));
  text-align: center;
  font-size: calc(34 * var(--u));
  line-height: 1.35;
  color: #fff;
}

/* --------------------------------------------------------------- missão */

.card--mission {
  min-height: calc(1051 * var(--u));
  padding: calc(271 * var(--u)) 0 calc(84 * var(--u));
  text-align: center;
}
.partner-logo { display: grid; place-items: center; margin: 0 auto; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Sem logo cadastrado (dados genéricos): mostra o nome no lugar. */
.partner-logo span { font-weight: 900; font-style: italic; color: var(--navy); line-height: 1; }
.partner-logo--lg { width: calc(773 * var(--u)); height: calc(172 * var(--u)); }
.partner-logo--lg span { font-size: calc(110 * var(--u)); }
.partner-logo--sm { width: calc(536 * var(--u)); height: calc(120 * var(--u)); }
.partner-logo--sm span { font-size: calc(76 * var(--u)); }
.popup__logo { width: calc(570 * var(--u)); height: calc(127 * var(--u)); margin: 0 auto; display: grid; place-items: center; }
.popup__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.popup__logo span { font-size: calc(80 * var(--u)); font-weight: 900; font-style: italic; color: var(--navy); }

.mission__lead { margin: calc(86 * var(--u)) 0 0; font-size: calc(63 * var(--u)); line-height: 1.12; color: var(--ink); }
#mission-start { margin-top: calc(142 * var(--u)); }

.card--question {
  min-height: calc(1051 * var(--u));
  padding: calc(89 * var(--u)) calc(67 * var(--u)) calc(65 * var(--u));
  text-align: center;
}
.question__count {
  margin: calc(24 * var(--u)) 0 0;
  font-size: calc(28 * var(--u));
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--orange);
}
.question__text {
  margin: calc(62 * var(--u)) 0 0;
  font-size: calc(60 * var(--u));
  font-weight: 500;
  line-height: 1.08;
  color: #101c33;
}
.options { display: grid; gap: calc(14 * var(--u)); margin-top: calc(50 * var(--u)); }
.option {
  width: 100%;
  min-height: calc(123 * var(--u));
  padding: calc(18 * var(--u)) calc(40 * var(--u));
  border-radius: calc(62 * var(--u));
  border: calc(3 * var(--u)) solid var(--option-border);
  background: #fff;
  color: #101c33;
  font-size: calc(40 * var(--u));
  line-height: 1.15;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.option:disabled { cursor: default; }
.option.is-selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.option.is-wrong { background: var(--err); border-color: var(--err); color: #fff; }
.option.is-right { border-color: var(--ok); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--ok); color: var(--ok); font-weight: 500; }
.option.is-selected.is-right { background: var(--ok); color: #fff; }

.question__feedback {
  min-height: calc(50 * var(--u));
  margin: calc(30 * var(--u)) 0 0;
  font-size: calc(38 * var(--u));
  font-weight: 900;
}
.question__feedback.is-ok { color: var(--ok); }
.question__feedback.is-err { color: var(--err); }
#question-next { margin-top: calc(18 * var(--u)); }

/* ------------------------------------------------------ missão concluída */

.card--done { min-height: calc(866 * var(--u)); padding-top: calc(64 * var(--u)); text-align: center; }
.rays {
  position: absolute;
  left: 50%; top: calc(530 * var(--u));
  width: calc(1512 * var(--u)); height: calc(1512 * var(--u));
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 58%);
  mask-image: radial-gradient(circle, #000 12%, transparent 58%);
  animation: rays 24s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.done__title, .done__badge, .done__piece { position: relative; }
.done__title { margin: 0; font-size: calc(100 * var(--u)); line-height: calc(105 * var(--u)); font-weight: 900; font-style: italic; }
.done__badge {
  display: block;
  width: calc(388 * var(--u)); height: calc(425 * var(--u));
  margin: calc(35 * var(--u)) auto 0;
  object-fit: contain;
  animation: badge .7s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
@keyframes badge { from { opacity: 0; transform: scale(.3) rotate(-20deg); } to { opacity: 1; transform: none; } }
.done__piece { margin: calc(30 * var(--u)) 0 0; font-size: calc(50 * var(--u)); font-weight: 900; }

.card--dots { margin-top: calc(15 * var(--u)); height: calc(199 * var(--u)); padding-top: calc(22 * var(--u)); text-align: center; }
.dots__title { margin: 0; font-size: calc(40 * var(--u)); font-weight: 900; color: #121e38; }
.dots {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: calc(704 * var(--u));
  margin: calc(28 * var(--u)) auto 0;
}
.dots::before {
  content: "";
  position: absolute;
  left: calc(30 * var(--u)); right: calc(30 * var(--u)); top: 50%;
  height: calc(9 * var(--u));
  transform: translateY(-50%);
  background: var(--grey);
}
.dots i {
  position: relative;
  width: calc(64 * var(--u)); height: calc(64 * var(--u));
  border-radius: 50%;
  background: var(--grey);
}
.dots i.is-on { background: var(--orange); }
.dots i.is-new { animation: dot .6s ease .5s both; }
@keyframes dot { from { transform: scale(0); } 70% { transform: scale(1.3); } to { transform: scale(1); } }

/* ------------------------------------------------------------ inventário */

.card--inventory {
  width: calc(973 * var(--u));
  min-height: calc(1061 * var(--u));
  margin-top: calc(97 * var(--u));
  padding-top: calc(62 * var(--u));
  border: calc(6 * var(--u)) solid var(--orange);
}
.title--inventory { font-size: calc(80 * var(--u)); line-height: 1.1; }
.hexgrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, calc(201 * var(--u)));
  column-gap: calc(70 * var(--u));
  row-gap: calc(50 * var(--u));
  justify-content: center;
  margin: calc(37 * var(--u)) 0 0;
  padding: 0;
}
.hex { position: relative; text-align: center; }
/* Traço que liga as insígnias de uma mesma linha, como no layout. */
.hex:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  left: 100%; top: calc(110 * var(--u));
  width: calc(70 * var(--u));
  height: calc(7 * var(--u));
  background: var(--grey);
}
.hex:last-child { grid-column: 2; }
.hex:last-child::after { display: none; }
.hex img { display: block; width: calc(201 * var(--u)); height: calc(226 * var(--u)); object-fit: contain; }
.hex span { display: block; margin-top: calc(8 * var(--u)); font-size: calc(25 * var(--u)); font-weight: 900; color: #0c162b; }
.hex.is-locked span { color: var(--grey-text); }
.hex.is-new img { animation: badge .7s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ------------------------------------------------------ jornada completa */

.card--complete { min-height: calc(866 * var(--u)); padding-top: calc(62 * var(--u)); text-align: center; }
.stars { display: flex; justify-content: center; align-items: flex-start; gap: calc(20 * var(--u)); }
.stars img { width: calc(96 * var(--u)); margin-top: calc(44 * var(--u)); animation: badge .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.stars img:nth-child(2) { width: calc(150 * var(--u)); margin-top: 0; animation-delay: .15s; }
.stars img:nth-child(3) { animation-delay: .3s; }
.complete__title { margin: calc(72 * var(--u)) 0 0; font-size: calc(152 * var(--u)); line-height: calc(160 * var(--u)); font-weight: 900; font-style: italic; }
.complete__lead { margin: calc(50 * var(--u)) 0 0; font-size: calc(65 * var(--u)); line-height: 1.12; font-weight: 300; font-style: italic; }

/* ------------------------------------------------------------ navegação */

.nav {
  position: fixed;
  left: 50%; bottom: 0;
  z-index: 20;
  width: var(--w);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: #fff;
  border-radius: calc(44 * var(--u)) calc(44 * var(--u)) 0 0;
}
.nav__item {
  position: absolute;
  top: calc(38 * var(--u));
  width: calc(265 * var(--u));
  border: 0; background: none; padding: 0;
  display: grid; justify-items: center;
  color: var(--orange);
  font-size: calc(30 * var(--u));
  font-weight: 900;
}
.nav__item--map { left: calc(56 * var(--u)); }
.nav__item--inv { left: calc(772 * var(--u)); }
.nav__item img { height: calc(137 * var(--u)); width: auto; }
.nav__item--inv img { height: calc(124 * var(--u)); margin-top: calc(12 * var(--u)); }
.nav__item span { margin-top: calc(24 * var(--u)); }
.nav__item--inv span { margin-top: calc(22 * var(--u)); }

.nav__scan {
  position: absolute;
  left: 50%; top: calc(-126 * var(--u));
  width: calc(327 * var(--u)); height: calc(327 * var(--u));
  transform: translateX(-50%);
  border-radius: 50%;
  border: calc(22 * var(--u)) solid var(--navy-deep);
  background: var(--orange);
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  color: #fff;
  font-size: calc(30 * var(--u));
  font-weight: 900;
  line-height: 1.05;
}
.nav__scan img { width: calc(131 * var(--u)); margin-top: calc(39 * var(--u)); }
.nav__scan span { margin-top: calc(24 * var(--u)); }
.nav__scan:active { filter: brightness(.95); }

.nav__badge {
  position: absolute;
  top: calc(-36 * var(--u)); right: calc(62 * var(--u));
  min-width: calc(51 * var(--u)); height: calc(51 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(26 * var(--u));
  background: var(--orange);
  border: calc(4 * var(--u)) solid #fff;
  color: #fff;
  font-size: calc(28 * var(--u));
  font-weight: 900;
  line-height: calc(43 * var(--u));
  font-style: normal;
}

.nav__bar {
  position: absolute;
  top: calc(246 * var(--u));
  left: calc(56 * var(--u));
  width: calc(265 * var(--u));
  height: calc(25 * var(--u));
  border-radius: calc(13 * var(--u));
  background: var(--orange);
  transition: left .25s ease;
}
.nav[data-active="scan"] .nav__bar { left: calc(408 * var(--u)); }
.nav[data-active="inventory"] .nav__bar { left: calc(769 * var(--u)); }

/* ----------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 150 * var(--u));
  z-index: 30;
  width: max-content;
  max-width: calc(var(--w) - 32px);
  padding: calc(26 * var(--u)) calc(44 * var(--u));
  border-radius: calc(60 * var(--u));
  background: var(--navy);
  color: #fff;
  font-size: calc(34 * var(--u));
  font-weight: 500;
  text-align: center;
  box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translate(-50%, calc(20 * var(--u)));
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.app.is-intro .toast { bottom: calc(80 * var(--u)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
