/* ============ Theme ============ */
:root {
  --bg: #16101f;
  --surface: #221a30;
  --text: #f7f1ff;
  --primary: #e5364b;
  --accent: #f4b740;
  --secondary: #8f6fe3;
  --on-primary: #ffffff;
  --on-accent: #1b1320;

  --muted: color-mix(in oklab, var(--text) 64%, var(--bg));
  --line: color-mix(in oklab, var(--text) 12%, transparent);
  --surface-2: color-mix(in oklab, var(--surface) 88%, var(--text));
  --glow-primary: color-mix(in oklab, var(--primary) 55%, transparent);
  --glow-secondary: color-mix(in oklab, var(--secondary) 50%, transparent);

  --font-display: 'Fredoka', 'Jua', 'M PLUS Rounded 1c', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', 'Gowun Dodum', ui-rounded, system-ui, sans-serif;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[data-font='clean'] {
  --font-display: 'Outfit', 'Noto Sans KR', system-ui, sans-serif;
  --font-body: 'Outfit', 'Noto Sans KR', system-ui, sans-serif;
}
html[data-font='pixel'] {
  --font-display: 'DotGothic16', 'Silkscreen', ui-monospace, monospace;
  --font-body: 'Nunito', 'Gowun Dodum', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Browser surfaces carry the theme too */
html { scrollbar-color: color-mix(in oklab, var(--text) 26%, var(--bg)) var(--bg); accent-color: var(--primary); }
::selection { background: color-mix(in oklab, var(--accent) 80%, transparent); color: var(--on-accent); }
input, textarea { caret-color: var(--accent); }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 60;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; text-decoration: none; opacity: 0; transition: top .2s var(--ease-out), opacity .2s;
}
.skip:focus-visible { top: 12px; opacity: 1; }

#particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
main, .footer, .topbar { position: relative; z-index: 1; }

/* ============ Top bar ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: .01em;
}
.brand-mark { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); transition: transform .35s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
.topnav { display: flex; gap: 6px; }
.topnav a {
  text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--text); background: var(--line); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  padding: 96px var(--gutter) 72px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% 8%, color-mix(in oklab, var(--secondary) 30%, transparent), transparent 60%),
    radial-gradient(50vw 50vw at 92% 70%, color-mix(in oklab, var(--primary) 24%, transparent), transparent 62%),
    radial-gradient(40vw 40vw at 60% 110%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%);
}
.hero-bg.has-image::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in oklab, var(--bg) 70%, transparent), var(--bg) 92%), var(--bg-image);
  background-size: cover; background-position: center;
  opacity: .9;
}
.hero-copy { position: relative; z-index: 2; }

.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800; font-size: 0.875rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  margin-bottom: 22px;
  max-width: 100%;
}
.live-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.live-pill.is-live { color: var(--text); border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.is-live .live-dot { background: var(--primary); animation: livePulse 1.6s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 var(--glow-primary); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--accent);
}
.hero-bio { color: var(--muted); max-width: 46ch; margin: 0 0 28px; font-size: 1.125rem; }
.hero-name + .hero-tagline[hidden] + .hero-bio[hidden] + .hero-cta { margin-top: 22px; }
/* stacked platform buttons (links pinned to the header) */
.hero-cta { display: grid; gap: 10px; width: max-content; min-width: min(250px, 100%); max-width: 100%; }
.btn-link {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 24px 10px 10px;
  font-size: 1.0625rem;
  background: var(--btn);
  color: var(--on-btn);
  box-shadow: 0 10px 28px -12px color-mix(in oklab, var(--btn) 80%, transparent);
}
.btn-link:hover { box-shadow: 0 16px 36px -12px color-mix(in oklab, var(--btn) 90%, transparent); filter: brightness(1.07); }
.btn-ico {
  position: relative;
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--on-btn) 18%, transparent);
}
.btn-ico img { width: 19px; height: 19px; object-fit: contain; }
.btn-link .btn-dot { background: var(--on-btn); }
.btn-link.is-live .btn-ico::after {
  content: ''; position: absolute; top: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #ff4040; box-shadow: 0 0 0 2px var(--btn);
  animation: livePulse 1.6s infinite;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s var(--ease-spring), box-shadow .25s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -8px var(--glow-primary); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px var(--glow-primary); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in oklab, var(--surface) 50%, transparent); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--text) 30%, transparent); }
