#missions-screen, #heroes-screen {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate; container-type: size;
  --panel-floor: calc(var(--menu-nav-height) + clamp(16px, min(6.8vw, 3.4dvh), 32px));
  color: #082677; font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-weight: 800;
}
#missions-screen {
  background: radial-gradient(ellipse 45% 17% at 50% 37%, #fff 0%, #fff9 45%, transparent 95%),
    linear-gradient(to bottom, #2165f8 0%, #518afb 15%, #a7d5ff 23%, #e7faff 28%, #79e4ff 38%, #27bcff 52%, #0776ff 78%, #1d83fc 100%);
}
#heroes-screen { background: linear-gradient(170deg, #095aff, #1269fd 54%, #0960f5); }
.equipped-avatar {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 2px solid #162e76;
  background: radial-gradient(ellipse at 40% 28%,#fff 2%,#dcfaff 44%,#89d6fd 81%);
  box-shadow: inset 0 0 0 3px white,inset 0 0 0 4px #65b5ea,0 2px 0 #206bc1;
}
.equipped-avatar canvas { display: block; width: 86%; height: 86%; }
.menu-profile .equipped-avatar { width: 93%; }
.menu-dialog .equipped-avatar { width: 36px; }
.profile-hero { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid #88b7dc; border-radius: 12px;
  background: #eaf7ff; color: #224380; font: 800 15px/1.15 var(--body-font); }
.profile-hero strong { margin-left: auto; }
.profile-hero span { font-size: 21px; line-height: 1; }
.mp-pattern { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; color: white; opacity: .065; }
#missions-screen .mp-pattern { opacity: .082; }
#missions-screen::before {
  content: ""; pointer-events: none; position: absolute; left: 50%; top: 18.5%;
  width: min(84%, 46vh); height: 28%; transform: translateX(-50%);
  background: radial-gradient(circle at center, #fff 0 13%, transparent 25%) 0 0/10px 10px,
    radial-gradient(circle at center, #fff 0 14%, transparent 30%) 5px 5px/10px 10px;
  opacity: .72; mask-image: radial-gradient(ellipse, black, transparent 67%);
}
.mh-content, .mp-showcase, .mp-board { --u: min(1cqw, .62cqh, 7.7px); }
.mp-outlined {
  color: white; paint-order: stroke fill; -webkit-text-stroke: max(1.6px, calc(.52 * var(--u))) #102468;
  text-shadow: 0 max(1px, calc(.3 * var(--u))) 0 #13225b;
}
.mh-content { position: absolute; top: 15.9%; bottom: var(--panel-floor); left: 50%;
  transform: translateX(-50%); width: calc(92 * var(--u)); max-width: 94%; overflow-y: auto; overflow-x: hidden;
  padding: calc(.5 * var(--u)) calc(1.5 * var(--u)) calc(4 * var(--u)); scrollbar-width: thin;
  overscroll-behavior-y: contain; touch-action: pan-y;
}
.mh-strip {
  position: relative; display: flex; align-items: center; gap: calc(1.6 * var(--u)); margin: 0 calc(-.75 * var(--u));
  padding: 0 calc(8 * var(--u)) 0 calc(5.4 * var(--u)); height: calc(10.6 * var(--u));
  font: 800 calc(5 * var(--u))/1 "Bricolage Grotesque", "Segoe UI", sans-serif; letter-spacing: -.035em;
}
.mh-strip-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: drop-shadow(0 1px 0 #2344a5); }
.mh-strip-icon { width: calc(9.2 * var(--u)); height: 112%; margin-top: calc(-2.1 * var(--u)); display: inline-flex; align-items: center; transform: rotate(-10deg); }
.mh-strip-icon svg, .mh-equipped svg { width: 100%; height: 100%; display: block; }
.mh-count { margin-left: auto; font-size: calc(4.7 * var(--u)); letter-spacing: -.04em; color: #071c71; }
.mh-grid { list-style: none; margin: calc(4.5 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: calc(3.35 * var(--u)); }
.mh-tile {
  position: relative; display: grid; place-items: center; grid-template-rows: 1fr auto;
  width: 100%; aspect-ratio: .81; padding: 4% 3% 9%;
  font: inherit; touch-action: pan-y;
  border: max(2px, calc(.48 * var(--u))) solid #122a79; border-radius: calc(5.65 * var(--u));
  isolation: isolate;
  background: radial-gradient(ellipse at 27% 9%, #fff 0%, #e5fbff 15%, transparent 54%),
    linear-gradient(155deg,#cff6ff 9%,#bce9ff 42%,#8fc5fa 71%,#75a8ed 94%);
  --tile-rim: inset 0 0 0 calc(.96 * var(--u)) #f2ffff, inset 0 calc(-1.8 * var(--u)) 0 calc(.8 * var(--u)) #77acff, 0 calc(.6 * var(--u)) 0 #173888;
  box-shadow: var(--tile-rim);
}
.mh-tile[aria-pressed=true] { box-shadow: var(--tile-rim), 0 0 0 calc(.55 * var(--u)) #eaff86, 0 0 calc(1.8 * var(--u)) calc(.5 * var(--u)) #beff31; }
.mh-tile:focus-visible { outline: 3px dashed #ffdc24; outline-offset: 2px; }
.mh-tile:active { transform: translateY(2px); }
.mh-tile::before {
  content: ""; position: absolute; z-index: -1; bottom: 24%; left: 13%; width: 74%; height: 11%;
  border-radius: 50%; background: radial-gradient(ellipse,#85bbea 12%,#d3f3ff 67%,#e8fbff 85%);
  box-shadow: inset 0 -1px 0 #6ca9d9, 0 2px 2px #4c8ccd65;
}
.mh-tile::after {
  content: ""; pointer-events: none; position: absolute; inset: 4%; border-radius: inherit;
  box-shadow: inset 1px 1px 1px #fff, inset -1px -1px 1px #accdfa;
}
.mh-model { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mh-name { color: #143480; font: 800 clamp(10px,calc(2.9 * var(--u)),17px)/1.03 "Bricolage Grotesque",system-ui,sans-serif;
  max-width: 100%; white-space: nowrap; letter-spacing: -.04em; text-shadow: 0 1px #ebfbff; }
.mh-tile:not([aria-pressed=true]) .mh-equipped { display: none; }
.mh-equipped { position: absolute; z-index: 1; filter: drop-shadow(0 1px 1px #3b6c6580); right: calc(-1.4 * var(--u)); bottom: calc(-1.7 * var(--u)); width: calc(6.8 * var(--u)); height: calc(6.8 * var(--u)); }
.mp-showcase {
  position: absolute; inset: 20.7% 0 auto; height: 21.8%; display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.mp-meter { position: relative; display: grid; flex: 0 0 23%; place-items: center; min-height: 32px;
  width: calc(44.5 * var(--u)); max-width: 54%; border: max(1.6px, calc(.45 * var(--u))) solid #112d80;
  border-radius: calc(4.4 * var(--u)); background: linear-gradient(#316aff, #2587ff);
  box-shadow: inset 0 0 0 calc(.42 * var(--u)) #8ccaff, inset 0 calc(-.8 * var(--u)) 0 #1368ee;
}
.mp-meter::after { content: ""; position: absolute; width: calc(2.55 * var(--u)); height: calc(2 * var(--u)); top: calc(100% - .75 * var(--u)); left: 50%;
  transform: translateX(-50%) rotate(45deg); border-right: max(1.6px, calc(.42 * var(--u))) solid #112d80;
  border-bottom: max(1.6px, calc(.42 * var(--u))) solid #112d80; border-radius: 0 0 calc(.65 * var(--u)) 0; background: #2587ff; }
.mp-meter-fill { position: absolute; inset: 22% 6%; overflow: hidden; border-radius: calc(1.9 * var(--u)); background: #102eae; box-shadow: inset 0 2px 0 #0b318b; }
.mp-meter-fill::before { content: ""; display: block; height: 100%; width: var(--done); border-radius: inherit; background: linear-gradient(#baff6a 0% 50%, #78e72f 51%); }
.mp-meter-icon { position: absolute; z-index: 1; left: 4%; top: 7%; width: 17%; height: 83%; transform: rotate(10deg); }
.mp-meter-icon svg, .mp-prize svg { display: block; width: 100%; height: 100%; }
.mp-meter b { position: relative; font-size: calc(4.05 * var(--u)); letter-spacing: -.045em; line-height: 1; }
.mp-prize { position: relative; flex: 1; width: calc(52 * var(--u)); min-height: 0; margin-top: calc(.5 * var(--u)); }
.mp-board { position: absolute; top: 47.8%; bottom: var(--panel-floor); left: 50%;
  display: flex; flex-direction: column; transform: translateX(-50%); isolation: isolate;
  width: calc(96.5 * var(--u)); max-width: 97%; padding: calc(2.8 * var(--u)) calc(2.7 * var(--u)) calc(2.6 * var(--u));
  border: max(2px, calc(.55 * var(--u))) solid #12327a; border-radius: calc(7.7 * var(--u));
  background: radial-gradient(ellipse at 15% 0%,#49b6ff6b, transparent 48%),
    linear-gradient(145deg,#1476fd,#1455df 48%,#1059e7 78%,#237bff);
  box-shadow: inset 0 3px 0 #72b1ff, inset 2px 0 0 #408bff, inset -2px 0 0 #3b78ec,
    inset 0 -4px 0 #1549bf, 0 3px 0 #153ea4, 0 6px 8px #1545a34d;
}
.mp-tabs { display: flex; flex: 0 0 12.3%; min-height: 31px; padding: max(1px, calc(.25 * var(--u)));
  border: max(1.5px, calc(.48 * var(--u))) solid #12367d; border-radius: 100vmax;
  background: linear-gradient(#2375ee,#308aff 29%,#307ef0);
  box-shadow: inset 0 2px 3px #194bae88, inset 0 0 0 calc(.45 * var(--u)) #70afff, 0 1px 0 #81bdff; }
.mp-tabs button { flex: 1; min-width: 0; border: 0; border-radius: 100vmax; background: none; line-height: 1;
  font-family: inherit; font-weight: 800; font-size: calc(4.35 * var(--u)); padding: 0; }
.mp-tabs button[aria-selected=true] {
  background: radial-gradient(ellipse at 24% 7%,#fffbd2, transparent 46%),
    linear-gradient(#fff398 4%,#ffe654 48%,#ffda24 52%,#ffc51c 87%,#f4ac0d);
  box-shadow: 0 0 0 max(1px, calc(.4 * var(--u))) #133a81, inset 0 0 0 calc(.58 * var(--u)) #fff37c, inset 0 calc(-1.03 * var(--u)) 0 #f4aa00;
}
.mp-clock { display: flex; align-items: center; justify-content: center; gap: calc(.8 * var(--u)); flex: 0 0 7.8%; min-height: 21px;
  margin: calc(1.25 * var(--u)) 0 calc(.9 * var(--u)); border-radius: calc(2.75 * var(--u)); background: #123cce;
  font-size: calc(2.95 * var(--u)); color: #d7f5ff; font-weight: 800; letter-spacing: -.035em; }
.mp-clock-art { width: calc(4.6 * var(--u)); height: 88%; }
.mp-clock.mp-forever .mp-clock-art { display: none; }
.mp-rows { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto;
  gap: calc(1.7 * var(--u)); padding: calc(.5 * var(--u)) calc(.53 * var(--u)) calc(1.8 * var(--u));
  scroll-padding-block: calc(1.2 * var(--u));
  border-radius: calc(3.8 * var(--u)); background: linear-gradient(180deg,#0a3fc6,#0d52dc); scrollbar-width: thin; scrollbar-color: #78caff #0c43ce; overscroll-behavior: contain; }
.mp-row { position: relative; isolation: isolate; display: grid; flex-shrink: 0; grid-template-columns: 19.7% minmax(0,1fr) 21%;
  align-items: center; min-height: max(58px, min(8.75cqh, calc(20 * var(--u)))); padding: calc(1.1 * var(--u)) 0;
  border: max(1.6px, calc(.55 * var(--u))) solid #122d83; border-radius: calc(4.45 * var(--u));
  background: linear-gradient(165deg,#fff 0%,#ecfaff 28%,#ddf3ff 77%,#cae8fd);
  box-shadow: inset 0 2px white, inset 0 0 0 calc(.55 * var(--u)) #f8feff, inset 0 -4px 0 #bbdaf4, 0 2px 0 #173e9d; }
.mp-row::before { content: ""; position: absolute; z-index: -1; inset: 6% auto 5% 1%; width: 29%; border-radius: calc(3 * var(--u));
  background: radial-gradient(circle, white 0 30%, transparent 41%) 0 0/calc(2.7 * var(--u)) calc(2.7 * var(--u));
  mask-image: linear-gradient(90deg, black, transparent); }
.mp-row::after { content: ""; position: absolute; z-index: -1; top: 2%; bottom: 2%; right: .5%; width: 23%;
  border-radius: 0 calc(3.7 * var(--u)) calc(3.7 * var(--u)) 0; clip-path: polygon(23% 0,100% 0,100% 100%,0 100%);
  background: radial-gradient(ellipse at 58% 51%, white, #d4f5ff 36%, #81d7ff);
}
.mp-row.mp-ready::after { background: radial-gradient(ellipse, #fcffdf, #a5f66c 75%, #66ce44); }
.mp-row.mp-claimed::after { background: linear-gradient(110deg,#d4eafa,#c9e7fd); }
.mp-reroll { position: absolute; z-index: 2; top: calc(-.38 * var(--u)); left: calc(-.9 * var(--u)); display: grid; place-items: center;
  width: calc(8.6 * var(--u)); height: calc(6.8 * var(--u)); padding: 0; background: linear-gradient(#efffff, #c7f1ff);
  border: max(1.5px, calc(.43 * var(--u))) solid #143081; border-radius: calc(2.2 * var(--u)) calc(1.6 * var(--u)) calc(3.2 * var(--u)) calc(2 * var(--u));
  box-shadow: inset 0 2px 0 white, inset 0 -2px 0 #91cbf5, 0 1.5px 0 #365da4; }
.mp-reroll::before { content: ""; position: absolute; inset: -5px; }
.mp-reroll svg { width: 68%; height: 90%; }
.mp-quest-icon { width: 56%; margin: 9% auto 0; height: calc(10.6 * var(--u)); }
.mp-quest-icon svg { width: 100%; height: 100%; }
.mp-goal { min-width: 0; padding: 0 calc(1.85 * var(--u)) 0 0; }
.mp-goal h3 { margin: 0 0 calc(1.45 * var(--u)); font: 800 calc(4.25 * var(--u))/1.04 "Bricolage Grotesque", "Segoe UI", sans-serif; letter-spacing: -.025em; color: #13449d; }
.mp-track { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden;
  height: max(16px, calc(5 * var(--u))); border-radius: calc(1.7 * var(--u)); background: #1133b4; box-shadow: inset 0 -2px 0 #0a278b; }
.mp-track i { position: absolute; z-index: -1; left: 0; top: 0; height: 100%; border-radius: inherit; background: linear-gradient(#a4f953 0 51%,#6fda30 52%); }
.mp-track b { font-size: calc(3.75 * var(--u)); line-height: 1; letter-spacing: -.035em; }
.mp-reward { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 0 0 calc(.8 * var(--u)); margin-right: 4%; border: 0; border-radius: calc(2.8 * var(--u)); background: transparent; color: #173488; }
.mp-reward:disabled { opacity: 1; cursor: default; }
.mp-stack-art { display: block; width: 65%; height: calc(8.3 * var(--u)); }
.mp-reward b { color: #ffd92a; margin-top: calc(-2.15 * var(--u)); font: 800 calc(4.8 * var(--u))/.95 "Bricolage Grotesque",sans-serif; letter-spacing: -.05em;
  -webkit-text-stroke-width: max(2px,calc(.9 * var(--u))); }
.mp-reward small { font: 800 calc(2.65 * var(--u))/1 "Bricolage Grotesque",sans-serif; letter-spacing: -.02em; padding-top: .15em; }
.mp-reward small:empty { display: none; }
#missions-screen button:focus-visible, #missions-screen [role=tabpanel]:focus-visible { outline: 3px solid #fff04d; outline-offset: -4px; }
#missions-screen button:enabled:active { filter: brightness(.94); }
@media (min-aspect-ratio: 13/10) and (max-height: 620px) {
  .mp-showcase { inset: 21% auto 15% 4%; width: 36%; height: auto; justify-content: center; }
  .mp-meter { flex: 0 0 auto; height: 35px; width: 65%; max-width: 180px; }
  .mp-meter b { font-size: 17px; }
  .mp-prize { flex: 0 1 auto; width: min(95%,47vh); height: min(48vh, 215px); }
  .mp-board { top: 23%; bottom: max(19%,var(--panel-floor)); left: 42%; transform: none; width: min(56%, 490px); }
  .mp-board, .mh-content { --u: min(1.05cqh, .81cqw,6px); }
  .mp-row { min-height: 50px; }
  .mp-clock { min-height: 17px; }
  .mh-content { top: 24%; }
}
@media (max-width: 360px) and (min-aspect-ratio: 5/11) {
  .mp-reroll { width: 30px; height: 23px; }
}
