:root {
  color-scheme: dark;
  --bg: #101018;
  --panel: rgba(25, 25, 37, .92);
  --line: rgba(232, 199, 160, .19);
  --gold: #e8c7a0;
  --text: #f5f1ec;
  --muted: #a6a2b2;
  --pink: #d69bab;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(ellipse at 50% 5%, #292336 0%, #171621 42%, #101018 78%);
  font-family: "Manrope", sans-serif; overflow-x: hidden;
}
.grain {
  pointer-events: none; position: fixed; inset: 0; opacity: .12; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
}
.shell { position: relative; z-index: 1; width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 22px; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 10px "DM Mono", monospace; letter-spacing: .12em; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--gold); font-size: 18px; }
.slash { color: #5f5a70; }
.status { display: flex; align-items: center; gap: 8px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #9fdfb0; box-shadow: 0 0 12px #9fdfb077; }
.hero { padding: 68px 0 34px; text-align: center; }
.eyebrow, .kicker { font: 10px "DM Mono", monospace; letter-spacing: .18em; color: var(--gold); }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tiny-line { width: 24px; height: 1px; background: var(--gold); opacity: .65; }
h1 { margin: 16px 0 12px; font-size: clamp(42px, 8vw, 76px); line-height: .98; letter-spacing: -.075em; font-weight: 800; }
h1 span { color: var(--gold); }
.intro { max-width: 390px; margin: 18px auto 25px; color: #c3bfcc; font-size: 14px; line-height: 1.8; }
.target-line { display: inline-flex; flex-direction: column; gap: 7px; padding: 11px 21px; border: 1px solid var(--line); border-radius: 4px; background: #ffffff04; }
.target-line span { color: #777285; font: 9px "DM Mono", monospace; letter-spacing: .17em; }
.target-line strong { color: var(--pink); font: 12px "DM Mono", monospace; letter-spacing: .12em; }
.panel { width: min(100%, 620px); margin: 0 auto; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 25px clamp(20px, 5vw, 44px) 35px; box-shadow: 0 25px 90px #0004, inset 0 1px #ffffff08; backdrop-filter: blur(10px); }
.panel-head { display: flex; justify-content: space-between; gap: 10px; color: #8b8798; font: 9px "DM Mono", monospace; letter-spacing: .13em; }
.counter { color: var(--gold); }
.progress-track { margin: 13px 0 33px; height: 2px; background: #ffffff10; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .35s ease; }
.view { animation: rise .35s ease both; }
.hidden { display: none !important; }
.icon-orbit { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid #d69bab55; border-radius: 50%; color: var(--pink); font-size: 30px; margin: 0 auto 22px; box-shadow: 0 0 30px #d69bab0c; }
.kicker { margin: 0 0 12px; font-size: 9px; color: #b8a6bd; }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.045em; line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
.body-copy { color: #b8b4c2; font-size: 13px; line-height: 1.9; margin: 0; }
.whisper { color: var(--pink); font-size: 12px; margin: 15px 0 0; }
.answer-form { margin-top: 28px; }
.answer-form label { display: block; margin-bottom: 9px; font: 9px "DM Mono", monospace; letter-spacing: .15em; color: #898496; }
.input-row { display: flex; gap: 9px; }
input { width: 100%; min-width: 0; border: 1px solid #ffffff1b; background: #0e0e16; border-radius: 5px; padding: 14px 13px; color: var(--text); font: 12px "DM Mono", monospace; letter-spacing: .08em; outline: none; }
input:focus { border-color: #d69bab99; box-shadow: 0 0 0 3px #d69bab12; }
button { border: 1px solid var(--gold); border-radius: 5px; background: var(--gold); color: #1a1720; padding: 0 17px; font: 10px "DM Mono", monospace; letter-spacing: .08em; white-space: nowrap; cursor: pointer; transition: transform .15s, opacity .15s; }
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; transform: none; }
.feedback { min-height: 17px; margin: 10px 0 0; color: var(--pink); font-size: 11px; }
.question-number { color: #6c6579; font: 12px "DM Mono", monospace; letter-spacing: .15em; margin: 3px 0 12px; }
.hint { color: #807b8e; font-size: 11px; line-height: 1.7; border-left: 1px solid #d69bab77; padding-left: 11px; margin: 16px 0 0; }
.success-icon { width: 52px; height: 52px; border: 1px solid #9fdfb077; border-radius: 50%; display: grid; place-items: center; color: #9fdfb0; font-size: 25px; margin-bottom: 22px; }
.final-code-wrap { margin: 25px 0 10px; padding: 19px; text-align: center; background: #0d0d15; border: 1px dashed #e8c7a044; border-radius: 6px; }
.final-code-wrap > span { font: 9px "DM Mono", monospace; color: #8d8799; letter-spacing: .17em; }
.final-code { color: var(--gold); font: 700 clamp(18px, 4vw, 25px) "DM Mono", monospace; letter-spacing: .13em; margin: 12px 0 16px; overflow-wrap: anywhere; }
.copy-button { padding: 11px 15px; }
footer { padding: 25px 2px 0; font-size: 8px; color: #6f6b7c; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 900px); padding-top: 20px; }
  .topbar { align-items: flex-start; font-size: 8px; }
  .status { font-size: 8px; }
  .hero { padding: 54px 0 27px; }
  .panel { padding: 20px 18px 28px; }
  .input-row { flex-direction: column; }
  .input-row button { padding: 14px; }
  footer { align-items: flex-start; font-size: 7px; }
}