.btn-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .8; }
.btn.is-live .btn-dot { animation: livePulse 1.6s infinite; background: #fff; }

/* Character art */
.hero-art {
  position: relative;
  aspect-ratio: var(--art-ratio, .8);
  width: 100%;
  max-width: 520px;
  justify-self: center;
  display: grid; place-items: center;
  --px: 0; --py: 0;
}
.halo {
  position: absolute; inset: 8% 4% 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--secondary) 55%, transparent), transparent 62%),
    radial-gradient(circle at 50% 60%, color-mix(in oklab, var(--primary) 35%, transparent), transparent 70%);
  filter: blur(24px);
  transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px));
}
.seal {
  position: absolute; width: 96%; aspect-ratio: 1; top: 2%;
  transform: translate(calc(var(--px) * -8px), calc(var(--py) * -8px));
  pointer-events: none;
}
.seal svg { width: 100%; height: 100%; overflow: visible; rotate: var(--seal-turn, 0deg); transition: rotate .9s var(--ease-out); }
.seal text {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 3.6px;
  fill: color-mix(in oklab, var(--accent) 65%, transparent);
}
@keyframes spin { to { transform: rotate(360deg); } }

.art-button {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  border: 0; padding: 0; background: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%231b1320' stroke-width='4'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0'/%3E%3Cpath d='M14 10V4a2 2 0 0 0-4 0v2'/%3E%3Cpath d='M10 10.5V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-6-2.3l-3.6-3.6a2 2 0 0 1 2.8-2.8L7 15'/%3E%3C/g%3E%3Cg stroke='%23fff' stroke-width='2'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0'/%3E%3Cpath d='M14 10V4a2 2 0 0 0-4 0v2'/%3E%3Cpath d='M10 10.5V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-6-2.3l-3.6-3.6a2 2 0 0 1 2.8-2.8L7 15'/%3E%3C/g%3E%3C/svg%3E") 18 6, pointer;
  display: grid; place-items: end center;
  transform: translate(calc(var(--px) * 16px), calc(var(--py) * 10px));
  transition: transform .2s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.art-button img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
  animation: bob 5s ease-in-out infinite;
  transform-origin: 50% 100%;
  user-select: none; -webkit-user-drag: none;
  /* most model art is cut off at the waist: fade the bottom edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
  transition: opacity .5s ease;
}
/* nothing shows in the art spot until the real image has loaded */
.art-button img:not(.loaded) { opacity: 0; }
.art-button.pat img { animation: pat .45s var(--ease-spring), bob 5s ease-in-out infinite .45s; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes pat { 0% { scale: 1 1; } 30% { scale: 1.04 .93; } 60% { scale: .98 1.03; } 100% { scale: 1 1; } }

.hero-art.card .art-button { place-items: center; padding: 6% 8% 12%; }
.hero-art.card .art-button img {
  object-fit: cover; object-position: top center;
  border-radius: 28px;
  border: 3px solid color-mix(in oklab, var(--accent) 80%, transparent);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--surface) 70%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .6);
  filter: none;
  rotate: -3deg;
  -webkit-mask-image: none; mask-image: none;
}

.pat-counter {
  position: absolute; z-index: 3; bottom: 2%; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.9375rem; color: var(--muted);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.pat-counter strong {
  font-family: var(--font-display); font-size: 1.375rem; color: var(--accent);
  font-variant-numeric: tabular-nums; display: inline-block;
}
.pat-counter strong.bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.pop {
  position: fixed; z-index: 50; pointer-events: none;
  font-size: 1.625rem; line-height: 1;
  animation: popFly .9s var(--ease-out) forwards;
}
.pop svg { width: 26px; height: 26px; display: block; }
.pop.heart svg { fill: var(--primary); }
.pop.spark svg { fill: var(--accent); }
.pop.rice .r { fill: #fbf6ee; } .pop.rice .n { fill: #1f2b25; }
.pop.plus { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--accent); text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@keyframes popFly {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.8) rotate(var(--rot)); opacity: 0; }
}


