/* Vice Cuts · round 2 system. Apple restraint, Rockstar attitude.
   Ground: a slow pastel mesh. Surfaces: glass that refracts it. Type: SF for words, Pricedown for the name. */
@font-face { font-family: "PD"; src: url("/fonts/vc-metrics.woff2") format("woff2"); font-display: block; }

:root {
  --sf: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --pd: "PD", Impact, sans-serif;
  --ink: #15142a; --ink-2: #4a4866; --ink-3: #6f6d8c;
  --peri: #7fa3e6; --sky: #92c6f2; --lav: #b7a2f2; --flam: #f6a8cb; --butter: #f8e6a2; --mint: #a6e9d6; --peach: #f9c2a6;
  --cash: #7fd88a; --blue: #4f8ff7;
  --r-xl: 40px; --r-lg: 30px; --r-md: 22px; --r-sm: 14px;
  --ease: cubic-bezier(.22,.8,.24,1);
}
* { box-sizing: border-box; }
html { background: #dfe4f6; }
body { margin: 0; min-height: 100svh; font-family: var(--sf); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; background: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- the mesh: big soft colour fields, drifting slowly ---------- */
.mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(165deg, #7c9ce8 0%, #a7b4f0 30%, #e9c3e0 58%, #f8deb0 80%, #bfe9dc 100%); }
.mesh i { position: absolute; border-radius: 50%; filter: blur(56px); opacity: 1; will-change: transform; animation: drift 26s var(--ease) infinite alternate; }
.mesh i:nth-child(1) { width: 58vw; height: 52vw; left: -12vw; top: -20vw; background: radial-gradient(circle at 40% 40%, #5f86ea, #7c9ce8 60%, transparent 72%); }
.mesh i:nth-child(2) { width: 50vw; height: 46vw; right: -12vw; top: -10vw; background: radial-gradient(circle, #a58af2, transparent 70%); animation-duration: 31s; animation-delay: -6s; }
.mesh i:nth-child(3) { width: 46vw; height: 36vw; left: 28vw; top: 52vh; background: radial-gradient(circle, #f9dc86, transparent 70%); animation-duration: 23s; animation-delay: -12s; }
.mesh i:nth-child(4) { width: 52vw; height: 46vw; right: -14vw; top: 46vh; background: radial-gradient(circle, #f592c0, transparent 70%); animation-duration: 29s; animation-delay: -3s; }
.mesh i:nth-child(5) { width: 54vw; height: 46vw; left: -18vw; top: 58vh; background: radial-gradient(circle, #7fe0c6, transparent 70%); animation-duration: 34s; animation-delay: -18s; }
.mesh i:nth-child(6) { width: 30vw; height: 30vw; left: 50vw; top: 14vh; background: radial-gradient(circle, #79bdf6, transparent 70%); animation-duration: 21s; animation-delay: -9s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4vw, 3vh, 0) scale(1.08); } 100% { transform: translate3d(-3vw, 5vh, 0) scale(.96); } }
.mesh::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mesh--dusk { background: linear-gradient(180deg, #8ea7e6 0%, #b9a9e8 45%, #f1b8cd 78%, #f7d9c3 100%); }
.mesh--dusk i:nth-child(3) { background: radial-gradient(circle, #ee9fd6, transparent 70%); } .mesh--dusk i:nth-child(5) { background: radial-gradient(circle, #86d3ee, transparent 70%); }

/* ---------- glass: blur + saturate the mesh, lit rim, sheen that follows the pointer ---------- */
.glass { position: relative; isolation: isolate; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.1) 45%, rgba(255,255,255,.18) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(2.1) brightness(1.06); backdrop-filter: blur(28px) saturate(2.1) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(255,255,255,.22), inset 0 0 0 .5px rgba(255,255,255,.35),
              0 1px 2px rgba(40,36,90,.06), 0 24px 60px -22px rgba(40,36,110,.32); }
/* rim: a hairline that is bright where the light hits (top-left) and fades away */
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.25) 28%, rgba(255,255,255,0) 55%, rgba(255,255,255,.35) 85%, rgba(255,255,255,.7) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* specular: a soft light that tracks the pointer across every glass surface */
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: var(--spec-o, .0); transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.38), rgba(255,255,255,0) 45%); }
.glass:hover { --spec-o: 1; }
.glass > * { position: relative; z-index: 3; }
.glass--dark { background: linear-gradient(160deg, rgba(64,60,96,.46) 0%, rgba(40,38,70,.34) 50%, rgba(56,52,90,.4) 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 .5px rgba(255,255,255,.22), 0 30px 70px -26px rgba(30,24,70,.5); }
.glass--dark::before { background: linear-gradient(140deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.18) 88%, rgba(255,255,255,.45) 100%); }
.glass--pill { border-radius: 999px; }
.well { border-radius: var(--r-md); background: rgba(255,255,255,.22); box-shadow: inset 0 1px 2px rgba(30,30,80,.08), inset 0 0 0 .5px rgba(255,255,255,.55); }
.glass--dark .well { background: rgba(0,0,0,.16); box-shadow: inset 0 1px 2px rgba(0,0,0,.2), inset 0 0 0 .5px rgba(255,255,255,.14); }

/* ---------- type ---------- */
.wordmark { font-family: var(--pd); font-weight: 400; line-height: .82; letter-spacing: .005em; margin: 0; color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,.35), 0 22px 60px rgba(40,34,120,.38), 0 6px 18px rgba(40,34,120,.22); }
.wordmark--line { color: #fff; -webkit-text-stroke: .055em #15142a; paint-order: stroke fill; text-shadow: .04em .05em 0 rgba(21,20,42,.9), 0 24px 60px rgba(52,46,130,.25); }
.wordmark--ink { color: var(--ink); text-shadow: none; }
.display { font-family: var(--sf); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.lede { font-family: var(--sf); font-weight: 450; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; letter-spacing: -.012em; color: var(--ink-2); margin: 0; }
.eyebrow { font: 600 13px/1 var(--sf); letter-spacing: .02em; color: var(--ink-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sf); letter-spacing: -.01em; background: #15142a; color: #fff; box-shadow: 0 10px 30px -10px rgba(21,20,42,.55); transition: transform .3s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); background: #26244a; }
.btn:focus-visible, .link:focus-visible, .tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--glass { background: transparent; color: var(--ink); box-shadow: none; }
.link { font: 500 17px/1 var(--sf); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.link::after { content: "›"; font-size: 1.25em; line-height: .8; transform: translateY(-1px); }
.key { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; font: 600 13px/1 var(--sf);
  background: rgba(255,255,255,.92); color: #15142a; box-shadow: 0 1px 0 rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.08); }
.btn .key { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.4); }

/* nav pill */
.nav { position: fixed; z-index: 50; top: 18px; left: 0; right: 0; margin-inline: auto; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; width: min(980px, calc(100vw - 32px)); }
.nav__mark { font-family: var(--pd); font-size: 25px; line-height: 1; color: #15142a; margin-right: auto; padding-top: 2px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 10px 14px; border-radius: 999px; font: 500 14px/1 var(--sf); color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a:hover { background: rgba(255,255,255,.45); color: var(--ink); }
.nav .btn { height: 40px; font-size: 14px; padding: 0 14px 0 16px; }

/* wanted stars */
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; }
.stars .on { fill: #fff; filter: drop-shadow(0 1px 2px rgba(40,36,110,.35)); }
.stars .off { fill: rgba(255,255,255,.28); }

/* thumbnail tile for a finished cut: pure gradient, no fake footage */
.cut { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.6), 0 14px 30px -14px rgba(40,36,110,.45); }
.cut::before { content: ""; position: absolute; inset: 0; background: var(--g); z-index: -1; }
.cut::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(16,14,40,.35)); }
.cut__hook { position: absolute; left: 9%; right: 9%; top: 11%; font-family: var(--pd); font-size: var(--hs, 22px); line-height: .9; color: #fff; text-align: center;
  -webkit-text-stroke: .07em #15142a; paint-order: stroke fill; z-index: 2; }
.cut__meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 2;
  font: 600 11px/1 var(--sf); color: #fff; letter-spacing: .01em; }
.cut__meta .stars svg { width: 9px; height: 9px; }
.g1 { --g: linear-gradient(165deg, #7fa3e6 0%, #b7a2f2 40%, #f6a8cb 75%, #f8e6a2 100%); }
.g2 { --g: linear-gradient(165deg, #92c6f2 0%, #a6e9d6 45%, #f8e6a2 100%); }
.g3 { --g: linear-gradient(165deg, #b7a2f2 0%, #f6a8cb 50%, #f9c2a6 100%); }

@media (prefers-reduced-motion: reduce) { .mesh i { animation: none; } }
@media (max-width: 760px) { .nav__links { display: none; } .nav { padding-left: 16px; } }

/* =====================================================================
   LIFE: boot sequence, moving light, glass sheen, art slots
   ===================================================================== */
/* art plates (Dreamina) sit between the mesh and the glass; invisible until the file exists */
.art { position: fixed; inset: -4%; z-index: -1; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s var(--ease); will-change: transform; }
.art.is-on { opacity: 1; animation: kenburns 46s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.2%, -.8%); } }

/* sunlight: slow soft beams from the top-left, like light through palms */
.light { position: fixed; inset: -30%; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: repeating-conic-gradient(from 200deg at 12% 0%, rgba(255,250,220,.0) 0deg 7deg, rgba(255,250,220,.55) 9deg 12deg, rgba(255,250,220,0) 15deg 22deg);
  filter: blur(28px); animation: beams 38s ease-in-out infinite alternate; }
@keyframes beams { from { transform: rotate(-4deg) translateX(-2%); } to { transform: rotate(5deg) translateX(3%); } }
.light::after { content: ""; position: absolute; left: 6%; top: 2%; width: 40vw; height: 40vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,248,214,.9), rgba(255,248,214,0) 65%); filter: blur(20px); animation: sunpulse 9s ease-in-out infinite alternate; }
@keyframes sunpulse { from { opacity: .55; transform: scale(.96); } to { opacity: .85; transform: scale(1.05); } }

/* a light band sweeps across the glass every few seconds */
.sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 46%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.28) 54%, rgba(255,255,255,0) 100%);
  transform: skewX(-14deg); animation: sweep var(--sw, 9s) var(--ease) infinite; animation-delay: var(--sd, 0s); }
.glass--dark .sheen::before { background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 46%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.12) 54%, rgba(255,255,255,0) 100%); }
@keyframes sweep { 0%, 72% { left: -60%; } 100% { left: 130%; } }

/* boot: things arrive in order, like a game booting up */
[data-in] { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(10px); }
.is-ready [data-in] { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
[data-slam] { opacity: 0; transform: scale(1.16); filter: blur(16px); }
.is-ready [data-slam] { opacity: 1; transform: none; filter: none; transition: opacity .5s ease, transform .9s cubic-bezier(.2,1.25,.3,1), filter .7s ease; transition-delay: calc(var(--d, 0) * 1ms); }
.mesh { transition: opacity 1.2s ease; } html:not(.is-ready) .mesh { opacity: .6; }

/* pop: a quick game-HUD entrance for values that change */
.pop { animation: pop .55s cubic-bezier(.2,1.4,.3,1); }
@keyframes pop { from { transform: scale(.86); opacity: 0; filter: blur(4px); } }
.slamin { animation: slamin .7s cubic-bezier(.2,1.25,.3,1); }
@keyframes slamin { from { transform: scale(1.35) rotate(var(--rot, 0deg)); opacity: 0; filter: blur(8px); } }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(21,20,42,.18); border-top-color: var(--ink); animation: spin .8s linear infinite; display: inline-block; }
.glass--dark .spin { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
.stars .new { animation: starin .45s cubic-bezier(.2,1.4,.3,1); transform-origin: center; transform-box: fill-box; }
@keyframes starin { from { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  .art.is-on, .light, .light::after, .sheen::before { animation: none; }
  [data-in], [data-slam] { opacity: 1; transform: none; filter: none; }
}

/* =====================================================================
   ART PAGES: the painting is the loading screen; glass is frosted like the refs
   ===================================================================== */
.art { background-position: var(--pos, 50% 50%); }
.on-art .light { opacity: .35; }
.glass--frost { color: #fff;
  background: linear-gradient(150deg, rgba(160,160,178,.36) 0%, rgba(120,120,138,.26) 55%, rgba(140,140,158,.32) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.45) brightness(.98); backdrop-filter: blur(30px) saturate(1.45) brightness(.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 .5px rgba(255,255,255,.28), 0 30px 70px -30px rgba(20,18,50,.5); }
.glass--frost::before { background: linear-gradient(140deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.14) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.2) 88%, rgba(255,255,255,.5) 100%); }
.glass--frost .sheen::before { background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.14) 46%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.14) 54%, rgba(255,255,255,0) 100%); }
.glass--frost .well { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.chip { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); border-radius: 16px; }
.on-art .wordmark { text-shadow: 0 2px 0 rgba(255,255,255,.25), 0 20px 50px rgba(20,24,80,.35), 0 4px 16px rgba(20,24,80,.25); }
.shadowtext { text-shadow: 0 1px 2px rgba(20,24,70,.35), 0 8px 30px rgba(20,24,70,.25); }
.cut.has-img::before { background: var(--img) var(--ipos, center) / cover no-repeat; }
.cut.has-img::after { background: linear-gradient(180deg, rgba(10,10,40,.25) 0%, rgba(10,10,40,0) 30%, rgba(0,0,0,0) 60%, rgba(16,14,40,.45)); }

/* liquid glass: clearer body so the lens at the rim reads; text panels keep a light frost */
.has-liquid .glass.is-liquid { background: linear-gradient(150deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.12) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(255,255,255,.25), inset 0 0 0 .5px rgba(255,255,255,.45),
              inset 0 0 22px rgba(255,255,255,.12), 0 24px 60px -24px rgba(20,18,60,.45); }
.has-liquid .glass--frost.is-liquid { background: linear-gradient(150deg, rgba(150,150,170,.3) 0%, rgba(110,110,130,.18) 55%, rgba(140,140,160,.26) 100%); }
.has-liquid .nav.is-liquid, .has-liquid .float.is-liquid, .has-liquid .tabs.is-liquid, .has-liquid .stat.is-liquid, .has-liquid .mini.is-liquid { --lq-blur: 4; }

/* baked Pricedown: the word is real text in VC Metrics (no outlines); the svg draws it */
vc-r { font: inherit; color: inherit; }
vc-w { position: relative; display: inline; font: inherit; color: inherit; }
svg.pdg { position: absolute !important; left: 0 !important; top: 0 !important; overflow: visible; pointer-events: none; max-width: none !important; margin: 0 !important; display: block; }
svg.pdg path { fill: currentColor; stroke: var(--pdc, transparent); stroke-width: var(--pdw, 0); paint-order: var(--pdo, normal); stroke-linejoin: round; }
