@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  font-family: "Open Sans", Arial, sans-serif;
  color: #22203d;
  background: #f6f7fb;
  --navy: #262262;
  --muted: #626879;
  --line: #e0e2ec;
  --accent: #433881;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button, select, label:has(input[type=radio]) { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #4e70cd; outline-offset: 3px; }
fieldset { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.sr-only, label > input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
label > input:focus-visible + span { outline: 3px solid #4e70cd; outline-offset: 2px; }

main { width: min(1104px, calc(100% - 80px)); margin: clamp(32px, 7vh, 80px) auto 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(1.75rem, 3.7vw, 2.65rem); line-height: 1.2; letter-spacing: -.055em; font-weight: 700; }
.source-link { display: inline-flex; align-items: center; gap: 9px; color: #53536b; font-size: .875rem; font-weight: 600; text-decoration: none; padding: 8px 0 8px 8px; }
.source-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.figma-mark { display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(3, 6px); }
.figma-mark i:nth-child(1) { background: #f24e1e; border-radius: 50% 0 0 50%; }
.figma-mark i:nth-child(2) { background: #ff7262; border-radius: 0 50% 50% 0; }
.figma-mark i:nth-child(3) { background: #a259ff; border-radius: 50% 0 0 50%; }
.figma-mark i:nth-child(4) { background: #1abcfe; border-radius: 50%; }
.figma-mark i:nth-child(5) { background: #0acf83; border-radius: 50% 0 50% 50%; }
.workbench { border: 1px solid var(--line); border-radius: 18px; overflow: clip; background: white; box-shadow: 0 12px 36px -24px #23244955; }
.toolbar { min-height: 66px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.devices, .views { display: flex; align-items: center; gap: 2px; }
.views { padding-left: 14px; border-left: 1px solid var(--line); }
.devices label, .views label, .finishes label { position: relative; }
.devices label > span, .views label > span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border-radius: 7px; font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.devices label:hover > span, .views label:hover > span { background: #f5f5fa; }
.devices input:checked + span, .views input:checked + span { background: #eeedf8; color: var(--navy); }
.device-icon { display: inline-block; position: relative; width: 15px; height: 11px; border: 1.4px solid currentColor; border-radius: 2px; }
.window-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1px solid currentColor; }
.desktop-icon { margin-top: -2px; }
.desktop-icon::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -4px; border-top: 1.4px solid currentColor; }
.tablet-icon { width: 10px; height: 13px; }
.mobile-icon { width: 8px; height: 13px; }
.dimensions { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage { position: relative; isolation: isolate; min-height: clamp(280px, 35vh, 380px); display: grid; place-items: center; background: #16133e; overflow: hidden; }
.stage[data-view=calendar] { padding: 28px 16px; }
.stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("assets/space.svg") center 73% / cover no-repeat; mask: url("assets/space-mask.svg") center 73% / cover no-repeat; }
.banner-slot, .calendar-slot { display: grid; place-items: center; width: 100%; min-width: 0; }
.banner-slot[hidden], .calendar-slot[hidden] { display: none; }

.settings { padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.settings legend, .scenario-setting > label { display: block; margin: 0 0 11px; padding: 0; color: #343249; font-size: .875rem; font-weight: 700; }
.finish-options { display: flex; gap: 10px; }
.finish-options label { flex: 1; }
.finish-option { min-height: 57px; height: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid #dfe1e9; border-radius: 10px; padding: 8px 13px; background: #fff; }
.finish-options label:hover .finish-option { border-color: #9f9abd; }
.finish-options input:checked + .finish-option { background: #f6f5fc; border-color: #665b9b; box-shadow: 0 0 0 .5px #665b9b; }
.finish-option b, .finish-option small { display: block; }
.finish-option b { font-size: .875rem; line-height: 1.4; font-weight: 600; }
.finish-option small { color: var(--muted); font-size: .71875rem; line-height: 1.5; }
.swatch { display: block; position: relative; flex: 0 0 26px; height: 28px; border: 1px solid #d4d5e0; border-radius: 6px; background: linear-gradient(124deg,#c9eafd 0%,#f4f8fc 26%,#dedbf2 44%,#fff 52%,#d2eafa 57%,#fff 68%,#eee4f1 78%,#d5e8f9 100%); }
.aura-swatch { border-color: #dfd4fb; box-shadow: -1.5px -1px 3.5px #7dd3fc80, 1.5px 0 3.5px #c084fc70, 1px 1.5px 3.5px #f0abfc78; }
.scenario-controls { display: flex; align-items: stretch; gap: 8px; }
.select-wrap { position: relative; flex: 1; min-width: 0; }
.select-wrap::after { content: ""; pointer-events: none; position: absolute; width: 7px; height: 7px; right: 16px; top: calc(50% - 5px); border: solid #6a657e; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
select { appearance: none; width: 100%; height: 57px; padding: 0 35px 0 15px; border: 1px solid #d9dce6; border-radius: 9px; background: white; font-size: .875rem; font-weight: 600; color: #343249; }
.claim-all { border: 1px solid var(--navy); background: var(--navy); color: white; font-size: .875rem; font-weight: 700; border-radius: 9px; padding: 0 18px; }
.claim-all:hover:enabled { background: #393579; }
.claim-all:disabled { border-color: #dedee6; background: #eeedf3; color: #767487; }
.preview-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 28px; min-height: 56px; }
.preview-footer p { font-size: .8125rem; line-height: 1.6; color: #575b6f; margin: 0; }
.footer-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.footer-action, .reset { flex: none; background: transparent; padding: 5px 0; border: 0; font-weight: 600; color: var(--accent); font-size: .8125rem; }
.footer-action { color: var(--muted); }
.footer-action:hover, .reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-action:hover { color: var(--navy); }

/* The four banner sizes correspond to the four applied layouts in the design. */
.banner {
  --width: 592px; --height: 146px; --art-x: -10.075px; --art-y: 17.045px; --art-scale: 1;
  --ribbon: url("assets/ribbon-window.svg"); --wave: url("assets/wave-window.svg");
  --angle: -9.7584deg; --ribbon-left: 173.215px; --ribbon-right: 8.77px; --ribbon-height: 60px;
  --row-left: 164.444px; --window-width: 362px; --arrow-width: 25px; --row-top: 60px;
  --week-left: 66.16px; --week-top: 42.76px; --week-width: 93.69px; --week-font: 16px; --week-line: 16px; --number-font: 45px;
  position: relative; width: var(--width); height: var(--height); color: var(--navy);
  flex-shrink: 0; transform: scale(var(--fit, 1)); transform-origin: center; font-family: "Open Sans", Arial, sans-serif;
}
.banner[data-device=desktop] {
  --width: 428px; --art-x: -7.985px; --art-y: 43.791px; --art-scale: .792594;
  --ribbon: url("assets/ribbon-desktop.svg"); --wave: url("assets/wave-desktop.svg");
  --angle: -13.381deg; --ribbon-left: 125.23px; --ribbon-right: 6.34px;
  --row-left: 118.889px; --window-width: 243px;
  --week-left: 52.44px; --week-top: 31.43px; --week-width: 74.26px; --week-line: 12.78px;
}
.banner[data-device=tablet] {
  --width: 696px; --art-x: 1px; --art-y: 22px; --art-scale: .930555;
  --ribbon: url("assets/ribbon-tablet.svg"); --wave: url("assets/wave-tablet.svg");
  --angle: -8.2755deg; --ribbon-left: 160px; --ribbon-right: 15px;
  --row-left: 150px; --window-width: 490px; --arrow-width: 25px;
  --week-left: 61.57px; --week-top: 39.74px; --week-width: 87.19px; --week-font: 15px; --week-line: 15px; --number-font: 42.188px;
}
.banner[data-device=mobile] {
  --width: var(--mobile-width, 348px); --height: 141px; --ribbon: url("assets/ribbon-mobile.svg"); --wave: url("assets/wave-mobile.svg");
  --angle: -16.0916deg; --ribbon-left: 15px; --ribbon-right: 15px; --ribbon-height: 54px;
  --row-left: 0px; --window-width: calc(var(--width) - 70px); --arrow-width: 31px; --row-top: 55px;
}
.board { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: linear-gradient(var(--angle), #c8ebfa 62.177%, #7ed8ff 128.38%); }
.board::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 4px -4px #27aae1; pointer-events: none; }
.wave { position: absolute; inset: 24px 0 0; background: var(--wave) center / 100% 100% no-repeat; }
.banner[data-device=tablet] .wave { inset: 0; }
.banner[data-device=mobile] .wave { inset: 54px -16px 0 -19px; }
.banner[data-device=mobile] .board::after { display: none; }
.mission { position: absolute; z-index: 1; top: 0; left: var(--ribbon-left); right: var(--ribbon-right); height: var(--ribbon-height); margin: 0; padding: 0 0 2px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: white; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -.28px; background: var(--ribbon) center / 100% 100% no-repeat; }
.banner[data-device=desktop] .mission { font-size: 12.5px; letter-spacing: -.25px; }
.banner[data-device=mobile] .mission { top: -1px; padding-bottom: 2px; }
.illustration { position: absolute; z-index: 2; left: var(--art-x); top: var(--art-y); pointer-events: none; user-select: none; }
.illustration-art { position: absolute; left: 0; top: 0; width: 160.18657px; height: 128.95523px; transform-origin: top left; transform: scale(var(--art-scale)); }
.illustration-art img, .astronaut { position: absolute; display: block; }
.astronaut { inset: 0; }
.banner[data-device=tablet] .astronaut { transform: translateY(3.3%); }
.week-label { position: absolute; left: var(--week-left); top: var(--week-top); width: var(--week-width); display: flex; flex-direction: column; align-items: center; color: white; font-size: var(--week-font); font-weight: 800; line-height: var(--week-line); text-align: center; paint-order: stroke fill; -webkit-text-stroke: 4px #e57b41; text-shadow: 0 1px #e57b41; }
.week-label strong { font-size: var(--number-font); font-weight: 800; line-height: var(--number-font); -webkit-text-stroke-width: 6px; text-shadow: 0 1px #e57b41; }
.banner[data-device=mobile] .illustration { display: none; }

.reward-row { position: absolute; z-index: 1; top: var(--row-top); left: var(--row-left); right: 0; display: grid; grid-template-columns: var(--arrow-width) var(--window-width) var(--arrow-width); justify-content: center; align-items: center; height: 86px; }
.banner[data-device=mobile] .reward-row { right: 4px; }
.arrow { display: grid; place-items: center; align-self: stretch; border: 0; padding: 0; background: transparent; border-radius: 5px; }
.arrow::before { content: ""; display: block; width: 25px; height: 25px; background: url("assets/next.svg") center / contain no-repeat; }
.arrow.previous::before { transform: rotate(180deg); }
.arrow.previous:disabled::before { transform: none; height: 24px; background-image: url("assets/previous-muted.svg"); }
.arrow.next:disabled::before { height: 24px; background-image: url("assets/previous-muted.svg"); transform: rotate(180deg); }
.banner:is([data-device=mobile],[data-device=tablet]) .arrow::before { width: 11.57px; height: 7.7px; background-image: url("assets/arrowhead.svg"); transform: rotate(90deg); }
.banner:is([data-device=mobile],[data-device=tablet]) .previous::before { transform: rotate(-90deg); }
.banner:is([data-device=mobile],[data-device=tablet]) .arrow:disabled::before { background-image: url("assets/arrowhead-muted.svg"); }
.arrow:hover:enabled { background: #fff3; }
.arrow:focus-visible, .reward-window:focus-visible { outline-offset: -3px; }
.reward-window { height: 86px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.reward-window::-webkit-scrollbar { display: none; }
.rewards { width: max-content; min-width: 100%; display: flex; align-items: flex-start; gap: 8px; list-style: none; margin: 0; padding: 9px 0 10px; }
.reward-slot { position: relative; isolation: isolate; flex: none; width: 75px; height: 67px; scroll-snap-align: start; }
.reward { position: relative; display: block; width: 75px; height: 67px; padding: 0; overflow: hidden; border: none; border-radius: 8px; text-align: left; background: white; color: var(--navy); font-size: 12px; line-height: 16px; box-shadow: inset 2px -2px rgb(0 0 0 / 10%); }
.reward:focus-visible { z-index: 2; outline-offset: 1px; }
.reward[data-state=ongoing] { background: #ffe2bf; }
.reward-heading, .reward-value, .reward-status, .claim-cta, .weekly-progress, .milestone-stamp, .week-stamp { position: absolute; }
.reward-heading { top: 4px; left: 8px; font-weight: 700; white-space: nowrap; }
.reward-value { top: 20px; left: 8px; display: flex; align-items: center; gap: 2px; font-weight: 600; line-height: 16px; }
.reward-value img { display: block; }
.reward-status { left: 8px; bottom: 8px; font-size: 10px; line-height: 14px; font-style: italic; white-space: nowrap; }
.weekly-progress { top: 39px; left: 0; right: 0; height: 5px; background: #f6c483; }
.weekly-progress::before { content: ""; display: block; width: 40px; height: 5px; background: #f7941e; border-radius: 0 8px 8px 0; }
.claim-cta { left: 8px; top: 40px; width: 59px; height: 19px; border-radius: 4px; display: grid; place-items: center; background: #f7941e; color: white; font-size: 8px; line-height: 11px; font-weight: 700; white-space: nowrap; box-shadow: inset 2px -2px rgb(0 0 0 / 10%); }
.reward:hover .claim-cta { background: #ec8513; }
.reward:active .claim-cta { transform: translateY(1px); }
.week-stamp { inset: 0; pointer-events: none; transform-origin: 71% 65%; }
.week-stamp img { position: absolute; opacity: .5; transform: translate(-50%,-50%) rotate(-30deg); }
.milestone { background-color: #e6ecf8; }
.milestone::before { position: absolute; z-index: 1; content: ""; width: 60px; height: 60px; top: 14px; left: 34px; background: var(--gift) center / contain no-repeat; pointer-events: none; }
.milestone::after { content: ""; position: absolute; z-index: 3; inset: 0; border-radius: inherit; border: 1.5px solid rgb(255 255 255 / 96%); pointer-events: none; }
.milestone > .reward-heading, .milestone > .reward-value, .milestone > .reward-status, .milestone > .claim-cta, .milestone > .milestone-stamp { z-index: 2; }
.milestone .reward-heading { font-size: 10px; line-height: 14px; }
.milestone .reward-value { top: 18px; line-height: 15px; }
.milestone .reward-value img { filter: drop-shadow(0 0 1.5px #89d7f8a6); }
.milestone .claim-cta { top: 41px; height: 17px; }
.milestone[data-state=locked] { --gift: url("assets/gift-locked.svg"); color: #5d6780; }
.milestone[data-state=locked]::after { border: 1.25px solid rgb(238 243 248 / 90%); }
.milestone[data-state=locked] .reward-status { display: flex; align-items: center; gap: 3px; color: #6e7891; }
.milestone[data-state=progress] { --gift: url("assets/gift-progress.svg"); }
.milestone[data-state=progress] .reward-status { font-size: 9.5px; font-weight: 600; bottom: 6px; }
.milestone[data-state=ready] { --gift: url("assets/gift-ready.svg"); box-shadow: 0 2px 6px 1px rgb(0 159 255 / 40%), inset 2px -2px 6px 6px white; }
.milestone[data-state=claimed] { --gift: url("assets/gift-claimed.svg"); }
.milestone-stamp { left: 71.7%; top: 64.8%; translate: -50% -50%; rotate: -30deg; }

/* Unified WebGL holographic foil canvas + Option 7 dim/bright prismatic aura. */
.holo-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; display: block; }
.reward-slot.aura { z-index: 2; }
.banner[data-finish=aura] :is(.aura, .aura-fade)::before,
.banner[data-finish=aura] :is(.aura, .aura-fade)::after,
.cal-modal[data-finish=aura] :is(.cal-aura, .cal-aura-fade)::before,
.cal-modal[data-finish=aura] :is(.cal-aura, .cal-aura-fade)::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.banner[data-finish=aura] :is(.aura, .aura-fade)::before { inset: -5px -6px; border-radius: 13px; opacity: .52; filter: blur(6.5px); background: linear-gradient(132.94deg,#7dd3fc,#c084fc 52%,#f0abfc); }
.banner[data-finish=aura] :is(.aura, .aura-fade)::after { inset: -2px -2.5px; border-radius: 10px; opacity: .58; filter: blur(2.5px); background: linear-gradient(132.58deg,#fff,#dbeafe 50%,#fae8ff); }
.banner[data-finish=aura] .milestone[data-state=ready] { box-shadow: 0 0 3px 1px rgb(255 255 255 / 72%), inset 0 0 5px 3px white; }
.banner[data-finish=aura] .milestone[data-state=ready]::after { border: 2px solid white; }
.banner[data-finish=aura] .aura-fade::before,
.banner[data-finish=aura] .aura-fade::after,
.cal-modal[data-finish=aura] .cal-aura-fade::before,
.cal-modal[data-finish=aura] .cal-aura-fade::after { opacity: 0; }
.bubble-float {
  position: absolute; z-index: 10; pointer-events: none;
  padding: 2px 7px; border-radius: 999px; color: white; font-size: 11px; line-height: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  box-shadow: 0 3px 10px -2px rgb(22 19 62 / 45%);
  transform: translate(-50%, -6px);
  animation: bubble-fade 600ms ease-out forwards;
}

/* Calendar modal / page view (Your Streak — Web 758px, Tablet 744px, Mobile 375px). */
.cal-scale-frame { position: relative; transform-origin: top center; }
.cal-modal {
  position: relative; width: 758px; background: white; color: var(--navy);
  border-radius: 20px; padding: 20px 24px 26px; box-shadow: 0 24px 60px -20px rgb(8 7 30 / 70%);
  font-family: "Open Sans", Arial, sans-serif;
}
.cal-modal[data-device=tablet] { width: 744px; padding: 0 0 28px; border-radius: 16px; overflow: hidden; }
.cal-modal[data-device=mobile] { width: 375px; padding: 0 0 24px; border-radius: 18px; overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h2 { margin: 0; font-size: 24px; line-height: 33px; font-weight: 800; color: var(--navy); }
.cal-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font-size: 20px; line-height: 1; }
.cal-close:hover { background: #f1f4f9; }
.cal-appbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #16133e; color: white; font-size: 16px; font-weight: 700; }
.cal-back { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #f7941e; font-size: 18px; line-height: 1; padding: 0; }
.cal-back:hover { background: rgb(255 255 255 / 12%); }
.cal-body-wrap { display: block; }
.cal-modal[data-device=tablet] .cal-body-wrap { padding: 22px 32px 0; }
.cal-modal[data-device=mobile] .cal-body-wrap { padding: 16px 16px 0; }

.cal-hero {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 152px;
  padding: 16px 18px 16px 176px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(171deg, #c8ebfa 48%, #7ed8ff 125%);
}
.cal-hero::before { content: ""; position: absolute; inset: 14px 0 0; background: url("assets/wave-window.svg") center / 100% 100% no-repeat; pointer-events: none; }
.cal-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 4px -4px #27aae1; pointer-events: none; }
.cal-hero-art { position: absolute; left: 8px; top: 16px; width: 160px; height: 130px; z-index: 1; pointer-events: none; user-select: none; }
.cal-hero-art .illustration-art { transform: scale(.96); }
.cal-hero-art .week-label { left: 63px; top: 43px; width: 90px; font-size: 15px; line-height: 15px; }
.cal-hero-art .week-label strong { font-size: 42px; line-height: 42px; }
.cal-hero-copy { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-hero-copy p { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.cal-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cal-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 8px; background: white; color: var(--navy); font-size: 15px; font-weight: 400;
  box-shadow: inset 2.4px -2.4px rgb(0 0 0 / 10%);
}
.cal-pill-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cal-pill-chevron { width: 7px; height: 12px; flex: none; }
.cal-icon-target { position: relative; width: 30px; height: 30px; flex: none; }
.cal-icon-target img { position: absolute; display: block; }
.cal-icon-shield { position: relative; width: 27px; height: 30px; flex: none; }
.cal-icon-shield img { position: absolute; display: block; }
.cal-mobile-pills { display: none; margin-top: 12px; }
.cal-modal[data-device=tablet] .cal-hero { min-height: 142px; padding: 16px 18px 16px 166px; }
.cal-modal[data-device=tablet] .cal-hero-copy p { font-size: 18px; }
.cal-modal[data-device=mobile] .cal-hero { min-height: 108px; padding: 14px 14px 14px 118px; }
.cal-modal[data-device=mobile] .cal-hero-art { left: 4px; top: 10px; width: 110px; height: 92px; }
.cal-modal[data-device=mobile] .cal-hero-art .illustration-art { transform: scale(.68); }
.cal-modal[data-device=mobile] .cal-hero-art .week-label { left: 45px; top: 30px; width: 64px; font-size: 11px; line-height: 11px; -webkit-text-stroke-width: 3px; }
.cal-modal[data-device=mobile] .cal-hero-art .week-label strong { font-size: 29px; line-height: 29px; -webkit-text-stroke-width: 4.5px; }
.cal-modal[data-device=mobile] .cal-hero-copy p { font-size: 14px; line-height: 1.32; }
.cal-modal[data-device=mobile] .cal-hero .cal-pills { display: none; }
.cal-modal[data-device=mobile] .cal-mobile-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-modal[data-device=mobile] .cal-mobile-pills .cal-pill { border: 1px solid #dce3ef; padding: 8px 10px; font-size: 12.5px; box-shadow: inset 2px -2px #dce3ef; }
.cal-modal[data-device=mobile] .cal-mobile-pills .cal-pill-left { gap: 7px; }
.cal-modal[data-device=mobile] .cal-mobile-pills .cal-icon-target,
.cal-modal[data-device=mobile] .cal-mobile-pills .cal-icon-shield { transform: scale(.8); transform-origin: left center; }

.cal-month-bar { display: flex; align-items: center; gap: 22px; margin: 18px 0 12px; }
.cal-month-bar h3 { margin: 0; font-size: 20px; line-height: 27px; font-weight: 700; color: var(--navy); }
.cal-nav-arrows { display: flex; align-items: center; gap: 20px; font-size: 18px; font-weight: 700; color: var(--navy); user-select: none; }
.cal-nav-arrows .muted { color: #b4b4b4; }
.cal-modal:is([data-device=tablet],[data-device=mobile]) .cal-month-bar { justify-content: space-between; }
.cal-modal[data-device=mobile] .cal-month-bar h3 { font-size: 16px; }

.cal-layout { display: grid; grid-template-columns: 400px 292px; gap: 18px; align-items: start; }
.cal-modal:is([data-device=tablet],[data-device=mobile]) .cal-layout { grid-template-columns: 1fr; gap: 20px; }

.cal-grid { display: flex; flex-direction: column; gap: 10px; }
.cal-weekdays, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; text-align: center; padding: 0 12px; }
.cal-weekdays { padding-block: 8px; font-size: 12px; font-weight: 700; color: #27aae1; }
.cal-row { min-height: 46px; border-radius: 999px; position: relative; font-size: 14px; font-weight: 400; color: var(--navy); }
.cal-row.done { background: #e8f8ff; font-weight: 700; }
.cal-row.done-active { background: #e8f8ff; border: 3px solid #89d7f8; font-weight: 700; }
.cal-row.ongoing-row { padding: 0; }
.cal-row.ongoing-row .cal-ongoing-pill {
  grid-column: 1 / span 4; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  min-height: 46px; padding-left: 12px; border-radius: 999px; background: #ffe2bf;
  border: 2.2px dashed #f7941e; font-weight: 700;
}
.cal-row.ongoing-row .cal-after-pill { grid-column: 5 / span 3; display: grid; grid-template-columns: repeat(3, 1fr); padding-right: 12px; }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 30px; }
.cal-day.outside { color: #8c8f9e; }
.cal-day .cal-star { width: 7px; height: 7px; display: block; }
.cal-week-badge {
  position: absolute; left: 0; top: -10px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 999px; background: #43bdf2; color: white; font-size: 10px; font-weight: 700; line-height: 1.2;
}
.cal-week-badge img { width: 8px; height: 10px; display: block; }

.cal-cards-shell { display: flex; gap: 6px; align-items: stretch; }
.cal-cards { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-scrollbar { width: 5px; border-radius: 999px; background: #cfd7e5; flex: none; margin: 2px 0; }
.cal-modal:is([data-device=tablet],[data-device=mobile]) .cal-scrollbar { display: none; }

.cal-week-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: 16px; border: 1px solid #dce3ef; background: white;
  box-shadow: inset 4px -4px #dce3ef; overflow: hidden;
}
.cal-week-card.ongoing { background: #ffe2bf; border-color: #f6c483; box-shadow: inset 4px -4px #f6c483; }
.cal-week-card.ongoing::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48%; height: 4px; background: #f7941e; border-radius: 0 4px 4px 0; }
.cal-card-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cal-card-icon { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.cal-card-icon img.cal-stamp-img { width: 44px; height: 37px; rotate: -30deg; display: block; }
.cal-card-icon img.cal-gift-img { width: 40px; height: 40px; display: block; }
.cal-card-icon.dimmed { opacity: .55; }
.cal-card-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cal-card-title { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cal-card-bubbles { display: flex; align-items: center; gap: 3px; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--navy); }
.cal-card-bubbles img { width: 13px; height: 13px; display: block; }
.cal-card-sub { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-style: italic; color: #515151; }
.cal-card-sub img { width: 9px; height: 9px; display: block; }
.cal-counters { display: flex; align-items: center; gap: 4px; flex: none; }
.cal-count-box {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 53px;
  padding: 5px 9px; border-radius: 5px; border: 1.2px solid #cfd7e5; background: white;
  font-size: 14px; line-height: 19px; font-weight: 700; color: var(--navy);
}
.cal-count-box img { height: 17px; width: auto; display: block; }
.cal-week-claim {
  border: 0; border-radius: 8px; padding: 6px 12px; background: #f7941e; color: white;
  font-size: 12px; font-weight: 700; box-shadow: inset 2px -2px #e57b41; white-space: nowrap;
}
.cal-week-claim:hover { background: #ec8513; }

/* Calendar Milestone 1 card (unified shader + Option 7 aura) */
.cal-milestone-wrap { position: relative; isolation: isolate; z-index: 2; }
.cal-modal[data-finish=aura] :is(.cal-aura, .cal-aura-fade)::before { inset: -5.5px -6.5px; border-radius: 21px; opacity: .52; filter: blur(7px); background: linear-gradient(152deg,#7dd3fc,#c084fc 52%,#f0abfc); }
.cal-modal[data-finish=aura] :is(.cal-aura, .cal-aura-fade)::after { inset: -2px -3px; border-radius: 18px; opacity: .58; filter: blur(3px); background: linear-gradient(153deg,#fff,#dbeafe 50%,#fae8ff); }
.cal-milestone {
  position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%;
  padding: 12px 16px; border-radius: 16px; overflow: hidden; background-color: #e6ecf8;
  box-shadow: inset 2px -2px rgb(0 0 0 / 10%);
}
.cal-milestone::before { position: absolute; z-index: 1; content: ""; width: 81px; height: 81px; right: -22px; bottom: -21px; background: var(--gift) center / contain no-repeat; pointer-events: none; }
.cal-milestone[data-state=ready]::before { width: 93px; height: 93px; right: -24px; bottom: -22px; }
.cal-milestone::after { content: ""; position: absolute; z-index: 3; inset: 0; border-radius: inherit; border: 1.5px solid rgb(255 255 255 / 96%); pointer-events: none; }
.cal-milestone > .cal-m-row, .cal-milestone > .cal-claim-btn { position: relative; z-index: 2; }
.cal-milestone[data-state=locked] { --gift: url("assets/gift-locked.svg"); }
.cal-milestone[data-state=locked]::after { border: 1.25px solid rgb(238 243 248 / 90%); }
.cal-milestone[data-state=locked] .cal-card-title,
.cal-milestone[data-state=locked] .cal-card-bubbles { color: #475569; }
.cal-milestone[data-state=locked] .cal-card-sub { color: #64748b; }
.cal-milestone[data-state=locked] .cal-tier-label { background: rgb(255 255 255 / 78%); color: #64748b; }
.cal-milestone[data-state=progress] { --gift: url("assets/gift-progress.svg"); }
.cal-milestone[data-state=ready] { --gift: url("assets/gift-ready.svg"); box-shadow: 0 2px 6px 1px rgb(0 159 255 / 40%), inset 2px -2px 6px 6px white; }
.cal-milestone[data-state=claimed] { --gift: url("assets/gift-claimed.svg"); }
.cal-modal[data-finish=aura] .cal-milestone[data-state=ready] { box-shadow: 0 0 3px 1px rgb(255 255 255 / 72%), inset 0 0 5px 3px white; }
.cal-modal[data-finish=aura] .cal-milestone[data-state=ready]::after { border: 2px solid white; }
.cal-m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-tier-label {
  padding: 5px 10px; border-radius: 5px; border: 1.2px solid #cfd7e5; background: white;
  font-size: 14px; line-height: 19px; font-weight: 700; color: var(--navy); white-space: nowrap; flex: none;
}
.cal-claim-btn {
  width: 100%; height: 30px; border: 0; border-radius: 8px; background: #f7941e; color: white;
  font-size: 14px; line-height: 19px; font-weight: 700; box-shadow: inset 2.4px -2.4px #e57b41;
}
.cal-claim-btn:hover { background: #ec8513; }
.cal-claim-btn:active { transform: translateY(1px); }
.cal-open-gift { position: relative; width: 36px; height: 36px; flex: none; }
.cal-open-gift img { position: absolute; display: block; }

@keyframes aura-breathe {
  0%, 12%, 100% { opacity: .14; transform: scale(.96); }
  46%, 58% { opacity: .62; transform: scale(1.025); }
}
@keyframes aura-inner-breathe {
  0%, 12%, 100% { opacity: .22; transform: scale(.98); }
  46%, 58% { opacity: .68; transform: scale(1.015); }
}
@keyframes aura-extinguish {
  from { opacity: .52; transform: scale(1); }
  to { opacity: 0; transform: scale(.94); }
}
@keyframes claim-all-pulse {
  0% { scale: 1; }
  35% { scale: 1.05; }
  70% { scale: .985; }
  100% { scale: 1; }
}
@keyframes stamp-land {
  from { opacity: 0; scale: 1.38; }
  to { opacity: 1; scale: 1; }
}
@keyframes bubble-float-up {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.88); }
  20% { opacity: 1; transform: translate(-50%, -4px) scale(1.04); }
  80% { opacity: 1; transform: translate(-50%, -22px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(.96); }
}
@keyframes bubble-fade {
  0% { opacity: 0; }
  20%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion=paused]) .banner[data-finish=aura] .aura::before,
  :root:not([data-motion=paused]) .cal-modal[data-finish=aura] .cal-aura::before { animation: aura-breathe 3.4s ease-in-out infinite; }
  :root:not([data-motion=paused]) .banner[data-finish=aura] .aura::after,
  :root:not([data-motion=paused]) .cal-modal[data-finish=aura] .cal-aura::after { animation: aura-inner-breathe 3.4s ease-in-out infinite; }
  :root:not([data-motion=paused]) .banner[data-finish=aura] .aura-fade::before,
  :root:not([data-motion=paused]) .banner[data-finish=aura] .aura-fade::after,
  :root:not([data-motion=paused]) .cal-modal[data-finish=aura] .cal-aura-fade::before,
  :root:not([data-motion=paused]) .cal-modal[data-finish=aura] .cal-aura-fade::after { animation: aura-extinguish 280ms ease-out forwards; }
  :root:not([data-motion=paused]) :is(.reward-slot, .cal-milestone-wrap).pulse-remind { animation: claim-all-pulse 520ms ease-out; }
  :root:not([data-motion=paused]) .stamp-in {
    animation: stamp-land 280ms cubic-bezier(.22, 1.4, .36, 1) both;
    animation-timing-function: linear(0, .18 8%, .55 19%, .98 34%, 1.07 46%, 1.04 58%, .99 76%, 1);
  }
  :root:not([data-motion=paused]) .bubble-float { animation: bubble-float-up 1.2s ease-out forwards; }
}

@media (max-width: 930px) {
  main { width: calc(100% - 40px); }
  .settings { padding: 22px; gap: 22px; grid-template-columns: 1.4fr 1fr; }
  .finish-option { gap: 8px; padding: 8px 10px; }
  .finish-option b { font-size: .8125rem; }
  .swatch { flex-basis: 22px; height: 24px; }
}
@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; gap: 20px; }
  .finish-options, .scenario-controls { max-width: none; }
  .scenario-controls select { height: 44px; }
  .toolbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .devices label > span, .views label > span { padding: 8px 10px; }
  .preview-footer { padding: 12px 22px; }
}
@media (max-width: 560px) {
  main { width: calc(100% - 24px); margin: 28px auto; }
  .page-heading { margin: 0 3px 16px; }
  .source-link { font-size: .8125rem; }
  .workbench { border-radius: 13px; }
  .toolbar { min-height: 57px; gap: 6px; padding: 8px; flex-wrap: wrap; }
  .toolbar-controls { width: 100%; gap: 6px; }
  .devices, .views { width: 100%; justify-content: space-between; }
  .views { padding-left: 0; padding-top: 4px; border-left: 0; border-top: 1px solid var(--line); }
  .devices label, .views label { flex: 1; }
  .devices label > span, .views label > span { padding: 8px 4px; gap: 5px; font-size: .75rem; }
  .dimensions { width: 100%; text-align: center; font-size: .71875rem; margin-bottom: 1px; }
  .stage { min-height: 238px; }
  .stage[data-view=calendar] { padding: 14px 8px; }
  .settings { padding: 18px 14px; gap: 18px; }
  .settings legend, .scenario-setting > label { margin-bottom: 8px; }
  .finish-options { gap: 7px; }
  .finish-option { padding: 8px 9px; gap: 8px; }
  .finish-option b { font-size: .78125rem; }
  .preview-footer { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; }
  .preview-footer p, .footer-action, .reset { font-size: .75rem; }
  .footer-actions { gap: 12px; }
  .footer-action, .reset { padding-block: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.banner-slot, .calendar-slot, .stage { grid-template-columns: minmax(0, 1fr); }
.rewards { position: relative; }
