:root {
  color-scheme: light;
  --ink: #0f2815;
  --paper: #faedd8;
  --rule: #132c1b;
  --measure: 91.75rem;
  --gutter: clamp(0.875rem, 2.25vw, 2.125rem);
  font-family: ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body, figure, h1, h2, h3, p, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.masthead {
  min-height: clamp(3.125rem, 4.05vw, 3.875rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.15rem solid var(--rule);
}

.studio {
  display: block;
  flex: none;
  width: clamp(2.875rem, 3.9vw, 3.75rem);
  border-radius: 0.25rem;
}

.studio:focus-visible {
  outline: 0.15rem solid currentColor;
  outline-offset: 0.125rem;
}

.status {
  width: clamp(9rem, 16.86vw, 16.1875rem);
}

.intro {
  display: grid;
  grid-template-columns: 52.2% minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(1.375rem, 1.65vw, 1.625rem);
}

.game-title {
  width: 95.2%;
  padding-left: clamp(0.1875rem, 0.52vw, 0.5rem);
}

.pitch {
  border-left: 1px solid #65806a;
  padding-left: clamp(1.375rem, 2.73vw, 2.625rem);
}

.pitch h1,
.community h2 {
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.pitch h1 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4.3vw, 4.25rem);
  text-wrap: balance;
}

.tagline {
  margin-top: 0.6rem;
  font-weight: 800;
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
}

.platform {
  max-width: 48ch;
  margin-top: 0.25rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.4;
}

.game-preview,
.broadcast {
  --panel: #13291f;
  --panel-rule: #456254;
  --panel-text: #fff3dc;
  --panel-muted: #d2dfd4;
  --accent: #f6ca74;
  color: var(--panel-text);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: clamp(0.65rem, 1.95vw, 1.875rem);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.match-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) max-content;
  align-items: center;
  gap: clamp(0.65rem, 2.5vw, 2.5rem);
  padding: 0.75rem clamp(0.7rem, 1.75vw, 1.5rem);
}

.match-role,
.match-clock {
  display: grid;
  gap: 0.15rem;
}

.match-bar span,
.broadcast-hud span {
  font-size: 0.875rem;
  color: var(--panel-muted);
}

.match-role strong,
.match-clock strong {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.15;
}

.match-integrity {
  width: min(100%, 22rem);
}

.match-integrity span {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 0.3rem;
}

.match-integrity strong,
.broadcast-hud strong {
  color: var(--accent);
}

.match-integrity meter {
  display: block;
  width: 100%;
  height: 0.52rem;
  margin-top: 0.3rem;
}

.match-integrity meter::-webkit-meter-bar {
  background: #476355;
  border: none;
}

.match-integrity meter::-webkit-meter-optimum-value {
  background: var(--accent);
}

.match-integrity meter::-moz-meter-bar {
  background: var(--accent);
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(11.5rem, 16vw, 14.5rem);
  align-items: start;
}

.arena {
  position: relative;
  background: #255a49;
}

.arena img {
  width: 100%;
}

