:root{--cream:#f8f1e3;--paper:#fffaf1;--ink:#402c29;--wine:#742e38;--teal:#285a54;--gold:#c79a48;--line:#d3c5b1;--body:'Nunito Sans',Arial,sans-serif;--display:'Fraunces',Georgia,serif;color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;color:var(--ink);background:var(--cream);font:22px/1.5 var(--body);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,label,input{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit}button{border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,label:focus-within{outline:4px solid var(--teal);outline-offset:5px}button,a{-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.02;letter-spacing:-.045em}h1{font-size:clamp(64px,7.4vw,116px)}h2{font-size:clamp(40px,4vw,60px)}h3{font-size:32px;letter-spacing:-.025em}h1 em{font-style:normal;color:var(--wine)}p{max-width:65ch}[hidden]{display:none!important}.site-header{max-width:1480px;margin:auto;padding:30px 56px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{display:inline-flex;align-items:center;text-decoration:none;font:700 48px/.9 var(--display);letter-spacing:-3px}.wordmark span{font:54px/1 Georgia;color:var(--wine);margin-left:6px}.header-actions{display:flex;align-items:center;gap:24px}.quiet{display:flex;align-items:center;gap:10px;background:none;min-height:54px;padding:8px;font-weight:700;font-size:21px}.help-icon{display:inline-grid;place-items:center;border:1.5px solid var(--ink);border-radius:100%;width:28px;height:28px;font:700 21px var(--body)}.hero{max-width:1480px;margin:auto;padding:75px 56px 86px;display:grid;grid-template-columns:1.12fr 1fr;gap:54px;align-items:center}.eyebrow{font-size:15px;letter-spacing:2.3px;font-weight:800;color:var(--wine);margin-bottom:24px}.hero h1{font-size:clamp(64px,7.6vw,114px);letter-spacing:-.055em}.intro{font-size:27px;line-height:1.45;margin:30px 0}.primary,.secondary{border-radius:100px;min-height:76px;padding:20px 32px;display:inline-flex;align-items:center;justify-content:center;gap:34px;text-decoration:none;font-weight:800;font-size:25px;line-height:1.3;transition:transform .15s,background .15s}.primary{color:var(--paper);background:var(--wine);box-shadow:0 4px 0 #542029}.primary:hover{background:#5d202a;transform:translateY(-2px)}.primary span{font-size:31px;line-height:.8}.secondary{color:var(--wine);background:transparent;border:2px solid var(--wine)}.under-button{font-size:18px;margin-top:22px;color:#65544d}.hero-art{position:relative;min-height:540px;padding-left:70px;padding-right:20px}.hero-card{position:relative;aspect-ratio:3/4;max-width:370px;margin:0 0 0 auto;border:11px solid var(--paper);border-bottom-width:25px;box-shadow:0 12px 30px #402c2925;transform:rotate(6deg);background:#e8c993;border-radius:3px}.hero-card img{width:100%;height:100%;object-fit:cover;display:block}.hero-greeting{position:absolute;top:22px;left:18px;font:700 clamp(50px,4.8vw,70px)/.95 var(--display);letter-spacing:-4px;color:var(--wine)}.card-signature{position:absolute;bottom:18px;left:10%;right:10%;text-align:center;font-size:13px;font-weight:800;letter-spacing:.6px;color:var(--ink)}.hero-card .card-signature{bottom:-21px;font-size:12px;letter-spacing:1px}.mini-card{position:absolute;width:230px;height:320px;left:4px;top:130px;background:#285a54;color:#fff4d9;border:10px solid #fffaf1;box-shadow:0 6px 24px #402c2920;transform:rotate(-13deg);padding:24px 12px}.mini-card span{font:700 43px/.98 var(--display);letter-spacing:-1.5px}.mini-card i{display:block;color:#e9b95c;font-size:108px;font-style:normal;text-align:center;line-height:1.3}.art-seal{position:absolute;bottom:60px;right:-4px;transform:rotate(12deg);background:#d7ac5f;border:2px dashed #8e6d32;outline:7px solid #d7ac5f;width:112px;height:112px;border-radius:50%;text-align:center;padding-top:19px;font:800 20px/1.1 var(--body)}.art-seal span{display:block;font-size:27px;margin-top:3px}.art-caption{text-align:center;font-size:18px;margin-top:30px;font-style:italic}.browse-section{padding:58px 56px 64px;max-width:1480px;margin:auto;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:36px}.section-heading h2{max-width:800px}.section-heading>p{font-size:20px;flex-shrink:0}.categories{display:flex;gap:10px;overflow:auto;padding:5px 5px 15px;margin-left:-5px;scrollbar-width:thin}.category{border:1px solid #b7a58d;background:transparent;border-radius:50px;padding:13px 23px;min-height:60px;white-space:nowrap;font-size:22px;font-weight:700;flex-shrink:0}.category[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:white}.gallery-top{display:flex;justify-content:space-between;align-items:center;margin:20px 0 24px;font-size:20px}.scroll-hint{display:none}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:start}.template{display:block;text-align:left;padding:0;background:transparent;width:100%;min-width:0}.template:nth-child(3n+2){margin-top:40px}.template-picture{aspect-ratio:4/5;position:relative;border:9px solid var(--paper);box-shadow:0 5px 15px #402c2912;overflow:hidden;border-radius:4px;transition:transform .2s;isolation:isolate}.template:hover .template-picture{transform:translateY(-6px) rotate(-1deg)}.template-picture img{width:100%;height:100%;object-fit:cover;display:block}.template-title{position:absolute;top:20px;left:20px;right:20px;color:var(--wine);font:700 50px/.98 var(--display);letter-spacing:-2px;overflow-wrap:break-word}.template-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 2px;font-size:24px;font-weight:800;gap:16px}.template-footer .arrow{border:1px solid #b7a58d;border-radius:50%;min-width:48px;height:48px;display:grid;place-items:center}.template-footer small{display:block;font-size:17px;font-weight:400}.bg-teal{background:#285a54;color:#f9e8c5}.bg-wine{background:#742e38;color:#f9e8c5}.bg-gold{background:#e8c68a;color:#60312e}.bg-rose{background:#ecd2c7;color:#742e38}.abstract-card{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:35px 18px;position:relative}.abstract-card:after{content:'';position:absolute;inset:13px;border:1px solid currentColor;border-radius:140px 140px 5px 5px;opacity:.45;pointer-events:none}.abstract-card .symbol{font-size:115px;line-height:1}.abstract-card .abstract-text{font:700 58px/.98 var(--display);letter-spacing:-2px;text-align:center;overflow-wrap:break-word;z-index:1}.abstract-card .tiny-note{font-size:13px;text-transform:uppercase;letter-spacing:2px}.gallery-controls{display:none}.how-section{background:#eee5d4;padding:70px 56px;text-align:center}.how-section h2{font-size:64px}.how-section ol{max-width:1250px;margin:46px auto 0;display:grid;grid-template-columns:repeat(3,1fr);padding:0;gap:30px;list-style:none}.how-section li>span{display:inline-grid;place-items:center;width:52px;height:52px;border:1px solid #a89378;border-radius:50%;font:700 27px var(--display);margin-bottom:20px}.how-section h3{margin-bottom:14px}.how-section p{font-size:21px}.view{max-width:1320px;margin:auto;padding:34px 48px 80px}.back,.text-button{border:0;background:transparent;padding:10px 0;min-height:48px;text-decoration:underline;text-underline-offset:5px;font-size:21px;font-weight:700}.back{text-decoration:none;margin-bottom:24px}.stepper{display:flex;gap:30px;justify-content:center;padding:16px 0 36px;font-size:20px}.stepper span{color:#6f5c51}.stepper strong{color:var(--wine);border-bottom:2px solid var(--wine)}.view .section-heading h1{font-size:clamp(55px,6.6vw,90px)}.editor-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:70px}.editor-grid fieldset{border:0;padding:0;margin:0 0 35px;min-width:0}legend,.form-field>label{font-weight:800;font-size:28px;margin-bottom:3px;display:block}.field-hint{font-size:18px;line-height:1.5;color:#6a554b;margin:7px 0 14px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.upload-box{min-height:195px;position:relative;border:2px dashed #9f8b74;border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:15px;cursor:pointer;text-align:center;background:#fffaf180;overflow:hidden}.upload-box:hover{background:var(--paper)}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;z-index:2}.upload-box strong{font-size:23px}.upload-icon{font-size:40px;line-height:1.2;color:var(--wine)}.optional{font-size:18px;color:#6a554b}.upload-box img{max-width:100%;height:90px;object-fit:cover;border-radius:6px;order:-1}.upload-box:has(img:not([hidden])) .upload-icon{display:none}.remove-photo{font-size:18px;text-decoration:underline;min-height:48px;background:transparent;padding:8px 0}.form-field{margin-bottom:32px}textarea{width:100%;border:1.5px solid #9f8b74;border-radius:12px;background:var(--paper);padding:18px;color:var(--ink);font-size:26px;line-height:1.4;resize:vertical}.message-meta{display:flex;justify-content:space-between;gap:14px;font-size:16px}.style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}.option{display:flex;align-items:center;gap:14px;padding:14px;border:1.5px solid #b7a58d;border-radius:12px;cursor:pointer;background:#fffaf180;min-height:80px;font-size:21px;font-weight:700;line-height:1.2}.option:has(:checked){border:2px solid var(--teal);background:#e6ede3}.option input{accent-color:var(--teal);width:22px;height:22px;flex-shrink:0}.option-symbol{font-size:32px;color:var(--teal)}.background-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.swatch{width:28px;height:28px;border-radius:50%;border:1px solid #402c2950;flex-shrink:0}.background-options .option{min-height:70px;font-size:19px;gap:10px}.create-action{border-top:1px solid var(--line);padding-top:20px}.create-action .primary{width:100%}.privacy-note{font-size:18px;margin-bottom:18px}.preview-sticky{position:sticky;top:28px;text-align:center}.preview-sticky>.eyebrow{margin-bottom:16px}.live-preview{position:relative;width:100%;aspect-ratio:3/4;border:12px solid var(--paper);box-shadow:0 8px 30px #402c2920;background:#f3e7cf;overflow:hidden;isolation:isolate;border-radius:4px}.preview-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}.preview-message{position:absolute;top:7%;left:7%;right:7%;color:var(--wine);font-family:var(--display);font-weight:700;line-height:1.03;overflow-wrap:break-word;text-align:center;letter-spacing:-.035em}.portrait-inset{position:absolute;bottom:12%;left:17%;right:17%;height:47%;display:flex;gap:6px;padding:6px;background:var(--paper);border-radius:46% 46% 8px 8px;overflow:hidden;box-shadow:0 4px 16px #402c2930}.portrait-inset img{width:100%;min-width:0;object-fit:cover;flex:1}.portrait-inset:has(img+img){left:8%;right:8%;border-radius:25% 25% 8px 8px}.live-preview.teal{background:#c9ddd5}.live-preview.rose{background:#eed5c9}.live-preview.gold{background:#e6bf78}.live-preview:not(.cream) .preview-art{opacity:.27;mix-blend-mode:multiply}.preview-label{font-size:16px;line-height:1.5;color:#705d52;margin-top:20px}.error{color:#8a2430;font-weight:800;font-size:20px}.waiting-view{text-align:center;padding-top:60px;max-width:1000px}.waiting-view h1{color:var(--teal)}.waiting-view .intro{margin:25px auto}.game-panel{max-width:720px;margin:42px auto 18px;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:30px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left}.game-heading h2{font-size:35px}.game-heading p{font-size:18px;margin-top:10px}.game-heading>span{white-space:nowrap;font-size:18px}.flower-game{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.flower-tile{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:15px;background:var(--teal);color:var(--cream);border:2px solid var(--teal);font-size:38px}.flower-tile small{font-size:18px;font-weight:800}.flower-tile.revealed{background:#f5e8d6;color:var(--ink)}.flower-tile.matched{background:#dce6d6;border:2px solid #537049;color:#32482b}.flower{width:68px;height:68px;display:block}.ready-banner{border:1px solid #7e9276;background:#e5ecd9;border-radius:20px;padding:22px;margin-top:30px}.ready-banner p{margin:0 auto 15px;font-weight:800}.result-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding-top:40px}.result-grid h1{font-size:clamp(60px,6.5vw,94px)}.result-actions{display:flex;flex-direction:column;align-items:flex-start;gap:20px}.result-image{width:100%;border:12px solid var(--paper);box-shadow:0 7px 28px #402c2920;transform:rotate(2deg)}footer{border-top:1px solid var(--line);max-width:1480px;margin:auto;padding:36px 56px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}footer .wordmark{font-size:35px}footer .wordmark span{font-size:40px}footer p{font-size:18px}footer .text-button{margin-left:auto;font-size:18px}footer .preview-label{width:100%;margin:0;font-size:14px}dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:50px;max-width:min(720px,calc(100vw - 30px));max-height:90vh;box-shadow:0 20px 100px #30201d50}dialog::backdrop{background:#2b201bb0;backdrop-filter:blur(4px)}dialog h2{margin-bottom:25px}dialog p{margin-bottom:22px;font-size:22px}.dialog-close{position:absolute;top:8px;right:12px;width:50px;height:50px;background:transparent;font-size:38px}.help-list{padding-left:30px}.help-list li{margin-bottom:16px}.skip{position:fixed;left:15px;top:-100px;padding:15px;background:white;z-index:99}.skip:focus{top:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body.extra-large{font-size:26px}body.extra-large .field-hint,body.extra-large .privacy-note,body.extra-large .preview-label{font-size:22px}body.extra-large .category,body.extra-large .option{font-size:25px}body.extra-large .primary,body.extra-large .secondary{font-size:29px}
@media(min-width:1500px){.hero{padding-top:90px;padding-bottom:95px}.hero-art{padding-right:45px}.hero-card{max-width:390px}.art-seal{right:20px}}@media(max-width:1050px){.site-header{padding:25px 30px}.hero{padding:55px 30px;gap:20px;grid-template-columns:1.15fr 1fr}.hero h1{font-size:76px}.hero-art{padding-left:32px;min-height:430px}.hero-card{border-width:8px;border-bottom-width:23px}.mini-card{width:170px;height:250px;top:110px;left:-10px;padding:20px 10px}.mini-card span{font-size:32px}.mini-card i{font-size:80px}.hero-greeting{font-size:50px}.art-seal{width:90px;height:90px;font-size:17px;right:-8px;bottom:55px;padding-top:15px}.art-seal span{font-size:24px}.browse-section{padding:45px 30px}.section-heading{align-items:flex-start}.section-heading>p{display:none}.gallery{gap:20px}.template-title{font-size:42px}.abstract-card .abstract-text{font-size:43px}.abstract-card .symbol{font-size:85px}.template-footer{font-size:20px}.editor-grid{gap:30px}.view{padding:30px}.editor-grid{grid-template-columns:1.1fr 1fr}.option{font-size:18px;gap:8px;padding:12px}.option-symbol{display:none}.background-options{grid-template-columns:1fr}.wordmark{font-size:43px}.result-grid{gap:30px}.how-section h3{font-size:26px}}
@media(max-width:700px){body{font-size:22px}.site-header{padding:22px 22px}.wordmark{font-size:39px}.wordmark span{font-size:43px}.header-actions{gap:8px}.quiet{font-size:20px;padding:6px;min-height:48px}.quiet#size-toggle span{display:none}.help-icon{display:none}.hero{display:flex;flex-direction:column;padding:38px 24px 45px;gap:38px;overflow:hidden;align-items:stretch}.hero .eyebrow{font-size:11px;letter-spacing:1.6px;margin-bottom:21px}.hero h1{font-size:clamp(59px,14.6vw,88px);line-height:1.02}.intro{font-size:24px;margin:24px 0}.primary,.secondary{font-size:24px;min-height:72px;padding:19px 27px;gap:24px}.hero .primary{width:100%}.under-button{font-size:16px;margin-top:18px;text-align:center}.hero-art{min-height:380px;max-width:440px;width:100%;align-self:center;padding-left:65px;padding-right:15px}.hero-card{width:245px;max-width:100%;margin-right:12px}.hero-greeting{font-size:48px;letter-spacing:-2px;top:14px;left:12px}.mini-card{width:180px;height:238px;top:80px;left:4px}.mini-card span{font-size:33px}.mini-card i{font-size:82px}.art-seal{right:4px;bottom:62px}.art-caption{font-size:16px;margin-top:26px}.browse-section{padding:35px 0 40px;overflow:hidden}.section-heading{padding:0 24px;margin-bottom:24px}.section-heading h2{font-size:46px;line-height:1.08}.eyebrow{font-size:13px;letter-spacing:1.7px;margin-bottom:18px}.categories{padding:5px 24px 14px;margin:0;gap:9px}.category{font-size:21px;padding:13px 22px;min-height:60px}.gallery-top{padding:0 24px;margin:15px 0 20px;font-size:18px;display:block}.scroll-hint{display:block;font-size:17px;margin-top:10px;color:var(--teal);font-weight:800}.gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:20px;padding:8px 24px 15px;scrollbar-width:none;align-items:flex-start}.gallery::-webkit-scrollbar{display:none}.template{flex:0 0 82vw;max-width:380px;scroll-snap-align:center}.template:nth-child(3n+2){margin-top:0}.template-picture{aspect-ratio:4/5}.template-title{font-size:55px}.abstract-card .abstract-text{font-size:58px}.abstract-card .symbol{font-size:115px}.template-footer{font-size:23px}.gallery-controls{display:flex;gap:15px;justify-content:center;padding:15px 24px}.gallery-controls button{border:1px solid var(--line);background:var(--paper);border-radius:50px;min-height:56px;padding:10px 24px;font-size:20px}.how-section{padding:45px 24px}.how-section h2{font-size:52px}.how-section ol{grid-template-columns:1fr;text-align:left;gap:34px;margin-top:35px}.how-section li{position:relative;padding-left:68px}.how-section li>span{position:absolute;left:0;top:0;width:46px;height:46px}.how-section h3{font-size:30px}.how-section p{font-size:21px}.view{padding:25px 24px 50px}.view .section-heading{padding:0}.view .section-heading h1{font-size:56px;line-height:1.05}.stepper{font-size:16px;gap:18px;justify-content:space-between;padding:12px 0 25px}.back{font-size:20px;margin-bottom:10px}.editor-grid{display:flex;flex-direction:column;gap:25px}.preview-column{order:-1;max-width:320px;margin:auto;width:100%}.preview-sticky{position:static}.preview-sticky>.eyebrow,.preview-sticky>.preview-label,.preview-sticky>#look-caption{display:none}.live-preview{max-height:360px;border-width:8px}.editor-grid legend,.form-field>label{font-size:27px}.upload-box{min-height:175px;padding:10px}.upload-box strong{font-size:21px}.field-hint{font-size:19px}.option{font-size:21px;min-height:78px;padding:14px}.style-options{gap:10px}.background-options{grid-template-columns:1fr 1fr}.background-options .option{font-size:18px;padding:10px;gap:7px}.background-options input{width:18px;height:18px}.swatch{width:20px;height:20px}textarea{font-size:25px}.message-meta{font-size:16px}.privacy-note{font-size:19px}.waiting-view{padding-top:40px}.waiting-view h1{font-size:62px}.game-panel{padding:20px 15px;margin-top:30px}.game-heading{display:block}.game-heading h2{font-size:33px}.game-heading>span{display:block;margin-top:12px;font-weight:800}.flower-game{gap:10px}.flower-tile{font-size:30px}.flower{width:52px;height:52px}.flower-tile small{font-size:15px}.result-grid{display:flex;flex-direction:column;gap:40px;padding-top:25px}.result-grid h1{font-size:68px}.result-actions{align-items:stretch}.result-actions button{width:100%}.result-image{max-width:400px}.result-grid .intro{font-size:24px}.result-grid .preview-label{font-size:18px}footer{padding:30px 24px;gap:20px}footer p{font-size:18px}footer .text-button{margin:0}dialog{padding:40px 24px 28px}dialog p{font-size:21px}dialog h2{font-size:44px}dialog .primary{width:100%}body.extra-large .background-options{grid-template-columns:1fr}body.extra-large .style-options{grid-template-columns:1fr}}
.hero h1 em{margin-left:.045em}.result-grid>*{min-width:0}.result-image{max-width:100%}.preview-message{white-space:normal}.category{scroll-snap-align:start}.categories{scroll-snap-type:x proximity}
@media(max-width:360px){.site-header{padding:18px}.wordmark{font-size:32px}.wordmark span{font-size:36px}.header-actions{gap:2px}.quiet{font-size:18px}.result-image{transform:none}.primary,.secondary{gap:15px;padding-left:22px;padding-right:22px}.option{font-size:19px}.upload-box strong{font-size:18px}.background-options{grid-template-columns:1fr}.view .section-heading h1{font-size:50px}.hero h1{font-size:56px}.hero .eyebrow{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

.preview-symbol{position:absolute;bottom:15%;width:100%;text-align:center;color:var(--wine);font:150px Georgia}.live-preview:has(.preview-art[hidden]):after{content:"";position:absolute;inset:14px;border:1px solid #a68b65;pointer-events:none;z-index:-1}

@media(max-width:700px){.style-options .option{flex-direction:column;align-items:flex-start;gap:9px}.abstract-card .abstract-text{width:100%}.message-meta{flex-wrap:wrap}}
@media(max-width:360px){.style-options{grid-template-columns:1fr}.style-options .option{flex-direction:row;align-items:center}}

/* Picture shapes: a steady stage lets the frame change without moving the controls. */
.preview-column{min-width:0}
.preview-sticky{top:18px}
.editor-grid .shape-picker{margin:0}
.shape-picker legend{font-family:var(--display);font-size:36px;line-height:1.1;letter-spacing:-1px;text-align:center;width:100%;margin-bottom:10px}
.shape-help{font-size:20px;line-height:1.35;margin:0 auto 12px}
.shape-stage{height:360px;display:grid;place-items:center;background:#efe5d3;border:1px solid #d3c5b1;border-radius:18px;overflow:hidden;width:100%}
.picture-frame{position:relative;width:180px;height:320px;transition:width .55s cubic-bezier(.22,.8,.25,1),height .55s cubic-bezier(.22,.8,.25,1);flex-shrink:0}
.picture-frame .live-preview{width:100%;height:100%;max-height:none;aspect-ratio:auto;border-width:4px;border-radius:2px}
.frame-corner{position:absolute;width:18px;height:18px;border-color:var(--teal);border-style:solid;pointer-events:none}
.top-left{top:-6px;left:-6px;border-width:3px 0 0 3px}.top-right{top:-6px;right:-6px;border-width:3px 3px 0 0}.bottom-left{bottom:-6px;left:-6px;border-width:0 0 3px 3px}.bottom-right{bottom:-6px;right:-6px;border-width:0 3px 3px 0}
.picture-frame .preview-message{right:auto;letter-spacing:0;line-height:1.03}
.preview-message>span{display:block;white-space:pre;line-height:1.03}
.picture-frame .portrait-inset{right:auto;bottom:auto;box-shadow:none}
.picture-frame .card-signature{bottom:auto;letter-spacing:0;line-height:1}
.picture-frame .preview-symbol{bottom:auto;display:grid;place-items:center;line-height:1}
.shape-caption{font-size:20px;font-weight:800;margin:10px auto 14px;color:var(--teal)}
.shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shape-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--paper);border:2px solid #b7a58d;border-radius:12px;padding:13px 5px;cursor:pointer;min-height:125px;font-size:22px;line-height:1.2}
.shape-option:has(:checked){background:#e2ebe0;border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.shape-option input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.shape-option:has(:focus-visible){outline:4px solid var(--teal);outline-offset:4px}
.shape-option input:focus-visible{outline:none}
.shape-icon{display:block;height:32px;width:18px;border:2px solid currentColor;border-radius:3px;color:var(--teal);margin-bottom:3px}
.shape-icon.square{width:32px}.shape-icon.landscape{width:44px;height:25px;margin-top:7px}
.shape-ratio{font-size:18px;color:#6a554b}
.shape-option strong{letter-spacing:-.6px}
.shape-description{font-size:22px;line-height:1.4;min-height:3em;margin:16px auto 0;max-width:34ch}
.preview-sticky>#look-caption{font-size:17px;margin:12px 0 0}
.preview-sticky>.preview-label{margin-top:8px}
.result-image{width:auto;max-width:100%;max-height:75vh;justify-self:center;object-fit:contain}
body.extra-large .shape-option{font-size:25px}body.extra-large .shape-help,body.extra-large .shape-description{font-size:25px}
@media(min-width:701px) and (max-width:1100px){.shape-options{gap:7px}.shape-option{font-size:20px}.shape-picker legend{font-size:32px}.shape-stage{height:320px}}
@media(max-width:700px){.preview-column{max-width:460px}.shape-stage{height:280px}.shape-picker legend{font-size:34px}.shape-option{font-size:22px;min-height:116px}.shape-options{gap:7px}.shape-description{font-size:22px}.editor-grid{gap:38px}.result-image{max-height:65vh}}
@media(max-width:360px){.shape-options{gap:5px}.shape-option{font-size:18px;padding-left:2px;padding-right:2px}.shape-picker legend{font-size:30px}.shape-stage{height:250px}.shape-help{font-size:20px}}
body.extra-large .shape-options{grid-template-columns:minmax(0,1fr)}
body.extra-large .shape-option{display:grid;grid-template-columns:44px minmax(0,1fr) auto;min-height:76px;min-width:0;gap:10px;padding:12px;text-align:left}
body.extra-large .shape-icon{margin:0 auto}
.text-scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(255,250,241,.94) 0%,rgba(255,250,241,.85) 23.65%,rgba(255,250,241,0) 43%)}
.live-preview[data-shape=landscape] .text-scrim{background:linear-gradient(to right,rgba(255,250,241,.94) 0%,rgba(255,250,241,.85) 34.1%,rgba(255,250,241,0) 62%)}
.live-preview:has(.preview-art[hidden]) .text-scrim{display:none}
.live-preview:not(.cream) .preview-art{opacity:.24;mix-blend-mode:normal}
@media(max-width:360px){.shape-options{grid-template-columns:1fr;gap:8px}.shape-option{display:grid;grid-template-columns:46px 1fr auto;min-height:72px;gap:12px;padding:12px 15px;text-align:left;font-size:22px}.shape-icon{margin:0 auto!important}}

/* A relaxed matching game, with readable cards and no clock to race. */
.waiting-view .ready-banner{position:sticky;top:10px;z-index:5;box-shadow:0 5px 22px #402c2920;display:flex;align-items:center;justify-content:center;gap:24px}
.ready-banner p{margin:0;font-size:23px}
#memory-game{max-width:780px;padding:32px;text-align:left}
#memory-game .game-heading{display:block}
#memory-game .game-heading h2{font-size:48px}
#memory-game .game-heading p{font-size:22px}
#memory-game .game-heading .eyebrow{font-size:14px;margin-bottom:15px}
.game-themes{border:0;padding:0;margin:28px 0 20px}
.game-themes legend{font-size:24px;margin-bottom:12px}
.game-themes>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.game-themes label{display:flex;align-items:center;gap:10px;border:2px solid #b7a58d;background:var(--cream);border-radius:12px;padding:12px 16px;font-weight:800;min-height:68px;cursor:pointer;font-size:24px}
.game-themes label:has(:checked){border-color:var(--teal);background:#e2ebe0}
.game-themes input{accent-color:var(--teal);width:23px;height:23px;flex-shrink:0}
.game-themes label>span{color:var(--teal);font-size:30px}
.game-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px;text-align:center}
.game-stats span{display:block;font-size:18px;line-height:1.3;margin-bottom:8px}
.game-stats strong{font:700 35px/1.1 var(--display);color:var(--teal)}
.game-invitation{text-align:center;padding:28px 0 20px}
.invitation-flowers{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:12px;font:72px/1 Georgia;color:#a94f58}
.invitation-flowers span:nth-child(2){color:#ca9c3f;font-size:88px;transform:rotate(12deg)}
.invitation-flowers span:nth-child(3){color:#547594}
.game-invitation p{margin:0 auto 25px;font-size:24px}
#memory-game .flower-game{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:25px 0 16px}
#memory-game .flower-tile{aspect-ratio:1/1.1;border-radius:14px;min-width:0;padding:7px;border:2px solid var(--teal);box-shadow:0 3px 0 #173e38;overflow:hidden;position:relative}
.card-back-flower{font:64px/1 Georgia;color:#f4dfb4;display:grid;place-items:center;border:1px solid #e8d6ad70;border-radius:50%;width:70px;height:70px}
.memory-art{display:block;width:82px;height:82px;max-width:100%;flex-shrink:1}
#memory-game .flower-tile small{font-size:19px;line-height:1.25;flex-shrink:0}
#memory-game .flower-tile.revealed{animation:card-hello .2s ease-out}
#memory-game .flower-tile.matched{box-shadow:0 3px 0 #719266;background:#e0ead9;color:#29432b}
#memory-game .flower-tile.matched:after{content:'✓';position:absolute;top:3px;right:7px;font:800 18px var(--body);color:#2a5638}
#memory-game #game-message{font-size:22px;min-height:2.7em;color:var(--ink)}
.game-win{border:1px solid #9caf8d;border-radius:18px;background:#eaf0de;padding:25px;margin:20px 0}
.game-win h3{font-size:40px;margin-bottom:12px}
.game-win>p{font-size:22px}
.game-win .eyebrow{font-size:13px}
#score-entry{margin-top:25px}
#score-entry>label{font-size:26px;font-weight:800;line-height:1.3;display:block}
.score-entry-row{display:flex;gap:12px;align-items:stretch}
#player-name{min-width:0;width:100%;font-size:24px;padding:15px;border:2px solid #9f8b74;border-radius:12px;background:var(--paper);color:var(--ink)}
.score-entry-row .primary{font-size:22px;padding:15px 24px;flex-shrink:0;min-height:68px}
#score-save-status{font-size:24px;font-weight:800;margin-top:20px}
.score-explanation,.leaderboard{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}
.score-explanation summary,.leaderboard summary{font-size:23px;font-weight:800;cursor:pointer;min-height:56px;padding:10px 0;line-height:1.3}
.score-explanation p{font-size:21px;margin:10px 0}
.leaderboard summary>span{display:block;font-size:18px;font-weight:400;margin:8px 0 0 24px;color:#6a554b}
#leaderboard-list{list-style:none;padding:0;margin:20px 0 0}
#leaderboard-list li{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.leader-rank{width:34px;height:34px;display:grid;place-items:center;border:1px solid #c6b28f;border-radius:50%;font-size:19px}
.leader-person{min-width:0;overflow-wrap:anywhere;font-size:24px}
.leader-person small{display:block;font-size:18px}
.leader-points{font-size:23px;color:var(--teal);white-space:nowrap}
.score-explanation summary:focus-visible,.leaderboard summary:focus-visible{outline:4px solid var(--teal);outline-offset:3px}
@keyframes card-hello{from{opacity:.5;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
body.extra-large .game-themes label,body.extra-large #game-message,body.extra-large .score-explanation p{font-size:26px}
@media(max-width:700px){
  .waiting-view .ready-banner{top:6px;display:block;padding:15px;margin-top:24px}
  .ready-banner p{font-size:21px;margin:0 auto 12px}.ready-banner .primary{min-height:60px;font-size:23px;padding:13px 23px}
  #memory-game{margin-left:-8px;margin-right:-8px;padding:22px 14px}
  #memory-game .game-heading h2{font-size:40px}
  #memory-game .game-heading .eyebrow{font-size:12px}
  .game-themes>div{grid-template-columns:1fr}
  .game-themes label{font-size:24px}
  .game-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
  .game-stats span{font-size:20px}.game-stats strong{font-size:34px}
  #memory-game .flower-game{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #memory-game .flower-tile{aspect-ratio:1/1.23;padding:4px}
  #memory-game .flower-tile small{font-size:18px;letter-spacing:-.4px}
  .memory-art{width:74px;height:74px}.card-back-flower{font-size:46px;width:54px;height:54px}
  .game-win{padding:19px 14px}.game-win h3{font-size:36px}
  .score-entry-row{flex-direction:column}.score-entry-row .primary{font-size:24px}
  #leaderboard-list li{grid-template-columns:28px minmax(0,1fr);gap:8px}.leader-rank{width:26px;height:26px;font-size:18px}.leader-points{grid-column:2;font-size:23px}.leader-person{font-size:24px}
  body.extra-large #memory-game .flower-game{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.extra-large #memory-game .flower-tile small{font-size:21px}
}
@media(max-width:360px){#memory-game .flower-game{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#memory-game .flower-tile small{font-size:20px}.memory-art{width:74px;height:74px}.card-back-flower{width:54px;height:54px}.game-invitation .secondary{width:100%;font-size:23px}}
@media(max-width:360px){.waiting-view h1{font-size:52px}.ready-banner .primary{gap:12px;padding:12px 18px}.ready-banner .primary span{font-size:23px}body.extra-large .ready-banner .primary{font-size:25px}}

#bot-check{max-width:100%;margin-bottom:1rem}#bot-check-widget{min-width:0}#bot-check .credit-note{margin-top:0}

/* Loading marks share one viewport-centred position and phone-friendly size. */
.loading-indicator{position:fixed;inset:0;z-index:20;display:grid;place-items:center;pointer-events:none;text-align:center}.loading-indicator>img{display:block;width:96px;height:96px;max-width:24vw;max-height:24vw;padding:12px;border-radius:50%;background:#fff9eef2}.loading-indicator>p{position:absolute;top:calc(50% + 60px);left:16px;right:16px;max-width:none;margin:0;font-size:21px;text-align:center}.loading-indicator[hidden]{display:none!important}

/* Optional details stay inside the relevant dialog rather than the main page. */
.credit-details{margin-block:1rem;border-top:1px solid #b8b19e;padding-top:.75rem;font-size:1rem}.credit-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.credit-details li{margin-block:.5rem;overflow-wrap:anywhere}#profile-date,#signup-date{box-sizing:border-box;width:100%;min-width:0;min-height:48px}#signup-birthday .field-hint{display:block;margin-block:.5rem 1rem}#profile-date[readonly]{background:#eee9df}
.credit-gift-notice{width:min(28rem,calc(100vw - 2rem));box-sizing:border-box;padding:clamp(1.25rem,5vw,2.5rem);text-align:center}.credit-gift-notice h2{font-size:clamp(1.65rem,6vw,2.5rem);line-height:1.12;overflow-wrap:anywhere}.credit-gift-notice p{margin-block:1rem 1.5rem}.credit-gift-notice button{max-width:100%;white-space:normal}
