/* The share cards (App/Songbook/MonsterCard.swift, App/Store/MyMixCard.swift): 360×640 points, always in Night colours
   whatever the page's Lights. Drawn by js/cards.js. */
.hcard {
  --n-surface: #191C23; --n-raised: #242833; --n-stroke: #343946; --n-ink: #F2EFE8; --n-muted: #A8A398; --n-accent: #FF5468;
  --n-accent-ink: #1A0A0E; --n-lip: #12151B; --n-stage-top: #2A303C; --n-stage-bottom: #1C2620; --n-plinth: #2E4034;
  --n-positive: #6BC765; --n-warning: #F0B04A;
  position: relative; width: 360px; height: 640px; flex: none; border-radius: 12px; overflow: hidden; color: var(--n-ink);
  background: linear-gradient(to bottom right, transparent, rgba(0, 0, 0, .4)), var(--frame-image, linear-gradient(var(--frame), var(--frame)));
  font-family: "Hooklings Round", sans-serif; line-height: 1.25; text-align: left;
}
.hcard .icon { color: var(--n-ink); }
.hcard .icon .acc { fill: var(--n-accent); }
.hc-in { position: absolute; inset: 12px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch;
  background: radial-gradient(circle 360px at 50% 35%, var(--n-stage-top) 10px, var(--n-surface)); }
.hc-mix { background: radial-gradient(circle 360px at 50% 30%, var(--n-stage-top) 10px, var(--n-surface)); align-items: center; }
.hc-cone { position: absolute; left: 0; right: 0; top: 0; height: 380px; pointer-events: none;
  clip-path: polygon(42% 0, 58% 0, 92% 100%, 8% 100%); background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); }
.hc-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 36px; margin: 10px 16px 0; flex: none; }
.hc-top .num { font-size: 12px; color: var(--n-muted); }
.hc-hero { position: relative; overflow: hidden; flex: none; }
.hc-stage { position: absolute; max-width: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.hc-dim { position: absolute; inset: 0; background: rgba(25, 28, 35, .3); }
.hc-plinth { position: absolute; left: 50%; bottom: -1px; width: 173px; height: 23px; margin-left: -86.5px; border-radius: 50%; background: var(--n-plinth); }
.hc-plinth.small { width: 150px; height: 20px; margin-left: -75px; bottom: 6px; }
.hc-actor { position: absolute; left: 50%; transform: translateX(-50%); }
.hc-sprite { width: var(--side); height: var(--side); background-size: auto 100%; background-repeat: no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges; }
.hc-sprite.idle { animation: hc-idle 1s steps(4) infinite; }
@keyframes hc-idle { from { background-position-x: 0; } to { background-position-x: calc(var(--side) * -4); } }
.hc-name { position: relative; align-self: center; max-width: calc(100% - 40px); margin-top: 4px; padding: 5px 12px; border-radius: 9px; flex: none;
  font-size: 27px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--n-raised); border: 1px solid var(--n-stroke); box-shadow: 0 4px 0 var(--n-lip); }
.hc-tags { display: flex; justify-content: center; gap: 7px; margin-top: 12px; flex: none; }
.hc-tags span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px;
  background: rgba(0, 0, 0, .4); font-size: 13px; white-space: nowrap; }
.hc-tags span .icon { vertical-align: 0; }
.hc-tags span .icon + .icon { margin-left: -4px; }
.hc-tags [data-icon="star"] .acc { fill: var(--n-warning); }
.hc-tags img { image-rendering: pixelated; }
.hc-gems { display: flex; gap: 7px; margin: 14px 20px 0; flex: none; }
.hc-gem { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hc-gem span { width: 45px; height: 45px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--n-surface);
  background: var(--g); clip-path: polygon(50% 0, 100% 30%, 85% 100%, 15% 100%, 0 30%); font-variant-numeric: tabular-nums; padding-top: 4px; }
.hc-gem small { font-size: 11px; font-weight: 800; color: var(--n-muted); }
.hc-song { display: flex; align-items: center; gap: 15px; height: 103px; margin: 16px 16px 0; padding: 0 16px; border-radius: 10px; flex: none;
  background: var(--n-raised); border: 1px solid var(--n-stroke); }
