/* Agent World — human pass (2026-11-21): family-welcoming layer.
   Albert: "Add as many simplicities and visuals for user as possible"
   + "family it more — innovation from China and anime, app games."
   Pure CSS on top of styles.css: no images, no libraries, no
   per-frame cost. One tiny keyframe (transform/opacity) on the
   solved sparkle only, off under prefers-reduced-motion. */

:root {
  --awh-violet: #7c5cff;
  --awh-cyan: #00b8d9;
  --awh-pink: #ff7ab8;
  --awh-gold: #f0a832;
  --awh-green: #1db978;
  --awh-ink: #142f45;
  --awh-soft: #47617a;
  --awh-card-line: #d9e6ee;
}

/* ---------- shared bits ---------- */
.awh-h {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(21px, 3.4vw, 27px); font-weight: 900;
  letter-spacing: -0.02em; color: var(--awh-ink); margin: 0 0 6px;
}
.awh-lead { font-size: 15.5px; line-height: 1.55; color: var(--awh-soft); margin: 0 0 16px; max-width: 62ch; }
.awh-fine { font-size: 12.5px; line-height: 1.5; color: var(--awh-soft); margin: 14px 0 0; }
.awh-pip { flex: none; filter: drop-shadow(0 3px 6px rgba(20, 47, 69, 0.18)); }
.awh-bubble {
  position: relative; background: #fff; border: 2px solid var(--awh-card-line);
  border-radius: 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.45;
  color: var(--awh-ink); font-weight: 600; box-shadow: 0 4px 14px rgba(20, 47, 69, 0.07);
}
.awh-bubble::before {
  content: ""; position: absolute; left: -9px; top: 50%; margin-top: -7px;
  width: 14px; height: 14px; background: #fff;
  border-left: 2px solid var(--awh-card-line); border-bottom: 2px solid var(--awh-card-line);
  transform: rotate(45deg);
}
.awh-guide { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.awh-guide .awh-bubble { flex: 1; }

/* ---------- the loop, drawn ---------- */
.awh-loop {
  margin: 34px 0 6px; padding: 24px 22px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
  border: 2px solid var(--awh-card-line); border-radius: 24px;
  box-shadow: 0 10px 30px rgba(20, 47, 69, 0.08);
}
.awh-steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 6px; }
@media (min-width: 700px) { .awh-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .awh-steps { grid-template-columns: repeat(4, 1fr); } }
.awh-step {
  position: relative; background: #fff; border: 2px solid var(--awh-card-line);
  border-radius: 20px; padding: 18px 16px 16px;
}
.awh-step-n {
  position: absolute; top: -13px; left: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--awh-violet), var(--awh-cyan));
  color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(124, 92, 255, 0.35);
}
.awh-step.solved .awh-step-n { background: linear-gradient(135deg, #ffb52e, var(--awh-gold)); box-shadow: 0 4px 10px rgba(240, 168, 50, 0.45); }
.awh-step-icon {
  width: 54px; height: 54px; border-radius: 16px; margin: 4px 0 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 184, 217, 0.12));
  display: flex; align-items: center; justify-content: center; color: var(--awh-violet);
}
.awh-step.solved .awh-step-icon { background: linear-gradient(135deg, rgba(240, 168, 50, 0.20), rgba(255, 122, 184, 0.14)); color: #d98a06; }
.awh-step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 850; color: var(--awh-ink); letter-spacing: -0.01em; }
.awh-step p { margin: 0; font-size: 13.8px; line-height: 1.5; color: var(--awh-soft); }
.awh-spark { position: absolute; color: var(--awh-gold); pointer-events: none; }
.awh-spark.s1 { top: 10px; right: 12px; width: 20px; height: 20px; }
.awh-spark.s2 { top: 38px; right: 30px; width: 13px; height: 13px; color: var(--awh-pink); }
@media (prefers-reduced-motion: no-preference) {
  .awh-spark { animation: awhTwinkle 1.8s ease-in-out infinite alternate; }
  .awh-spark.s2 { animation-delay: 0.7s; }
  @keyframes awhTwinkle {
    from { transform: scale(0.72) rotate(0deg); opacity: 0.55; }
    to   { transform: scale(1.12) rotate(18deg); opacity: 1; }
  }
}
.awh-loop-close { margin: 16px 0 0; font-size: 14px; font-weight: 700; color: var(--awh-ink); text-align: center; }

/* ---------- agent check / game profile ---------- */
.awh-check {
  margin: 30px 0 6px; padding: 24px 22px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf6ff 100%);
  border: 2px solid var(--awh-card-line); border-radius: 24px;
  box-shadow: 0 10px 30px rgba(20, 47, 69, 0.08);
}
.awh-form { display: flex; gap: 10px; flex-wrap: wrap; }
.awh-input {
  flex: 1 1 220px; font: inherit; font-size: 16px; padding: 13px 16px;
  border: 2px solid var(--awh-card-line); border-radius: 14px; background: #fff; color: var(--awh-ink);
}
.awh-input:focus { outline: none; border-color: var(--awh-violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.20); }
.awh-btn {
  font: inherit; font-weight: 850; font-size: 15.5px; cursor: pointer;
  padding: 13px 22px; border: none; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--awh-violet), var(--awh-cyan));
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.32);
}
.awh-btn:active { transform: translateY(1px); }
.awh-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--awh-soft); font-weight: 700; }
.awh-chip {
  font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 2px solid var(--awh-card-line); color: var(--awh-ink);
}
.awh-chip:hover { border-color: var(--awh-violet); }
.awh-result { margin-top: 18px; }
.awh-looking { font-size: 14.5px; color: var(--awh-soft); font-weight: 600; padding: 8px 2px; }

