:root {
  --bg: #000000;
  --fg: #ffffff;
  --glow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

#landing,
#game {
  width: 100%;
  height: 100%;
}

#landing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#enter-btn {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: clamp(60px, 9vw, 120px);
  line-height: 1;
  padding: 0;
  text-shadow: var(--glow);
  transition: transform 120ms ease, opacity 120ms ease, color 180ms ease, text-shadow 180ms ease;
}

#enter-btn:hover,
#enter-btn:focus-visible {
  transform: scale(1.04);
  outline: none;
  opacity: 0.95;
}

#enter-btn.clicked {
  color: #8b0000;
  text-shadow:
    0 0 5px rgba(139,0,0,0.9),
    0 0 10px rgba(139,0,0,0.8),
    0 0 20px rgba(139,0,0,0.6),
    0 0 40px rgba(139,0,0,0.4);
}

#game {
  display: none;
  padding: 18px;
}

#terminal {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

#version {
  position: fixed;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
  cursor: pointer;
  z-index: 20;
  text-shadow: var(--glow);
  user-select: none;
}

#mode-btn {
  position: fixed;
  top: 34px;
  right: 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  z-index: 21;
  text-shadow: var(--glow);
  user-select: none;
}

#mode-btn:hover,
#mode-btn:focus-visible {
  background: rgba(255,255,255,0.05);
  outline: none;
}

#dropdown {
  position: fixed;
  top: 34px;
  right: 104px;
  min-width: 170px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 12px;
  z-index: 19;
  box-shadow: 0 0 10px rgba(255,255,255,0.08);
}

.drop-item {
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.hidden {
  display: none;
}

.line {
  margin: 0 0 4px 0;
  min-height: 1em;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.prompt {
  flex: 0 0 auto;
}

.input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  caret-color: #fff;
  padding: 0;
}

.terminal-image {
  display: block;
  width: 200px;
  max-width: 100%;
  margin: 8px 0 10px 0;
}

.roast-popup {
  position: fixed;
  color: #8b0000;
  font-size: clamp(18px, 3vw, 42px);
  font-weight: bold;
  text-shadow:
    0 0 6px rgba(139,0,0,0.9),
    0 0 16px rgba(139,0,0,0.6);
  z-index: 50;
  pointer-events: none;
  animation: roastFade 5s ease forwards;
  white-space: nowrap;
}

@keyframes roastFade {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  15% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
