:root {
  --bg-base: #fbf6ec;
  --ink: #16202a;
  --accent: #ff6f3c;
  --accent-deep: #db4f21;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(22, 32, 42, 0.15);
  --shadow: 0 18px 44px rgba(37, 53, 73, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 183, 94, 0.5), transparent 35%),
    radial-gradient(circle at 85% 12%, rgba(255, 111, 60, 0.35), transparent 30%),
    linear-gradient(120deg, #fff9ef 0%, #fcefe7 52%, #f7efe9 100%);
}

.layout {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 2.2rem 0 2.8rem;
}

.hero h1 {
  margin: 0;
  font-family: "Bungee", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #7d5842;
}

.subtitle {
  margin-top: 0.5rem;
  max-width: 62ch;
  font-size: 1.03rem;
}

.stage {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.view-shell {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #0d1722;
  box-shadow: var(--shadow);
}

#outputCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1722;
}

.hud {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.hud span {
  display: inline-flex;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 30, 44, 0.1);
  font-size: 0.79rem;
  font-weight: 700;
}

.controls {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.control-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.control-row button,
.control-block select,
.control-block input[type="range"] {
  width: 100%;
}

button,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

button {
  cursor: pointer;
  background: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

button:hover:enabled {
  transform: translateY(-1px);
  background: #fff5ee;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#startBtn {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

#startBtn:hover:enabled {
  background: var(--accent-deep);
}

.control-block {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
}

#intensityValue {
  font-size: 0.82rem;
  color: #5a6470;
}

.toggle-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.shortcut-note {
  margin: 0.4rem 0 0;
  color: #5a6470;
  font-size: 0.83rem;
}

kbd {
  padding: 0.14rem 0.34rem;
  border: 1px solid rgba(22, 32, 42, 0.22);
  border-radius: 6px;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
}

.shots {
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.shots-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.shots-header h2 {
  margin: 0;
}

.shots-header p {
  margin: 0;
  color: #5a6470;
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.72rem;
}

.shot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.shot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot-card a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

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