/* ZERO / 제로 — unofficial fan parody page. */
@font-face {
  font-family: "Black Han Sans";
  src: url("fonts/BlackHanSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+AC00-D7A3, U+1100-11FF, U+3130-318F;
}

:root {
  --bg: #1a0812;
  --red: #ff3b3d;
  --red-deep: #c41e28;
  --purple: #c42aa8;
  --purple-deep: #6a1458;
  --pink: #ff5ec8;
  --gold: #ffd24a;
  --gold-2: #ffe89a;
  --cream: #fff4e8;
  --muted: #dcc4c0;
  --ink: #14080a;
  --line: rgba(255, 210, 74, 0.5);
  --display: "Black Han Sans", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --max: 720px;
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 50, 80, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(230, 50, 180, 0.38), transparent 50%),
    var(--bg);
  color: var(--cream);
  line-height: 1.45;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover, a:focus-visible { color: var(--gold-2); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.banner-wrap {
  position: relative;
  width: 100%;
  background: #c4222c;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
}
.banner {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
.hangul-name {
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 5.4vw, 2.1rem);
  line-height: 1;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink),
    0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 #000;
  pointer-events: none;
}

.stage-section {
  width: min(var(--max), calc(100% - 1.2rem));
  margin: 0.85rem auto 0;
}
.stage {
  position: relative;
  height: min(58vw, 360px);
  min-height: 280px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 220, 110, 0.32), transparent 58%),
    radial-gradient(ellipse 90% 80% at 50% 40%, #ff4ec8 0%, #e02aa0 38%, #8a1860 72%, #2a0818 100%);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.stage-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 230, 0.2), transparent 42%);
}
.stage-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(62, 168, 44, 0.62) 28%, rgba(36, 132, 30, 0.95));
  box-shadow: 0 -8px 16px rgba(16, 64, 12, 0.3);
}
.zero-wrap {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  width: min(84%, 380px);
  height: 82%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  transform-origin: 50% 90%;
}
.zero-wrap picture, .zero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    brightness(1.08) saturate(1.15)
    drop-shadow(1px 0 0 #ffe27a)
    drop-shadow(-1px 0 0 #ffe27a)
    drop-shadow(0 1px 0 #ffe27a)
    drop-shadow(0 -1px 0 #ffe27a)
    drop-shadow(0 5px 6px rgba(0, 0, 0, 0.4));
}
.zero-wrap.is-popping {
  animation: pose-pop 0.45s ease-out;
}
@keyframes pose-pop {
  0% { transform: translateX(-50%) scale(0.88) rotate(-5deg); }
  40% { transform: translateX(-50%) scale(1.05) rotate(3deg); }
  70% { transform: translateX(-50%) scale(0.98) rotate(-1deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0); }
}

.bubble {
  position: absolute;
  top: var(--bubble-top, 6%);
  left: var(--bubble-left, 1.5%);
  right: auto;
  z-index: 4;
  margin: 0;
  max-width: var(--bubble-max, 40%);
  padding: 0.38rem 0.65rem 0.42rem;
  background: #fff8e8;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(0.72rem, 3.1vw, 0.98rem);
  line-height: 1.2;
  text-align: center;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transform-origin: top left;
}
.bubble::after {
  content: "";
  position: absolute;
  right: var(--tail-right, 14px);
  left: auto;
  bottom: var(--tail-bottom, -8px);
  top: var(--tail-top, auto);
  width: 12px;
  height: 12px;
  background: #fff8e8;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(var(--tail-rot, 45deg));
}
.bubble[hidden] { display: none; }
.bubble.is-in {
  display: block;
  animation: bubble-in 0.28s ease-out;
}
@keyframes bubble-in {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pop-word {
  position: absolute;
  top: var(--pop-top, 9%);
  right: var(--pop-right, 2.5%);
  left: auto;
  z-index: 5;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 5.4vw, 1.7rem);
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--red);
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
}
.pop-word.is-in { animation: pop-flash-right 0.9s ease-out forwards; }
@keyframes pop-flash-right {
  0% { opacity: 0; transform: rotate(12deg) scale(0.4); }
  20% { opacity: 1; transform: rotate(12deg) scale(1.12); }
  75% { opacity: 1; transform: rotate(10deg) scale(1); }
  100% { opacity: 0; transform: rotate(8deg) scale(0.95); }
}

/* Per-pose: bubble always left, near the head; pop word always right. */
.stage[data-pose="strut"] {
  --bubble-top: 7%;
  --bubble-left: 1.5%;
  --bubble-max: 40%;
  --pop-top: 10%;
  --pop-right: 2.5%;
  /* Point the tail right, at the mouth, not down at the shoulder. */
  --tail-right: -7px;
  --tail-bottom: auto;
  --tail-top: 62%;
  --tail-rot: -45deg;
}
.stage[data-pose="paws-up"] {
  --bubble-top: 3%;
  --bubble-left: 1%;
  --bubble-max: 40%;
  --pop-top: 6%;
  --pop-right: 2%;
}
.stage[data-pose="dab"] {
  --bubble-top: 2%;
  --bubble-left: 1%;
  --bubble-max: 38%;
  --pop-top: 8%;
  --pop-right: 2%;
}
.stage[data-pose="kick"] {
  --bubble-top: 2.5%;
  --bubble-left: 1%;
  --bubble-max: 40%;
  --pop-top: 4%;
  --pop-right: 1.5%;
}
.stage[data-pose="punch"] {
  --bubble-top: 4%;
  --bubble-left: 1.5%;
  --bubble-max: 40%;
  --pop-top: 8%;
  --pop-right: 2%;
}
.stage[data-pose="lean"] {
  --bubble-top: 2.5%;
  --bubble-left: 1%;
  --bubble-max: 38%;
  --pop-top: 7%;
  --pop-right: 2%;
}

.music-toggle {
  appearance: none;
  display: block;
  margin: 0.5rem auto 0;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold);
  background: #3a2030;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  min-height: 36px;
  padding: 0.28rem 0.95rem;
  cursor: pointer;
}
.music-toggle[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}
.music-toggle:hover, .music-toggle:focus-visible {
  background: var(--gold-2);
  color: var(--ink);
}

.dance-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}
.dance-btn {
  appearance: none;
  font-family: var(--display);
  font-size: clamp(0.72rem, 3.2vw, 0.95rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  text-transform: uppercase;
}
.dance-btn:hover, .dance-btn:focus-visible {
  background: var(--gold-2);
}
.dance-btn[aria-pressed="true"],
.dance-btn:active {
  background: var(--red);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.quote {
  width: min(var(--max), calc(100% - 1.2rem));
  margin: 1.15rem auto 0.35rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  line-height: 1.25;
  color: var(--gold-2);
  text-shadow: 2px 2px 0 var(--ink);
}

.dates {
  width: min(var(--max), calc(100% - 1.2rem));
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.follow-wrap {
  width: min(var(--max), calc(100% - 1.2rem));
  margin: 1.15rem auto 0;
  text-align: center;
}
.btn-follow, a.btn-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.5rem 1.3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.btn-follow:hover, .btn-follow:focus-visible {
  background: var(--red);
  color: #fff;
}

.coin-section {
  width: min(var(--max), calc(100% - 1.2rem));
  margin: 1.15rem auto 0;
}
.coin-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(16, 6, 10, 0.7);
  border: 2px dashed var(--gold);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.4rem;
}
.coin-box code {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  word-break: break-all;
}
.btn-copy {
  appearance: none;
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-copy:disabled {
  background: #4a3a38;
  color: #9a8884;
  border-color: #2a1c1c;
  box-shadow: none;
  cursor: not-allowed;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.3rem 0.25rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 8, 12, 0.65);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
}
.link-card:hover, .link-card:focus-visible {
  background: rgba(223, 49, 50, 0.28);
  color: var(--gold-2);
  border-color: var(--gold);
}

button, a,
.dance-btn, .btn-follow, .btn-copy, .link-card, .music-toggle {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.site-footer {
  /* ~109px at 390px: current distance from buy boxes down to the old Kakao line */
  margin-top: 5.6rem;
  padding: 3.5rem 1rem 2.2rem;
  border-top: 2px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}
.site-footer p { margin: 0 auto; max-width: 36rem; }
.site-footer .real-zero { font-size: 0.8rem; color: var(--cream); margin-bottom: 1rem; }
.real-zero a { color: var(--gold); }
.disclaimer { line-height: 1.4; font-size: 0.58rem; }
.nowrap { white-space: nowrap; }
.music-credit {
  margin-top: 0.5rem;
  font-size: 0.56rem;
  line-height: 1.4;
  color: var(--muted);
  opacity: 0.9;
  max-width: 36rem;
}
.music-credit a { color: var(--muted); }
.music-credit a.license { white-space: nowrap; }
.music-credit a:hover, .music-credit a:focus-visible { color: var(--cream); }

@media (max-width: 480px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .stage { height: 300px; min-height: 300px; }
  .coin-box { padding: 0.55rem 0.55rem; gap: 0.4rem; }
  .btn-copy { padding: 0.25rem 0.55rem; }
}
