/* A small, standalone introduction using the panel's active theme. */
html {
  --hello-bg: #0c0e13;
  --hello-text: #f2f3f6;
  --hello-muted: #a2a6b2;
  --hello-line: rgba(255,255,255,.1);
  --hello-surface: linear-gradient(155deg,#1b1e26,#111319);
  --hello-accent: var(--cy-theme-1,#63e6ff);
  --hello-edge: color-mix(in srgb,var(--cy-theme-2,#3b82f6) 66%,#211526);
}
html[data-cy-color-scheme="light"] {
  --hello-bg: var(--cy-light-page,#eef3f8);
  --hello-text: var(--cy-light-text,#172033);
  --hello-muted: var(--cy-light-muted,#607089);
  --hello-line: var(--cy-light-line,rgba(31,45,66,.13));
  --hello-surface: linear-gradient(155deg,var(--cy-light-surface,#fff),var(--cy-light-surface-soft,#f5f8fb));
}
html, body.hello-page { min-width: 280px; margin: 0; background: var(--hello-bg); }
body.hello-page { color: var(--hello-text); font-family: var(--cy-font-body,'Montserrat',sans-serif); -webkit-tap-highlight-color: transparent; }
.hello-app, .hello-app * { box-sizing: border-box; }
.hello-app [hidden] { display: none !important; }
.hello-app button, .hello-app input { font: inherit; }
.hello-app button { -webkit-tap-highlight-color: transparent; }
.hello-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px,env(safe-area-inset-top)) max(32px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left));
  background: var(--hello-bg);
}
.hello-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; width: min(100%,1120px); min-height: 44px; margin: 0 auto; }
.hello-progress { grid-area: 1 / 2; display: flex; gap: 6px; align-items: center; }
.hello-progress-mark { width: 22px; height: 4px; border-radius: 99px; background: var(--hello-line); }
.hello-progress-mark.is-reached { background: var(--hello-accent); }
.hello-progress-mark[aria-current] { width: 32px; }
.hello-app .hello-back { grid-area: 1 / 3; display: inline-flex; align-items: center; justify-self: end; justify-content: center; gap: 3px; min-height: 44px; padding: 8px 4px 8px 8px; border: 0; background: none; color: var(--hello-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.hello-app:not(.is-enhanced) .hello-back { display: none; }
.hello-back svg { width: 18px; height: 18px; }
.hello-app .hello-back:hover { color: var(--hello-text); }
.hello-main { display: grid; flex: 1; width: 100%; min-height: 560px; padding: 32px 0 48px; place-items: center; }
.hello-scene { width: min(100%,560px); text-align: center; }
.hello-mascot { position: relative; width: 252px; height: 252px; margin: 0 auto 28px; }
.hello-mascot canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.hello-mascot.is-ready canvas { opacity: 1; }
.hello-copy { display: grid; justify-items: center; gap: 14px; }
.hello-app .hello-title { max-width: 100%; margin: 0; padding: 0; color: var(--hello-text); font-family: var(--cy-font-heading,'Montserrat',sans-serif) !important; font-size: 26px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
.hello-title:focus { outline: none; }
.hello-app .hello-description { max-width: 440px; margin: 0 auto; color: var(--hello-muted); font-size: 16px; font-weight: 500; line-height: 1.65; text-wrap: balance; }
.hello-form { width: 100%; margin: 0; }
.hello-actions { width: min(100%,320px); margin: 32px auto 7px; }
body.hello-page .hello-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  color: #14161b !important;
  -webkit-text-fill-color: #14161b !important;
  background: var(--cy-theme-gradient,linear-gradient(110deg,#63e6ff,#3b82f6,#f1c9fe)) !important;
  box-shadow: 0 6px 0 var(--hello-edge),0 12px 20px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.48);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .15s ease,opacity .15s ease;
}
.hello-primary svg { width: 19px; height: 19px; flex: 0 0 19px; }
.hello-primary:active:not(:disabled) { transform: translateY(2px); }
.hello-primary:disabled { opacity: .4; cursor: default; box-shadow: 0 4px 0 var(--hello-edge); }
.hello-primary[aria-busy="true"] { opacity: .75; cursor: wait; }
.hello-app button:focus-visible { outline: 2px solid var(--hello-accent); outline-offset: 9px; }
.hello-gender-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.hello-app .hello-gender-group legend { float: none; width: 100%; margin: 0 auto 14px; }
.hello-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; width: min(100%,430px); margin: 28px auto 0; }
.hello-option { position: relative; min-width: 0; cursor: pointer; }
.hello-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.hello-option-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; overflow: hidden; padding: 30px 16px 22px; border: 1px solid var(--hello-line); border-radius: 28px; background: var(--hello-surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: transform .18s ease, border-color .5s ease, box-shadow .5s ease; }
/* Soft gender-tinted glow that fades in on hover and stays while selected. */
.hello-radio[value="male"] + .hello-option-card { --hello-glow: 116,164,255; }
.hello-radio[value="female"] + .hello-option-card { --hello-glow: 255,142,199; }
.hello-option-card::before { content: ""; position: absolute; z-index: 0; inset: 0; opacity: 0; background: radial-gradient(128% 90% at 50% 116%,rgba(var(--hello-glow,116,164,255),.5),rgba(var(--hello-glow,116,164,255),.17) 46%,transparent 74%),linear-gradient(180deg,transparent 30%,rgba(var(--hello-glow,116,164,255),.13)); transition: opacity .55s cubic-bezier(.32,.72,.3,1); pointer-events: none; }
.hello-radio:checked + .hello-option-card { border-color: rgba(var(--hello-glow,116,164,255),.44); box-shadow: 0 0 0 1px rgba(var(--hello-glow,116,164,255),.22),0 22px 50px -28px rgba(var(--hello-glow,116,164,255),.7),inset 0 1px 0 rgba(255,255,255,.05); }
/* Keep onboarding cards and their selected state above the shared light card reset. */
html[data-cy-color-scheme="light"] body.hello-page .hello-option-card { border-color: var(--hello-line) !important; background: var(--hello-surface) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important; }
html[data-cy-color-scheme="light"] body.hello-page .hello-radio:checked + .hello-option-card { border-color: rgba(var(--hello-glow,116,164,255),.44) !important; box-shadow: 0 0 0 1px rgba(var(--hello-glow,116,164,255),.22),0 22px 50px -28px rgba(var(--hello-glow,116,164,255),.7),inset 0 1px 0 rgba(255,255,255,.8) !important; }
.hello-radio:checked + .hello-option-card::before { opacity: 1; }
.hello-option:active .hello-option-card::before { opacity: .9; }
html[data-cy-color-scheme="light"] .hello-radio:checked + .hello-option-card::before { opacity: .8; }
html[data-cy-color-scheme="light"] .hello-option:active .hello-option-card::before { opacity: .72; }
.hello-radio:focus-visible + .hello-option-card { outline: 2px solid var(--hello-accent); outline-offset: 5px; }
.hello-option-check { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--hello-line); border-radius: 50%; color: #14161b; transition: background .5s ease, border-color .5s ease; }
.hello-option-check svg { width: 16px; height: 16px; opacity: 0; }
.hello-radio:checked + .hello-option-card .hello-option-check { border-color: transparent; background: rgb(var(--hello-glow,116,164,255)); }
.hello-radio:checked + .hello-option-card .hello-option-check svg { opacity: 1; }
.hello-portrait { --hello-portrait-height: 168px; position: relative; display: block; overflow: hidden; width: 100%; height: var(--hello-portrait-height); }
/* Optical alignment accounts for the transparent margins in the supplied PNGs. */
.hello-character { position: absolute; left: 50%; bottom: 0; display: block; width: auto; max-width: none; height: calc(var(--hello-portrait-height)*1.02); transform: translateX(-50%); user-select: none; -webkit-user-drag: none; }
.hello-character-female { bottom: calc(var(--hello-portrait-height)*-.238); height: calc(var(--hello-portrait-height)*1.547); }
.hello-option-label { position: relative; color: var(--hello-text); font-size: 16px; font-weight: 700; line-height: 1.3; }
.hello-recovery { display: inline-block; margin: 12px auto 0; padding: 10px 12px; color: var(--hello-text); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.hello-recovery:focus-visible { outline: 2px solid var(--hello-accent); outline-offset: 2px; border-radius: 8px; }
.hello-error { max-width: 390px; margin: 24px auto 0; color: var(--hello-text); font-size: 14px; line-height: 1.55; }
.hello-noscript { margin: 12px auto 0; color: var(--hello-muted); text-align: center; font-size: 13px; }
.hello-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Staggered reveal: runs on first paint and again whenever a step is un-hidden. */
@keyframes hello-rise { from { opacity: 0; transform: translate3d(0,14px,0); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hello-rise-plain { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }
.hello-scene .hello-mascot { animation: hello-rise-plain .62s cubic-bezier(.2,.75,.25,1) both; }
.hello-step .hello-title { animation: hello-rise .62s cubic-bezier(.2,.75,.25,1) 60ms both; }
.hello-step .hello-description { animation: hello-rise .62s cubic-bezier(.2,.75,.25,1) 150ms both; }
.hello-step .hello-option { animation: hello-rise-plain .58s cubic-bezier(.2,.75,.25,1) 240ms both; }
.hello-step .hello-option:nth-child(2) { animation-delay: 320ms; }
.hello-step .hello-actions { animation: hello-rise-plain .58s cubic-bezier(.2,.75,.25,1) 400ms both; }
@media (hover:hover) and (pointer:fine) {
  .hello-option:hover .hello-option-card { transform: translateY(-3px); }
  .hello-option:hover .hello-option-card::before { opacity: .8; }
  .hello-primary:hover:not(:disabled) { transform: translateY(-1px); }
}
@media (max-width:600px) {
  .hello-app { padding: max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
  .hello-header { gap: 8px; }
  .hello-progress-mark { width: 16px; }
  .hello-progress-mark[aria-current] { width: 24px; }
  .hello-main { min-height: 470px; padding: 28px 0 40px; }
  .hello-mascot { width: 208px; height: 208px; margin-bottom: 26px; }
  .hello-app .hello-title { font-size: 22px; line-height: 1.4; }
  .hello-app .hello-description { max-width: 340px; font-size: 15px; line-height: 1.6; }
  .hello-copy { gap: 12px; }
  .hello-actions { margin-top: 28px; }
  .hello-options { gap: 12px; margin-top: 26px; }
  .hello-option-card { gap: 18px; padding: 30px 10px 20px; border-radius: 24px; }
  .hello-portrait { --hello-portrait-height: 148px; }
  .hello-option-label { font-size: 15px; }
  .hello-option-check { top: 12px; right: 12px; width: 20px; height: 20px; }
}
@media (max-width:360px) {
  .hello-app .hello-title { font-size: 20px; }
  .hello-portrait { --hello-portrait-height: 132px; }
  .hello-option-card { padding-top: 30px; }
  .hello-desktop-break { display: none; }
}
@media (max-height:650px) {
  .hello-main { min-height: 0; padding: 20px 0 36px; }
  .hello-mascot { width: 176px; height: 176px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .hello-app *, .hello-app *::before, .hello-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hello-option:hover .hello-option-card, .hello-primary:hover:not(:disabled), .hello-primary:active:not(:disabled) { transform: none; }
}
