body {
  --jelly-page: #170e28;
  --jelly-panel: #302047;
  --jelly-text: #fff6ff;
  --jelly-muted: #e5d1f4;
  --jelly-line: #795293;
  --jelly-panel-fill: linear-gradient(158deg, #43265b, #261637 76%);
  --jelly-yellow: linear-gradient(174deg, #fff6a3 0%, #ffe465 29%, #ffc32e 75%, #ee9f20 100%);
  min-height: 100vh;
  background: radial-gradient(ellipse at 75% 0, #4c2058 0%, transparent 52%), var(--jelly-page);
  color: var(--jelly-text);
  color-scheme: dark;
}

:is(.masthead, .site-footer) { border-color: var(--jelly-line); }
:is(.wordmark .brand-edition small, .section-eyebrow, .site-footer, .info-nav) { color: var(--jelly-muted); }
.site-footer :is(a, button), .info-nav a { color: #f4dfff; }
.info-nav a[aria-current="page"] { text-decoration-color: #ff9ee9; }
:is(.wallet, .header-actions .icon-btn, #modal .icon-btn, .pill) {
  background: #51366a;
  border-color: #966db0;
  color: var(--jelly-text);
}

.hero {
  background: radial-gradient(ellipse at 82% 25%, #783365 0%, transparent 52%), #301945;
  border: 1px solid #9f68b3;
  box-shadow: inset 0 1px #fff3, 0 15px 34px #09051166;
}
.hero-art { background-color: transparent; }
.hero-tile, .result-tile, .skin-preview > .jelly-sample, .skin-option > .jelly-sample {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-tile canvas, .result-tile canvas, .skin-preview canvas, .skin-option canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.primary, .round-button {
  background: var(--jelly-yellow);
  color: #342048;
  border-color: #ffe799;
  box-shadow: inset 0 1px 2px #ffffffb0, inset 0 -4px 4px #94490040;
}
.primary :is(span, small) { color: inherit; }

:is(.daily-card, .mission-card, .collection-card, .stats-strip, .info-hero, .control-card, .contact-card, .jelly-gallery li, #modal, .analytics-dialog, .analytics-notice) {
  background: var(--jelly-panel-fill);
  color: var(--jelly-text);
  border: 1px solid var(--jelly-line);
  box-shadow: inset 0 1px #fff2;
}
:is(.daily-card, .mission-card, .collection-card, .stats-strip, .info-page, #modal, .analytics-dialog, .analytics-notice) {
  --ink: var(--jelly-text);
  --muted: var(--jelly-muted);
  --line: var(--jelly-line);
}
:is(.daily-card p, .daily-footer b, .fineprint, .card-top .eyebrow, .stats-strip span, .mission-progress) { color: var(--jelly-muted); }
:is(.mission-row, .mission-check, .stat-note, .stats-strip > div) { border-color: var(--jelly-line); }
.mission-check { background: #51366a; color: var(--jelly-text); }
.mission-reward { color: #ffe465; }
.stat-note { background: #39264e; }
.skin-preview { background: #241533; border-color: var(--jelly-line); }

.info-hero {
  border-radius: 24px;
  background: radial-gradient(ellipse at 93% 0, #82406e 0%, transparent 57%), var(--jelly-panel-fill);
}
.info-content a, #modal a, .analytics-dialog a, .analytics-notice a { color: #a5f2ff; }
.info-content a.primary { color: #342048; }
.info-note, .arena-comparison, .reward-note, .last-hit-detail, .unlock-message {
  background: #4a2c5e;
  color: var(--jelly-text) !important;
  border-color: #b880cf;
}
.arena-comparison :is(span, small) { color: var(--jelly-muted); }
kbd, :is(#modal, .analytics-dialog, .analytics-notice) button:not(.primary) {
  background: #473159;
  border-color: #966db0;
  color: var(--jelly-text);
}
#modal .skin-option.selected { border-color: #ffe465; background: #563967; }
#modal .skin-option .jelly-sample { max-width: 100%; }
#modal .skin-option > .look-swatch {
  width: 100%;
  max-width: 58px;
  height: 9px;
  border-radius: 99px;
  background: var(--look-color);
  box-shadow: inset 0 2px #fff5;
}
#modal .look-showcase {
  display: grid;
  grid-template-columns: minmax(94px, .85fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--look-color) 56%, #392553);
  border-radius: 16px;
  background: radial-gradient(ellipse at 22% 50%, color-mix(in srgb, var(--look-color) 23%, #211432), transparent 69%), #271737;
}
.look-showcase strong { display: block; margin-top: 3px; }
.look-stage { position: relative; height: 78px; overflow: hidden; }
.look-stage canvas { position: absolute; inset: 4px 10% auto auto; width: 70px; height: 70px; }
.look-trail {
  position: absolute;
  top: 29px;
  right: 36%;
  width: 62%;
  height: 23px;
  border-radius: 20px;
  background: linear-gradient(90deg, transparent, var(--look-color));
  opacity: .64;
  transform: rotate(-8deg);
  transform-origin: right center;
}
.look-spark { position: absolute; color: var(--look-color); opacity: .85; }
.look-spark-top { top: 6px; left: 12%; }
.look-spark-bottom { bottom: 5px; right: 0; }
#modal button.look-preview-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 10px;
  min-height: 44px;
  background: #39274f;
  border: 1px solid #a681c1;
  border-radius: 999px;
  color: #fff5ff;
  font-size: .78rem;
  font-weight: 700;
}
.look-preview-button > span { color: var(--look-color); font-size: .68rem; }
#modal .skin-option > .look-shortfall {
  display: block;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  color: #ffbbd8;
  font: 700 .75rem/1.25 "Segoe UI", sans-serif;
}
#modal .look-feedback { margin: 10px 0 12px; }
.is-revealed canvas { animation: jelly-look-pop .62s ease-out; }
.is-revealed .look-trail { animation: jelly-look-trail .62s ease-out; }
.is-revealed .look-spark { animation: jelly-look-spark .62s ease-out; }
.just-equipped .jelly-sample { animation: jelly-look-pop .62s ease-out; }
@keyframes jelly-look-pop {
  0% { transform: translateX(-12px) scale(.84, 1.12); }
  42% { transform: translateX(3px) scale(1.13, .91); }
  72% { transform: scale(.97, 1.04); }
  100% { transform: none; }
}
@keyframes jelly-look-trail {
  0% { opacity: 0; transform: rotate(-8deg) scaleX(.28); }
  50% { opacity: 1; transform: rotate(-8deg) scaleX(1.14); }
  100% { opacity: .64; transform: rotate(-8deg) scaleX(1); }
}
@keyframes jelly-look-spark {
  0% { opacity: 0; transform: scale(.4); }
  44% { opacity: 1; transform: scale(1.4) rotate(20deg); }
  100% { opacity: .85; transform: none; }
}
.looks-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#modal .looks-nav button, #modal .look-try {
  border: 1px solid #a681c1;
  border-radius: 10px;
  min-height: 44px;
  padding: 5px 9px;
  font-size: .8rem;
}
#modal .looks-nav button[aria-pressed="true"] { background: #77346d; border-color: #ff9ee9; }
.look-item { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.look-item > .skin-option { flex: 1; width: 100%; }
.look-bubblegum .look-trail {
  background: radial-gradient(circle at 22% 68%, #ffcdef 0 7%, transparent 8%),
    radial-gradient(circle at 45% 25%, #ffa6de 0 12%, transparent 13%),
    radial-gradient(circle at 78% 55%, #ff7acb 0 18%, transparent 19%);
}
.look-sour-spark .look-trail { height: 9px; box-shadow: 0 0 10px #b8fa50; }
.stage-mergeEffect .look-trail { display: none; }
.look-sugar-pop .look-spark { font-size: 24px; color: #74effe; }
.look-sugar-pop .look-spark-bottom { color: #ff9fe8; }
.boost-countdown { margin: 8px 0 14px; }
#modal .boost-countdown p { margin: 0 0 6px; font-size: .875rem; }
.boost-countdown b { color: #ffe465; font-variant-numeric: tabular-nums; }
.boost-time-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #1c122b;
  box-shadow: inset 0 0 0 1px #bb9bce66;
}
.boost-time-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff86d6, #ffe465);
  transform-origin: left center;
}
.boost-list { display: grid; gap: 8px; }
#modal .boost-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 67px;
  padding: 6px;
  border: 1px solid #966db0;
  border-radius: 13px;
}
.boost-option canvas { width: 48px; height: 48px; }
.boost-option strong, .boost-option small { display: block; }
.boost-option small { color: #eedcf8; font-size: .75rem; }
.boost-option > b { white-space: nowrap; color: #ffe465; font-size: .8rem; }
.boost-option .boost-check { display: none; }
.boost-option[aria-pressed="true"] .boost-check { display: inline; }
#modal .boost-option[aria-pressed="true"] { background: #563967; border-color: #ffe465; }
#boost-feedback:empty { display: none; }
#boost-feedback { color: #ffbbd8; }
.boost-start button { flex-basis: 100%; }
#modal:is([data-view="collection"], [data-view="boosts"]) {
  border-color: #a563bd;
  background: radial-gradient(ellipse at 25% 0, #622864 0%, transparent 52%), linear-gradient(#29133d, #1d112e);
  box-shadow: inset 0 0 0 1px #eb92fa29, 0 20px 70px #100619b0;
}
#modal:is([data-view="collection"], [data-view="boosts"]) .modal-top { margin-bottom: 9px; }
#modal:is([data-view="collection"], [data-view="boosts"]) .modal-top .eyebrow {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #a778b2;
  background: #45224f;
  color: #ffecab;
}
#modal:is([data-view="collection"], [data-view="boosts"]) h2 {
  display: table;
  padding: 7px 18px 9px;
  border: 1px solid #ec8ddb;
  border-radius: 18px;
  background: linear-gradient(#ad4d94, #721b60 52%, #8b2b77);
  box-shadow: inset 0 2px 3px #ffd4f78c, 0 5px 9px #1b082b6b;
  font-size: clamp(25px, 6vw, 35px);
}
#modal .looks-nav { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); }
#modal .looks-nav button {
  border-radius: 12px;
  padding-inline: .5rem;
  background: linear-gradient(#623574, #3d2055);
  box-shadow: inset 0 2px #fff2;
  font-weight: 700;
}
#modal .looks-nav button[aria-pressed="true"] {
  background: linear-gradient(#b955a2, #801f73);
  border-color: #ffc0ee;
}
#modal .look-showcase {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 145px;
}
.look-stage { height: 119px; }
.look-stage canvas { inset: 6px auto auto max(1px, 9%); width: 94px; height: 94px; }
.look-stage .look-trail { top: 53px; left: 33%; width: 64%; transform: rotate(8deg); }
.look-stage .effect-art { position: absolute; left: 45%; top: 31px; width: 48%; height: 76px; }
.look-stage .look-spark-top { left: auto; right: 8%; }
.look-stage .look-spark-bottom { right: 17%; }
.stage-mergeEffect canvas { left: auto; right: 0; width: 79px; height: 79px; top: 24px; }
.stage-mergeEffect canvas.merge-before { left: 0; right: auto; width: 46px; height: 46px; top: 45px; }
.stage-mergeEffect .effect-art { z-index: 1; left: 36%; }
.effect-list { display: grid; gap: 8px; }
.effect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 64px;
  padding: 5px 8px;
  background: linear-gradient(135deg, #4f265d, #301942);
  border: 1px solid #895297;
  border-radius: 14px;
}
.effect-row.selected { border-color: var(--look-color); }
#modal .effect-row .look-try {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  text-align: left;
  background: transparent;
  border-color: transparent;
  font-size: .86rem;
}
#modal .effect-buy {
  min-height: 44px;
  max-width: 120px;
  padding: 6px 9px;
  border: 1px solid #ffde84;
  border-radius: 999px;
  background: var(--jelly-yellow);
  color: #342048;
  font-size: .77rem;
  font-weight: 800;
}
#modal .effect-buy.selected { background: #c8f28b; border-color: #e8ffb5; color: #253321; }
.effect-buy .look-shortfall { display: block; margin-top: 3px; font-size: .68rem; }
.effect-art { position: relative; display: inline-block; width: 40px; height: 42px; flex: 0 0 40px; }
.effect-art i {
  position: absolute;
  width: 15px;
  height: 15px;
  top: 8%;
  left: 11%;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff5, transparent), var(--look-color);
  box-shadow: inset 1px 1px 1px #fff9, 0 0 8px color-mix(in srgb, var(--look-color) 70%, transparent);
}
.effect-art i:nth-child(2) { left: 51%; top: 36%; width: 19px; height: 19px; }
.effect-art i:nth-child(3) { left: 22%; top: 66%; width: 10px; height: 10px; }
.effect-bubblegum i { border-radius: 50%; background: radial-gradient(circle at 28% 25%, #fff9 0 12%, #f982d466 15%, #d457b8 95%); border: 1px solid #ffc7f4; }
.effect-sugar-pop i:nth-child(2) { background-color: #74effe; }
.effect-sugar-pop i:nth-child(3) { background-color: #ffea84; }
.is-revealed .effect-art, .just-equipped .effect-art { animation: jelly-look-spark .62s ease-out; }
#modal .boost-option {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  background: linear-gradient(135deg, #552a62, #2a1741);
  min-height: 77px;
}
.boost-option canvas { width: 52px; height: 52px; }
.boost-option > b { background: var(--jelly-yellow); color: #342048; padding: 5px 8px; border-radius: 99px; }
#modal .boost-option[aria-pressed="true"] { border-color: #c5fb8b; box-shadow: inset 0 0 0 1px #c5fb8b66; }
#modal .help-step > span { color: #342048; background: var(--jelly-yellow); }
#modal input { accent-color: #f09de6; }
#modal .result-tile { flex-shrink: 0; }
#modal .result-score { overflow-wrap: anywhere; }
.jelly-gallery { max-width: 850px; padding-bottom: 32px; }
.jelly-gallery .info-hero { margin-bottom: 20px; }
.jelly-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.jelly-gallery li { border-radius: 16px; padding: 8px 4px 12px; text-align: center; }
.jelly-gallery canvas { display: block; width: 104px; height: auto; max-width: 100%; margin: 0 auto 4px; }
.jelly-gallery #lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jelly-gallery .merge-moment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jelly-gallery #lineup li, .jelly-gallery .merge-moment li {
  background: radial-gradient(ellipse at 50% 75%, #63327d 0%, transparent 70%), var(--jelly-panel-fill);
}
.jelly-gallery .merge-moment li { position: relative; }
.jelly-gallery .merge-moment li + li::before {
  content: '→';
  position: absolute;
  left: -13px;
  top: 39%;
  color: #fff1ba;
  text-shadow: 0 1px 3px #1a0e2c;
}
@media (max-width: 520px) {
  .jelly-gallery #lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jelly-gallery li { font-size: .78rem; }
}

#game :is(.hud-score, .hud-time, .growth) {
  background: linear-gradient(152deg, #3e2359ee, #211433f2);
  border-color: #a16cbd88;
  box-shadow: inset 0 1px #f8d8ff26, 0 4px 14px #10051944;
}
#game .pause-button { background: linear-gradient(#694185, #3b2257); border-color: #b386c7; }
#game .dash-button:not(.cooling) {
  background: radial-gradient(ellipse at 30% 17%, #fffbd6 0%, transparent 38%), var(--jelly-yellow);
  box-shadow: inset 0 0 0 3px #fff6ac9c, inset 0 -7px 8px #b6652777, 0 5px 12px #120b2a99;
}

#modal .shared-look-preview canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#modal .trim-try {
  min-height: 40px;
  font-size: .75rem;
}
.effect-fizz-ribbon i {
  border-radius: 50%;
  border: 1px solid #ffcee9;
}
.effect-neon-comet i {
  height: 4px;
  border-radius: 4px;
  transform: rotate(-28deg);
}
.effect-honey-stream i {
  height: 7px;
  border-radius: 12px;
  transform: rotate(-18deg);
}
.effect-pixel-bloom i {
  border-radius: 0;
  transform: none;
}
.effect-gummy-pop i {
  clip-path: polygon(50% 0, 64% 32%, 100% 38%, 75% 64%, 82% 100%, 50% 83%, 18% 100%, 25% 64%, 0 38%, 36% 32%);
}
.effect-honeycomb-burst i {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transform: none;
}
#game .arena-context {
  font-size: .72rem;
  font-weight: 700;
  max-width: calc(100% - 36px);
  text-shadow: 0 1px 3px #160e24;
}

#modal .look-showcase {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
#modal .shared-look-preview {
  height: auto;
  aspect-ratio: 460 / 265;
  border: 1px solid #956cba60;
  border-radius: 14px;
  background: #241539;
}
#modal .collection-showcase { padding: 6px; gap: 6px; min-height: 0; }
#modal .collection-showcase .shared-look-preview {
  height: 190px;
  height: clamp(104px, 24svh, 210px);
  aspect-ratio: auto;
}
#modal[data-view="collection"] .looks-nav { margin-bottom: 7px; }
#modal[data-view="collection"] #modal-title { margin-bottom: 10px; }
#modal[data-view="collection"] .preview-picker { margin: 7px 0; }
#modal[data-view="collection"] .look-feedback { margin: 6px 0 0; min-height: 1.1em; }
.set-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 5px 5px;
}
.collection-actions { margin-top: 8px; }
#modal .collection-actions button { width: 100%; min-height: 44px; }
#modal .collection-actions button[aria-disabled="true"] { opacity: .72; cursor: default; }
.set-parts dt { color: #d9bce9; font-size: .68rem; }
.set-parts dd { margin: 3px 0 0; font-size: .77rem; font-weight: 700; color: #fff6fb; }
.daily-card .browse-arenas {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 15px;
  margin-bottom: 14px;
  font-size: .8rem;
}
.arena-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; color: #e2c9f1; font-size: .72rem; }
.arena-legend span::before {
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 6px;
  border-radius: 2px;
  content: '';
}
.arena-route-key::before { background: #71d5ff; }
.arena-patch-key::before { border: 1px solid #ffda75; background: #f7cc5d45; }
.arena-bonus-key::before { border: 1px dashed #ffda75; }
.preview-picker {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 7px;
  align-items: stretch;
  margin: 10px 0;
}
.preview-picker button { min-height: 44px; padding: 0; font-size: 1.35rem; line-height: 1; }
.preview-picker select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 0 9px;
  color: #fff4ff;
  background: #3c2454;
  border: 1px solid #b78acb;
  border-radius: 12px;
  color-scheme: dark;
}
.arena-picker-map {
  display: block;
  width: 100%;
  height: 230px;
  height: clamp(116px, 33svh, 230px);
  object-fit: contain;
  background: #160f28;
  border: 1px solid #946ab099;
  border-radius: 12px;
}
#modal[data-view="arenas"] .arena-legend { margin: 8px 0 12px; }
#play-chosen-arena { display: block; min-height: 44px; width: 100%; }
@media (max-height: 500px) {
  #modal[data-view="arenas"] .arena-picker-map { height: clamp(94px, 28svh, 150px); }
}

.hero-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-width: 405px;
  margin-top: 9px;
}
#home .hero-shortcuts button {
  min-height: 44px;
  padding: 6px 5px;
  border-radius: 12px;
  border: 1px solid #a87bc5;
  background: linear-gradient(#643873, #3c2253);
  box-shadow: inset 0 2px #fff2;
  color: #fff6ff;
  font-size: .76rem;
  line-height: 1.15;
}
#home .hero-shortcuts button:hover { background: linear-gradient(#78458a, #4b2c68); }
.stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-copy > .text-button { min-height: 32px; }
#game .arena-context, #game #rank {
  border-radius: 8px;
  background: #1a102ce8;
  border: 1px solid #aa7cc75e;
  color: #f7ebff;
}
#game .arena-context { padding: 4px 7px; }
#game #rank { padding: 4px 6px; }
#game #timer.is-urgent { color: #ffb8c6; }
#game #timer, #game #score { font-variant-numeric: tabular-nums; }
#game #pause { min-width: 44px; min-height: 44px; }
#game #dash-label { font-size: .62rem; }
#game .dash-button.boosting small { color: #26163f; font-weight: 900; }
.arena-map-frame { position: relative; margin: 0; }
.arena-map-frame figcaption {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 12px);
  text-align: center;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #af89d36e;
  background: #23163aee;
  color: #f8eeff;
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
}
#boost-feedback:empty { display: none; }
#modal .collection-actions button[aria-disabled="true"] {
  background: #39264e;
  border-color: #a17bc0;
  color: #e4c8ed;
  box-shadow: none;
  opacity: 1;
}
#modal .collection-actions button[aria-disabled="true"]:hover { background: #39264e; }
#modal[data-view="results"] #modal-title {
  margin: 6px 0 10px;
  font-size: clamp(1.5rem, 5vw, 2rem);
}
#modal[data-view="results"] .result-hero {
  gap: 12px;
  padding: 8px 0 12px;
  margin: 0;
}
#modal[data-view="results"] .result-score {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.05rem, 8vw, 3.3rem);
  line-height: 1.03;
}
#modal .result-bank {
  display: block;
  margin-top: 8px;
  color: #ffe28f;
  letter-spacing: 0;
  font-size: .78rem;
  line-height: 1.2;
}
#modal[data-view="results"] .result-tile { width: 86px; height: 86px; }
#modal[data-view="results"] .arena-comparison { margin: 5px 0 10px; padding: 10px 12px; }
#modal[data-view="results"] .arena-comparison span { font-size: .68rem; line-height: 1.25; letter-spacing: .02em; }
#modal[data-view="results"] .arena-comparison b { margin-top: 4px; line-height: 1.28; font-size: .87rem; }
#modal .replay-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 8px; }
#modal .replay-choices button { min-height: 48px; padding: 7px 8px; font-size: .84rem; }
#modal .result-home {
  display: block;
  min-height: 44px;
  margin: 4px auto 0;
  padding: 7px 12px;
  color: #f0dcff;
  background: transparent;
  border: 1px solid transparent;
}
#modal .result-details {
  border-top: 1px solid #9877b168;
  margin-top: 6px;
  color: #ead7f6;
}
#modal .result-details summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
#modal .result-details .result-stats { margin: 0 0 10px; padding: 8px 0 10px; }
@media (max-width: 650px) {
  #home .hero-copy .play-button { width: 100%; }
  #home .hero-copy h1 { font-size: clamp(2.2rem, 10.5vw, 3.9rem); }
  #home .hero-copy .name-field { margin-bottom: 12px; }
  #game .arena-context { font-size: .67rem; }
  #modal[data-view="boosts"] .boost-option {
    min-height: 55px;
    padding: 5px 8px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 7px;
  }
  #modal[data-view="boosts"] .boost-option canvas { width: 36px; height: 36px; }
  #modal[data-view="boosts"] .boost-option small { font-size: .72rem; }
  #modal[data-view="boosts"] .boost-start button { min-height: 44px; }
  #modal[data-view="boosts"] .boost-start { margin: 9px 0 0; }
}

#modal .result-home { border-radius: 12px; }
#modal .result-home:hover { background: #ffffff12; }
#modal .modal-buttons button:focus-visible,
#modal summary:focus-visible,
#modal .preview-picker select:focus-visible,
#home .hero-shortcuts button:focus-visible {
  outline: 2px solid #8defff;
  outline-offset: 2px;
}
#modal[data-view="settings"] .setting-row {
  min-height: 49px;
  padding: 7px 0;
  gap: 10px;
}
#modal[data-view="settings"] .setting-row small {
  margin-top: 3px;
  font-size: .74rem;
  line-height: 1.27;
}
#modal[data-view="settings"] .setting-row label {
  line-height: 1.23;
  cursor: pointer;
}
.settings-controls summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
@media (max-width: 650px) {
  #modal[data-view="boosts"] .boost-start:has(#boost-confirm:not([hidden])) {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 6px;
  }
  #modal[data-view="boosts"] .boost-start button { padding: 6px; font-size: .75rem; }
  #home .hero-copy { padding-block: 22px 16px; }
  #home .hero-copy > p { margin-bottom: 13px; }
  #home .hero-copy .name-field { margin-top: 0; }
  #home .hero-copy .retry-last { margin-top: 5px; }
  #home .hero-copy > .text-button:last-child { margin-top: 0; }
}

