@import url("https://use.typekit.net/qja0dbh.css");

:root {
  --bg:      #fff2ea;
  --panel:   #ece3db;
  --border:  #e0c9b8;
  --track:   #e0c9b8;
  --amber:   #fe4067;
  --amber-d: #a77070;
  --text:    #601515;
  --dim:     #a77070;
  --ok:      #3f8f5c;
  --err:     #c23b3b;
  --font-ui: 'proxima-nova', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body { width: 100%; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: 11px; }

#stage { position: relative; }

#c {
  position: fixed; top: 0; left: 0;
  width: calc(100vw - 260px); height: 100vh; display: block;
}

#overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: calc(100vw - 260px); height: 100vh;
  background: rgba(255,242,234,.9);
  align-items: center; justify-content: center;
  z-index: 100;
}
#overlay.on { display: flex; }
#overlay span {
  color: var(--amber); letter-spacing: .15em; font-size: 11px;
}

#panel {
  position: fixed; top: 0; right: 0;
  width: 260px; height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}

.ps {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ps-label {
  font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 8px;
}

.sr { margin-bottom: 9px; }
.sr:last-child { margin-bottom: 0; }
.sr-head {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 2px;
}
.sr-name { font-size: 10px; color: var(--text); letter-spacing: .05em; }
.sr-val  { font-size: 10px; color: var(--amber); min-width: 38px; text-align: right; }
.sr-hint { font-size: 9px; color: var(--dim); margin-bottom: 3px; }

.radio-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
  margin-top: 4px;
}
.radio-grid input { display: none; }
.radio-grid label {
  padding: 5px 2px; text-align: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--dim); font-family: var(--font-ui);
  font-size: 9px; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer;
  border-radius: 6px;
  transition: all 0.1s ease;
}
.radio-grid input:checked + label {
  border-color: var(--amber); color: var(--amber);
}
.radio-grid label:hover {
  border-color: var(--text); color: var(--text);
}

.preset-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.pb {
  padding: 5px 4px; text-align: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--dim); font-family: var(--font-ui);
  font-size: 9px; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer;
  border-radius: 6px;
}
.pb:hover  { border-color: var(--amber); color: var(--text); }
.pb.active { border-color: var(--amber); color: var(--amber); }

@media (max-width: 400px) {
  html, body { height: auto; overflow-y: auto; overflow-x: hidden; }

  #stage {
    position: relative; width: 100%;
    height: 60vh; min-height: 280px;
  }
  #c, #overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
  }

  #panel {
    position: static; width: 100%; height: auto;
    border-left: none; border-top: 1px solid var(--border);
    overflow: visible;
  }
}
