:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'LM Charte Sans', system-ui, sans-serif;
  color: #fff4e5;
  background: #151019;
  --ink: #17101e;
  --cream: #fff4e5;
  --lilac: #d5b4ff;
  --lime: #e3f99a;
  --plum: #2b1a36;
  --muted: #cbbbce;
  --line: #ccb2e43b;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 52% -10%, #6d38615c, transparent 52%),
    radial-gradient(ellipse at 12% 32%, #5d328646, transparent 47%),
    linear-gradient(160deg, #201526, #130f18 65%);
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .55rem .8rem;
  background: #352340;
  color: var(--cream);
  cursor: pointer;
  font: 700 .85rem/1 system-ui, sans-serif;
  touch-action: manipulation;
}

button:hover:not(:disabled) { background: #493054; }
button:active:not(:disabled) { translate: 0 1px; }
button:disabled { opacity: .52; cursor: default; }

button:focus-visible, .board:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.arcade {
  width: min(100%, 1160px);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 355px) minmax(0, .84fr);
  grid-template-areas:
    "brand arena side"
    "rules arena side";
  grid-template-rows: min-content 1fr;
  align-items: start;
  align-content: start;
  column-gap: clamp(1.1rem, 4vw, 3.8rem);
  row-gap: 1.3rem;
}

.brand { grid-area: brand; min-width: 0; padding-top: .6rem; }

.brand-emblem {
  position: relative;
  isolation: isolate;
  width: clamp(6.2rem, 14vw, 10rem);
  aspect-ratio: 1;
  margin: 0 0 1.45rem .3rem;
  display: grid;
  place-items: center;
}

.brand-emblem::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9%;
  border-radius: 50%;
  border: 1px solid #ba83fa4d;
  background:
    repeating-radial-gradient(circle, transparent 0 13%, #cc93ff2c 14% 14.5%),
    radial-gradient(circle, #ca81fc40, #6d458037 60%, #231629 72%);
  box-shadow: 0 0 70px #ad53fb38, inset 0 0 30px #9568bd55;
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(0 13px 10px #0b060ec9);
}

.brand h1 {
  margin: 0;
  font: 1000 clamp(3rem, 6.1vw, 5.5rem)/.87 'LM Charte Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.085em;
}

.brand h1 em { display: block; color: var(--lilac); font-style: normal; }
.brand h1 em span { color: var(--lime); }
.brand-copy p { max-width: 16rem; margin: .8rem 0 0; color: var(--muted); font-size: .96rem; }

.match-sidebar { grid-area: side; display: grid; grid-template-areas: "scores" "tools"; gap: .7rem; }

.scoreboard {
  grid-area: scores;
  padding: 1rem;
  background: linear-gradient(142deg, #332041, #211729);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px #09050c45;
}

.scoreboard dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem .45rem;
  margin: 0;
}

.scoreboard dl div { min-width: 0; }
.scoreboard dt, .next-piece > span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.scoreboard dd {
  min-width: 0;
  margin: .16rem 0 0;
  color: var(--cream);
  font-size: clamp(1.22rem, 2.4vw, 1.7rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.score-main { grid-column: 1 / -1; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.score-main dd { color: var(--lime); font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 950; letter-spacing: -.07em; }

.arena { grid-area: arena; min-width: 0; }
.arena-header {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  padding-inline: .1rem;
}

.feedback {
  min-width: 0;
  margin: 0;
  color: var(--lime);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.18;
}

.next-piece {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .48rem;
}

.next-preview {
  display: flex;
  gap: 3px;
  min-width: 59px;
  min-height: 29px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #24192c;
}

.next-preview > .cell, .next-preview > .token { width: 24px; height: 22px; border: 0; }
.next-preview > .cell > .token { margin: 0; width: 100%; height: 100%; }
.next-preview .token { border-radius: 4px; }
.mission-card {
  display: grid;
  gap: .24rem;
  margin-bottom: .44rem;
  padding: .38rem .58rem;
  border: 1px solid #d6b2ff42;
  border-radius: 11px;
  background: linear-gradient(115deg, #3c244d, #281a34);
}

.mission-text, .mission-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

.mission-text {
  color: var(--lilac);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mission-step {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mission-progress { font-size: .82rem; line-height: 1.16; }
.mission-progress span { flex: 1; min-width: 0; }
.mission-progress progress {
  appearance: none;
  flex: 0 0 auto;
  width: clamp(2.1rem, 26%, 5.5rem);
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #140f1b;
  accent-color: var(--lime);
}

.mission-progress progress::-webkit-progress-bar { background: transparent; }
.mission-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--lime); }
.mission-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--lime); }

.pitch-frame {
  position: relative;
  isolation: isolate;
  padding: 8px;
  border: 1px solid #c59bfa8c;
  border-radius: 22px;
  background: #21162a;
  box-shadow: 0 0 0 4px #b679ff14, 0 23px 53px #0f0819c2, 0 0 45px #8e48d32a;
}

.pitch {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.board {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 7 / 10;
  min-height: 0;
  border: 1px solid #b899d164;
  border-radius: 14px;
  outline-offset: -4px;
  background:
    repeating-linear-gradient(to bottom, #a073bd10 0 10%, transparent 10% 20%),
    linear-gradient(#2c1d3c, #271638 68%, #392345);
  touch-action: manipulation;
}

.board::before, .board::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.board::before {
  inset: 0 0 50%;
  border-bottom: 2px solid #cca8eb3d;
  background:
    linear-gradient(#cca8eb35, #cca8eb35) center bottom / 1px 11px no-repeat,
    linear-gradient(#cca8eb35, #cca8eb35) center 0 / 27% 1px no-repeat;
}

.board::after {
  width: 34%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: 2px solid #cca8eb3d;
  border-radius: 50%;
  background: radial-gradient(circle, #cca8eb4d 0 2px, transparent 3px);
}

.board:focus-visible { outline-offset: -4px; }

.goal-mouth {
  position: absolute;
  z-index: -1;
  left: 33%;
  right: 33%;
  bottom: -4px;
  height: 15px;
  border: 1px solid #efe3ff7d;
  border-radius: 3px 3px 7px 7px;
  background: repeating-linear-gradient(120deg, #c08be548 0 1px, transparent 1px 7px), #392648;
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.board > .cell {
  border-right: 1px solid #c69ae51b;
  border-bottom: 1px solid #c69ae51b;
}

.board > .cell:nth-child(7n) { border-right: 0; }
.board > .cell:nth-last-child(-n+7) { border-bottom: 0; }

.token {
  position: relative;
  isolation: isolate;
  display: block;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  margin: 0;
  border: 1px solid var(--tile-light);
  border-radius: 24%;
  background:
    url("/crush/assets/bbb-head.webp") 44% 43% / 82% auto no-repeat,
    radial-gradient(ellipse at 18% 0, #ffffffb0, transparent 60%),
    linear-gradient(145deg, var(--tile-light), var(--tile-dark) 85%);
  box-shadow: inset 0 1px 0 #ffffff78, inset 0 -2px 0 #18092748, 0 2px 4px #1108217a;
}

.token::before, .token::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
}

.token::before {
  z-index: 1;
  width: 25%;
  background: var(--token-ink);
  right: .5px;
  bottom: .5px;
}

.token::after {
  width: 39%;
  border: 1px solid #231733b3;
  border-radius: 50%;
  background: var(--tile-light);
  box-shadow: 0 1px 2px #170a2c80;
  right: -1.8px;
  bottom: -1.8px;
}

.next-preview .token::before, .overlay-tiles .token::before { right: 1px; bottom: 1px; }
.next-preview .token::after, .overlay-tiles .token::after { right: -.8px; bottom: -.8px; }

.token-0 { --tile-light: #9bdfff; --tile-dark: #3473e8; --token-ink: #17356f; }
.token-0::before { clip-path: polygon(50% 1%, 99% 50%, 50% 99%, 1% 50%, 50% 1%, 50% 23%, 23% 50%, 50% 77%, 77% 50%, 50% 23%); }
.token-1 { --tile-light: #fff2aa; --tile-dark: #f2a846; --token-ink: #7c400b; }
.token-1::before { clip-path: polygon(50% 0%, 65% 34%, 100% 38%, 74% 64%, 81% 100%, 50% 82%, 19% 100%, 26% 64%, 0 38%, 35% 34%); }
.token-2 { --tile-light: #d5fdac; --tile-dark: #57b96f; --token-ink: #1d572e; }
.token-2::before { clip-path: polygon(42% 0%, 86% 0%, 58% 38%, 92% 38%, 21% 100%, 39% 55%, 11% 55%); }
.token-3 { --tile-light: #ffa5d4; --tile-dark: #e94c9d; --token-ink: #852157; }
.token-3::before { clip-path: polygon(50% 24%, 67% 6%, 88% 10%, 100% 29%, 96% 55%, 50% 100%, 4% 55%, 0 29%, 12% 10%, 33% 6%); }
.token-4 { --tile-light: #faf7e8; --tile-dark: #cbbdda; --token-ink: #382642; }
.token-4::before {
  width: 27%;
  border-radius: 50%;
  border: .5px solid #4f3a5d;
  background:
    radial-gradient(circle at 50% 50%, #483154 0 20%, transparent 21%),
    radial-gradient(circle at 50% 4%, #483154 0 14%, transparent 15%),
    radial-gradient(circle at 100% 48%, #483154 0 15%, transparent 16%),
    radial-gradient(circle at 75% 100%, #483154 0 16%, transparent 17%),
    radial-gradient(circle at 10% 84%, #483154 0 14%, transparent 15%),
    radial-gradient(circle at 0% 28%, #483154 0 14%, transparent 15%),
    #fff6eb;
}

.board :is(.ghost, .is-ghost).token, .board :is(.ghost, .is-ghost) .token {
  border-color: var(--tile-light);
  border-style: dashed;
  background: color-mix(in srgb, var(--tile-light) 10%, transparent);
  box-shadow: none;
  opacity: .62;
}
.board :is(.ghost, .is-ghost).token::before,
.board :is(.ghost, .is-ghost).token::after,
.board :is(.ghost, .is-ghost) .token::before,
.board :is(.ghost, .is-ghost) .token::after { content: none; }

.board .is-active.token, .board .is-active .token {
  border-color: #fff8e7;
  box-shadow: 0 0 9px #e0c2fb80, inset 0 1px 0 #ffffff9c;
}

.clear-effects {
  position: absolute;
  z-index: 1;
  inset: 1px;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.clear-tile.token {
  position: absolute;
  left: calc(var(--column, 0) * 100% / 7 + 3px);
  top: calc(var(--row, 0) * 100% / 10 + 3px);
  width: calc(100% / 7 - 6px);
  height: calc(100% / 10 - 6px);
  animation: tile-pop 360ms cubic-bezier(.19, .73, .33, 1) calc(var(--wave, 0) * 95ms) both;
}

@keyframes tile-pop {
  0% { opacity: 0; transform: scale(.9); }
  18% { opacity: 1; transform: scale(1.04); }
  45% { opacity: 1; transform: scale(1.12); box-shadow: 0 0 14px 3px var(--tile-light); }
  100% { opacity: 0; transform: scale(.2) rotate(13deg); }
}

.combo-banner {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  translate: -50% -50%;
  padding: .45rem .8rem;
  border: 1px solid var(--lilac);
  border-radius: .74rem;
  background: #2b1742;
  box-shadow: 0 0 23px #b882f785, 0 4px 18px #10031aba;
  color: var(--cream);
  font-size: clamp(.9rem, 4vw, 1.2rem);
  font-weight: 950;
  letter-spacing: .04em;
  white-space: nowrap;
  animation: combo-pop 680ms ease-out both;
}

@keyframes combo-pop {
  0% { opacity: 0; transform: scale(.7) rotate(-7deg); }
  23% { opacity: 1; transform: scale(1.12) rotate(2deg); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-.45rem) scale(.94); }
}

.board.is-combo { animation: combo-light .65s ease-out; }
@keyframes combo-light {
  0%, 27% { box-shadow: inset 0 0 30px #d0a4ff83; border-color: var(--lilac); }
  100% { box-shadow: inset 0 0 0 transparent; }
}

.arcade:has(.board.is-combo) .feedback { color: var(--lilac); }
.board.is-goal { animation: goal-light .6s ease-out; }
.arcade:has(.board.is-goal) .brand-emblem img { animation: mascot-goal .55s ease-out; }

@keyframes mascot-goal {
  0%, 100% { transform: rotate(-9deg); }
  34% { transform: translateY(-12%) rotate(11deg) scale(1.06); }
  63% { transform: translateY(2%) rotate(-14deg) scale(1.02); }
}

@keyframes goal-light {
  0%, 35% { box-shadow: inset 0 0 36px #e2fc9287; border-color: var(--lime); }
  100% { box-shadow: inset 0 0 0 transparent; }
}

.game-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 5%, 1.2rem);
  background: radial-gradient(circle, #1a0f26c9, #160d20bf);
}

.overlay-card {
  width: 100%;
  border: 1px solid #d4acf575;
  border-radius: 18px;
  padding: 1.2rem .92rem 1rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, #5c3676a6, transparent 62%),
    linear-gradient(154deg, #392646, #23162c);
  box-shadow: 0 20px 46px #0b050dca;
}

.overlay-tiles {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-bottom: .85rem;
}

.overlay-tiles .token { width: 29px; height: 29px; border-radius: 7px; }
.overlay-tiles .token:first-child { rotate: -9deg; }
.overlay-tiles .token:last-child { rotate: 9deg; }
.overlay-title {
  margin: 0;
  font-weight: 950;
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: -.07em;
}

.overlay-copy { max-width: 22ch; margin: .5rem auto .95rem; color: var(--muted); font-size: .9rem; line-height: 1.4; }
button.start-button {
  width: min(100%, 14rem);
  min-height: 48px;
  border-color: var(--lime);
  background: var(--lime);
  color: #232819;
  font-size: 1rem;
  box-shadow: 0 3px 0 #91a74c, 0 6px 18px #0b060b7a;
}
button.start-button:hover { background: #efffb7; }

.gamepad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(4.9rem, 1.34fr);
  gap: clamp(3px, 1vw, 7px);
  margin-top: 12px;
}

.gamepad button {
  min-width: 0;
  padding: .2rem;
  font-size: 1.36rem;
  line-height: 1;
  font-family: system-ui, sans-serif;
  user-select: none;
}

.gamepad [data-action="drop"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .33rem;
  background: #5f3b73;
  color: #fff6ff;
}

.gamepad [data-action="drop"]:hover:not(:disabled) { background: #73478a; }
.drop-caption { font-size: .75rem; font-weight: 800; }

.tools {
  grid-area: tools;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: .35rem;
}

.tools button { flex: 1 1 auto; padding-inline: .58rem; font-size: .78rem; }
.tools #sound[aria-pressed="true"] { color: var(--lime); border-color: #e3f99a90; }

.rules { grid-area: rules; padding-top: .95rem; border-top: 1px solid var(--line); }
.rules h2, .rules h3 { margin: 0; font-size: .88rem; font-weight: 850; color: var(--cream); }
.rules ol { margin: .55rem 0 .9rem; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.rules ol li + li { margin-top: .36rem; }
.rules ol li::marker { color: var(--lilac); font-weight: 900; }

.keyboard-help div {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  gap: .28rem;
  align-items: center;
  margin-top: .27rem;
  font-size: .82rem;
  color: var(--muted);
}

.keyboard-help kbd {
  display: inline-flex;
  justify-content: center;
  min-width: 1.4rem;
  padding: .15rem .29rem;
  border: 1px solid var(--line);
  border-radius: .28rem;
  color: var(--cream);
  background: #2c2133;
  font: 700 .74rem/1.12 system-ui, sans-serif;
}

.no-script { padding: 1rem; text-align: center; }

@media (max-width: 950px) {
  .arcade {
    grid-template-columns: minmax(0, .92fr) minmax(240px, 340px) minmax(0, .65fr);
    padding-inline: clamp(.8rem, 2.5vw, 1.5rem);
    column-gap: clamp(.68rem, 2vw, 1.15rem);
  }

  .scoreboard { padding: .8rem .6rem; }
  .brand h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
  .tools button { padding-inline: .48rem; }
}

@media (max-width: 700px) {
  .arcade {
    width: min(100%, 400px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "brand" "scores" "arena" "tools" "rules";
    row-gap: .6rem;
    padding: .72rem clamp(.6rem, 3vw, 1.2rem) 2rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 0;
  }

  .brand-emblem { width: clamp(45px, 14vw, 62px); flex: 0 0 auto; margin: .12rem .04rem .15rem; }
  .brand h1 { font-size: clamp(1.5rem, 7.1vw, 2.2rem); line-height: .94; }
  .brand h1 em { display: inline; }
  .brand-copy p { margin-top: .24rem; font-size: .73rem; line-height: 1.2; }

  .match-sidebar { display: contents; }
  .scoreboard { padding: .43rem .7rem .47rem; border-radius: 12px; }
  .scoreboard dl { grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr)); align-items: center; gap: .23rem; }
  .score-main { grid-column: auto; padding: 0 .24rem 0 0; border: 0; border-right: 1px solid var(--line); }
  .scoreboard dl div:not(.score-main) { padding-left: .18rem; }
  .scoreboard dt { font-size: .66rem; letter-spacing: .03em; }
  .scoreboard dd { margin-top: .07rem; font-size: 1.17rem; }
  .score-main dd { font-size: 1.48rem; }

  .arena-header { min-height: 38px; padding-bottom: .22rem; }
  .arena { width:100%; margin-inline:auto; }
  .pitch-frame { padding: 5px; border-radius: 17px; }
  .pitch, .board { border-radius: 12px; }

  .gamepad { margin-top: 9px; }
  .tools { justify-content: center; }
  .tools button { flex: 1; }
  .rules { margin-top: .5rem; }
}

@media (max-width: 365px) {
  .gamepad { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(3.7rem, 1.24fr); }
}

@media (max-width: 700px) and (max-height: 800px) {
  .arena { max-width: min(100%, clamp(252px, calc((100svh - 235px) * .7), 345px)); }
}

@media (pointer: coarse) {
  .keyboard-help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .clear-tile.token { display: none; }
  .combo-banner { animation: none; }
  .board.is-combo { animation: none; border-color: var(--lilac); }
  .board.is-goal { animation: none; border-color: var(--lime); }
  .arcade:has(.board.is-goal) .brand-emblem img { animation: none; }
  button:active:not(:disabled) { translate: none; }
}

[data-embedded] body { min-height: 0; }

[data-embedded] .arcade {
  width: min(100%, 690px);
  min-height: 0;
  grid-template-columns: minmax(150px, 1fr) minmax(250px, 302px);
  grid-template-rows: min-content min-content 1fr;
  grid-template-areas: "brand arena" "scores arena" "tools arena";
  gap: .75rem 1.35rem;
  padding: .9rem clamp(.7rem, 4vw, 2rem) 1.05rem;
}

[data-embedded] .match-sidebar { display: contents; }
[data-embedded] .brand { display: block; padding-top: .12rem; }
[data-embedded] .brand-emblem { width: clamp(50px, 12vw, 82px); margin: .2rem 0 .8rem; }
[data-embedded] .brand h1 { font-size: clamp(1.65rem, 5.9vw, 2.8rem); }
[data-embedded] .brand-copy p { margin-top: .35rem; font-size: .84rem; }
[data-embedded] .arena { max-width: 302px; }
[data-embedded] .rules { display: none; }

@media (min-width: 546px) {
  [data-embedded] .scoreboard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .45rem; }
  [data-embedded] .scoreboard dl div { padding: 0; }
  [data-embedded] .scoreboard dd { font-size: 1.2rem; }
  [data-embedded] .score-main { grid-column: auto; border: 0; }
  [data-embedded] .score-main dd { font-size: 1.42rem; }
}

@media (max-width: 545px) {
  [data-embedded] .arcade {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "brand" "scores" "arena" "tools";
    width: min(100%, 352px);
    gap: .48rem;
    padding: .65rem clamp(.55rem, 2.8vw, .85rem) .8rem;
  }

  [data-embedded] .brand { display: flex; align-items: center; gap: .55rem; }
  [data-embedded] .brand-emblem { width: clamp(39px, 13vw, 47px); margin: .05rem .05rem .05rem .15rem; }
  [data-embedded] .brand h1 { font-size: clamp(1.42rem, 6.4vw, 1.85rem); }
  [data-embedded] .brand-copy p { margin-top: .19rem; font-size: .72rem; }
  [data-embedded] .arena { max-width: min(100%, 267px); }
  [data-embedded] .arena-header { min-height: 34px; }
  [data-embedded] .mission-card { padding: .32rem .46rem; }
  [data-embedded] .mission-progress { font-size: .76rem; }
  [data-embedded] .feedback { font-size: .76rem; }
  [data-embedded] .next-piece { gap: .3rem; }
  [data-embedded] .next-piece > span { font-size: .65rem; }
  [data-embedded] .gamepad { margin-top: .55rem; }
  [data-embedded] .tools { max-width: 267px; width: 100%; margin-inline: auto; }
}
