:root {
  --color-accent: #4b3fd1;
  --color-accent-hover: #6d5dfc;
  --color-text-muted: #667085;
  --radius-card: 18px;
  --shadow-card: 0 20px 50px rgba(0,0,0,.35);
  --duration-expand: .3s;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  color: #1d2330;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 15% 20%, #6d5dfc 0, transparent 45%),
    radial-gradient(circle at 85% 30%, #00b4d8 0, transparent 40%),
    radial-gradient(circle at 50% 95%, #f472b6 0, transparent 45%),
    #0f1226;
  background-attachment: fixed;
}

.top { text-align: center; color: #fff; padding: 5vh 16px 20px; }
.top p { margin: 0; color: rgba(255,255,255,.75); }

/* Headline: gradient text on an arch, with twinkling stars. The text is SVG so the gradient and curve stay sharp. */
.headline-wrap { position: relative; margin: 0 auto; width: min(100%, 760px); }
.headline { margin: 0; width: 100%; line-height: 0; }
.headline svg { width: 100%; height: auto; overflow: visible; }
@font-face { font-family: "Fallaxe Graffiti"; src: url("fonts/Fallaxe%20Graffiti.otf") format("opentype"), url("fonts/Fallaxe%20Graffiti.ttf") format("truetype"); font-display: swap; }
.headline-text { font-family: "Fallaxe Graffiti", system-ui, "Segoe UI", Arial, sans-serif; font-weight: 400; stroke: #000; stroke-width: 5px; stroke-linejoin: round; paint-order: stroke;
  /* Each drop-shadow draws behind the result of the one before: the 5 violet ones stack into a diagonal slab, the four yellow ones are the 1px contour around letters and slab together (TextStudio "Contour 3D", #f5f20e), the two black ones are a hard shadow down and right that outlines slab like ink, and the last is the soft shadow. */
  filter: drop-shadow(1px 1px 0 #4a1a9e) drop-shadow(2px 2px 0 #4a1a9e) drop-shadow(3px 3px 0 #4a1a9e) drop-shadow(4px 4px 0 #4a1a9e) drop-shadow(5px 5px 0 #4a1a9e)
    drop-shadow(1px 0 0 #f5f20e) drop-shadow(-1px 0 0 #f5f20e) drop-shadow(0 1px 0 #f5f20e) drop-shadow(0 -1px 0 #f5f20e)
    drop-shadow(2px 0 0 #000) drop-shadow(0 2px 0 #000)
    drop-shadow(7px 7px 5px #000); }
/* Aurora inside the headline letters: blurred blobs (filter in index.php) that blend with mix-blend-mode and drift slowly. */
.headline-clip-text { font-family: "Fallaxe Graffiti", system-ui, "Segoe UI", Arial, sans-serif; font-weight: 400; }
.aurora-blob { mix-blend-mode: screen; opacity: .75; transform-box: fill-box; transform-origin: center; animation: aurora-drift 12s ease-in-out infinite alternate; }
.aurora-blob.a2 { animation-duration: 15s; animation-name: aurora-drift-b; }
.aurora-blob.a3 { animation-duration: 18s; }
.aurora-blob.a4 { animation-duration: 13s; animation-name: aurora-drift-b; animation-delay: -4s; }
@keyframes aurora-drift { 0% { transform: translate(-45px, 6px) scale(.9, 1) rotate(-6deg); } 50% { transform: translate(10px, -12px) scale(1.2, .9) rotate(5deg); } 100% { transform: translate(50px, 8px) scale(.95, 1.12) rotate(-4deg); } }
@keyframes aurora-drift-b { 0% { transform: translate(50px, -8px) scale(1.1, .9) rotate(6deg); } 50% { transform: translate(-15px, 12px) scale(.88, 1.18) rotate(-5deg); } 100% { transform: translate(-50px, -6px) scale(1.15, 1) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .aurora-blob { animation: none; } }
/* White star texture laid over the letters (TextStudio "fill pattern" at 55%). Same text, so it only shows inside the letters. */
.headline-texture { font-family: "Fallaxe Graffiti", system-ui, "Segoe UI", Arial, sans-serif; font-weight: 400; opacity: .55; pointer-events: none; }
/* Dancing tagline: sits over the bottom of the headline (nudge --beat-top to move it), each letter drifts up and down on a slow 3s sway, the whole line pulses in and out. */
@font-face { font-family: "Strong Bubble"; src: url("fonts/Strong%20Bubble.ttf") format("truetype"); font-display: swap; }
.beat-text { --beat-top: 62%; position: absolute; left: 49%; top: var(--beat-top); display: flex; white-space: nowrap; font-family: "Strong Bubble", "Fallaxe Graffiti", system-ui, sans-serif; font-size: clamp(30px, 10.2vw, 45px); line-height: 1; color: #ffee00; -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 2px 2px 0 #000; pointer-events: none; animation: beat-pulse 3s cubic-bezier(.45, .05, .55, .95) infinite; }
.beat-text span { display: inline-block; transform-origin: 50% 80%; animation: beat-hop 3s cubic-bezier(.45, .05, .55, .95) infinite; animation-delay: calc(var(--i) * -.3s); }
@keyframes beat-pulse { 0%, 100% { transform: translateX(-50%) rotate(-3deg) scale(.97); } 50% { transform: translateX(-50%) rotate(-3deg) scale(1.05); } }
@keyframes beat-hop {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-.12em) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) { .beat-text, .beat-text span { animation: none; } .beat-text { transform: translateX(-50%) rotate(-3deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.1) rotate(20deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .twinkle { animation: none; } }

.products { flex: 1 0 auto; width: calc(100% - 32px); max-width: 960px; margin: 0 auto 40px; }
.group + .group { margin-top: 28px; }
/* Pixel fox (pet/pet.js) walks on the line beside the first label; the group gets room above for it. Its feet sit on the line, 5px under the group's top. */
.group.has-pet { position: relative; margin-top: 60px; }
.pet-lane { position: absolute; left: 0; right: 0; bottom: calc(100% - 5px); height: 96px; pointer-events: none; }
.pet { position: absolute; left: 0; bottom: 0; background: url("pet/fox.png") 0 0 no-repeat; image-rendering: pixelated; will-change: transform; pointer-events: auto; cursor: pointer; }
.group-label {
  margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 14px;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* The frosted panel shared by cards and the expanded view */
.card, .detail-body {
  padding: 24px 26px; border-radius: var(--radius-card);
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow-card);
}
.card {
  display: flex; flex-direction: column; gap: 6px;
  color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover, a.card:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(0,0,0,.45); }
a.card:focus-visible { outline: 3px solid #6d5dfc; outline-offset: 3px; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--color-text-muted); line-height: 1.45; }
.tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #f3f4f6; background: #2b2f3a; }
.card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--color-accent); }
.card.is-soon { opacity: .75; }

/* Expanded view under a card's row: spans every column, blurb beside the screenshot. */
.detail { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-expand) ease; }
.detail[hidden] { display: none; }
.detail.is-open { grid-template-rows: 1fr; }
.detail-clip { overflow: hidden; min-height: 0; }
.detail-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start;
}
.detail-body--text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) { .detail-body { grid-template-columns: minmax(0, 1fr); } }
.detail-text { display: flex; flex-direction: column; gap: 10px; }
.detail-text h3 { margin: 0; font-size: 22px; }
.detail-text p { margin: 0; color: var(--color-text-muted); line-height: 1.5; }
.detail-open { align-self: flex-start; margin-top: 6px; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: #fff; background: var(--color-accent); text-decoration: none; }
.detail-open:hover, .detail-open:focus-visible { background: var(--color-accent-hover); }
.detail-shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { .detail { transition: none; } }
.soon {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-accent); background: rgba(109,93,252,.12);
}

/* Footer: the same bar as Job Finder's */
.site-footer {
  margin-top: auto; padding: 22px 40px; font-size: .78rem; color: #f5f7fa;
  background: rgba(15, 18, 38, .85); border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
}
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer a { color: #f5f7fa; text-decoration: underline; text-underline-offset: 3px; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.footer-social svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 640px) {
  .site-footer { padding: 20px 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
