/* linkskizzy.com shared page styles: the main page and every creator page (/<creator>/) load this,
   so they all look the same. Edit here, not inline. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  letter-spacing: var(--ls-none);
  color: var(--text-primary);
  background:
    radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--violet-deep-2) 70%, transparent) 0%, transparent 65%),
    radial-gradient(80% 40% at 50% 100%, color-mix(in srgb, var(--brand-8) 60%, transparent) 0%, transparent 70%),
    var(--bg-canvas);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
main {
  width: 100%;
  max-width: 430px;
  align-self: flex-start;
  background: var(--surface-1);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  padding: 40px 16px 24px;
}
/* app icon in a casino marquee: a beveled plate around the tile with round bulbs (generated by the
   script after the markup) running a classic 3-phase chase in gold. Tap or click the logo for a
   "jackpot" burst: fast chase, gold/purple alternating bulbs and two full flashes, then it settles. */
.avatar-wrap { position: relative; width: 112px; height: 112px; margin: 28px auto 22px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.marquee {
  position: absolute; inset: -16px;
  border-radius: 38px;
  background: linear-gradient(180deg, var(--brand-7), var(--brand-9));
  box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--warning-5) 25%, transparent);
}
.bulb {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--warning-8);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.4);
  animation: kz-chase 1.2s steps(1, end) infinite;
  animation-delay: calc(var(--phase) * -0.4s);
}
@keyframes kz-chase {
  0%      { background: var(--warning-2); box-shadow: 0 0 4px var(--warning-4), 0 0 10px var(--warning-5); }
  33.33%  { background: var(--warning-8); box-shadow: inset 0 -1px 1px rgba(0,0,0,.4); }
}
.jackpot .marquee { animation: kz-plate 1.8s ease-out; }
.jackpot .bulb {
  animation: kz-chase-fast .3s steps(1, end) 6, kz-flash .3s steps(1, end) 1.8s 2;
  animation-delay: calc(var(--phase) * -0.1s), 1.8s;
}
.jackpot .bulb:nth-child(even) { --hot: var(--brand-2); --glow: var(--brand-4); }
@keyframes kz-chase-fast {
  0%     { background: var(--hot, var(--warning-2)); box-shadow: 0 0 5px var(--glow, var(--warning-4)), 0 0 14px var(--glow, var(--warning-5)); }
  33.33% { background: var(--warning-8); box-shadow: none; }
}
@keyframes kz-flash {
  0%  { background: var(--white); box-shadow: 0 0 6px var(--warning-3), 0 0 16px var(--warning-5); }
  50% { background: var(--warning-8); box-shadow: none; }
}
@keyframes kz-plate {
  0%   { box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--warning-5) 25%, transparent); }
  30%  { box-shadow: var(--shadow-md), 0 0 44px color-mix(in srgb, var(--warning-5) 70%, transparent), 0 0 70px color-mix(in srgb, var(--brand-5) 55%, transparent); }
  100% { box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--warning-5) 25%, transparent); }
}
.avatar-wrap:active .avatar { transform: scale(var(--press-scale)); }
.avatar {
  position: relative;
  width: 112px; height: 112px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
h1 {
  text-align: center;
  font-size: var(--fs-h1); line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
}
nav { display: flex; flex-direction: column; gap: 12px; }
/* Rows follow the "Level 1 menu" pattern: Module-4 fill, Module-3 hover, radius 8, padding 16 */
a.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--fs-h5); line-height: var(--lh-h5);
  font-weight: var(--fw-semibold);
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
a.row:hover { background: var(--module-3); }
a.row:active { transform: scale(var(--press-scale)); }
a.row:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 3px; }
/* Brand primary = purple */
a.row.primary { background: var(--brand-5); }
a.row.primary:hover { background: var(--brand-4); }
.icon { width: 24px; height: 24px; flex: 0 0 24px; }
.icon img { width: 24px; height: 24px; display: block; }
.slogan {
  text-align: center;
  margin: 4px 0 24px;
  font-size: var(--fs-h5); line-height: var(--lh-h5);
  font-weight: var(--fw-semibold);
  color: var(--brand-1);
  text-shadow: 0 0 6px var(--brand-4), 0 0 14px var(--brand-5), 0 0 26px var(--brand-6);
  animation: kz-text-glow 2.2s ease-in-out infinite alternate;
}
@keyframes kz-text-glow {
  from { text-shadow: 0 0 4px var(--brand-4), 0 0 10px var(--brand-5), 0 0 18px var(--brand-6); }
  to   { text-shadow: 0 0 8px var(--brand-3), 0 0 18px var(--brand-4), 0 0 34px var(--brand-5); }
}
@media (prefers-reduced-motion: reduce) { .bulb, .slogan, .jackpot .bulb, .jackpot .marquee { animation: none; } .bulb { background: var(--warning-3); } }
/* waving raccoon pfp on the kizzy.io row. The body sits in the round frame; the raised arm is its own
   layer tucked BEHIND the frame at the cuff, so it pokes out of the top-left edge and waves from there. */
