:root {
  --ink: #253052;
  --muted: #66708f;
  --page: #f6f8ff;
  --surface: #ffffff;
  --primary: #635bdb;
  --primary-dark: #4941b8;
  --secondary: #ffcf4a;
  --correct: #12845b;
  --correct-soft: #e3f8ef;
  --wrong: #c74355;
  --wrong-soft: #fff0f2;
  --blue-soft: #eaf1ff;
  --border: #dce2f2;
  --shadow: 0 18px 50px rgba(42, 53, 100, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --focus: #1677ff;
  color-scheme: light;
  font-family:
    "Trebuchet MS", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 207, 74, 0.2), transparent 24rem),
    radial-gradient(circle at 90% 80%, rgba(99, 91, 219, 0.14), transparent 28rem),
    var(--page);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible + span,
.level-card:has(input:focus-visible) {
  outline: 4px solid rgba(22, 119, 255, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 40px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 13px 13px 13px 4px;
  font-size: 0.9rem;
  letter-spacing: -1px;
  transform: rotate(-3deg);
}

.icon-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.icon-button:hover {
  border-color: var(--primary);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-sound-off,
.icon-button[aria-pressed="false"] .icon-sound-on {
  display: none;
}

.icon-button[aria-pressed="false"] .icon-sound-off {
  display: block;
}

.screen {
  animation: screen-in 420ms ease-out;
}

.screen[hidden] {
  display: none;
}

.start-screen,
.result-screen {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 226, 242, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-art {
  position: relative;
  width: 250px;
  height: 130px;
  margin: -10px auto 10px;
}

.hero-number {
  position: absolute;
  display: grid;
  width: 66px;
  height: 78px;
  place-items: center;
  color: #fff;
  border: 5px solid #fff;
  border-radius: 22px;
  box-shadow: 0 9px 20px rgba(42, 53, 100, 0.16);
  font-size: 2.8rem;
  font-weight: 900;
}

.hero-number-one {
  top: 30px;
  left: 24px;
  background: #ff6b7a;
  transform: rotate(-10deg);
}

.hero-number-two {
  top: 4px;
  left: 93px;
  z-index: 2;
  background: var(--primary);
}

.hero-number-three {
  top: 30px;
  right: 24px;
  background: #20b987;
  transform: rotate(10deg);
}

.shape {
  position: absolute;
  opacity: 0.8;
}

.shape-circle {
  top: 0;
  left: 12px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
}

.shape-triangle {
  right: 0;
  bottom: 10px;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-bottom: 22px solid #ff8e5b;
  border-left: 12px solid transparent;
  transform: rotate(20deg);
}

.shape-star {
  right: 15px;
  top: 4px;
  width: 22px;
  height: 22px;
  background: #54b6ff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.1;
}

.lead {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.55;
}

.level-picker {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 26px;
  padding: 0;
  border: 0;
  text-align: left;
}

.level-picker legend {
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 800;
}

.level-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.level-card:hover {
  transform: translateY(-2px);
  border-color: #aaa5ee;
}

.level-card:has(input:checked) {
  background: #f4f2ff;
  border-color: var(--primary);
}

.level-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.level-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 15px;
  font-size: 1.6rem;
  font-weight: 900;
}

.level-number-alt {
  background: #ff7a59;
}

.level-copy {
  display: grid;
  gap: 3px;
}

.level-copy strong {
  font-size: 1.1rem;
}

.level-copy small {
  color: var(--muted);
  font-size: 0.92rem;
}

.radio-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid #adb5cc;
  border-radius: 50%;
}

input:checked ~ .radio-indicator {
  border: 7px solid var(--primary);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 7px 0 var(--primary-dark);
}

.primary-button:hover {
  background: #574fce;
  transform: translateY(-2px);
}

.primary-button:active {
  box-shadow: 0 3px 0 var(--primary-dark);
  transform: translateY(4px);
}

.primary-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.secondary-button {
  color: var(--primary-dark);
  background: #fff;
  border: 2px solid #aaa5ee;
}

.secondary-button:hover {
  background: #f4f2ff;
}

.game-screen {
  display: grid;
  gap: 18px;
}

.game-status,
.question-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 226, 242, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.game-status {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
}

.progress-group {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #e8ebf5;
  border-radius: 99px;
}

#progress-bar {
  display: block;
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #8b83f2);
  border-radius: inherit;
  transition: width 350ms ease;
}

.stats {
  display: flex;
  gap: 8px;
  margin: 0;
}

.stat {
  min-width: 78px;
  padding: 8px 12px;
  text-align: center;
  background: var(--blue-soft);
  border-radius: 13px;
}

.stat dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.stat dd {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.stat-correct {
  background: var(--correct-soft);
}

.stat-wrong {
  background: var(--wrong-soft);
}

.stat-time {
  min-width: 92px;
  background: #fff7da;
}

.question-card {
  min-height: 570px;
  padding: clamp(22px, 4vw, 38px);
  text-align: center;
}

.level-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  color: var(--primary-dark);
  background: #efedff;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.question-hint {
  margin-bottom: 18px;
  color: var(--muted);
}