/* ============ Marquee ============ */
.marquee {
  position: relative; z-index: 2;
  background: var(--primary);
  color: var(--on-primary);
  transform: rotate(-2deg);
  margin: 20px -20px 40px;
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px var(--glow-primary);
  border-top: 3px solid color-mix(in oklab, var(--accent) 80%, transparent);
  border-bottom: 3px solid color-mix(in oklab, var(--accent) 80%, transparent);
}
.marquee[hidden] { display: none; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-dur, 30s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  letter-spacing: .04em; white-space: nowrap; padding-right: 48px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--gutter) 24px;
}
.section-head { text-align: center; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.125rem, 5.4vw, 3.75rem); line-height: 1.05; margin: 0;
  letter-spacing: -.01em;
}

/* ============ SNS: shared ============ */
.sns-stage { position: relative; }
.sns {
  position: absolute; top: 0; left: 0;
  width: var(--size, 76px); height: var(--size, 76px);
  display: block; text-decoration: none;
  will-change: transform;
  z-index: 2;
}
.sns-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bubble, var(--surface-2));
  border: 2px solid color-mix(in oklab, var(--text) 14%, transparent);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55), inset 0 2px 0 color-mix(in oklab, #fff 18%, transparent);
  transition: transform .35s var(--ease-spring), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.sns-face img { width: 64%; height: 64%; object-fit: contain; pointer-events: none; }
.sns-face .mono {
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--size, 76px) * .36);
  color: var(--text); letter-spacing: -.02em;
}
.sns-label {
  position: absolute; left: 50%; top: calc(100% + 10px);
  transform: translate(-50%, -6px) scale(.9);
  padding: 6px 12px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 800; font-size: 0.875rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease-spring);
}
.sns-label .ext, .eats-btn .ext { width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.sns.is-held { z-index: 5; }
.sns.is-held .sns-face, .sns:focus-visible .sns-face {
  transform: scale(1.28);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent), 0 18px 40px -10px var(--glow-primary);
}
.sns.is-held .sns-label, .sns:focus-visible .sns-label { opacity: 1; transform: translate(-50%, 6px) scale(1); }
.sns.is-held::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed color-mix(in oklab, var(--accent) 70%, transparent);
  animation: spin 6s linear infinite;
}
.sns:focus-visible { outline: none; }

/* float */
.sns-stage.mode-float {
  height: clamp(340px, 52vw, 460px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--text) 14%, transparent) 1px, transparent 0) 0 0 / 26px 26px,
    color-mix(in oklab, var(--surface) 45%, transparent);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 0 80px -30px var(--glow-secondary);
}
.sns-stage canvas.links-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sns-stage.mode-float .sns-label { top: auto; bottom: calc(100% + 14px); transform: translate(-50%, 6px) scale(.9); }
.sns-stage.mode-float .sns.is-held .sns-label { transform: translate(-50%, -4px) scale(1); }
.sns-stage.mode-float .sns.label-below .sns-label { bottom: auto; top: calc(100% + 14px); }

/* orbit */
.sns-stage.mode-orbit {
  height: clamp(380px, 56vw, 560px);
}
.orbit-core {
  position: absolute; left: 50%; top: 50%;
  width: clamp(120px, 18vw, 180px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  background: var(--surface);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 60%, transparent), 0 24px 48px -16px rgba(0, 0, 0, .6);
  overflow: hidden;
  display: grid; place-items: center;
}
.orbit-core img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  border: 2px dashed color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* dock */
.sns-stage.mode-dock {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 18px;
  padding: 70px 24px 34px;
  min-height: 220px;
  border-radius: 36px;
  background: color-mix(in oklab, var(--surface) 45%, transparent);
  border: 1px solid var(--line);
}
.sns-stage.mode-dock .sns {
  position: relative;
  transform-origin: 50% 100%;
  transition: transform .18s ease-out;
}
.sns-stage.mode-dock .sns-label { top: auto; bottom: calc(100% + 10px); }
@media (hover: none) {
  .sns-stage.mode-dock { padding-top: 34px; padding-bottom: 54px; row-gap: 44px; column-gap: 28px; }
  .sns-stage.mode-dock .sns-label { opacity: 1; bottom: auto; top: calc(100% + 8px); transform: translate(-50%, 0); background: none; color: var(--muted); padding: 0; font-size: .8125rem; }
  .sns-stage.mode-dock .sns-label .ext { display: none; }
}

