
body:has(.hg-welcome) {
  background: var(--hg-canvas, #f2f1ec);
  color: var(--hg-ink, #1e1e1c);
}
body > main:has(.hg-welcome) {
  box-sizing: border-box;
  width: min(100%, 68rem);
  max-width: none;
  margin-inline: auto;
  padding: clamp(.5rem, 2vw, 1.25rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hg-welcome {
  box-sizing: border-box;
  max-width: 100%;
  --welcome-paper: var(--hg-surface-tint, #f7f6f2);
  --welcome-ink: var(--hg-ink, #1e1e1c);
  --welcome-muted: var(--hg-muted, #526168);
  --welcome-line: var(--hg-line, rgb(30 30 28 / 8%));
  --welcome-action: var(--hg-accent-soft, rgb(169 98 68 / 11%));
  --welcome-accent: var(--hg-accent, #a96244);
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.hg-welcome {
  --welcome-illustration: light-dark(#cddbd7, #4b6065);
  --welcome-hill: light-dark(#9aadaa, #657f81);
  --welcome-sun: light-dark(#dcba9a, #b68e73);
}
.hg-unified main .hg-welcome p.hg-welcome-intro { margin: 0 0 12px; color: var(--welcome-muted); }
.hg-welcome-return, .hg-welcome-jumps a, .hg-welcome-details > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--hg-ui, system-ui, sans-serif);
}
.hg-welcome .hg-welcome-return {
  padding-inline: 15px;
  background: var(--welcome-action);
  border: 1px solid var(--welcome-line);
  border-radius: 12px;
  text-decoration: none;
}
.hg-welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-block: 18px 24px;
  padding: 0;
  list-style: none;
}
.hg-welcome :is(.hg-welcome-steps > li, .hg-welcome-details, article) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: clamp(.85rem, 2.5vw, 1.6rem);
  border: 0;
  border-radius: 20px;
  background: var(--hg-surface, white);
  box-shadow: var(--hg-shadow);
}
.hg-welcome :is(.hg-welcome-details, article) { margin-block: 0 .9rem; }
.hg-welcome .hg-welcome-details > :first-child, .hg-welcome article > :first-child { margin-block-start: 0; }
.hg-welcome :is(.hg-welcome-details, article) > :last-child { margin-block-end: 0; }
.hg-unified main .hg-welcome-steps h3 {
  margin: 12px 0 6px;
  font-size: 1.04rem;
  line-height: 1.45;
}
.hg-unified main .hg-welcome-steps p {
  margin: 0;
  color: var(--welcome-muted);
  line-height: 1.72;
}
.hg-welcome-card-notes {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--welcome-muted);
  line-height: 1.68;
}
.hg-welcome-card-notes li + li { margin-block-start: 6px; }
.hg-welcome-card-notes strong { color: var(--welcome-ink); }
.hg-welcome-figure,
.hg-welcome-step-art {
  box-sizing: border-box;
  min-height: 94px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--welcome-ink);
  background: var(--welcome-paper);
  border: 0;
  border-radius: 14px;
}
.hg-welcome-read > span:first-child, .hg-welcome-read > span:last-child { font-size: 23px; }
.hg-welcome-preview { display: grid; justify-items: center; gap: 5px; }
.hg-welcome-dots { font-size: 9px; letter-spacing: .5px; line-height: 1; color: var(--welcome-muted); font-family: var(--hg-ui, system-ui, sans-serif); }
.hg-welcome-page, .hg-welcome-note, .hg-welcome-envelope {
  display: grid;
  align-content: end;
  gap: 3px;
  box-sizing: border-box;
  width: 54px;
  height: 58px;
  padding: 6px;
  border: 1px solid var(--welcome-line);
  border-radius: 2px;
}
.hg-welcome-page {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 68% 25%, var(--welcome-sun) 0 5px, transparent 5.5px),
    linear-gradient(150deg, transparent 41%, var(--welcome-hill) 42% 72%, transparent 73%), var(--welcome-illustration);
}
.hg-welcome-page i, .hg-welcome-note i { height: 1px; background: currentColor; opacity: .55; }
.hg-welcome-page i:last-child, .hg-welcome-note i:last-child { width: 65%; }
.hg-welcome-weather span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font: 18px/1 system-ui, sans-serif !important;
  border: 1px solid var(--welcome-line);
  border-radius: 50%;
}
.hg-welcome-weather span:first-child { background: var(--welcome-action); }
.hg-welcome-frame {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.hg-welcome-scene {
  display: block;
  width: 68px;
  height: 44px;
  border: 1px solid var(--welcome-line);
  border-radius: 6px;
  background: radial-gradient(circle at 72% 28%, var(--welcome-sun) 0 5px, transparent 5.5px),
    linear-gradient(158deg, transparent 48%, var(--welcome-hill) 49% 78%, transparent 79%), var(--welcome-illustration);
}
.hg-welcome-caption {
  font-size: 11px;
  line-height: 1;
  color: var(--welcome-muted);
  font-family: var(--hg-ui, system-ui, sans-serif);
}
.hg-welcome-note { width: 32px; height: 40px; align-content: center; gap: 5px; }
.hg-welcome-envelope {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 28px;
  background: var(--welcome-action);
}
.hg-welcome-envelope::after {
  content: '';
  position: absolute;
  inset: -19px 5px auto;
  aspect-ratio: 1;
  border: solid var(--welcome-line);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.hg-welcome-prescription {
  font-family: var(--hg-ui, system-ui, sans-serif);
  font-size: 12px;
}
.hg-welcome-reel-mini {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.hg-welcome-reel-card {
  display: grid;
  align-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 68px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--welcome-line);
  border-radius: 8px;
  background: var(--hg-surface, white);
  box-shadow: 3px 3px 0 var(--welcome-action);
}
.hg-welcome-reel-card i {
  display: block;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}
.hg-welcome-reel-card i:last-child { width: 68%; }
.hg-welcome-reel-actions {
  font-size: 11px;
  line-height: 1;
  color: var(--welcome-accent);
  font-weight: 700;
}
.hg-welcome-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding-inline: 10px;
  border: 1px solid var(--welcome-line);
  border-radius: 8px;
  background: var(--hg-surface, white);
}
.hg-welcome-act-next {
  background: var(--welcome-action);
  border-color: transparent;
}
.hg-welcome-drawer { gap: 12px; }
.hg-welcome-bookmark {
  position: relative;
  display: block;
  width: 16px;
  height: 28px;
  background: var(--welcome-accent);
  border-radius: 2px 2px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}
.hg-welcome-calendar-dots {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 5px;
}
.hg-welcome-calendar-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--welcome-illustration);
}
.hg-welcome-calendar-dots i:nth-child(2n) { background: var(--welcome-sun); }
.hg-welcome-calendar-dots i:nth-child(3n) { background: var(--welcome-action); border: 1px solid var(--welcome-line); box-sizing: border-box; }
.hg-welcome-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
  min-height: 44px;
  list-style: none;
  font-family: var(--hg-ui, system-ui, sans-serif);
  cursor: pointer;
}
.hg-welcome-details summary::-webkit-details-marker { display: none; }
.hg-welcome-details summary::after { content: "+"; }
.hg-welcome-details details[open] > summary::after,
.hg-welcome-details[open] > summary::after { content: "−"; }
.hg-welcome-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: 12px;
}
.hg-welcome-compare section {
  box-sizing: border-box;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--welcome-paper);
}
.hg-welcome-compare h3 {
  margin: 0 0 8px;
  font-size: .96rem;
  font-family: var(--hg-ui, system-ui, sans-serif);
}
.hg-welcome-compare ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--welcome-muted);
  line-height: 1.65;
}
.hg-welcome-compare li + li { margin-block-start: 4px; }
.hg-welcome-jumps { display: flex; flex-wrap: wrap; column-gap: 18px; margin: 0; }
.hg-welcome [id] { scroll-margin-top: 18px; }
.hg-welcome-description, .hg-welcome-connection { color: var(--hg-muted, #526168); }
@media (max-width: 959px) {
  .hg-welcome-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .hg-welcome-compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 570px) {
  .hg-welcome-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hg-welcome-figure,
  .hg-welcome-step-art {
    min-height: 76px;
    padding: 8px;
  }
  .hg-unified main .hg-welcome-steps h3 { margin-block-start: 10px; }
}
