@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --bg: #f7f8ff;
  --panel: rgba(255, 255, 255, 0.94);
  --cyan: #008cff;
  --pink: #ff2bd6;
  --yellow: #ffb703;
  --green: #12a150;
  --red: #e63946;
  --purple: #6c63ff;
  --text: #121527;
  --muted: #5f6f95;
  --line: rgba(18, 21, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 43, 214, 0.16), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(0, 140, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 52%, #eef3ff 100%);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(18,21,39,.035) 50%, rgba(255,255,255,.22) 50%),
    linear-gradient(90deg, rgba(255,43,214,.025), rgba(0,140,255,.025));
  background-size: 100% 4px, 6px 100%;
  mix-blend-mode: multiply;
  z-index: 50;
}


#pixel-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
}

main, footer, .topbar { position: relative; }
main, footer { z-index: 1; }
.topbar { z-index: 10; }

a { color: inherit; text-decoration: none; }

.pixel {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: .04em;
  line-height: 1.65;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--cyan);
  background: rgba(255, 255, 255, .84);
  border-bottom: 2px solid rgba(0, 140, 255, .32);
  box-shadow: 0 10px 30px rgba(18,21,39,.08);
  backdrop-filter: blur(12px);
  font-size: clamp(.55rem, 1.5vw, .82rem);
}

.nav { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--yellow); }
.nav a:hover { color: var(--pink); text-shadow: 0 0 10px var(--pink); }

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.2rem 3rem;
  text-align: center;
  position: relative;
}

.coin {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--yellow);
  animation: blink 1s steps(2, start) infinite;
  text-shadow: 0 0 12px var(--yellow);
  font-size: clamp(.7rem, 2vw, 1rem);
}

.player {
  color: var(--green);
  margin-bottom: .8rem;
  font-size: clamp(.65rem, 2vw, .95rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 10vw, 7rem);
  line-height: .98;
  color: #121527;
  text-transform: uppercase;
  text-shadow:
    5px 0 0 rgba(255, 43, 214, .62),
    -5px 0 0 rgba(0, 140, 255, .62),
    0 8px 26px rgba(18,21,39,.15);
  animation: glitch 2.2s infinite;
}

.lead {
  max-width: 820px;
  margin: 2rem auto;
  font-size: clamp(1rem, 3vw, 1.32rem);
  font-weight: 800;
  line-height: 1.9;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .9rem 1.1rem;
  border: 3px solid var(--cyan);
  color: var(--cyan);
  background: rgba(0,140,255,.06);
  box-shadow: 0 0 18px rgba(0,140,255,.16), inset 0 0 14px rgba(0,140,255,.08);
  transition: transform .16s, box-shadow .16s, color .16s, border-color .16s;
  font-size: .68rem;
  cursor: pointer;
}

.btn:hover, .mode-card:hover {
  transform: translateY(-4px);
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 28px rgba(255,183,3,.28), 0 14px 34px rgba(18,21,39,.10);
}

.scroll {
  position: absolute;
  bottom: 2rem;
  color: var(--muted);
  font-size: .58rem;
  animation: bob 1.2s ease-in-out infinite alternate;
}

section { padding: clamp(4rem, 10vw, 7rem) 1.2rem; }
.wrap { max-width: 1180px; margin: 0 auto; }

.section-title {
  margin: 0 0 2rem;
  color: var(--yellow);
  text-align: center;
  font-size: clamp(1.05rem, 4vw, 2rem);
  text-shadow: 0 0 14px rgba(255,183,3,.32);
}

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

.mode-card {
  position: relative;
  min-height: 245px;
  padding: 2.65rem 1.25rem 1.25rem;
  text-align: left;
  color: var(--text);
  background: var(--panel);
  border: 3px solid rgba(0,140,255,.42);
  box-shadow: 8px 8px 0 rgba(255,43,214,.22), 0 14px 34px rgba(18,21,39,.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, color .16s, border-color .16s;
}

.mode-card.active {
  border-color: var(--pink);
  box-shadow: 8px 8px 0 rgba(0,140,255,.22), 0 0 26px rgba(255,43,214,.22);
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255,43,214,.26), transparent 66%);
  transform: rotate(20deg);
}


