@font-face {
  font-family: Barlow;
  src: url("/static/fonts/Barlow-Medium.ttf");
}
@font-face {
  font-family: Display;
  src: url("/static/fonts/BarlowCondensed-Bold.ttf");
}
@font-face {
  font-family: Bold;
  src: url("/static/fonts/Barlow-Bold.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff5e6;
  color: #201d1b;
  font:
    17px/1.4 Barlow,
    system-ui;
}
header {
  max-width: 700px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 2px solid #201d1b;
  gap: 12px;
}
.wordmark {
  font: italic 32px Display;
  color: #ed3025;
  text-decoration: none;
  -webkit-text-stroke: 1px #201d1b;
  white-space: nowrap;
}
main {
  max-width: 620px;
  margin: auto;
  padding: 22px 18px;
}
h1,
h2,
h3 {
  font-family: Display;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1 {
  font-size: 44px;
  text-align: center;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 25px;
}
p {
  margin: 8px 0 14px;
}
.sub {
  text-align: center;
  font-family: Bold;
}
.stamp {
  background: #dcf446;
  border: 2px solid;
  border-radius: 8px;
  padding: 6px 10px;
  font: 16px Display;
  display: inline-block;
  transform: rotate(-2deg);
}
.card {
  padding: 18px;
  border: 2px solid #201d1b;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 3px 4px 0 #201d1b;
  margin: 18px 0;
}
.card.lime {
  background: #dcf446;
}
.card.gold {
  background: #ffd66b;
}
.card.blue {
  background: #70c4e5;
}
.card.peach {
  background: #ffc19b;
}
.card.selected {
  outline: 4px solid #dcf446;
}
.small {
  font-size: 13px;
  color: #6a6056;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  min-width: 0;
}
.grow {
  flex: 1;
}
button,
.button {
  font: 17px Bold;
  color: #201d1b;
  background: #fffaf2;
  border: 2px solid #201d1b;
  border-radius: 12px;
  padding: 12px 15px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 0 #201d1b;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary,
.button.primary {
  background: #ed3025;
  color: #fffaf2;
}
button.lime {
  background: #dcf446;
}
.wide {
  width: 100%;
  margin: 8px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.tabs button {
  flex: 1;
  font-size: 15px;
  padding: 10px;
}
.tabs button[aria-pressed="true"] {
  background: #dcf446;
}
label {
  display: block;
  font-family: Bold;
  margin-top: 14px;
}
input,
select,
textarea {
  font: 17px Barlow;
  border: 2px solid #201d1b;
  border-radius: 10px;
  background: #fffaf2;
  width: 100%;
  padding: 12px;
  min-height: 48px;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
audio {
  width: 100%;
  margin: 12px 0;
}
#notice:empty {
  display: none;
}
#notice {
  padding: 12px;
  background: #dcf446;
  border: 2px solid;
  border-radius: 10px;
  margin-bottom: 16px;
}
#session {
  text-align: right;
  font-size: 14px;
  margin-bottom: 20px;
}
#session button {
  font-size: 13px;
  min-height: 36px;
  padding: 6px 10px;
}
footer {
  max-width: 620px;
  margin: 20px auto;
  padding: 20px;
  border-top: 2px solid;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
a {
  color: inherit;
}
.trophy {
  display: block;
  max-width: 180px;
  margin: 0 auto 18px;
}
.score {
  font: 40px Display;
}
.rank {
  font: 26px Display;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}
.podium .card {
  margin: 0;
  padding: 12px 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.podium h3 {
  font-size: 21px;
}
.podium .score {
  font-size: 34px;
}
.podium small {
  display: block;
}
.muted {
  opacity: 0.7;
}
details {
  margin: 14px 0;
}
summary {
  font-family: Bold;
  cursor: pointer;
}
progress {
  width: 100%;
  accent-color: #ed3025;
  height: 16px;
}
dialog {
  border: 3px solid #201d1b;
  border-radius: 18px;
  background: #fff5e6;
  max-width: 440px;
  width: 95%;
  padding: 22px;
}
dialog::backdrop {
  background: #201d1b99;
}
.hidden {
  display: none !important;
}
.badge {
  font: 13px Bold;
  background: #eee5d9;
  border-radius: 5px;
  padding: 3px 7px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 9px;
}
.error {
  background: #ffd4c9;
}
.bracket {
  border-left: 4px solid #201d1b;
  padding-left: 16px;
}
.legal {
  white-space: pre-line;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid #70c4e5;
  outline-offset: 3px;
}
@media (max-width: 360px) {
  h1 {
    font-size: 36px;
  }
  .stamp {
    font-size: 13px;
  }
  .podium {
    gap: 5px;
  }
  .podium h3 {
    font-size: 18px;
  }
  .wordmark {
    font-size: 28px;
  }
}

/* Full Blast keeps the existing application and deep-link identifiers. */
.wordmark {
  font-family: BarlowCondensed, sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
  color: #201d1b;
}
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 12px;
}

.analyzer {
  margin: 18px 0;
  padding: 16px;
  border: 2px solid #201d1b;
  border-radius: 14px;
  background: #eef9ed;
}
.analyzer h4 {
  font:
    28px Display,
    sans-serif;
  margin: 0;
}
.analysis-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.analysis-controls input {
  max-width: 200px;
}
.analysis-note {
  font-size: 13px;
  line-height: 1.5;
}
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.analysis-metrics > div {
  border: 2px solid #201d1b;
  border-radius: 9px;
  padding: 10px;
  background: #fff5e6;
}
.analysis-metrics dt {
  font-size: 12px;
}
.analysis-metrics dd {
  margin: 3px 0 0;
  font:
    28px Display,
    sans-serif;
}
.analysis-wave {
  width: 100%;
  height: 110px;
  border: 1px solid #201d1b;
  border-radius: 8px;
}
.analysis-segments {
  display: grid;
  gap: 5px;
}
.analyzer button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.analyzer > button,
.analyzer > div > button {
  margin: 4px 5px 4px 0;
}

.wordmark { display: inline-flex; flex-shrink: 0; }
.brand-logo { display: block; width: 210px; height: auto; aspect-ratio: 3 / 1; max-width: 100%; }
@media (max-width: 480px) { header { flex-wrap: wrap; } .brand-logo { width: 180px; } }
