:root {
  --bg: #070709;
  --card: #12141a;
  --line: rgba(255,255,255,.12);
  --text: #f4f1ea;
  --muted: #b7b1a6;
  --accent: #e6b325;
  --accent-ink: #1a1404;
  --danger: #ff8d8d;
}
body.theme-web40 { --accent: #e23d8a; --accent-ink: #fff; }
body.theme-web9 { --accent: #f0c14a; --accent-ink: #1a1404; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.age-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(226,61,138,.18), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(240,193,74,.12), transparent 55%),
    #070709;
  z-index: 0;
}
body.theme-web9 .age-bg {
  background:
    radial-gradient(820px 460px at 50% -8%, rgba(240,193,74,.22), transparent 62%),
    radial-gradient(600px 380px at 0% 100%, rgba(120,40,20,.35), transparent 50%),
    #070709;
}
body.theme-web40 .age-bg {
  background:
    radial-gradient(820px 460px at 50% -8%, rgba(226,61,138,.28), transparent 62%),
    radial-gradient(600px 380px at 100% 100%, rgba(90,20,70,.4), transparent 50%),
    #070709;
}
.age-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}
.age-card {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: 28px 28px 22px;
}
.age-top {
  display: flex;
  gap: 16px;
  align-items: center;
}
.age-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04);
  flex: 0 0 auto;
}
.age-kicker {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.age-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.age-steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 0;
}
.age-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}
.age-steps span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 12px;
}
.age-err {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,80,80,.12);
  color: var(--danger);
  border: 1px solid rgba(255,80,80,.35);
}
.picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.pick {
  position: relative;
  min-height: 168px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
}
.pick:hover, .pick:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,.03);
}
.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pick strong { display: block; font-size: 16px; margin-top: 8px; }
.pick small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.pick-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pick img.preview {
  display: none;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}
.pick.has-file img.preview { display: block; }
.pick.has-file .pick-hint { display: none; }
.age-submit {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
}
.age-submit:hover { filter: brightness(1.06); }
.age-notes {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.age-notes li { margin: 6px 0; }
.age-notes li:before { content: "• "; color: var(--accent); }
.age-fine {
  margin: 14px 0 0;
  color: #8d877d;
  font-size: 12px;
  line-height: 1.4;
}
.age-email {
  display: block;
  margin-top: 18px;
}
.age-email span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.age-email input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
.age-email small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}
.age-actions { margin-top: 18px; }
.age-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.age-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .age-card { padding: 22px 16px 18px; }
  h1 { font-size: 26px; }
  .picks, .age-steps { grid-template-columns: 1fr; display: grid; }
  .age-steps { display: none; }
}
