﻿/* ============================================================
   end-screens.css — Shattered Nexus
   Game Over screen, Beta End / Arc Complete screen,
   and result/victory screen styles.
   ============================================================ */

/* ═══════════════════════════════════════
   GAME OVER SCREEN
   ═══════════════════════════════════════ */
#game-over-screen {
  background: #000;
  position: relative;
  overflow: hidden;
}

#game-over-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(120, 0, 0, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 0, 80, 0.4) 0%, transparent 60%);
  animation: go-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes go-pulse {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

.go-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.go-skull {
  font-size: 56px;
  filter: grayscale(0.3);
  animation: go-skull-drop 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes go-skull-drop {
  0% {
    transform: translateY(-40px) scale(1.3);
    opacity: 0;
  }

  60% {
    transform: translateY(6px) scale(0.95);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.go-title {
  font-family: var(--px);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: #cc2222;
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(200, 0, 0, 0.8), 0 0 60px rgba(200, 0, 0, 0.3);
  animation: go-flicker 3s linear infinite;
}

@keyframes go-flicker {

  0%,
  95%,
  100% {
    opacity: 1;
  }

  96% {
    opacity: 0.85;
  }

  97% {
    opacity: 1;
  }

  98% {
    opacity: 0.7;
  }

  99% {
    opacity: 1;
  }
}

.go-subtitle {
  font-family: var(--px);
  font-size: var(--fs-sm);
  color: #888;
  letter-spacing: 0.12em;
}

.go-party {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0;
}

.go-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(60, 0, 0, 0.4);
  border: 1px solid rgba(180, 30, 30, 0.3);
  border-radius: 6px;
  min-width: 68px;
}

.go-member-name {
  font-family: var(--px);
  font-size: var(--fs-xs);
  color: #cc4444;
}

.go-member-ko {
  font-size: 18px;
}

.go-msg {
  font-family: var(--px);
  font-size: var(--fs-xs);
  color: #556;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border: 1px solid rgba(80, 80, 120, 0.25);
  border-radius: 6px;
  background: rgba(10, 10, 30, 0.4);
  line-height: 1.6;
}

.go-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.go-btn {
  font-family: var(--px);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, opacity 0.2s;
}

.go-btn:active {
  transform: scale(0.97);
}

.go-btn-primary {
  background: linear-gradient(135deg, #7a1010, #c02020);
  color: #fff;
  box-shadow: 0 4px 16px rgba(180, 20, 20, 0.5);
}

.go-btn-primary:hover {
  box-shadow: 0 4px 24px rgba(200, 30, 30, 0.7);
}

.go-btn-secondary {
  background: rgba(30, 30, 50, 0.8);
  color: #778;
  border: 1px solid rgba(80, 80, 120, 0.3);
}

.go-btn-secondary:hover {
  color: #aab;
  border-color: rgba(100, 100, 160, 0.5);
}


/* ── BETA END / VERSION COMPLETE SCREEN ───────────────── */
#beta-end-screen {
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #050310;
}

#beta-end-screen.active {
  display: flex !important;
}

.be-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #1a1040 0%, #050310 80%);
  opacity: 0.8;
}

.be-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 440px;
  background: rgba(10, 5, 30, 0.95);
  border: 1px solid #6050b8;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 40px rgba(96, 80, 184, 0.4);
  animation: portraitPop 0.6s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.be-crest {
  font-size: 3rem;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
  margin-bottom: 20px;
}

.be-title {
  font-family: var(--vt);
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.be-subtitle {
  font-family: var(--px);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.be-text {
  font-family: var(--px);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
  white-space: pre-wrap;
}

.be-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.be-btn-itch {
  background: linear-gradient(135deg, #fa5c5c 0%, #d62d2d 100%) !important;
  border-color: #ff8080 !important;
  color: #fff !important;
}
