.home-guide-section {
  --surface-color:#a8cde6;
  padding:22px 20px 14px;
  overflow:visible;
}
/* Keep guide artwork still; navigation moves the cards as a whole. */
.home-guide-section,.home-guide-section * { --ui-outline-filter:url('#ui-crayon-outline-slow'); }
.home-guide-section *,.home-guide-section *::before,.home-guide-section *::after { animation:none !important; }
.home-guide-section .home-guide-card-body *,.home-guide-section .home-guide-card-body *::before,.home-guide-section .home-guide-card-body *::after { transition:none !important; }
.home-guide-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; }
.home-guide-heading h2 { margin:0; font-size:clamp(26px,2.5vw,38px); line-height:1.2; color:var(--ink); }
.home-guide-heading h2:focus-visible { outline:2px dashed var(--ink); outline-offset:6px; }
.home-guide-topics { display:flex; flex-wrap:wrap; gap:8px; }
.home-guide-topics button { min-height:36px; padding:6px 10px; font-size:14px; border:1px solid transparent; border-radius:9px; background:#edf6ff; }
.home-guide-topics button[aria-pressed=true] { background:var(--green); }
.home-guide-stage { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; margin-top:8px; }
.home-guide-card {
  --surface-paint:var(--guide-card-color);
  --noise-tint:color-mix(in srgb,var(--surface-paint) 75%,white);
  --surface-edge-shade:oklch(from var(--surface-paint) l calc(c * .88) calc(h - 18));
  --surface-cloud-mask:var(--surface-cloud-compact);
  --surface-cloud-opacity:.10;
  --cloud-slice:100;
  position:relative;
  min-width:0;
  border:1px solid transparent;
  border-radius:14px;
  background:var(--surface-paint);
  color:var(--ink);
  isolation:isolate;
  box-shadow:0 8px 12px #19334c20;
}
.home-guide-card[data-home-guide-group="0"] { --guide-card-color:#ffc7b8; }
.home-guide-card[data-home-guide-group="1"] { --guide-card-color:#ffe497; }
.home-guide-card[data-home-guide-group="2"] { --guide-card-color:#bde1a8; }
.home-guide-card[data-home-guide-group="3"] { --guide-card-color:#d7c8f0; }
.home-guide-card[data-home-guide-group="4"] { --guide-card-color:#afe0e9; }
.home-guide-card::before {
  content:''; position:absolute; inset:-2.5px; border:3px solid oklch(from var(--surface-paint) calc(l * .56) c calc(h - 10));
  border-radius:15.5px; z-index:3; pointer-events:none; filter:var(--ui-outline-filter,url('#ui-crayon-outline-slow'));
}
.home-guide-card::after {
  content:''; position:absolute; inset:0; z-index:-2; border-radius:inherit; pointer-events:none;
  background:var(--noise-tint); mask:var(--surface-noise) 0 0 / var(--noise-tile-size) repeat;
  opacity:var(--noise-opacity); mix-blend-mode:multiply;
}
.home-guide-card-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:56px; padding:12px 16px; text-align:left; background:transparent; border:0; border-radius:14px 14px 0 0; }
.home-guide-card-heading::before { content:none; }
.home-guide-section .home-guide-card-heading:is(:hover,:focus-visible) { animation:none; }
.home-guide-title { margin:0; }
.home-guide-card-heading .home-guide-label { font-size:22px; line-height:1.15; font-weight:700; }
.home-guide-number { display:grid; order:1; place-items:center; min-width:29px; height:29px; padding-inline:4px; flex-shrink:0; border:1px solid #19334c40; border-radius:999px; font-size:14px; line-height:1; }
.home-guide-card:is([data-guide-side=before],[data-guide-side=after]) .home-guide-card-heading { gap:6px; padding-inline:10px; }
.home-guide-card:is([data-guide-side=before],[data-guide-side=after]) .home-guide-label { max-width:105px; font-size:16px; }
.home-guide-card[data-guide-side=before] .home-guide-card-heading { justify-content:flex-start; }
.home-guide-card[data-guide-side=before] .home-guide-number { order:-1; }
.home-guide-card[data-guide-side=after] .home-guide-card-heading { justify-content:flex-end; text-align:right; }
.home-guide-card-body { padding:0 16px 18px; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.home-guide-card-body>p { margin:12px 0 0; }
.home-guide-card-body strong { font-weight:700; }
.home-guide-section.is-enhanced .home-guide-stage { display:block; position:relative; height:var(--guide-stage-height,510px); }
.is-enhanced .home-guide-card {
  position:absolute; top:0; left:50%; width:var(--guide-card-width,300px); min-height:var(--guide-card-min-height,360px);
  z-index:var(--guide-z,1); transform-origin:center;
  transform:translate3d(calc(-50% + var(--guide-x,0px)),var(--guide-y,0px),0) rotate(var(--guide-angle,0deg)) scale(var(--guide-scale,1));
  transition:transform .32s cubic-bezier(.2,.75,.25,1),box-shadow .25s,opacity .3s;
}
.is-enhanced .home-guide-stage:not(.is-ready) .home-guide-card { opacity:0; transform:translate3d(-50%,60px,0) rotate(0deg) scale(.92); }
.is-enhanced .home-guide-card[data-active=true] { box-shadow:0 15px 24px #19334c35; }
.is-enhanced .home-guide-card:not([data-active=true]) .home-guide-card-body { opacity:.7; }
.home-guide-illustration { margin:0; }
.home-guide-illustration .guide-visual { display:flex; justify-content:center; align-items:center; min-height:0; padding:10px; border:1px dashed #19334c60; border-radius:10px; background:#ffffff20; }
.home-guide-illustration .guide-prompt-visual { flex-direction:column; gap:10px; }
.home-guide-illustration .guide-prompt { display:block; width:100%; margin:0; padding:15px; }
.home-guide-illustration .guide-prompt h3 { font-size:22px; }
.home-guide-illustration .guide-prompt p { margin:0; font-size:13px; line-height:1.6; }
.home-guide-illustration .guide-example-label { font-size:10px; }
.home-guide-illustration svg { width:19px; height:19px; }
.home-guide-tools { width:260px; max-width:100%; pointer-events:none; }
.home-guide-tools .tools-panel { display:grid; grid-template-columns:52px minmax(0,1fr); width:100%; }
.home-guide-tools .tool-rail { display:flex; flex-direction:column; gap:3px; padding:5px 2px; border-right:1px solid #19334c30; }
.home-guide-tools .tool-button { display:flex; flex-direction:column; min-height:32px; padding:3px 1px; gap:2px; font-size:9px; line-height:1.15; }
.home-guide-tools .tool-button svg { width:16px; height:16px; }
.home-guide-tools .rail-label,.home-guide-tools .options-heading { display:none; }
.home-guide-tools .tool-options-wrap { padding:8px; }
.home-guide-tools #tool-options,.home-guide-tools fieldset { display:block; }
.home-guide-tools .option-group+.option-group { margin-top:8px; }
.home-guide-tools .option-label { margin-bottom:4px; line-height:1.2; }
.home-guide-tools .option-label,.home-guide-tools .option-label>span,.home-guide-tools .option-label>output { font-size:10px; }
.home-guide-tools .size-buttons button { width:27px; min-width:0; height:22px; }
.home-guide-tools .size-buttons button span { max-width:100%; height:auto; aspect-ratio:1; }
.home-guide-tools .opacity-buttons button { height:20px; padding:2px; }
.home-guide-tools .opacity-buttons button span { width:13px; }
.home-guide-tools .color-palette { grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
.home-guide-tools .palette-swatch { width:min(15px,100%); }
.home-guide-illustration .guide-tools-visual { flex-direction:column; gap:7px; padding:10px; }
.home-guide-illustration .guide-history { display:flex; gap:8px; }
.home-guide-illustration .guide-history span { padding:4px 8px; font-size:11px; }
.home-guide-illustration .guide-signing { width:100%; max-width:222px; }
.home-guide-illustration .guide-signature-heading { font-size:12px; }
.home-guide-illustration .guide-signature-modes span { width:25px; height:23px; }
.home-guide-illustration .guide-signing .signature-tools { flex-wrap:wrap; min-height:30px; gap:6px; padding:5px 8px; }
.home-guide-illustration .signature-pad img { display:block; width:100%; height:auto; }
.home-guide-illustration .guide-sign-button { display:flex; width:max-content; margin:12px 0 0 auto; min-height:28px; font-size:13px; padding:4px 12px; }
.home-guide-completion { padding:12px; border-radius:10px; background:#ffffff40; }
.home-guide-demo { margin-top:12px; }
.home-guide-demo>p { margin:0 0 12px; }
.home-guide-demo-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.home-guide-demo-control { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:38px; padding:6px 9px; border:1px solid #19334c60; border-radius:9px; font-size:14px; }
.home-guide-demo-filter { background:var(--yellow); }
.home-guide-demo-reroll { background:var(--red); }
.home-guide-demo-actions svg { width:18px; height:18px; }
.home-guide-prompt-timer { margin:18px 0 0; text-align:center; }
.home-guide-countdown-picture { display:flex; justify-content:center; }
.home-guide-countdown-picture .round-intro-clock { gap:3px; }
.home-guide-countdown-picture .round-intro-clock svg { width:66px; height:77px; }
.home-guide-countdown-picture .round-intro-count { font-size:28px; }
.home-guide-prompt-timer figcaption { max-width:250px; margin:10px auto 0; font-size:15px; line-height:1.4; }
.home-guide-timer-layout { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:16px; }
.home-guide-timer-picture {
  --guide-timer-width:108px;
  --guide-timer-height:392px;
  --guide-timer-scale:.72;
  width:calc(var(--guide-timer-width) * var(--guide-timer-scale));
  height:calc(var(--guide-timer-height) * var(--guide-timer-scale));
  margin:auto;
}
.home-guide-timer-picture .score-timer { width:var(--guide-timer-width); height:var(--guide-timer-height); transform:scale(var(--guide-timer-scale)); transform-origin:top left; }
.home-guide-timer-picture .medal-icon,.home-guide-timer-picture .timer-clock-hand { animation:none; }
.home-guide-timer-copy p { margin:0; }
.home-guide-timer-copy p+p { margin-top:14px; }
.home-guide-no-limit { padding:12px; border-radius:10px; background:#ffffff40; }
.medal-reference p { margin:0 0 10px; }
.medal-reference p:last-child { margin:12px 0 0; }
.medal-reference table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.25; text-align:center; font-variant-numeric:tabular-nums; }
.medal-reference th,.medal-reference td { padding:5px 2px; }
.medal-reference tr { border-bottom:1px solid #19334c30; }
.medal-reference th:first-child { text-align:left; }
.medal-reference td:last-child { white-space:nowrap; }
.medal-reference .medal-icon { width:25px; height:31px; margin:auto; }
.medal-tier { display:inline-flex; align-items:center; gap:4px; }
@media(max-width:850px) {
  .home-guide-timer-layout { gap:10px; }
  .home-guide-timer-picture { --guide-timer-width:82px; --guide-timer-height:334px; --guide-timer-scale:.72; }
  .home-guide-timer-copy .home-guide-no-limit { padding:8px; }
}
.home-guide-gallery-example { padding:9px; }
.home-guide-gallery-example .painting-art>svg { display:block; width:100%; height:auto; aspect-ratio:3/2; background:white; border-radius:3px; }
.home-guide-gallery-example .painting-name { font-size:15px; }
.home-guide-gallery-example .star-symbol { width:30px; height:30px; }
.home-guide-gallery-example .star-count { font-size:20px; }
.home-guide-gallery-example .star-button { min-width:56px; min-height:38px; }
.home-guide-filter-example { display:flex; flex-wrap:wrap; gap:6px; }
.home-guide-filter-example span { padding:5px 8px; border:1px solid #19334c40; border-radius:6px; font-size:12px; background:#ffffff50; }
.home-guide-star-feedback { font-size:13px; }
.home-guide-wip { display:grid; min-height:250px; place-items:center; font-size:52px; letter-spacing:3px; }
@media(max-width:700px) {
  .home-guide-section { padding:18px 12px 10px; }
  .home-guide-topics { gap:6px; }
  .home-guide-topics button { min-height:36px; padding:6px 9px; font-size:12px; }
  .home-guide-card-heading { min-height:60px; padding:12px; }
  .home-guide-card-heading .home-guide-label { font-size:19px; }
  .home-guide-card-body { padding-inline:12px; font-size:15px; }
  .is-enhanced .home-guide-card { min-height:var(--guide-card-min-height,300px); }
  .home-guide-wip { min-height:190px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-guide-section .home-guide-card { transition:none; }
}
