.stc-product-showcase {
  margin: 0;
  min-width: 0;
}

.stc-product-showcase__caption {
  margin-bottom: 1.25rem;
}

.stc-product-showcase__caption h3 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  margin: 0.25rem 0 0.6rem;
  text-transform: uppercase;
}

.stc-product-showcase__caption > p:last-child {
  margin-bottom: 0;
  max-width: 54ch;
}

.stc-product-showcase__eyebrow {
  color: #8f6819;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.stc-device {
  background: #07181f;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 26%);
  color: #fff;
  overflow: hidden;
  padding: 10px;
}

.stc-device__bar {
  align-items: center;
  color: rgb(255 255 255 / 76%);
  display: flex;
  font-size: 0.72rem;
  gap: 0.6rem;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 0.75rem;
}

.stc-device__bar > span:first-child {
  background: #daaf37;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.stc-device__status {
  color: #7ed99b;
}

.stc-device__screen {
  background: #f8f4ea;
  border-radius: 16px;
  color: #06141b;
  min-height: 300px;
  padding: clamp(1rem, 3vw, 2rem);
}

.stc-ui-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.stc-ui-head small {
  color: #166b39;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stc-ui-head h4 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.2;
  margin: 0.25rem 0 0;
}

.stc-ui-head > span {
  background: #eef9f1;
  border-radius: 999px;
  color: #166b39;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.stc-team-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stc-field-fixtures {
  display: grid;
  gap: 0.7rem;
}

.stc-field-fixture {
  background: #fff;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(6 20 27 / 6%);
  min-width: 0;
  padding: 0.8rem;
}

.stc-field-fixture__label {
  color: #166b39;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.stc-field-fixture__teams {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.stc-field-fixture__side {
  min-width: 0;
}

.stc-field-fixture__side.is-away {
  text-align: right;
}

