/* Entry splash screen */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.splash-screen[hidden] {
  display: none;
}

.splash-screen.splash-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.archive-notice-screen {
  position: fixed;
  inset: 0;
  z-index: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.archive-notice-screen[hidden] {
  display: none;
}

.archive-notice-screen.is-visible {
  opacity: 1;
  visibility: visible;
}

.archive-notice-screen.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.session-restore-screen {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.session-restore-screen[hidden] {
  display: none;
}

.session-restore-screen.is-visible {
  opacity: 1;
  visibility: visible;
}

.session-restore-screen.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.session-restore-panel {
  position: relative;
  width: min(520px, 92vw);
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(51, 255, 102, 0.42);
  background: rgba(3, 8, 5, 0.96);
  color: var(--phosphor);
  text-align: center;
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.4);
  box-shadow: 0 0 24px rgba(51, 255, 102, 0.16), 0 24px 70px rgba(0, 0, 0, 0.82);
  animation: splash-flicker 3.6s infinite;
}

.session-restore-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
}

.session-restore-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(0, 0, 0, 0.4) 86%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

.session-restore-kicker,
.session-restore-label,
.session-restore-location,
.session-restore-complete {
  position: relative;
  z-index: 1;
  margin: 0;
}

.session-restore-kicker {
  margin-bottom: 22px;
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.4;
}

.session-restore-label {
  margin-bottom: 8px;
  color: rgba(245, 242, 226, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.session-restore-location {
  margin-bottom: 22px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.session-restore-complete {
  padding-top: 16px;
  border-top: 1px solid rgba(51, 255, 102, 0.24);
  font-size: 0.82rem;
  line-height: 1.4;
}

.archive-notice-panel {
  position: relative;
  width: min(680px, 92vw);
  max-height: calc(100vh - 44px);
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid rgba(51, 255, 102, 0.42);
  background: rgba(3, 8, 5, 0.96);
  color: var(--paper);
  text-align: left;
  box-shadow: 0 0 24px rgba(51, 255, 102, 0.16), 0 24px 70px rgba(0, 0, 0, 0.82);
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.28);
  animation: splash-flicker 3.6s infinite;
}

.archive-notice-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
}

.archive-notice-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(0, 0, 0, 0.38) 86%,
    rgba(0, 0, 0, 0.64) 100%
  );
}

.archive-notice-header,
.archive-notice-body,
.archive-notice-status,
.archive-notice-primary {
  position: relative;
  z-index: 1;
}

.archive-notice-kicker {
  margin: 0 0 8px;
  color: var(--phosphor);
  font-size: 0.82rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.archive-notice-header h1 {
  margin: 0 0 22px;
  color: var(--phosphor);
  font-size: 2.05rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.archive-notice-body {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.archive-notice-body p,
.archive-notice-status p {
  margin: 0;
}

.archive-notice-status {
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 255, 102, 0.24);
  color: var(--phosphor);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.archive-notice-primary {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #8f1f1f;
  background: transparent;
  color: #ff3b3b;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
  cursor: pointer;
  text-shadow: 0 0 6px #ff3b3b;
}

.archive-notice-primary:hover,
.archive-notice-primary:focus {
  outline: none;
  background: rgba(255, 59, 59, 0.12);
  border-color: #ff3b3b;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.35);
}

.splash-screen-inner {
  position: relative;
  max-width: 90vw;
  padding: 28px 24px;
  text-align: center;
  color: var(--phosphor);
  text-shadow: 0 0 6px #33ff66, 0 0 14px rgba(51, 255, 102, 0.35);
  animation: splash-flicker 3s infinite;
}

.splash-screen-inner::before {
  content: "";
  position: absolute;
  inset: -24px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
}

.splash-screen-inner::after {
  content: "";
  position: absolute;
  inset: -48px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.splash-line {
  margin: 0 0 10px;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.splash-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(70vw, 620px);
  max-height: 58vh;
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
  filter: none;
}

.splash-motto {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
}

.splash-motto .splash-line {
  margin-bottom: 6px;
  letter-spacing: 0.12em;
}

.splash-enter {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 10px 20px;
  border: 1px solid #8f1f1f;
  background: transparent;
  color: #ff3b3b;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-shadow: 0 0 6px #ff3b3b;
}

.splash-enter:hover,
.splash-enter:focus {
  outline: none;
  background: rgba(255, 59, 59, 0.12);
  border-color: #ff3b3b;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.35);
}

@keyframes splash-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 0.96; }
  94% { opacity: 0.84; }
  96% { opacity: 0.98; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen-inner {
    animation: none;
  }

  .splash-screen {
    transition: none;
  }

  .archive-notice-screen {
    transition: none;
  }

  .archive-notice-panel {
    animation: none;
  }

  .session-restore-screen {
    transition: none;
  }

  .session-restore-panel {
    animation: none;
  }
}

@media (max-width: 640px) {
  .splash-screen-inner {
    padding: 20px 18px;
  }

  .splash-logo {
    width: min(86vw, 500px);
    max-height: 52vh;
    margin-bottom: 20px;
  }

  .splash-motto {
    margin-bottom: 28px;
  }

  .archive-notice-screen {
    padding: 14px;
  }

  .archive-notice-panel {
    width: min(94vw, 520px);
    max-height: calc(100vh - 28px);
    padding: 22px 20px;
  }

  .archive-notice-header h1 {
    margin-bottom: 16px;
    font-size: 1.48rem;
  }

  .archive-notice-body {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .archive-notice-status {
    margin-bottom: 18px;
    padding-top: 12px;
  }

  .session-restore-screen {
    padding: 14px;
  }

  .session-restore-panel {
    padding: 24px 20px;
  }

  .session-restore-location {
    font-size: 1.05rem;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .archive-notice-panel {
    padding: 18px 16px;
  }

  .archive-notice-kicker {
    margin-bottom: 6px;
    font-size: 0.76rem;
  }

  .archive-notice-header h1 {
    margin-bottom: 12px;
    font-size: 1.28rem;
  }

  .archive-notice-body {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .archive-notice-status {
    gap: 4px;
    margin-bottom: 14px;
    padding-top: 10px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .archive-notice-primary {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .session-restore-panel {
    padding: 20px 16px;
  }

  .session-restore-kicker {
    margin-bottom: 16px;
    font-size: 0.78rem;
  }

  .session-restore-location {
    margin-bottom: 16px;
    font-size: 0.92rem;
  }

  .session-restore-complete {
    padding-top: 12px;
    font-size: 0.74rem;
  }
}
