:root {
  --bg: #ffffff;
  --panel: #f2f2f2;
  --ink: #050505;
  --accent: #d8ff00;
  --line: #cccccc;
  --sans-heavy: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mobile-base-size: clamp(22px, 6.2vw, 32px);
  --mobile-tap-size: clamp(30px, 9.2vw, 46px);
  --mobile-name-size: clamp(24px, 7.4vw, 36px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans-heavy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
}

.scanner-header {
  margin: 0 auto 34px;
  max-width: 594px;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
}

.scanner-header h1 {
  display: inline-block;
  margin: 0;
  padding: 0.04em 0.1em;
  background: var(--accent);
  color: #000;
  font-family: var(--sans-heavy);
  font-size: clamp(2.1rem, 7.6vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.page {
  width: min(594px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px);
}

.line-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1.38;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bio-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.16em;
}

.bio-row.active-row .name-bubble {
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  font-family: var(--sans-heavy);
  margin-top: 0.14em;
}

.sentence {
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans-heavy);
  font-weight: 900;
}

.sentence.active {
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.45;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.26em;
  text-underline-offset: 0.03em;
  text-decoration-skip-ink: none;
}

.name-bubble {
  display: inline-block;
  margin: 0;
  text-decoration: none;
  vertical-align: baseline;
}

.name-bubble:link,
.name-bubble:visited,
.name-bubble:hover,
.name-bubble:active {
  color: #000;
  text-decoration: none;
}

.name-bubble .name {
  display: inline-block;
  padding: 0.04em 0.1em;
  background: var(--accent);
  line-height: 1;
  font-family: var(--sans-heavy);
  font-weight: 900;
}

.site-footer {
  min-height: calc((clamp(2.7rem, 10vw, 8rem) * 0.82) + 28px);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-align: center;
  font-family: var(--sans-heavy);
  font-size: clamp(1.05rem, 2.4vw, 2rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: #d8ff00;
  text-decoration-thickness: 0.22em;
  text-underline-offset: 0.06em;
}

@media (max-width: 680px) {
  .scanner-header {
    margin: 0 auto 28px;
    padding: 8px 12px;
    max-width: 100%;
  }

  .scanner-header h1 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.04;
  }

  .page {
    width: 100%;
    padding: 0 12px 20px;
  }

  .line-list {
    gap: 18px;
    font-size: var(--mobile-base-size);
  }

  .sentence {
    font-size: var(--mobile-base-size);
    line-height: 1.2;
  }

  .sentence.active {
    font-size: var(--mobile-tap-size);
    line-height: 1.18;
  }

  .bio-row.active-row .sentence {
    font-size: var(--mobile-tap-size);
    line-height: 1.18;
  }

  .bio-row.active-row .name-bubble {
    font-size: var(--mobile-name-size);
    line-height: 1.18;
    margin-top: 0.14em;
  }

  .site-footer {
    min-height: 44px;
    padding: 8px 12px 14px;
    font-size: clamp(0.88rem, 4.3vw, 1.15rem);
  }

  .site-footer a {
    white-space: normal;
    text-align: center;
  }
}
