:root {
  --ink: #11100e;
  --panel: #191714;
  --warm: #f4efe5;
  --muted: #aaa092;
  --gold: #c49a56;
  --line: rgba(196, 154, 86, .28);
  --success: #77b88b;
  --error: #d3786d;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--warm);
  font-family: Arial, Helvetica, sans-serif;
}
button { font: inherit; }
[hidden] { display: none !important; }

.app-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.version-pill {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(520px, 1.3fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 70px 32px;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-one {
  top: 5%;
  left: -16%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(196,154,86,.13), transparent 68%);
}
.ambient-two {
  right: -22%;
  bottom: -20%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(120,91,48,.1), transparent 68%);
}

.guide-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  text-align: center;
}
.guide-halo {
  position: absolute;
  top: 12px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(196,154,86,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(196,154,86,.035), 0 0 100px rgba(196,154,86,.13);
}
.guide-face {
  position: relative;
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(145deg, #2c261e, #171411);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
}
.guide-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}
.guide-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.content-card {
  position: relative;
  z-index: 2;
  min-height: 590px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(32,29,25,.97), rgba(20,18,16,.98));
  box-shadow: 0 38px 100px rgba(0,0,0,.35);
}

.screen.active { animation: appear .35s ease both; }
@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .23em;
}

h1, h2 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}
h1 { font-size: clamp(42px, 5vw, 70px); }
h2 { font-size: clamp(34px, 4vw, 52px); }

.intro {
  max-width: 610px;
  margin: 28px 0 34px;
  color: #c8c0b4;
  font-size: 16px;
  line-height: 1.75;
}

.primary-button, .outline-button, .text-button {
  cursor: pointer;
  border: 0;
}
.primary-button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  background: var(--gold);
  color: #15110c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { background: #dab170; transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.primary-button.small { min-height: 48px; padding: 0 22px; }

.privacy { margin-top: 22px; color: #7e756a; font-size: 11px; }

.server-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.server-status.checking .status-dot { animation: pulse 1s infinite alternate; }
.server-status.online .status-dot { background: var(--success); }
.server-status.error .status-dot { background: var(--error); }
@keyframes pulse { to { opacity: .28; } }

.progress {
  width: 100%;
  height: 2px;
  margin-bottom: 42px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.progress span { display: block; height: 100%; background: var(--gold); }

.option-grid { display: grid; gap: 12px; margin-top: 32px; }
.option {
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
  min-height: 76px;
  padding: 17px 20px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  color: var(--warm);
  text-align: left;
  transition: border .2s ease, background .2s ease;
}
.option:hover, .option.selected {
  border-color: var(--gold);
  background: rgba(196,154,86,.08);
}
.option strong { font-size: 15px; font-weight: 600; }
.option span { color: var(--muted); font-size: 12px; }

.actions, .result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.text-button { padding: 12px 0; background: transparent; color: var(--muted); font-size: 12px; }

.result-screen { padding-top: 8px; }
.success-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}
.priority {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.result-copy {
  max-width: 610px;
  margin: 22px 0;
  color: #d2cabf;
  font-size: 16px;
  line-height: 1.7;
}
.next-step {
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(196,154,86,.06);
}
.next-step span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}
.next-step p { margin: 8px 0 0; color: #bcb3a6; font-size: 13px; line-height: 1.55; }
.save-status { min-height: 18px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.save-status.success { color: var(--success); }
.save-status.error { color: var(--error); }
.result-actions { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.outline-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: var(--warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 24px 6vw;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #6f685e;
  font-size: 10px;
  letter-spacing: .05em;
}

@media (max-width: 820px) {
  .topbar { padding: 0 22px; }
  .version-pill { display: none; }
  .hero { display: block; padding: 36px 18px 52px; }
  .guide-card { min-height: auto; padding: 10px 0 38px; }
  .guide-halo { top: -3px; width: 142px; height: 142px; }
  .guide-face { width: 108px; height: 108px; font-size: 48px; }
  .guide-card strong { font-size: 24px; }
  .content-card { min-height: 560px; padding: 32px 22px; }
  h1 { font-size: 43px; }
  h2 { font-size: 36px; }
  .actions, .result-actions { gap: 12px; align-items: stretch; flex-direction: column-reverse; }
  .primary-button, .outline-button { width: 100%; }
  footer { gap: 8px; flex-direction: column; padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