.actor {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: #10271e;
  color: #fff3dc;
  border: 1px solid #ffffff40;
  border-radius: 0.45rem;
  padding: 0.26rem 0.48rem;
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.actor-boris {
  --x: 76%;
  --y: 10%;
  color: #241906;
  background: #f6ca74;
  border-color: #593716;
}

.actor-boris small {
  padding-left: 0.2rem;
  font-size: 0.75rem;
}

.actor-timber { --x: 19%; --y: 29.5%; }
.actor-chip { --x: 31%; --y: 21.5%; }
.actor-patch { --x: 44.2%; --y: 53.2%; }
.actor-bark { --x: 77%; --y: 61.3%; }

.match-ranking {
  padding: 1rem clamp(0.7rem, 1.4vw, 1.3rem);
  border-top: 1px solid var(--panel-rule);
}

.match-ranking h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.match-ranking p {
  color: var(--panel-muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.ranking {
  margin: 0.65rem 0 0;
  padding-left: 1.28rem;
  font-size: 0.875rem;
}

.ranking li {
  padding: 0.35rem 0.1rem;
}

.ranking li::marker {
  color: var(--panel-muted);
}

.ranking li div {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
}

.ranking li:first-child strong {
  color: var(--accent);
}

figcaption {
  padding: clamp(0.5rem, 0.65vw, 0.625rem) 0 clamp(1.25rem, 1.45vw, 1.375rem);
  font-size: clamp(0.875rem, 1.55vw, 1.5rem);
  font-weight: 570;
  line-height: 1.25;
  text-align: center;
}

.details {
  display: grid;
  grid-template-columns: 48.3% minmax(0, 1fr);
  border-top: 0.15rem solid var(--rule);
  padding-block: clamp(1.375rem, 1.8vw, 1.75rem) clamp(2.5rem, 4vw, 4rem);
}

.details section:first-child {
  padding: 0 clamp(1.5rem, 3.1vw, 3rem) 0 clamp(0.25rem, 0.65vw, 0.625rem);
}

.details section + section {
  padding-left: clamp(1.5rem, 4.1vw, 3.9375rem);
  border-left: 1px solid var(--rule);
}

.round-heading {
  width: min(100%, 34.5vw, 33.125rem);
}

.live-heading {
  width: min(100%, 44.4vw, 42.625rem);
}

.details p {
  max-width: 55ch;
  margin-top: 0.85em;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.details h3 {
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  margin-top: 1.05rem;
}

.feature-list {
  margin-top: 0.65rem;
  max-width: 53ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.45;
}

.feature-list div {
  border-top: 1px solid #17352233;
  padding-block: 0.55rem;
}

.feature-list dt {
  font-weight: 800;
}

.feature-list dd {
  margin-top: 0.1rem;
}

.gift-list {
  margin-top: 0.9rem;
}

.details .detail-note {
  color: #3d503d;
  font-size: clamp(0.9375rem, 1.125vw, 1.0625rem);
  font-weight: 620;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.35vw, 2.25rem);
  border-top: 0.15rem solid var(--rule);
  padding-block: clamp(1.5rem, 2.8vw, 2.5rem) clamp(2.5rem, 4vw, 4rem);
}

.community h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.community-copy p {
  max-width: 42ch;
  margin-top: 0.85em;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.broadcast {
  container-type: inline-size;
  border-radius: clamp(0.5rem, 1.65vw, 1.5rem);
}

.broadcast-bar,
.broadcast-hud {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  padding: 0.65rem 0.85rem;
}

.broadcast-bar {
  border-bottom: 1px solid var(--panel-rule);
}

.broadcast-bar span {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.broadcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 17%) minmax(0, 1fr) minmax(0, 20%);
  grid-template-areas: "host game chat";
  align-items: start;
}

.broadcast-game { grid-area: game; }
.broadcast-host { grid-area: host; }
.broadcast-chat { grid-area: chat; }

.broadcast-hud {
  background: #243e30;
  padding-block: 0.45rem;
}

.broadcast-hud strong {
  margin-left: 0.2rem;
}

.broadcast-arena .actor-boris {
  --x: 73%;
  --y: 10%;
}

.broadcast-host,
.broadcast-chat {
  padding: 0.7rem;
  font-size: 0.875rem;
}

.broadcast-host img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
}

.broadcast-host span,
.broadcast-events li span:not(.event-mark) {
  display: block;
  color: var(--panel-muted);
}

.broadcast-chat h3,
.broadcast-ranking h3 {
  font-size: 0.95rem;
}

.broadcast-chat ul,
.broadcast-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.broadcast-chat li {
  margin-top: 0.65rem;
  color: var(--panel-muted);
  line-height: 1.3;
}

.broadcast-chat li strong {
  display: block;
  color: var(--panel-text);
}

.broadcast-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--panel-rule);
}

.broadcast-events li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
}

.broadcast-events li + li {
  border-left: 1px solid var(--panel-rule);
}

.event-mark {
  position: relative;
  display: block;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
}

.event-mark-logs {
  background: #493820;
}

.event-mark-logs::before {
  content: "";
  display: block;
  width: 0.9rem;
  height: 0.23rem;
  margin: 0.5rem auto 0;
  background: #ffd887;
  box-shadow: 0 0.4rem #f0aa55;
  border-radius: 0.2rem;
}

.event-mark-rage {
  background: #522e23;
}

.event-mark-rage::before {
  content: "";
  display: block;
  width: 0.17rem;
  height: 0.87rem;
  margin: 0.4rem auto 0;
  background: #ffb497;
  box-shadow: -0.27rem 0.13rem #ffb497, 0.27rem -0.13rem #ffb497;
  border-radius: 0.15rem;
  transform: rotate(27deg);
}

.broadcast-ranking {
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid var(--panel-rule);
}

.broadcast-ranking .ranking {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.85rem;
  margin-top: 0.3rem;
}

@container (max-width: 730px) {
  .broadcast-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "game game" "host chat";
  }

  .broadcast-host img {
    max-width: 10rem;
  }
}

@container (max-width: 570px) {
  .broadcast-ranking .ranking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-left: 1.28rem;
  }
}

.community-figure figcaption {
  padding: 0.6rem 0 0;
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
}

@media (max-width: 50rem) {
  .community,
  .match-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .match-ranking .ranking {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.85rem;
    padding: 0;
    margin-left: 1.28rem;
  }

  .standalone-arena .actor:not(.actor-boris) {
    display: none;
  }
}

@media (max-width: 44rem) {
  .intro {
    grid-template-columns: 1fr;
    gap: clamp(0.875rem, 3.1vw, 1.375rem);
    padding-block: clamp(1.125rem, 4.6vw, 2rem);
  }

  .game-title {
    width: min(94%, 33rem);
    padding-left: 0;
  }

  .pitch {
    border-left: 0;
    padding-left: 0;
  }

  .details {
    grid-template-columns: 1fr;
    row-gap: 1.375rem;
  }

  .details section:first-child {
    padding-inline: 0;
  }

  .details section + section {
    padding: 1.375rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .round-heading {
    width: min(100%, 17.75rem);
  }

  .live-heading {
    width: min(100%, 22.5rem);
  }
}
