.beta-page {
  max-width: 1100px;
  margin: auto;
  padding: 0 clamp(14px, 4vw, 46px) 64px;
  color: #e9e5d2;
}
.beta-hero {
  margin: 22px 0;
  padding: clamp(30px, 5vw, 64px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid #a58b52;
  background:
    linear-gradient(90deg, #111913 12%, #182119ea 45%, #38372166),
    url('assets/dusklight/hyrule.webp') center 48% / cover;
}
.beta-hero::before {
  content: '';
  position: absolute;
  inset: 0 1% 0 51%;
  z-index: -1;
  background: url('assets/dusklight/wolf-midna.webp') center / contain no-repeat;
}
.hero-copy {
  max-width: 53%;
}
.beta-platform,
.beta-guide figcaption {
  font:
    bold 11px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0c581;
}
.beta-hero img {
  width: min(100%, 380px);
  margin: 14px 0 8px;
}
.beta-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 500;
  color: #fff2cf;
}
.beta-hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font:
    14px/1.6 Arial,
    sans-serif;
}
.beta-hero nav a {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #aa925b;
}
.beta-setup {
  display: grid;
  gap: 20px;
}
.beta-card {
  padding: clamp(20px, 4vw, 42px);
  background: linear-gradient(125deg, #283228, #1b231e);
  border: 1px solid #555944;
  border-top: 2px solid #a58b52;
  box-shadow: 0 8px 24px #0003;
}
.beta-card h2 {
  color: #f2e6bf;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 13px;
}
.beta-card p,
.beta-guide,
.beta-card form {
  font:
    16px/1.55 'DM Sans',
    Arial,
    sans-serif;
}
.beta-card p,
.guide-steps {
  color: #d5d1bb;
}
.beta-install {
  display: grid;
  gap: 19px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  align-items: center;
}
.beta-install-download {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.beta-qr {
  width: min(100%, 240px);
  image-rendering: pixelated;
  background: #fff;
}
.beta-card .twilight-button {
  margin-top: 18px;
  font-size: 15px;
}
.beta-install .beta-download {
  margin-top: 0;
}
.beta-guide {
  border-top: 1px solid #ad9c5e65;
  margin-top: 18px;
}
.beta-guide summary:hover {
  background: #ad9c5e29;
}
.guide-heading,
.guide-step h4 {
  font:
    600 27px/1.15 Twilight Serif,
    Georgia,
    serif;
  color: #fff0c9;
  margin: 0;
}
.guide-heading {
  padding-block: 16px;
}
.guide-step h4 {
  margin-bottom: 10px;
}
.converter-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.converter-downloads .twilight-button {
  margin-top: 0;
}
.guide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
}
.guide-controls button {
  width: 44px;
  height: 44px;
  background: #151c16;
  border: 1px solid #ad9c5e85;
  color: #ffe6ad;
  font-size: 17px;
  transition:
    background-color 180ms,
    border-color 180ms,
    color 180ms,
    opacity 180ms;
}
.guide-controls button[aria-current='step'] {
  background: #e0c581;
  border-color: #e0c581;
  color: #151c16;
}
.guide-controls button:not([aria-disabled='true'], [aria-current]):hover {
  background: #ad9c5e29;
}
.guide-controls button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
}
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid #808063;
  background: #151c16;
}
.guide-step:not([hidden]) + .guide-step:not([hidden]) {
  margin-top: 12px;
}
.guide-step img {
  width: 100%;
  aspect-ratio: 1060 / 960;
  object-fit: contain;
  border: 1px solid #ad9c5e65;
  border-radius: 6px;
  background: #151b17;
}
.cli-guide summary {
  min-height: 44px;
  padding: 10px 6px;
  color: #f2e6bf;
  cursor: pointer;
}
.cli-guide figure {
  margin-block: 14px;
}
.cli-guide pre {
  margin: 4px 0 0;
  padding: 9px 12px;
  background: #151c16;
  white-space: pre-wrap;
}
.beta-card code {
  color: #f2e6bf;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.beta-report {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: 20px;
}
.beta-report form {
  margin: 0;
}
.beta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.beta-report label {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
  color: #f2e6bf;
}
.beta-report :is(input:not([type='checkbox']), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ad9c5e85;
  border-radius: 0;
  background: #151c16;
  color: #f2e6bf;
  font: inherit;
}
.beta-report :is(input, select, textarea):focus-visible {
  outline: 2px solid #b5d5bb;
  outline-offset: 2px;
}
.beta-report .beta-hint {
  margin: -8px 0 16px;
  font-size: 14px;
}
.beta-report .beta-consent {
  display: flex;
  align-items: flex-start;
  margin: 0;
}
.beta-consent input {
  flex: none;
  margin-top: 5px;
  accent-color: #dfc887;
}
.beta-report button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.beta-report progress {
  display: block;
  width: 100%;
  margin-top: 16px;
  accent-color: #b5d5bb;
}
.beta-report .beta-status:not(:empty) {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.beta-report .beta-status[data-error] {
  color: #ffd3b2;
}
@media (max-width: 700px) {
  .beta-setup,
  .beta-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .beta-setup {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .guide-step,
  .beta-report {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .beta-hero {
    padding: 24px 16px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .beta-hero img {
    width: 57%;
  }
  .beta-hero::before {
    inset: 0 0 20% 58%;
  }
  .beta-hero nav {
    margin-top: 18px;
  }
  .beta-install {
    grid-template-columns: 1fr;
  }
  .beta-qr {
    width: min(100%, 196px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: beta-hero-in 480ms cubic-bezier(0.32, 0, 0.24, 1) both;
  }
}
@keyframes beta-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-controls button {
    transition: none;
  }
}
