/* The supplied scene and meteors never enter the artwork/export/production tree. */
.star-memory-home-scene,.star-memory-home-caption,.star-memory-home-form-title{display:none}
.star-memory-home-advanced{display:contents}
.star-memory-home-advanced>summary{display:none}
.star-memory-image-state{position:absolute;z-index:12;inset:0;display:grid;align-content:center;justify-items:center;gap:14px;padding:24px;background:#162132;color:#f6e4c7;text-align:center;font-size:13px}
.star-memory-image-state button{padding:10px 18px;border:1px solid #ba9c73;border-radius:12px;background:#f6e4c7;color:#322d3e;cursor:pointer}
.star-memory-image-state.hidden{display:none}
.star-memory-preview.is-stale .star-memory-preview-badge{background:#372e42;color:#ffe4b6;letter-spacing:0;padding:7px 10px;border-radius:8px;max-width:80%}
@media(min-width:851px){
  body:has(#starMemoryModal.star-memory-home-desktop:not(.hidden)){overflow:hidden}
  #starMemoryModal.star-memory-home-desktop{padding:0;box-sizing:border-box;background:#242943;backdrop-filter:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-dialog{position:relative;width:100%;height:100vh;height:100dvh;max-height:none;min-height:0;border:0;border-radius:0;box-shadow:none;background:#242943;color:#f4e6d1;isolation:isolate}
  .star-memory-home-scene{display:block;position:absolute;inset:0 40% 0 0;background-color:#303650;background-image:url('/assets/star-memory-home/starry-lake.webp'),url('/assets/star-memory-home/starry-lake-small.webp');background-size:cover;background-position:center;background-repeat:no-repeat;pointer-events:none;overflow:hidden;z-index:-1}
  #starMemoryModal.star-memory-home-desktop .star-memory-header{position:absolute;inset:0;padding:56px 4%;border:0;pointer-events:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-header>div:first-child{max-width:52%;pointer-events:auto}
  #starMemoryModal.star-memory-home-desktop .star-memory-eyebrow{font-size:12px;letter-spacing:.2em;color:#eee0c0;margin:0 0 19px}
  #starMemoryModal.star-memory-home-desktop .star-memory-header h2{font:400 clamp(36px,3.3vw,56px)/1.25 'Songti SC',SimSun,serif;letter-spacing:.09em;color:#fff1ce;text-shadow:0 2px 18px #171629}
  #starMemoryModal.star-memory-home-desktop .star-memory-header p{margin:20px 0 0;font-size:17px;letter-spacing:.09em;color:#e8dfed;text-shadow:0 1px 10px #14172f}
  #starMemoryModal.star-memory-home-desktop .star-memory-header-actions{position:absolute;right:26px;top:22px;pointer-events:auto;z-index:5;gap:14px}
  #starMemoryModal.star-memory-home-desktop .star-memory-header button{min-height:38px;border:1px solid #827c9b;border-radius:24px;background:#3b405b;color:#eee6db;font-size:12px}
  #starMemoryModal.star-memory-home-desktop .star-memory-header .star-memory-close{width:auto;padding:0 14px!important;font-size:12px;background:#2b304a}
  #starMemoryModal.star-memory-home-desktop .star-memory-body{display:contents}
  #starMemoryModal.star-memory-home-desktop .star-memory-form{position:absolute;inset:0 0 0 60%;display:flex;flex-direction:column;gap:18px;overflow:auto;overscroll-behavior:contain;padding:84px 52px 28px;box-sizing:border-box;background:rgba(27,34,60,.89);border-left:1px solid #797893;border-radius:0;scrollbar-width:thin;scrollbar-color:#72728a transparent;scroll-padding:24px}
  #starMemoryModal.star-memory-home-desktop .star-memory-form>*{flex-shrink:0}
  .star-memory-home-form-title{display:block;margin:0 0 6px;font:400 30px/1.25 'Songti SC',SimSun,serif;letter-spacing:.07em;color:#f5e5cc}
  #starMemoryModal.star-memory-home-desktop .star-memory-card{padding:0;background:none;border:0;border-radius:0;flex:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-step{font-size:14px;font-weight:400;letter-spacing:.04em;margin:0 0 10px;color:#f1e7dc}
  #starMemoryModal.star-memory-home-desktop .star-memory-step i{display:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-form>.star-memory-card:nth-of-type(-n+3) .star-memory-step{display:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-field{gap:9px;color:#eee4d7;font-size:14px;line-height:1.4}
  #starMemoryModal.star-memory-home-desktop .star-memory-field input,#starMemoryModal.star-memory-home-desktop .star-memory-field textarea{min-height:44px;padding:11px 14px;border:1px solid #77788f;border-radius:12px;background:#414762;color:#fff4e4;color-scheme:dark;font:14px/1.4 inherit}
  #starMemoryModal.star-memory-home-desktop input::placeholder,#starMemoryModal.star-memory-home-desktop textarea::placeholder{color:#c4c3d3}
  #starMemoryModal.star-memory-home-desktop .star-memory-time-row{position:relative;grid-template-columns:1fr}
  #starMemoryModal.star-memory-home-desktop .star-memory-check{position:absolute;right:0;top:-4px;padding:0;min-height:25px;background:none;font-size:12px;color:#d6d1e3}
  #starMemoryModal.star-memory-home-desktop input[type=checkbox]{accent-color:#e4bd80;width:15px;height:15px}
  #starMemoryModal.star-memory-home-desktop .star-memory-location-row{align-items:end;gap:10px;grid-template-columns:minmax(0,1fr) auto}
  #starMemoryModal.star-memory-home-desktop .star-memory-location-row button{height:44px;border-radius:12px;background:#ddc09a;color:#2f2c3a;padding:0 17px;font-size:13px;white-space:nowrap}
  #starMemoryModal.star-memory-home-desktop .star-memory-location-result{background:#313f50;color:#d5e7db;font-size:12px;line-height:1.5}
  #starMemoryModal.star-memory-home-desktop .star-memory-options{gap:9px;grid-template-columns:repeat(3,minmax(0,1fr))}
  #starMemoryModal.star-memory-home-desktop .star-memory-option{align-content:center;gap:7px;min-height:76px;padding:12px 9px;border-radius:13px;border:1px solid #77768c;background:#30374f;color:#eee5da;text-align:center}
  #starMemoryModal.star-memory-home-desktop .star-memory-option strong{font-size:16px;font-weight:500}
  #starMemoryModal.star-memory-home-desktop .star-memory-option small{font-size:11px;color:#c5c4d3;line-height:1.45}
  #starMemoryModal.star-memory-home-desktop .star-memory-option.active{border-color:#e3c79e;background:#685659;box-shadow:inset 0 0 0 1px #b79a7b}
  #starMemoryModal.star-memory-home-desktop .star-memory-option.active small{color:#f3e5d2}
  .star-memory-home-advanced{display:block;border-block:1px solid #55586e;padding:12px 0;color:#d1c9db;font-size:12px}
  .star-memory-home-advanced>summary{display:list-item;cursor:pointer;min-height:18px;padding:2px 0}
  .star-memory-home-advanced[open]>.star-memory-card{margin-top:20px}
  #starMemoryModal.star-memory-home-desktop .star-memory-home-advanced .star-memory-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  #starMemoryModal.star-memory-home-desktop .star-memory-home-advanced .star-memory-option{padding-top:32px;min-height:106px}
  #starMemoryModal.star-memory-home-desktop .star-memory-option em{background:#9a7a57;font-size:9px;padding:2px 5px}
  #starMemoryModal.star-memory-home-desktop .star-memory-status{color:#d3c9d9;font-size:12px;line-height:1.6;min-height:0;margin-top:-8px}
  #starMemoryModal.star-memory-home-desktop .star-memory-status.error{color:#ffc9b6}
  #starMemoryModal.star-memory-home-desktop .star-memory-actions{display:flex;flex-direction:column-reverse;gap:10px;margin-top:-9px;flex:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-save{border-radius:999px;min-height:56px;background:#e7c998;color:#332d3e;border:1px solid #f8e2bc;font-size:19px;letter-spacing:.08em;font-weight:600;box-shadow:0 8px 24px #171d3344}
  #starMemoryModal.star-memory-home-desktop .star-memory-save-secondary{min-height:32px;border:0;background:none;color:#d7cbbd;font-size:12px;font-weight:400;box-shadow:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-wrap{position:absolute;inset:max(27%,210px) 40% auto 0;height:calc(100% - max(27%,210px) - 84px);padding-right:5%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-heading{display:none}
  /* UI gallery border only: no simulated product material or raster frame over the art. */
  #starMemoryModal.star-memory-home-desktop .star-memory-frame-preview{position:relative;aspect-ratio:3/4;height:min(100%,520px);width:auto;max-width:78%;box-sizing:border-box;padding:10px;margin:0;border:1px solid #c7b79a;border-radius:10px;background:#22273deb;box-shadow:0 24px 48px #10132b66,0 0 28px #b6a0dc1a,inset 0 0 0 1px #ada0c42e;pointer-events:auto;filter:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview{position:relative;inset:auto;width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:0 0 0 1px #a89ab63d;background:#101827}
  #starMemoryModal.star-memory-home-desktop .star-memory-frame-preview.home-landscape{aspect-ratio:4/3;height:auto;width:90%;max-width:90%;max-height:100%}
  #starMemoryModal.star-memory-home-desktop .star-memory-artwork-image{object-fit:contain}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-copy{inset:auto 22px 25px}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-copy strong{font-size:24px}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-copy span{font-size:12px}
  #starMemoryModal.star-memory-home-desktop .star-memory-preview-badge{top:13px;left:13px;font-size:9px;letter-spacing:.04em}
  #starMemoryModal.star-memory-home-desktop .star-memory-zoom-trigger{opacity:1;z-index:15}
  #starMemoryModal.star-memory-home-desktop .star-memory-disclaimer{position:static;color:#c9c3d2;font-size:11px;line-height:1.65;margin:0}
  .star-memory-home-caption{position:absolute;left:4%;bottom:18px;width:52%;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;color:#e2dce8}
  .star-memory-home-caption button{flex:none;border:1px solid #8c879d;border-radius:20px;background:#262b43b3;color:#efe5d6;font-size:11px;padding:7px 11px;cursor:pointer}
  #starMemoryModal.star-memory-home-desktop .star-memory-editor{margin:0;background:#2c344c;border-color:#747388;padding:16px;flex:none}
  #starMemoryModal.star-memory-home-desktop .star-memory-editor>label{color:#eadbca}
  #starMemoryModal.star-memory-home-desktop .star-memory-editor .star-memory-check{position:static;display:flex;align-items:center;gap:10px;padding:10px 0;min-height:26px;color:#eadbca}
  #starMemoryModal.star-memory-home-desktop .star-memory-editor input,#starMemoryModal.star-memory-home-desktop .star-memory-editor textarea{background:#414762;border-color:#77788f;color:#f9eedb}
  #starMemoryModal.star-memory-home-desktop .star-memory-visibility-toggle{background:#323c53;border-color:#77788f;color:#f0e4d4}
  #starMemoryModal.star-memory-home-desktop .star-memory-visibility-toggle small{color:#d3c9d9}
  #starMemoryModal.star-memory-home-desktop .star-memory-editor-actions button,#starMemoryModal.star-memory-home-desktop .star-memory-product-actions button{background:#414762;color:#eee4d3;border-color:#8b8190;font-size:12px;padding:6px 10px}
  #starMemoryModal.star-memory-home-desktop .star-memory-product-actions{margin:0;flex:none;grid-template-columns:1fr 1fr}
  #starMemoryModal.star-memory-home-desktop .star-memory-product-actions .primary{background:#e7c998;color:#332d3e;border-color:#e7c998}
  #starMemoryModal.star-memory-home-desktop .star-memory-apply-note{color:#c9c3d2;font-size:11px;margin:0}
  #starMemoryModal.star-memory-home-desktop button:focus-visible,#starMemoryModal.star-memory-home-desktop summary:focus-visible,#starMemoryModal.star-memory-home-desktop input:focus-visible,#starMemoryModal.star-memory-home-desktop textarea:focus-visible{outline:2px solid #f5d59d;outline-offset:3px}
  .star-memory-meteor-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
  /* One quiet downward flight per 8s cycle. Bright head leads; tail trails upper-left. */
  .star-memory-meteor{position:absolute;left:9%;top:14%;width:140px;height:2px;opacity:0;background:linear-gradient(90deg,transparent,rgba(255,232,185,.8) 82%,#fff);filter:drop-shadow(0 0 5px #ffe5ae);animation:star-home-meteor 8s linear infinite}
  @keyframes star-home-meteor{0%,10%{opacity:0;transform:translate(0,0) rotate(32deg)}12%{opacity:.85}24%{opacity:0;transform:translate(240px,150px) rotate(32deg)}100%{opacity:0;transform:translate(240px,150px) rotate(32deg)}}
  .star-home-motion-paused .star-memory-meteor{animation-play-state:paused;visibility:hidden}
  @media(max-width:1120px){#starMemoryModal.star-memory-home-desktop .star-memory-form{left:54%;padding:80px 24px 24px} .star-memory-home-scene{right:46%}#starMemoryModal.star-memory-home-desktop .star-memory-preview-wrap{right:46%;padding-right:3%}#starMemoryModal.star-memory-home-desktop .star-memory-header h2{font-size:40px}#starMemoryModal.star-memory-home-desktop .star-memory-header p{font-size:13px}.star-memory-home-caption{width:46%;font-size:9px}#starMemoryModal.star-memory-home-desktop .star-memory-disclaimer{font-size:10px}#starMemoryModal.star-memory-home-desktop .star-memory-home-form-title{font-size:26px}}
}
@media(prefers-reduced-motion:reduce){.star-memory-meteor{display:none!important}}