.objects-area {
  --object-size: 68px;
  display: grid;
  grid-template-columns: repeat(var(--columns, 5), minmax(42px, var(--object-size)));
  min-height: 225px;
  align-content: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  max-width: 780px;
  margin: 0 auto 14px;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    repeating-linear-gradient(0deg, transparent 0 31px, #dfe5f5 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #dfe5f5 32px),
    #f4f7ff;
  border: 2px dashed #cbd3e8;
  border-radius: 24px;
}

.counting-object {
  display: grid;
  width: var(--object-size);
  height: var(--object-size);
  place-items: center;
  animation: object-pop 350ms both;
  animation-delay: calc(var(--index) * 25ms);
}

.counting-object svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 2px rgba(42, 53, 100, 0.12));
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 160px));
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.answer-button {
  min-height: 72px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 5px 0 #cbd2e5;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.answer-button:hover:not(:disabled) {
  background: #f5f3ff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.answer-button.is-correct {
  color: #07593c;
  background: var(--correct-soft);
  border-color: var(--correct);
  box-shadow: 0 5px 0 #0a6b49;
  opacity: 1;
}

.answer-button.is-wrong {
  color: #8e2636;
  background: var(--wrong-soft);
  border-color: var(--wrong);
  box-shadow: 0 5px 0 #a43042;
  opacity: 1;
}

.feedback {
  min-height: 29px;
  margin: 4px 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.feedback.correct {
  color: var(--correct);
}

.feedback.wrong {
  color: var(--wrong);
}

.next-button {
  margin-top: 22px;
}

.result-medal {
  width: 116px;
  margin: -6px auto 6px;
}

.result-medal svg {
  display: block;
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 7px rgba(42, 53, 100, 0.18));
}

.result-medal circle {
  fill: var(--secondary);
  stroke: #f0a927;
  stroke-width: 8;
}

.ribbon {
  fill: var(--primary);
}

.ribbon-right {
  fill: #ff6b7a;
}

.medal-star {
  fill: #fff8d5;
}

.final-score {
  display: grid;
  gap: 3px;
  width: 180px;
  margin: 0 auto 16px;
  padding: 13px;
  color: var(--primary-dark);
  background: #f1efff;
  border-radius: 22px;
}

