/* Cosmic Arcade: homepage-only tokens and components. */
body.cosmic-home{--serif:Inter,ui-sans-serif,system-ui,sans-serif;--paper:#080b14;--ink:#f5f4ff;--muted:#a9aec7;--line:#303753;--accent:#a877ff;--lime:#d0ff62;background:#080b14;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;margin:0}
.cosmic-home *{box-sizing:border-box}
.cosmic-home [hidden]{display:none!important}
.cosmic-home button,.cosmic-home input,.cosmic-home select{font:inherit}
.cosmic-home a{color:inherit}
.cosmic-home :focus-visible{outline:3px solid #d0ff62;outline-offset:4px}
.cosmic-home .skip-link{position:absolute;top:-70px}.cosmic-home .skip-link:focus{top:4px;z-index:100}
.cosmic-header{max-width:1600px;margin:auto;min-height:72px;padding:12px 32px;display:flex;align-items:center;gap:30px;border-bottom:1px solid #393255;background:#090c17}
.cosmic-brand{min-height:44px;display:flex;gap:5px;align-items:center;text-decoration:none;font-weight:800;font-size:20px;white-space:nowrap}.cosmic-brand>span:last-child{color:#a9c6ff}.cosmic-logo{font-size:32px;margin-right:4px;filter:drop-shadow(0 0 10px #8b5aff)}
.cosmic-header nav{display:flex;align-items:center;gap:20px}.cosmic-header nav a,.cosmic-header nav button{color:#eceafa;text-decoration:none;background:none;border:0;min-height:44px;cursor:pointer;font-size:14px}.cosmic-header nav button[aria-pressed=true]{color:#d0ff62}
.cosmic-search-link{margin-left:auto;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border:1px solid #444667;border-radius:25px;background:#111628;color:#a9aec7!important;font-size:13px;text-decoration:none;min-width:260px}
.cosmic-search-link>span:first-child{font-size:27px;line-height:1}.cosmic-signin{min-height:44px;background:linear-gradient(135deg,#9761ff,#6532e6);border:1px solid #a481ff;border-radius:10px;color:white;padding:0 22px;box-shadow:inset 0 1px 0 #c5a4ff55;cursor:pointer}
.cosmic-home main{width:100%;max-width:1600px;margin:auto;padding:0 32px}.cosmic-hero{position:relative;min-height:232px;display:flex;align-items:center;isolation:isolate;margin:0 -32px;overflow:hidden;background:#080b14}
.cosmic-hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;animation:cosmic-float 7s ease-in-out infinite alternate}
.cosmic-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080b14aa,transparent 60%),linear-gradient(0deg,#080b14,transparent 16%)}
.cosmic-hero .hero-copy{padding:32px 48px;max-width:650px}.cosmic-home h1{font-size:44px;line-height:1.08;letter-spacing:-1.8px;font-weight:800;margin:0 0 16px;max-width:580px}.cosmic-home h1 span{color:#d0ff62}.cosmic-hero .hero-intro{font-size:15px;line-height:1.6;color:#e4e5f8;margin:0;max-width:490px}
.cosmic-stars{position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle at 28% 25%,#cbb6ff 0 1px,transparent 2px),radial-gradient(circle at 77% 76%,#cbb6ff 0 1px,transparent 2px),radial-gradient(circle at 58% 18%,#fff 0 1px,transparent 2px);background-size:260px 180px;animation:cosmic-stars 8s ease-in-out infinite alternate}
.cosmic-header nav .cosmic-motion{position:static;display:block;min-height:44px;padding:0 10px;border:1px solid #444667;border-radius:9px;color:#e4ddff;background:#111528;white-space:nowrap;cursor:pointer}.cosmic-motion:disabled{cursor:default;color:#a9aec7}
.cosmic-categories{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;margin:4px 0 20px}
.cosmic-categories button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:94px;border:1px solid #343d58;border-radius:14px;background:linear-gradient(145deg,#172035,#0c101c 70%);box-shadow:inset 0 2px 1px #cad4ff12,0 5px 0 #03050b,0 10px 16px #0004;color:#f4f3ff;font-size:13px;font-weight:650;cursor:pointer;transition:transform .18s,border-color .18s}
.cosmic-categories button:hover{transform:translateY(-3px);border-color:#aa80ff}.cosmic-categories button[aria-pressed=true]{border-color:#c19cff;background:linear-gradient(145deg,#6935b3,#231b58);box-shadow:inset 0 0 16px #ad75ff33,0 5px 0 #120e2b,0 0 18px #9860ff25}.category-icon{display:block;width:50px;height:50px;background-image:url("/assets/cards/categories-840.webp");background-size:700% auto;background-position:0% center;background-repeat:no-repeat;font-size:0;line-height:1;filter:drop-shadow(0 4px 4px #0008)}
.cosmic-home .home-featured{margin:0;padding:0;border:0;background:none}.cosmic-home .home-featured>header{margin:0 0 12px;display:block}.cosmic-home h2{font-size:22px;letter-spacing:-.5px;line-height:1.3;margin:0;color:#f5f4ff}
.cosmic-home .home-featured-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-auto-rows:158px;gap:10px}
.cosmic-home .home-feature{grid-column:auto;grid-row:auto;position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #353d5d;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#141b30,#0a0d19);box-shadow:inset 0 1px 0 #b9c6ff22,0 4px 0 #03050a,0 10px 16px #0005;transition:transform .2s,border-color .2s,box-shadow .2s}
.cosmic-home .home-feature:first-child{grid-column:span 2;grid-row:span 2;border-color:#8d64cd}
.cosmic-home .home-feature:hover,.cosmic-home .home-feature:focus-within{transform:translateY(-4px);border-color:#b98aff;box-shadow:0 5px 0 #221243,0 10px 28px #6e32bd35}
.cosmic-home .home-feature .cosmic-game-link{height:auto;display:block;position:relative;flex:1;min-height:0;text-decoration:none;overflow:hidden;padding:0;border:0}
.cosmic-home .home-feature img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;border-radius:0;transition:transform .3s}
.cosmic-home .home-feature:hover img{transform:none}
/* Keep the full dress and pet visible beside this game's longer title. */
.cosmic-home .home-feature[data-project-id="princess-dress-up"] .cosmic-game-link{display:flex;flex-direction:column}
.cosmic-home .home-feature[data-project-id="princess-dress-up"] .card-picture{position:relative;display:block;flex:1;min-height:0;background:#f5dbee}
.cosmic-home .home-feature[data-project-id="princess-dress-up"] img{object-fit:contain}
.cosmic-home .home-feature[data-project-id="princess-dress-up"] .cosmic-card-copy{position:relative;flex:none;padding:10px 12px!important;background:#101526}

.cosmic-card-copy{position:absolute;bottom:0;left:0;right:0;padding:24px 9px 5px;background:linear-gradient(transparent,#080b14ee 65%)}
.cosmic-home .home-feature h3{color:#fff;font-size:12px;line-height:1.25;font-weight:700;margin:0;text-shadow:0 2px 5px #000;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cosmic-home .home-feature:first-child h3{font-size:25px;margin-bottom:12px}.cosmic-home .home-feature:first-child .cosmic-card-copy{padding:45px 15px 8px}
.cosmic-play{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:44px;padding:8px 18px;background:linear-gradient(#d9ff7b,#b8ed4a);color:#151b06;font-weight:800;font-size:15px;border-radius:9px;box-shadow:0 0 20px #c7ff4833}
.cosmic-stats{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:0 5px;min-height:44px;font-size:11px;color:#d0d4e9;background:#0c101d}.cosmic-stats>span{padding-left:3px;white-space:nowrap}
.cosmic-favorite{background:none;border:0;color:#c9cfe7;cursor:pointer;min-height:44px;min-width:44px;padding:5px;font-size:11px;white-space:nowrap}.cosmic-favorite>span:first-child{font-size:18px;color:#ff95c5;vertical-align:middle}.cosmic-favorite[aria-pressed=true]{color:#ff9ccd}.cosmic-favorite:disabled{cursor:default;opacity:.65}
.cosmic-home .home-feature:first-child .cosmic-stats{padding:0 12px;font-size:13px}.cosmic-view-all{border:1px solid #7855ac;border-radius:13px;text-decoration:none;background:radial-gradient(ellipse at 50% 20%,#4e288c55,transparent 70%),#0d1020;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;font-size:15px;font-weight:650;min-height:44px;box-shadow:inset 0 0 20px #7a42ff15}.cosmic-view-all>span{font-size:38px;color:#a774ff;text-shadow:0 0 22px #be91ff}
.cosmic-notice{font-size:13px;color:#bfc1d8;margin:12px 0;min-height:0}.cosmic-notice:empty{display:none}
.cosmic-home .collection{padding:28px 0 20px;max-width:none;margin:0;scroll-margin-top:20px}.cosmic-home .catalog-console{background:none;border:0;border-radius:0;padding:0;box-shadow:none;color:#f5f4ff}
.cosmic-home .collection-heading{margin:0 0 16px;padding:0;border:0;display:block}.cosmic-home .collection-heading h2{font-size:24px}.cosmic-home .section-index,.cosmic-home .index-stamp{display:none}.cosmic-home .collection-intro{font-size:14px;color:#a9aec7;margin:6px 0 0}
.cosmic-home .catalog-library{display:flex;flex-direction:column;gap:16px}.cosmic-home .catalog-sidebar{position:static;display:grid;grid-template-columns:minmax(180px,2fr) minmax(150px,1fr) minmax(130px,1fr);gap:12px;align-items:end;padding:0;background:none;border:0;box-shadow:none}
.cosmic-home .sidebar-title,.cosmic-home .sidebar-note,.cosmic-home .curated-shelves,.cosmic-home .all-ideas-heading,.cosmic-home .toolbar-title{display:none}
.cosmic-home .search-control{grid-column:1/-1}.cosmic-home .category-control{grid-column:1/-1}
.cosmic-home .control-label,.cosmic-home label,.cosmic-home .filter-group-title{font-size:12px;color:#bfc4db;margin:0 0 7px;display:block}
.cosmic-home .search-box,.cosmic-home input,.cosmic-home select{color:#f4f3ff;background:#111727;border:1px solid #3c4665;border-radius:12px;min-height:44px;box-shadow:inset 0 1px 2px #ffffff08}
.cosmic-home .search-box{display:flex;align-items:center;padding:0 14px}.cosmic-home .search-box input{border:0;background:none;flex:1;width:100%;box-shadow:none;padding:10px}.cosmic-home input::placeholder{color:#a8b1cc}.cosmic-home select{padding:8px 12px;color-scheme:dark}
.cosmic-home .search-box svg{stroke:#b5bfda;width:20px;height:20px;fill:none}
.cosmic-home .category-chips,.cosmic-home .filter-buttons{display:flex;flex-wrap:wrap;gap:7px}
.cosmic-home .category-chip,.cosmic-home .filter-button{border:1px solid #3d4663;border-radius:22px;background:linear-gradient(#171e30,#0e1321);color:#e9e8f7;min-height:44px;padding:8px 14px;box-shadow:none;font-size:13px}
.cosmic-home .category-chip[aria-pressed=true],.cosmic-home .filter-button[aria-pressed=true]{background:#59349b;border-color:#b18bf6;color:white}
.cosmic-home [data-category-count],.cosmic-home [data-duration-count],.cosmic-home [data-format-count]{font-size:10px;color:#bbb5d1;margin-left:5px}
.cosmic-categories [data-category-count]{display:none}
.cosmic-home .picker-button,.cosmic-home .secondary-button{background:#392560;border:1px solid #9372c5;color:#f9f7ff;border-radius:10px;min-height:44px;padding:10px 18px;cursor:pointer}
.cosmic-home .catalog-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:8px 0 16px;padding:0;border:0}.cosmic-home .catalog-summary{border:0;padding:0;display:flex;gap:14px;color:#b9bfd8;font-size:13px}.cosmic-home .sort-control{display:flex;gap:10px;align-items:center}.cosmic-home .sort-control label{margin:0}
.cosmic-home .project-grid{background:none;border:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.cosmic-home .project-item{display:flex;flex-direction:column;background:#101625;border:1px solid #343e5a;border-radius:13px;overflow:hidden;min-width:0;box-shadow:0 4px 0 #02050b;position:relative}
.cosmic-home .project-card{display:block;text-decoration:none;color:#f4f3ff;background:none;border:0;box-shadow:none;min-height:0;padding:0}
.cosmic-home .project-preview{aspect-ratio:4/3;margin:0;position:relative;overflow:hidden;border:0;min-height:0;height:auto;background:#171a30}.cosmic-home .project-preview img{width:100%;height:100%;object-fit:contain}.cosmic-home .preview-badge{display:none}
.cosmic-home .project-copy{padding:10px}.cosmic-home .project-copy h3{font-size:14px;line-height:1.3;color:white;margin:0 0 6px}.cosmic-home .project-copy>p{font-size:12px;line-height:1.5;color:#b4bdd5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}.cosmic-home .project-meta,.cosmic-home .project-hover-detail,.cosmic-home .open-project{display:none}
.cosmic-home .text-button{color:#ceb2ff;min-height:44px}
.cosmic-home .empty-state{color:#d7d8eb;padding:20px;background:#13192b;border-color:#4e4169}.cosmic-home .catalog-footer{padding:20px 0;text-align:center}
.cosmic-home .home-entity{background:none;border-top:1px solid #29314b;margin:20px 0;padding:24px 0;display:block;color:#bdc5dd}.cosmic-home .home-entity>div>p{color:#bdc5dd;max-width:100%;font-size:14px;line-height:1.7}.cosmic-home .home-entity aside{display:none}
.cosmic-home .home-explore{margin:20px 0;padding:0;background:none;border:0}.cosmic-home .home-explore header{display:none}.cosmic-home .home-explore-links{display:flex;flex-wrap:wrap;gap:10px}.cosmic-home .home-explore-links a{min-height:44px;display:block;padding:10px 14px;border:1px solid #343d58;background:#111626;border-radius:10px;text-decoration:none;font-size:12px}.cosmic-home .home-explore-links small,.cosmic-home .home-explore-links em,.cosmic-home .home-explore-links b,.cosmic-home .home-explore-links svg{display:none}
.cosmic-home .home-faq{padding:20px 0 32px;margin:0;border:0;background:none}.cosmic-home .home-faq header p{display:none}.cosmic-home .home-faq>div{display:block;margin-top:14px}.cosmic-home .home-faq details{border:1px solid #323c59;background:linear-gradient(100deg,#111829,#0c111f);border-radius:10px;margin:8px 0;padding:0 16px}.cosmic-home .home-faq summary{cursor:pointer;min-height:48px;padding:14px 0;font-size:14px;color:#f2f0ff}.cosmic-home .home-faq details p{color:#b8c1d9;font-size:14px;line-height:1.7}
.cosmic-home footer{max-width:1536px;margin:0 auto;padding:24px 32px;border-top:1px solid #333048;display:flex;gap:20px;align-items:center;color:#abb6d1;background:none}.cosmic-home .footer-brand{font-size:18px;color:#edeafa}.cosmic-home .footer-links-home{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}.cosmic-home footer a{font-size:11px;color:#bdc4d8}.cosmic-home footer p{font-size:11px}
.cosmic-video{z-index:1;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;background:#101521}
.cosmic-preview-button{position:absolute;right:5px;top:5px;border:1px solid #c1c8e0;border-radius:50%;background:#121b39cc;color:white;width:44px;height:44px;cursor:pointer;z-index:2}
.cosmic-home .home-feature div > .cosmic-play{display:inline-flex;color:#151b06;font-size:15px;line-height:1.3;margin:0}
.cosmic-home .home-feature > a > .cosmic-card-copy{padding:24px 9px 5px}
.cosmic-home .home-feature:first-child > a > .cosmic-card-copy{padding:45px 15px 8px}
.cosmic-home .cosmic-stats>span{display:inline;font-size:11px;line-height:1.4;margin:0}
.cosmic-home .catalog-console::before,.cosmic-home .catalog-console::after{display:none}
.cosmic-home .cosmic-header nav a{display:flex;align-items:center}
.cosmic-home .home-explore-links{border:0}.cosmic-home .home-explore-links strong{font:600 13px/1.4 var(--sans)}
.cosmic-home .project-item>.cosmic-stats{margin-top:auto}
.cosmic-categories button:nth-child(2) .category-icon{background-position:16.6667% center}.cosmic-categories button:nth-child(3) .category-icon{background-position:33.3333% center}.cosmic-categories button:nth-child(4) .category-icon{background-position:50% center}.cosmic-categories button:nth-child(5) .category-icon{background-position:66.6667% center}.cosmic-categories button:nth-child(6) .category-icon{background-position:83.3333% center}.cosmic-categories button:nth-child(7) .category-icon{background-position:100% center}
@keyframes cosmic-drift{from{transform:scale(1)}to{transform:scale(1.045) translateX(-.5%)}}
@keyframes cosmic-stars{from{opacity:.3;transform:translateY(0)}to{opacity:.9;transform:translateY(-8px)}}
.cosmic-home.motion-paused *{animation-play-state:paused!important}
@media(min-width:1500px){.cosmic-home .home-featured-grid{grid-auto-rows:180px}}
@media(max-width:1100px){.cosmic-header{gap:18px;padding:12px 24px}.cosmic-search-link{min-width:44px}.cosmic-search-link>span:last-child{display:none}.cosmic-home .home-featured-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.cosmic-home .project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cosmic-home .catalog-sidebar{grid-template-columns:1fr 1fr}.cosmic-home .picker-button{grid-column:1/-1}}
@media(max-width:700px){
.cosmic-header{padding:8px 12px;gap:8px;min-height:62px;flex-wrap:wrap}.cosmic-brand{font-size:16px;gap:3px}.cosmic-logo{font-size:25px}.cosmic-header nav{order:4;width:100%;justify-content:space-between;gap:8px;border-top:1px solid #262d43}.cosmic-header nav a,.cosmic-header nav button{min-height:44px;font-size:13px}.cosmic-search-link{padding:0;justify-content:center;width:44px;border:0;background:none;margin-left:auto}.cosmic-signin{font-size:12px;min-height:44px;padding:0 12px}
.cosmic-home main{padding:0 12px}.cosmic-home h1{font-size:32px}.cosmic-hero{min-height:0;height:0;margin:0;overflow:visible}.cosmic-hero-art,.cosmic-stars,.cosmic-sky{display:none}.cosmic-hero .hero-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.cosmic-categories{gap:7px;grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0 16px}.cosmic-categories button{min-height:62px;border-radius:10px;gap:4px;padding:5px 2px;font-size:10px}.category-icon{font-size:0;width:32px;height:32px}.cosmic-home .home-featured>header{display:none}
.cosmic-home .home-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:180px;gap:10px}.cosmic-home .home-feature:first-child{grid-column:1/-1;grid-row:span 1;height:calc((100vw - 26px)*.75 + 44px);margin-bottom:0}.cosmic-home .home-featured-grid{grid-template-rows:calc((100vw - 26px)*.75 + 44px)}
.cosmic-home .home-feature:first-child h3{font-size:23px;margin-bottom:8px}.cosmic-home .home-feature:first-child .cosmic-card-copy{padding:35px 14px 5px;display:flex;align-items:center;justify-content:space-between;gap:8px}.cosmic-play{font-size:13px;gap:10px;padding:8px 12px;flex-shrink:0}.cosmic-home .home-feature h3{font-size:13px}.cosmic-home .home-feature:nth-child(n+6){display:none}.cosmic-home .home-featured-grid .cosmic-view-all{grid-column:1/-1;min-height:48px;flex-direction:row;gap:12px}.cosmic-home .home-featured-grid{grid-auto-rows:auto}.cosmic-home .home-feature{height:180px}.cosmic-view-all>span{font-size:22px}
.cosmic-home .collection{padding-top:24px}.cosmic-home h2,.cosmic-home .collection-heading h2{font-size:22px}.cosmic-home .catalog-sidebar{display:flex;flex-direction:column;align-items:stretch;gap:15px}.cosmic-home .category-chip,.cosmic-home .filter-button{font-size:12px;padding:7px 10px}.cosmic-home .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cosmic-home .catalog-toolbar{align-items:stretch}.cosmic-home .catalog-summary{width:100%;flex-wrap:wrap}.cosmic-home .project-copy>p{font-size:12px}.cosmic-home .home-entity>div>p{font-size:13px}
.cosmic-home footer{padding:20px 12px;flex-wrap:wrap}.cosmic-home .footer-links-home{justify-content:flex-start}.cosmic-home .home-feature:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){.cosmic-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


.card-picture{display:block;width:100%;height:100%}

@media(min-width:701px) and (max-height:800px){.cosmic-hero{min-height:156px}.cosmic-hero .hero-copy{padding:14px 48px}.cosmic-home h1{font-size:38px;margin-bottom:10px}}

/* Pointer-position depth uses existing artwork, with no continuous animation loop. */
.cosmic-categories button,.cosmic-home .home-feature,.cosmic-home #project-grid .project-item{transition:transform .38s cubic-bezier(.2,.75,.25,1),border-color .2s,box-shadow .3s}
.cosmic-categories button{position:relative;isolation:isolate}
.cosmic-categories .category-icon{transition:transform .38s cubic-bezier(.2,.75,.25,1),filter .3s}
.cosmic-categories button::after,.cosmic-home .home-feature::after,.cosmic-home #project-grid .project-item::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:0;background:radial-gradient(circle at var(--tilt-light-x,50%) var(--tilt-light-y,50%),#e7dcff40,transparent 65%);transition:opacity .3s}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
.cosmic-home .cosmic-categories button.pointer-tilt,.cosmic-home .home-feature.pointer-tilt,.cosmic-home #project-grid .project-item.pointer-tilt{transform:perspective(850px) rotateX(var(--tilt-rx,0deg)) rotateY(var(--tilt-ry,0deg)) translateY(-4px);transition:transform .12s ease-out,border-color .2s,box-shadow .3s;border-color:#bda0f5;box-shadow:inset 0 1px 0 #ffffff44,0 7px 0 #161026,0 15px 28px #0008}
.cosmic-home .pointer-tilt::after{opacity:1}
.cosmic-categories .pointer-tilt .category-icon{transform:perspective(400px) translate3d(var(--tilt-x,0px),var(--tilt-y,0px),12px) rotateX(var(--tilt-rx,0deg)) rotateY(var(--tilt-ry,0deg)) scale(1.08);filter:drop-shadow(0 8px 5px #000a);transition:transform .12s ease-out,filter .3s}
}
.cosmic-home.motion-paused .pointer-tilt{transform:none}
@media(prefers-reduced-motion:reduce){
.cosmic-categories button:hover,.cosmic-home .home-feature:hover,.cosmic-home .home-feature:focus-within,.cosmic-home .pointer-tilt,.cosmic-categories .pointer-tilt .category-icon{transform:none}
.cosmic-home .pointer-tilt::after{opacity:0}
}

/* Compact category rows keep every choice and the featured action visible. */
.cosmic-categories [data-category="holiday"] .category-icon{background-image:url("/assets/cards/category-holiday.svg");background-size:contain;background-position:center}
.cosmic-categories [data-category="kids"] .category-icon{background-image:url("/assets/cards/category-kids.svg");background-size:contain;background-position:center}
.cosmic-categories [data-category="learning"] .category-icon{background-image:url("/assets/cards/category-learning.svg");background-size:contain;background-position:center}
@media(min-width:701px) and (max-width:1100px){.cosmic-categories{grid-template-columns:repeat(5,minmax(0,1fr))}.cosmic-categories button{min-height:68px}.cosmic-categories .category-icon{width:34px;height:34px}}
@media(max-width:700px){.cosmic-categories{grid-template-columns:repeat(5,minmax(0,1fr))}.cosmic-categories button{font-size:10px;min-height:64px}.cosmic-categories .category-icon{width:30px;height:30px}}

.cosmic-logo{width:36px;height:36px;object-fit:contain;flex-shrink:0}@media(max-width:700px){.cosmic-logo{width:28px;height:28px}}

/* Halloween uses the same raised card language as the main featured collection. */
.holiday-featured{margin:0 0 26px}.holiday-featured>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.holiday-featured h2 span{color:#ffbc6b;margin-left:10px}.holiday-featured header p{margin:0;color:#b9b5c8;font-size:13px}
.holiday-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:140px 140px;gap:10px}
.holiday-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #735037;border-radius:13px;background:linear-gradient(145deg,#271d30,#100e19);box-shadow:inset 0 1px 0 #ffe4b422,0 4px 0 #03050a,0 10px 16px #0005;transition:transform .38s,border-color .2s,box-shadow .3s}
.holiday-card[data-project-id]:first-child{grid-column:span 2;grid-row:span 2;border-color:#c58342}.holiday-card .cosmic-game-link{position:relative;display:block;flex:1;min-height:0;overflow:hidden}.holiday-card .card-picture{position:absolute;inset:0}.holiday-card img[data-card-image]{width:100%;height:100%;object-fit:cover}.holiday-card .cosmic-card-copy{position:absolute;bottom:0;left:0;right:0;padding:30px 10px 10px;background:linear-gradient(transparent,#080b14ed)}.holiday-card h3{font-size:13px;line-height:1.2;margin:0;color:#fff}.holiday-card:first-child h3{font-size:24px;margin-bottom:12px}.holiday-card .cosmic-stats{height:40px;min-height:40px}.holiday-card:first-child .cosmic-card-copy{padding:40px 16px 12px}
.pumpkin-prank{grid-column:6;grid-row:1 / span 2;align-items:center;justify-content:center;padding:16px;gap:12px;color:#fff;text-align:center;cursor:pointer;font:inherit;background:radial-gradient(ellipse at 50% 40%,#693426,#201329 70%)}.pumpkin-prank>img{width:min(100%,150px);height:auto;filter:drop-shadow(0 10px 12px #0008)}.pumpkin-prank>span{font-size:20px;font-weight:800;line-height:1.15}.pumpkin-prank>small{color:#ffc58c;font-size:12px}.pumpkin-prank:hover{border-color:#ffd58e}.holiday-view-all{grid-column:3 / span 3;display:flex;align-items:center;justify-content:center;gap:18px;border:1px solid #735037;border-radius:13px;background:linear-gradient(140deg,#38233e,#11101b);color:#ffd49a;text-decoration:none;font-weight:700;min-height:44px}
@media(min-width:701px){.holiday-view-all[data-holiday-browse]{grid-column:4 / span 2}}
.holiday-card:focus-within,.holiday-view-all:focus-visible{outline:2px solid #ffdb98;outline-offset:3px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.cosmic-home .holiday-card.pointer-tilt{transform:perspective(850px) rotateX(var(--tilt-rx,0deg)) rotateY(var(--tilt-ry,0deg)) translateY(-4px);transition:transform .12s ease-out;box-shadow:0 7px 0 #251525,0 16px 28px #0009}.holiday-card.pointer-tilt::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--tilt-light-x) var(--tilt-light-y),#ffe4ba33,transparent 65%)}}
.pumpkin-takeover{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:#fff}.pumpkin-takeover::backdrop{background:#080b1480}.pumpkin-takeover canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pumpkin-controls{position:absolute;top:max(16px,env(safe-area-inset-top));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.pumpkin-controls h2{font-size:22px;text-shadow:0 2px 7px #000;background:#201020de;padding:12px;border-radius:12px}.pumpkin-controls button{min-height:48px;padding:10px 18px;border:2px solid #ffdc98;border-radius:12px;background:#201020;color:#fff;font:700 15px system-ui;cursor:pointer}.pumpkin-controls button:focus-visible{outline:3px solid #fff;outline-offset:3px}.pumpkins-open{overflow:hidden}
@media(max-width:700px){.holiday-featured{margin-bottom:20px}.holiday-featured>header{display:block;margin-bottom:10px}.holiday-featured h2{font-size:20px}.holiday-featured header p{display:none}.holiday-featured h2 span{margin-left:6px}.holiday-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:8px}.holiday-card[data-project-id]:first-child{grid-column:1/-1;grid-row:auto;height:156px;order:0}.holiday-card:first-child .cosmic-card-copy{padding:30px 12px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.holiday-card:first-child h3{font-size:18px;margin:0}.holiday-card .cosmic-stats{height:32px;min-height:32px}.holiday-card[data-project-id]{height:156px;order:2}.pumpkin-prank{grid-column:1/-1;grid-row:auto;order:1;min-height:84px;flex-direction:row;padding:8px 12px;gap:10px}.pumpkin-prank>img{width:62px;height:62px}.pumpkin-prank>span{font-size:18px;max-width:210px}.pumpkin-prank>small{display:none}.holiday-view-all{grid-column:auto;order:3;text-align:center;padding:14px}.pumpkin-controls{align-items:flex-start}.pumpkin-controls h2{font-size:16px;max-width:170px}.pumpkin-controls button{font-size:13px;padding:10px;flex-shrink:0}}

/* Decorative hero movement stays behind the stationary copy and controls. */
.cosmic-sky{position:absolute;inset:0 0 0 38%;pointer-events:none;z-index:-1;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 20%)}
.cosmic-comet{position:absolute;left:28%;top:10%;width:140px;height:2px;border-radius:100%;background:linear-gradient(90deg,transparent,#bfb1ff 75%,#fff);box-shadow:5px 0 9px #b8dbff;opacity:0;animation:cosmic-shoot 5.4s ease-in infinite}
.cosmic-comet:nth-child(2){left:55%;top:35%;width:100px;animation-delay:1.8s;animation-duration:6.2s}
.cosmic-comet:nth-child(3){left:10%;top:60%;width:80px;animation-delay:3.2s;animation-duration:7s}
.cosmic-glow{position:absolute;left:25%;top:5%;width:60%;height:90%;border-radius:50%;background:radial-gradient(ellipse,#748dff24,transparent 65%);animation:cosmic-breathe 4s ease-in-out infinite alternate}
@keyframes cosmic-float{0%{transform:scale(1.045) translate(-.7%,-1%)}50%{transform:scale(1.075) translate(.2%,1.2%)}100%{transform:scale(1.045) translate(.7%,-1%)}}
@keyframes cosmic-shoot{0%,12%{opacity:0;transform:translate(-120px,-45px) rotate(20deg)}18%{opacity:.9}42%{opacity:0;transform:translate(380px,145px) rotate(20deg)}100%{opacity:0;transform:translate(380px,145px) rotate(20deg)}}
@keyframes cosmic-breathe{from{opacity:.25;transform:scale(.9)}to{opacity:1;transform:scale(1.12)}}
.cosmic-hero.hero-offscreen *{animation-play-state:paused!important}

.hero-tab-hidden .cosmic-hero *{animation-play-state:paused!important}


/* Separate vector scenes eliminate sprite bleed and allow purposeful part animation. */
.cosmic-categories button{overflow:visible}.cosmic-categories button:is(:hover,:focus-visible){z-index:5}
.cosmic-categories button .category-icon{background:none!important;overflow:visible;font-size:0}
.category-scene{width:100%;height:100%;overflow:visible;display:block}
.scene-part{transform-box:fill-box;transform-origin:center;animation-duration:2.6s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:paused}
.gem-spark{animation-name:scene-spark}.brick{animation-name:scene-build;transform-origin:center bottom}.brick{animation-fill-mode:backwards}.brick-two{animation-delay:.25s}.brick-three{animation-delay:.5s}
.zen-ripple{animation-name:scene-ripple}.lotus{animation-name:scene-zen}.paint-stroke{stroke-dasharray:100;animation-name:scene-paint}.paint-brush{animation-name:scene-brush;transform-origin:bottom left}
.game-screen{animation-name:scene-screen}.game-player{animation-name:scene-player}.game-pixel,.game-button{animation-name:scene-spark}
.bubble{animation-name:scene-bubble}.bubble-two{animation-delay:-.8s}.bubble-three{animation-delay:-1.6s}.dice{animation-name:scene-dice}.dice-star{animation-name:scene-spark}
.gift-ribbon{animation-name:scene-unwrap;transform-origin:center top}.gift-lid{animation-name:scene-lid}.teddy-arm{animation-name:scene-wave;transform-box:view-box;transform-origin:68px 61px}.book-page{animation-name:scene-page;transform-box:view-box;transform-origin:48px 48px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.cosmic-home:not(.motion-paused) .cosmic-categories button:hover .scene-part{animation-play-state:running}}
@media(prefers-reduced-motion:no-preference){.cosmic-home:not(.motion-paused) .cosmic-categories button:focus-visible .scene-part{animation-play-state:running}}
.cosmic-categories button:not(:hover):not(:focus-visible) .scene-part{animation-name:none}
@keyframes scene-spark{0%,100%{opacity:.25;scale:.65}50%{opacity:1;scale:1.15}}
@keyframes scene-build{0%,12%{translate:0 -36px;opacity:0;rotate:-12deg}38%,85%{translate:0 0;opacity:1;rotate:0deg}100%{translate:0 -36px;opacity:0;rotate:-12deg}}
@keyframes scene-ripple{0%{scale:.65;opacity:.2}65%{scale:1.35;opacity:.8}100%{scale:1.5;opacity:0}}
@keyframes scene-zen{0%,100%{translate:0 0;scale:1}50%{translate:0 -7px;scale:1.08}}
@keyframes scene-paint{0%,10%{stroke-dashoffset:100;opacity:0}20%{opacity:1}80%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes scene-brush{0%,10%{translate:-22px 0;rotate:-20deg}80%,100%{translate:24px 0;rotate:18deg}}
@keyframes scene-screen{0%,100%{translate:0 0}50%{translate:0 -8px}}
@keyframes scene-player{0%,100%{translate:0 0}40%{translate:15px -10px}75%{translate:30px 0}}
@keyframes scene-bubble{0%{translate:0 0;opacity:0;scale:.5}20%{opacity:1}85%{opacity:.8}100%{translate:3px -66px;opacity:0;scale:1.4}}
@keyframes scene-dice{0%,15%{rotate:0deg;translate:0 0}65%{rotate:360deg;translate:0 -10px}100%{rotate:360deg;translate:0 0}}

@keyframes scene-unwrap{0%,10%,95%,100%{scale:1 1;opacity:1}30%,75%{scale:1.65 .08;opacity:0}}
@keyframes scene-lid{0%,20%,95%,100%{translate:0 0;rotate:0deg}45%,75%{translate:8px -29px;rotate:14deg}}
@keyframes scene-wave{0%,100%{rotate:0deg}20%,55%{rotate:-35deg}38%,73%{rotate:5deg}}
@keyframes scene-page{0%,10%{transform:perspective(180px) rotateY(0deg)}65%,85%{transform:perspective(180px) rotateY(-175deg)}100%{transform:perspective(180px) rotateY(0deg)}}

/* Layered pumpkin preview: the character moves independently of its porch. */
.pumpkin-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;isolation:isolate;--lift:32px}
.pumpkin-scene-ready .card-picture{opacity:0}
.holiday-card.pumpkin-scene-ready .cosmic-card-copy{z-index:2}
.pumpkin-porch{position:absolute;inset:0;background:url('/assets/cards/pumpkin-porch-motion.webp') center 58%/cover}
.pumpkin-puppet{position:absolute;left:50%;bottom:8%;height:75%;aspect-ratio:1;translate:-50% 0;transform-origin:50% 90%;z-index:2;filter:drop-shadow(0 0 9px #ff9b3644)}
.pumpkin-puppet img{display:block;width:100%;height:100%;object-fit:contain}
.pumpkin-ground-shadow{position:absolute;left:32%;bottom:6%;width:36%;height:12%;background:radial-gradient(ellipse,#100805e8,transparent 69%);transform-origin:center}
.pumpkin-aura{position:absolute;inset:5% 12% 0;background:radial-gradient(ellipse,#ff95136b,transparent 66%);opacity:.5;mix-blend-mode:screen}
.pumpkin-mist{position:absolute;left:-30%;bottom:4%;width:110%;height:28%;background:radial-gradient(ellipse,#c5cad238,transparent 65%);opacity:.45;z-index:3;transform:translateX(-15%)}
.pumpkin-mist.second{bottom:18%;left:10%;opacity:.3}
.pumpkin-spark{position:absolute;left:var(--x);bottom:10%;width:4px;height:4px;background:#ffe7a1;border-radius:50%;box-shadow:0 0 7px #ff8c28;opacity:0;z-index:3}
@media(prefers-reduced-motion:no-preference){
.pumpkin-puppet{animation:pumpkin-hop 4.8s ease-in-out infinite}
.pumpkin-ground-shadow{animation:pumpkin-shadow 4.8s ease-in-out infinite}
.pumpkin-aura{animation:pumpkin-firelight 2.4s ease-in-out infinite}
.pumpkin-mist{animation:pumpkin-mist 7s ease-in-out infinite alternate}
.pumpkin-mist.second{animation-delay:-3.5s;animation-direction:alternate-reverse}
.pumpkin-spark{animation:pumpkin-spark 3.2s linear var(--delay) infinite}
}
@keyframes pumpkin-hop{0%,100%{transform:translateY(0) rotate(-3deg) scale(1)}12%{transform:translateY(6px) rotate(0) scale(1.09,.9)}32%{transform:translateY(calc(-1 * var(--lift))) rotate(-10deg) scale(.98,1.04)}49%{transform:translateY(calc(-.8 * var(--lift))) rotate(9deg) scale(1.02)}65%{transform:translateY(6px) rotate(-2deg) scale(1.12,.87)}79%{transform:translateY(calc(-.35 * var(--lift))) rotate(5deg) scale(.98,1.03)}91%{transform:translateY(0) rotate(-3deg) scale(1)}}
@keyframes pumpkin-shadow{0%,100%{transform:scale(1);opacity:.85}12%,65%{transform:scale(1.15,.8);opacity:1}32%,49%{transform:scale(.65,.8);opacity:.4}79%{transform:scale(.85);opacity:.65}}
@keyframes pumpkin-firelight{0%,100%{opacity:.35;transform:scale(.9)}42%{opacity:.9;transform:scale(1.12)}62%{opacity:.5}78%{opacity:.75}}
@keyframes pumpkin-mist{from{transform:translateX(-15%) scaleX(.9)}to{transform:translateX(35%) scaleX(1.15)}}
@keyframes pumpkin-spark{0%{opacity:0;transform:translate(0,10px) scale(.5)}15%{opacity:.9}65%{opacity:.7}100%{opacity:0;transform:translate(var(--drift),-160px) scale(.3)}}
.cosmic-home.motion-paused .pumpkin-scene *,.hero-tab-hidden .pumpkin-scene *,.pumpkin-scene.offscreen *{animation-play-state:paused!important}
@media(max-width:700px){.pumpkin-scene{--lift:16px}.pumpkin-puppet{left:57%;bottom:9%;height:73%}.pumpkin-ground-shadow{left:39%;bottom:6%}.pumpkin-spark{width:3px;height:3px}}

/* Compact browsing keeps matching experiences close to the selected category. */
.cosmic-home .collection-heading{scroll-margin-top:16px}
.cosmic-home .collection-heading h2:focus{outline:none}
.cosmic-home .collection-heading h2:focus-visible{outline:2px solid #ba96ff;outline-offset:5px}
.cosmic-home .catalog-library{padding-top:0;gap:8px}
.cosmic-home .catalog-sidebar{display:block}
.cosmic-home .browse-bar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(150px,1fr);gap:12px;padding:16px;border:1px solid #303a54;border-radius:16px;background:#101523}
.cosmic-home .browse-bar .search-control{grid-column:auto}
.cosmic-home .browse-bar .sort-control{display:block}
.cosmic-home .browse-bar select{width:100%}
.cosmic-home .browse-filters{margin-top:8px}
.cosmic-home .browse-filters summary{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;padding:8px 12px;border:1px solid #3d4663;border-radius:10px;color:#ddd5f5;cursor:pointer;list-style:none;font-size:13px}
.cosmic-home .browse-filters summary::after{content:'+';font-size:20px}
.cosmic-home .browse-filters[open] summary::after{content:'−'}
.cosmic-home .browse-filter-options{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:16px;padding:16px 0}
.cosmic-home .catalog-toolbar{margin:0 0 12px}
.cosmic-home .catalog-summary{width:100%;justify-content:space-between;align-items:center;gap:8px}
.cosmic-home .catalog-summary p{margin:0}
.cosmic-home .catalog-summary button{min-height:44px;color:#dac6ff}
@media(max-width:700px){
 .cosmic-home .browse-bar{grid-template-columns:1fr 1fr;gap:10px;padding:12px}
 .cosmic-home .browse-bar .search-control{grid-column:1/-1}
 .cosmic-home .browse-bar label{font-size:12px;margin-bottom:5px}
 .cosmic-home .browse-bar select{min-width:0;font-size:14px}
 .cosmic-home .browse-bar input{font-size:16px}
 .cosmic-home .browse-filter-options{grid-template-columns:1fr}
 .cosmic-home .collection-intro{display:none}
 .cosmic-home .collection-heading{margin-bottom:12px}
}

.cosmic-home .catalog-sidebar{width:100%;min-width:0;box-sizing:border-box}
.cosmic-home .catalog-summary{flex-direction:row;flex-wrap:nowrap;text-align:left}
.cosmic-home .catalog-summary>p{color:#bbc4dd;font-size:13px}
.cosmic-home .browse-bar label{text-transform:none;letter-spacing:normal;font-weight:500}
.cosmic-home .browse-bar .sort-control{max-width:none}
.cosmic-home .browse-bar>div{min-width:0}

.cosmic-home .catalog-toolbar{min-height:44px;gap:8px;align-items:center}
.cosmic-home .catalog-toolbar .browse-filters{margin:0}
.cosmic-home .catalog-toolbar .browse-filters[open]{width:100%}
.cosmic-home .catalog-toolbar .catalog-summary{width:auto;flex:1;min-height:44px}
.cosmic-home .catalog-summary .summary-actions{gap:0}
.cosmic-home .catalog-summary #project-picker-status:empty{display:none}
@media(max-width:700px){.cosmic-home .catalog-summary{gap:4px}.cosmic-home .catalog-summary>p{font-size:12px}.cosmic-home .browse-filters summary{font-size:12px;padding:6px 8px}}

/* Existing recorded thumbnail previews retain static posters and controls. */
[data-window-cleaner-preview] .window-cleaner-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
[data-window-cleaner-playing="true"] .window-cleaner-preview-video { opacity: 1; }
[data-window-cleaner-preview] .cosmic-card-copy { z-index: 2; }
[data-window-cleaner-preview] [data-card-image] { object-position: 50% 50%; }
.window-cleaner-preview-button {
  display: grid;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #d3e2e8aa;
  border-radius: 50%;
  padding: 0;
  background: #081b32dd;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.window-cleaner-preview-button:focus-visible { outline: 3px solid #d9ff7b; outline-offset: 2px; }
@media (max-width: 700px), (hover: none), (pointer: coarse) {
  .window-cleaner-preview-button:not([hidden]) { display: grid; }
}
.window-cleaner-preview-button[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .window-cleaner-preview-video, .window-cleaner-preview-button { display: none !important; }
}

/* Enlarged phone layouts may scroll vertically without compressed controls. */
@media(max-width:320px){.cosmic-header nav{flex-wrap:wrap}.cosmic-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-card:first-child .cosmic-card-copy,.cosmic-home .home-feature:first-child .cosmic-card-copy{flex-wrap:wrap}.pumpkin-prank{flex-wrap:wrap}.pumpkin-prank>span{max-width:100%;overflow-wrap:anywhere}.holiday-view-all{flex-direction:column;overflow-wrap:anywhere;min-width:0}}

@media(min-width:701px) and (max-width:900px){.cosmic-header{flex-wrap:wrap}.cosmic-header nav{order:4;width:100%;justify-content:space-between}}

.cosmic-settings{position:relative}.cosmic-settings>summary{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:0 12px;border:1px solid #444667;border-radius:9px;color:#e4ddff;background:#111528;cursor:pointer;list-style:none}.cosmic-settings>summary::-webkit-details-marker{display:none}.cosmic-settings>summary:focus-visible{outline:3px solid #d4ff68;outline-offset:2px}.cosmic-settings-panel{position:absolute;z-index:100;top:calc(100% + 8px);right:0;min-width:220px;box-sizing:border-box;padding:12px;background:#111528;border:1px solid #626080;border-radius:12px;box-shadow:0 10px 30px #0009}.cosmic-settings-panel>span{display:block;margin-bottom:8px;color:#b9bfd4;font-size:13px}.cosmic-header nav .cosmic-settings .cosmic-motion{width:100%;white-space:normal;text-align:left;padding:8px 12px;font:inherit}.cosmic-preview-button,.window-cleaner-preview-button{display:none!important}

/* Editorial previews use published article artwork and stay separate from game cards. */
.cosmic-home .home-blog{margin:30px 0 22px;padding:26px 0 12px;border-top:1px solid #29314b}
.cosmic-home .home-blog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.cosmic-home .home-blog h2{margin:0 0 6px;font-size:28px;line-height:1.2;letter-spacing:-.03em}
.cosmic-home .home-blog>header p{margin:0;color:#bdc5dd;font-size:14px;line-height:1.6}
.cosmic-home .home-blog-all{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 14px;border:1px solid #515375;border-radius:9px;color:#e3d6ff;text-decoration:none;font-size:14px;white-space:nowrap}
.cosmic-home .home-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cosmic-home .home-blog-card{min-width:0}
.cosmic-home .home-blog-link{display:block;height:100%;overflow:hidden;border:1px solid #38425e;border-radius:14px;background:linear-gradient(115deg,#141a2e,#0e1423);color:var(--ink);text-decoration:none}
.cosmic-home .home-blog-link:hover,.cosmic-home .home-blog-all:hover{border-color:#ad82ff;background-color:#1b2037}
.cosmic-home .home-blog-link:focus-visible,.cosmic-home .home-blog-all:focus-visible{outline:3px solid var(--lime);outline-offset:4px}
.cosmic-home .home-blog-link figure{margin:0;min-width:0;display:flex;align-items:center;background:#101525}
.cosmic-home .home-blog-link img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.cosmic-home .home-blog-copy{padding:22px;align-self:center;min-width:0}
.cosmic-home .home-blog-date{margin:0 0 10px!important;color:#bcb1d5!important;font-size:12px!important}
.cosmic-home .home-blog-copy h3{margin:0 0 12px;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.025em}
.cosmic-home .home-blog-copy>p{margin:0 0 12px;color:#bdc5dd;font-size:14px;line-height:1.7}
.cosmic-home .home-blog-read{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:var(--lime);font-size:14px;font-weight:700}
.cosmic-home .home-blog-card:only-child{grid-column:1/-1}
.cosmic-home .home-blog-card:only-child .home-blog-link{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.cosmic-home .home-blog-card:only-child img{height:auto}
@media(max-width:1100px){.cosmic-home .home-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.cosmic-home .home-blog-card:only-child .home-blog-link{display:block}}
@media(max-width:700px){.cosmic-home .home-blog{margin-top:24px;padding-top:22px}.cosmic-home .home-blog>header{align-items:flex-start;flex-wrap:wrap;gap:12px}.cosmic-home .home-blog h2{font-size:25px}.cosmic-home .home-blog-grid{grid-template-columns:minmax(0,1fr)}.cosmic-home .home-blog-card:only-child .home-blog-link{display:block}.cosmic-home .home-blog-card:only-child img{height:auto}.cosmic-home .home-blog-copy{padding:18px}.cosmic-home .home-blog-copy h3{font-size:23px}}
/* A one-pixel buffer keeps these 44px touch targets above the minimum under fractional device scaling. */
.cosmic-home .cosmic-brand,.cosmic-home .cosmic-signin,.cosmic-home .cosmic-settings>summary,.cosmic-home .cosmic-play{min-height:45px}

/* Leave the rebuilt pumpkin's face clear of the overlaid card title. */
.holiday-card[data-project-id="virtual-pumpkin-carving"] h3{max-width:34%;margin:0}
@media(min-width:701px) and (max-width:1100px){.holiday-card[data-project-id="virtual-pumpkin-carving"] h3{font-size:16px;line-height:1.15}}
.holiday-card[data-project-id="virtual-pumpkin-carving"] .cosmic-card-copy{inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:12px;padding:16px;background:linear-gradient(90deg,#141323eb,#14132365 35%,transparent 58%)}
@media(max-width:700px){.holiday-card[data-project-id="virtual-pumpkin-carving"] .cosmic-card-copy{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:linear-gradient(90deg,#141323cc,transparent 32%,transparent 68%,#14132355)}.holiday-card[data-project-id="virtual-pumpkin-carving"] h3{max-width:27%;font-size:18px}}
.cosmic-home .home-feature[data-project-id="virtual-pumpkin-carving"]:first-child h3{max-width:100%;font-size:20px;line-height:1.15;white-space:normal;overflow:visible;display:block;-webkit-line-clamp:unset}
/* The shared thumbnail controller reserves the lead caption area. */
/* Upvote pill in the collection card footer: arrow, count, arrow, then views and Save. */
.cosmic-home .project-item>.cosmic-stats{container-type:inline-size;justify-content:flex-start;gap:4px;padding:0 4px 0 6px}
.cosmic-home .project-item>.cosmic-stats>span{margin-left:auto}
.cosmic-home .cosmic-stats .project-votes{display:inline-flex;flex-direction:row;align-items:center;flex:none;gap:0;margin:0;padding:1px;border:1px solid #3a4568;border-radius:999px;background:#161d33;color:#e9ecf9}
.cosmic-home .cosmic-stats .vote-actions{display:contents}
.cosmic-home .cosmic-stats .vote-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:0;min-height:0;padding:0;border:0;border-radius:999px;background:none;color:#aeb7d3;cursor:pointer;transition:background-color .15s,color .15s,transform .15s}
.cosmic-home .cosmic-stats .vote-button::after{content:"";position:absolute;inset:-6px -1px}
.cosmic-home .cosmic-stats .vote-symbol{display:flex}
.cosmic-home .cosmic-stats .vote-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.cosmic-home .cosmic-stats .vote-button[data-vote="-1"] svg{transform:rotate(180deg)}
.cosmic-home .cosmic-stats .vote-count,.cosmic-home .cosmic-stats .vote-status,.cosmic-home .cosmic-stats .upvote-total-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cosmic-home .cosmic-stats .upvote-total{display:block;min-width:20px;padding:0 1px;text-align:center;font-size:12px;font-weight:800;line-height:1;color:inherit}
.cosmic-home .cosmic-stats .upvote-total-value{font:inherit;font-variant-numeric:tabular-nums;transition:opacity .2s}
.cosmic-home .project-grid:not([data-voting-ready]) .cosmic-stats .upvote-total-value{opacity:0}
.cosmic-home .project-grid[data-voting-ready="unavailable"] .cosmic-stats .project-votes{opacity:.5}
.cosmic-home .cosmic-stats .vote-button[data-vote="1"]:hover:not(:disabled){background:rgba(255,128,64,.16);color:#ff8a4c}
.cosmic-home .cosmic-stats .vote-button[data-vote="-1"]:hover:not(:disabled){background:rgba(140,160,255,.16);color:#9aabff}
.cosmic-home .cosmic-stats .vote-button:active:not(:disabled){transform:scale(.88)}
.cosmic-home .cosmic-stats .vote-button:focus-visible{outline:2px solid #c8b8ff;outline-offset:1px}
.cosmic-home .cosmic-stats .vote-button:disabled{cursor:default;opacity:.4}
.cosmic-home .cosmic-stats .vote-button[aria-pressed="true"]{opacity:1;background:none}
.cosmic-home .cosmic-stats .vote-button[aria-pressed="true"] svg{fill:currentColor}
.cosmic-home .cosmic-stats .project-votes[data-current-vote="1"]{border-color:rgba(255,138,76,.55);background:rgba(255,128,64,.12)}
.cosmic-home .cosmic-stats .project-votes[data-current-vote="1"] .vote-button[aria-pressed="true"],.cosmic-home .cosmic-stats .project-votes[data-current-vote="1"] .upvote-total{color:#ff8a4c}
.cosmic-home .cosmic-stats .project-votes[data-current-vote="-1"]{border-color:rgba(154,171,255,.5);background:rgba(140,160,255,.1)}
.cosmic-home .cosmic-stats .project-votes[data-current-vote="-1"] .vote-button[aria-pressed="true"],.cosmic-home .cosmic-stats .project-votes[data-current-vote="-1"] .upvote-total{color:#9aabff}
/* Two-column phone cards: the pill and Save keep their room, views step aside. */
@container (max-width:205px){.cosmic-home .cosmic-stats>span{display:none}.cosmic-home .cosmic-stats .project-votes{margin-right:auto}}
@media(prefers-reduced-motion:reduce){.cosmic-home .cosmic-stats .vote-button{transition:none}.cosmic-home .cosmic-stats .vote-button:active:not(:disabled){transform:none}}
