/* Occasion gallery and a phone-first playing surface. */
[hidden]{display:none!important}.dialog-open{overflow:hidden}.hero-art-inner{display:contents}
.template-section{border-bottom:1px solid var(--line);padding-top:65px;padding-bottom:50px}.template-heading{max-width:560px}.template-heading h2{margin:18px 0}.template-heading h2 em{color:var(--coral);font-weight:400}.template-heading p,.more-occasions{font-size:13px;color:#718064;line-height:1.8}.template-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:30px}.template-card{min-width:0;text-align:left;padding:10px 10px 18px;border:1px solid #dddcca;border-radius:10px;background:#fcfaf2;color:var(--ink);transition:transform .2s,box-shadow .2s}.template-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #253e3410}.template-card img{width:100%;aspect-ratio:1.2;object-fit:cover;display:block;border-radius:5px;margin-bottom:15px}.template-card>span{display:block;font-size:9px;letter-spacing:1px;color:#768367;margin:0 6px 6px}.template-card strong{display:block;font:normal 24px/1.15 var(--serif);margin:0 6px 9px}.template-card small{display:block;font-size:11px;color:#7b806b;margin:0 6px}.more-occasions{margin:25px 0 0}.more-occasions .text-button{font-size:13px;min-height:44px}.occasion-tags{display:none}
#photo-status{font-size:12px;line-height:1.6;color:#596f48;margin:12px 0;overflow-wrap:anywhere}.photo-preview img{height:86px;width:100px}.photo-preview .text-button{min-height:44px;font-size:12px}.editor-notice{font-size:11px;color:#68775e}.editor-body label small{font-size:11px;color:#718064}.game-screen h2,.reveal-letter h3,.paper-note h2{overflow-wrap:anywhere}
#save-dialog{width:600px}.save-body{padding:18px 28px}.save-body p{font-size:13px;color:#65755a;line-height:1.7}.save-body img{display:block;width:100%;height:auto;border:1px solid #e1dfd0;border-radius:6px}.save-actions{position:sticky;bottom:0;background:var(--paper);padding:18px 28px;display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line)}.save-actions .button{min-height:48px;font-size:13px}.save-body #save-status{font-weight:600}
@media(max-width:800px){
 .hero-art{width:100%;max-width:100%;height:430px;margin:24px 0 0;transform:none}.hero-art-inner{display:block;position:absolute;width:500px;height:500px;left:50%;top:0;transform:translateX(-50%) scale(.83);transform-origin:top center}.hero-art .envelope{left:17px;width:430px;height:270px}.hero-art .paper-note{left:85px;width:340px}.hero-art .sticker-pink{right:12px}.hero-art .scribble-top{right:42px}.hero-art .drawn-arrow{right:39px}.hero-art .star-one{left:3px}.hero-art .star-two{right:14px}.hero-art .star-three{right:49px;bottom:0}.hero-art .envelope-seal{left:182px}.hero-art .envelope-caption{left:125px}
 .template-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.template-card strong{font-size:26px}.template-card img{aspect-ratio:1.4}.template-heading p{max-width:450px}
}
@media(max-width:600px){
 html{scroll-padding-top:16px}body{font-size:16px;line-height:1.6}.review-bar{height:32px}.review-bar>span:first-child{font-size:9px}.header{height:80px;padding:0 20px}.brand{font-size:22px}.nav-edit{min-height:44px;font-size:11px;padding:8px 12px}.nav-edit span{margin-left:4px}.hero{padding:18px 20px 28px;gap:0;align-items:stretch}.hero-copy{min-width:0}.hero .eyebrow{font-size:9px;letter-spacing:1px}.hero h1{font-size:clamp(49px,13vw,70px);letter-spacing:-2.5px;margin:22px 0}.hero-lead{font-size:17px;line-height:1.65}.hero-body{font-size:14px;line-height:1.75;color:#6e7963}.hero-actions{flex-direction:column;gap:5px}.hero-actions .button{width:100%;max-width:360px;min-height:52px;font-size:15px;padding:13px 18px}.hero-actions .text-button{font-size:14px;min-height:44px}.hero-foot{font-size:10px;gap:6px;white-space:normal;flex-wrap:wrap;line-height:1.5;margin-top:12px;color:#6d7960}.hero-foot .dot-sep{display:none}.hero-foot>span:not(.small-star):not(.dot-sep){margin-left:4px}.hero-art{height:345px;margin:22px 0 0}.hero-art-inner{transform:translateX(-50%) scale(.68)}
 .promise-strip{padding:18px 20px}.promise-strip>span{font-size:9px}.promise-strip>div{font-size:15px;line-height:2}.promise-strip i{font-size:10px}.section{padding:42px 20px}.section h2{font-size:35px}.eyebrow{font-size:10px;letter-spacing:1px}.template-heading p,.more-occasions{font-size:14px}.template-cards{gap:12px;margin-top:25px}.template-card{padding:7px 7px 15px}.template-card img{aspect-ratio:1.05;margin-bottom:13px}.template-card>span{font-size:8px;letter-spacing:.5px;margin-left:4px}.template-card strong{font-size:23px;margin-left:4px;min-height:53px}.template-card small{font-size:12px;line-height:1.5;margin-left:4px}.more-occasions .text-button{font-size:14px}.section-heading p{font-size:15px;color:#69765e}.steps{gap:28px}.steps article{grid-template-columns:100px minmax(0,1fr);gap:0 16px}.step-art{height:125px}.steps h3{font-size:15px;line-height:1.4;margin:0 0 8px}.steps p{font-size:14px;line-height:1.6;color:#6d795f}.step-no{font-size:9px}.occasion-copy>p{font-size:15px;max-width:100%;color:#68755f}.occasion-copy .eyebrow{font-size:10px}.occasion-copy .button{font-size:14px;min-height:48px;margin-top:15px}.little-label{right:0;font-size:14px}.concept-section>div>p,.concept-card>p{font-size:14px!important;color:#66735a}.concept-label{font-size:10px}.concept-status{font-size:12px}.concept-card .text-button{font-size:14px;min-height:44px}.price span{font-size:14px}.notes{padding-top:0}summary{font-size:14px;min-height:56px}.notes-grid h3{font-size:15px}.notes-grid p{font-size:14px;color:#66735a}.notes-grid a{font-size:13px;min-height:44px;display:flex;align-items:center}.scope-note{font-size:12px;color:#6d795f}footer{padding:22px 20px}footer>span{font-size:11px}.button,.text-button,.hint-button{min-height:44px}
 dialog{width:100%!important;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;overflow:hidden;overscroll-behavior:contain}dialog[open]{display:flex;flex-direction:column}.player-top,.editor-head{flex-shrink:0;padding:calc(12px + env(safe-area-inset-top,0px)) 18px 12px;position:relative}.player-top>span{font-size:8px}.small-brand{font-size:17px}.icon-button{width:44px;height:44px;font-size:18px;flex-shrink:0}.player-bottom{flex-shrink:0;padding:6px 16px calc(6px + env(safe-area-inset-bottom,0px));gap:10px;font-size:11px}.player-bottom .text-button{font-size:11px;min-height:44px;text-align:right}#game-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.game-screen{padding:24px 20px 30px;min-height:0;overflow:clip}.game-screen h2{font-size:33px;line-height:1.2}.game-screen .game-copy{font-size:15px;line-height:1.7;max-width:100%;color:#647458}.step-kicker{font-size:10px;letter-spacing:1px}.intro-screen{display:flex;flex-direction:column-reverse;gap:22px;text-align:center;padding:24px 22px}.intro-art{height:180px;width:205px;flex-shrink:0}.intro-art:after{font-size:12px;white-space:nowrap}.intro-screen .eyebrow{font-size:10px;line-height:1.7}.intro-screen .button{min-height:50px;font-size:15px;width:100%;margin-top:4px}.from-line{font-size:17px;margin-top:14px;overflow-wrap:anywhere}.memory-board{max-width:350px;gap:12px}.memory-card{height:91px;font-size:36px}.memory-card svg{width:36px;height:36px}.game-feedback{font-size:14px;line-height:1.6;max-width:100%;min-height:24px;margin:18px 0 8px}.next-row{height:auto;min-height:48px;flex-wrap:wrap;gap:5px 18px}.next-row .button{min-height:48px;font-size:14px;padding:12px 20px}.hint-button{font-size:14px;padding:8px 3px}.hint{font-size:14px;line-height:1.7;padding:13px 15px}.code-label{font-size:11px;gap:10px}.code-box{width:29px;height:35px;font-size:20px}.acrostic{padding:15px;max-width:100%;transform:none}.acrostic p{font-size:14px;line-height:1.8;margin:8px 0;color:#637155}.acrostic p strong{font-size:27px;width:24px}.answer-form{max-width:100%;gap:8px}.answer-form input{height:49px;font-size:16px;padding:11px;min-width:0}.answer-form .button{min-height:49px;font-size:14px;padding:10px 14px}.word-answer{min-height:82px;height:auto;padding:12px 8px;gap:6px;flex-wrap:wrap}.word-answer .placeholder{font-size:13px}.word-options{gap:8px;flex-wrap:wrap}.word-button,.chosen-word{font-size:13px;letter-spacing:.2px;padding:12px 11px;min-height:48px}.unlock-screen{min-height:calc(100dvh - 145px)}.unlock-screen .button{font-size:15px;min-height:52px}.reveal-screen{padding:24px 22px}.reveal-header h2{font-size:31px}.reveal-grid{display:flex;flex-direction:column;gap:30px}.reveal-image{width:min(260px,90%)}.reveal-image img{height:215px}.reveal-image>span{font-size:15px}.reveal-letter h3{font-size:30px}.reveal-message{font-size:16px;line-height:1.8;color:#5f7153}.reveal-sender{font-size:21px}.reveal-footer .button{font-size:14px;min-height:50px;width:100%}.reveal-footer small{font-size:12px;color:#6d795f;line-height:1.7}.reveal-footer{gap:20px}
 #editor-form{display:flex;flex-direction:column;min-height:0;height:100%}.editor-head h2{font-size:32px}.editor-head .eyebrow{font-size:10px}.editor-body{flex:1;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.editor-form-grid{grid-template-columns:1fr;gap:0}label{font-size:14px;margin-bottom:20px}input,select,textarea,input[type=file]{font-size:16px;padding:12px;min-height:49px}input[type=file]{padding:10px;overflow:hidden}input[type=file]::file-selector-button{font:inherit;border:0;border-radius:4px;background:#e7e9db;color:var(--ink);padding:8px;margin-right:8px}.editor-body label small{font-size:12px;line-height:1.7}.editor-actions{flex-shrink:0;position:relative;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));gap:12px}.editor-actions .text-button{font-size:11px;line-height:1.4;max-width:100px;text-align:left}.editor-actions .button{flex:1;font-size:14px;min-height:50px;padding:11px 13px;gap:10px}.photo-preview{align-items:center;gap:14px}.photo-preview .text-button{font-size:13px;line-height:1.6;text-align:left}.editor-notice,#photo-status{font-size:13px}.save-body{flex:1;min-height:0;overflow-y:auto;padding:16px 20px}.save-body p{font-size:14px}.save-actions{flex-shrink:0;position:relative;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));gap:10px}.save-actions .button{width:100%;font-size:15px;min-height:50px}#toast{font-size:14px;bottom:calc(86px + env(safe-area-inset-bottom,0px));width:max-content;line-height:1.5;padding:13px 18px;max-width:calc(100vw - 30px)}
}
@media(max-width:390px){.hero-art{height:325px}.hero-art-inner{transform:translateX(-50%) scale(.63)}.hero-lead{font-size:16px}.header{padding:0 16px}.brand{font-size:20px}.nav-edit{font-size:10px}.template-card strong{font-size:22px}.word-button,.chosen-word{font-size:12px;padding:12px 9px}}
@media(max-width:350px){.hero-art{height:290px}.hero-art-inner{transform:translateX(-50%) scale(.55)}.brand{font-size:18px}.brand-icon{font-size:25px}.nav-edit{font-size:9px;padding:8px}.hero .eyebrow{font-size:8px}.hero h1{font-size:46px}.steps article{grid-template-columns:1fr}.step-art{display:none}.step-no{display:none}.template-card strong{font-size:19px}.template-card small{font-size:11px}.player-top>span{display:none}.word-button,.chosen-word{font-size:11px;padding:12px 8px}}
