.studio {background:var(--bg);color:var(--ink)}
.studio .page {max-width:1180px;padding:12px clamp(16px,3vw,40px)}
.studio .site-header {margin:0 0 12px;padding:0 0 8px;justify-content:space-between}
.studio .brand img {width:136px}
.studio .brand span,.studio .site-footer {color:var(--muted)}
.feature {position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;background:radial-gradient(ellipse at 84% 90%,#705895,transparent 63%),linear-gradient(105deg,#202941,#31395f);border-radius:26px;color:#fff4d9}
.copy {padding:clamp(22px,3.5vw,52px);z-index:1}
.release {font-size:12px;letter-spacing:.17em;font-weight:650;color:#ffd48a}
.feature h1,.library-head h2,.preview h2 {font-family:var(--font-display);font-weight:400}
.feature h1 {font-size:clamp(54px,6vw,88px);margin:10px 0;line-height:.95}
.feature h1 span {display:block;font-size:.55em;color:#ffc97a}
.copy p {max-width:37ch;margin:15px 0 20px;line-height:1.35}
.actions,.library-head,.library-head nav {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.actions a {color:inherit}
.actions .download {background:#ffce87;color:#232942;font-weight:600;text-decoration:none;padding:10px 16px;border-radius:12px}
.art {position:absolute;inset:0 0 0 52%;display:flex;align-items:center;justify-content:center;gap:12px;transform:rotate(9deg)}
.art img {width:39%;border:4px solid #fff2d7;border-radius:20px;box-shadow:0 16px 38px #17132f77;animation:float 6s ease-in-out infinite alternate}
.art img+img {align-self:flex-start;margin-top:8%;animation-delay:-3s}
@keyframes float {to {transform:translateY(-10px)}}
.library-head {justify-content:space-between;margin:18px 0 12px}
.library-head h2 {font-size:30px;margin:0}
.library-head nav {gap:2px}
.library-head nav a {color:inherit;text-decoration:none;padding:4px 12px;border-radius:20px}
.library-head a[aria-current] {background:var(--ink);color:var(--bg)}
.shelf {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shelf .app-card,.preview {display:grid;grid-template-columns:54px 1fr;align-content:start;align-items:start;gap:2px 12px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:12px;transition:transform .2s,box-shadow .2s}
.shelf .app-card:hover {transform:translateY(-2px);box-shadow:0 5px 15px #37303616}
.shelf article[hidden] {display:none}
.shelf .icon {width:54px;height:54px;border-radius:12px}
.shelf h2 {font-size:20px;line-height:1.1;margin:0}
.shelf .status,.preview small {background:none;color:var(--muted);padding:0;font-size:13px}
.shelf .links {grid-column:2;gap:10px;margin:0}
.shelf .btn {color:var(--muted);border:0;padding:0;background:none;font-size:12px;text-decoration:underline}
.preview>span {display:grid;place-items:center;width:54px;height:54px;background:#dcd9fa;color:#504778;border-radius:12px;font-size:32px}
.preview:last-child>span {background:#c8eadf;color:#285e53}
.studio .site-footer {margin-top:14px;padding-top:8px;border-color:var(--line)}
@media(max-width:820px){.shelf{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.feature{display:block}.copy{padding:22px}.feature h1{font-size:50px}.art{inset:0 -24% 0 56%;opacity:.22}.art img{width:60%}.copy p{max-width:27ch}.shelf{grid-template-columns:1fr}.library-head{gap:8px}.studio .brand span{display:none}}
@media(prefers-reduced-motion:reduce){.art img{animation:none}.shelf article{transition:none}}

.showcase {position:relative;display:grid;isolation:isolate;background:#202941;border-radius:26px}
.showcase .feature {grid-area:1/1;padding-bottom:30px;opacity:1;transition:opacity .8s ease}
.showcase .feature[inert] {opacity:0;pointer-events:none}
.showcase .bloat-float {background:linear-gradient(110deg,#103145,#12687a)}
.showcase .hanafuda {background:linear-gradient(110deg,#341e33,#813d51)}
.showcase .livewaifu {background:linear-gradient(110deg,#342843,#755482)}
.slide-controls {position:absolute;z-index:2;bottom:8px;left:clamp(22px,3.5vw,52px);display:flex;align-items:center;color:white}
.slide-controls[hidden] {display:none}
.slide-controls button {display:grid;place-items:center;width:30px;height:30px;border:0;background:transparent;color:inherit;cursor:pointer}
.slide-controls button:focus-visible {outline:2px solid #ffd48a;border-radius:5px}
.slide-dot::after {content:"";width:8px;height:8px;border:1px solid currentColor;border-radius:100%}
.slide-dot[aria-current]::after {background:#ffd48a;border-color:#ffd48a}
@media(prefers-reduced-motion:reduce){.showcase .feature{transition:none}}

@media (prefers-color-scheme: light) {
  .studio {
    --bg: #efcfb6;
    --card: #f4d9bf;
    --line: #c49c99;
    --muted: #504956;
    min-height: 100vh;
    background: radial-gradient(ellipse at top right, #cec1e4, transparent 62%),
                linear-gradient(130deg, #f4ce9e, #edc5b7 60%, #d4c6dc);
  }
  .shelf .theme-capy-up {--card:#f4d3aa}
  .shelf .theme-bloat {--card:#bcdedb}
  .shelf .theme-hanafuda {--card:#ecc5ce}
  .shelf .theme-livewaifu {--card:#d8c9eb}
  .shelf .preview {--card:#d6d2e9}
  .shelf .preview:last-child {--card:#cbdcc9}
  .shelf article {border-color:rgba(64,44,63,.22)}
}

.rotation::before {content:"";display:block}
.rotation[data-icon="pause"]::before {width:4px;height:14px;border-inline:4px solid currentColor;box-sizing:content-box}
.rotation[data-icon="play"]::before {border-block:7px solid transparent;border-left:11px solid currentColor}
.actions .download {display:inline-flex;align-items:center;gap:8px}
.shelf article > div {display:grid;grid-template-rows:1fr auto;min-height:64px}
.shelf article h2 {align-self:start}
.shelf .status,.shelf .preview small {align-self:end;justify-self:start}
.shelf h2 {font-family:var(--font-display-studio,"Lilita One",sans-serif);font-weight:400}
.shelf .subtitle {display:block;font:450 14px/1.35 var(--font-body);color:var(--muted)}
.shelf .status,.shelf .preview small {border:0;text-transform:none;letter-spacing:normal;font:450 13px/1.4 var(--font-body)}

.shelf .app-card {position:relative;isolation:isolate;padding-right:32px}
.shelf .app-card h2 a::after {content:"";position:absolute;inset:0;border-radius:16px}
.shelf .app-card h2 a:focus-visible::after {outline:3px solid var(--ink);outline-offset:2px}
.shelf .app-card::before {content:"";position:absolute;top:18px;right:16px;width:7px;height:7px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);pointer-events:none}
.shelf .app-card .links a {position:relative;z-index:1}

.collection-back {display:inline-block;margin:0 0 12px;color:var(--ink);font-size:15px;text-decoration:none}
.collection-back:hover {text-decoration:underline}
.product .hero {margin:0;padding:clamp(22px,3.5vw,52px);gap:clamp(16px,3vw,38px);background:linear-gradient(110deg,#202941,var(--hero-end,#564771));color:#fff4d9;border:0;border-radius:26px}
.product.hanafuda {--hero-end:#78384d}
.product.bloat-float {--hero-end:#196079}
.product.livewaifu {--hero-end:#755482}
.product .hero h1 {font-size:clamp(36px,5vw,70px);line-height:1}
.product .hero h1 span {display:block;font-size:.55em;margin-top:5px;color:#ffce87}
.product .hero p,.product .cta .note {color:#fff1df}
.product .features .card {border-radius:16px}
.product .features h3 {color:var(--ink)}
.product .shots {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:10px}
.product .shots a {width:100%;max-width:180px}
#studio-view:focus {outline:none}
.shelf .app-card:active,.actions a:active,.collection-back:active {filter:brightness(.88)}

/* Keep the studio masthead in place while the active view scrolls. */
.studio {height:100vh;height:100dvh;overflow:hidden}
.studio .page {display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;width:100%;box-sizing:border-box;padding-block:0}
.studio .site-header {position:sticky;top:0;z-index:3;margin:0;min-height:64px;padding:8px 0;border-bottom:1px solid var(--line)}
.studio #studio-view {min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 4px 16px;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
.studio .reading {max-width:780px;margin-inline:auto}
@media(max-width:600px){.studio .site-header{min-height:54px}.studio #studio-view{padding-inline:2px}}

.actions a:not(.download),.collection-back {display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;border-radius:12px;font-weight:550;text-decoration:none;box-sizing:border-box}
.actions a:not(.download) {border:1px solid #fff6;background:#ffffff12}
.actions a:not(.download):hover {background:#ffffff26}
.studio .collection-back {background:var(--card);border:1px solid var(--line);text-decoration:none}
.studio .collection-back:hover {border-color:var(--muted)}

.studio .page {max-width:none;padding:0;grid-template-rows:auto minmax(0,1fr) auto;--gutter:clamp(16px,4vw,84px)}
.studio .site-header,.studio .site-footer {width:100%;box-sizing:border-box;padding-inline:var(--gutter)}
.studio .site-footer {margin:0;padding-block:8px;align-items:center}
.studio #studio-view {padding-inline:var(--gutter)}
.studio .site-nav .collection-back,.studio .site-nav .product-back {margin:0;font-size:15px;text-decoration:none}
.catalog-groups {display:grid;grid-template-columns:1fr 2fr;gap:14px}
.catalog-group:first-child {grid-column:1/-1}
.catalog-group h3 {margin:0 0 6px;color:var(--muted);font-size:16px;font-weight:550}
.catalog-group .shelf {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.catalog-group:only-child,.catalog-group:has(~[hidden]):first-child {grid-column:1/-1}
@media(max-width:700px){.catalog-groups{grid-template-columns:1fr}.studio .site-footer{font-size:12px;gap:2px 12px}.studio .brand img{max-width:108px}.studio .site-nav a{padding:6px 10px}.studio .site-header{flex-wrap:nowrap}}

@media (min-width:900px) {
  .showcase .copy {padding:clamp(18px,4vh,48px) clamp(32px,4vw,80px)}
  .showcase .feature h1 {font-size:clamp(48px,8vh,88px)}
  .showcase .art img {width:min(39%,23vh)}
  .showcase .art img+img {align-self:center;margin-top:4%}
  .showcase .slide-controls {left:clamp(32px,4vw,80px)}
}
@media (min-width:900px) and (max-height:820px) {
  .showcase .copy {padding-block:12px}
  .showcase .copy p {margin:8px 0;max-width:48ch}
  .library-head {margin:6px 0}
  .catalog-groups {row-gap:6px}
  .catalog-group h3 {margin-bottom:2px}
}

.feature::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(ellipse at 78% 48%, #ffcfa035, transparent 55%);
}
.play .store-mark {width:30px;height:30px}
.shelf .theme-capy-up .status {
  background:#ffce87;
  color:#342443;
  padding:0 8px;
  border-radius:8px;
  font-weight:600;
}
.actions a,.cta a.play {transition:filter .2s,transform .2s}
.actions a:hover,.cta a.play:hover {filter:brightness(1.1)}
@media(prefers-reduced-motion:no-preference) {
  .actions a:hover,.cta a.play:hover {transform:translateY(-2px)}
  .feature:not([inert]) .art img {animation-duration:3s}
  .feature:not([inert]) .copy {animation:reveal .45s ease-out}
  .feature.new-release .download,.capy-up .cta .play,.shelf .theme-capy-up .status {
    animation:release-glow 2.4s ease-in-out infinite;
  }
}
@keyframes reveal {from {opacity:0;transform:translateY(8px)}}
@keyframes release-glow {
  0%,100% {box-shadow:0 0 0 0 #ffc16600}
  50% {box-shadow:0 0 0 3px #ffc16655,0 0 24px #ffae4977}
}

.release .launch {
  display:inline-block;
  margin-right:10px;
  padding:5px 14px;
  border-radius:9px;
  background:linear-gradient(110deg,#ffad57,#ffe279);
  color:#312039;
  font:400 19px/1.2 var(--font-display);
  letter-spacing:.04em;
  text-transform:uppercase;
}
@media (prefers-reduced-motion:no-preference) {
  .new-release:not([inert]) .launch {animation:release-glow 2.4s ease-in-out infinite}
}
.art img:nth-child(n+3) {display:none}
@media (min-width:1100px) {
  .showcase {--inset:clamp(26px,2.4vw,48px);--copy-width:max(465px,34%)}
  .showcase .feature {
    grid-template-columns:var(--copy-width) 1fr;
    padding-bottom:44px;
    align-items:start;
  }
  .showcase .copy {padding:clamp(18px,3vh,36px) var(--inset) 12px}
  .showcase .copy p {max-width:44ch}
  .showcase .slide-controls {left:calc(var(--inset) - 8px);bottom:14px}
  .showcase .art {
    inset:0 var(--inset) 0 var(--copy-width);
    justify-content:center;
    transform:none;
    gap:clamp(12px,1.2vw,30px);
  }
  .showcase .art img:nth-child(-n+3) {display:block}
  .showcase .art img {
    width:29%;
    height:auto;
    aspect-ratio:9/16;
    rotate:7deg;
    flex:none;
  }
  .showcase .art img:nth-child(odd) {margin-top:-3%}
  .showcase .art img:nth-child(even) {margin-top:4%;align-self:center}
  .showcase .art img:nth-child(3) {animation-delay:-1.5s}
}
@media (min-width:1450px) {
  .showcase .art img:nth-child(4) {display:block;animation-delay:-.7s}
  .showcase .art img {width:22%}
}

@media (min-width:1100px) and (max-height:820px) {
  .showcase .copy {padding-block:12px 6px}
  .showcase .slide-controls {bottom:7px}
}
