/* 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: 4%;
  transform: translateX(-50%);
  width: min(72%, 300px);
  height: 60%;
  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: 0.4rem;
  z-index: 4;
  margin: 0;
  max-width: 46%;
  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);
}
.bubble.side-left {
  left: 0.4rem;
  right: auto;
  transform-origin: top left;
}
.bubble.side-right {
  right: 0.4rem;
  left: auto;
  transform-origin: top right;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: #fff8e8;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.bubble.side-left::after { right: 14px; left: auto; }
.bubble.side-right::after { left: 14px; right: auto; }
.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: 0.45rem;
  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;
}
.pop-word.side-left { left: 0.35rem; right: auto; }
.pop-word.side-right { right: 0.35rem; left: auto; }
.pop-word.side-left.is-in { animation: pop-flash-left 0.7s ease-out forwards; }
.pop-word.side-right.is-in { animation: pop-flash-right 0.7s ease-out forwards; }
@keyframes pop-flash-left {
  0% { opacity: 0; transform: rotate(-12deg) scale(0.4); }
  25% { opacity: 1; transform: rotate(-12deg) scale(1.12); }
  70% { opacity: 1; transform: rotate(-10deg) scale(1); }
  100% { opacity: 0; transform: rotate(-8deg) scale(0.95); }
}
@keyframes pop-flash-right {
  0% { opacity: 0; transform: rotate(12deg) scale(0.4); }
  25% { opacity: 1; transform: rotate(12deg) scale(1.12); }
  70% { opacity: 1; transform: rotate(10deg) scale(1); }
  100% { opacity: 0; transform: rotate(8deg) scale(0.95); }
}

.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;
  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 auto;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  word-break: break-all;
}
.btn-copy {
  appearance: none;
  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 {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.site-footer {
  margin-top: 2.2rem;
  padding: 1.2rem 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; }
.real-zero { font-size: 0.8rem; color: var(--cream); margin-bottom: 1.35rem; }
.real-zero a { color: var(--gold); }
.disclaimer { line-height: 1.55; }

@media (max-width: 480px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .stage { height: 300px; min-height: 300px; }
}
