/* =========================
   PCG PROJECT RETRO RPG STYLE
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 255, 170, 0.12), transparent 35%),
    linear-gradient(180deg, #050505 0%, #101010 60%, #050505 100%);
  color: #d8ffe8;
  font-family: 'VT323', monospace;
  font-size: 24px;
  letter-spacing: 0.5px;
  padding: 30px 15px;
}

/* Main game window */
.character-creator {
  max-width: 850px;
  margin: 0 auto;
  background: #0b0f0d;
  border: 4px solid #39ff88;
  border-radius: 0;
  padding: 28px;
  box-shadow:
    0 0 0 4px #111,
    0 0 25px rgba(57, 255, 136, 0.45),
    inset 0 0 20px rgba(57, 255, 136, 0.08);
  position: relative;
}

/* Pixel corner effect */
.character-creator::before,
.character-creator::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #39ff88;
}

.character-creator::before {
  top: -4px;
  left: -4px;
}

.character-creator::after {
  bottom: -4px;
  right: -4px;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  color: #39ff88;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(57, 255, 136, 0.8);
}

h1 {
  font-size: 26px;
  margin-top: 0;
  border-bottom: 3px solid #39ff88;
  padding-bottom: 16px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

/* Paragraphs */
p {
  line-height: 1.35;
  margin: 18px 0;
}

/* Strong text */
strong {
  color: #00d9ff;
  text-shadow: 0 0 6px rgba(0, 217, 255, 0.55);
}

/* Quote boxes / signs / spoken dialogue */
blockquote {
  background: #050805;
  border-left: 6px solid #00d9ff;
  border-top: 2px solid #00d9ff;
  border-bottom: 2px solid #00d9ff;
  padding: 16px 18px;
  margin: 22px 0;
  color: #d9fbff;
  box-shadow: inset 0 0 12px rgba(0, 217, 255, 0.15);
}

/* Dividers */
hr {
  border: none;
  border-top: 3px dashed #39ff88;
  margin: 28px 0;
}

/* Inputs and dropdowns */
input,
select {
  width: 100%;
  max-width: 360px;
  background: #050805;
  color: #ffffff;
  border: 3px solid #39ff88;
  font-family: 'VT323', monospace;
  font-size: 24px;
  padding: 10px;
  outline: none;
  box-shadow: inset 0 0 10px rgba(57, 255, 136, 0.15);
}

input:focus,
select:focus {
  border-color: #00d9ff;
  box-shadow:
    0 0 12px rgba(0, 217, 255, 0.55),
    inset 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Stat rows */
.stat-row {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  align-items: center;
}

.stat-row label {
  color: #d8ffe8;
}

/* Buttons */
button {
  background: #111;
  color: #39ff88;
  border: 3px solid #39ff88;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  padding: 14px 18px;
  margin: 8px 8px 8px 0;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    4px 4px 0 #000,
    0 0 12px rgba(57, 255, 136, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

button:hover {
  background: #39ff88;
  color: #050505;
  transform: translate(2px, 2px);
  box-shadow:
    2px 2px 0 #000,
    0 0 18px rgba(57, 255, 136, 0.75);
}

button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/* Result / message boxes */
#result,
#rollResult,
#riddleResult,
#refuseMessage {
  background: #050805;
  border: 3px solid #39ff88;
  padding: 18px;
  margin-top: 24px;
  box-shadow: inset 0 0 12px rgba(57, 255, 136, 0.12);
}

/* Links, if we add any later */
a {
  color: #00d9ff;
}

a:hover {
  color: #ffe66d;
}

/* Future pixel art scene containers */
.scene-art {
  background: #050805;
  border: 3px solid #00d9ff;
  padding: 18px;
  margin: 22px 0;
  text-align: center;
  box-shadow: inset 0 0 16px rgba(0, 217, 255, 0.15);
}

.pixel-character {
  image-rendering: pixelated;
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* Little PCG-style label */
.character-creator::marker {
  display: none;
}

/* Mobile friendly */
@media (max-width: 650px) {
  body {
    font-size: 21px;
    padding: 18px 10px;
  }

  .character-creator {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
    font-size: 12px;
  }
}