@font-face {
  font-family: Inter;
  src: url("/brand/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #edf1ef;
  --muted: #adb8c5;
  --bg: #101b2a;
  --panel: #19283b;
  --line: #34465b;
  --accent: #b6f080;
  --accent-ink: #172c15;
  --danger: #ffb7ad;
  --surface: #0b1421;
  --shadow: rgba(0, 0, 0, 0.3);
  --canvas-bg: #d7dcd9;
  --radius: 20px;
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.action {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.action:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
  background: var(--bg);
  padding: 15px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  font-size: 24px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand img {
  width: 28px;
  vertical-align: middle;
  margin-right: 10px;
}
.app-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.app-nav a[aria-current="page"] {
  color: var(--accent);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 4vw 80px;
  min-height: 75vh;
}
h1 {
  font-weight: 500;
  letter-spacing: -0.055em;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  margin: 12px 0 24px;
}
h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 18px;
  font-weight: 550;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 650;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}
.muted,
small {
  color: var(--muted);
  line-height: 1.5;
}
p {
  line-height: 1.6;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px;
  min-height: 46px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.6;
}
.error {
  border-color: var(--danger);
  color: var(--danger);
}
#app-status:empty {
  display: none;
}
#app-status {
  margin-bottom: 24px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--canvas-bg);
}
.product-card .content {
  padding: 20px;
}
.product-card h2 {
  font-size: 21px;
  margin-top: 0;
}
.product-card .row {
  justify-content: space-between;
}
.price {
  font-size: 20px;
  font-weight: 550;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}
.scene-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin: 20px 0;
}
.scene-wrap canvas {
  display: block;
  width: 100%;
  height: min(68vh, 690px);
  min-height: 350px;
  touch-action: none;
  outline: none;
}
.scene-status {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  max-width: 80%;
}
.scene-toolbar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.scene-toolbar > * {
  pointer-events: auto;
}
.scene-pad {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
}
.scene-pad button {
  padding: 0;
  border-radius: 12px;
  background: var(--bg);
  user-select: none;
}
.scene-pad .forward {
  grid-column: 2;
}
.scene-pad .left {
  grid-column: 1;
}
.scene-help {
  font-size: 12px;
  color: var(--muted);
  max-width: 630px;
}
.product-focus {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.bag {
  position: sticky;
  top: 20px;
  align-self: start;
}
.bag ul,
.events {
  list-style: none;
  padding: 0;
}
.bag li,
.events li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.events {
  max-height: 360px;
  overflow: auto;
}
.avatar-layout {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 1fr;
  gap: 24px;
}
.avatar-layout canvas {
  height: 480px;
  min-height: 300px;
}
.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.hidden,
[hidden] {
  display: none !important;
}
.app-footer {
  max-width: 1400px;
  margin: auto;
  padding: 20px 4vw 40px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 600px;
  width: calc(100% - 32px);
  padding: 24px;
}
dialog::backdrop {
  background: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.provider-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 760px) {
  .split,
  .avatar-layout {
    grid-template-columns: 1fr;
  }
  .app-header {
    padding: 16px 20px;
  }
  .app-nav {
    gap: 13px;
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .panel {
    padding: 20px;
  }
  .bag {
    position: static;
  }
  .screen-title {
    display: block;
  }
  .scene-wrap canvas {
    height: 58vh;
  }
  .catalog {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

:root {
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-right: env(safe-area-inset-right, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-left: env(safe-area-inset-left, 0px);
}
html,
body {
  min-height: 100dvh;
}
.app-header {
  padding-top: calc(18px + var(--app-safe-top));
  padding-right: calc(4vw + var(--app-safe-right));
  padding-left: calc(4vw + var(--app-safe-left));
}
main {
  padding-left: calc(4vw + var(--app-safe-left));
  padding-right: calc(4vw + var(--app-safe-right));
}
.app-footer {
  padding-bottom: calc(40px + var(--app-safe-bottom));
}
dialog {
  max-height: calc(
    100dvh - var(--app-safe-top) - var(--app-safe-bottom) - 32px
  );
  overflow: auto;
}
.scene-wrap canvas {
  height: min(68dvh, 690px);
}
@media (max-width: 760px) {
  .app-header {
    padding-top: calc(16px + var(--app-safe-top));
  }
  .scene-wrap canvas {
    height: 58dvh;
  }
}

.initial-arrival {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 65dvh;
  text-align: center;
}
.initial-arrival img {
  margin-bottom: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .initial-arrival img {
    animation: brand-arrival 1.5s ease-in-out infinite alternate;
  }
  @keyframes brand-arrival {
    from {
      opacity: 0.55;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