.final-score > span {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.final-score strong {
  font-size: 3.1rem;
  line-height: 1;
}

.final-score small {
  font-size: 1.4rem;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 500px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 18px;
}

.result-stats div {
  padding: 10px 8px;
}

.result-stats div + div {
  border-left: 2px solid var(--border);
}

.result-stats dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.result-stats dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  padding: 16px;
  color: #fff;
  background: var(--wrong);
  border-radius: 12px;
  text-align: center;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes object-pop {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 760px) {
  .game-status {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .stat {
    min-width: 0;
    padding-inline: 5px;
  }

  .objects-area {
    --object-size: 55px;
    min-height: 255px;
    padding: 15px 8px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
    padding-bottom: 24px;
  }

  .app-header {
    gap: 12px;
    margin-bottom: 10px;
  }

  #audio-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .icon-button {
    width: 46px;
    justify-content: center;
    padding: 8px;
  }

  .start-screen,
  .result-screen {
    padding: 22px 15px 26px;
    border-radius: 22px;
  }

  .hero-art {
    height: 112px;
    transform: scale(0.8);
    transform-origin: center bottom;
    margin-top: -22px;
    margin-bottom: -6px;
  }

  .start-screen .lead {
    margin-bottom: 20px;
  }

  .level-picker {
    gap: 10px;
    margin-bottom: 20px;
  }

  .level-picker legend {
    margin-bottom: 8px;
  }

  .level-card {
    padding: 10px 12px;
  }

  .level-number {
    width: 46px;
    height: 46px;
  }

  .game-status,
  .question-card {
    border-radius: 20px;
  }

  .game-status {
    padding: 14px;
  }

  .stats {
    gap: 5px;
  }

  .stat dt {
    font-size: 0.66rem;
  }

  .stat dd {
    font-size: 1rem;
  }

  .question-card {
    min-height: 0;
    padding: 18px 12px 22px;
  }

  .objects-area {
    --object-size: 48px;
    grid-template-columns: repeat(var(--columns, 5), minmax(34px, var(--object-size)));
    min-height: 205px;
    gap: 7px;
    margin-bottom: 8px;
    padding: 12px 8px;
  }

  .feedback {
    min-height: 24px;
    margin: 0;
  }

  .answers {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
  }

  .answer-button {
    min-height: 64px;
    font-size: 1.55rem;
  }

  .result-screen {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "medal eyebrow"
      "medal title"
      "medal message"
      "score score"
      "stats stats"
      "actions actions";
    column-gap: 14px;
    align-items: center;
    text-align: left;
  }

  .result-screen .result-medal {
    grid-area: medal;
    align-self: center;
    width: 84px;
    margin: 0;
  }

  .result-screen .eyebrow {
    grid-area: eyebrow;
    margin-bottom: 3px;
  }

  .result-screen h2 {
    grid-area: title;
    margin-bottom: 5px;
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .result-screen .lead {
    grid-area: message;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 16px;
    line-height: 1.35;
  }

  .final-score {
    grid-area: score;
    justify-self: center;
    width: 170px;
    margin-bottom: 14px;
    padding: 11px;
    text-align: center;
  }

  .final-score strong {
    font-size: 2.8rem;
  }

  .result-stats {
    grid-area: stats;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-bottom: 18px;
    text-align: center;
  }

  .result-stats div + div {
    border-top: 0;
    border-left: 2px solid var(--border);
  }

  .result-stats div {
    padding: 8px 5px;
  }

  .result-stats dd {
    font-size: 1.12rem;
  }

  .result-actions {
    grid-area: actions;
    display: grid;
    width: 100%;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Refinamentos de interface - padrão MatematicaFC
   Mantém a lógica do jogo intacta e atua apenas na apresentação visual. */
.brand-mark {
  width: 54px;
  height: 44px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transform: rotate(-3deg);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(42, 53, 100, 0.16));
}

.brand-mark rect {
  fill: #d71920;
}

.brand-mark text {
  fill: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  text-anchor: middle;
}

.primary-button,
.secondary-button {
  min-width: 190px;
  min-height: 52px;
  padding: 11px 22px;
  line-height: 1.1;
  text-align: center;
}

.stats {
  align-items: stretch;
}

.stat {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 7px 10px;
}

.stat dd {
  margin-top: 1px;
  line-height: 1;
}

.feedback {
  display: grid;
  align-items: center;
}

@media (min-width: 900px) {
  .app-shell {
    width: min(1240px, calc(100% - 48px));
    padding-top: 18px;
  }

  .app-header {
    margin-bottom: 18px;
  }

  .start-screen {
    width: min(920px, 100%);
    padding: 34px 44px 40px;
  }

  .start-screen .hero-art {
    height: 112px;
    margin-bottom: 2px;
    transform: scale(0.92);
    transform-origin: center bottom;
  }

  .start-screen .lead {
    margin-bottom: 22px;
  }

  .level-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
    gap: 14px;
    margin-bottom: 24px;
  }

  .level-picker legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .game-screen {
    grid-template-columns: 292px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .game-status {
    position: sticky;
    top: 18px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat,
  .stat-time {
    min-width: 0;
  }

  .question-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr);
    grid-template-areas:
      "badge objects"
      "title objects"
      "hint objects"
      "feedback objects"
      "answers objects"
      "next objects";
    column-gap: clamp(22px, 3vw, 42px);
    row-gap: 8px;
    min-height: 0;
    padding: 26px clamp(26px, 3vw, 38px);
    text-align: left;
  }

  .level-badge {
    grid-area: badge;
    justify-self: start;
    margin-bottom: 4px;
  }

  .question-card h2 {
    grid-area: title;
    margin-bottom: 0;
  }

  .question-hint {
    grid-area: hint;
    margin-bottom: 2px;
  }

  .objects-area {
    grid-area: objects;
    width: 100%;
    max-width: none;
    min-height: clamp(360px, 48vh, 500px);
    margin: 0;
    padding: 18px;
  }

  .feedback {
    grid-area: feedback;
    min-height: 36px;
    margin: 0;
  }

  .answers {
    grid-area: answers;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    justify-content: stretch;
    gap: 10px;
    margin-top: 2px;
  }

  .answer-button {
    min-height: 68px;
  }

  .next-button {
    grid-area: next;
    justify-self: start;
    margin-top: 10px;
  }

  .result-screen {
    width: min(780px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "medal eyebrow"
      "medal title"
      "medal message"
      "score score"
      "stats stats"
      "actions actions";
    column-gap: 24px;
    align-items: center;
    padding: 30px 40px 34px;
    text-align: left;
  }

  .result-medal {
    grid-area: medal;
    width: 100px;
    margin: 0;
  }

  .result-screen .eyebrow {
    grid-area: eyebrow;
    margin-bottom: 4px;
  }

  .result-screen h2 {
    grid-area: title;
    margin-bottom: 6px;
  }

  .result-screen .lead {
    grid-area: message;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 18px;
    line-height: 1.42;
  }

  .final-score {
    grid-area: score;
    justify-self: center;
    margin-bottom: 14px;
    padding: 12px;
    text-align: center;
  }

  .result-stats {
    grid-area: stats;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .result-actions {
    grid-area: actions;
  }
}

@media (min-width: 1180px) {
  .game-screen {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .question-card {
    grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 48px;
    height: 40px;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
  }
}