@font-face {
  font-family: Fernando;
  src: url('assets/fonts/fernando.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 50%;
  ascent-override: 125%;
  descent-override: 25%;
  line-gap-override: 0%;
}
body, button, input, textarea, select { font-family: Fernando, monospace; font-synthesis: none; }
html, body { height: 100%; overflow: hidden; }
.home-credit { left: 0; width: 520px; text-align: center; font-size: 22px; }
.home-achievement { font-size: 21px; letter-spacing: 0; }
.home-option, .home-option.short { line-height: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.home-option { font-size: 25px; }
.home-option.short { font-size: 21px; }
.home-option span:not(.button-texture):not(.button-sweep) { top: 0; }
.action-button, .pixel-action, .game-dialog .action-button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; padding: 12px 20px; gap: 10px;
  text-align: center; line-height: 1.2; white-space: normal;
}
.action-button > span[aria-hidden] { flex: none; }
.game-dialog {
  --frame-fill: #EAF7FF;
  border: 0; padding: 6px; background: var(--deep); border-radius: 0;
  clip-path: var(--pixel-cut); box-shadow: none;
  width: min(740px, calc(100vw - 40px)); max-width: none; max-height: 90svh;
  overflow: hidden; isolation: isolate;
}
.game-dialog::before {
  content: ''; position: absolute; inset: 4px; z-index: -1;
  background: var(--frame-fill); clip-path: var(--pixel-cut); pointer-events: none;
}
.game-dialog.milestone-dialog { width: min(900px, calc(100vw - 40px)); }
.game-dialog.small-dialog { width: min(500px, calc(100vw - 40px)); }
.game-dialog.hint-dialog { width: min(440px, calc(100vw - 40px)); }
.game-dialog.invitation-dialog { --frame-fill: #D9F0FF; height: 90svh; }
.game-dialog .dialog-bar {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 70px; padding: 14px 20px 8px; gap: 0;
  background: transparent; color: var(--deep); letter-spacing: 0;
}
.game-dialog .dialog-back {
  width: auto; height: 44px; min-width: 122px; padding: 8px 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; color: var(--deep); background: var(--paper);
  clip-path: var(--pixel-cut); font-size: 23px; line-height: 1.2;
}
.game-dialog .dialog-back:hover { background: var(--gold); }
.dialog-back svg { width: 16px; height: 16px; flex: none; fill: currentColor; shape-rendering: crispEdges; }
.game-dialog .dialog-body {
  padding: 20px 28px 32px; max-height: calc(90svh - 82px);
  overflow-x: hidden; overflow-y: auto; background: transparent;
}
.game-dialog.hint-dialog .dialog-body { padding: 20px 28px 28px; }
.game-dialog .dialog-body p { line-height: 1.45; }
.game-dialog .dialog-body h1 { line-height: 1.3; }
.game-dialog .invitation-body { min-height: 0; }
.envelope.is-revealed { padding: 8px 8px 32%; margin-bottom: 32px; }
.letter { clip-path: var(--pixel-cut); padding: 28px 28px 36px; }
.letter h1 { font-size: 32px; }
.letter p { font-size: 25px; }
.letter-kicker { line-height: 1.4; letter-spacing: .5px; }
.invitation-form { padding: 0 8px 12px; }
.form-heading { align-items: center; gap: 12px; margin-bottom: 16px; }
.form-heading h2, .form-heading label { font-size: 29px; line-height: 1.35; min-width: 0; }
.form-heading > span { width: 38px; height: 38px; line-height: 1; }
.invitation-form .pixel-field input, .invitation-form .pixel-field textarea { padding: 14px 16px; line-height: 1.4; font-size: 26px; }
.dialog-actions.form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dialog-actions > .action-button { min-width: 0; }
.game-dialog .video-result {
  position: relative; isolation: isolate; margin-top: 28px; padding: 24px;
  background: var(--shade); border: 0; outline: 0; box-shadow: none;
  clip-path: var(--pixel-cut); scroll-margin-top: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: center;
}
.video-result::before { content: ''; position: absolute; inset: 3px; z-index: -1; background: #FFFDF3; clip-path: var(--pixel-cut); }
.video-result .form-heading { margin: 0 0 20px; }
.video-result .form-heading h2 { font-size: 29px; line-height: 1.35; }
.video-result video {
  grid-column: 2; width: 100%; height: auto; max-height: none;
  aspect-ratio: 9 / 16; object-fit: contain; margin: 0;
  background: var(--sky); border: 0; clip-path: var(--pixel-cut);
}
.video-copy { grid-column: 1; min-width: 0; text-align: left; }
.video-copy h2 { font-size: 31px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.game-dialog .video-copy .video-copy-note { font-size: 25px; line-height: 1.4; margin: 16px 0 0; }
.video-copy .dialog-actions { display: flex; flex-direction: column; gap: 12px; }
.video-copy #save-status { margin: 14px 0 0; }
.video-copy #save-status:empty { display: none; }
.video-result .dialog-actions { margin-top: 18px; }
.video-result .action-button { width: 100%; }
.dialog-body .video-filename { font-size: 22px; line-height: 1.4; text-align: center; }
.dialog-body .form-note { line-height: 1.45; }
.milestone-dialog.is-major { box-shadow: none; }
.milestone-choices .action-button, .ms-choice span { justify-content: center; text-align: center; }
.ms-nav { flex-wrap: wrap; }
.render-body { text-align: center; }
.game-dialog .render-body h1 { margin: 0; font-size: 34px; }
.writing-animation { display: block; width: min(100%, 220px); height: 200px; object-fit: contain; margin: 16px auto 20px; image-rendering: pixelated; }
.render-progress { position: relative; height: 28px; padding: 0; background: var(--deep); clip-path: var(--pixel-cut); overflow: hidden; }
.render-progress-track { position: absolute; inset: 4px; background: var(--ice); overflow: hidden; clip-path: polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),0 calc(100% - 2px),0 2px,4px 2px); }
#render-progress-fill { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(var(--progress,0)); transform-origin: left; transition: transform .15s linear; }
.game-dialog .render-body .render-percent { margin: 12px 0 16px; font-size: 25px; line-height: 1; }
.game-dialog .render-body #render-copy { margin: 0; font-size: 25px; line-height: 1.45; }
.dialog-back:disabled { opacity: .45; cursor: wait; }
@media (max-width: 600px) {
  .game-dialog, .game-dialog.milestone-dialog, .game-dialog.small-dialog, .game-dialog.hint-dialog { width: calc(100vw - 24px); max-height: 94svh; }
  .game-dialog.invitation-dialog { height: 94svh; }
  .game-dialog .dialog-bar { padding: 12px 12px 6px; min-height: 66px; }
  .game-dialog .dialog-body { padding: 16px 16px 26px; max-height: calc(94svh - 78px); }
  .game-dialog .action-button { font-size: 25px; padding: 12px 14px; white-space: normal; }
  .game-dialog .dialog-body h1 { font-size: 32px; }
  .game-dialog .dialog-body p { font-size: 24px; }
  .letter { padding: 24px 18px 30px; }
  .letter-kicker { font-size: 17px; }
  .invitation-form { padding: 0 0 8px; }
  .form-heading h2, .form-heading label, .video-result .form-heading h2 { font-size: 26px; }
  .form-heading { gap: 10px; }
  .invitation-form .pixel-field input, .invitation-form .pixel-field textarea { padding: 14px 12px; font-size: 24px; }
  .dialog-actions.form-actions { grid-template-columns: 1fr; }
  .game-dialog .video-result { padding: 20px 16px; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .video-result video { width: 100%; }
  .video-copy h2 { font-size: 26px; }
  .game-dialog .video-copy .video-copy-note { font-size: 23px; }
  .video-copy .dialog-actions .action-button { padding: 10px 8px; font-size: 23px; gap: 6px; }
  .game-dialog .dialog-body .form-note { font-size: 21px; }
  .game-dialog .dialog-body .video-filename { font-size: 20px; }
}

/* Keep the playable screen and unlocked collection in one scrollable page. */
#game-screen { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; overflow-anchor: none; }
.game-play-area { display: contents; }
#grad-game, .game-touch { flex: none; }
#grad-game { display: block; min-width: 0; aspect-ratio: 800/320; }
#grad-game canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#game-back { position: fixed; z-index: 6; }
.milestone-gallery { width: min(100%,1280px); margin: 36px auto 20px; padding: 28px; background: #EAF7FF; clip-path: var(--pixel-cut); }
.milestone-gallery { flex: none; }
.milestone-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.milestone-gallery h2 { margin: 0; font-size: 36px; line-height: 1.3; }
#milestone-gallery-count { flex: none; font-size: 27px; }
#milestone-gallery-empty { margin: 0; font-size: 26px; line-height: 1.4; }
.milestone-gallery-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 22px; }
.unlocked-milestone { min-width: 0; background: #FFFDF3; clip-path: var(--pixel-cut); display: flex; flex-direction: column; }
.unlocked-milestone > img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.unlocked-milestone-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; flex: 1; }
.unlocked-milestone h3 { margin: 0; font-size: 29px; line-height: 1.35; overflow-wrap: anywhere; }
.unlocked-milestone p { margin: 0; font-size: 25px; line-height: 1.4; }
.unlocked-milestone .action-button { margin-top: auto; }

/* Navigation sits below the visual popup frame and never over the copy. */
.game-dialog.milestone-dialog { --milestone-limit: 90svh; padding: 0; max-height: var(--milestone-limit); background: transparent; clip-path: none; overflow: visible; box-shadow: none; }
.game-dialog.milestone-dialog::before { display: none; }
.milestone-panel { position: relative; isolation: isolate; padding: 6px; background: var(--deep); clip-path: var(--pixel-cut); overflow: hidden; }
.milestone-panel::before { content: ''; position: absolute; inset: 4px; z-index: -1; background: #EAF7FF; clip-path: var(--pixel-cut); pointer-events: none; }
.game-dialog.milestone-dialog .milestone-body { min-height: 0; max-height: calc(var(--milestone-limit) - 166px); }
.milestone-dialog .ms-layout { min-width: 0; min-height: 0; flex: none; }
.milestone-dialog .ms-text, .milestone-dialog .ms-media { min-width: 0; }
.milestone-dialog .ms-nav { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 14px; margin: 16px 0 0; padding: 0 6px 6px; min-height: 58px; }
.milestone-dialog .ms-nav [data-ms-prev] { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
.milestone-dialog .ms-nav [data-ms-next] { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.milestone-dialog .ms-pagination { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #EAF7FF; clip-path: var(--pixel-cut); }
.milestone-dialog .ms-nav.is-single .ms-pagination { visibility: hidden; }
.milestone-dialog .ms-page { display: block; }
.milestone-dialog .ms-dots { flex-wrap: wrap; justify-content: center; gap: 8px; }
.milestone-dialog .ms-dots i { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--deep); flex: none; }
.milestone-dialog .ms-nav .action-button { min-width: 0; max-width: 100%; white-space: normal; }
@media (max-width: 600px) {
  .milestone-gallery { padding: 20px 16px; margin-top: 28px; }
  .milestone-gallery h2 { font-size: 28px; }
  #milestone-gallery-count { font-size: 24px; }
  .unlocked-milestone-copy { padding: 18px; }
  .game-dialog.milestone-dialog { --milestone-limit: 94svh; }
  .milestone-dialog .ms-nav { gap: 8px; padding-inline: 0; }
  .milestone-dialog .ms-nav .action-button { padding: 10px; font-size: 22px; gap: 6px; }
  .milestone-dialog .ms-pagination { gap: 8px; padding: 10px; }
  .milestone-dialog .ms-page { font-size: 20px; }
}

/* lưu ý khi đang viết thiệp + popup gửi lời nhắn */
.game-dialog .render-body .render-note{margin:14px 0 0;padding:10px 14px 8px;font-size:21px;line-height:1.3;color:var(--deep);background:#FFFDF3;box-shadow:0 0 0 3px var(--gold)}
.send-dialog .send-check{margin:18px auto 14px;font-size:64px;line-height:1;color:var(--deep)}
.game-dialog .render-body #send-copy{margin:0;font-size:25px;line-height:1.45}
.send-dialog .send-actions{justify-content:center;margin-top:20px}
.game-dialog .render-body .send-note{margin:16px 0 0;font-size:21px;line-height:1.3;color:var(--shade)}

/* tooltip hướng dẫn lưu thiệp: bong bóng pixel, mũi nhọn chỉ lên nút Lưu */
.save-tip{position:relative;margin:18px 0 6px;padding:16px 44px 14px 18px;background:#FFFDF3;color:var(--deep);box-shadow:0 0 0 3px var(--deep),6px 6px 0 3px var(--deep);animation:save-tip-in .3s steps(4,end) both}
.save-tip:before{content:'';position:absolute;left:24px;top:-15px;width:24px;height:12px;background:var(--deep);clip-path:polygon(33% 0,67% 0,67% 50%,100% 50%,100% 100%,0 100%,0 50%,33% 50%)}
.save-tip:after{content:'';position:absolute;left:30px;top:-6px;width:12px;height:6px;background:#FFFDF3}
.save-tip-title{margin:0 0 8px!important;font-size:24px!important;line-height:1.1;text-transform:uppercase;letter-spacing:.04em}
.save-tip-steps{margin:0;padding:0;list-style:none;counter-reset:tip}
.save-tip-steps li{position:relative;padding-left:38px;margin:8px 0 0;font-size:22px;line-height:1.3;counter-increment:tip}
.save-tip-steps li:before{content:counter(tip);position:absolute;left:0;top:1px;width:26px;height:24px;display:grid;place-items:center;background:var(--gold);color:var(--deep);font-size:18px;box-shadow:2px 2px 0 var(--deep)}
.save-tip-close{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;background:none;color:var(--deep);font:inherit;font-size:28px;line-height:1;cursor:pointer}
.save-tip-close:hover,.save-tip-close:focus-visible{background:var(--gold);outline:none}
@keyframes save-tip-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.save-tip{animation:none}}

/* nút ngôi sao góc phải dưới + popup ảnh thiệp mời */
.poster-fab{position:fixed;z-index:30;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:52px;height:52px;padding:0;border:0;background:none;cursor:pointer;color:var(--deep);isolation:isolate;filter:drop-shadow(0 5px 0 var(--shade));transition:transform 80ms steps(2,end)}
.poster-fab:before{content:'';position:absolute;inset:0;clip-path:var(--pixel-cut);background:var(--paper) url('assets/pixel-surface.svg');z-index:-1}
.poster-fab svg{display:block;width:26px;height:26px;margin:auto;fill:currentColor;shape-rendering:crispEdges;animation:poster-star 2.4s steps(1,end) infinite}
.poster-fab:hover,.poster-fab:focus-visible{outline:none;transform:translate(-2px,-3px);filter:drop-shadow(3px 7px 0 var(--deep))}
.poster-fab:hover:before,.poster-fab:focus-visible:before{background-color:var(--gold)}
.poster-fab:active{transform:translate(2px,4px);filter:drop-shadow(0 1px 0 var(--deep))}
@keyframes poster-star{0%,84%{transform:none}85%,92%{transform:scale(1.15)}93%,100%{transform:none}}
#stage.intro ~ .poster-fab,body.in-game .poster-fab{display:none}
.poster-dialog{width:min(1180px,calc(100vw - 32px))}
.poster-body{padding:14px 18px 18px}
.poster-body img{display:block;width:100%;height:auto;max-height:calc(100svh - 150px);object-fit:contain;background:var(--ice)}
@media(max-width:700px){.poster-fab{width:46px;height:46px}.poster-body{padding:10px}}
@media(prefers-reduced-motion:reduce){.poster-fab svg{animation:none}}

/* Love, in a whole desktop of pixel windows. */
.wishes-fab{position:absolute;left:50%;top:-96px;z-index:3;transform:translateX(-50%);width:66px;height:62px;border:0;padding:15px;color:var(--deep);background:none;isolation:isolate;filter:drop-shadow(0 6px 0 var(--shade));animation:wishes-float 3s steps(6,end) infinite}
.wishes-fab:before{content:'';position:absolute;inset:0;z-index:-1;clip-path:var(--pixel-cut);background:var(--paper) url('assets/pixel-surface.svg')}
.wishes-fab svg{width:32px;height:32px;fill:#f36c99;shape-rendering:crispEdges;filter:drop-shadow(2px 2px 0 var(--deep))}
.wishes-fab:hover:before,.wishes-fab:focus-visible:before{background-color:var(--gold)}
.wishes-fab:focus-visible{outline:3px dashed white;outline-offset:7px}
@keyframes wishes-float{0%,100%{translate:0 0}50%{translate:0 -6px}}
.wishes-wall{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--deep);overflow:hidden;font-family:Fernando,monospace}
.wishes-wall::backdrop{background:#4eb0fcf5}
.wishes-wall .love-desktop{position:relative;width:100%;height:100%;max-height:none;padding:0;overflow:hidden;background-image:linear-gradient(#fff1 1px,transparent 1px),linear-gradient(90deg,#fff1 1px,transparent 1px);background-size:32px 32px}
.love-windows{position:absolute;inset:0;isolation:isolate}
.love-window,.love-center{border:3px solid var(--deep);background:#fffdf3;box-shadow:5px 6px 0 #153b7159;overflow:hidden}
.love-window{position:absolute;width:min(340px,78vw);animation:none}
.love-titlebar{display:flex;align-items:center;gap:9px;min-height:42px;padding:6px 8px 6px 12px;background:var(--ice);border-bottom:3px solid var(--deep);touch-action:none;cursor:grab;user-select:none}
.love-titlebar:active{cursor:grabbing}
.love-titlebar>svg{width:16px;height:16px;flex:none;fill:#ef6894;shape-rendering:crispEdges}
.love-titlebar h2,.love-titlebar h1{font-size:23px;line-height:1.1;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.love-dismiss,.love-exit{display:grid;place-items:center;flex:none;width:30px;height:30px;border:2px solid var(--deep);box-shadow:2px 2px var(--shade);padding:0;background:white;color:var(--deep);font:700 26px/1 Fernando,monospace;cursor:pointer}
.love-dismiss:hover,.love-exit:hover{background:var(--gold)}
.love-message{max-height:210px;overflow:auto;overscroll-behavior:contain;padding:16px;scrollbar-width:thin;scrollbar-color:var(--shade) var(--ice)}
.love-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:23px;line-height:1.45}
.love-center{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 48px));border-width:4px;box-shadow:8px 9px 0 #153b7170;animation:love-center-in .12s steps(3,end)}
.love-center .love-titlebar{background:var(--gold);padding:8px 10px 8px 16px;cursor:default}
.love-center .love-titlebar h1{font-size:28px}
.love-center-body{text-align:center;padding:30px 28px 34px;background:#fffdf3 url('assets/pixel-surface.svg')}
.love-center-body>svg{width:58px;height:58px;fill:#ef6894;shape-rendering:crispEdges;filter:drop-shadow(3px 3px 0 var(--deep));margin-bottom:18px}
.love-center-body p{font-size:32px;line-height:1.4;margin:0;text-wrap:balance}
.love-back{position:absolute;right:22px;bottom:22px;z-index:4;min-height:46px;border:3px solid var(--deep);background:var(--gold);box-shadow:4px 4px var(--shade);font-size:23px;color:var(--deep);padding:8px 14px}
@keyframes love-pop{0%{transform:translateY(9px) scale(.92)}65%{transform:translateY(-2px) scale(1.025)}100%{transform:none}}
@keyframes love-center-in{from{scale:.94}to{scale:1}}
@media(max-width:600px){.love-window{width:75vw}.love-message{max-height:175px;padding:12px}.love-message p{font-size:22px}.love-center-body{padding:22px 20px 26px}.love-center-body p{font-size:29px}.love-back{bottom:18px;right:18px}}
@media(prefers-reduced-motion:reduce){.wishes-fab,.love-window,.love-center{animation:none}}

/* Notification-like nudges, leaving the central thank-you window calm. */
.love-center .love-back{position:static;display:inline-flex;align-items:center;justify-content:center;margin:24px auto 0;min-height:46px;padding:8px 18px;box-shadow:3px 3px var(--shade)}
.love-window.is-entering{animation:love-pop .12s steps(3,end)}
.love-window.is-notifying{animation:love-notification .4s steps(8,end)}
.love-window.is-notifying .love-titlebar{background:var(--gold)}
.love-window.is-notifying{border-color:#ed6495;box-shadow:5px 6px 0 #153b7159,0 0 0 2px #fff600}
@keyframes love-notification{0%,100%{transform:translate(0,0)}12%{transform:translate(-4px,0)}25%{transform:translate(4px,-2px)}38%{transform:translate(-3px,1px)}51%{transform:translate(3px,-1px)}65%{transform:translate(-2px,0)}80%{transform:translate(2px,0)}}
@media(prefers-reduced-motion:reduce){.love-window.is-entering,.love-window.is-notifying{animation:none}.love-window.is-notifying .love-titlebar{background:var(--ice)}}
/* Save the date lives in the home menu. */
.home-layout{height:572px}.home-menu{top:263px}.home-languages{top:476px}.home-socials{top:532px}
.game-dialog.poster-dialog{width:min(1120px,calc(100vw - 32px))}
.poster-body .save-date-heading{font-size:30px;margin:0 0 18px;text-align:center}
.poster-body img{max-height:50svh}
.calendar-panel{padding:22px 4px 0}
.calendar-event h2{font-size:29px;margin:0 0 8px}
.game-dialog .calendar-event p{font-size:24px;margin:0;line-height:1.35;color:var(--shade)}
.calendar-controls{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;margin-top:20px}
#add-calendar{font-size:27px;text-decoration:none}#add-calendar svg{width:20px;height:20px;fill:currentColor;shape-rendering:crispEdges}
.calendar-options{font-size:23px;padding:10px 0;min-width:190px}
.calendar-options summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.calendar-options-list{display:grid;gap:10px;padding-top:16px}
.calendar-options-list a{color:var(--deep);padding:10px 14px;background:white;border:2px solid var(--shade);text-decoration:none}
.calendar-options-list a:hover{background:var(--gold)}
.game-dialog .calendar-note{font-size:20px;color:var(--shade);margin:20px 0 4px;line-height:1.4}
@media(max-width:600px){.calendar-controls{gap:12px}.calendar-options{width:100%}.poster-body img{max-height:none}.game-dialog .poster-body{padding:12px 14px 28px}}
.calendar-slots{border:0;padding:0;margin:24px 0 0;display:flex;flex-wrap:wrap;gap:14px}
.calendar-slots legend{font-size:25px;margin-bottom:14px}
.calendar-slot{display:flex;align-items:center;gap:12px;cursor:pointer;flex:1;min-width:200px;padding:15px 18px;background:white;border:3px solid var(--shade);box-shadow:3px 3px #badcf6}
.calendar-slot:has(input:checked){background:#fffda6;border-color:var(--deep)}
.calendar-slot input{width:20px;height:20px;accent-color:var(--deep);flex:none}
.calendar-slot span{display:grid;gap:4px}.calendar-slot strong{font-size:29px;line-height:1.2}.calendar-slot small{font-size:21px;color:var(--shade)}
.calendar-slot:focus-within{outline:3px dashed var(--shade);outline-offset:4px}
/* Heart sits beside Start, independent of the keyboard menu selection. */
.home-start-row{position:relative;width:227.5px;height:35.8813px}
.home-start-row .wishes-fab{left:calc(100% + 14px);top:0;transform:none;width:42px;height:36px;padding:7px;animation:none;filter:drop-shadow(0 5px 0 var(--shade))}
.home-start-row .wishes-fab svg{width:22px;height:22px}
.home-start-row .wishes-fab:hover{translate:0 -2px}
.love-center-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
.love-write{min-height:48px;padding:10px 14px;border:3px solid var(--deep);background:var(--gold);box-shadow:3px 3px var(--shade);color:var(--deep);font-size:26px;line-height:1.25}
.love-write:hover{background:#fffda6}
.love-center .love-center-actions .love-back{margin:0;box-shadow:none;background:white;font-size:22px;min-height:40px;border-width:2px}
/* A stepped pixel-light pass across Save the date. */
#open-poster .button-sweep{inset:0;top:0;width:100%;height:100%;left:0;opacity:0;background:linear-gradient(90deg,transparent 0 12%,#fff5 12% 28%,#fff 28% 47%,#fff9 47% 64%,#fff3 64% 82%,transparent 82%);background-size:68px 100%;background-repeat:no-repeat;background-position:-76px 0;animation:save-date-light 3.4s steps(14,end) infinite;mix-blend-mode:screen}
#open-poster .button-sweep:before,#open-poster .button-sweep:after{content:'';position:absolute;inset:0;background:repeating-conic-gradient(transparent 0 25%,#fff9 0 50%) 0 0/12px 12px;mask-image:linear-gradient(90deg,transparent 0 12%,#000 12% 76%,transparent 76%);mask-size:68px 100%;mask-repeat:no-repeat;mask-position:-76px 0;animation:save-date-pixels 3.4s steps(14,end) infinite}
#open-poster .button-sweep:after{background-size:8px 8px;opacity:.65;translate:0 4px}
#open-poster:hover .button-sweep,#open-poster:focus-visible .button-sweep{animation:save-date-light 1.2s steps(14,end) infinite}
#open-poster:hover .button-sweep:before,#open-poster:hover .button-sweep:after,#open-poster:focus-visible .button-sweep:before,#open-poster:focus-visible .button-sweep:after{animation-duration:1.2s}
@keyframes save-date-light{0%{background-position:-76px 0;opacity:0}4%{opacity:.85}32%{opacity:.85}38%{background-position:250px 0;opacity:0}100%{background-position:250px 0;opacity:0}}
@keyframes save-date-pixels{0%{mask-position:-76px 0}38%,100%{mask-position:250px 0}}
@media(prefers-reduced-motion:reduce){#open-poster .button-sweep{display:none}}
/* Pure white pixel light, with a solid bright core. */
#open-poster .button-sweep{background-image:linear-gradient(90deg,transparent 0 10%,#fff 10% 88%,transparent 88%);mix-blend-mode:normal}
#open-poster .button-sweep:before,#open-poster .button-sweep:after{background-image:repeating-conic-gradient(transparent 0 25%,#fff 0 50%);opacity:1}
@keyframes save-date-light{0%{background-position:-76px 0;opacity:0}3%{opacity:1}34%{opacity:1}38%{background-position:250px 0;opacity:0}100%{background-position:250px 0;opacity:0}}
