:root {
  --bg: #ffffff;
  --pink: #ff2bd6;
  --pink-dark: #e600b8;
  --black: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --green: #198754;
  --red: #dc3545;
  --heading-font: "Barlow Condensed", sans-serif;
  --body-font: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--black);
  font-family: var(--body-font);
  font-size: 13px;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.site-shell,
main {
  width: 100%;
  min-height: 100vh;
}

/* =========================================
   TOP BANNER HEADER
========================================= */

.topbar {
  width: 100%;
  min-height: 64px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #111111;
  border-bottom: 1px solid #292929;
  position: relative;
  z-index: 100;
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}

.topbar .brand span {
  color: #ffffff;
}

.topbar .brand strong {
  color: var(--pink);
  font-weight: 900;
}

.topbar .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #555555;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar .back-button:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #111111;
}

/* =========================================
   INTRO SCREEN
========================================= */

.intro-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 65px 7%;
  background: #ffffff;
}

.landing-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 85px;
}

.landing-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow,
.rules-heading,
.landing-note,
.landing-footer {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--pink-dark);
  margin-bottom: 18px;
}

.landing-brand {
  font-family: var(--heading-font);
  font-size: clamp(75px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -4px;
  color: var(--black);
  white-space: nowrap;
}

.landing-brand span,
.game-brand span {
  color: var(--pink);
}

.landing-description {
  max-width: 520px;
  margin-top: 25px;
  color: #444444;
  font-size: 14px;
  line-height: 1.8;
}

.landing-start {
  width: 330px;
  max-width: 100%;
  min-height: 60px;
  margin-top: 30px;
  padding: 17px 22px;
  display: flex;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: var(--pink);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  transition: 0.2s;
}

.landing-start:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.button-arrow {
  font-size: 21px;
}

.landing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: #777777;
}

.note-dot {
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
}

/* =========================================
   RULES
========================================= */

.landing-rules {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rules-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--black);
}

.rules-line {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.rule-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: start;
}

.rule-item strong {
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 900;
  color: var(--pink);
  line-height: 0.9;
}

.rule-item h3 {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.rule-item p {
  max-width: 340px;
  color: #666666;
  font-size: 11px;
  line-height: 1.8;
}

.landing-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #999999;
}

/* =========================================
   GAME SCREEN
========================================= */

.game-screen {
  width: 100%;
  min-height: 100vh;
  padding: 10px 20px !important;
  background: #ffffff;
}

.game-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

/* =========================================
   PROGRESS
========================================= */

.progress-dots {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.progress-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dddddd;
}

.progress-dots span.active {
  background: var(--pink);
}

.progress-dots span.completed {
  background: var(--green);
}

/* =========================================
   GAME HEADER
========================================= */

.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.game-brand {
  font-family: var(--heading-font);
  font-size: 27px;
  font-weight: 900;
  line-height: 0.85;
}

.game-brand small {
  display: block;
  margin-top: 6px;
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #888888;
}

.text-button {
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
  transition: 0.2s;
}

.text-button:hover {
  color: var(--pink-dark);
}

.quit-button span {
  margin-left: 5px;
  font-size: 17px;
}

/* =========================================
   SCOREBOARD
========================================= */

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.score-item {
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--border);
}

.score-item:last-child {
  border-right: 0;
}

.score-label {
  color: #777777;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.score-item strong {
  font-family: var(--heading-font);
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
  color: var(--black);
}

/* =========================================
   STRIKES
========================================= */

.strike-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
}

.strike-icons span {
  width: 13px;
  height: 13px;
  display: block;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: transparent;
}

.strike-icons span.active {
  background: var(--red);
}

/* =========================================
   QUESTION CARD
========================================= */

.question-card {
  width: 100%;
  border: 1px solid var(--border);
  background: #ffffff;
}

/* =========================================
   FILM PANEL
========================================= */

.film-title-panel {
  min-height: 245px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 5px solid var(--pink);
  background: #171717;
  color: #ffffff;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.film-panel-top,
.film-panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #aaaaaa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.film-panel-mark {
  color: var(--pink);
}

.film-type-label {
  align-self: flex-start;
  padding: 5px 9px;
  margin-top: 15px;
  background: var(--pink);
  color: #111111;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.film-type-label:empty {
  display: none;
}

.film-title-panel h3 {
  margin-top: 12px;
  max-width: 100%;
  font-family: var(--heading-font);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.5px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.film-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--pink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.meta-divider {
  color: #777777;
}

.film-title-panel.correct {
  background: #198754;
  border-top-color: #65d98b;
}

.film-title-panel.wrong {
  background: #dc3545;
  border-top-color: #ff8c96;
}

.film-title-panel.correct .film-panel-mark,
.film-title-panel.wrong .film-panel-mark,
.film-title-panel.correct .film-meta,
.film-title-panel.wrong .film-meta {
  color: #ffffff;
}

/* =========================================
   QUESTION CONTENT
========================================= */

.question-content {
  padding: 20px 22px;
  background: #ffffff;
}

.question-prompt {
  margin-bottom: 11px;
  color: #555555;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

/* =========================================
   ANSWER FORM
========================================= */

#answerForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px 75px;
  align-items: stretch;
  gap: 7px;
}

.autocomplete-wrap {
  position: relative;
  min-width: 0;
}

#castInput {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}

#castInput::placeholder {
  color: #999999;
  font-weight: 500;
}

