/* ============================================================
   SEEDHUE STUDIO — eigenständiges Stylesheet.
   Gleiche Gestaltungssprache wie seedhue.com, aber ohne den
   Landingpage-Teil: das hier ist eine Werkbank, keine Broschüre.
   ============================================================ */

:root {
  --bg:        #08090c;
  --bg-2:      #0c0e13;
  --ink:       #f4f2ef;
  --ink-2:     rgba(244, 242, 239, 0.66);
  --ink-3:     rgba(244, 242, 239, 0.40);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);
  --accent:    #7fd4c1;
  --accent-2:  #e8a87c;
  --ok:        #7fd4a0;
  --warn:      #e8c47c;
  --bad:       #e88a7c;
  --radius:    16px;
  --radius-sm: 10px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
          "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
          Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
canvas, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ------------------------------------ */

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.03em; }
.brand__mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.6px solid var(--accent);
  position: relative;
  transition: border-color 0.8s var(--ease);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 4.2px;
  border-radius: 50%; background: var(--accent-2);
  transition: background 0.8s var(--ease);
}
.brand__tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-3);
  font-family: var(--mono);
}
.stat__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.4s var(--ease);
}
.stat.is-ok  .stat__dot { background: var(--ok); }
.stat.is-bad .stat__dot { background: var(--bad); }
@media (max-width: 620px) { .stat { display: none; } }

.lang {
  display: inline-flex; gap: 1px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 99px;
  font-size: 11.5px; font-weight: 600;
}
.lang__opt {
  padding: 4px 10px; border-radius: 99px; color: var(--ink-3);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang__opt.is-on { color: #0a0b0e; background: var(--ink); }

/* ---------- Aufbau --------------------------------------- */

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 30px) clamp(16px, 4vw, 34px) 40px;
}

.modes { display: flex; gap: 6px; margin-bottom: 18px; }
.mode {
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
  transition: all 0.25s var(--ease);
}
.mode:hover { color: var(--ink); }
.mode.is-on {
  color: #0a0b0e; background: var(--ink); border-color: transparent; font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
}
@media (max-width: 940px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Vorschau ------------------------------------- */

.stage {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin-inline: auto;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  transition: width 0.4s var(--ease);
}
.stage canvas { width: 100%; height: 100%; object-fit: cover; }
.stage__veil {
  position: absolute; inset: 0; background: var(--bg-2);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.stage.is-busy .stage__veil { opacity: 0.5; }
.stage__bar {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px; border-radius: 99px;
  font-size: 12px; color: var(--ink-2);
  background: rgba(8, 9, 12, 0.66);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.stage__style { color: var(--ink); font-weight: 550; }
.stage__sep { width: 1px; height: 10px; background: var(--line-2); }
.stage__dim { font-family: var(--mono); font-size: 11px; }

.hint { margin-top: 12px; font-size: 12.8px; color: var(--ink-3); max-width: 62ch; }

/* ---------- Bedienfeld ----------------------------------- */

.panel {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  display: grid; gap: 20px;
}
.block { display: grid; gap: 9px; }
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-3);
}
.note { font-size: 12px; color: var(--ink-3); }

.row {
  display: flex; gap: 6px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 4px 4px 4px 6px; background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}
.row__field {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  padding: 8px; font-family: var(--mono); font-size: 13.5px;
}
.row__dice {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.45s var(--ease);
}
.row__dice svg { width: 17px; height: 17px; }
.row__dice:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.row__dice.is-rolling { transform: rotate(360deg); }

.area {
  width: 100%; resize: vertical; min-height: 120px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 10px 12px; outline: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.area:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.022);
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.is-on {
  color: var(--ink);
  border-color: var(--line-2);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(255, 255, 255, 0.1);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.chips--sm .chip { padding: 5px 10px; font-size: 12px; font-family: var(--mono); }
.chip--own { border-style: dashed; font-family: var(--font); }

.custom, .quality {
  display: grid; gap: 10px;
  padding: 12px 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
}
.custom__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-3);
}
.custom__val { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }

.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; margin: 0; background: none; cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%),
                              rgba(255, 255, 255, 0.13) var(--fill, 30%));
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -5.5px;
  border: none; border-radius: 50%; background: var(--ink);
  transition: transform 0.18s var(--ease);
}
.slider:hover::-webkit-slider-thumb { transform: scale(1.15); }
.slider::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.13); }
.slider::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--accent); }
.slider::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: var(--ink); }

.actions { display: grid; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 18px; border-radius: 99px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 550;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              filter 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary {
  background: var(--ink); color: #0a0b0e; border-color: transparent; font-weight: 600;
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn:disabled { filter: saturate(0.3) brightness(0.7); cursor: progress; transform: none; }

.progress {
  min-height: 1.5em; font-size: 12.5px; color: var(--ink-3); text-align: center;
  font-family: var(--mono);
}
.progress.is-ok  { color: var(--ok); }
.progress.is-bad { color: var(--bad); }

/* ---------- Fußzeile ------------------------------------- */

.foot {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  font-size: 12.5px; color: var(--ink-3);
}
.foot a { transition: color 0.2s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot__meta { margin-left: auto; font-family: var(--mono); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