@media (max-width: 360px) {
  #modal { width: calc(100% - 20px); padding: 13px; }
  #modal .modal-top { margin-bottom: 6px; }
  #modal #modal-title { font-size: 1.35rem; margin-block: 5px 9px; }
  #modal .looks-nav { gap: 4px; }
  #modal .looks-nav button { min-height: 44px; padding: 3px; font-size: .72rem; }
  #modal .preview-picker { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; }
  #modal .preview-picker select { padding-inline: 5px; }
  #modal .collection-showcase .shared-look-preview { height: clamp(102px, 21svh, 135px); }
  #modal .set-parts { gap: 5px; margin: 0 2px 4px; }
  #modal .set-parts dd { font-size: .69rem; }
  #modal .collection-actions button { padding: 5px; font-size: .82rem; }
  #modal[data-view="boosts"] .boost-list { gap: 5px; }
  #modal[data-view="boosts"] .boost-countdown { margin-bottom: 7px; }
  #modal[data-view="boosts"] .boost-option > b { padding: 4px 5px; }
  #modal[data-view="boosts"] .fineprint { margin-bottom: 0; line-height: 1.25; }
  #modal[data-view="results"] .result-tile { width: 74px; height: 74px; }
}

#modal .merge-showcase {
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--look-color) 19%, #221333), #231633 72%);
}
.merge-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 1px 2px 0;
}
.merge-equation {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ddc6f0;
  font-size: .71rem;
  white-space: nowrap;
}
.merge-equation b {
  min-width: 24px;
  padding: 4px 3px;
  text-align: center;
  color: #e8fcff;
  background: #1f596e;
  border: 1px solid #70cadd;
  border-radius: 7px;
}
.merge-equation b:last-child {
  color: #fff6be;
  background: #73551d;
  border-color: #e8ba56;
}
#modal .merge-preview-bar button {
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff0ff;
  font-size: .74rem;
}
#modal .merge-preview-bar button span { color: var(--look-color); }
@media (max-width: 360px) {
  #modal .merge-preview-bar button { padding-inline: 5px; font-size: .67rem; }
}