#castInput:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}

/* =========================================
   AUTOCOMPLETE
========================================= */

.suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--pink);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.suggestions > * {
  width: 100%;
  display: block;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  color: #111111;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  transition: 0.15s;
}

.suggestions > *:last-child {
  border-bottom: 0;
}

.suggestions > *:hover,
.suggestions > *.active {
  background: var(--pink);
  color: #111111;
}

.suggestions::-webkit-scrollbar {
  width: 5px;
}

.suggestions::-webkit-scrollbar-track {
  background: #eeeeee;
}

.suggestions::-webkit-scrollbar-thumb {
  background: var(--pink);
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-button {
  min-height: 46px;
  padding: 9px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: var(--pink);
  color: #111111;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: 0.2s;
}

.submit-button span {
  font-size: 17px;
}

.submit-button:hover:not(:disabled) {
  background: #ffffff;
}

.submit-button:disabled {
  opacity: 0.45;
}

/* =========================================
   PASS BUTTON
========================================= */

.pass-button {
  min-height: 46px;
  padding: 9px 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: #ffffff;
  color: #333333;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: 0.2s;
}

.pass-button span {
  font-size: 16px;
}

.pass-button:hover:not(:disabled) {
  border-color: var(--pink);
  background: var(--pink);
  color: #111111;
}

/* =========================================
   FEEDBACK
========================================= */

.feedback {
  min-height: 0;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.feedback:empty {
  display: none;
}

.feedback.success {
  padding: 10px 13px;
  border-left: 4px solid #0f5132;
  background: #198754;
  color: #ffffff !important;
}

.feedback.error {
  padding: 10px 13px;
  border-left: 4px solid #842029;
  background: #dc3545;
  color: #ffffff !important;
}

/* =========================================
   TIMER
========================================= */

.timer-section,
.multiplier-section {
  margin-top: 13px;
}

.timer-information,
.multiplier-information {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.timer-caption,
.multiplier-caption {
  color: #666666;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

#timerValue,
#multiplierValue {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  color: var(--pink-dark);
}

.timer-track,
.multiplier-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #eeeeee;
}

.timer-fill,
.multiplier-fill {
  width: 100%;
  height: 100%;
  background: var(--pink);
  transition: width 0.2s linear;
}

/* =========================================
   FOOTER
========================================= */

.game-footer {
  margin-top: 20px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: #999999;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

/* =========================================
   GAME OVER
========================================= */

.game-over {
  width: 100%;
  min-height: 100vh;
  padding: 10px 22px !IMPORTANT;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  color: #111111;
}

.game-over-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.game-over-label {
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 3px;
}

.game-over h2 {
  margin-top: 17px;
  font-family: var(--heading-font);
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.9;
  color: #111111;
}

.game-over h2 em {
  color: var(--pink);
  font-style: normal;
}

.game-over-description {
  margin-top: 20px;
  color: #666666;
  font-size: 13px;
  line-height: 1.7;
}

.final-score {
  margin-top: 35px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.final-score > span,
.high-score > span {
  color: #777777;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 2px;
}

.final-score strong {
  font-family: var(--heading-font);
  font-size: 75px;
  font-weight: 900;
  line-height: 1;
  color: var(--pink-dark);
}

.final-results {
  margin-top: 12px;
}

.high-score {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f7f7f7;
}

.high-score strong {
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 900;
  color: #111111;
}

.game-over-actions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-button {
  width: 100%;
  min-height: 55px;
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: var(--pink);
  color: #111111;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  transition: 0.2s;
}

.primary-button span {
  font-size: 21px;
}

.primary-button:hover {
  background: #ffffff;
}

.home-button {
  min-height: 45px;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  transition: 0.2s;
}

.home-button:hover {
  color: var(--pink-dark);
}

.game-over-footer {
  margin-top: 40px;
  color: #999999;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {
  .landing-container {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .landing-main {
    align-items: center;
    text-align: center;
  }

  .landing-description {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-note {
    justify-content: center;
  }

  .landing-rules {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
  .topbar {
    min-height: 58px;
    padding: 0 18px;
  }

  .topbar .brand {
    font-size: 22px;
  }

  .topbar .back-button {
    padding: 8px 10px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }

  .intro-screen {
    padding: 45px 20px;
  }

  .landing-container {
    gap: 45px;
  }

  .landing-brand {
    font-size: clamp(55px, 13vw, 80px);
    letter-spacing: -2px;
  }

  .landing-description {
    margin-top: 20px;
    font-size: 13px;
  }

  .landing-start {
    width: 100%;
    min-height: 55px;
  }

  .landing-rules {
    gap: 24px;
  }

  .rule-item {
    grid-template-columns: 40px 1fr;
    gap: 13px;
  }

  .rule-item strong {
    font-size: 32px;
  }

  .rule-item h3 {
    font-size: 10px;
  }

  .rule-item p {
    font-size: 10px;
  }

  .game-screen {
    padding: 15px 12px 20px;
  }

  .game-heading {
    margin-bottom: 13px;
  }

  .game-brand {
    font-size: 23px;
  }

  .scoreboard {
    margin-bottom: 13px;
  }

  .score-item {
    min-height: 68px;
  }

  .score-item strong {
    font-size: 29px;
  }

  .strike-icons {
    gap: 5px;
  }

  .strike-icons span {
    width: 11px;
    height: 11px;
  }

  .film-title-panel {
    min-height: 205px;
    padding: 18px 16px;
  }

  .film-title-panel h3 {
    font-size: 40px;
  }

  .film-meta {
    font-size: 8px;
    gap: 6px;
  }

  .question-content {
    padding: 16px 12px;
  }

  #answerForm {
    grid-template-columns: minmax(0, 1fr) 82px 58px;
    gap: 5px;
  }

  #castInput {
    min-height: 43px;
    padding: 9px;
    font-size: 10px;
  }

  #castInput::placeholder {
    font-size: 10px;
  }

  .submit-button,
  .pass-button {
    min-height: 43px;
    padding: 7px 3px;
    gap: 3px;
    font-size: 8px;
    letter-spacing: 0.2px;
  }

  .submit-button span,
  .pass-button span {
    font-size: 13px;
  }

  .question-prompt {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .timer-section,
  .multiplier-section {
    margin-top: 11px;
  }

  #timerValue,
  #multiplierValue {
    font-size: 19px;
  }

  .timer-track,
  .multiplier-track {
    height: 5px;
  }

  .game-footer {
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    font-size: 7px;
  }

  .game-over {
    padding: 40px 18px;
  }

  .game-over h2 {
    font-size: 62px;
  }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 360px) {
  .landing-brand {
    font-size: 51px;
  }

  .game-brand {
    font-size: 21px;
  }

  .score-item strong {
    font-size: 25px;
  }

  .film-title-panel h3 {
    font-size: 34px;
  }

  #answerForm {
    grid-template-columns: minmax(0, 1fr) 72px 53px;
    gap: 4px;
  }

  .submit-button,
  .pass-button {
    font-size: 7px;
  }
}

/* =========================================
   FORCE INPUT, SUBMIT AND PASS ON ONE ROW
========================================= */

#answerForm {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 145px 90px !important;
  grid-template-rows: 52px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#answerForm .autocomplete-wrap {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

#answerForm #submitButton {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  margin: 0 !important;
}

#answerForm #passButton {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 8px !important;
  justify-content: center !important;
  align-items: center !important;
}

/* MOBILE ANSWER FORM */

@media (max-width: 600px) {
  #answerForm {
    grid-template-columns: minmax(0, 1fr) 82px 58px !important;
    grid-template-rows: 45px !important;
    gap: 5px !important;
  }

  #answerForm #submitButton,
  #answerForm #passButton {
    height: 45px !important;
    font-size: 8px !important;
  }
}

