/* garoove · AI DJ share pages · Wave 2026-10-12 · the aidj-home neon look (sprites ported from /root/wc/aidj_web) */
@font-face { font-family: "Sora"; src: url("/static/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --night: #0b0716; --deep: #140c2a; --panel: rgba(28, 18, 56, .78); --line: rgba(168, 85, 247, .45);
  --violet: #a855f7; --magenta: #ff2bd6; --ice: #7cc4ff; --gold: #f6c444;
  --text: #f4effa; --muted: #b9add4; --dim: #8d81a8;
  --r: 18px; --pad: 16px;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--text); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 400 16px/1.5 "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--night);
  background-image: linear-gradient(180deg, rgba(11, 7, 22, 0) 0, rgba(11, 7, 22, 0) 55%, var(--night) 100%), url("/static/art/bg.webp");
  background-position: center top, center top; background-size: 100% 150vw, 100% auto; background-repeat: no-repeat, no-repeat;
  overflow-x: hidden;
}
a { color: #e7c8ff; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* header + ☰ menu (a <details>, so it works before any JS) */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad); background: linear-gradient(180deg, rgba(11, 7, 22, .92), rgba(11, 7, 22, .65)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand img { display: block; width: 132px; height: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(24, 16, 48, .8); box-shadow: 0 0 18px rgba(168, 85, 247, .25); }
.menu summary::-webkit-details-marker { display: none; }
.bars { display: grid; gap: 5px; }
.bars i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu[open] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] .bars i:nth-child(2) { opacity: 0; }
.menu[open] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 56px; min-width: 210px; display: grid; padding: 8px; border-radius: 16px;
  background: rgba(20, 12, 42, .97); border: 1.5px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(168, 85, 247, .2); }
.menu-panel a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: rgba(168, 85, 247, .16); }
.menu-panel .owner { margin-top: 4px; border-top: 1px solid rgba(168, 85, 247, .25); border-radius: 0 0 10px 10px; color: var(--muted); font-size: .92rem; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 8px var(--pad) 40px; display: grid; gap: 26px; overflow-x: clip; }

/* hero: the card ringed by the sparkle tiles */
.hero { display: grid; gap: 10px; justify-items: center; text-align: center; padding-top: 22px; }
.cardbox { position: relative; width: 100%; max-width: 560px; margin: 8px auto 6px; }
.card { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r);
  border: 2px solid rgba(255, 43, 214, .55); box-shadow: 0 0 0 1px rgba(124, 196, 255, .2), 0 0 34px rgba(255, 43, 214, .28), 0 0 70px rgba(168, 85, 247, .25); }