.mode-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: -2.8rem auto 1rem;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.55) 34%, transparent 35%),
    linear-gradient(135deg, rgba(0,140,255,.95), rgba(255,43,214,.92));
  box-shadow:
    0 0 0 4px rgba(0,140,255,.20),
    0 12px 24px rgba(18,21,39,.16),
    0 0 24px rgba(255,43,214,.26);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-2px);
}

.mode-card.active .mode-icon {
  animation: icon-bounce .9s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 4px rgba(255,43,214,.22),
    0 16px 28px rgba(18,21,39,.18),
    0 0 30px rgba(0,140,255,.34);
}

.mode-card h3 {
  color: var(--cyan);
  margin: 0 0 .65rem;
  font-size: .76rem;
}

.role { color: var(--pink); font-weight: 900; margin-bottom: .75rem; }
.mode-card p { line-height: 1.85; margin: 0 0 1rem; }

.stat { margin-top: .7rem; }
.stat span { display: block; margin-bottom: .25rem; color: var(--green); }
.bar {
  height: 12px;
  border: 2px solid var(--green);
  background: linear-gradient(90deg, var(--green) var(--v), transparent var(--v));
  box-shadow: 0 0 12px rgba(18,161,80,.18);
}

.slideshow-section {
  background: radial-gradient(circle at 50% 0%, rgba(0,140,255,.10), transparent 42%), #ffffff;
  border-top: 2px solid rgba(0,140,255,.18);
  border-bottom: 2px solid rgba(0,140,255,.18);
  text-align: center;
}

.slideshow {
  position: relative;
  width: min(96vw, 1320px);
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid rgba(0,140,255,.42);
  background: #ffffff;
  box-shadow: 16px 16px 0 rgba(255,43,214,.16), 0 24px 54px rgba(18,21,39,.14);
}

.slide {
  display: none;
  min-height: 560px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  place-items: center;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  text-align: left;
}

.slide.active { display: grid; }

.photo-placeholder {
  min-height: 440px;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(0,140,255,.12), rgba(255,43,214,.12)),
    repeating-linear-gradient(45deg, rgba(18,21,39,.05) 0 12px, rgba(255,255,255,.5) 12px 24px);
  border: 3px dashed rgba(18,21,39,.22);
  border-radius: 22px;
  font-size: clamp(.65rem, 1.4vw, .95rem);
}

.slide-copy h3 {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.slide-copy p { line-height: 2; font-weight: 700; }

.slide-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.2rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  background: #ffffff;
  cursor: pointer;
}

.dot.active { background: var(--pink); border-color: var(--pink); }

.timeline-section {
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at 8% 20%, rgba(255,43,214,.10), transparent 28%),
    radial-gradient(circle at 92% 60%, rgba(0,140,255,.10), transparent 30%);
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 5rem;
  align-items: start;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(var(--cyan), var(--pink), var(--yellow), var(--green));
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(0,140,255,.22);
  z-index: 0;
}

.timeline-item {
  position: relative;
  min-height: 390px;
  padding: 1rem;
  text-align: left;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(18,21,39,.10), inset 0 0 0 2px rgba(0,140,255,.10);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  grid-column: 1;
  margin-right: .3rem;
}

.timeline-item:nth-child(even) {
  grid-column: 2;
  margin-left: .3rem;
  transform: translateY(4.2rem);
}

.timeline-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 58px rgba(18,21,39,.14), inset 0 0 0 2px rgba(255,43,214,.16);
}

.timeline-item:nth-child(even):hover { transform: translateY(3.4rem); }

.timeline-item::before {
  content: "";
  position: absolute;
  top: 38px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  border: 5px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(0,140,255,.35), 0 0 22px rgba(255,43,214,.38);
  z-index: 3;
}

.timeline-item:nth-child(odd)::before { right: calc(-2.5rem - 13px); }
.timeline-item:nth-child(even)::before { left: calc(-2.5rem - 13px); }

.timeline-item::after {
  content: "";
  position: absolute;
  top: 49px;
  width: 2.5rem;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), rgba(0,140,255,.45));
  border-radius: 999px;
  z-index: 2;
}

.timeline-item:nth-child(odd)::after { right: -2.5rem; }
.timeline-item:nth-child(even)::after { left: -2.5rem; transform: rotate(180deg); }

.timeline-image {
  position: relative;
  z-index: 1;
  min-height: 170px;
  margin-bottom: .95rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(0,140,255,.14), rgba(255,43,214,.14)),
    repeating-linear-gradient(45deg, rgba(18,21,39,.045) 0 10px, rgba(255,255,255,.55) 10px 20px);
  border: 2px dashed rgba(18,21,39,.18);
  border-radius: 20px;
  font-size: .58rem;
  overflow: hidden;
}

