:root {
  color-scheme: light;
  --ink: #193c34;
  --muted: #65756c;
  --paper: #faf9f2;
  --line: #d8ddd0;
  --accent: #d5ed83;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #153f37; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 20%, #24594a 0, transparent 60%),
    linear-gradient(#ffffff04 1px, transparent 1px),
    linear-gradient(90deg, #ffffff04 1px, transparent 1px),
    #153f37;
  background-size: auto, 36px 36px, 36px 36px, auto;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible { outline: 3px solid #638e39; outline-offset: 4px; }
.shell { width: min(460px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 26px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; color: var(--paper); }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 24px/1.1 ui-monospace, "Courier New", monospace; letter-spacing: .14em; }
.brand small { margin-top: 5px; color: #c6d5c6; font-size: 11px; letter-spacing: .16em; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #6b9275; background: #214e3f; }
.brand-icon > span { width: 8px; height: 8px; background: var(--accent); box-shadow: -8px -8px var(--accent), 0 -8px var(--accent), 8px -8px var(--accent), -8px 0 var(--accent), -8px 8px var(--accent); }
.access-card { overflow: hidden; border: 1px solid #b9c9a777; border-radius: 14px; background: var(--paper); box-shadow: 0 28px 70px #00180f40; }
.scene { position: relative; height: 172px; overflow: hidden; background: #dce8b8; border-bottom: 1px solid #c7d79d; }
.scene::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#6682470c 1px, transparent 1px), linear-gradient(90deg, #6682470c 1px, transparent 1px); background-size: 20px 20px; }
.scene-label, .scene-number { position: absolute; font: 700 9px ui-monospace, "Courier New", monospace; letter-spacing: .15em; color: #4a633b; }
.scene-label { left: 24px; top: 20px; }.scene-number { right: 24px; bottom: 16px; }
.platform { position: absolute; height: 10px; border-top: 4px solid #56754a; background: #91ac67; }
.platform-one { width: 28%; left: -4%; bottom: 25px; }.platform-two { width: 24%; left: 34%; bottom: 51px; }.platform-three { width: 25%; right: -2%; bottom: 85px; }
.pixel-player { position: absolute; left: 44%; bottom: 77px; width: 8px; height: 8px; background: #f1a056; box-shadow: -8px -16px #204b39, 0 -16px #204b39, 8px -16px #204b39, 16px -16px #204b39, -8px -8px #204b39, 0 -8px #f1a056, 8px -8px #f1a056, 16px -8px #204b39, -8px 0 #f1a056, 8px 0 #f1a056, 16px 0 #f1a056, 0 8px #204b39, 8px 8px #204b39, -8px 16px #204b39, 16px 16px #204b39; }
.spark { position: absolute; width: 6px; height: 6px; background: #c78536; box-shadow: 0 -6px #c78536, 0 6px #c78536, -6px 0 #c78536, 6px 0 #c78536; }
.spark-one { left: 69%; top: 43px; }.spark-two { left: 23%; top: 81px; transform: scale(.6); }
.card-content { padding: 30px 36px 26px; }
.eyebrow { margin: 0 0 10px; color: #62803e; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); letter-spacing: -.04em; line-height: 1.4; }
.intro { margin: 12px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.connection-status { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.password-field { position: relative; }
input { width: 100%; min-width: 0; height: 52px; padding: 0 65px 0 14px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; outline: none; font-size: 16px; }
input:focus { border-color: #6b8a42; box-shadow: 0 0 0 3px #a9c97430; }
input:disabled { opacity: .65; }
input::placeholder { color: #8a958d; font-size: 13px; }
.toggle-password { position: absolute; top: 0; right: 0; min-width: 56px; height: 52px; border: 0; border-radius: 5px; color: #596e58; background: transparent; font-size: 12px; }
.toggle-password:disabled { opacity: .5; }
.form-message { min-height: 20px; margin: 8px 0 12px; color: #a64532; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 5px; color: var(--paper); background: var(--ink); font-size: 14px; font-weight: 600; transition: background .15s ease; }
.primary-button:hover:not(:disabled) { background: #2b5746; }
.primary-button:disabled { opacity: .55; }
.primary-button > span:last-child { color: var(--accent); font-size: 21px; }
.retry-button { width: 100%; min-height: 44px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; }
.retry-button:hover { background: #edf0df; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.privacy-note > span { color: #7d9953; font-size: 8px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; color: #afc4b2; font-size: 10px; line-height: 1.7; }
footer > span:first-child { font: 700 10px ui-monospace, "Courier New", monospace; letter-spacing: .14em; }
@media (max-width: 380px) {
  .shell { width: calc(100% - 28px); padding-top: 28px; }
  .card-content { padding: 26px 24px 22px; }
  .scene { height: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
