:root {
  color-scheme: dark;
  --bg: #05060b;
  --panel: #11131d;
  --line: #2a2e42;
  --text: #edf0ff;
  --muted: #9aa4c8;
  --cyan: #4bf0ff;
  --pink: #ff4fd8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 79, 216, 0.14), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(75, 240, 255, 0.14), transparent 35%),
    linear-gradient(180deg, #060814 0%, #05060b 100%);
  color: var(--text);
}

.deck {
  width: min(1180px, 94vw);
  margin: 2.2rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.topbar {
  background: linear-gradient(140deg, rgba(75, 240, 255, 0.13), rgba(255, 79, 216, 0.13));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  color: var(--cyan);
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}

.subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.controls {
  display: grid;
  gap: 0.8rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

label {
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="color"],
select,
button {
  border-radius: 9px;
  border: 1px solid #3a3f56;
  background: #14192b;
  color: var(--text);
  font-size: 0.92rem;
}

input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
}

select {
  padding: 0.45rem 0.6rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

button {
  cursor: pointer;
  padding: 0.55rem 0.9rem;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
  filter: brightness(1.12);
}

button:active {
  transform: translateY(1px);
}

button.primary {
  border-color: #00c3ce;
  background: linear-gradient(180deg, #12e6f8, #0e8ea8);
  color: #041317;
  font-weight: 700;
}

.mirror-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status {
  margin: 0;
  color: #c4cef8;
  font-size: 0.9rem;
}

.workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
}

canvas {
  width: 100%;
  border: 1px solid #3b3f58;
  border-radius: 12px;
  image-rendering: pixelated;
  background: #080a13;
}

.notes ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #d6dcf5;
  display: grid;
  gap: 0.3rem;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}
