:root {
  --bg: #210507;
  --bg-deep: #090102;
  --panel: rgba(34, 8, 10, 0.8);
  --panel-border: rgba(255, 170, 106, 0.24);
  --text: #fff1e8;
  --muted: #f6cbc0;
  --gold: #ffb14a;
  --gold-hot: #ff7f32;
  --flare-soft: #ffd099;
  --dangerously-good: #ff4f3d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --title-stack: "Hannotate SC", "Hiragino Maru Gothic ProN", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --body-stack: "Avenir Next", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 61, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 177, 74, 0.2), transparent 32%),
    linear-gradient(160deg, var(--bg) 0%, #461114 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--body-stack);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.01) 2px,
      transparent 2px,
      transparent 6px
    );
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.glow-left {
  top: 8vh;
  left: -10vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 86, 50, 0.35), transparent 70%);
  animation: drift 12s ease-in-out infinite;
}

.glow-right {
  right: -8vw;
  bottom: 4vh;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(255, 177, 74, 0.32), transparent 68%);
  animation: drift 14s ease-in-out infinite reverse;
}

.grid-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 172, 104, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 172, 104, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
  opacity: 0.45;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 1.75rem;
  padding: clamp(1rem, 4vw, 3rem);
}

.hero-card {
  width: min(100%, 1100px);
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 177, 74, 0.16);
  border: 1px solid rgba(255, 177, 74, 0.32);
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.meta-pill-ghost {
  background: rgba(255, 79, 61, 0.12);
  border-color: rgba(255, 79, 61, 0.24);
}

.eyebrow {
  margin: clamp(1.2rem, 5vw, 2.5rem) 0 0.35rem;
  color: var(--flare-soft);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--title-stack);
  font-size: clamp(3.2rem, 12vw, 8.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff0e8 0%, #ffb14a 40%, #ff4f3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 10px 30px rgba(255, 94, 58, 0.18),
    0 0 0 rgba(0, 0, 0, 0);
}

.hero-emoji {
  display: inline-block;
  margin-left: 0.2em;
  filter: drop-shadow(0 10px 20px rgba(255, 79, 61, 0.35));
  animation: bob 2.4s ease-in-out infinite;
}

.hero-subtitle {
  width: min(680px, 100%);
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.action-group {
  display: grid;
  width: min(100%, 720px);
  gap: 0.9rem;
  margin: 1.8rem auto 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.support-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 1rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 45%, var(--dangerously-good) 100%);
  color: #1f1103;
  font-family: var(--title-stack);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(255, 122, 50, 0.28),
    0 6px 12px rgba(255, 79, 61, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.support-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  opacity: 0.5;
}

.support-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 38px rgba(255, 122, 50, 0.32),
    0 10px 18px rgba(255, 79, 61, 0.26);
  filter: saturate(1.06);
}

.support-button:active {
  transform: translateY(2px) scale(0.99);
}

.support-button.is-supported {
  animation: pop 320ms ease;
}

.support-button-soft {
  background: linear-gradient(135deg, #ffd7a0 0%, #ffae58 100%);
}

.support-button-medium {
  background: linear-gradient(135deg, #ffc16f 0%, #ff8f3c 100%);
}

.support-button-strong {
  background: linear-gradient(135deg, #ff9c5b 0%, #ff4f3d 100%);
  color: #2a0803;
}

.reject-button {
  justify-self: center;
  min-width: 160px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 177, 74, 0.3);
  background: rgba(255, 241, 232, 0.08);
  color: #ffe3c8;
  font-family: var(--body-stack);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.reject-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 79, 61, 0.14);
  border-color: rgba(255, 79, 61, 0.34);
  color: #fff0e6;
}

.reject-button:active {
  transform: translateY(1px);
}

.reaction-line {
  min-height: 1.7em;
  margin: 1rem 0 0;
  color: #ffe2c7;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.badge {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 241, 232, 0.08);
  border: 1px solid rgba(255, 177, 74, 0.18);
  color: #ffe3c8;
  font-size: 0.9rem;
}

.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.burst {
  position: absolute;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  animation: burst-up 900ms ease-out forwards;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.error-page {
  display: grid;
  place-items: center;
}

.error-card {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 170, 106, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(34, 8, 10, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.error-code {
  margin: 0;
  font-family: var(--title-stack);
  font-size: clamp(4rem, 18vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, #fff0e8 0%, #ffb14a 40%, #ff4f3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.6rem, 5vw, 3rem);
}

.error-copy {
  width: min(100%, 520px);
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
}

.error-link-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hot) 45%, var(--dangerously-good) 100%);
  color: #1f1103;
  font-weight: 900;
}

.error-link-secondary {
  border: 1px solid rgba(255, 177, 74, 0.3);
  background: rgba(255, 241, 232, 0.08);
  color: #ffe3c8;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.6vw, -2vh, 0) scale(1.08);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(-4deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes burst-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.6) rotate(0deg);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), -140px, 0) scale(1.15) rotate(var(--spin));
  }
}

@media (max-width: 720px) {
  .hero-card {
    border-radius: 24px;
    padding: 1.1rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
  }

  .meta-pill {
    width: min(100%, 320px);
    padding-inline: 1rem;
  }

  .hero-title {
    letter-spacing: -0.06em;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .reject-button {
    width: min(100%, 220px);
  }

  .error-card {
    border-radius: 24px;
  }

  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .error-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
