:root {
  --bg: #141414;
  --panel: #1f1f1f;
  --line: #333;
  --text: #ededed;
  --muted: #a8a8a8;
  --gold: #e9b44c;
  --gold-ink: #141414;
  --warn: #f0c36d;
  --error: #ff8a80;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
a {
  color: var(--gold);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}
.brand img {
  border-radius: 9px;
}
.lang {
  display: flex;
  gap: 4px;
}
.lang button {
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 24px 0 12px;
}
h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 12px;
}
.note {
  color: var(--muted);
  font-size: 15px;
}
.warn {
  color: var(--warn);
  font-size: 15px;
}
.error {
  color: var(--error);
  font-size: 15px;
}
.open,
.steps > li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 16px;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
}
.steps > li {
  position: relative;
  padding-left: 64px;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #555;
  background: #262626;
  color: var(--text);
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
button.primary,
button.ghost,
.download {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.primary {
  background: var(--gold);
  color: var(--gold-ink);
}
button.ghost,
.download {
  background: transparent;
  color: var(--gold);
}
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.download[data-current='true'] {
  background: var(--gold);
  color: var(--gold-ink);
}
.links {
  padding-left: 18px;
  margin: 0;
}
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 480px) {
  .steps > li {
    padding-left: 20px;
    padding-top: 60px;
  }
}
#camera {
  display: block;
  width: 100%;
  max-height: 40svh;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  margin: 12px 0;
}
[hidden] {
  display: none !important;
}
