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

body {
  min-height: 100vh;
}

.home-frame-main {
  width: min(100% - 28px, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 0 96px;
}

.home-game-room {
  display: grid;
  gap: 18px;
}

.home-console {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid var(--field-border-soft);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 62%),
    rgba(0, 0, 0, 0.18);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-console.is-booting [data-console-line] {
  display: none;
}

.home-command-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.18);
  text-transform: uppercase;
}

.home-command-line span:nth-child(2) {
  margin: 0 7px;
  color: var(--accent);
}

.home-level-line {
  max-height: 3.8em;
  margin: 0;
  color: var(--accent-soft);
  font-family: "Share Tech Mono", monospace;
  line-height: 1.35;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 220ms ease,
    opacity 160ms ease,
    transform 220ms ease;
}

.home-level-line.is-entering {
  max-height: 0;
  opacity: 0;
  transform: translateY(-5px);
}

.home-level-line > span:first-child {
  margin-right: 7px;
  color: var(--accent);
}

.home-console-text {
  white-space: pre-wrap;
}

.home-console-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-console-link:visited {
  color: var(--accent);
}

.home-console-link:hover,
.home-console-link:focus-visible {
  color: var(--accent-soft);
}

.home-start-panel {
  display: grid;
  gap: 0;
  justify-items: center;
  padding: 6px 0 2px;
  text-align: center;
}

.home-start-button {
  min-height: 54px;
  min-width: min(100%, 260px);
  justify-self: center;
  padding: 13px 28px;
  font-size: 1.08rem;
}

.cursor {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  animation: blink 900ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.home-techno-prayer-frame {
  width: 100%;
  min-height: 560px;
  display: block;
  border: 0;
  background: transparent;
}

.home-form-shell {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 560ms ease,
    opacity 300ms ease,
    transform 420ms ease;
}

.home-form-shell[hidden] {
  display: none;
}

.home-form-shell.is-revealed {
  max-height: var(--home-frame-height, 720px);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  .home-frame-main {
    width: min(100% - 20px, 560px);
    padding: 118px 0 96px;
  }

  .home-console {
    padding: 14px;
  }
}