.awh-card {
  background: #fff; border: 2px solid var(--awh-card-line); border-radius: 20px;
  padding: 20px; box-shadow: 0 8px 24px rgba(20, 47, 69, 0.09);
}
.awh-card-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.awh-avatar {
  width: 74px; height: 74px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(0, 184, 217, 0.16));
  border: 2px solid var(--awh-card-line);
  display: flex; align-items: center; justify-content: center;
}
.awh-name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: var(--awh-ink); line-height: 1.1; }
.awh-owner { font-size: 13.5px; color: var(--awh-soft); font-weight: 600; margin-top: 3px; }
.awh-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: 12.5px; font-weight: 850; padding: 5px 12px; border-radius: 999px;
}
.awh-pill.on { background: #e2f7ec; color: #0d7a4f; }
.awh-pill.off { background: #eef3f6; color: var(--awh-soft); }
.awh-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--awh-green); }
.awh-pill.off .dot { background: #b7c6d0; }
.awh-level {
  margin-left: auto; text-align: center; flex: none;
  padding: 10px 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--awh-violet), var(--awh-cyan));
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.30);
}
.awh-level.gold { background: linear-gradient(135deg, #ffb52e, #f07f13); box-shadow: 0 6px 16px rgba(240, 168, 50, 0.40); }
.awh-level b { display: block; font-size: 19px; font-weight: 900; line-height: 1.05; }
.awh-level span { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.awh-bar { height: 10px; border-radius: 999px; background: #edf3f7; margin: 16px 0 6px; overflow: hidden; }
.awh-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--awh-violet), var(--awh-cyan), var(--awh-pink)); }
.awh-bar-note { font-size: 12.5px; color: var(--awh-soft); font-weight: 700; }
.awh-boxes { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 700px) { .awh-boxes { grid-template-columns: 1fr 1fr; } }
.awh-box { border: 2px solid var(--awh-card-line); border-radius: 16px; padding: 14px 16px; background: #fbfdff; }
.awh-box.quest-done { border-color: rgba(240, 168, 50, 0.65); background: linear-gradient(180deg, #fff8ea, #fffdf6); }
.awh-box-label { font-size: 11px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; color: var(--awh-soft); margin-bottom: 5px; }
.awh-box-main { font-size: 16px; font-weight: 850; color: var(--awh-ink); line-height: 1.3; }
.awh-box-sub { font-size: 13px; line-height: 1.5; color: var(--awh-soft); margin-top: 4px; }
.awh-box a { color: var(--awh-violet); font-weight: 800; text-decoration: none; }
.awh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 700px) { .awh-stats { grid-template-columns: repeat(4, 1fr); } }
.awh-stat { text-align: center; background: #f4f9fc; border-radius: 14px; padding: 10px 6px; }
.awh-stat b { display: block; font-size: 20px; font-weight: 900; color: var(--awh-ink); }
.awh-stat span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--awh-soft); }
.awh-badges { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.awh-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 850; padding: 8px 13px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.13), rgba(0, 184, 217, 0.13));
  border: 2px solid rgba(124, 92, 255, 0.35); color: var(--awh-ink);
}
.awh-badge.gold { background: linear-gradient(135deg, rgba(240, 168, 50, 0.22), rgba(255, 122, 184, 0.14)); border-color: rgba(240, 168, 50, 0.6); }
.awh-badge.locked { background: #f2f6f8; border: 2px dashed #ccd9e1; color: #8ba0b0; }
.awh-badge .bic { display: inline-flex; }
.awh-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--awh-soft); background: #f7fafc; border-radius: 12px; padding: 10px 13px; }
.awh-miss { text-align: center; padding: 18px 10px 8px; }
.awh-miss .awh-name { font-size: 20px; }
.awh-miss p { color: var(--awh-soft); font-size: 14.5px; line-height: 1.55; max-width: 52ch; margin: 8px auto 14px; }

/* ---------- connect sheet: friendlier steps (overrides only) ---------- */
.sheet .flow-n {
  width: 34px; height: 34px; font-size: 16px;
  background: linear-gradient(135deg, var(--awh-violet), var(--awh-cyan));
  box-shadow: 0 4px 10px rgba(124, 92, 255, 0.35);
}
.sheet .flow-h { font-size: 17.5px; }
.sheet .pick-card { border-radius: 20px; border-width: 2px; }
.sheet .connect-cta { border-radius: 16px; }
.pip-sheet-note {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 184, 217, 0.08));
  border: 2px solid var(--awh-card-line); border-radius: 16px;
  padding: 12px 14px; margin: 0 0 18px;
  font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--awh-ink);
}
.pip-sheet-note .awh-pip { width: 44px; height: 44px; }

/* ---------- beta + claims discipline (Albert, 2026-11-21 22:50) ---------- */
.awh-beta {
  display: inline-block; flex: none;
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.14em;
  color: #7a4a00; background: linear-gradient(135deg, #ffd76e, #ffb52e);
  border: 2px solid rgba(190, 120, 10, 0.45); border-radius: 999px;
  padding: 3px 11px 2px; vertical-align: 1px;
}
.awh-betarow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; color: var(--awh-soft);
  margin: 0 0 12px;
}
.awh-ownline {
  margin: 16px 0 0; padding: 13px 16px;
  background: #fff8ea; border: 2px solid rgba(240, 168, 50, 0.55);
  border-left: 6px solid var(--awh-gold); border-radius: 14px;
  font-size: 14px; line-height: 1.55; color: var(--awh-ink);
}
.awh-footbeta { font-size: 13px; font-weight: 600; color: var(--awh-soft); margin: 14px 0 0; }
.awh-footbeta .awh-beta { margin-right: 8px; }
