:root {
  --gap: clamp(12px, 4.5vmin, 72px);
  --inset: clamp(6px, 1.1vmin, 12px);
  --radius: clamp(22px, 3.4vmin, 38px);
  --ice: #9ed1ff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #0d0f12;
  color: #fff;
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* Cool silver light behind the glass, with a faint lattice. */
.scene {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(40% 36% at 16% 20%, rgba(214, 226, 242, 0.62), transparent 70%),
    radial-gradient(36% 34% at 86% 24%, rgba(150, 174, 206, 0.52), transparent 72%),
    radial-gradient(44% 40% at 70% 88%, rgba(190, 206, 228, 0.46), transparent 70%),
    radial-gradient(30% 28% at 24% 84%, rgba(112, 134, 166, 0.42), transparent 70%),
    linear-gradient(180deg, #141820, #0d0f12);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.glass {
  position: fixed;
  inset: var(--gap);
  border-radius: var(--radius);
  background: rgba(16, 19, 24, 0.46);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.edge {
  position: absolute;
  inset: var(--inset);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--radius) - var(--inset));
  pointer-events: none;
}
.content {
  position: absolute;
  inset: var(--inset);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(16px, 3vmin, 30px) clamp(18px, 4vmin, 40px);
  scrollbar-width: thin;
}

.label {
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
a.label:hover { color: #fff; }
.bar { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 400px) {
  .bar .new { display: none; }
}

.center {
  min-height: calc(100% - 40px);
  padding: clamp(10px, 3vh, 28px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.title { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.icon { width: clamp(56px, 9vh, 76px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
h1 {
  margin: clamp(10px, 2vh, 18px) 0 0;
  font-size: clamp(36px, min(6.6vw, 8.4vh), 70px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.lede { margin: 0 0 clamp(14px, 2.6vh, 22px); max-width: 36em; font-size: clamp(16px, 2.1vw, 19px); color: rgba(255, 255, 255, 0.72); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.button:hover { border-color: rgba(255, 255, 255, 0.6); }
.button .star { width: 15px; height: 15px; fill: #fff; }
.button.solid { border-color: #fff; background: #fff; color: #0d0f12; }
.button.solid:hover { background: rgba(255, 255, 255, 0.86); }

.thanks { margin: 0 0 14px; font-size: 14px; color: rgba(255, 255, 255, 0.75); animation: drop 0.4s ease-out both; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* What you get and what it explains, then questions people search for, below the fold. */
.section {
  width: min(720px, 100%);
  margin: clamp(20px, 5vh, 48px) auto clamp(8px, 2vh, 16px);
  display: grid;
  gap: 10px;
}
.section h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }
.verdicts { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.verdicts li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.verdicts b { color: #fff; }
.verdicts .key b { color: var(--ice); }
.section details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
}
.section summary { cursor: pointer; font-weight: 600; }
.section details p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 15px; }
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  font: 13px/1.55 var(--mono);
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.verdicts code, .section details code { font: 0.92em var(--mono); color: #fff; }

.foot { display: grid; gap: 4px; margin-top: clamp(16px, 3vh, 28px); text-align: center; }
.foot p { margin: 0; font: 11px/1.6 var(--mono); letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.4); }
.foot a { color: rgba(255, 255, 255, 0.7); }

/* The playground: controls on the left, the test box and actions on the right. */
.content > * { flex-shrink: 0; }
.center { min-height: 0; padding-bottom: 0; justify-content: flex-start; }
.studio {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  text-align: left;
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 10, 13, 0.55);
  padding: 14px 16px;
}
#controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 9px; align-content: start; }
.group legend, .cap {
  padding: 0;
  margin-bottom: 4px;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.row { display: grid; gap: 4px; }
.row .name { font-size: 13.5px; }
.slider { grid-template-columns: 1fr auto; }
.slider input, .slider .ends { grid-column: 1 / -1; }
.value { font: 12.5px var(--mono); color: var(--ice); }
.ends { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, 0.38); margin-top: -2px; }
input[type="range"] { width: 100%; margin: 2px 0; accent-color: var(--ice); height: 18px; }
.pills { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); }
.pill, .chip, .slot, .tool {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
.pill { flex: 1; min-width: 0; padding: 6px 4px; border-radius: 7px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.pill[aria-checked="true"] { background: rgba(158, 209, 255, 0.2); color: var(--ice); font-weight: 600; }
.pill:focus-visible, .chip:focus-visible, .slot:focus-visible, .tool:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.side { display: grid; gap: 12px; align-content: start; }
.slots { display: flex; gap: 8px; align-items: center; }
.slot {
  width: 46px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font: 700 15px var(--mono);
  color: rgba(255, 255, 255, 0.6);
}
.slot[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); background: rgba(158, 209, 255, 0.14); }
.tool {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13.5px;
  font-weight: 600;
}
.tool:hover, .chip:hover { border-color: rgba(255, 255, 255, 0.5); }
.tool.solid { background: #fff; color: #0d0f12; border-color: #fff; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(158, 209, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 15px/1.5 var(--sans);
  padding: 12px 14px;
}
textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
#presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
}
.chip[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); background: rgba(158, 209, 255, 0.12); }
.volume { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 13px; }
#code { font: 12px var(--mono); color: rgba(255, 255, 255, 0.45); word-break: break-all; }
#note { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--ice); }
.hint { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

.mac { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.mac .shot { width: 260px; }

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .side { order: -1; }
}
@media (max-width: 560px) {
  #controls { grid-template-columns: 1fr; gap: 14px; }
  .mac { grid-template-columns: 1fr; justify-items: center; }
  .mac .shot { width: min(300px, 100%); }
  .card { padding: 12px; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
