:root {
  --navy: #1B1E4B;
  --night: #10122F;
  --yellow: #FFE600;
  --blue: #3483FA;
  --blue-d: #2968C8;
  --ink: #242424;
  --muted: #737373;
  --line: #E7E5DD;
  --cream: #F7F4EA;
  --green: #00A650;
  --font: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  font-family: var(--font);
  background: var(--night);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.experience {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 40px));
  height: min(820px, calc(100dvh - 40px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0,0,0,.42);
}
.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 52px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(255,230,0,.23), transparent 25%),
    linear-gradient(145deg, #292F72 0%, var(--navy) 53%, #111334 100%);
}
.brand-panel::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -180px; bottom: -170px;
  border: 58px solid rgba(255,230,0,.08);
  border-radius: 50%;
}
.brand-logo { position: relative; width: min(330px, 80%); height: auto; }
.brand-copy { position: relative; margin: auto 0 38px; max-width: 480px; }
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}
.brand-copy h1 { margin: 17px 0 13px; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.brand-copy p { margin: 0; max-width: 430px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.55; }
.brand-points { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brand-points li { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.055); }
.brand-points li > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--yellow); color: var(--navy); font-weight: 800; }
.brand-points strong, .brand-points small { display: block; }
.brand-points strong { font-size: 14px; }
.brand-points small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 12px; }
.brand-foot { position: relative; margin: 24px 0 0; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.brand-orbit { position: fixed; z-index: 1; border: 1px solid rgba(255,230,0,.12); border-radius: 50%; pointer-events: none; }
.brand-orbit--one { width: 520px; height: 520px; left: -220px; top: -260px; }
.brand-orbit--two { width: 660px; height: 660px; right: -330px; bottom: -380px; }

.phone { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--cream); }
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(11px + env(safe-area-inset-top)) 14px 11px;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--yellow);
}
.bar-back { flex: none; color: #fff; display: grid; place-items: center; width: 34px; height: 42px; border-radius: 50%; }
.bar-back:hover { background: rgba(255,255,255,.08); }
.avatar-wrap { position: relative; flex: none; width: 48px; height: 48px; }
.bar-avatar { display: block; width: 48px; height: 48px; border: 2px solid var(--yellow); border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
.avatar-wrap i { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border: 2px solid var(--navy); border-radius: 50%; background: #38C976; }
.bar-id { min-width: 0; }
.bar-id strong { display: flex; align-items: center; gap: 5px; font-size: 16px; }
.bar-id > span { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: rgba(255,255,255,.67); font-size: 12px; }
.bar-id > span b { width: 5px; height: 5px; border-radius: 50%; background: #38C976; }
.bar-mark { margin-left: auto; width: 45px; height: 31px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }

.qualification { flex: none; padding: 10px 16px 11px; background: #fff; border-bottom: 1px solid var(--line); }
.qualification-copy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.qualification-copy span { color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.qualification-copy strong { color: var(--muted); font-size: 11px; font-weight: 600; }
.progress { height: 5px; overflow: hidden; border-radius: 9px; background: #ECEBE5; }
.progress i { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), #F5B400); transition: width .45s ease; }

.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    linear-gradient(rgba(247,244,234,.92), rgba(247,244,234,.92)),
    url('/id-visual/assets/logo/emblem.png') 18px 15px / 90px auto repeat;
  scrollbar-width: thin;
  scrollbar-color: #D2CEC2 transparent;
}
.day-pill { align-self: center; padding: 4px 10px; border-radius: 999px; background: rgba(27,30,75,.09); color: #686A83; font-size: 11px; font-weight: 700; }
.secure-note { align-self: center; display: flex; align-items: center; gap: 8px; max-width: 94%; padding: 8px 11px; border: 1px solid rgba(27,30,75,.1); border-radius: 10px; background: #FFF8D9; color: #55573F; font-size: 10.5px; line-height: 1.35; text-align: left; box-shadow: 0 2px 7px rgba(27,30,75,.04); }
.secure-note svg { flex: 0 0 24px; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--yellow); color: var(--navy); stroke-width: 2.2; }
.secure-note span { min-width: 0; }
.bubble {
  position: relative;
  flex: 0 0 auto;
  max-width: 86%;
  padding: 10px 13px 9px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.43;
  white-space: pre-wrap;
  animation: pop .23s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.bot { align-self: flex-start; margin-left: 7px; background: #fff; border: 1px solid #EBE8DF; border-top-left-radius: 4px; box-shadow: 0 2px 7px rgba(27,30,75,.05); }
.bubble.bot::before { content: ""; position: absolute; left: -7px; top: -1px; border-top: 8px solid #fff; border-left: 8px solid transparent; }
.bubble.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--blue), #276DD6); border-top-right-radius: 4px; box-shadow: 0 3px 8px rgba(52,131,250,.2); }
.bubble.card { align-self: stretch; max-width: none; margin-top: 4px; padding: 19px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.bubble.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--yellow); }
.bubble.card > strong { display: block; margin: 8px 0 6px; color: var(--navy); font-size: 20px; line-height: 1.2; }
.bubble.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.48; }
.result-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 14px 0 0; }
.result-facts span { padding: 8px 4px; border-radius: 9px; background: #F5F5F8; color: var(--navy); font-size: 11px; font-weight: 700; }
.result-facts b { display: block; margin-bottom: 1px; font-size: 17px; }
.seal { width: 54px; height: 54px; margin: 1px auto 0; display: grid; place-items: center; border-radius: 50%; font-size: 25px; font-weight: 800; }
.seal.ok { color: #00783A; background: #DDF6E8; box-shadow: 0 0 0 7px #F0FBF5; }
.seal.no { color: #A52530; background: #FEE4E7; box-shadow: 0 0 0 7px #FFF3F4; }
.card a, .restart { display: inline-flex; min-height: 43px; margin-top: 15px; padding: 0 17px; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.restart { background: #EEF5FF; color: var(--blue-d); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #AAA79F; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-2px); } }

.choices { flex: none; display: grid; gap: 7px; padding: 10px 13px; background: #fff; border-top: 1px solid var(--line); }
.choices button { width: 100%; min-height: 43px; padding: 8px 13px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--blue); border-radius: 10px; background: #fff; color: var(--blue-d); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; transition: .18s ease; }
.choices button:hover { transform: translateY(-1px); background: #F0F6FF; box-shadow: 0 3px 8px rgba(52,131,250,.12); }
.choices button:focus-visible { outline: 3px solid rgba(52,131,250,.28); outline-offset: 2px; }
.choice-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-label { min-width: 0; line-height: 1.25; }
.composer { flex: none; display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.composer input { min-width: 0; flex: 1; height: 46px; padding: 0 16px; border: 1px solid #E5E3DC; border-radius: 23px; outline: none; background: #F8F7F3; font: inherit; font-size: 16px; }
.composer input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,131,250,.1); }
.composer button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; }
.powered { flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #EEECE5; background: #FAFAF8; color: #969696; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }
.powered img { width: 18px; height: 12px; object-fit: contain; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  body { overflow: hidden; background: var(--cream); }
  .experience { width: 100%; height: 100dvh; margin: 0; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .brand-panel, .brand-orbit { display: none; }
  .phone { width: 100%; height: 100%; }
  .thread { padding-right: 12px; padding-left: 12px; }
  .secure-note { align-self: stretch; max-width: none; margin: 0 2px; padding: 9px 11px; font-size: 10.5px; }
  .choices { gap: 6px; padding: 9px 10px; }
  .choices button { min-height: 44px; padding: 8px 11px; gap: 9px; font-size: 13.5px; }
  .choice-icon { flex-basis: 19px; width: 19px; height: 19px; }
}
@media (max-height: 680px) and (min-width: 761px) {
  .experience { height: calc(100dvh - 20px); margin: 10px auto; }
  .brand-panel { padding-top: 28px; padding-bottom: 25px; }
  .brand-copy { margin-bottom: 22px; }
  .brand-copy h1 { font-size: 38px; }
  .brand-points { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