.hc-record { position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%; background:
  radial-gradient(circle, var(--n-accent) 0 8.6px, transparent 8.7px),
  repeating-radial-gradient(circle, #000 0 3.4px, rgba(52, 57, 70, .5) 3.5px 3.9px, #000 4px); }
.hc-record i { position: absolute; left: 50%; top: 50%; width: 6.5px; height: 3px; margin-top: -1.5px; background: var(--n-accent-ink); }
.hc-record::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #000; }
.hc-record.spin { animation: hc-spin 1.8s linear infinite; }
@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-songtext { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-songtext small { font-size: 11px; color: var(--n-muted); margin-bottom: 2px; }
.hc-songtext b { font-size: 15px; font-weight: 800; }
.hc-songtext em { font-style: normal; font-size: 12px; color: var(--n-muted); }
.hc-bars { display: flex; gap: 4px; margin: 2px 0; }
.hc-bars i { height: 12px; border-radius: 999px; background: rgba(168, 163, 152, .35); }
.hc-q { font-size: 54px; line-height: 1; color: var(--n-warning); }
.hc-strip { display: flex; align-items: center; gap: 7px; height: 28px; margin: auto 16px 10px; opacity: .8; align-self: stretch; flex: none; }
.hc-strip img { width: 24px; height: 24px; border-radius: 6px; }
.hc-strip div { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.hc-strip b { font-size: 12px; font-weight: 800; }
.hc-strip small, .hc-strip span { font-size: 11px; color: var(--n-muted); white-space: nowrap; }
.hc-presents { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--n-muted); }
.hc-title { font-size: 40.5px; line-height: 1; letter-spacing: 3px; }
.hc-month { font-size: 12px; color: var(--n-muted); }
.hc-mixhero { position: relative; align-self: stretch; height: 200px; margin: 10px 12px 0; border-radius: 14px; overflow: hidden; flex: none;
  background: radial-gradient(circle 240px at 50% 35%, var(--n-stage-top) 10px, var(--n-stage-bottom)); }
.hc-rarest { margin-top: 6px; font-size: 12px; }
.hc-rarest small { font-size: 11px; color: var(--n-muted); }
.hc-lineup { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hc-lineup div { display: flex; gap: 6px; font-size: 17px; }
.hc-lineup i { font-style: normal; color: var(--n-muted); }
.hc-lineup small { font-size: 11px; color: var(--n-muted); }
.hc-numbers { display: flex; align-self: stretch; margin: 12px 16px 0; }
.hc-numbers div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hc-numbers b { font-size: 22px; line-height: 1.1; }
.hc-numbers small { font-size: 11px; color: var(--n-muted); white-space: nowrap; }
.hc-stickers { align-self: stretch; margin: 10px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.hc-stickers > small { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--n-muted); }
.hc-stickers > div { display: flex; gap: 10px; }
.hc-sticker { width: 64px; height: 64px; border-radius: 10px; background: var(--n-raised); border: 1px solid var(--n-stroke); overflow: hidden; }
.hc-stickers em { font-style: normal; font-size: 11px; color: var(--n-muted); text-align: right; }

/* Tilt: the card leans toward the pointer, with a soft glare (a held card; Limited Press is the app's own holo frame). */
.tilt { perspective: 900px; }
.tilt .hcard { transition: transform .18s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.tilt .hcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 55%); }

/* The share composer on the homepage (your pick A, design/site/share-options.html): the card, then the controls. */
.composer { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; margin-top: 30px; }
.cardbox { width: calc(360px * var(--s, 1)); height: calc(640px * var(--s, 1)); }
.cardbox .tilt { width: 360px; height: 640px; transform: scale(var(--s, 1)); transform-origin: top left; }
.controls { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.controls[hidden] { display: none; }
.controls h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.share-note { margin: 0; max-width: 32em; font-size: 15px; }
.seg { display: inline-flex; padding: 3px; background: var(--stroke); border-radius: 999px; }
.seg button { font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; border-radius: 999px; height: 40px; padding: 0 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 800; box-shadow: 0 1px 3px var(--shadow); }
.picker { display: grid; grid-template-columns: repeat(6, 64px); gap: 10px; }
.picker button { width: 64px; height: 64px; padding: 0; border-radius: 12px; background: var(--raised); border: 2px solid var(--stroke); cursor: pointer; overflow: hidden; }
.picker button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 3px 0 var(--accent-lip); }
.picker .hc-sprite { --side: 60px; }
.stagechips { display: flex; flex-wrap: wrap; gap: 8px; }
.stagechips button { font: inherit; font-size: 14.5px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--raised); color: var(--ink); cursor: pointer; }
.stagechips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.checkrow { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; min-height: 44px; }
.checkrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--button-face);
  border: 1px solid var(--stroke); box-shadow: 0 4px 0 var(--button-lip); }
.checkrow input:checked + .box { background: var(--positive); border-color: var(--positive); box-shadow: 0 4px 0 color-mix(in srgb, var(--positive) 60%, #000); }
.checkrow input:checked + .box::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
.checkrow input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 3px; }
.checkrow small { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .composer { grid-template-columns: 1fr; justify-items: center; }
  .picker { grid-template-columns: repeat(4, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .hc-sprite.idle, .hc-record.spin { animation: none; }
  .tilt .hcard { transform: none; }
}
