:root {
  color-scheme: light;
  --ink: #292a34;
  --muted: #73757d;
  --line: #e2e0dd;
  --paper: #fffdf9;
  --a: #bf5226;
  --b: #5066bb;
  --mix: #477c68;
  --bg: #171c2b;
  font-family: "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  isolation: isolate;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #dc974e;
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
input[type="checkbox"] {
  accent-color: var(--a);
  width: 16px;
  height: 16px;
  flex: none;
}
input[type="range"] {
  accent-color: var(--a);
  cursor: pointer;
  min-width: 0;
  height: 22px;
}
input[type="text"],
input[type="number"],
select {
  border: 1px solid #d6d3cf;
  border-radius: 6px;
  background: #fffefb;
  color: var(--ink);
  padding: 9px 10px;
  max-width: 100%;
}
select {
  font-size: 14px;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
label {
  font-size: 14px;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  min-height: 1600px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at -12% 25%, #b659274d 0, transparent 47%),
    radial-gradient(ellipse at 106% 37%, #4c60b44d 0, transparent 51%),
    linear-gradient(135deg, #231d29, #141d31 65%, #222035);
}
.mark {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}
.plus {
  left: 2%;
  top: 360px;
  color: #efb06b33;
  font-size: 135px;
  transform: rotate(-13deg);
}
.sharp {
  left: 4%;
  top: 1010px;
  color: #efb06b2b;
  font-size: 180px;
  transform: rotate(13deg);
}
.minus {
  right: 3%;
  top: 440px;
  color: #9faff142;
  font-size: 160px;
  transform: rotate(-16deg);
}
.flat {
  right: 1%;
  top: 920px;
  color: #9faff12e;
  font-size: 230px;
  transform: rotate(14deg);
}
.note {
  left: 50%;
  top: 1390px;
  color: #b3badd26;
  font-size: 110px;
  transform: rotate(-15deg);
}
.staff {
  position: absolute;
  width: 450px;
  height: 63px;
  opacity: 0.14;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 12px,
    currentColor 12px 13px
  );
}
.staff-warm {
  color: #efb06b;
  left: -160px;
  top: 650px;
  transform: rotate(-28deg);
}
.staff-cool {
  color: #a2b5ff;
  right: -200px;
  top: 790px;
  transform: rotate(28deg);
}
.masthead {
  max-width: 1312px;
  margin: auto;
  padding: 27px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #f9f4eb;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 24px;
  color: #e9a96e;
  letter-spacing: -1px;
}
.brand-mark span {
  padding: 0 4px;
  color: #9daeea;
  font-size: 29px;
}
.edition {
  color: #b7b4c1;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.intro {
  max-width: 1312px;
  margin: 0 auto;
  padding: 40px 40px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: #f6f1e9;
}
.eyebrow {
  font-size: 12px;
  color: #beb1a4;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}
.intro h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 40px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.075em;
}
.intro h1 br {
  display: none;
}
.intro h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #edb479 5%, #efc9b4 45%, #abbbed 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.intro-copy {
  font-size: 14px;
  line-height: 1.95;
  color: #d1cbd2;
  flex: none;
}
.intro-caption {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #a6a4b4;
}
.warm-text {
  color: #edb479;
  font-family: Georgia, serif;
  font-size: 19px;
}
.cool-text {
  color: #a5b9ff;
  font-family: Georgia, serif;
  font-size: 19px;
}
main {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 40px 20px;
}
.panel {
  background: var(--paper);
  border: 1px solid #ebe4db;
  border-radius: 8px;
  box-shadow: 0 12px 30px #080d1c18;
}
.player {
  position: relative;
  padding: 24px 30px 18px;
  box-shadow: 0 20px 75px #03091630;
  border-top: 3px solid #d1a98e;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.player .section-heading h2 {
  font-size: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.step {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #97795c;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.privacy {
  font-size: 12px;
  color: #85828a;
}
.drop-zone {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 19px;
  padding: 15px 18px;
  background: #f3f0ea;
  border: 1px dashed #c7bbaa;
  border-radius: 5px;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.drop-zone.dragging {
  background: #fbe5cd;
  border-color: var(--a);
}
.file-icon {
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #9a8063;
  width: 36px;
  flex: none;
}
.file-copy {
  flex: 1;
  min-width: 0;
}
.file-copy h2 {
  font-size: 15px;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.file-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.button {
  border: 1px solid #d0c9bf;
  background: #fffefa;
  color: var(--ink);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
}
.button:hover:not(:disabled) {
  background: #ede6dc;
  border-color: #b2a698;
}
.button.primary {
  background: #303447;
  color: #fff;
  border-color: #303447;
}
.button.primary:hover:not(:disabled) {
  background: #41465d;
}
.transport {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 20px;
}
.transport #play {
  border-radius: 28px;
  min-width: 108px;
  height: 47px;
  background: #303447;
  font-weight: 600;
  box-shadow: 0 3px 9px #1b263520;
}
.transport #stop {
  border: none;
  background: transparent;
  padding: 8px;
  color: var(--muted);
}
.transport #seek {
  flex: 1;
  accent-color: #6f7283;
}
.transport output {
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 96px;
  text-align: right;
}
.transport label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
}
#volume {
  width: 75px;
  accent-color: #777785;
}
.analysis-status {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  min-height: 29px;
  margin: 5px 0 5px 3px;
}
.analysis-status progress {
  height: 5px;
  max-width: 150px;
  accent-color: var(--a);
}
.listening-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  gap: 14px;
}
.listening-heading p {
  font-size: 13px;
  color: #6e6b68;
}
.listening-heading .small {
  margin: 0;
}
.listen-modes {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1.5fr 1fr 1fr;
  gap: 10px;
  margin-top: 11px;
}
.listen-modes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #dcd8d2;
  border-radius: 5px;
  min-height: 130px;
  padding: 10px 8px 13px;
  background: #f8f5ef;
  color: #686874;
  position: relative;
}
.listen-modes button:hover {
  transform: translateY(-2px);
  border-color: #9b9590;
}
.mode-symbol {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 400;
}
.mode-symbol span {
  font-family: Georgia, serif;
  font-size: 17px;
  display: inline-block;
  vertical-align: top;
  margin-top: 4px;
  margin-left: 5px;
  opacity: 0.65;
}
.mode-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.listen-modes small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.listen-modes button.a {
  color: var(--a);
  background: #fbede0;
  border-color: #e8cbb2;
}
.listen-modes button.b {
  color: var(--b);
  background: #eaeefb;
  border-color: #cbd2eb;
}
.listen-modes .a .mode-symbol,
.listen-modes .b .mode-symbol {
  font-size: 41px;
  line-height: 1;
}
.listen-modes button.active {
  border-color: #52576f;
  box-shadow: inset 0 -4px 0 #52576f;
  background: #eeedf1;
}
.listen-modes button.active.a {
  border-color: #c27543;
  box-shadow: inset 0 -4px 0 var(--a);
  background: #f7ddc2;
}
.listen-modes button.active.b {
  border-color: #667abe;
  box-shadow: inset 0 -4px 0 var(--b);
  background: #d9e1fa;
}
.listen-modes button.mix.active {
  border-color: var(--mix);
  box-shadow: inset 0 -4px 0 var(--mix);
  background: #e5eee5;
}
.listen-modes button.mix {
  color: var(--mix);
}
.stereo-symbol {
  font-size: 23px;
  line-height: 1.8;
}
.stereo-note {
  font-size: 12px;
  color: #828189;
  text-align: right;
  margin: 9px 0 0;
}
.explore-heading {
  display: flex;
  gap: 15px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 35px 2px 15px;
  color: #f1eae3;
}
.explore-heading > span {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #b9aa99;
  letter-spacing: 0.06em;
}
.explore-heading h2 {
  font-family: "Yu Mincho", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.explore-heading p {
  font-size: 12px;
  color: #aba9b8;
  margin-left: auto;
}
.workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.settings {
  padding: 23px 20px;
  background: #f0ede7;
}
.settings h2 {
  font-size: 15px;
}
.filter-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}
.filter-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 12px 10px;
  border: 1px solid #d8d3ca;
  border-radius: 5px;
  background: #faf7f1;
  color: var(--ink);
}
.filter-card:hover {
  border-color: #ac9986;
}
.filter-card.selected {
  border-color: #97816c;
  background: #fffcf5;
  box-shadow: inset 3px 0 0 #9c7756;
}
.filter-symbol {
  white-space: nowrap;
  width: 44px;
  flex: none;
  font-family: Georgia, serif;
  font-size: 20px;
  color: #92785f;
}
.filter-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.filter-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.filter-description {
  margin-top: 13px;
  font-size: 12px;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
}
.divider {
  height: 1px;
  background: #d9d3cb;
  margin: 22px 0;
}
.settings > label:not(.check) {
  display: block;
  margin-bottom: 8px;
}
.settings select {
  width: 100%;
}
.odd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.odd-row input {
  width: 80px;
  padding: 6px 8px;
  font-size: 14px;
}
.odd-row .small {
  margin: 0;
  flex-basis: 100%;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.6;
}
.correction {
  margin-top: 20px;
  font-size: 13px;
  align-items: flex-start;
}
.correction input {
  margin-top: 3px;
}
.error {
  color: #ae314b;
  font-size: 12px;
  margin-top: 6px;
}
#custom-editor {
  margin-top: 15px;
}
#custom-numbers {
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
}
.analysis {
  padding: 23px 22px 20px;
  min-width: 0;
}
.badge {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: #969291;
}
.curve-legend {
  display: flex;
  gap: 22px;
  margin: 18px 0 2px;
  flex-wrap: wrap;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.a {
  color: var(--a);
}
.b {
  color: var(--b);
}
.mix {
  color: var(--mix);
}
.b input {
  accent-color: var(--b);
}
.mix input {
  accent-color: var(--mix);
}
.chart-wrap {
  position: relative;
  height: 250px;
  margin: 6px 0 10px;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
#chart-empty {
  position: absolute;
  inset: 25px 20px 38px 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}
#chart-empty strong {
  font-family: "Yu Mincho", Georgia, serif;
  font-size: 17px;
  color: #7b7776;
  font-weight: 500;
}
#chart-empty span {
  font-size: 12px;
  color: #96908d;
}
.peak-controls {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.peak-controls select {
  padding: 7px 8px;
}
.peak-controls .check {
  font-size: 13px;
  margin-left: auto;
}
.peak-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 11px 0 18px;
  font-size: 12px;
  min-height: 30px;
}
.local-peaks {
  display: flex;
  gap: 3px;
  flex: none;
}
.local-peaks button {
  background: #f2efe9;
  border: 1px solid #e0dcd6;
  color: var(--muted);
  border-radius: 4px;
  font-size: 12px;
  padding: 3px 8px;
}
.key-control {
  display: grid;
  grid-template-columns: 135px 115px 1fr 72px 28px;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
}
.key-control label {
  font-weight: 600;
  font-size: 13px;
}
.key-control output {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.key-control .cent-input {
  width: 72px;
  padding: 5px;
  font-size: 12px;
}
.unit {
  font-size: 12px;
  color: var(--muted);
}
.chart-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a6a3b2;
  font-size: 12px;
  padding: 28px 2px 12px;
}
.footer-version {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-left: 9px;
}
@media (min-width: 1500px) {
  .intro {
    padding-top: 48px;
    padding-bottom: 42px;
  }
  .intro h1 {
    font-size: 45px;
  }
  .player {
    padding-top: 27px;
    padding-bottom: 21px;
  }
  .listen-modes button {
    min-height: 143px;
  }
  .chart-wrap {
    height: 280px;
  }
}
@media (max-width: 1150px) {
  .intro {
    gap: 25px;
    padding-top: 30px;
  }
  .intro h1 {
    font-size: 33px;
  }
  .intro h1 br {
    display: block;
  }
  .intro-copy {
    font-size: 13px;
  }
  .workspace {
    grid-template-columns: 265px minmax(0, 1fr);
  }
  .key-control {
    grid-template-columns: 1fr 120px 72px 28px;
  }
  .key-control input[type="range"] {
    grid-row: 2;
    grid-column: 1/-1;
    width: 100%;
    margin: 0 0 6px;
  }
  .key-control output {
    justify-self: end;
  }
  .peak-controls .check {
    margin-left: 0;
  }
  .explore-heading p {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: -9px;
  }
  .player {
    padding: 23px;
  }
  .listen-modes {
    gap: 8px;
  }
  .mode-name {
    font-size: 13px;
  }
  .privacy {
    font-size: 12px;
  }
  .player .section-heading h2 {
    gap: 10px;
    font-size: 16px;
  }
}
@media (max-width: 850px) {
  .masthead {
    padding: 22px 22px 0;
  }
  .brand {
    font-size: 21px;
  }
  .edition {
    display: none;
  }
  .intro {
    padding: 28px 22px;
    gap: 24px;
  }
  .intro h1 {
    font-size: 30px;
  }
  .intro-copy {
    max-width: 46%;
  }
  .intro-caption {
    display: none;
  }
  main {
    padding: 0 22px 14px;
  }
  .player {
    padding: 20px;
  }
  .player .section-heading {
    flex-wrap: wrap;
    gap: 4px;
  }
  .privacy {
    margin-left: auto;
  }
  .drop-zone {
    margin-top: 15px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .settings {
    padding: 22px;
  }
  .filter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-card small {
    font-size: 12px;
  }
  .settings .filter-description {
    max-width: 650px;
  }
  .settings select {
    max-width: 350px;
  }
  .listen-modes {
    grid-template-columns: 0.85fr 1.3fr 1.3fr 1fr 1fr;
  }
  .listen-modes button {
    padding: 9px 5px;
    min-height: 126px;
  }
  .listen-modes small {
    font-size: 12px;
  }
  .transport {
    gap: 10px;
  }
  .transport #volume {
    width: 60px;
  }
  .stereo-note {
    font-size: 12px;
  }
  .chart-wrap {
    height: 280px;
  }
  .key-control {
    grid-template-columns: 135px 120px 1fr 72px 28px;
  }
  .key-control input[type="range"] {
    grid-row: auto;
    grid-column: auto;
  }
  .key-control output {
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .intro {
    display: block;
    padding-top: 28px;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro-copy {
    max-width: none;
    margin-top: 16px;
    font-size: 13px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .player {
    padding: 16px;
  }
  .player .section-heading h2 {
    display: block;
  }
  .player .step {
    display: block;
    margin-bottom: 4px;
  }
  .privacy {
    margin-left: 0;
  }
  .drop-zone {
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .file-icon {
    display: none;
  }
  .drop-zone .button {
    margin-left: auto;
  }
  .transport {
    flex-wrap: wrap;
    margin-top: 16px;
  }
  .transport #seek {
    flex-basis: 40%;
  }
  .transport label {
    margin-left: auto;
  }
  .transport #play {
    min-width: 95px;
  }
  .listen-modes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .listen-modes button {
    grid-column: span 2;
    min-height: 110px;
  }
  .listen-modes button.a {
    grid-column: 1/4;
    grid-row: 1;
  }
  .listen-modes button.b {
    grid-column: 4/7;
    grid-row: 1;
  }
  .listen-modes button.a,
  .listen-modes button.b {
    min-height: 130px;
  }
  .stereo-note {
    text-align: left;
  }
  .listening-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
  .explore-heading h2 {
    font-size: 18px;
  }
  .filter-list {
    grid-template-columns: 1fr;
  }
  .filter-card {
    flex-direction: row;
    align-items: center;
  }
  .analysis {
    padding: 20px 16px;
  }
  .badge {
    display: none;
  }
  .key-control {
    grid-template-columns: 1fr 120px 72px 26px;
  }
  .key-control input[type="range"] {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .peak-summary {
    flex-wrap: wrap;
  }
  .curve-legend {
    gap: 12px;
  }
  .legend {
    font-size: 12px;
  }
  footer {
    flex-wrap: wrap;
  }
  .chart-wrap {
    height: 235px;
  }
  .mark {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Pop / sketch edition: retain the listening flow and warm/cool identity. */
:root {
  --paper: #fffcf3;
}
.atmosphere {
  background:
    radial-gradient(circle at 10% 8%, #e9855740, transparent 36%),
    radial-gradient(circle at 90% 28%, #8775e04a, transparent 44%),
    radial-gradient(#d5c0df16 1px, transparent 1px),
    linear-gradient(135deg, #322435, #202842 65%, #322947);
  background-size:
    auto,
    auto,
    23px 23px,
    auto;
}
.edition {
  color: #302738;
  background: #fbd681;
  padding: 5px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid #302738;
  border-radius: 6px 12px 5px 9px;
  transform: rotate(3deg);
  box-shadow: 3px 3px 0 #c88b52;
}
.intro {
  gap: 32px;
  padding-top: 30px;
  padding-bottom: 32px;
}
.intro h1 {
  font-family: "UD Digi Kyokasho NP-B", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.5;
}
.intro h1 br {
  display: block;
}
.intro h1 em {
  display: inline-block;
  position: relative;
  background: none;
  color: #ffd38f;
  transform: rotate(-2deg);
}
.intro h1 em::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -5%;
  bottom: 1px;
  height: 8px;
  border-bottom: 3px solid #c0b1ef;
  border-radius: 40% 20% 50% 30%;
  transform: rotate(1deg);
}
.intro-copy {
  flex: 0 1 auto;
  font-size: 14px;
}
.eyebrow {
  color: #dcc4ae;
}
.panel {
  border: 2px solid #41394a;
  border-radius: 13px 8px 15px 9px;
  box-shadow: 5px 6px 0 #10152960;
}
.player {
  border-top: 3px solid #e9b681;
}
.player .section-heading h2,
.explore-heading h2 {
  font-family: "UD Digi Kyokasho NP-B", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
}
.step {
  color: #856749;
  font-weight: 700;
}
.drop-zone {
  border: 2px dashed #c9a77d;
  border-radius: 12px 7px 15px 8px;
  background: #f9eedb;
}
.file-icon {
  transform: rotate(-12deg);
  color: #ad7647;
}
.button {
  border-radius: 7px 10px 6px 9px;
}
.button.primary {
  box-shadow: 2px 3px 0 #c2aa8c;
}
.listen-modes {
  gap: 13px;
}
.listen-modes button {
  border-width: 2px;
  border-radius: 10px 7px 13px 8px;
}
.listen-modes button.a {
  background: #ffead1;
  border-color: #e2b487;
}
.listen-modes button.b {
  background: #eeebff;
  border-color: #c1bce2;
}
.listen-modes button.active.a {
  background: #ffdaad;
}
.listen-modes button.active.b {
  background: #dcd9fc;
}
.mode-symbol {
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  transform: rotate(-6deg);
}
.b .mode-symbol {
  transform: rotate(6deg);
}
.mode-symbol span {
  font-family: inherit;
}
.workspace {
  grid-template-columns: minmax(0, 1fr);
}
.analysis {
  padding: 24px 28px;
}
.settings {
  padding: 22px 28px;
  background: #f8efdc;
}
.settings h2 {
  font-size: 17px;
}
.filter-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.filter-card {
  padding: 14px 17px;
  border-radius: 7px 12px 8px 10px;
  border-width: 2px;
}
.filter-card.selected {
  border-color: #a77847;
  box-shadow: 3px 3px 0 #cda56e;
}
.filter-description {
  margin-top: 16px;
}
.settings-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  border-top: 1px dashed #cbbba2;
  padding-top: 18px;
  margin-top: 18px;
}
.link-options > label {
  display: block;
  margin-bottom: 6px;
}
.link-options select {
  max-width: 380px;
}
.odd-row .small {
  flex-basis: auto;
}
.correction {
  margin-top: 0;
}
#custom-editor {
  max-width: 850px;
}
@media (max-width: 1000px) {
  .intro {
    gap: 24px;
  }
  .intro-copy {
    max-width: 42%;
  }
  .filter-card {
    padding: 12px;
    gap: 8px;
  }
  .filter-symbol {
    width: 38px;
    font-size: 18px;
  }
}
@media (max-width: 850px) {
  .edition {
    display: inline-block;
    font-size: 12px;
  }
  .filter-card {
    flex-direction: row;
    align-items: center;
  }
  .filter-card small {
    display: none;
  }
  .settings-options {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .edition {
    display: none;
  }
  .intro-copy {
    max-width: none;
  }
  .intro h1 {
    font-size: 28px;
  }
  .settings,
  .analysis {
    padding: 20px 16px;
  }
  .filter-list,
  .settings-options {
    grid-template-columns: 1fr;
  }
  .filter-card small {
    display: block;
  }
}

/* Green Night: an off-kilter quiet room, ink and a small electric glow. */
:root {
  --ink: #2c3029;
  --muted: #717365;
  --line: #d1cfb5;
  --paper: #f8f4d9;
  --bg: #ebe4b5;
  --a: #617816;
  --b: #373894;
  --mix: #927058;
  font-family: "UD Digi Kyokasho NP-R", "Yu Gothic", Meiryo, sans-serif;
}
body {
  background: var(--bg);
}
.atmosphere {
  position: fixed;
  inset: 0;
  min-height: 0;
  height: 100vh;
  background: #ebe4b5 url("./assets/room-lines.svg") center / 100% 100%
    no-repeat;
}
.atmosphere .mark,
.atmosphere .staff {
  display: none;
}
.masthead {
  color: #33362d;
  padding-top: 25px;
}
.brand {
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 23px;
  font-weight: 700;
}
.brand-mark {
  font-family: "Segoe Print", cursive;
  color: #566722;
}
.brand-mark span {
  color: #383893;
}
.edition {
  background: #d0ed43;
  color: #34382b;
  border: 1px solid #464a36;
  border-radius: 3px 10px 2px 7px;
  box-shadow: 2px 3px 0 #a9aa81;
  transform: rotate(2deg);
  font-size: 13px;
}
.intro {
  padding-top: 35px;
  padding-bottom: 35px;
  gap: 36px;
  color: #34382b;
}
.eyebrow {
  color: #757b5d;
  font-family: "Segoe Print", cursive;
  letter-spacing: 0.15em;
  font-size: 11px;
}
.intro h1 {
  font-family: "UD Digi Kyokasho NP-B", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.intro h1 em {
  color: #343786;
  transform: rotate(-1deg);
}
.intro h1 em::after {
  border-color: #abb54e;
  border-bottom-width: 3px;
}
.intro-copy {
  position: relative;
  flex: 0 1 420px;
  padding: 37px 28px;
  color: #f5efc5;
  background: #292d79;
  border: 2px solid #373c40;
  border-radius: 5px 13px 4px 9px;
  box-shadow: 5px 6px 0 #a4a89b;
  font-size: 13px;
  line-height: 2.15;
  isolation: isolate;
}
.intro-copy::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #a9add04a;
  border-radius: 3px 8px 6px 2px;
  pointer-events: none;
}
.intro-copy::after {
  content: "✧  ·     ˚";
  position: absolute;
  right: 20px;
  top: 5px;
  color: #d8e68c;
  font-size: 15px;
  letter-spacing: 12px;
}
.warm-text {
  color: #d0ed43;
}
.cool-text {
  color: #c6c8ff;
}
.panel {
  background: #f8f5dfef;
  border: 1.5px solid #484b3d;
  border-radius: 5px 11px 5px 9px;
  box-shadow: 4px 5px 0 #9c9f8750;
}
.player {
  border-top: 2px solid #484b3d;
}
.player .section-heading h2 {
  color: #454a37;
  font-size: 19px;
}
.step {
  color: #78815c;
  font-family: "Segoe Print", cursive;
  font-size: 11px;
}
.privacy {
  color: #757866;
}
.drop-zone {
  background: #e9e6cc;
  border: 1px dashed #93987f;
  border-radius: 3px 9px 4px 7px;
}
.drop-zone.dragging {
  background: #e6edb5;
  border-color: #697b29;
}
.file-icon {
  color: #788443;
  transform: rotate(-9deg);
}
.button {
  background: #f8f5e1;
  border-color: #b3b69a;
  border-radius: 4px 8px 3px 6px;
}
.button.primary,
.transport #play {
  background: #c3e83c;
  color: #30382a;
  border-color: #56632e;
  box-shadow: 2px 3px 0 #959c70;
}
.button.primary:hover:not(:disabled) {
  background: #d2f14e;
}
.transport #play {
  border-radius: 8px 15px 10px 13px;
}
.listen-modes button {
  background: #efecd8;
  border-color: #bdc0a8;
  border-width: 1px;
  border-radius: 7px 12px 5px 10px;
  color: #696e58;
}
.listen-modes button.a {
  background: #e4eabd;
  border-color: #a5b274;
  color: #536628;
}
.listen-modes button.b {
  background: #e2e2ef;
  border-color: #a3a6c2;
  color: #3d4385;
}
.listen-modes button.active.a {
  background: #c5e746;
  border: 2px solid #56612e;
  box-shadow: inset 0 -4px 0 #7e962b;
}
.listen-modes button.active.b {
  background: #343980;
  color: #faf3cc;
  border-color: #303753;
  box-shadow: inset 0 -4px 0 #212545;
}
.listen-modes button.active.b small {
  color: #d6d6dd;
}
.listen-modes button.mix {
  background: #e9ddc9;
  color: #896953;
  border-color: #c3b39b;
}
.listen-modes button.mix.active {
  background: #dfc7a9;
  border-color: #997d60;
  box-shadow: inset 0 -4px 0 #997d60;
}
.listen-modes button[data-listen="stereo"] {
  background: #e0e2d6;
  border-color: #b3b8a9;
}
.listen-modes button.active:not(.a):not(.b):not(.mix) {
  border-color: #717765;
  box-shadow: inset 0 -4px 0 #717765;
}
.mode-symbol {
  font-family: "Segoe Print", "Comic Sans MS", cursive;
}
.stereo-note {
  color: #7b7e74;
}
.explore-heading {
  color: #414632;
}
.explore-heading > span {
  color: #737b5b;
}
.explore-heading p {
  color: #70755e;
}
.settings {
  background: #e5e2c9;
}
.filter-card {
  background: #f1efda;
  border: 1px solid #b3b79c;
  border-radius: 5px 10px 4px 8px;
}
.filter-card.selected {
  background: #ecf0cc;
  border-color: #727e4c;
  box-shadow: 2px 3px 0 #a2ac7d;
}
.filter-symbol {
  font-family: "Segoe Print", cursive;
  color: #74814a;
}
.settings-options {
  border-color: #b5b99b;
}
.badge {
  color: #7b826a;
  font-family: "Segoe Print", cursive;
  font-size: 11px;
}
#chart-empty strong {
  font-family: inherit;
}
footer {
  color: #74785e;
}
@media (max-width: 1000px) {
  .intro {
    gap: 25px;
  }
  .intro-copy {
    flex-basis: 350px;
    padding: 30px 20px;
  }
}
@media (max-width: 700px) {
  .intro {
    display: block;
  }
  .intro-copy {
    max-width: none;
    margin-top: 25px;
    padding: 28px 20px;
  }
  .brand {
    font-size: 19px;
  }
}
.sample-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sample-picker .button {
  font-size: 12px;
  padding: 5px 13px;
}
.sample-picker .button[aria-pressed="true"] {
  background: #d3e887;
  border-color: #77854c;
  box-shadow: inset 0 -2px 0 #8fa15c;
}
.sample-picker + .drop-zone {
  margin-top: 9px;
}
.chart-wrap {
  background: #fff;
  border: 1px solid #c3c6ad;
  border-radius: 5px 8px 4px 7px;
}
.key-hint {
  margin-top: 14px;
}
/* Series colours: sky blue, warm orange, forest green. */
:root {
  --a: #339dcc;
  --b: #e79a43;
  --mix: #39774f;
}
.a {
  color: #277fa8;
}
.b {
  color: #a66925;
}
.mix {
  color: #39774f;
}
.listen-modes button.a {
  color: #256f90;
  background: #deedf1;
  border-color: #8abac9;
}
.listen-modes button.b {
  color: #966028;
  background: #f7e5ca;
  border-color: #d5ad72;
}
.listen-modes button.active.a {
  color: #214d63;
  background: #9dd6e7;
  border-color: #4c96b3;
  box-shadow: inset 0 -4px 0 #339dcc;
}
.listen-modes button.active.b {
  color: #68441e;
  background: #f3c386;
  border-color: #bb843f;
  box-shadow: inset 0 -4px 0 #cf8b38;
}
.listen-modes button.active.b small {
  color: #78572d;
}
.listen-modes button.mix {
  color: #39774f;
  background: #e0e9d5;
  border-color: #9db291;
}
.listen-modes button.mix.active {
  background: #c1d6b5;
  border-color: #39774f;
  box-shadow: inset 0 -4px 0 #39774f;
}
.warm-text {
  color: #9dd6e7;
}
.cool-text {
  color: #f3c386;
}
.mix-position {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  color: #39774f;
  font:
    600 11px/15px "Segoe UI",
    sans-serif;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.mix-position span {
  display: block;
  font-size: 23px;
  line-height: 18px;
}
.key-hint {
  margin: 6px 0 13px;
}
.pitch-panel {
  margin-top: 22px;
  padding: 24px 28px;
}
.pitch-chart-wrap {
  height: 265px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #c3c6ad;
  border-radius: 5px 8px 4px 7px;
}
#pitch-chart {
  cursor: default;
}
.pitch-panel .curve-legend {
  align-items: center;
}
.pitch-panel .curve-legend .small {
  margin: 0;
}
@media (max-width: 600px) {
  .pitch-panel {
    padding: 20px 16px;
  }
}
.pitch-chart-wrap {
  height: 245px;
  background: #252d32;
  border: 1px solid #535f4c;
  border-radius: 7px 12px 6px 10px;
  box-shadow: inset 0 2px 18px #11192045;
}
.pitch-panel .badge {
  color: #7a8568;
}
.analysis .link-options select {
  width: 100%;
  max-width: 380px;
}
.masthead {
  flex-wrap: wrap;
}
.masthead .edition {
  margin-left: auto;
}
.language-switch {
  display: flex;
  gap: 3px;
  border: 1px solid #9aa280;
  padding: 3px;
  border-radius: 7px 4px 8px 5px;
  background: #f2efd8;
}
.language-switch button {
  border: 0;
  padding: 5px 10px;
  border-radius: 4px;
  background: transparent;
  color: #626951;
  font-size: 12px;
}
.language-switch button[aria-pressed="true"] {
  background: #354239;
  color: #f5f2d9;
}
html[lang="en"] .intro h1 {
  font-size: clamp(29px, 3vw, 41px);
}
html[lang="en"] .key-control {
  grid-template-columns: 140px 120px 1fr 72px 28px;
}
html[lang="en"] .mode-name {
  font-size: 13px;
}
html[lang="en"] .filter-card {
  align-items: flex-start;
}
@media (max-width: 1150px) {
  html[lang="en"] .key-control {
    grid-template-columns: 1fr 120px 72px 28px;
  }
}
@media (max-width: 600px) {
  .masthead {
    gap: 12px;
  }
  .language-switch {
    margin-left: auto;
  }
}
html[lang="en"] .filter-symbol {
  width: 54px;
}