/* =========================================
   ROUND RESULTS + SHARE
========================================= */

.progress-dots span.missed {
  background: #ffffff;
  border: 1px solid #cfcfcf;
}

.round-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.round-stat {
  min-height: 92px;
  padding: 17px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: #fff;
}

.round-stat span,
.result-breakdown-heading,
.share-preview-label {
  color: #777;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.round-stat strong {
  font-family: var(--heading-font);
  font-size: 38px;
  line-height: 1;
}

.result-breakdown {
  margin-top: 12px;
  padding: 19px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.result-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.result-dots span,
.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 12px;
  border-radius: 50%;
}

.result-dots .correct,
.legend-dot.correct-dot {
  background: #198754;
}

.result-dots .missed,
.legend-dot.missed-dot {
  background: #fff;
  border: 1px solid #c9c9c9;
}

.result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 15px;
  color: #777;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.result-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-preview {
  margin-top: 12px;
  padding: 16px;
  background: #f7f7f7;
  text-align: left;
}

.share-preview pre {
  margin-top: 10px;
  color: #333;
  font: 600 11px/1.8 var(--body-font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.share-button {
  margin-bottom: 2px;
}

.share-feedback {
  min-height: 16px;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  opacity: 0;
}

.share-feedback.visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .round-stat {
    min-height: 82px;
    padding: 14px 8px;
  }

  .round-stat strong {
    font-size: 33px;
  }

  .result-breakdown {
    padding: 16px 12px;
  }

  .result-dots {
    gap: 7px;
  }

  .result-dots span,
  .legend-dot {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }
}

/* =========================================
   STREAK LIFE REWARD NOTICE
========================================= */

.streak-notice {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 11px 22px;
  background: #ff28c9;
  color: #111111;
  border: 2px solid #111111;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1;
  text-align: center;
  box-shadow: 4px 4px 0 #111111;
}

.streak-notice.hidden {
  display: none !important;
}

.streak-notice.streak-pop {
  animation: streakRewardPop 0.32s ease-out;
}

@keyframes streakRewardPop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }

  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .streak-notice {
    margin-bottom: 10px;
    padding: 9px 16px;
    font-size: 18px;
  }
}
