/* Невелика святкова кімната всередині студії. */
body:has(.greeting-wizard){--accent:#e6c780;--cta:#e6c780;--ctaink:#153b30;--bg:#10382d;--card:#194636;--ink:#fff8e9;--muted:#c0d7c6;--hair:#39624f;--elev:#224c3c;background:radial-gradient(ellipse at 20% 0,#28513d 0,transparent 65%),#10382d;color:#fff8e9}
body:has(.greeting-wizard) header{background:transparent;border-color:#39624f}body:has(.greeting-wizard) nav{background:#10382df5;border-color:#39624f}body:has(.greeting-wizard) nav button.active{color:#f0ce88}body:has(.greeting-wizard) .brand-mark{background:#e7c780;color:#173c2f}body:has(.greeting-wizard) .brand{color:#fff8e9}
.greeting-wizard{position:relative;isolation:isolate;max-width:640px;margin:0 auto;padding:12px 0 8px;min-height:480px;--g-cream:#fcf5e7;--g-gold:#e6c780}.greeting-wizard>*:not(.greeting-decor){position:relative;z-index:1}.greeting-wizard h1{font-family:'Wix Madefor Display',Manrope,sans-serif;font-size:clamp(25px,6.7vw,37px);line-height:1.12;letter-spacing:-1px;max-width:530px;margin:10px 0 9px;font-weight:800}.greeting-lead{font-size:13px;line-height:1.5;color:#cedfd1;margin:0 0 18px;max-width:530px}.greeting-eyebrow{display:block;color:#e6c780;font-size:9px;letter-spacing:2.4px;font-weight:800;margin-top:17px}.greeting-stephead{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#b8d0bd}.greeting-stephead .back{margin:0;color:#d9e5d6;font-size:12px;padding:6px 0}.greeting-progress{height:3px;background:#335a45;border-radius:8px;margin:9px 0 0;overflow:hidden}.greeting-progress i{display:block;height:100%;background:#e6c780;transition:width .3s}
.greeting-decor{position:absolute;inset:0 -15px;overflow:hidden;pointer-events:none;z-index:0;opacity:.55}.greeting-lights{display:flex;justify-content:space-between;position:absolute;top:0;left:0;right:0;border-top:1px solid #77946d}.greeting-lights i{width:6px;height:8px;background:#f0cc72;box-shadow:0 0 12px 3px #efcb7a55;border-radius:2px 2px 60% 60%;transform:translateY(calc(mod(var(--i),3)*3px));animation:greeting-glow 3s infinite;animation-delay:calc(var(--i)*-.4s)}.greeting-decor>b{position:absolute;left:calc(var(--i)*6.6%);top:-20px;color:#fff7db;font-size:calc(9px + mod(var(--i),3)*5px);animation:greeting-fall 11s linear infinite;animation-delay:calc(var(--i)*-.9s);opacity:.32}.greeting-decor.is-birthday>b{color:#e8bd78;animation:greeting-confetti 8s linear infinite;animation-delay:calc(var(--i)*-.65s)}
.greeting-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.greeting-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fcf5e7;color:#173f31;border:1px solid #fcf5e7;border-radius:15px;padding:16px;text-align:left;font-weight:600;font-size:13px;min-height:46px;width:100%;cursor:pointer;box-shadow:0 4px 12px #041d1410}.greeting-choice.selected{background:#e6c780;border-color:#fff5d0}.greeting-choice:hover{background:#f5e7c8}.greeting-choice:focus-visible,.greeting-wizard button:focus-visible{outline:3px solid #f8dd9d;outline-offset:3px}.greeting-choice>span:last-child:not(:first-child){flex-shrink:0}.greeting-event-grid>.greeting-choice{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;padding:15px 8px 18px;text-align:center}.greeting-event-grid strong{font-size:14px;line-height:1.25}.greeting-event-grid small{color:#57715c;font-weight:500;font-size:10px}.greeting-hero-art{position:relative;width:100%;height:130px;display:grid;place-items:center;background:radial-gradient(ellipse,#dbdfc3,transparent 68%)}.greeting-hero-art span{font-size:85px;filter:drop-shadow(0 10px 10px #375b3825)}.greeting-hero-art i,.greeting-hero-art b{position:absolute;color:#a9803e;font-size:24px;left:15%;top:10%;font-style:normal}.greeting-hero-art b{left:auto;right:10%;top:57%;font-size:28px}.greeting-big-emoji{font-size:65px;line-height:1.6}.greeting-price-strip{display:flex;justify-content:space-between;margin-top:18px;border-block:1px solid #40634c;padding:13px 2px;font-size:11px;color:#b9cfbf;gap:5px}.greeting-price-strip b{display:block;color:#f6d994;font-size:17px;margin-top:3px}.greeting-note{font-size:11px;color:#bfD4c2;line-height:1.55;margin:12px 0}.greeting-note a{color:#f1d799;text-decoration:underline}.greeting-stack{display:grid;gap:9px}.greeting-icon{font-size:35px;width:52px;text-align:center}.greeting-stack strong{flex:1}.greeting-variants{display:grid;grid-template-columns:1fr 1fr;gap:10px}.greeting-variant{background:#fcf5e7;border-radius:14px;overflow:hidden;color:#173f31}.greeting-poster{position:relative;aspect-ratio:16/9;background:#2c5743}.greeting-poster img{width:100%;height:100%;object-fit:cover}.greeting-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border:1px solid #fff6;background:#10382dba;border-radius:50%;color:#fff8e9;display:grid;place-items:center;font-size:16px;cursor:pointer}.greeting-variant>button{padding:11px 10px;background:transparent;border:0;width:100%;text-align:left;color:inherit;cursor:pointer}.greeting-variant strong{display:block;font-size:12px;line-height:1.2}.greeting-variant>button span{display:block;font-size:10px;color:#57715c;margin-top:5px}.greeting-coming{display:flex;align-items:center;gap:10px;border:1px dashed #64836a;border-radius:12px;padding:7px 12px;margin-top:12px;color:#dfdcc7}.greeting-coming img{width:55px;height:42px;border-radius:6px;object-fit:cover}.greeting-coming span:nth-child(2){flex:1}.greeting-coming b{font-size:12px;display:block}.greeting-coming small{display:block;font-size:10px;color:#afc4ae;margin-top:2px}.greeting-ages{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.greeting-ages .greeting-choice{padding:13px 4px;justify-content:center;font-size:17px}.greeting-ages .greeting-choice:first-child{font-size:11px}.greeting-scroll{max-height:min(40dvh,320px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6b47c #2d5740;padding:3px 4px 5px 0}.greeting-scroll .greeting-choice{font-size:12px;line-height:1.5;margin-bottom:6px}.greeting-search{display:flex;gap:8px}.greeting-search input{width:0;flex:1;background:#fcf5e7!important;color:#163c2c!important;border-color:#d1d2b8!important}.greeting-search .secondary{width:auto;margin:0;padding:10px 15px;color:#f6dfaa;border-color:#72906b}#greeting-name-form label{font-size:11px;color:#d4dfcb;margin-bottom:6px}.greeting-info{padding:12px 14px;border:1px solid #547351;border-radius:12px;background:#2e573d80;color:#dfebd9;font-size:12px;line-height:1.5}.greeting-permission{font-size:10px;line-height:1.5;color:#ceddcc;border-left:2px solid #d8bc7b;padding-left:10px;margin:0 0 14px}.greeting-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}.greeting-photo{border:1px solid #547351;border-radius:12px;padding:8px;background:#19443290;overflow:hidden}.greeting-photo-preview{height:76px;position:relative;display:grid;place-items:center;background:#315b43;border-radius:7px;color:#e5d9ad;font-size:40px;overflow:hidden}.greeting-photo-preview img{height:100%;width:100%;object-fit:contain}.greeting-slot{position:absolute;left:5px;top:5px;border-radius:50%;background:#e6c780;color:#163c2c;width:20px;height:20px;font-size:10px;display:grid;place-items:center}.greeting-photo strong{display:block;font-size:10px;margin:8px 0 6px}.greeting-upload{display:block;cursor:pointer;color:#fff0c8;background:#345e43;border:1px solid #6b8b63;padding:8px 3px;text-align:center;border-radius:7px;font-size:9px;font-weight:700;position:relative;margin:0}.greeting-upload:focus-within{outline:2px solid #ead09b}.greeting-upload input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.greeting-reuse{font-size:9px;line-height:1.4;color:#e5d199;background:transparent;border:0;text-decoration:underline;cursor:pointer;padding:7px 0 0}.greeting-one-photo{grid-template-columns:minmax(0,300px);justify-content:center}.greeting-one-photo .greeting-photo-preview{height:180px}.greeting-one-photo .greeting-upload{font-size:12px}.greeting-summary{display:flex;align-items:center;gap:12px;background:#fcf5e7;color:#173f31;padding:10px;border-radius:13px}.greeting-summary img{width:92px;aspect-ratio:16/10;object-fit:cover;border-radius:8px}.greeting-summary b,.greeting-summary span,.greeting-summary small{display:block}.greeting-summary b{font-size:12px}.greeting-summary span{font-size:11px;margin:5px 0}.greeting-summary small{font-size:10px;color:#68806b}.greeting-subtitle{font-size:14px!important;margin:17px 0 10px!important}.greeting-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.greeting-pack{padding:12px 5px;background:#244e39;border:1px solid #638360;border-radius:12px;color:#f3ebd5;cursor:pointer;text-align:center}.greeting-pack.selected{background:#e6c780;color:#173f31;border-color:#f9dfa7}.greeting-pack strong,.greeting-pack b,.greeting-pack small{display:block}.greeting-pack strong{font-size:11px}.greeting-pack b{font-size:20px;margin:5px 0}.greeting-pack small{font-size:9px}.greeting-wizard .primary{background:#e6c780;color:#143b2c;box-shadow:0 4px 16px #0001;margin-top:12px}.greeting-wizard .secondary{color:#efdab1}.greeting-wizard .error{font-size:12px;background:#fbe5d8;color:#6b2f20}.greeting-demo{max-width:680px;width:calc(100% - 24px);max-height:90dvh;overflow:auto;background:#fcf5e7;color:#173f31;border:0;border-radius:20px;padding:16px}.greeting-demo::backdrop{background:#031d15d9;backdrop-filter:blur(8px)}.greeting-demo video{display:block;width:100%;max-height:58dvh;border-radius:10px;background:#071e17}.greeting-demo h2{font-size:20px;margin:12px 0}.greeting-demo p{font-size:12px;line-height:1.5}.greeting-demo .primary{background:#1d533e;color:#fff5df}.greeting-demo .secondary{color:#173f31;border-color:#a4b5a5;margin:0}.greeting-result video{width:100%;max-height:48dvh;border-radius:15px;background:#071e17}.greeting-result .greeting-stage{margin:28px auto;text-align:center;max-width:340px}.greeting-stage .spinner{border-color:#50794c;border-top-color:#f0cf8c}.greeting-stage h2{font-size:21px}.greeting-stage p{font-size:12px;line-height:1.6}.greeting-birthday{--g-gold:#edc08d}.greeting-result .badge{background:#2c6045;color:#f9dda0}
@keyframes greeting-fall{to{transform:translate3d(15px,650px,0) rotate(90deg)}}@keyframes greeting-confetti{to{transform:translate3d(-20px,650px,0) rotate(400deg)}}@keyframes greeting-glow{50%{opacity:.45;box-shadow:0 0 5px #e6c78055}}
@media(min-width:600px){.greeting-hero-art{height:170px}.greeting-poster{max-height:145px}.greeting-wizard{padding-top:14px}.greeting-photos .greeting-photo-preview{height:110px}}
@media(max-width:360px){.greeting-wizard h1{font-size:25px}.greeting-lead{font-size:12px;margin-bottom:12px}.greeting-hero-art{height:105px}.greeting-hero-art span{font-size:72px}.greeting-event-grid strong{font-size:12px}.greeting-event-grid small{font-size:9px}.greeting-photo-preview{height:58px}.greeting-photo strong{font-size:9px}.greeting-photo{padding:6px}.greeting-upload{font-size:8px}.greeting-scroll{max-height:34dvh}.greeting-summary img{width:74px}}
@media(prefers-reduced-motion:reduce){.greeting-decor b,.greeting-lights i{animation:none}.greeting-progress i{transition:none}.greeting-decor b{display:none}}

body:has(.greeting-wizard) nav button.active span{color:#e6c780}.greeting-decor.is-birthday>b:nth-child(3n){color:#f5b4aa}.greeting-decor.is-birthday>b:nth-child(3n+1){color:#b5d7b8}
@media(max-height:740px) and (max-width:600px){body:has(.greeting-wizard) header{padding-top:14px;padding-bottom:14px}.greeting-wizard{padding-top:6px;min-height:410px}.greeting-wizard h1{font-size:25px}.greeting-eyebrow{margin-top:12px}.greeting-lead{margin-bottom:12px}.greeting-hero-art{height:92px}.greeting-hero-art span{font-size:65px}.greeting-event-grid>.greeting-choice{padding:10px 6px 13px}.greeting-poster{aspect-ratio:1.9}.greeting-variant>button{padding:8px}.greeting-coming{margin-top:8px;padding:5px 10px}.greeting-photo-preview{height:54px}.greeting-one-photo .greeting-photo-preview{height:130px}.greeting-note{margin:8px 0}.greeting-pack{padding:8px 3px}.greeting-permission{font-size:9px;margin-bottom:10px}.greeting-info{padding:9px 11px;font-size:11px}.greeting-subtitle{margin:12px 0 8px!important}}

.greeting-wizard #next{position:static;bottom:auto;box-shadow:none;margin-top:12px;transform:none}main:has(.greeting-wizard){padding-bottom:calc(90px + env(safe-area-inset-bottom))}.greeting-permission{font-size:11px}.greeting-photo strong{font-size:11px}.greeting-upload{font-size:10px;min-height:34px;display:grid;place-items:center}.greeting-reuse{font-size:10px}@media(max-width:360px){.greeting-permission{font-size:10px}.greeting-photo strong{font-size:10px}.greeting-upload{font-size:9px}}
.greeting-upload{overflow:hidden}.greeting-upload input{min-height:0;max-height:100%;padding:0;margin:0;border:0}.greeting-upload:has(input:disabled){opacity:.5;pointer-events:none}
.greeting-wizard [hidden]{display:none!important}
/* 06.11.2026: об’єднані екрани «Про дитину» (стать + вік + ім’я) і «Що скаже герой?» (4 побажання з готовими варіантами). */
.greeting-field{border:0;margin:0 0 16px;padding:0;min-width:0}
.greeting-field legend,.greeting-field-title{display:block;font-size:13px!important;font-weight:800;line-height:1.4;margin:0 0 8px!important;padding:0;color:var(--ink)}
.greeting-child .greeting-person-grid .greeting-choice{padding:8px 8px 10px;gap:6px}
.greeting-child .greeting-person-grid .ui-person-art{height:84px}
.greeting-child .greeting-ages{grid-template-columns:repeat(6,1fr);gap:6px}
.greeting-child .greeting-ages .greeting-choice{padding:9px 2px;min-height:42px;font-size:15px}
.greeting-child .greeting-ages .greeting-choice:first-child{font-size:10px;line-height:1.15}
.greeting-child #greeting-names{max-height:min(32dvh,240px);margin-top:4px}
.greeting-name-picked b{color:var(--ink)}
.greeting-phrases{display:grid;gap:9px}
.greeting-phrase{border:1px solid var(--hair);border-radius:14px;background:var(--card);color:var(--ink);overflow:hidden}
.greeting-phrase[open]{border-color:var(--cta);box-shadow:0 0 0 1px var(--cta)}
.greeting-phrase>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:11px 12px;cursor:pointer;list-style:none}
.greeting-phrase>summary::-webkit-details-marker{display:none}
.greeting-phrase>summary:focus-visible{outline:3px solid var(--cta);outline-offset:-3px;border-radius:13px}
.greeting-phrase-num{flex:0 0 24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;font-weight:800}
.greeting-phrase-text{flex:1;min-width:0}
.greeting-phrase-text small{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:3px}
.greeting-phrase-text b{display:block;font-size:13px;line-height:1.4;font-weight:600}
.greeting-phrase-change{flex-shrink:0;font-size:11px;font-weight:800;color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}
.greeting-phrase[open] .greeting-phrase-change{visibility:hidden}
.greeting-phrase .greeting-scroll{max-height:min(38dvh,300px);padding:0 10px 10px}
.greeting-phrase .greeting-choice{padding:11px 12px;margin-bottom:0}
@media(min-width:600px){.greeting-child .greeting-ages{grid-template-columns:repeat(8,1fr)}.greeting-child .greeting-person-grid .ui-person-art{height:110px}}
@media(max-width:360px){.greeting-child .greeting-person-grid .ui-person-art{height:70px}.greeting-child .greeting-ages .greeting-choice{font-size:13px}}