a.row.primary { overflow: visible; }
.pfp { position: relative; width: 24px; height: 24px; flex: 0 0 24px; isolation: isolate; }
.pfp-circle {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--brand-6) 0%, var(--brand-8) 75%);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.6), var(--shadow-card);
}
.pfp-body { position: absolute; left: -12.00px; top: -3.60px; width: 37.62px; height: 37.62px; max-width: none; }
.pfp-arm {
  position: absolute; z-index: 0;
  left: -3.69px; top: -1.75px;
  width: 12.00px; height: 17.40px; max-width: none;
  transform-origin: 5.54px 15.60px;            /* the cuff, hidden behind the frame */
  transform: rotate(-34deg);
  animation: kz-wave 2.6s var(--ease-standard) infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
@keyframes kz-wave {
  0%, 60%, 100% { transform: rotate(-34deg); }
  10% { transform: rotate(-50deg); }
  20% { transform: rotate(-20deg); }
  30% { transform: rotate(-48deg); }
  40% { transform: rotate(-22deg); }
  50% { transform: rotate(-38deg); }
}
@media (prefers-reduced-motion: reduce) { .pfp-arm { animation: none; } }
.label { flex: 1; }
/* small pill tag, Text 2 semibold */
.tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-8);
  color: var(--brand-2);
  font-size: var(--fs-text-2); line-height: var(--lh-text-2);
  font-weight: var(--fw-semibold);
}
/* "Play Here!" = gold (action-money / warning-5) with a light sweep that brushes across it */
a.row.primary .tag {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--warning-4), var(--warning-5) 60%, var(--warning-6));
  color: var(--warning-9);
  font-weight: var(--fw-bold);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning-2) 70%, transparent) inset, 0 2px 10px color-mix(in srgb, var(--warning-5) 55%, transparent);
  animation: kz-tag-pulse 2.6s var(--ease-standard) infinite;
}
a.row.primary .tag::after {
  content: ""; position: absolute; z-index: -1;
  top: -20%; bottom: -20%; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: skewX(-20deg);
  animation: kz-shine 2.6s var(--ease-standard) infinite;
}
a.row.primary:hover .tag::after { animation-duration: 1.1s; }
@keyframes kz-shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
@keyframes kz-tag-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
  55% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { a.row.primary .tag, a.row.primary .tag::after { animation: none; } }
.chev { width: 16px; height: 16px; flex: 0 0 16px; opacity: .6; }
footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--fs-text-2); line-height: var(--lh-text-2);
}
footer p + p { margin-top: 8px; }
footer .powered { color: var(--brand-3); font-weight: var(--fw-semibold); font-size: var(--fs-text-1); line-height: var(--lh-text-1); }
footer a { color: var(--text-link); }

/* ---------- Creator pages (/<creator>/) ----------
   Same card, title, slogan, rows, tags and footer as the main page. Additions only:
   creator avatar, social icon strip, 32px photo thumbs, the large featured photo row,
   and the Kizzy row's mini marquee + gold creator-code tag. */
.creator-avatar {
  display: block; width: 112px; height: 112px; margin: 28px auto 22px;
  border-radius: 24px; object-fit: cover;
  box-shadow: var(--shadow-md);
}
.socials { display: flex; justify-content: center; gap: 24px; margin: -8px 0 24px; }
.socials a { color: var(--text-primary); display: grid; place-items: center; transition: transform var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.socials a:hover { color: var(--brand-2); }
.socials a:active { transform: scale(var(--press-scale)); }
.socials svg { width: 28px; height: 28px; }
/* photo thumbs keep the row at 56px: 12 + 32 + 12 */
a.row.has-thumb { padding-top: 12px; padding-bottom: 12px; }
.thumb.coin { border-radius: 50%; }
.thumb { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 6px; object-fit: cover; display: block; }
/* featured row: big photo on top, normal row line below */
a.row.featured { flex-wrap: wrap; padding-top: 12px; }
a.row.featured .hero { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-radius: 6px; display: block; margin-bottom: 4px; }
/* Kizzy row: the app icon in its own mini marquee (same bulbs and jackpot burst as the header) */
.mini-wrap { position: relative; width: 28px; height: 28px; flex: 0 0 28px; margin: 0 2px; }
.mini-wrap .marquee { inset: -6px; border-radius: 12px; }
.mini-wrap .bulb { width: 3.5px; height: 3.5px; margin: -1.75px 0 0 -1.75px; }
.mini-wrap .mini-icon { position: relative; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; display: block; }
.mini-wrap .mini-icon img { width: 100%; height: 100%; display: block; }
a.row.primary.has-mini { padding-top: 10px; padding-bottom: 10px; min-height: 56px; }
/* optional second line under a row label (e.g. "@handle"), like Linktree's link subtitles */
.label small { display: block; margin-top: 2px; font-size: var(--fs-text-2); line-height: var(--lh-text-2); font-weight: var(--fw-regular); color: var(--text-secondary); }
/* creators with no bio: socials sit straight under the name */
h1 + .socials { margin-top: 12px; }
h1 + nav { margin-top: 24px; }