/* ============ Merch ============ */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  perspective: 1200px;
}
.merch-grid.featured > .drop:first-child { grid-column: span 2; }
.merch-grid.featured > .drop:first-child .drop-media { aspect-ratio: 16 / 10; }
@media (max-width: 720px) { .merch-grid.featured > .drop:first-child { grid-column: auto; } .merch-grid.featured > .drop:first-child .drop-media { aspect-ratio: 1; } }
.merch-empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }

.drop {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --glare: 0;
  position: relative;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  /* kept flat on purpose: a preserve-3d card with a translateZ'd body breaks mouse clicks in Firefox */
  transition: transform .5s var(--ease-out), box-shadow .4s;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .4s, opacity .6s var(--ease-out), translate .6s var(--ease-out);
}
.drop.pre { opacity: 0; translate: 0 24px; }
.drop.tilting { transition: transform .08s linear, box-shadow .4s, opacity .6s, translate .6s; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.drop::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 42%),
    linear-gradient(115deg, transparent 20%, color-mix(in oklab, var(--secondary) 35%, transparent) 38%, color-mix(in oklab, var(--accent) 30%, transparent) 50%, color-mix(in oklab, var(--primary) 30%, transparent) 62%, transparent 80%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: overlay;
  opacity: var(--glare);
  transition: opacity .3s;
}
.drop-media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 25px 25px 0 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--secondary) 45%, var(--surface)), color-mix(in oklab, var(--primary) 45%, var(--surface)));
}
.drop-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .6s, transform 1.2s var(--ease-out);
}
.drop-media img.on { opacity: 1; transform: scale(1); }
.drop:hover .drop-media img.on { transform: scale(1.04); }
.drop-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 5rem; font-weight: 700;
  color: color-mix(in oklab, var(--text) 70%, transparent);
}
.drop-nav {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--text);
  cursor: pointer; opacity: 0; transition: opacity .2s;
  display: grid; place-items: center;
}
.drop-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drop-nav.prev { left: 10px; } .drop-nav.next { right: 10px; }
.drop:hover .drop-nav, .drop-nav:focus-visible { opacity: 1; }
@media (hover: none) { .drop-nav { opacity: .85; } }
.drop-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
/* the visible dot is 8px; the button around it is 24px tall so it can be tapped */
.drop-dots button {
  height: 24px; min-width: 20px; border: 0; padding: 0 3px; cursor: pointer; background: none;
  display: grid; place-items: center;
}
.drop-dots button::before {
  content: ''; width: 8px; height: 8px; border-radius: 99px;
  background: color-mix(in oklab, #fff 60%, transparent); transition: width .3s, background .3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.drop-dots button.on::before { width: 22px; background: #fff; }
.drop-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.drop-timer {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 88%, transparent); color: var(--text);
  font-weight: 800; font-size: 0.8125rem; font-variant-numeric: tabular-nums;
}
.drop-timer.soon { background: var(--primary); color: var(--on-primary); }
.drop-timer.ended { opacity: .8; }
.drop-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.drop-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin: 0; }
.drop-body p { margin: 0; color: var(--muted); font-size: 1rem; white-space: pre-line; }
.drop-body .btn { align-self: flex-start; margin-top: auto; padding: 11px 20px; font-size: 0.9375rem; }
.drop.ended-drop .drop-media { filter: grayscale(.7); }

