:root {
  color-scheme: dark;
  font-family: "Courier New", Courier, monospace;
  background: #07110d;
  color: #d8ffd6;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 220, 124, 0.2), transparent 10rem),
    linear-gradient(180deg, #07111c 0%, #10281d 54%, #08110d 100%);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: #edffcc;
  text-shadow: 0 0 14px rgba(172, 255, 164, 0.4);
}

.masthead p,
.masthead h1 {
  margin: 0;
}

.masthead p {
  color: #89d68c;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead h1 {
  font-size: clamp(1.3rem, 4vw, 3rem);
  line-height: 1;
}

.board-wrap {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(183, 255, 166, 0.35);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(185, 255, 185, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 255, 185, 0.04) 1px, transparent 1px),
    rgba(2, 12, 8, 0.78);
  background-size: 1rem 1rem;
  box-shadow: inset 0 0 4rem rgba(33, 255, 125, 0.08), 0 1.5rem 5rem rgba(0, 0, 0, 0.45);
}

.board {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
  color: #aae9a0;
  font-size: clamp(0.46rem, 1.2vw, 0.9rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  white-space: pre;
  text-shadow: 0 0 12px rgba(122, 255, 115, 0.3);
}

.art-drop {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0.25rem 0.35rem;
  border: 2px solid #000;
  border-radius: 0.25rem;
  background: #000;
  pointer-events: none;
  white-space: pre;
  line-height: 0.95;
  mix-blend-mode: normal;
}

.style-neon {
  color: #caff7e;
  font-weight: 700;
  text-shadow: 0 0 0.4rem #78ff55, 0 0 1.4rem rgba(99, 255, 77, 0.55);
}

.style-water {
  color: #84f8ff;
  font-style: italic;
  text-shadow: 0 0 0.7rem rgba(82, 231, 255, 0.8);
}

.style-sunset {
  color: #ffd36b;
  text-shadow: 0.08em 0.08em 0 #d64c46, 0 0 1rem rgba(255, 149, 71, 0.55);
}

.style-ghost {
  color: rgba(245, 255, 230, 0.78);
  letter-spacing: 0.11em;
  text-shadow: 0 0 1rem rgba(255, 255, 255, 0.65);
}

.style-stone {
  color: #d6d2bc;
  font-weight: 900;
  text-shadow: 0.12em 0.12em 0 #4d5b4f;
}

.style-ember {
  color: #ff7a3d;
  text-shadow: 0 0 0.5rem #ff2f00, 0 0 1.3rem rgba(255, 111, 0, 0.65);
}

.style-acid {
  color: #d6ff00;
  font-weight: 900;
  text-shadow: 0.1em 0.1em 0 #236600, 0 0 0.9rem rgba(214, 255, 0, 0.5);
}

.style-orchid {
  color: #ff9bff;
  text-shadow: 0 0 0.7rem rgba(255, 86, 255, 0.85);
}

.style-ice {
  color: #dff8ff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 0.4rem #8cefff, 0.08em 0.08em 0 #28779b;
}

.style-ruby {
  color: #ff4f81;
  font-weight: 800;
  text-shadow: 0 0 0.6rem rgba(255, 40, 91, 0.9);
}

.style-gold {
  color: #ffe86b;
  font-weight: 900;
  text-shadow: 0.1em 0.1em 0 #7a5100;
}

.style-mint {
  color: #8bffd8;
  text-shadow: 0 0 0.75rem rgba(95, 255, 204, 0.75);
}

.style-lilac {
  color: #c8b6ff;
  text-shadow: 0.08em 0.08em 0 #4c377c, 0 0 0.9rem rgba(177, 137, 255, 0.65);
}

.style-coral {
  color: #ff9f8f;
  font-style: italic;
  text-shadow: 0 0 0.65rem rgba(255, 94, 79, 0.75);
}

.style-toxic {
  color: #7dff4f;
  letter-spacing: 0.13em;
  text-shadow: 0.08em 0 0 #e6ff38, -0.08em 0 0 #22d7ff;
}

.style-cobalt {
  color: #6fa8ff;
  font-weight: 800;
  text-shadow: 0 0 0.8rem rgba(80, 133, 255, 0.9);
}

.style-bone {
  color: #fff3d2;
  text-shadow: 0.1em 0.1em 0 #5e5747;
}

.style-rose {
  color: #ffbfd5;
  text-shadow: 0 0 0.7rem rgba(255, 130, 180, 0.85);
}

.style-limewire {
  color: #41ff28;
  font-weight: 900;
  text-shadow: 0 0 0.35rem #41ff28, 0.14em 0.14em 0 #003b12;
}

.style-terminal {
  color: #33ff99;
  text-shadow: 0 0 0.45rem rgba(51, 255, 153, 0.75);
}

.composer {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(183, 255, 166, 0.28);
  border-radius: 1rem;
  background: rgba(4, 18, 13, 0.88);
  box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.22);
}

.composer label {
  color: #baf4a8;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

input,
button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 1rem;
  outline: 1px solid rgba(177, 255, 155, 0.25);
  background: #06100c;
  color: #ecffe8;
}

input:focus {
  outline-color: #bbff6b;
  box-shadow: 0 0 0 0.25rem rgba(187, 255, 107, 0.12);
}

button {
  padding: 0 1.25rem;
  background: #bcff6e;
  color: #06100c;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .masthead {
    align-items: start;
    flex-direction: column-reverse;
  }

  .composer-row {
    grid-template-columns: 1fr;
  }
}
