:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eff3eb;
  background: #0b100f;
}
* { box-sizing: border-box; }
body {
  max-width: 1080px;
  margin: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)) clamp(20px, 5vw, 64px) calc(28px + env(safe-area-inset-bottom, 0px));
}
header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #324139; padding-bottom: 12px; }
a { color: inherit; text-decoration: none; }
.brand, .about { display: inline-flex; align-items: center; min-height: 44px; }
.brand { gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: -.055em; }
.brand svg { width: 34px; height: 34px; }
.about, #access-hint { color: #bac9bc; }
.about:hover { color: #c9f574; }
main { margin: clamp(30px, 8vh, 90px) auto 0; max-width: 480px; }
.access-type { display: flex; align-items: center; gap: 10px; color: #c9f574; margin: 0; font-size: 16px; }
.access-type::before { content: ""; width: 20px; height: 2px; background: currentColor; }
h1 { font-size: clamp(48px, 7vw, 84px); font-weight: 580; line-height: 1; letter-spacing: -.06em; margin: 18px 0 32px; }
form { min-width: 0; }
label { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 600; }
input, button { width: 100%; min-width: 0; min-height: 54px; border-radius: 12px; padding: 13px 17px; font: inherit; }
input { color: inherit; font-size: 18px; border: 1px solid #697d70; background: #141d18; }
button { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; border: 0; background: #c9f574; color: #18240d; font-size: 17px; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .72; }
:focus-visible { outline: 3px solid #a1decd; outline-offset: 3px; }
#access-hint, #access-result { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
#access-result { color: #f0c4a5; }
#access-result:empty { margin: 0; }
@media (min-width: 760px) {
  main { display: grid; grid-template-columns: 1fr minmax(280px, 400px); align-items: center; gap: clamp(34px, 6vw, 86px); max-width: none; margin-block: clamp(80px, 16vh, 170px); }
  h1 { margin-bottom: 0; }
  form { padding-left: clamp(26px, 3.2vw, 50px); border-left: 1px solid #324139; }
}