/* ============ Footer ============ */
.footer {
  text-align: center;
  padding: 80px var(--gutter) 60px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.footer-links a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bubble, var(--surface));
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-spring);
  text-decoration: none;
}
.footer-links a:hover { transform: translateY(-4px) scale(1.08); }
.footer-links img { width: 60%; height: 60%; object-fit: contain; }
.footer-links .mono { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.footer-text { margin: 0 auto 6px; max-width: 60ch; }
.footer-small { font-size: 0.875rem; margin: 0; opacity: .8; }

/* ============ Live toast ============ */
.live-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 40px -10px var(--glow-primary);
  transform: translateY(120px); transition: transform .5s var(--ease-spring);
  max-width: calc(100vw - 36px);
}
.live-toast.show { transform: none; }
.live-toast .live-dot { background: #fff; animation: livePulse 1.6s infinite; }
.live-toast span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* wide art (a full landscape illustration): give the art most of the header */
.hero.wide-art {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr);
  gap: clamp(8px, 2vw, 28px);
  min-height: 0;
  padding-top: 88px;
  padding-bottom: 20px;
}
.hero.wide-art .hero-name { font-size: clamp(3rem, 6vw, 5.5rem); }
.hero.wide-art .hero-art {
  max-width: none;
  width: calc(100% + var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  justify-self: end;
  align-self: end;
}
.hero.wide-art .seal { width: auto; height: 104%; top: -6%; left: 57%; translate: -50% 0; }
.hero.wide-art .halo { inset: 4% 12% 10%; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 84px;
    gap: 8px;
  }
  .hero-art { order: -1; max-width: 360px; aspect-ratio: 1 / 1.05; }
  .hero.wide-art { grid-template-columns: 1fr; padding-top: 72px; }
  .hero.wide-art .hero-art { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); aspect-ratio: var(--art-ratio); justify-self: center; }
  .hero.wide-art .hero-art .pat-counter { bottom: 4%; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-cta { margin-inline: auto; }
  .topnav a { padding: 8px 10px; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-bio { font-size: 1rem; }
  .btn { padding: 13px 20px; }
}

/* ============ Giri Eats ============
   The section borrows Giri Eats' own look: pastel prefectures, white coastline, teal sea with
   little wave marks, puffy clouds, cream card. It reads as a window into the other site. */
.eats {
  --eats: #5fcfd4; --on-eats: #0d2a2c;
  --ge-sea: #8dd3d5; --ge-ink: #5b3a2e; --ge-ink-soft: #7b5a48; --ge-cream: #fff8ec;
}
.eats-card {
  position: relative; isolation: isolate;
  min-height: 460px;
  border-radius: 36px; overflow: hidden;
  border: 1px solid var(--line);
  display: grid; align-items: center;
  padding: clamp(20px, 4vw, 44px);
  cursor: pointer;
}
.eats-stage {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background-color: var(--ge-sea);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.72' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 20q4-4 8 0t8 0 8 0'/%3E%3Cpath d='M86 12q4-4 8 0t8 0'/%3E%3Cpath d='M52 52q4-4 8 0t8 0 8 0'/%3E%3Cpath d='M118 64q4-4 8 0t8 0'/%3E%3Cpath d='M20 82q4-4 8 0t8 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 96px;
  --z: 1;
}
.ge-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ge-neighbour { fill: #d8ecc6; stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.ge-halo path { fill: #fff; stroke: #fff; stroke-width: 8; stroke-linejoin: round; }
.ge-land path { stroke: #d7bfa8; stroke-width: 1; stroke-linejoin: round; }
.ge-land .c0 { fill: #fadadf; } .ge-land .c1 { fill: #fbefc6; } .ge-land .c2 { fill: #dcefd0; }
.ge-land .c3 { fill: #fde3cb; } .ge-land .c4 { fill: #e8e0f6; }
.ge-routes path { fill: none; stroke: var(--ge-ink); stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 9; }
.ge-layer { position: absolute; inset: 0; pointer-events: none; }
.ge-layer > * { position: absolute; left: 0; top: 0; will-change: transform; }

.ge-cloud svg { width: 110px; height: 48px; display: block; fill: #fff; filter: drop-shadow(0 4px 0 rgba(91, 58, 46, .08)); opacity: .95; }
.ge-fuji svg { width: 46px; height: 29px; display: block; translate: -50% -88%; }

/* scale lives on the inner span: on the outer element it would also scale the position */
.ge-label > span {
  display: grid; justify-items: center; line-height: 1;
  translate: -50% 0; transform-origin: 50% 0;
  color: var(--ge-ink);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  transition: opacity .4s, scale .4s var(--ease-out);
  scale: .9; opacity: .9;
}
.ge-label b { font-family: 'Fredoka', var(--font-display); font-weight: 700; font-size: 1rem; }
.ge-label small { font-size: .625rem; font-weight: 800; margin-top: 3px; color: var(--ge-ink-soft); }
.ge-label.current > span { scale: 1.15; opacity: 1; }
.ge-label.far:not(.current) > span { opacity: .75; scale: .75; }

/* food pins: round badge with a little tail, standing on their spot */
.ge-pin { opacity: 0; }
.ge-pin .ge-badge {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  translate: -50% calc(-100% - 7px);
  scale: 0; transform-origin: 50% 120%;
  background: var(--ge-cream); border: 3px solid #fff;
  box-shadow: 0 6px 10px -5px rgba(91, 58, 46, .55);
  display: grid; place-items: center;
  transition: scale .45s var(--ease-spring);
}
.ge-pin .ge-badge::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; translate: -50% 0;
  border: 6px solid transparent; border-top: 7px solid #fff; border-bottom: 0;
}
.ge-pin .ge-badge svg { width: 34px; height: 34px; }
.ge-pin.on .ge-badge { scale: var(--z); }
.ge-pin.on.past .ge-badge { scale: calc(var(--z) * .62); }
.ge-pin.past { z-index: 0; }
.ge-pin .ge-name {
  position: absolute; left: 0; top: 4px; translate: -50% 0;
  white-space: nowrap; padding: 3px 8px; border-radius: 999px;
  background: #fff; color: var(--ge-ink); font-weight: 800; font-size: .6875rem;
  box-shadow: 0 3px 6px -3px rgba(91, 58, 46, .5);
  opacity: 0; transition: opacity .3s;
}
.ge-pin.named .ge-name { opacity: 1; }

/* Giri: her favicon in a white ring, standing on the map with a soft shadow */
.ge-giri { z-index: 3; }
.ge-label { z-index: 2; } /* city names stay readable over pins */
.ge-giri .ge-shadow {
  position: absolute; left: 0; top: 0; width: 40px; height: 12px; border-radius: 50%;
  translate: -50% -50%; background: rgba(60, 40, 30, .28);
  scale: calc(1 - var(--fly, 0) * .45); opacity: calc(1 - var(--fly, 0) * .5);
}
.ge-giri .ge-face {
  position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 50%;
  translate: -50% calc(-100% + 4px + var(--lift, 0px));
  rotate: var(--tilt, 0deg);
  scale: var(--sq, 1, 1);
  transform-origin: 50% 100%;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 8px 14px -6px rgba(60, 40, 30, .55);
  overflow: hidden;
}
.ge-giri img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eats-copy {
  max-width: 380px;
  padding: 26px 28px 24px;
  border-radius: 24px;
  background: var(--ge-cream); color: var(--ge-ink);
  border: 3px solid #fff;
  box-shadow: 0 18px 36px -18px rgba(40, 20, 10, .55);
  display: grid; gap: 12px; justify-items: start;
}
.eats-copy h3 { font-family: 'Fredoka', var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin: 0; text-wrap: balance; color: var(--ge-ink); }
.eats-copy p { margin: 0; color: var(--ge-ink-soft); max-width: 38ch; }
.eats-btn { margin-top: 6px; background: var(--eats); color: var(--on-eats); box-shadow: 0 10px 22px -12px rgba(13, 42, 44, .8); }
.eats-btn .ext { opacity: .8; }
/* the whole card is clickable, but only the button is the link (one clear name for screen readers) */
.eats-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
/* no transform or filter here: either one would shrink the card-wide click area down to the button */
.eats-btn:hover, .eats-btn:active { transform: none; filter: none; }
.eats-card:hover .eats-btn { background: color-mix(in oklab, var(--eats) 85%, #fff); }
.eats-card:has(.eats-btn:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.eats-btn:focus-visible { outline: none; }
.eats-domain { font-size: .875rem; color: var(--ge-ink-soft); font-weight: 800; }
.eats-copy ::selection { background: #fbe08a; color: var(--ge-ink); }
@media (max-width: 720px) {
  .eats-card { min-height: 0; padding: 0; align-items: end; }
  .eats-stage { position: relative; inset: auto; height: 320px; }
  .eats-copy { max-width: none; margin: -36px 12px 12px; padding: 22px 20px 20px; }
  .ge-giri .ge-face { width: 52px; height: 52px; }
  .ge-pin .ge-badge { width: 40px; height: 40px; }
  .ge-pin .ge-badge svg { width: 30px; height: 30px; }
}

/* ============ Reduced motion ============
   Ambient movement stops; state changes (headpat count, seal turn, hover) still show, just quicker. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-button img, .live-dot, .btn-link.is-live .btn-ico::after, .marquee-track, .sns.is-held::before { animation: none !important; }
  .marquee-track { transform: none; }
  *, *::before, *::after { transition-duration: .12s !important; }
  .drop.pre { opacity: 1; translate: none; }
  .live-toast { transform: none; opacity: 0; transition-property: opacity; }
  .live-toast.show { opacity: 1; }
}
