@font-face {
  font-family: Roboto;
  src: url('./fonts/roboto-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url('./fonts/roboto-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('./fonts/google-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('./fonts/roboto-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: Roboto, sans-serif;
  color: #e6e0e9;
  background: #141218;
  font-synthesis: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.languages {
  position: absolute;
  top: 32px;
  right: 48px;
  display: flex;
  gap: 2px;
}

.languages button {
  width: 71px;
  height: 48px;
  border-radius: 8px;
  color: #e8def8;
  background: #4a4458;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.languages button:first-child { border-top-left-radius: 24px; border-bottom-left-radius: 24px; }
.languages button:last-child { border-top-right-radius: 24px; border-bottom-right-radius: 24px; }
.languages button[aria-pressed='true'] { border-radius: 24px; color: #381e72; background: #d0bcff; }
main { padding: 64px 24px 48px; }
.logo { display: block; width: 160px; height: 160px; object-fit: contain; margin: 0 auto 16px; }

.setup-card {
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 24px 28px;
  text-align: center;
  background: #211f26;
  border-radius: 28px;
}

h1 { margin: 0; font: 500 24px/36px 'Google Sans', Roboto, sans-serif; }
.app-name { margin: 8px 0 24px; color: #cac4d0; font-size: 14px; line-height: 24px; }
.download-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store-card { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 12px 8px 8px; background: #2b2930; border-radius: 12px; color: #d0bcff; text-decoration: none; }
.store-qr { display: block; width: 160px; max-width: 100%; aspect-ratio: 1; }
.store-qr svg, .account-qr svg { display: block; width: 100%; height: 100%; }
.store-label { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 20px; font-size: 14px; line-height: 20px; font-weight: 500; }
.store-label svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.continue-button { display: block; width: 100%; min-height: 48px; margin-top: 24px; padding: 12px 16px; border-radius: 24px; color: #381e72; background: #d0bcff; font-size: 14px; font-weight: 500; line-height: 20px; }
button:hover, .store-card:hover { filter: brightness(1.08); }
button:active, .store-card:active { filter: brightness(.94); }
:focus-visible { outline: 2px solid #e8def8; outline-offset: 4px; }
h1:focus { outline: none; }
.scan-card { width: 464px; }
.scan-card h1 { font-size: 28px; line-height: 40px; }
.account-qr { width: 264px; max-width: 100%; aspect-ratio: 1; margin: -4px auto 0; color: #d0bcff; }
.return-instruction { margin: 0 0 20px; color: #cac4d0; font-size: 16px; line-height: 24px; white-space: pre-line; }
.command { padding: 14px 8px; border-radius: 12px; background: #2b2930; }
.command code { font: 400 16px/24px 'Roboto Mono', monospace; }
.setup-error { margin: 24px 0 0; color: #ffb4ab; font-size: 16px; line-height: 24px; }
.noscript-message { text-align: center; line-height: 1.5; }

@media (max-width: 600px) {
  main { padding: 80px 16px 32px; }
  .languages { top: 16px; right: 16px; }
  .languages button { width: 56px; height: 40px; }
  .setup-card { padding: 24px 20px; }
  h1 { font-size: 22px; line-height: 32px; }
  .scan-card h1 { font-size: 26px; line-height: 36px; }
}

@media (max-width: 360px) {
  .setup-card { padding-right: 16px; padding-left: 16px; }
  .store-card { padding-right: 4px; padding-left: 4px; }
  .store-label { font-size: 12px; gap: 2px; }
  .return-instruction { font-size: 14px; }
}
