/* ForeverHumans Toolkit — Scene Kit page styles.
   Plain CSS, no framework. The page shell stays neutral dark so the
   scene previews (which carry the streamer's own theme) do the talking. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #0c0c12;
  color: #f4f4f5;
  line-height: 1.5;
}

.page-head,
main,
.page-foot {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-head { padding-top: 40px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #39ff14;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-family: 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', sans-serif;
  font-weight: 400;
}

.lede {
  margin: 0;
  max-width: 68ch;
  color: #c9c9d1;
  font-size: 17px;
}

/* ---- controls ---- */

.controls {
  margin-top: 32px;
  padding: 20px;
  background: #15151f;
  border: 1px solid #26263a;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

html.fx-on .controls {
  background: rgba(21, 21, 31, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.field {
  flex: 1 1 320px;
  display: block;
}

.field > span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: #f4f4f5;
  background: #0a0a0f;
  border: 1px solid #3a3a52;
  border-radius: 10px;
}

.field input:focus {
  outline: 2px solid #39ff14;
  outline-offset: 1px;
  border-color: transparent;
}

.field small {
  display: block;
  margin-top: 8px;
  color: #a1a1aa;
  font-size: 13px;
}

.controls-actions {
  flex: 1 1 260px;
}

.hint {
  margin: 12px 0 0;
  color: #a1a1aa;
  font-size: 14px;
}

/* ---- buttons ---- */

.btn {
  appearance: none;
  border: 1px solid #3a3a52;
  background: #1e1e2e;
  color: #f4f4f5;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { background: #282840; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid #39ff14;
  outline-offset: 2px;
}

.btn-primary {
  background: #39ff14;
  border-color: #39ff14;
  color: #0a0a0f;
  width: 100%;
  font-size: 16px;
  padding: 13px 18px;
}

.btn-primary:hover {
  background: #5cff3d;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.45), 0 0 32px rgba(57, 255, 20, 0.18);
}

/* ---- scene blocks ---- */

.scene {
  margin-top: 36px;
  padding: 20px;
  background: #15151f;
  border: 1px solid #26263a;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .scene:hover {
    border-color: rgba(57, 255, 20, 0.45);
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.18), 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(57, 255, 20, 0.10);
  }
}

.scene-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scene-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.scene-head p {
  margin: 0;
  max-width: 62ch;
  color: #a1a1aa;
  font-size: 15px;
}

.scene canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* The overlay preview sits on a checkerboard so the see-through
   middle actually reads as see-through on the page. */
.overlay-wrap {
  border-radius: 8px;
  background-color: #2a2a2a;
  background-image:
    linear-gradient(45deg, #3d3d3d 25%, transparent 25%),
    linear-gradient(-45deg, #3d3d3d 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #3d3d3d 75%),
    linear-gradient(-45deg, transparent 75%, #3d3d3d 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.overlay-wrap canvas {
  background: transparent;
}

.page-foot {
  padding-top: 36px;
  padding-bottom: 48px;
  color: #a1a1aa;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 560px) {
  .page-head h1 { font-size: 32px; }
  .scene { padding: 14px; }
  .scene-head .btn { width: 100%; }
}