.year {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  margin-bottom: .75rem;
  padding: .35rem .55rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-radius: 999px;
  font-size: .58rem;
  box-shadow: 0 10px 22px rgba(0,140,255,.18);
}

.timeline-item h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 .65rem;
  color: var(--cyan);
  font-size: .98rem;
  line-height: 1.55;
}

.timeline-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.85;
  font-weight: 700;
  color: #2d334d;
}

.contact {
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #eef3ff);
}

.continue-timer {
  display: grid;
  place-items: center;
  gap: .75rem;
  width: min(100%, 420px);
  margin: 0 auto 1.8rem;
  padding: 1.4rem;
  background: rgba(255,255,255,.76);
  border: 3px solid rgba(255,43,214,.28);
  border-radius: 28px;
  box-shadow: 10px 10px 0 rgba(0,140,255,.14), 0 18px 44px rgba(18,21,39,.10);
  backdrop-filter: blur(12px);
}

.count {
  display: inline-grid;
  place-items: center;
  width: 128px;
  height: 128px;
  color: var(--yellow);
  border: 5px solid var(--yellow);
  border-radius: 50%;
  background: #ffffff;
  font-size: 3.4rem;
  box-shadow: 0 0 32px rgba(255,183,3,.28);
}

.continue-message {
  min-height: 1.8em;
  color: var(--muted);
  font-size: .62rem;
}

.contact.error .continue-timer {
  border-color: var(--red);
  animation: contact-error .42s steps(2, end) 3;
}

.contact.error .count {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 32px rgba(230,57,70,.48);
  animation: shake .12s linear infinite;
}

.contact.error .continue-message {
  color: var(--red);
  text-shadow: 0 0 10px rgba(230,57,70,.35);
}

.contact-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 2.2rem auto 0;
}

.contact-card {
  padding: 1.2rem 1rem;
  background: #ffffff;
  border: 3px solid rgba(0,140,255,.35);
  box-shadow: 8px 8px 0 rgba(255,43,214,.20), 0 12px 28px rgba(18,21,39,.08);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  box-shadow: 8px 8px 0 rgba(255,183,3,.24), 0 18px 34px rgba(18,21,39,.10);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto .9rem;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(0,140,255,.18);
}

.contact-card h3 {
  margin: 0 0 .35rem;
  color: var(--cyan);
  font-size: .72rem;
}

.contact-card p { margin: 0; color: var(--muted); font-size: .9rem; }

footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 2px solid rgba(18,21,39,.10);
  background: #ffffff;
  font-size: .58rem;
}

.pickup {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(18,21,39,.18), 0 0 18px currentColor;
  font-size: 1.25rem;
  animation: item-pop .9s ease-out forwards;
}

.pickup.score-plus {
  width: auto;
  height: auto;
  min-width: 78px;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-size: .55rem;
  background: #ffffff;
}

.score-bump { animation: score-bump .22s ease-out; }

@keyframes blink { 50% { opacity: .2; } }
@keyframes bob { to { transform: translateY(8px); } }
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  22% { transform: translate(2px, -1px); }
  24% { transform: translate(0); }
  58% { transform: skewX(-2deg); }
  60% { transform: skewX(2deg); }
  62% { transform: skewX(0); }
}

@keyframes items-pop {
  0% { transform: translate(-50%, -50%) scale(.55) rotate(0deg); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-150% + var(--dy))) scale(1.08) rotate(var(--spin)); opacity: 0; }
}

@keyframes item-pop {
  0% { transform: translate(-50%, -50%) scale(.55) rotate(0deg); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-150% + var(--dy))) scale(1.08) rotate(var(--spin)); opacity: 0; }
}

@keyframes score-bump {
  50% { transform: scale(1.12); color: var(--pink); text-shadow: 0 0 12px rgba(255,43,214,.55); }
}

@keyframes icon-bounce {
  to { transform: translateY(-8px) scale(1.04); }
}

