
.how-it-works { position: relative; --scroll-line: #c99974; margin: 48px 22px 38px; padding: 38px 28px 30px; border: 1px solid var(--scroll-line); border-radius: 1px; background-color: #fff8eb; background-image: radial-gradient(ellipse at 20% 5%, #fffdf6bd, transparent 60%), repeating-linear-gradient(115deg, #b68b4c05 0 1px, transparent 1px 5px), linear-gradient(100deg, #f7e8cc55, #fffaf2 35%, #f8eace55); box-shadow: 0 6px 18px #7c4a2910; }
.how-it-works > .gift-scroll-ribbon { height: 70px; }
.how-heading { max-width: 650px; margin: 0 auto 28px; text-align: center; }
.how-kicker { color: #ad2533; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.how-heading h2 { margin: 8px 0 12px; color: #30231f; font-size: clamp(29px, 3.3vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.how-heading > p { color: #6a5950; font-size: 15px; line-height: 1.65; margin-bottom: 17px; }
.how-example { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px 13px; border: 1px solid #ecdcc9; border-radius: 30px; background: #fcf3e7; color: #715649; font-size: 12px; }
.how-example img { object-fit: contain; mix-blend-mode: multiply; }
.how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.how-steps:focus-visible { outline: 2px solid #b52531; outline-offset: 5px; border-radius: 16px; }
.how-step { min-width: 0; overflow: hidden; border: 1px solid #d2ab91; border-radius: 17px; background: #fffcf7d9; box-shadow: 0 4px 13px #895a3414; }
.how-step-copy { padding: 20px 21px 16px; }
.how-step-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.how-step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fbe8e3; color: #ad2533; font-size: 12px; font-weight: 700; }
.how-step-tag { font-size: 9px; color: #9a7160; letter-spacing: .13em; font-weight: 700; }
.how-step-meta img { margin-left: auto; object-fit: contain; mix-blend-mode: multiply; }
.how-step h3 { margin-bottom: 8px; color: #39271f; font-size: 23px; line-height: 1.2; }
.how-step-copy > p { min-height: 63px; margin-bottom: 0; color: #6a5950; font-size: 13px; line-height: 1.6; }
.how-step-zoom { display: block; width: calc(100% - 26px); margin: 0 13px 13px; padding: 0; overflow: hidden; border: 1px solid #eadfce; border-radius: 10px; background: #faf3e9; color: #856251; text-align: center; }
.how-step-zoom:focus-visible { outline: 3px solid #a52a35; outline-offset: 3px; }
.how-screen { display: flex; width: 100%; height: 306px; align-items: center; justify-content: center; padding: 12px; background: #f6eee3; }
.how-screen img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 5px; box-shadow: 0 3px 12px #7f5a2a16; }
.how-step:nth-child(n+3) .how-screen { height: 200px; }
.how-zoom-hint { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-top: 1px solid #eadfce; background: #fffaf1; font-size: 11px; }
.how-zoom-hint > span { font-size: 18px; line-height: 1; }
.how-step-zoom:hover .how-zoom-hint { color: #a92b35; background: #fff1e8; }
.how-mobile-controls { display: none; }
.how-finish { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding: 24px 4px 0; border-top: 1px solid #e9d8c6; }
.how-finish h3 { margin: 0 0 6px; color: #39271f; font-size: 25px; }
.how-finish p { margin: 0; color: #786052; font-size: 12px; }
.how-create { gap: 20px; min-height: 49px; padding-inline: 24px; border-radius: 11px; background: linear-gradient(#d73740, #b71e2c); box-shadow: 0 4px 10px #a4232b20; font-size: 15px; }
.how-image-dialog { width: min(1000px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #dbc3a8; border-radius: 16px; background: #fffaf3; color: #30231f; }
.how-image-dialog::backdrop { background: #201b18a8; }
.how-image-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 14px 8px 20px; border-bottom: 1px solid #ead8c4; }
.how-image-dialog h2 { margin: 0; font: 600 16px/1.4 'DM Sans', sans-serif; }
.how-dialog-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; font-size: 28px; }
.how-image-body { max-height: calc(100dvh - 110px); overflow: auto; padding: 16px; }
.how-image-body img { display: block; width: 100%; height: auto; margin: auto; }
@media (max-width: 720px) {
 .how-it-works { margin: 38px 10px 30px; padding: 32px 14px 25px; border-radius: 1px; }
 .how-it-works > .gift-scroll-ribbon { left: 13px; width: 21px; height: 54px; }
 .how-heading { margin-bottom: 22px; }
 .how-kicker { font-size: 9px; letter-spacing: .12em; }
 .how-heading h2 { margin-top: 9px; font-size: 29px; }
 .how-heading > p { font-size: 13px; line-height: 1.6; }
 .how-heading > p br { display: none; }
 .how-example { gap: 6px; padding: 5px 9px; font-size: 10px; }
 .how-example img { width: 21px; height: 21px; }
 .how-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
 .how-steps::-webkit-scrollbar { display: none; }
 .how-step { scroll-snap-align: start; scroll-snap-stop: always; border-radius: 14px; box-shadow: none; }
 .how-step-copy { padding: 16px 15px 12px; }
 .how-step h3 { font-size: 23px; }
 .how-step-copy > p { min-height: 83px; font-size: 13px; }
 .how-screen { height: 245px; padding: 8px; }
 .how-step:nth-child(n+3) .how-screen { height: 245px; }
 .how-step-zoom { width: calc(100% - 18px); margin: 0 9px 9px; }
 .how-zoom-hint { min-height: 44px; }
 .how-mobile-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
 .how-mobile-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ddc5ad; border-radius: 50%; background: #fffbf4; color: #a82c36; font-size: 19px; }
 .how-mobile-controls button:disabled { opacity: .35; cursor: default; }
 .how-position { color: #816758; font-size: 12px; }
 .how-finish { flex-direction: column; gap: 17px; padding-top: 22px; margin-top: 20px; text-align: center; }
 .how-finish h3 { font-size: 25px; }
 .how-create { width: 100%; }
}
@media (max-width: 350px) { .how-example img { display: none; } .how-example { font-size: 9px; } .how-heading h2 { font-size: 25px; } .how-step-tag { font-size: 8px; letter-spacing: .07em; } }

body:has(.how-image-dialog[open]) { overflow: hidden; }
