* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #0a0f0c;
  color: #d8e3d4;
  font-family: "Courier New", ui-monospace, Consolas, monospace;
  min-height: 100vh;
}

.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.06) 3px
  );
  mix-blend-mode: overlay;
}
.scanlines::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 24px;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #2a3a2a;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.logo {
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #c7d400;
  text-shadow: 0 0 10px rgba(199,212,0,0.45);
}
.logo span { color: #d8e3d4; }

.stats { display: flex; flex-direction: column; gap: 8px; }
.rad-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.rad-label { color: #8a9a86; min-width: 52px; letter-spacing: 1px; }
.rad-bar {
  flex: 1;
  height: 10px;
  background: #121a12;
  border: 1px solid #2a3a2a;
  border-radius: 4px;
  overflow: hidden;
}
.rad-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #c7d400);
  transition: width .4s ease, background .4s ease;
}
.rad-fill.mid { background: linear-gradient(90deg, #c7d400, #e68a00); }
.rad-fill.high { background: linear-gradient(90deg, #e68a00, #e53935); box-shadow: 0 0 10px rgba(229,57,53,0.6); }
.rad-value { min-width: 28px; text-align: right; color: #c7d400; }

.inv { display: flex; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.inv-item {
  font-size: 0.75rem;
  border: 1px solid #2a3a2a;
  padding: 3px 8px;
  border-radius: 12px;
  color: #a9c23f;
  background: #121a12;
}

.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scene-art {
  height: 150px;
  border: 1px solid #2a3a2a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1a241a, #0a0f0c 75%);
}
.scene-art::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(199,212,0,0.04) 0 2px, transparent 2px 14px);
}
.scene-art span { position: relative; z-index: 1; filter: drop-shadow(0 0 16px rgba(199,212,0,0.35)); }

.scene-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #d8e3d4;
  white-space: pre-line;
}

.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.choice-btn {
  text-align: left;
  background: #121a12;
  border: 1px solid #2a3a2a;
  color: #c7d400;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
}
.choice-btn:hover { border-color: #c7d400; background: #182018; }
.choice-btn:active { transform: scale(0.99); }
.choice-btn.restart { color: #e53935; }

.foot {
  text-align: center;
  color: #4a5a46;
  font-size: 0.72rem;
  margin-top: 22px;
  letter-spacing: 0.5px;
}

.ending-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.ending-title.good { color: #4caf50; }
.ending-title.neutral { color: #e68a00; }
.ending-title.bad { color: #e53935; }

@media (max-width: 480px) {
  .scene-art { height: 120px; font-size: 2.6rem; }
  .logo { font-size: 1.1rem; }
}