.stc-field-fixture__side small {
  color: #8f6819;
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.stc-field-fixture__side p {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.stc-field-fixture__side p span {
  display: block;
  overflow-wrap: anywhere;
}

.stc-field-fixture__versus {
  align-items: center;
  color: #87918d;
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
}

.stc-team-grid section {
  background: #fff;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(6 20 27 / 6%);
  min-width: 0;
  padding: 0.8rem;
}

.stc-team-grid i,
.stc-team-dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.is-yellow { background: #daaf37; }
.is-blue { background: #236a8b; }
.is-green { background: #2f9e56; }
.is-white { background: #fff; border: 1px solid #aab0a9; }

.stc-team-grid h4 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  margin: 0.4rem 0 0.55rem;
}

.stc-team-grid p {
  border-top: 1px solid #eef0ec;
  font-size: 0.76rem;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.3rem 0;
}

.stc-hero-start {
  align-items: center;
  background: #eef9f1;
  border-radius: 10px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
}

.stc-hero-start > span:first-child {
  color: #166b39;
  font-size: 0.7rem;
  font-weight: 800;
}

.stc-demo-button {
  align-items: center;
  background: #166b39;
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
}

.stc-settings-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

.stc-field {
  background: #fff;
  border: 1px solid #ccd0ca;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.stc-field--wide {
  grid-column: 1 / -1;
}

.stc-field > span {
  color: #57706f;
  display: block;
  font-size: 0.66rem;
  margin-bottom: 0.2rem;
}

.stc-field strong {
  font-size: 0.82rem;
}

.stc-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.stc-player-chips i {
  background: #eef9f1;
  border-radius: 999px;
  color: #166b39;
  font-size: 0.68rem;
  font-style: normal;
  padding: 0.2rem 0.45rem;
}

.stc-demo-button--wide {
  grid-column: 1 / -1;
  font-weight: 700;
  min-height: 42px;
}

.stc-settings-editable {
  background: #dff4e5;
  border-left: 3px solid #2f9e56;
  border-radius: 8px;
  color: #164c2d;
  display: grid;
  gap: 0.15rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.stc-settings-editable strong {
  font-size: 0.7rem;
}

.stc-settings-editable span {
  font-size: 0.64rem;
  line-height: 1.35;
}

.stc-round-compare {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stc-round-compare > section {
  background: rgb(255 255 255 / 58%);
  border: 1px solid #dedfd7;
  border-radius: 12px;
  padding: 0.75rem;
}

.stc-round-compare .stc-field-fixtures {
  gap: 0.55rem;
}

.stc-round-compare .stc-field-fixture {
  border-radius: 9px;
  box-shadow: none;
  padding: 0.6rem;
}

.stc-round-compare .stc-field-fixture__label {
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
}

.stc-round-compare .stc-field-fixture__side small {
  font-size: 0.52rem;
}

.stc-round-compare .stc-field-fixture__side p {
  font-size: 0.66rem;
}

.stc-round-compare h5 {
  color: #166b39;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.stc-team-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stc-team-grid.is-compact section {
  box-shadow: none;
  padding: 0.55rem;
}

.stc-team-grid.is-compact h4 {
  font-size: 0.66rem;
}

.stc-team-grid.is-compact p {
  font-size: 0.65rem;
}

.stc-score-list {
  display: grid;
  gap: 0.8rem;
}

.stc-match {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  display: grid;
  gap: 0.55rem 0.8rem;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  padding: 0.85rem;
}

.stc-match > small {
  color: #166b39;
  font-size: 0.65rem;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stc-match__team {
  min-width: 0;
}

.stc-match__team > div {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.stc-match__team.is-away {
  text-align: right;
}

.stc-match__team.is-away > div {
  justify-content: flex-end;
}

.stc-match__side-label {
  color: #8f6819;
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.stc-match__team.is-away .stc-match__side-label {
  text-align: right;
}

.stc-match__team strong {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.stc-match__team p {
  color: #166b39;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.35rem 0 0.1rem;
}

.stc-match__team > span {
  color: #6d7773;
  display: block;
  font-size: 0.62rem;
  line-height: 1.25;
}

.stc-match__score {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.stc-demo-score {
  align-items: center;
  background: #fff;
  border: 2px solid #166b39;
  border-radius: 8px;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  text-align: center;
  width: 46px;
}

.stc-score-flow {
  align-items: center;
  color: #57706f;
  display: flex;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0.65rem;
  text-transform: uppercase;
}

.stc-score-flow b {
  color: #2f9e56;
  font-size: 1rem;
}

.stc-score-ranking {
  background: #062719;
  border-radius: 10px;
  color: #fff;
  padding: 0.75rem 0.9rem;
}

.stc-score-ranking header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.stc-score-ranking header small {
  color: #ebc84f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stc-score-ranking header strong {
  color: rgb(255 255 255 / 64%);
  font-size: 0.62rem;
}

.stc-score-ranking ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stc-score-ranking li {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 12%);
  display: grid;
  font-size: 0.72rem;
  gap: 0.55rem;
  grid-template-columns: 22px minmax(70px, 1fr) auto minmax(72px, auto);
  min-height: 34px;
}

.stc-score-ranking li > b {
  color: #ebc84f;
}

.stc-score-ranking li > small {
  color: rgb(255 255 255 / 55%);
}

.stc-score-ranking li > strong {
  color: #fff;
  text-align: right;
}

.stc-score-note {
  background: #eef9f1;
  border-left: 3px solid #2f9e56;
  border-radius: 6px;
  color: #31564a;
  font-size: 0.7rem;
  line-height: 1.4;
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
}

/* One live second-screen composition, repeated across familiar devices. */
.stc-product-showcase--display {
  min-width: 0;
  overflow: hidden;
}

.stc-device-family {
  min-height: clamp(400px, 44vw, 540px);
  position: relative;
}

.stc-device-family::before {
  background:
    radial-gradient(circle at 50% 50%, rgb(218 175 55 / 13%), transparent 55%),
    linear-gradient(115deg, transparent 0 47%, rgb(255 255 255 / 5%) 47% 47.4%, transparent 47.4%);
  content: "";
  inset: 2% 0 0;
  pointer-events: none;
  position: absolute;
}

.stc-device-family__solo {
  bottom: 2%;
  display: block;
  filter: drop-shadow(0 22px 22px rgb(0 0 0 / 32%));
  height: auto;
  left: 0;
  max-width: none;
  position: absolute;
  width: clamp(125px, 18%, 205px);
  z-index: 5;
}

.stc-display-device {
  --ui-scale: 1;
  position: absolute;
}

.stc-display-device__frame {
  background: #07181f;
  border: 1px solid rgb(255 255 255 / 20%);
  box-shadow: 0 28px 65px rgb(0 0 0 / 38%);
  height: 100%;
  overflow: hidden;
  padding: calc(7px * var(--ui-scale));
  position: relative;
  width: 100%;
  z-index: 1;
}

.stc-display-device--laptop {
  --ui-scale: 0.78;
  height: 62%;
  left: 18%;
  top: 4%;
  width: 61%;
  z-index: 4;
}

.stc-display-device--laptop .stc-display-device__frame {
  border-radius: 12px 12px 5px 5px;
}

.stc-display-device__base {
  background: linear-gradient(#d9ddd9, #8e9897);
  border-radius: 0 0 35% 35%;
  bottom: -5%;
  box-shadow: 0 10px 18px rgb(0 0 0 / 25%);
  display: block;
  height: 7%;
  left: -5%;
  position: absolute;
  width: 110%;
}

.stc-display-device--tablet {
  --ui-scale: 0.45;
  bottom: 0;
  height: 44%;
  right: 12%;
  width: 27%;
  z-index: 5;
}

.stc-display-device--tablet .stc-display-device__frame {
  border-radius: 15px;
  padding: calc(9px * var(--ui-scale));
}

.stc-display-device--phone {
  --ui-scale: 0.31;
  bottom: 0;
  height: 37%;
  right: 0;
  width: 14%;
  z-index: 6;
}

.stc-display-device--phone .stc-display-device__frame {
  border-radius: 18px;
  padding: calc(12px * var(--ui-scale));
}

.stc-display-screen {
  background: #f8f4ea;
  color: #06141b;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.stc-display-screen__brand {
  align-items: center;
  background: #07181f;
  color: rgb(255 255 255 / 74%);
  display: flex;
  font-size: calc(10px * var(--ui-scale));
  gap: calc(8px * var(--ui-scale));
  min-height: calc(32px * var(--ui-scale));
  padding: 0 calc(11px * var(--ui-scale));
}

.stc-display-screen__brand i {
  background: #daaf37;
  border-radius: 50%;
  flex: 0 0 auto;
  height: calc(7px * var(--ui-scale));
  width: calc(7px * var(--ui-scale));
}

.stc-display-screen__brand strong {
  color: #fff;
  margin-inline: auto;
}

.stc-display-screen__brand span {
  color: #7ed99b;
}

.stc-display-screen__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: calc(18px * var(--ui-scale));
}

.stc-display-screen__head {
  align-items: flex-start;
  display: flex;
  gap: calc(10px * var(--ui-scale));
  justify-content: space-between;
  margin-bottom: calc(12px * var(--ui-scale));
}

.stc-display-screen__head small,
.stc-display-screen__head strong {
  display: block;
}

.stc-display-screen__head small {
  color: #166b39;
  font-size: calc(9px * var(--ui-scale));
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stc-display-screen__head strong {
  font-size: calc(17px * var(--ui-scale));
  line-height: 1.2;
  margin-top: calc(3px * var(--ui-scale));
}

.stc-display-screen__head > span {
  background: #eef9f1;
  border-radius: 999px;
  color: #166b39;
  font-size: calc(9px * var(--ui-scale));
  font-weight: 700;
  padding: calc(5px * var(--ui-scale)) calc(9px * var(--ui-scale));
  white-space: nowrap;
}

.stc-display-screen .stc-field-fixtures {
  gap: calc(8px * var(--ui-scale));
}

.stc-display-screen .stc-field-fixture {
  border-radius: calc(9px * var(--ui-scale));
  box-shadow: 0 calc(5px * var(--ui-scale)) calc(16px * var(--ui-scale)) rgb(6 20 27 / 6%);
  padding: calc(10px * var(--ui-scale));
}

.stc-display-screen .stc-field-fixture__label {
  font-size: calc(9px * var(--ui-scale));
  margin-bottom: calc(6px * var(--ui-scale));
}

.stc-display-screen .stc-field-fixture__teams {
  gap: calc(5px * var(--ui-scale));
}

.stc-display-screen .stc-field-fixture__side small {
  font-size: calc(8px * var(--ui-scale));
  margin-bottom: calc(3px * var(--ui-scale));
}

.stc-display-screen .stc-field-fixture__side p {
  font-size: calc(10px * var(--ui-scale));
  line-height: 1.25;
}

.stc-display-screen .stc-field-fixture__versus {
  font-size: calc(11px * var(--ui-scale));
}

.stc-display-device--tablet .stc-display-screen__brand span,
.stc-display-device--phone .stc-display-screen__brand span,
.stc-display-device--phone .stc-display-screen__head > span {
  display: none;
}

.stc-display-device--phone .stc-display-screen__content {
  padding-inline: calc(12px * var(--ui-scale));
}

.stc-display-device--phone .stc-field-fixture__teams {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.stc-display-device--phone .stc-field-fixture__side.is-away {
  border-top: 1px solid #e5e5df;
  padding-top: calc(4px * var(--ui-scale));
  text-align: left;
}

.stc-display-device--phone .stc-field-fixture__versus {
  display: none;
}

.stc-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stc-ranking li {
  align-items: center;
  border-bottom: 1px solid #e5e5df;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 32px 1fr auto;
  min-height: 43px;
}

.stc-ranking li.is-winner {
  background: linear-gradient(90deg, rgb(218 175 55 / 20%), transparent);
  border-radius: 8px;
}

.stc-ranking li:first-child > b {
  background: #daaf37;
}

.stc-ranking li > b {
  align-items: center;
  background: #d9f1e0;
  border-radius: 50%;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.stc-ranking li > span small {
  color: #8f6819;
  font-size: 0.6rem;
  font-weight: 800;
  margin-left: 0.45rem;
  text-transform: uppercase;
}

.stc-ranking strong {
  color: #166b39;
}

.stc-ranking-celebration {
  position: relative;
}

.stc-ranking-celebration > .stc-device {
  position: relative;
  z-index: 1;
}

.stc-ranking li.is-winner {
  background: linear-gradient(90deg, rgb(255 224 113 / 52%), rgb(255 241 188 / 35%) 68%, rgb(218 175 55 / 14%));
  box-shadow: inset 0 0 0 1px rgb(218 175 55 / 24%), 0 0 24px rgb(218 175 55 / 22%);
}

body > canvas#confetti[data-generated="true"] {
  inset: 0 !important;
  pointer-events: none;
  position: fixed !important;
}

.stc-ranking-celebration[data-stc-motion-state="complete"] .stc-ranking li.is-winner {
  box-shadow: inset 0 0 0 1px rgb(218 175 55 / 18%), 0 0 18px rgb(218 175 55 / 14%);
}

@media (max-width: 1024px) {
  .stc-ranking-celebration > .stc-device {
    margin-inline: auto;
    width: calc(100% - 80px);
  }
}

@media (max-width: 700px) {
  .stc-device__screen {
    min-height: 0;
  }

  .stc-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stc-round-compare {
    grid-template-columns: 1fr;
  }

  .stc-demo-score {
    height: 38px;
    width: 42px;
  }

  .stc-device-family {
    display: grid;
    gap: 1.1rem 0.75rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(72px, 0.55fr);
    grid-template-rows: auto auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 5.5rem;
  }

  .stc-device-family::before {
    inset: 0 -20%;
  }

  .stc-device-family__solo {
    bottom: 0;
    left: 2%;
    width: clamp(105px, 31%, 155px);
  }

  .stc-display-device {
    bottom: auto;
    height: auto;
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    width: auto;
  }

  .stc-display-device__frame {
    aspect-ratio: 16 / 10;
  }

  .stc-display-device--laptop {
    --ui-scale: 0.55;
    grid-column: 1 / -1;
    grid-row: 1;
    margin-inline: 8%;
  }

  .stc-display-device--tablet {
    --ui-scale: 0.34;
    grid-column: 1;
    grid-row: 2;
    margin-left: 38%;
  }

  .stc-display-device--phone {
    --ui-scale: 0.25;
    align-self: end;
    grid-column: 2;
    grid-row: 2;
  }

  .stc-display-device--tablet .stc-display-device__frame {
    aspect-ratio: 4 / 3;
  }

  .stc-display-device--phone .stc-display-device__frame {
    aspect-ratio: 9 / 15;
  }

}

@media (max-width: 480px) {
  .stc-ranking-celebration > .stc-device {
    width: calc(100% - 24px);
  }

  .stc-device__status {
    display: none;
  }

  .stc-ui-head > span {
    display: none;
  }

  .stc-field-fixture {
    padding: 0.65rem;
  }

  .stc-field-fixture__teams {
    gap: 0.4rem;
  }

  .stc-field-fixture__side small {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .stc-field-fixture__side p {
    font-size: 0.68rem;
  }

  .stc-match__side-label {
    font-size: 0.5rem;
    letter-spacing: 0.03em;
  }

  .stc-demo-score {
    font-size: 0.9rem;
    height: 34px;
    width: 34px;
  }

  .stc-settings-grid {
    grid-template-columns: 1fr;
  }

  .stc-field--wide {
    grid-column: auto;
  }

  .stc-match {
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0.6rem;
  }

  .stc-team-dot {
    display: none;
  }

  .stc-match__team strong {
    font-size: 0.65rem;
  }

  .stc-match__team p {
    font-size: 0.64rem;
  }

  .stc-match__team > span {
    font-size: 0.56rem;
  }

  .stc-match__score {
    gap: 0.2rem;
  }

  .stc-score-flow {
    align-items: flex-start;
    font-size: 0.58rem;
    gap: 0.35rem;
  }

  .stc-score-ranking li {
    gap: 0.35rem;
    grid-template-columns: 18px minmax(54px, 1fr) auto minmax(62px, auto);
  }

  .stc-device-family {
    gap: 0.8rem 0.55rem;
    padding-bottom: 5.5rem;
  }

  .stc-device-family__solo {
    left: 0;
    width: 96px;
  }

  .stc-display-device--laptop {
    --ui-scale: 0.46;
    margin-inline: 3%;
  }

  .stc-display-device--tablet {
    --ui-scale: 0.28;
    margin-left: 45%;
  }

  .stc-display-device--phone {
    --ui-scale: 0.21;
  }
}