@keyframes contact-error {
  0%, 100% { background: rgba(255,255,255,.76); }
  50% { background: rgba(255,225,231,.88); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 1020px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline {
    grid-template-columns: 1fr;
    max-width: 820px;
    gap: 1.5rem;
  }
  .timeline::before {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 6px;
    height: auto;
    transform: none;
    background: linear-gradient(var(--cyan), var(--pink), var(--yellow), var(--green));
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    grid-column: 1;
    margin: 0;
    padding: 1rem 1rem 1.15rem 4.3rem;
    transform: none;
  }
  .timeline-item:hover,
  .timeline-item:nth-child(even):hover { transform: translateY(-5px); }
  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 28px;
    right: auto;
    top: 3.2rem;
  }
  .timeline-item::after,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 28px;
    right: auto;
    top: 3.2rem;
    width: 46px;
    height: 5px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--pink), rgba(0,140,255,.38));
  }
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { flex-direction: column; gap: .35rem; }
  .btn { width: 100%; max-width: 320px; }
  .mode-grid { grid-template-columns: 1fr; }
  .slide.active { grid-template-columns: 1fr; }
  .slide { min-height: 0; }
  .photo-placeholder { min-height: 280px; }
  .timeline-image { min-height: 190px; }
  .count { width: 110px; height: 110px; font-size: 3rem; }
}

/* 404 page */
.error-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.error-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 43, 214, .08), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(0, 140, 255, .08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(18,21,39,.025) 0 2px, transparent 2px 8px);
  z-index: 1;
}

.error-topbar {
  position: fixed;
  width: 100%;
}

.error-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.2rem 4rem;
  position: relative;
  z-index: 2;
}

.error-stage {
  width: 100%;
  max-width: 920px;
  text-align: center;
  padding: 0;
}

.error-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: rgba(255,255,255,.88);
  border: 4px solid rgba(0,140,255,.44);
  border-radius: 32px;
  box-shadow:
    16px 16px 0 rgba(255,43,214,.18),
    0 28px 64px rgba(18,21,39,.14),
    inset 0 0 0 2px rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.error-card::before {
  content: "STAGE MISSING";
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 1.4rem;
  color: rgba(255,43,214,.065);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 7vw, 5rem);
  line-height: 1;
  transform: rotate(-4deg);
  pointer-events: none;
}

.error-icon-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin-bottom: 1.2rem;
}

.error-orb {
  position: static;
  transform: none;
  margin: 0;
  width: 64px;
  height: 64px;
  font-size: 1.75rem;
  animation: bob 1.3s ease-in-out infinite alternate;
}

.error-orb:nth-child(2) { animation-delay: .18s; }
.error-orb:nth-child(3) { animation-delay: .36s; }

.error-404 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text);
  font-size: clamp(4.8rem, 18vw, 10rem);
  line-height: .92;
  text-shadow:
    7px 0 0 rgba(255, 43, 214, .58),
    -7px 0 0 rgba(0, 140, 255, .58),
    0 14px 34px rgba(18,21,39,.16);
  animation: glitch 2s infinite;
}

.error-404::before,
.error-404::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .72;
}

.error-404::before {
  color: var(--cyan);
  transform: translate(-5px, -2px);
  clip-path: inset(0 0 48% 0);
}

.error-404::after {
  color: var(--pink);
  transform: translate(5px, 2px);
  clip-path: inset(52% 0 0 0);
}

.error-line {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  height: 6px;
  margin: 1.2rem auto 1.6rem;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0,140,255,.24);
}

.error-subtitle {
  position: relative;
  z-index: 2;
  margin: 0 0 1.2rem;
  color: var(--pink);
  font-size: clamp(.85rem, 3vw, 1.25rem);
}

.error-lead {
  position: relative;
  z-index: 2;
  margin: 0 auto 1.4rem;
  color: #2d334d;
}

.error-console {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  text-align: left;
  color: var(--green);
  background: rgba(18,21,39,.95);
  border: 3px solid rgba(18,161,80,.50);
  border-radius: 18px;
  box-shadow: inset 0 0 18px rgba(18,161,80,.16), 0 12px 30px rgba(18,21,39,.12);
  font-size: clamp(.55rem, 1.6vw, .72rem);
}

.error-actions {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.error-actions .btn:first-child {
  color: var(--pink);
  border-color: var(--pink);
  background: rgba(255,43,214,.06);
}

.error-actions .btn:first-child:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.error-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .error-topbar { position: sticky; }
  .error-main { padding-top: 4rem; }
  .error-card { border-radius: 24px; }
  .error-orb { width: 54px; height: 54px; font-size: 1.45rem; }
  .error-console { text-align: center; }
}