.tile { position: absolute; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(60, 32, 110, .95), rgba(18, 10, 38, .95)); border: 1.5px solid var(--line);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 18px rgba(168, 85, 247, .35); }
.tile img { width: 44px; height: 44px; object-fit: contain; }
.t1 { left: -10px; top: -22px; transform: rotate(-8deg); }
.t2 { right: -10px; top: -26px; transform: rotate(7deg); border-color: rgba(124, 196, 255, .55); }
.t3 { left: -8px; bottom: -24px; transform: rotate(6deg); border-color: rgba(255, 43, 214, .55); }
.t4 { right: -8px; bottom: -22px; transform: rotate(-7deg); border-color: rgba(246, 196, 68, .6); box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 18px rgba(246, 196, 68, .3); }
.spark { position: absolute; z-index: 3; width: 16px; height: 16px; pointer-events: none; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px rgba(255, 43, 214, .9)); opacity: .9; animation: twinkle 2.8s ease-in-out infinite; }
.s1 { left: 18%; top: -14px; } .s2 { right: 24%; top: -10px; animation-delay: .7s; width: 10px; height: 10px; }
.s3 { left: -6px; top: 46%; animation-delay: 1.3s; } .s4 { right: -6px; top: 40%; animation-delay: 2s; width: 11px; height: 11px; }
.s5 { left: 46%; bottom: -16px; animation-delay: 1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.55) rotate(0); opacity: .35; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.tile { animation: bob 5s ease-in-out infinite; }
.t2 { animation-delay: -1.2s; } .t3 { animation-delay: -2.4s; } .t4 { animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.eyebrow { margin: 22px 0 0; display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow img { width: 40px; height: auto; }
h1 { margin: 0; font-size: clamp(1.6rem, 6.4vw, 2.3rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 0 22px rgba(168, 85, 247, .45); }
.sub { margin: 0; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }

/* buttons */
.cta { display: grid; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: 999px;
  font: 600 1rem/1.25 "Sora", system-ui, sans-serif; color: var(--text); text-decoration: none; text-align: center; cursor: pointer; border: 0; }
.btn.primary { flex-direction: column; gap: 2px; min-height: 64px; color: #fff;
  background: linear-gradient(100deg, #ff2bd6, #a855f7 55%, #6d7bff); box-shadow: 0 10px 30px rgba(255, 43, 214, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary .lbl { font-size: 1.12rem; font-weight: 700; }
.btn.primary .sublbl { font-size: .78rem; font-weight: 500; opacity: .92; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(24, 16, 48, .7); border: 1.5px solid var(--line); font-weight: 500; font-size: .94rem; }
.btn.yt { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .22); font-weight: 600; }
.btn.yt .yti { width: 28px; height: 28px; }
.btn.big { min-height: 60px; font-size: 1.08rem; }
.btn.sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.hint { margin: 0; text-align: center; color: var(--gold); font-size: .9rem; }
.links { display: grid; gap: 10px; }
.txt { color: var(--muted); text-align: center; font-size: .9rem; }

/* player: nothing is drawn over it, ever; ≥200×200 at every width */
.player-wrap { display: grid; gap: 10px; margin: 0 -4px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 14px; overflow: hidden; background: #000;
  border: 1.5px solid rgba(124, 196, 255, .35); }
.player iframe, .player #yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player .ph { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: .95rem; }
.noembed { padding: 18px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--line); }
.noembed .note { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.legal { margin: 0; color: var(--dim); font-size: .78rem; line-height: 1.5; }
.legal a { color: var(--muted); }

/* folder rows */
.tracks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 6px; border-radius: 14px; background: rgba(24, 16, 48, .62); border: 1px solid rgba(168, 85, 247, .22); }
.row.on { border-color: var(--magenta); box-shadow: 0 0 16px rgba(255, 43, 214, .25); }
.row.off { opacity: .6; }
.row .play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; color: var(--text); text-decoration: none; }
.row .num { width: 26px; flex: none; text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; font-size: .86rem; }
.row .tt { min-width: 0; display: grid; }
.row .tt b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ytl { flex: none; display: grid; place-items: center; width: 48px; height: 48px; }
.row .ytl .yti { width: 28px; height: 28px; }
#showAll { justify-self: center; }

/* panels */
.panel { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1.5px solid var(--line); }
.panel h2 { margin: 0 0 12px; font-size: 1.08rem; text-wrap: balance; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(11, 7, 22, .7);
  color: var(--text); font: 400 1rem/1.4 "Sora", system-ui, sans-serif; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 3px; accent-color: var(--magenta); width: 18px; height: 18px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
legend { font-weight: 600; margin-bottom: 6px; }
.msg { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--gold); }
.qr { width: 196px; height: 196px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 14px; }
.qr svg { display: block; width: 100%; height: 100%; }
.desk { text-align: center; }

/* platform switches (class set before paint by /static/plat.js; HTML is identical for everyone) */
.wait-h, .wait-c { display: none; }
.p-ios #openApp, .p-ios #schemeLink, .p-desk #openApp, .p-desk #schemeLink { display: none; }
.p-ios #ios[hidden], .p-desk #desk[hidden], .p-inapp.p-android #inAppHint[hidden] { display: block !important; }
.p-android .live-0 #ios[hidden] { display: block !important; }
.p-android .live-0 .ios-h { display: none; }
.p-android .live-0 .wait-h { display: block; }
.p-android .live-0 .ios-c { display: none; }
.p-android .live-0 .wait-c { display: inline; }

/* footer */
.foot { max-width: 680px; margin: 0 auto; padding: 8px var(--pad) 36px; display: grid; gap: 12px; color: var(--dim); font-size: .84rem; }
.foot-links { margin: 0; text-align: center; }
.foot-links a { color: var(--muted); }
.report { padding: 14px 16px; border-radius: 14px; background: rgba(24, 16, 48, .55); border: 1px solid rgba(168, 85, 247, .22); }
.report summary { cursor: pointer; color: var(--muted); }
.report .form { margin-top: 12px; }

/* 404 / 410 */
.status { text-align: center; justify-items: center; padding-top: 48px; }
.status .orb { width: 140px; filter: drop-shadow(0 0 30px rgba(168, 85, 247, .6)); }
.status .btn { width: 100%; max-width: 380px; }

/* /get */
.k-app .cta { justify-items: stretch; }

@media (min-width: 760px) {
  :root { --pad: 28px; }
  .brand img { width: 156px; }
  .tile { width: 76px; height: 76px; } .tile img { width: 54px; height: 54px; }
  .t1 { left: -34px; top: -28px; } .t2 { right: -34px; top: -30px; } .t3 { left: -30px; bottom: -30px; } .t4 { right: -30px; bottom: -28px; }
  .player-wrap { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .spark, .tile { animation: none; } }

/* ===== the billiard table (Ricky 10/12 2:26 AM): slide anything around; it stays on the table and bumps the others ===== */
.stage { position: relative; width: 100%; max-width: 600px; margin: 6px auto 4px; aspect-ratio: 1200 / 630; border-radius: var(--r); overflow: hidden;
  container-type: inline-size; isolation: isolate; touch-action: pan-y;
  background: radial-gradient(120% 90% at 50% 0%, rgba(168, 85, 247, .28), transparent 60%), linear-gradient(180deg, rgba(11, 7, 22, .15), rgba(11, 7, 22, .55)), url("/static/art/bg.webp") center / cover, #140c2a;
  border: 2px solid rgba(255, 43, 214, .55); box-shadow: 0 0 0 1px rgba(124, 196, 255, .2), 0 0 34px rgba(255, 43, 214, .28), 0 0 70px rgba(168, 85, 247, .25); }
.pc { position: absolute; transform: translate(-50%, -50%); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: left, top; }
.pc img { display: block; width: 100%; height: auto; pointer-events: none; }
.pc.held { cursor: grabbing; z-index: 5; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) brightness(1.08); }
.pc-line { white-space: nowrap; font: 600 5.4cqw/1.1 "Sora", system-ui, sans-serif; color: #fff; text-shadow: 0 0 1.6cqw rgba(168, 85, 247, .7); padding: .4cqw 1cqw; }
.pc-card img { border-radius: 2.2cqw; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 1.4cqw 3cqw rgba(0, 0, 0, .5); }
.stage-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.stage-tools .msg { flex-basis: 100%; text-align: center; }

/* button-up 10/12: while AI DJ is in testing there are no store buttons, only an honest note + the waitlist */
.testing-note { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--line); color: var(--muted); text-align: center; font-size: .95rem; }
.testing-note b { color: var(--text); }
.k-app.live-0 #ios[hidden] { display: block !important; }
.k-app.live-0 .ios-h, .k-app.live-0 .ios-c { display: none; }
.k-app.live-0 .wait-h { display: block; }
.k-app.live-0 .wait-c { display: inline; }
