@layer design {
  /* Shared illustrated cards for the home page, catalog and related products. */
  .illustrated-card { --cover-base:#29203e; --cover-glow:#a882eb; border-radius:19px; isolation:isolate; }
  .illustrated-card.chatgpt { --cover-base:#123c37; --cover-glow:#67cbb1; }
  .illustrated-card.gemini { --cover-base:#242950; --cover-glow:#7f95f5; }
  .illustrated-card.deepseek { --cover-base:#172d4a; --cover-glow:#73a3ef; }
  .illustrated-card.kimi { --cover-base:#182c3e; --cover-glow:#7daee3; }
  .illustrated-card.glm { --cover-base:#242b4d; --cover-glow:#99a4ee; }
  .illustrated-card.qwen { --cover-base:#292445; --cover-glow:#a49ce9; }
  .illustrated-card.codex { --cover-base:#1e3430; --cover-glow:#86c9b5; }
  .illustrated-card.claude-codex { --cover-base:#36313f; --cover-glow:#c3a8d8; }
  .illustrated-card.claude { --cover-base:#473039; --cover-glow:#d7a082; }
  .illustrated-card.capcut { --cover-base:#28263f; --cover-glow:#b29cdf; }
  .illustrated-card.spotify { --cover-base:#153c2e; --cover-glow:#56c18b; }
  .illustrated-card.elevenlabs { --cover-base:#302440; --cover-glow:#c798e7; }
  .illustrated-card.grok { --cover-base:#263343; --cover-glow:#a4c6e5; }
  .illustrated-card.netflix { --cover-base:#43242f; --cover-glow:#db778b; }
  .illustrated-card .store-card-art { height:152px; background:var(--cover-base); border:0; overflow:hidden; isolation:isolate; }
  .card-cover-scene { position:absolute; inset:0; pointer-events:none; }
  .card-cover-city { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:88% 42%; opacity:.52; mix-blend-mode:luminosity; }
  .card-cover-scene::before { content:''; position:absolute; z-index:1; inset:0; background:linear-gradient(90deg,var(--cover-base) 0%,color-mix(in srgb,var(--cover-base) 82%,transparent) 27%,transparent 76%),radial-gradient(ellipse at 75% 35%,color-mix(in srgb,var(--cover-glow) 36%,transparent),transparent 70%); }
  .card-cover-character { position:absolute; z-index:1; width:var(--figure-width,73%); max-width:none; height:auto; top:var(--figure-top,2px); right:var(--figure-right,-6%); transform-origin:65% 55%; transition:transform .4s ease; }
  .card-cover-scene[data-character-frame='wide'] { --figure-width:63%; --figure-right:-3%; --figure-top:2px; }
  .card-cover-scene[data-character-frame='portrait'] { --figure-width:96%; --figure-right:-17%; --figure-top:0px; }
  .card-cover-scene[data-character-frame='close'] { --figure-width:88%; --figure-right:-11%; --figure-top:0px; }
  .card-cover-scene[data-character-pose='microphone'] { --figure-right:-10%; }
  .card-cover-brand { position:absolute; z-index:2; inset:auto auto 20px 20px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; max-width:70%; pointer-events:none; }
  .illustrated-card .store-card-mark .service-logo,.illustrated-card .store-card-mark .service-monogram { width:35px; height:35px; object-fit:contain; }
  .illustrated-card .store-card-brand { font-size:22px; line-height:1.15; letter-spacing:-.7px; font-weight:600; color:#fff; text-shadow:0 2px 16px #0004; }
  .illustrated-card:is(.chatgpt,.capcut,.elevenlabs,.api) .store-card-mark .service-logo { filter:brightness(0) invert(1); }
  .illustrated-card.grok .store-card-mark .service-logo { filter:none; }
  .illustrated-card .save-product { z-index:4; top:12px; right:12px; width:34px; height:34px; padding:8px; border-color:#e5dcff30; border-radius:10px; background:#15142382; color:#eee5ff; backdrop-filter:blur(8px); }
  .illustrated-card .save-product:hover,.illustrated-card .save-product.is-saved { background:#543b75; color:#e0ceff; border-color:#c6a6ff80; }
  .illustrated-card .save-product svg { width:17px; height:17px; }
  .illustrated-card .store-card-content { padding:18px; gap:0; }
  .illustrated-card h3 { min-height:48px; margin:0 0 10px; font-size:16px; line-height:1.5; font-weight:550; letter-spacing:-.25px; overflow-wrap:break-word; }
  .illustrated-card .card-product-link::after { content:''; position:absolute; z-index:2; inset:0; }
  .illustrated-card:has(.card-product-link:focus-visible) { outline:2px solid var(--accent); outline-offset:4px; }
  .illustrated-card .card-product-link:focus-visible { outline:none; }
  .illustrated-card .card-format { display:flex; align-items:center; gap:6px; margin:0 0 14px; font-size:13px; line-height:1.5; color:var(--muted); }
  .illustrated-card .card-format svg { width:14px; height:14px; color:var(--faint); }
  .illustrated-card .card-availability { margin-top:auto; margin-bottom:15px; }
  .availability.stock-readout { --stock-ink:var(--positive-ink); display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid color-mix(in srgb,var(--stock-ink) 15%,transparent); border-radius:9px; background:color-mix(in srgb,var(--stock-ink) 6%,transparent); color:var(--stock-ink); font-size:12px; font-weight:500; line-height:1.5; }
  .stock-readout:is(.availability--low,.availability--unknown) { --stock-ink:var(--warning-ink); }
  .stock-readout:is(.availability--empty,.availability--paused) { --stock-ink:var(--muted); }
  .stock-readout .stock-indicator { width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px color-mix(in srgb,currentColor 8%,transparent); }
  .stock-readout .stock-count { padding-left:7px; border-left:1px solid color-mix(in srgb,currentColor 22%,transparent); font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .illustrated-card .availability svg { width:14px; height:14px; }
  .illustrated-card .store-card-bottom { flex-flow:row nowrap; align-items:center; padding-top:14px; gap:10px; }
  .illustrated-card .store-card-bottom>strong { font-size:27px; letter-spacing:-.8px; font-weight:600; }
  .illustrated-card .card-choose { position:relative; z-index:3; width:auto; min-height:42px; min-width:93px; justify-content:center; padding:10px 15px; font-size:13px; border-radius:11px; background:var(--soft); border-color:transparent; color:var(--accent); transition:background .2s,color .2s; }
  .illustrated-card .card-choose:hover,.illustrated-card .card-choose:focus-visible { background:var(--primary); color:#fff; }
  .illustrated-card.is-unavailable .card-choose { background:var(--surface-2); color:var(--muted); }
  .illustrated-card.is-unavailable .store-card-art { filter:saturate(.55); }
  @media(hover:hover) and (prefers-reduced-motion:no-preference) {
    .illustrated-card:hover .card-cover-character { transform:scale(1.045); }
  }
  @media(max-width:1100px) and (min-width:701px) {
    .illustrated-card .store-card-content { padding:16px; }
    .illustrated-card .store-card-brand { font-size:20px; }
    .card-cover-brand { left:16px; }
    .illustrated-card .store-card-bottom { flex-wrap:wrap; gap:10px; }
    .illustrated-card .card-choose { flex:1; }
  }
  @media(max-width:700px) {
    .illustrated-card { border-radius:15px; }
    .illustrated-card .store-card-art { height:137px; }
    .card-cover-character { width:calc(var(--figure-width,73%) + 18%); right:calc(var(--figure-right,-6%) - 9%); }
    .card-cover-brand { left:12px; bottom:14px; gap:8px; max-width:90%; }
    .illustrated-card .store-card-mark .service-logo,.illustrated-card .store-card-mark .service-monogram { width:27px; height:27px; }
    .illustrated-card .store-card-brand { font-size:18px; letter-spacing:-.55px; }
    .illustrated-card .save-product { width:32px; height:32px; top:8px; right:8px; padding:7px; }
    .illustrated-card .store-card-content { padding:13px 12px; }
    .illustrated-card h3 { font-size:14px; min-height:42px; margin-bottom:10px; line-height:1.5; }
    .illustrated-card .card-format { font-size:12px; gap:5px; margin-bottom:12px; }
    .illustrated-card .card-format svg { display:none; }
    .illustrated-card .availability { font-size:11px; gap:5px; padding:6px 7px; }
    .illustrated-card .stock-count { padding-left:5px; }
    .illustrated-card .availability svg { width:12px; height:12px; }
    .illustrated-card .card-availability { margin-bottom:12px; }
    .illustrated-card .store-card-bottom { flex-direction:column; align-items:stretch; gap:11px; padding-top:12px; }
    .illustrated-card .store-card-bottom>strong { font-size:25px; }
    .illustrated-card .card-choose { width:100%; min-height:42px; font-size:13px; }
  }
  @media(max-width:360px) {
    .illustrated-card .store-card-content { padding-inline:10px; }
    .illustrated-card .store-card-brand { font-size:16px; }
    .illustrated-card .availability { font-size:10px; gap:4px; padding:5px; }
  }
  @media(prefers-reduced-motion:reduce) { .card-cover-character { transition:none; } }
}
