@charset "utf-8";
@import url("/static/game/base.41f2c345720c.css");
/* Shared palette and text sizes (25/09/2026). Change a value here to change it everywhere it is used. */
:root {
  --pl-cream: #f7f2cd; /* main light text on the navy panels */
  --pl-gold: #f6d778; /* gold of frames and titles */
  --pl-gold-bright: #ffd23f; /* bright gold (highlights, prices) */
  --pl-gold-light: #ffe28a; /* light gold (labels) */
  --pl-steel: #33557a; /* steel blue lines and borders */
  --pl-slate: #8fa8cf; /* muted blue text */
  --pl-sky: #8fc5ff; /* sky blue accents */
  --pl-cyan: #7fe6ff; /* cyan accents */
  --pl-brown: #7a3f00; /* dark brown text on gold buttons */
  --pl-ink: #292820; /* dark ink */
  --pl-navy-950: #020d20; /* darkest navy */
  --pl-navy-900: #03102a;
  --pl-navy-850: #04162c;
  --pl-navy-800: #06162e;
  --pl-navy-700: #0a1e3d;
  --text-3xs: 7px;
  --text-2xs: 8px;
  --text-xs: 9px;
  --text-sm: 10px;
  --text-md: 11px;
  --text-lg: 12px;
  --text-xl: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 15px var(--font);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
}
button {
  color: inherit;
}
a {
  color: var(--gold);
}
.loading {
  padding: 20vh;
  text-align: center;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 46px;
  letter-spacing: -1.7px;
  line-height: 1.12;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, monospace;
}
.gold {
  color: var(--gold);
}
.green {
  color: var(--green);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: var(--text-md);
  letter-spacing: 0.5px;
  background: #14242aa8;
}
.btn {
  font-weight: 600;
}
.btn:hover {
  border-color: #849389;
}
.btn.primary:hover {
  background: #ffda94;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: #edaaa0;
  border-color: #805453;
}
.btn.full {
  width: 100%;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand {
  font-weight: 800;
  letter-spacing: 2.5px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand small {
  font-size: var(--text-xs);
  letter-spacing: 2px;
  display: block;
  margin-top: 3px;
}
.ball-logo {
  border: 2px solid var(--gold);
  position: relative;
}
.ball-logo:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid var(--gold);
}
.ball-logo:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--gold);
}
.shell {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 100vh;
}
.navbtn {
  background: none;
  border: 0;
  text-align: left;
  padding: 13px 14px;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: var(--text-xl);
}
.navbtn.active {
  color: var(--gold);
  background: #d5b06a12;
  border: 1px solid #e5c27c23;
}
.navbtn:hover {
  background: var(--panel2);
  color: var(--white);
}
.navicon {
  font-size: 18px;
  display: inline-block;
  width: 23px;
}
.main {
  padding: 30px 36px;
  max-width: 1450px;
  width: 100%;
  margin: auto;
}
.pagehead {
  margin-bottom: 26px;
}
.pagehead h1 {
  letter-spacing: -0.8px;
}
.pagehead .eyebrow {
  margin-bottom: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #314237;
  border: 1px solid #64866c;
  color: var(--gold);
  border-radius: 50%;
  font-weight: 700;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panel-pad {
  padding: 22px;
}
.panel-title {
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.scene {
  height: 302px;
  background: #3e6855 url("/static/game/forest.80e52e138ba6.svg") center/cover;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.scene:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b211de0, transparent 50%, #0e202630);
  pointer-events: none;
}
.scene h2 {
  font-size: 27px;
}
.scene .pixel {
  position: absolute;
  width: 160px;
  height: 160px;
  object-fit: contain;
  bottom: 53px;
  right: 15%;
  filter: drop-shadow(0 12px 5px #102e2a60);
  z-index: 1;
  animation: bob 3s infinite ease-in-out;
}
.pixel {
  object-fit: contain;
}
.type {
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #426557;
  color: #e5f0dc;
}
.type.fire {
  background: #915c42;
}
.type.water,
.type.ice {
  background: #386477;
}
.type.poison,
.type.ghost,
.type.psychic {
  background: #655378;
}
.type.electric {
  background: #8b763e;
}
.type.rock,
.type.ground {
  background: #79694f;
}
.type.normal {
  background: #5b686b;
}
.journey {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 4px;
}
.sectionheading {
  margin: 20px 0 15px;
}
.sectionheading h2 {
  font-size: 17px;
}
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.team-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border-bottom: 1px solid #ffffff08;
  position: relative;
}
.member .pixel {
  flex-shrink: 0;
}
.member .slot {
  font: 9px monospace;
}
.member .info {
  flex: 1;
  min-width: 0;
}
.member .hp {
  margin-top: 7px;
}
.hp {
  background: #0d181d;
  overflow: hidden;
}
.hp > span {
  display: block;
  height: 100%;
  background: #80be89;
  transition: width 0.25s;
}
.hp.low > span {
  background: var(--red);
}
.member.empty {
  height: 66px;
  opacity: 0.45;
}
.member.fainted {
  opacity: 0.45;
}
.lab {
  padding: 15px;
  background: #29233b;
  border: 1px solid #685780;
  margin-bottom: 20px;
}
.lab label {
  font-size: var(--text-lg);
}
.lab select {
  background: #171624;
  color: #eee;
  padding: 7px;
  border: 1px solid #695482;
  border-radius: 4px;
}
label.field {
  display: block;
  font-size: var(--text-lg);
  color: #b7c7c9;
  margin-bottom: 17px;
}
.field input {
  display: block;
  width: 100%;
  background: #101b22;
  border: 1px solid #3c4c53;
  border-radius: 6px;
  padding: 12px;
  color: var(--white);
  margin-top: 8px;
}
.field input:focus {
  border-color: var(--gold);
}
.form-error {
  color: #f0a59b;
  font-size: var(--text-lg);
  min-height: 20px;
  margin-bottom: 12px;
}
.starter {
  transition: 0.2s;
}
.starter img {
  width: 180px;
  max-width: 100%;
}
.battle-field {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 280px;
  background: url("/static/game/forest.80e52e138ba6.svg") center/cover;
  position: relative;
}
.vs {
  font: 18px monospace;
  color: #ffe6ac;
}
.battle-log {
  background: #101c23;
  min-height: 132px;
  padding: 18px;
  color: #b9c9c9;
  font:
    12px/1.8 ui-monospace,
    monospace;
}
.battle-log p:last-child {
  color: var(--gold);
}
.outcome img {
  width: 130px;
}
.outcome p {
  line-height: 1.8;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 25px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #051015bd;
  backdrop-filter: blur(7px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #16242b;
}
.modal-head {
  padding: 22px 27px;
  position: sticky;
  top: 0;
  background: #16242b;
  z-index: 2;
}
.modal-body {
  padding: 25px;
}
.capture-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.wheel-wrap {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 22px auto;
}
.wheel {
  width: 100%;
  height: 100%;
  background: conic-gradient(var(--green) 0 72deg, #815655 72deg 360deg);
  border: 7px solid #31423f;
  box-shadow:
    0 0 0 1px #9ba38a,
    0 12px 40px #0006;
  transition: background 0.2s;
  position: relative;
}
.wheel:after {
  content: '';
  position: absolute;
  inset: 25px;
  background: #17272b;
  border: 1px solid #ffffff22;
}
.wheel-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.wheel-center strong {
  font:
    42px ui-monospace,
    monospace;
  color: var(--gold);
}
.pointer {
  top: -8px;
  left: calc(50% - 9px);
}
.investment {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 20px;
}
.investment button {
  padding: 8px 10px;
}
.investment .selected {
  border-color: var(--gold);
  color: var(--gold);
  background: #c9aa6515;
}
.sacrifices {
  max-height: 150px;
  overflow: auto;
  margin: 12px 0;
}
.sacrifice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
}
.sacrifice img {
  width: 35px;
  height: 35px;
}
.capture-target {
  padding: 8px;
  background: #101d23;
  border: 1px solid var(--line);
  color: white;
  width: 100%;
}
.shop-grid {
  display: grid;
}
.shop-item {
  background: #1b2c32;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shop-item .item-icon {
  font-size: 27px;
  color: var(--gold);
}
.shop-item p {
  color: var(--muted);
}
.collection {
  display: grid;
}
.dex-entry {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
}
.dex-entry img {
  max-width: 100%;
}
.dex-entry.unknown img {
  filter: brightness(0) opacity(0.22);
}
.banner {
  padding: 14px 18px;
  border: 1px solid #71907b55;
  background: #68937815;
  margin-bottom: 20px;
  line-height: 1.6;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0;
}
.detail-cell {
  padding: 12px;
  background: #101c23;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #e4d2aa;
  color: #17252a;
  padding: 14px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 30px #0005;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.pulse {
  animation: impact 0.3s;
}
.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes impact {
  50% {
    filter: brightness(1.8);
    transform: translateX(4px);
  }
}
@media (min-width: 1550px) {
  .main {
    padding: 40px;
  }
  .scene {
    height: 360px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 180px 1fr;
  }
  .main {
    padding: 24px;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .navbtn {
    padding: 8px;
  }
  .team-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .main {
    padding: 20px 14px;
  }
  .pagehead .pill {
    display: none;
  }
  .routes {
    gap: 7px;
  }
  .scene {
    height: 260px;
  }
  .scene .pixel {
    right: 5%;
    width: 130px;
  }
  .scene h2 {
    font-size: 23px;
  }
  .capture-layout {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 18px;
  }
  .wheel-wrap {
    width: 180px;
    height: 180px;
  }
  .row {
    gap: 8px;
  }
}

/* Pixel-art interface: hard edges, tile-like surfaces and readable game controls. */
:root {
  --bg: #111848;
  --panel: #172458;
  --panel2: #203370;
  --line: #708bd2;
  --muted: #b8c5e7;
  --white: #fffbed;
  --gold: #ffdc52;
  --green: #76dc76;
  --red: #ff6b67;
  --font: 'Courier New', ui-monospace, monospace;
}
body {
  background: #101743;
  color: var(--white);
  font-weight: 700;
  image-rendering: pixelated;
}
button,
input,
select {
  font-family: inherit;
  font-weight: 700;
}
.btn,
.panel,
.modal,
.starter,
.auth-card,
.banner,
.capture-target,
.shop-item,
.dex-entry,
.detail-cell {
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #080c2b;
}
.btn {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #050821;
  background: #2a3c83;
}
.btn.primary {
  background: #f7ce46;
  border-color: #fff3a4;
  color: #271c39;
}
.pill {
  border-radius: 2px;
  border-width: 2px;
}
.pixel {
  image-rendering: pixelated;
}
.brand {
  color: #fff;
}
.brand small {
  color: #8ee5ff;
}
.ball-logo {
  border-color: #ffdb4d;
  border-radius: 0;
  transform: rotate(45deg);
  width: 24px;
  height: 24px;
}
.ball-logo:before {
  border-color: #ffdb4d;
  top: 9px;
}
.ball-logo:after {
  border-radius: 0;
  border-color: #ffdb4d;
  background: #111848;
  left: 6px;
  top: 6px;
}

.home-screen {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: auto;
  display: grid;
  place-items: center;
  background: #120f22 url("/static/game/world/home_page.2b98d4b686f5.png") center/cover fixed no-repeat;
  isolation: isolate;
}
.home-screen:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, #100c1d33 0 20%, #100b1f99 72%, #070610e8 100%),
    linear-gradient(180deg, #08061166, #08061122 58%, #080611aa);
  z-index: -1;
}
.home-screen:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 75%, #ffffff08 75%) 0 0/6px 6px;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}
.home-window {
  text-align: center;
  width: min(650px, 94vw);
  background: linear-gradient(180deg, #15172eea, #0d1028f2);
  border: 4px solid #f4e8bb;
  box-shadow:
    10px 10px 0 #05040c,
    0 0 0 4px #5d345f;
  z-index: 2;
}
.home-window:before,
.home-window:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd94a;
  box-shadow: 2px 2px 0 #5d351f;
  top: 10px;
}
.home-window:before {
  left: 10px;
}
.home-window:after {
  right: 10px;
}
.home-wordmark {
  position: relative;
  display: inline-block;
  margin: 0 auto 5px;
  font-family: Impact, 'Arial Black', sans-serif;
  line-height: 0.95;
  letter-spacing: 1px;
  color: #ffdf47;
  -webkit-text-stroke: 3px #40182e;
  transform: scaleX(1.04);
}
.home-wordmark:after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px #fff0a6;
  transform: translateY(-2px);
  pointer-events: none;
}
.home-tagline {
  color: #8ce7ff;
  text-transform: uppercase;
  margin-top: 8px;
}
.home-version {
  color: #f5be54;
  margin-top: 8px;
  letter-spacing: 2px;
}
.home-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.home-menu-card {
  --menu-accent: #79d8ec;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  overflow: hidden;
  font: 700 10px var(--font);
  text-transform: uppercase;
}
.home-menu-card:before {
  width: 8px;
  height: 8px;
  box-shadow: calc(100% - 8px) 0 0 var(--menu-accent);
}
.home-menu-card:hover:not(:disabled) {
  box-shadow: 6px 6px 0 #05040c;
}
.home-menu-copy strong {
  display: block;
  color: #fff8da;
  font-size: var(--text-md);
  letter-spacing: 0.5px;
}
.home-menu-copy small {
  display: block;
  color: #b8c7ec;
  font-size: var(--text-3xs);
  line-height: 1.45;
  margin-top: 5px;
  text-transform: none;
}
.home-menu-card.journey-card {
  --menu-accent: #ffd84f;
  background: linear-gradient(135deg, #4c3b54, #1a204d);
  border-color: #ffe77c;
}
.home-menu-card.dex-card {
  --menu-accent: #74dcf2;
  background: linear-gradient(135deg, #173a63, #14204b);
}
.home-menu-card.hall-card {
  --menu-accent: #ffc456;
  background: linear-gradient(135deg, #553458, #211b45);
}
.home-menu-card.vault-card {
  --menu-accent: #f286dc;
  background: linear-gradient(135deg, #512c68, #241b4d);
}
.home-menu-card.trade-card {
  --menu-accent: #72d6b2;
  background: linear-gradient(135deg, #244b5a, #182342);
}
.home-menu-card:disabled {
  filter: grayscale(0.55);
  opacity: 0.48;
}
.guest-actions .home-menu-card:nth-last-child(-n + 2) {
  min-height: 70px;
}
.home-premise {
  border-top: 2px solid #674f77;
  border-bottom: 2px solid #674f77;
  margin-top: 10px;
}
.home-premise strong {
  display: block;
  color: #ffdc52;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}
.home-premise p {
  color: #c5cae5;
  line-height: 1.75;
  letter-spacing: 0;
}
.back-home,
.home-back,
.home-recovery {
  background: none;
  border: 0;
  color: #ffdc52;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.home-credit {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: #eee5bd;
  letter-spacing: 2px;
  text-shadow: 2px 2px #000;
}
.home-auth {
  margin: 20px auto 8px;
  text-align: left;
  width: min(360px, 100%);
}
.home-auth .eyebrow {
  display: block;
  text-align: center;
}
.home-auth h2 {
  text-align: center;
  margin: 9px 0 4px;
  color: #fff6d8;
}
.home-back {
  display: block;
  margin: 0 auto 15px;
}
.home-auth .field {
  margin-bottom: 12px;
}
.home-auth .field input {
  border: 2px solid #6576a8;
  border-radius: 0;
  background: #090d20;
  padding: 10px;
  box-shadow: 3px 3px 0 #05040c;
}
.home-auth .form-error {
  font-size: var(--text-xs);
  min-height: 16px;
}
.home-recovery {
  display: block;
  margin: 14px auto 0;
}
.home-window.auth-active .home-premise {
  display: none;
}

.menu-page {
  min-height: 100vh;
}
.menu-top {
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #8197d2;
}
.starter img {
  image-rendering: pixelated;
}
.starter h2 {
  font-size: 18px;
  margin: 8px 0;
}
.team-rail .brand {
  font-size: var(--text-lg);
  margin-bottom: 12px;
}
.team-rail .panel-title {
  color: #91dcff;
  margin: 22px 0 9px;
  font-size: var(--text-xs);
}
.back-home {
  text-align: left;
  padding: 7px 0;
}
.team-rail .member {
  cursor: grab;
}
.team-rail .member:active {
  cursor: grabbing;
}
.member.dragging {
  opacity: 0.35;
}
.member.drop-target {
  border-color: #ffdc52;
  background: #2d4285;
  transform: translateX(3px);
}
.member .drag-grip {
  color: #91a9df;
  font-size: var(--text-lg);
}
.member .pixel {
  width: 44px;
  height: 44px;
}
.member .slot {
  color: #ffdc52;
}
.member h3 {
  font-size: var(--text-md);
}
.empty-ball {
  width: 42px;
  text-align: center;
  color: #7285ba;
}
.game-topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.speed-control {
  display: flex;
  align-items: center;
  padding: 5px;
}
.speed-control > span {
  padding: 0 10px;
}
.speed-chip {
  font: 700 10px var(--font);
  cursor: pointer;
}
.speed-chip:hover {
  background: #72cce8;
  color: #101743;
}
.run-main {
  min-width: 0;
}
.biome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.biome-bar h2 {
  margin-top: 5px;
}
.node-counter {
  padding: 9px;
  font-size: var(--text-sm);
}
.pixel-bush {
  position: absolute;
  left: 20px;
  bottom: 12px;
  width: 59px;
  height: 40px;
  background: #276b3e;
  border: 6px solid #16482f;
  box-shadow:
    11px -10px 0 #3d8a4b,
    27px -5px 0 #276b3e,
    38px 4px 0 #16482f;
}
.pixel-bush i {
  position: absolute;
  left: 17px;
  top: -11px;
  width: 10px;
  height: 10px;
  background: #7bc45d;
  box-shadow: 20px 8px 0 #5cac4f;
}
.bush-node > strong {
  font-size: var(--text-md);
  display: block;
  margin: 3px 0 8px;
}
.bush-node.elite {
  background: #493b6f;
  border-color: #ffd75a;
}
.pixel-building {
  display: grid;
  place-items: center;
  width: 72px;
  height: 64px;
  background: #f0eee0;
  border: 5px solid #294f86;
  color: #d23b4c;
  font-size: 22px;
  box-shadow:
    8px -12px 0 #d95b60,
    8px 0 0 #294f86;
  margin: 14px;
}

.inventory-panel {
  align-self: start;
  color: #38291e;
}
.bag-head {
  display: flex;
  align-items: center;
}
.bag-head > div {
  flex: 1;
}
.bag-head small {
  display: block;
  font-size: var(--text-3xs);
  margin-top: 3px;
}
.bag-head .gold {
  color: #ffe056;
  font-size: var(--text-md);
}
.bag-icon {
  font-size: 21px;
}
.bag-grid {
  display: grid;
}
.bag-slot {
  aspect-ratio: 1;
  border: 3px solid #8b7652;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.bag-slot .pixel {
  width: 47px;
  height: 47px;
}
.bag-slot small {
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bag-stats {
  display: flex;
  color: #fff5c8;
}
.bag-stats strong {
  color: #ffe052;
}
.inventory-panel > p {
  color: #594832;
  margin-top: 9px;
  font-size: var(--text-2xs);
}
.pixel-dialog {
  margin-top: 20px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 17px;
  border: 4px solid #d8e2ff;
  padding: 40px;
}
.pixel-dialog p {
  max-width: 560px;
}
.lab {
  border-radius: 0;
  border-width: 3px;
  box-shadow: 5px 5px 0 #080c2b;
}
.battle-field {
  border: 3px solid #d6e4a0;
  image-rendering: pixelated;
}
.battle-log {
  border-top: 3px solid #8195c8;
  border-bottom: 3px solid #8195c8;
}
.hp {
  border-radius: 0;
  height: 7px;
  border: 1px solid #08102b;
}
.modal {
  border: 4px solid #d8e2ff;
}
.modal-head {
  border-bottom: 4px solid #768dca;
}
.shop-item {
  border: 3px solid #6b83c4;
}
.shop-item-desc {
  color: #dfe6f5;
  font-weight: 600;
}
.wheel,
.wheel:after {
  border-radius: 50% !important;
}
.shop-exit {
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 820px) {
  .team-rail .member {
    min-width: 0;
  }
  .team-rail .member .info {
    display: none;
  }
  .bag-slot {
    min-width: 44px;
  }
  .inventory-panel > p {
    display: none;
  }
}

/* Catch Upgrader: resources, probability and selected defeated Pokémon. */
.modal:has(.upgrader-layout) {
  width: 1240px;
  max-width: 100%;
  max-height: 94vh;
}
.modal:has(.upgrader-layout) .modal-body {
  padding: 16px;
  background: #0e152c;
}
.upgrade-side,
.upgrade-center {
  border: 3px solid #6477a9;
  background: #171e35;
  box-shadow: 4px 4px 0 #050817;
}
.upgrade-side header {
  border-bottom: 2px solid #4b5a83;
  padding-bottom: 13px;
  margin-bottom: 13px;
}
.upgrade-side header h3 {
  font-size: var(--text-xl);
  margin: 7px 0;
}
.upgrade-side header p {
  color: #9faaca;
  line-height: 1.5;
}
.capture-items {
  display: grid;
  gap: 7px;
}
.capture-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  border: 2px solid #47547a;
  background: #11182d;
  color: #abb5d2;
  cursor: default;
}
.capture-item.active,
.capture-item.selected {
  border-color: #e8d64a;
  background: #2b2940;
  color: #fff;
}
.capture-item strong {
  line-height: 1.35;
}
.capture-item small {
  color: #9eda75;
  line-height: 1.4;
}
.capture-item input {
  position: absolute;
  top: 7px;
  right: 7px;
  accent-color: #f2d948;
}
.resource-block {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 2px solid #414e73;
}
.resource-block .investment {
  margin-bottom: 10px;
}
.resource-block .investment .btn {
  font-size: var(--text-2xs);
  padding: 7px;
}
.resource-block .sacrifices {
  max-height: 126px;
}
.resource-block .sacrifice small {
  display: block;
  font-size: 6px;
  color: #8391b4;
  margin-top: 3px;
}
.upgrade-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.upgrade-center > .eyebrow {
  margin-top: 4px;
}
.upgrade-center .wheel-center span,
.upgrade-center .wheel-center small {
  font-size: var(--text-2xs);
  color: #a8b3d0;
  letter-spacing: 1px;
}
.upgrade-center .wheel-center strong {
  color: #d7f34f;
}
.skip-link {
  font: 700 8px var(--font);
  padding: 12px;
  cursor: pointer;
}
.capture-targets {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 420px;
  overflow: auto;
  padding: 2px;
}
.capture-pokemon {
  display: grid;
  align-items: center;
  border: 2px solid #465376;
  background: #10172a;
  cursor: pointer;
  position: relative;
}
.capture-pokemon:hover {
  border-color: #8da0d6;
}
.capture-pokemon.selected {
  border-color: #e7d340;
  background: #29283d;
  box-shadow: 3px 3px 0 #78671d;
}
.capture-pokemon input {
  position: absolute;
  opacity: 0;
}
.capture-pokemon > div {
  text-align: left;
  min-width: 0;
}
.capture-pokemon strong {
  display: block;
  color: #fff;
}
.capture-pokemon small {
  display: block;
  color: #9da9c7;
  margin: 5px 0;
}
.capture-pokemon small .type {
  font-size: 6px;
  padding: 2px 3px;
}
.capture-pokemon b {
  color: #d9ee54;
}
.selected-summary {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e1428;
  border: 2px solid #4b587c;
  padding: 10px;
}
button.select-all-targets {
  display: block;
  width: fit-content;
  margin: 0 0 8px auto;
  font-size: var(--text-xs);
  padding: 5px 9px;
  min-height: 0;
}
.selected-summary strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #ead23e;
  color: #20182e;
  font-size: 14px;
}
.target-side > p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: var(--text-2xs);
}
@media (max-width: 920px) {
  .capture-targets {
    max-height: 300px;
  }
}
@media (max-width: 650px) {
  .modal:has(.upgrader-layout) .modal-body {
    padding: 9px;
  }
}

/* PokeSprite inventory artwork. Keep nearest-neighbor scaling for the 32px sources. */
.item-sprite {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.bag-slot .item-sprite {
  filter: drop-shadow(2px 2px 0 #7a64438c);
}
.shop-item .item-icon {
  width: 54px;
  height: 54px;
  align-self: center;
  filter: drop-shadow(4px 4px 0 #070b18);
}
.capture-item .item-sprite {
  filter: drop-shadow(3px 3px 0 #050817);
}
.route-types {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
}
.route-types .type {
  font-size: 6px;
  padding: 3px 4px;
  border: 1px solid #ffffff55;
}
.bush-node {
  background: #102139e8;
  border-color: #dce9ba;
  backdrop-filter: blur(2px);
}
.bush-node:hover {
  background: #182c49;
}
.bush-node .guaranteed {
  display: block;
  color: #f5dd5a;
  font-size: 6px;
  letter-spacing: 0.7px;
  margin: 2px 0 8px;
}
.bush-node .route-types {
  position: absolute;
  top: 9px;
  right: 8px;
  max-width: 92px;
  justify-content: flex-end;
}
.center-art {
  background: linear-gradient(135deg, #283e73, #15214a);
}
.biome-options .biome-option {
  padding: 0;
  overflow: hidden;
  min-height: 270px;
}
.biome-option-art {
  height: 168px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 3px solid #7185ba;
}
.biome-option-art .route-types {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.biome-option h3,
.biome-option p {
  margin-left: 14px;
  margin-right: 14px;
}
.biome-option h3 {
  margin-top: 13px;
}
.biome-option.locked .biome-option-art {
  filter: grayscale(0.7) brightness(0.55);
}

/* Auto-battle presentation inspired by the readable two-sided Pokémon Showdown field. */
.showdown-battle {
  background: #10182f;
}
.battle-commandbar {
  padding: 15px 18px;
  border-bottom: 3px solid #8199d5;
}
.battle-commandbar h2 {
  margin-top: 6px;
}
.battle-mode {
  background: #f2d34c;
  color: #192247;
  border: 2px solid #fff09b;
  padding: 8px 10px;
  letter-spacing: 1px;
}
.showdown-battle .battle-field {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: #314f45;
  overflow: hidden;
  isolation: isolate;
}
.battle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #07112644, #07112618 46%, #07112699);
  box-shadow: inset 0 0 90px #060b1ccc;
  z-index: 0;
}
.showdown-battle .ally-fighter {
  align-self: end;
  grid-column: 1;
}
.showdown-battle .enemy-fighter {
  align-self: start;
  grid-column: 2;
}
.showdown-battle .nameplate {
  border: 3px solid #fff9d6;
  text-align: left;
}
.showdown-battle .nameplate .row > span {
  font-size: var(--text-xs);
}
.condition {
  float: right;
  background: #d95d62;
  color: #fff;
  padding: 3px 5px;
  font-size: 6px;
}
.showdown-battle .hp {
  height: 12px;
  border: 3px solid #15203b;
  background: #252d3b;
  margin-top: 3px !important;
}
.showdown-battle .hp > span {
  background: #54b968;
}
.showdown-battle .hp.low > span {
  background: #e85c56;
}
.battle-roster {
  position: absolute;
  z-index: 3;
  display: flex;
  background: #0b1328cc;
  border: 2px solid #879bd0;
}
.enemy-roster {
  top: 14px;
  right: 16px;
}
.ally-roster {
  bottom: 14px;
  left: 16px;
}
.battle-event {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 10px;
  background: #111a34d9;
  border: 2px solid #d9e2ff;
  color: #f4dd56;
  letter-spacing: 1px;
}
.battle-console {
  display: grid;
  background: #0a1124;
  border-top: 3px solid #8299d2;
  border-bottom: 3px solid #8299d2;
}
.showdown-battle .battle-log {
  min-height: 145px;
  border: 0;
  padding: 15px 18px;
  background: #0d1730;
  font-size: var(--text-xs);
}
.showdown-battle .battle-log p {
  opacity: 0.55;
  padding: 2px 0;
}
.showdown-battle .battle-log p.current {
  opacity: 1;
  color: #f4df65;
}
.showdown-battle .battle-log p.ability,
.showdown-battle .battle-log p.weather {
  color: #8bd7ff;
}
.battle-progress {
  border-left: 2px solid #425681;
  padding: 16px 12px;
  flex-direction: column;
  justify-content: space-between;
  color: #9fb0d7;
  font-size: var(--text-2xs);
}
.battle-progress span:last-child {
  color: #f4dd58;
  font-size: var(--text-sm);
}
.battle-actions {
  padding: 13px 18px;
}
.wheel.capture-win {
  filter: drop-shadow(0 0 16px #8ee56f);
}
.wheel.capture-loss {
  filter: grayscale(0.45) drop-shadow(0 0 13px #d46868);
}

/* Supplied interface art and richer home shortcuts. */
.ui-sprite {
  display: block;
  image-rendering: pixelated;
  object-fit: contain;
}
.home-menu-card.login-card {
  --menu-accent: #72d9ff;
  background: linear-gradient(135deg, #164462, #182452);
}
.home-menu-card.account-card {
  --menu-accent: #83e4a2;
  background: linear-gradient(135deg, #1b513f, #18264c);
}
.guest-actions .home-menu-card,
.guest-session-actions .home-menu-card {
  min-height: 70px;
}
.bag-icon {
  overflow: hidden;
  border: 2px solid #4c3528;
  display: grid;
  place-items: center;
}
.bag-gold {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #4d3828;
  border: 2px solid #d2a13a;
  color: #ffe25b;
  padding: 5px 7px;
  font-size: var(--text-sm);
}
.bag-gold-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 0;
  filter: drop-shadow(0 1px 1px #000a);
}
.bag-tabs {
  display: grid;
}
.bag-tabs button {
  min-width: 0;
  font: 700 7px var(--font);
}
.bag-tabs button.active {
  transform: translateY(2px);
}
.bag-tabs small {
  display: block;
  margin-top: 3px;
  color: inherit;
}
.resource-gold {
  display: flex;
  align-items: center;
  gap: 4px;
}
.current-location {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: auto;
  background: #16254b;
  border: 4px solid #ffe13f;
  box-shadow:
    0 0 0 3px #573721,
    0 0 16px #ffe13fcc;
  animation: current-node 1.4s steps(2) infinite;
}
.current-location .item-sprite {
  width: 37px;
  height: 37px;
  filter: hue-rotate(325deg) saturate(2.4);
}
@keyframes current-node {
  50% {
    box-shadow:
      0 0 0 3px #573721,
      0 0 25px #ffe13f;
  }
}

/* The supplied global platform is used in every normal and Raid battle. */
.showdown-battle .battle-field {
  background-image: var(--battle-bg);
  background-position: center center;
  background-size: cover;
}
.showdown-battle .battle-overlay {
  background: linear-gradient(180deg, #06091c28, #080c2020 52%, #090b1f6b);
  box-shadow: inset 0 0 65px #05081677;
}

/* Catch Upgrader gauge: red at the starting edge, green as the exact chance rises. */
.upgrade-center {
  border-color: #707887;
}
.upgrade-center .wheel {
  border: 10px solid #161923;
}
.upgrade-center .wheel:after {
  background: radial-gradient(circle, #1b1e27, #101218);
  border: 2px solid #343946;
  box-shadow: inset 0 0 30px #0009;
}
.upgrade-center .pointer {
  top: auto;
  bottom: -13px;
  border-top: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 28px solid #ffda2d;
  filter: drop-shadow(0 0 5px #ff8a22);
}
.upgrade-center .wheel-center strong {
  font-size: 38px;
  text-shadow: 0 0 12px currentColor;
}
.upgrade-center > .btn {
  background: #ffd51f;
  border-color: #fff080;
  color: #211b15;
  box-shadow:
    0 0 18px #ffc51b88,
    5px 5px 0 #08090e;
  padding: 15px;
}
.target-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.target-values em {
  font-style: normal;
  color: #c9d4ef;
  border: 1px solid #46577e;
  background: #0a1125;
  padding: 3px 4px;
}
.home-menu-icon:has(.home-ui-icon) {
  background: #eee9d7;
}

/* Bright expedition interface: compact team, connected map and run HUD. */
.game-shell {
  color: #3e392f;
  position: relative;
  isolation: isolate;
}
.game-shell:before {
  content: '';
  position: fixed;
  inset: 90px 0 auto 0;
  height: 170px;
  z-index: -1;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 10% 58%, #fff 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 17% 50%, #fff 0 9%, transparent 9.5%),
    radial-gradient(ellipse at 25% 62%, #fff 0 7%, transparent 7.5%),
    radial-gradient(ellipse at 76% 48%, #fff 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 84% 61%, #fff 0 11%, transparent 11.5%);
}
.game-shell > div {
  min-width: 0;
}
.back-home {
  color: #4e4a40;
  font-weight: 800;
  border-bottom: 2px solid #aaa38f;
}
.team-rail .member.empty {
  background: #dedacb;
  border-style: dashed;
  opacity: 0.58;
}
.team-rail .member .muted {
  color: #777165;
}
.game-topbar .eyebrow {
  color: #795f1d;
}
.speed-control {
  background: #eeeadd;
  border: 3px solid #2b2a23;
  box-shadow: 3px 3px 0 #6d7169;
}
.speed-control > span {
  color: #5d584e;
}
.speed-chip.active {
  background: #f0ca3a;
  color: #372d17;
}
.run-layout {
  justify-content: center;
}
.biome-bar {
  background: #efecdf;
  border: 3px solid var(--pl-ink);
  box-shadow: 4px 4px 0 #5d625b;
  color: #484238;
}
.biome-bar .eyebrow {
  color: #816410;
}
.node-counter {
  background: #f6f2e5;
  border: 2px solid #343229;
  color: #6b5420;
  box-shadow: 2px 2px 0 #8b897f;
}
.node-board {
  margin-top: 0;
  box-shadow: 5px 5px 0 #50564e;
}
.node-board:before,
.node-board:after {
  width: 26px;
  border-color: #193729;
  opacity: 0.88;
}
.node-links {
  position: absolute;
  z-index: 1;
  overflow: visible;
}
.node-links line {
  vector-effect: non-scaling-stroke;
}
.node-grid {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(8, 1fr);
}
.node-row {
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
}
.node-token {
  font: 800 11px var(--font);
  image-rendering: pixelated;
}
.current-choice {
  grid-template-columns: 53px 1fr;
  align-items: center;
  background: #efecdf;
  border: 3px solid #2e2c24;
  box-shadow: 4px 4px 0 #3f5548;
  color: #403b33;
  cursor: pointer;
  transition: 0.15s;
}
.current-choice:hover {
  transform: translate(-2px, -2px);
  border-color: #f7d93d;
  box-shadow: 6px 6px 0 #3f5548;
}
.node-grass,
.node-event-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.node-event-art > .ui-sprite {
  object-fit: contain;
}
.node-card {
  min-width: 0;
}
.node-card strong {
  display: block;
  line-height: 1.25;
}
.node-card small {
  color: #745c20;
}
.player-position {
  outline: 4px solid #ffdb32;
  animation: node-current 1.1s steps(2) infinite;
}
@keyframes node-current {
  50% {
    outline-color: #fff3a0;
    filter: brightness(1.18);
  }
}
.type {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffffaa;
  font-weight: 800;
  box-shadow: 1px 1px 0 #2d2b2466;
}
.type-sprite {
  place-items: center;
  font-style: normal;
  font-size: var(--text-3xs);
  line-height: 1;
}
.type.flying {
  background: #6d91b5;
}
.type.fighting {
  background: #9d483b;
}
.type.steel {
  background: #697c83;
}
.type.fairy {
  background: #a95f91;
}
.bag-head small {
  color: #746e62;
}
.bag-icon {
  border-color: #2d2b24;
}
.biome-picker {
  background: #efecdf;
  border: 4px solid var(--pl-ink);
  box-shadow: 6px 6px 0 #585d56;
}
.biome-picker > header {
  text-align: center;
  margin-bottom: 20px;
}
.biome-picker h1 {
  margin: 9px 0;
  color: #454037;
}
.biome-picker header p {
  color: #6c675d;
}
.biome-options {
  display: grid;
  gap: 11px;
}
.biome-picker-card {
  position: relative;
  padding: 0;
  background: #ded9ca;
  border: 3px solid #302e26;
  box-shadow: 4px 4px 0 #77766d;
  text-align: left;
  color: #423d35;
  overflow: hidden;
  cursor: pointer;
}
.biome-picker-card:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  border-color: #d6ad20;
  box-shadow: 6px 6px 0 #77766d;
}
.biome-picker-card.locked {
  filter: grayscale(0.75);
  opacity: 0.62;
}
.biome-number {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  background: #282720;
  color: #f1d443;
  padding: 4px 6px;
}
.biome-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.biome-photo .route-types {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
}
.biome-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.biome-copy strong {
  line-height: 1.3;
}
.biome-copy small {
  color: #44704c;
}
.biome-copy span {
  color: #776d5f;
  border-top: 1px solid #999283;
  padding-top: 7px;
}
.biome-picker footer {
  color: #6c675d;
  text-align: center;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 2px solid #aaa390;
}
.pixel-dialog {
  background: #efecdf;
  color: #413c34;
  border-color: var(--pl-ink);
  box-shadow: 5px 5px 0 #555b53;
}
.pixel-dialog p {
  color: #6c665c;
}
.showdown-battle {
  border-color: var(--pl-ink);
  box-shadow: 5px 5px 0 #51564f;
}
.battle-commandbar {
  background: #efecdf;
  border-bottom-color: var(--pl-ink);
  color: #454037;
}
.battle-commandbar .eyebrow {
  color: #7e6212;
}
.battle-console {
  border-color: var(--pl-ink);
}
.battle-actions {
  background: #efecdf;
  color: #5d574d;
}
.showdown-battle .nameplate {
  background: #efecdf;
  color: #302d27;
  border-color: var(--pl-ink);
  box-shadow: 5px 5px 0 #474d47;
}
.menu-page {
  color: #423d35;
}
.menu-top {
  background: #efecdf;
  border-color: var(--pl-ink);
}
.menu-page .brand {
  color: #403b33;
}
.starter {
  color: #403b33;
}
.menu-page .dex-entry,
.menu-page .panel {
  background: #efecdf;
  border-color: var(--pl-ink);
  color: #403b33;
}
.menu-page .muted {
  color: #716b61;
}
@media (max-width: 1100px) {
  .current-choice {
    grid-template-columns: 45px 1fr;
  }
}
@media (max-width: 820px) {
  .inventory-panel {
    order: -1;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .bag-head {
    margin: 0;
  }
  .bag-tabs,
  .bag-grid,
  .bag-stats,
  .bag-help {
    grid-column: 1/-1;
  }
}
.game-shell:before {
  display: none;
}
.menu-page {
  background:
    linear-gradient(#d9eef67d, #7791a67d),
    url("/static/game/world/background.d0bc3c19fb13.png") center/cover fixed no-repeat;
}
.team-rail {
  align-self: start;
}
.boss-distance {
  background: #463d2e;
  color: #ffe273;
  border: 2px solid #27251f;
  box-shadow: 3px 3px 0 #858176;
  text-align: center;
  line-height: 1.4;
}
.bag-icon {
  background: #d8cda9;
}
.bag-icon .ui-sprite {
  object-fit: contain;
  mix-blend-mode: normal;
}
.bag-head-gold {
  display: flex;
  align-items: center;
}
.node-board {
  min-height: 680px;
  max-height: 780px;
  border: 4px solid var(--pl-ink);
  background-position: center;
  background-size: cover;
}
.node-board:before,
.node-board:after {
  display: none;
}
.node-links {
  inset: 28px 24px 72px;
  width: calc(100% - 48px);
  height: calc(100% - 100px);
}
.node-links line {
  stroke: #20352a;
  stroke-width: 2.2;
  stroke-dasharray: 6 5;
  opacity: 0.82;
}
.node-grid {
  inset: 28px 20px 77px;
}
.node-row {
  gap: 2px;
}
.current-choice {
  min-width: 0;
  justify-content: center;
  gap: 1px;
}
.node-grass {
  overflow: visible;
}
.node-grass > .ui-sprite {
  position: absolute;
  left: 1px;
  bottom: 0;
  object-fit: contain;
  z-index: 1;
}
.node-grass > .pixel {
  position: absolute;
  right: -1px;
  top: -3px;
  z-index: 2;
}
.node-event-art {
  border: 0;
  background: transparent;
}
.node-event-art > .ui-sprite {
  mix-blend-mode: normal;
}
.node-event-art.shop > .ui-sprite {
  width: 60px;
  height: 50px;
  object-fit: contain;
}
.node-card strong {
  margin: 1px 0;
}
.node-card small {
  margin-top: 1px;
}
.node-card .route-types {
  justify-content: center;
  gap: 1px;
}
.node-card .type-sprite {
  font-size: 5px;
}
.player-position {
  outline-width: 4px;
  outline-offset: 2px;
}

/* PokéSprite type language and redesigned starter selection. */
.type {
  padding: 3px 6px 3px 4px;
  gap: 4px;
  line-height: 1;
}
.type-sprite {
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  filter: drop-shadow(1px 1px 0 #0005);
}
.type-logo {
  display: inline-grid;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 3px;
  background: #f8f4e7;
  border: 2px solid #3b382f;
  box-shadow: 2px 2px 0 #8d897c;
  color: #403b33;
}
.type-logo img {
  display: block !important;
  object-fit: contain;
}
.type-logo strong {
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.type-logo.grass {
  border-bottom-color: #4fbd52;
}
.type-logo.poison {
  border-bottom-color: #9b69cf;
}
.type-logo.fire {
  border-bottom-color: #ef7938;
}
.type-logo.water {
  border-bottom-color: #4291d9;
}
.type-logo.electric {
  border-bottom-color: #e8c236;
}
.type-logo.ice {
  border-bottom-color: #5fc6c9;
}
.type-logo.flying {
  border-bottom-color: #7f9bd6;
}
.type-logo.psychic {
  border-bottom-color: #e26188;
}
.type-logo.bug {
  border-bottom-color: #91ad1b;
}
.type-logo.rock {
  border-bottom-color: #a8943a;
}
.type-logo.ground {
  border-bottom-color: #c99848;
}
.type-logo.ghost {
  border-bottom-color: #665b9a;
}
.type-logo.dragon {
  border-bottom-color: #6b55bf;
}
.type-logo.fighting {
  border-bottom-color: #c54d3c;
}
.type-logo.normal {
  border-bottom-color: #96958a;
}
.type-logo.fairy {
  border-bottom-color: #d781ad;
}
.type-logo.steel {
  border-bottom-color: #7792a0;
}
.type-logo.dark {
  border-bottom-color: #4c4a52;
}
.brand-home-style {
  gap: 11px;
}
.brand-home-style .ball-logo {
  flex: 0 0 24px;
}
.brand-home-style > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-wordmark {
  position: relative;
  display: inline-block;
  font-family: Impact, 'Arial Black', sans-serif;
  line-height: 0.9;
  letter-spacing: 0.8px;
  color: #ffdc3e;
  -webkit-text-stroke: 1.5px #40182e;
  text-shadow:
    0 2px 0 #f18421,
    0 4px 0 #7b2d25,
    2px 5px 0 #d5d0be;
  transform: scaleX(1.04);
  transform-origin: left center;
}
.brand-wordmark:after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0.6px #fff0a6;
  transform: translateY(-1px);
  pointer-events: none;
}
.brand-home-style small {
  margin-top: 7px;
  color: #287c99 !important;
}
.starter {
  --starter-accent: #8b8b82;
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf7eb 0, #efecdf 69%, #e0dccd 100%);
  border: 3px solid var(--pl-ink);
  box-shadow: 6px 6px 0 #5c615a;
  text-align: left;
}
.starter:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: var(--starter-accent);
  border-bottom: 2px solid var(--pl-ink);
}
.starter:after {
  content: '';
  position: absolute;
  width: 155px;
  height: 155px;
  right: -53px;
  top: 52px;
  border: 20px solid color-mix(in srgb, var(--starter-accent) 16%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.starter .btn {
  position: relative;
  z-index: 1;
  margin-top: 1px;
  background: var(--starter-accent);
  border: 3px solid var(--pl-ink);
  box-shadow: 4px 4px 0 #555850;
  color: #fff;
  text-shadow: 1px 1px 0 #0007;
}
.starter .btn:hover {
  filter: brightness(1.08);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #555850;
}
.starter:hover {
  border-color: var(--pl-ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--starter-accent);
}
@media (max-width: 760px) {
  .menu-top {
    padding: 0 17px;
  }
}

/* Homepage menu: text-first, evenly distributed and free of decorative icons. */
.home-window:not(.auth-active) {
  width: min(570px, 94vw);
}
.home-window:not(.auth-active) .home-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
.home-window:not(.auth-active) .home-menu-card,
.home-window:not(.auth-active) .home-menu-card.wide {
  grid-column: 1;
  display: block;
  text-align: left;
  border-width: 2px;
  box-shadow: 4px 4px 0 #05040c;
}
.home-window:not(.auth-active) .home-menu-copy {
  display: grid;
  align-items: center;
}
.home-window:not(.auth-active) .home-menu-copy strong {
  line-height: 1.25;
}
.home-window:not(.auth-active) .home-menu-copy small {
  margin: 0;
}
.home-window:not(.auth-active) .home-menu-card.journey-card {
  min-height: 64px;
}
.home-window:not(.auth-active) .home-menu-card.journey-card .home-menu-copy strong {
  color: #ffe66a;
}
.home-window:not(.auth-active) .home-premise {
  margin: 12px auto 0;
}

/* 125%-equivalent readability without relying on browser zoom. */
body {
  font-size: 17px;
}
.eyebrow {
  font-size: var(--text-xl);
}
.small {
  font-size: 14px;
}
.btn {
  font-size: 14px;
  padding: 13px 18px;
}
.home-window:not(.auth-active) {
  width: min(650px, 94vw);
}
.home-window:not(.auth-active) .home-actions {
  max-width: 530px;
  margin: 26px auto 22px;
}
.home-window:not(.auth-active) .home-premise {
  max-width: 530px;
  padding: 15px 7px;
}
.home-auth {
  width: min(440px, 100%);
}
.home-auth h2 {
  font-size: 22px;
}
.home-auth .eyebrow,
.home-auth .field,
.home-auth .field input {
  font-size: var(--text-lg);
}
.home-back,
.home-recovery {
  font-size: var(--text-md);
}
.menu-top {
  height: 88px;
}
.menu-page .main {
  padding: 38px 34px;
}
.brand-wordmark {
  font-size: 29px;
}
.starter {
  min-height: 440px;
  grid-template-rows: auto 195px 1fr auto;
}
.type-logo strong {
  font-size: var(--text-md);
}
.starter .btn {
  padding: 15px 9px;
}
.pagehead h1 {
  font-size: 36px;
}
.panel-title {
  font-size: 14px;
}
.collection {
  gap: 16px;
}
.dex-entry {
  padding: 14px;
  font-size: 14px;
}
.dex-entry img {
  width: 108px;
  height: 108px;
}
.banner,
.detail-cell {
  font-size: 14px;
}
.game-topbar .eyebrow {
  font-size: var(--text-lg);
}
.speed-control > span {
  font-size: var(--text-sm);
}
.speed-chip {
  font-size: var(--text-lg);
  padding: 9px;
}
.run-layout {
  grid-template-columns: minmax(600px, 820px) 270px;
  gap: 18px;
}
.biome-bar {
  min-height: 78px;
  padding: 14px 18px;
}
.biome-bar h2 {
  font-size: 20px;
}
.boss-distance {
  max-width: 190px;
  font-size: var(--text-md);
  padding: 9px 12px;
}
.node-card .type {
  font-size: var(--text-3xs);
  padding: 2px 4px;
}
.node-card .type-sprite {
  width: 11px;
  height: 11px;
}
.current-choice {
  padding: 5px;
}
.back-home {
  font-size: var(--text-lg);
}
.team-rail .member > .pixel {
  width: 41px;
  height: 41px;
}
.team-rail .member .small,
.team-rail .member .slot,
.team-rail .drag-grip {
  font-size: var(--text-xs);
}
.bag-icon {
  width: 54px;
  height: 54px;
}
.bag-icon .ui-sprite {
  width: 47px;
  height: 47px;
}
.bag-tabs button small {
  font-size: var(--text-xs);
}
.bag-stats,
.bag-help {
  line-height: 1.55;
}
.biome-picker {
  padding: 29px;
}
.biome-picker h1 {
  font-size: 31px;
}
.biome-picker header p {
  font-size: 14px;
}
.biome-number {
  font-size: var(--text-md);
}
.biome-copy {
  padding: 15px;
  min-height: 135px;
}
.biome-copy strong {
  font-size: 15px;
}
.biome-copy small {
  font-size: var(--text-sm);
}
.biome-copy span {
  font-size: var(--text-xs);
}
.biome-picker footer {
  font-size: var(--text-md);
  line-height: 1.55;
}
.pixel-dialog p {
  font-size: 15px;
  line-height: 1.65;
}
.battle-commandbar h2 {
  font-size: 22px;
}
.battle-commandbar .eyebrow {
  font-size: var(--text-md);
}
.battle-mode,
.battle-event {
  font-size: var(--text-lg);
}
.showdown-battle .nameplate h3 {
  font-size: 15px;
}
.showdown-battle .nameplate,
.battle-actions {
  font-size: var(--text-lg);
}
.battle-log {
  line-height: 1.7;
}
.modal {
  width: min(1120px, 96vw);
}
.modal-head h2 {
  font-size: 27px;
}
.modal-body {
  font-size: 16px;
}
.upgrade-side h3,
.resource-block h3 {
  font-size: 15px;
}
.capture-item strong,
.capture-pokemon strong {
  font-size: var(--text-xl);
}
.investment button {
  font-size: var(--text-xl);
}
.upgrade-center > .btn {
  font-size: 14px;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .back-home {
    border: 0;
  }
  .team-rail .member > .pixel {
    width: 34px;
    height: 34px;
  }
  .run-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 900px) {
  .run-layout {
    grid-template-columns: 1fr;
  }
  .inventory-panel {
    order: -1;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .bag-head {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .starter {
    min-height: 365px;
    grid-template-rows: auto 150px 1fr auto;
  }
}
.biome-photo .type {
  font-size: var(--text-sm);
  padding: 4px 6px;
}
.biome-photo .type-sprite {
  width: 16px;
  height: 16px;
}
.bag-slot small {
  font-size: var(--text-xs);
}
.bag-stats,
.bag-help {
  font-size: var(--text-md);
}
.node-card small {
  font-size: var(--text-xs);
}
.battle-log {
  font-size: 15px;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .team-rail {
    grid-template-columns: 62px 62px minmax(0, 1fr) 120px;
  }
  .team-rail .member.empty .info {
    display: none;
  }
  .team-rail .member.empty {
    justify-content: center;
  }
  .team-rail .member.empty .empty-ball {
    width: auto;
  }
}
@media (max-width: 620px) {
  .biome-photo .type {
    font-size: var(--text-xs);
  }
  .node-card small {
    font-size: var(--text-2xs);
  }
}

/* Internal wordmark and journey outcome. */
.menu-page .brand-home-style {
  gap: 0;
}
.menu-page .brand-wordmark {
  font-size: 31px;
  text-shadow:
    0 2px 0 #f18421,
    0 4px 0 #7b2d25,
    2px 5px 0 #d5d0be;
}
.menu-page .main:has(.outcome) {
  max-width: 1080px;
  padding-top: 48px;
}
.outcome {
  --outcome-accent: #d28a37;
  position: relative;
  margin: 0 auto;
  padding: 0 !important;
  text-align: left !important;
  overflow: hidden;
  background: #efecdf !important;
  border: 4px solid var(--pl-ink) !important;
  box-shadow: 8px 8px 0 #555b53 !important;
  color: #403b33;
}
.outcome:before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: var(--outcome-accent);
  border-bottom: 3px solid var(--pl-ink);
}
.outcome h1 {
  color: #302c27;
  line-height: 1.12;
  letter-spacing: -1px;
}
@media (max-width: 760px) {
  .menu-page .main:has(.outcome) {
    padding: 26px 16px;
  }
  .menu-page .brand-wordmark {
    font-size: 26px;
  }
}

/* Horizontal party HUD and inventory hierarchy. */
.game-shell {
  flex-direction: column;
  min-height: 100vh;
}
.game-topbar {
  height: auto;
  margin: 12px auto 0;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #efecdf;
  border: 3px solid var(--pl-ink);
  box-shadow: 4px 4px 0 #5d625b;
  color: #433f37;
}
.expedition-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 145px;
}
.game-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.run-nav {
  display: flex;
  gap: 7px;
}
.run-nav button {
  min-height: 42px;
  padding: 8px 12px;
  font: 700 10px var(--font);
}
.run-nav button:hover {
  background: #fff5c7;
  transform: translate(-1px, -1px);
}
.run-nav button.danger {
  background: #984b4f;
  color: #fff3df;
  border-color: #452727;
  box-shadow: 3px 3px 0 #482829;
}
.team-rail {
  height: auto;
  background: #ded8c6;
  border: 3px solid var(--pl-ink);
  box-shadow: 4px 4px 0 #5d625b;
  color: #403b33;
}
.team-heading {
  justify-content: center;
}
.team-heading strong {
  letter-spacing: 1px;
  white-space: nowrap;
}
.team-heading span {
  color: #8b6a19;
}
.team-heading small {
  line-height: 1.3;
  color: #736c60;
}
.team-rail .team-list {
  min-width: 0;
  flex: 1;
  overflow-x: auto;
}
.team-rail .member {
  gap: 7px;
  overflow: visible;
  background: #f4f0e3;
  border: 3px solid #302e27;
  color: #433e36;
}
.team-rail .member:hover {
  background: #fff7dd;
}
.team-rail .member.fainted {
  filter: grayscale(0.7);
  opacity: 0.65;
}
.team-rail .team-portrait {
  position: absolute;
  display: grid;
  place-items: center;
  background: #bd3e3f;
  border: 3px solid var(--pl-ink);
  border-radius: 50%;
  overflow: hidden;
}
.team-rail .team-portrait:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  border-top: 3px solid var(--pl-ink);
}
.team-rail .team-portrait .pixel {
  position: relative;
  z-index: 1;
}
.team-rail .member .slot {
  position: absolute;
  right: 5px;
  top: 4px;
  color: #9a7620;
}
.team-rail .drag-grip {
  position: absolute;
  right: 5px;
  bottom: 3px;
  color: #958f81;
}
.team-rail .member .info {
  min-width: 0;
  width: 100%;
}
.member-title,
.member-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.team-rail .member h3 {
  color: #343029;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-title > strong {
  color: #6d675d;
  font-size: var(--text-2xs);
  white-space: nowrap;
}
.member-health {
  color: #8b332f;
}
.team-rail .hp {
  margin-top: 3px;
  border: 2px solid #292a23;
  background: #cbc8ba;
}
.team-rail .hp > span {
  background: #48bd5c;
}
.team-rail .member.add-member {
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #eee9d9;
  border: 3px dashed #777164;
  opacity: 1;
  color: #6b665c;
}
.team-rail .member.add-member:hover {
  border-color: #b28b21;
  color: #8d6711;
  background: #fff5c7;
}
.add-member .empty-ball {
  line-height: 1;
  color: #b28b21;
}
.game-main {
  margin: 0 auto;
}
.run-layout {
  width: 100%;
}
.bag-head > strong {
  font-size: 15px;
  letter-spacing: 1.2px;
}
.bag-head-gold {
  justify-content: center;
}
.bag-head-gold .bag-gold-icon {
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 0;
}
.bag-tabs {
  grid-template-columns: repeat(2, 1fr);
}
.active-passives {
  background: #31473d;
  border: 3px solid #26372f;
  color: #f8edc8;
}
.active-passives header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  border-bottom: 2px solid #769072;
  font-size: var(--text-sm);
  letter-spacing: 0.7px;
}
.active-passives header small {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  background: #f0ca3a;
  color: #3d321e;
  border: 2px solid var(--pl-ink);
}
.passive-list {
  min-height: 59px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
}
.passive-item {
  flex: 0 0 47px;
  min-height: 45px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #e9e1c8;
  color: #4b4033;
  border: 2px solid #a28f65;
  box-shadow: 2px 2px 0 #15231d;
}
.passive-item small {
  max-width: 42px;
  font-size: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passive-empty {
  padding: 8px;
  color: #c0ccb5;
  font-size: var(--text-xs);
}
@media (max-width: 900px) {
  .game-topbar {
    align-items: flex-start;
  }
  .team-heading {
    grid-template-columns: auto auto 1fr;
  }
  .team-heading small {
    text-align: right;
  }
  .bag-tabs,
  .bag-grid,
  .bag-stats,
  .active-passives,
  .bag-help {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .game-top-actions {
    width: 100%;
    align-items: stretch;
  }
  .run-nav {
    justify-content: space-between;
  }
  .speed-control {
    align-self: flex-end;
  }
  .team-heading small {
    text-align: left;
  }
  .active-passives header {
    font-size: var(--text-xs);
  }
}

/* Desktop composition: vertical party rail and aligned journey panels. */
.game-shell {
  display: grid;
  align-items: start;
}
.game-stage {
  min-width: 0;
}
.game-topbar,
.game-main {
  margin-left: auto;
  margin-right: auto;
}
.game-topbar {
  margin-top: 12px;
}
.team-rail {
  position: sticky;
  top: 12px;
  width: auto;
  max-width: none;
  min-height: 0;
  max-height: calc(100vh - 24px);
  margin: 12px 0 12px 14px;
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.team-heading {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border: 0;
  border-bottom: 3px solid #aaa38f;
}
.team-heading small {
  white-space: normal;
}
.team-rail .team-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  overflow: visible;
  padding: 3px 3px 6px 17px;
}
.team-rail .member {
  flex: 0 0 69px;
  width: calc(100% - 17px);
  max-width: none;
  margin-left: 0;
}
.team-rail .member.add-member {
  flex: 0 0 65px;
  align-self: center;
  margin: 1px 0 0 -17px;
}

/* Inventory: quieter frame, clearer title and compact Pokédollar display. */
.inventory-panel {
  padding: 8px;
  background: #bda66f;
  border: 3px solid #49362a;
  box-shadow: 4px 4px 0 #34362f;
}
.bag-head {
  position: relative;
  gap: 8px;
  background: #40352c;
  color: #fff2ca;
  border: 3px solid var(--pl-ink);
  box-shadow: 3px 3px 0 #806b46;
}
.bag-head:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #e7bf3b;
}
.bag-title {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bag-title small {
  font-size: var(--text-3xs);
  letter-spacing: 1.2px;
  color: #cdbd8e;
}
.bag-title strong {
  letter-spacing: 1px;
  color: #fff6d7;
}
.bag-head-gold {
  margin-left: auto;
  background: #292a25;
  border: 2px solid #b48c20;
  color: #f4d349;
}
.bag-tabs {
  gap: 6px;
  padding-top: 9px;
}
.bag-tabs button {
  min-height: 48px;
  padding: 8px 5px;
}
.bag-tabs button.active {
  background: #f3dda0;
  border-color: #5b432d;
  color: #6d3e22;
  box-shadow: inset 0 4px 0 #e3b42f;
}
.bag-tabs button small {
  margin-top: 4px;
}
.bag-grid {
  margin-top: 7px;
  padding: 7px;
  background: #8e774e;
  border: 3px solid #4b382a;
  gap: 5px;
}
.bag-slot {
  background: #ded3ae;
  border-color: #73613f;
  box-shadow:
    inset 3px 3px 0 #f8edc9,
    inset -3px -3px 0 #a18c62;
}
.bag-slot.filled {
  background: #f5e8bd;
}
.bag-stats {
  margin-top: 7px;
  padding: 8px 9px;
  background: #4c3a2d;
  border: 2px solid var(--pl-ink);
}
.active-passives {
  margin-top: 7px;
  box-shadow: 2px 2px 0 #6a5137;
}
.bag-help {
  margin-top: 8px;
  padding: 8px;
  background: #f0ead9;
  border: 2px solid #5b5347;
  color: #574b3e;
}

@media (max-width: 900px) {
  .game-shell {
    display: block;
  }
  .team-rail {
    position: relative;
    top: auto;
    width: calc(100% - 16px);
    max-height: none;
    margin: 8px auto;
    overflow: visible;
    flex-direction: row;
  }
  .team-heading {
    flex: 0 0 145px;
    border-bottom: 0;
    border-right: 3px solid #aaa38f;
  }
  .team-heading small {
    white-space: nowrap;
  }
  .team-rail .team-list {
    width: auto;
    flex: 1;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .team-rail .member {
    flex: 1 0 150px;
    width: auto;
    max-width: 190px;
  }
  .team-rail .member.add-member {
    flex: 0 0 76px;
  }
  .game-top-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }
}
@media (max-width: 620px) {
  .game-topbar {
    flex-direction: column;
  }
  .team-rail {
    flex-direction: column;
  }
  .team-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 3px solid #aaa38f;
  }
  .team-heading small {
    grid-column: 1/-1;
  }
  .team-rail .team-list {
    width: 100%;
  }
}

/* Center the complete expedition HUD as one unit on wide displays. */
.game-shell {
  width: calc(100% - 28px);
  margin: 0 auto;
}
.game-topbar,
.game-main {
  width: calc(100% - 28px);
  max-width: 1108px;
}
.game-topbar {
  min-height: 72px;
}

/* Larger party labels with a subdued dark-gray depth treatment. */
.team-rail .member {
  box-shadow: 4px 4px 0 #555955;
}
.team-rail .team-portrait {
  box-shadow: 3px 3px 0 #555955;
}
.team-rail .team-portrait .pixel {
  filter: drop-shadow(2px 3px 0 #474a47);
}
.team-rail .hp {
  height: 8px;
}
.team-rail .member.add-member {
  box-shadow: none;
}

/* Compact inventory header and empty slots without ordinal labels. */
.bag-head {
  min-height: 48px;
  padding: 6px 7px 6px 11px;
}
.bag-title {
  gap: 0;
}
.bag-title strong {
  font-size: var(--text-lg);
}
.bag-head-gold {
  min-width: 44px;
  padding: 3px 5px;
  gap: 2px;
  font-size: var(--text-xs);
  box-shadow: 1px 1px 0 #171713;
}
.bag-head-gold .bag-gold-icon {
  width: 18px;
  height: 18px;
}
.bag-slot:empty:after {
  content: '';
  width: 5px;
  height: 5px;
  background: #b5a77c;
  opacity: 0.38;
}
.bag-help {
  display: none;
}

@media (max-width: 900px) {
  .game-shell {
    width: 100%;
  }
  .game-topbar,
  .game-main {
    width: calc(100% - 16px);
  }
}

/* The expedition backdrop fills the viewport beyond the centered HUD. */
body:has(.game-shell) {
  background:
    linear-gradient(#d9eef65c, #7791a65c),
    url("/static/game/world/background.d0bc3c19fb13.png") center/cover fixed no-repeat;
}
.game-shell {
  max-width: 1396px;
  grid-template-columns: 260px minmax(0, 1fr);
  background: transparent;
}

/* Use the available party rail space for a larger, clearer status card. */
.team-heading {
  min-height: 88px;
  padding: 13px 10px;
}
.team-heading strong {
  font-size: 17px;
}
.team-heading span {
  font-size: 14px;
}
.team-heading small {
  font-size: var(--text-xs);
}
.team-rail .team-list {
  gap: 12px;
  padding-left: 21px;
}
.team-rail .member {
  height: 88px;
  min-height: 88px;
  flex-basis: 88px;
  padding: 10px 10px 8px 48px;
}
.team-rail .team-portrait {
  left: -32px;
  top: 8px;
  width: 66px;
  height: 66px;
}
.team-rail .team-portrait:after {
  top: 30px;
}
.team-rail .team-portrait .pixel {
  width: 60px;
  height: 60px;
}
.team-rail .member h3 {
  max-width: 108px;
  font-size: var(--text-lg);
}
.team-rail .member-title > strong {
  font-size: var(--text-xs);
}
.member-health {
  margin-top: 9px;
  font-size: var(--text-sm);
}
.member-health > strong {
  font-size: var(--text-md);
}
.team-rail .member .slot,
.team-rail .drag-grip {
  font-size: var(--text-xs);
}
.team-rail .member.add-member {
  width: 88px;
  height: 76px;
  min-height: 76px;
  flex-basis: 76px;
  margin-left: -21px;
}
.add-member .empty-ball {
  font-size: 31px;
}
.add-member small {
  font-size: var(--text-xs);
}

@media (max-width: 900px) {
  .game-shell {
    max-width: none;
    grid-template-columns: none;
  }
  .team-heading {
    min-height: 0;
  }
  .team-rail .team-list {
    padding-left: 22px;
  }
  .team-rail .member {
    height: 78px;
    min-height: 78px;
    flex-basis: 170px;
    padding: 8px 8px 7px 42px;
  }
  .team-rail .team-portrait {
    left: -28px;
    top: 7px;
    width: 58px;
    height: 58px;
  }
  .team-rail .team-portrait:after {
    top: 26px;
  }
  .team-rail .team-portrait .pixel {
    width: 53px;
    height: 53px;
  }
  .team-rail .member h3 {
    max-width: 88px;
    font-size: var(--text-md);
  }
  .team-rail .member.add-member {
    flex-basis: 76px;
    width: 76px;
    height: 68px;
    min-height: 68px;
    margin-left: 0;
  }
}

/* CV and IV remain compact while exposing their exact integer totals. */
.member-health em {
  margin-left: auto;
  padding: 2px 4px;
  background: #4c3a2d;
  color: #ffe052;
  border: 1px solid var(--pl-ink);
  font: 700 8px var(--font);
  font-style: normal;
  white-space: nowrap;
}
.bag-stats {
  justify-content: space-between;
  gap: 8px;
}
.bag-stats > span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.bag-stats strong {
  font-size: var(--text-md);
}
@media (max-width: 900px) {
  .member-health em {
    font-size: var(--text-3xs);
    padding: 1px 3px;
  }
}

/* Explained inventory totals and compact partner dossier. */
.bag-stats > span {
  width: 100%;
  justify-content: flex-start;
}
.bag-stats > span strong {
  margin-left: auto;
}
.stat-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #e2bd3b;
  border-radius: 50%;
  background: #292a25;
  color: #f5d64f;
  font: 700 10px/1 var(--font);
  cursor: help;
  outline-offset: 2px;
}
.stat-help:after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  right: -5px;
  bottom: calc(100% + 8px);
  width: 210px;
  padding: 8px 9px;
  background: #171713;
  color: #fff4cf;
  border: 2px solid #b28a24;
  box-shadow: 3px 3px 0 var(--pl-ink);
  font: 700 9px/1.5 var(--font);
  white-space: normal;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: 0.12s;
}
.stat-help:hover:after,
.stat-help:focus:after {
  opacity: 1;
  transform: translateY(0);
}
.partner-modal {
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 3px solid #7588bb;
  border-radius: 0;
  background: #172934;
  box-shadow: 5px 5px 0 #080d20;
}
.partner-modal .modal-head {
  padding: 13px 17px;
  background: #142630;
  border-bottom: 3px solid #7588bb;
}
.partner-modal .modal-head h2 {
  margin-top: 5px !important;
  font-size: 21px;
}
.partner-modal .modal-head .btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #ccd5eb;
  border-radius: 0;
  box-shadow: 3px 3px 0 #080d20;
}
.partner-modal .modal-body {
  padding: 14px;
}
.partner-sheet {
  display: grid;
  gap: 12px;
}
.partner-summary,
.partner-data {
  border: 2px solid #334b58;
  background: #10202a;
  box-shadow: 3px 3px 0 #0a1022;
}
.partner-summary {
  position: relative;
  flex-direction: column;
}
.partner-number {
  position: absolute;
  color: #e3c547;
  font-size: var(--text-xs);
}
.partner-art {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #273e47, #132530);
}
.partner-art .pixel {
  filter: drop-shadow(4px 5px 0 #090d16a8);
}
.partner-identity {
  width: 100%;
}
.partner-identity p {
  color: #aab6c4;
  font-size: var(--text-md);
}
.partner-types .type {
  font-size: var(--text-2xs);
  padding: 3px 5px;
}
.partner-hp {
  width: 100%;
}
.partner-hp > span {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
}
.partner-hp .hp {
  height: 8px;
  margin-top: 5px;
  border: 1px solid #779184;
  border-radius: 0;
}
.partner-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.partner-traits > div,
.partner-values > div {
  background: #192d37;
  border-left: 4px solid #7588bb;
}
.partner-traits span,
.partner-values span {
  display: block;
  color: #95a7b2;
  font-size: var(--text-2xs);
  letter-spacing: 0.7px;
}
.partner-traits strong,
.partner-values strong {
  display: block;
  margin-top: 5px;
  color: #f2eee0;
  font-size: var(--text-md);
}
.partner-values {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}
.partner-values > div:nth-child(2) {
  border-left-color: #d6b834;
}
.partner-values > div:nth-child(3) {
  border-left-color: #86b76e;
}
.partner-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 8px 0 0;
}
.partner-stat-grid .detail-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  border: 1px solid #2c414c;
  border-radius: 0;
  background: #0d1a23;
}
.partner-stat-grid .detail-cell > span {
  color: #aab7c1;
  font-size: var(--text-xs);
}
.partner-stat-grid .detail-cell > strong {
  color: #f4f0e2;
  font-size: 15px;
}
.partner-stat-grid .detail-cell > small {
  grid-column: 1/-1;
  color: #90a0ae;
  font-size: var(--text-2xs);
}
.partner-note {
  padding: 8px 10px;
  background: #2a3040;
  border-left: 4px solid #d3b83f;
  color: #cad1db;
  font-size: var(--text-xs);
  line-height: 1.45;
}
@media (max-width: 620px) {
  .partner-modal {
    width: calc(100vw - 16px);
  }
  .partner-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner-modal .modal-body {
    padding: 9px;
  }
}

/* Pokédollar notation is always the supplied symbol followed by the amount. */
.money {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.money-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 1px #00000080);
}
.bag-head-gold .money-icon {
  width: 15px;
  height: 15px;
}
.inline-money {
  margin-left: 8px;
}
.button-money .money-icon {
  width: 13px;
  height: 13px;
}
.node-card small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.node-money-separator {
  opacity: 0.55;
}
.node-money .money-icon {
  width: 12px;
  height: 12px;
}
.partner-money .money-icon {
  width: 15px;
  height: 15px;
}
.target-money .money-icon,
.cost-money .money-icon {
  width: 14px;
  height: 14px;
}
.capture-cost-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* The partner summary uses one compact row, eliminating the unused tall column. */
.partner-modal {
  width: min(740px, calc(100vw - 24px));
}
.partner-sheet {
  grid-template-columns: 1fr;
}
.partner-summary {
  display: grid;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
}
.partner-art {
  border: 0;
  border-right: 3px solid #526b76;
}
.partner-identity {
  padding: 0;
}
.partner-identity h2 {
  font-size: 18px;
}
.partner-identity p {
  margin: 3px 0 6px;
}
.partner-hp {
  margin: 0;
}
.partner-data {
  padding: 9px;
}
.partner-traits > div,
.partner-values > div {
  padding: 7px 8px;
}
.partner-stat-grid .detail-cell {
  padding: 7px 8px;
}
.partner-number {
  right: auto;
  left: 8px;
  top: 7px;
  z-index: 2;
}
.partner-note {
  margin-top: 8px;
}

/* Team members can be dropped into the inventory and reserve Pokémon back into the team. */
.inventory-panel.drop-target {
  outline: 4px solid #f0d84d;
  outline-offset: 4px;
  background: #d2ba78;
}
.inventory-panel.drop-target .bag-head:after {
  content: 'SOLTE PARA GUARDAR';
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  background: #292820e8;
  color: #ffe65a;
  font-size: var(--text-sm);
  letter-spacing: 1px;
}
.dragging {
  opacity: 0.45;
}

/* Battle sprites, labels and party markers occupy fixed sides of the arena. */
.showdown-battle .battle-field {
  display: block;
}
.showdown-battle .ally-fighter {
  left: 0;
  bottom: 0;
}
.showdown-battle .enemy-fighter {
  right: 0;
  top: 0;
}
.showdown-battle .ally-fighter > .pixel {
  left: 43%;
  transform: translateX(-50%) scaleX(-1);
}
.showdown-battle .enemy-fighter > .pixel {
  right: 40%;
  transform: translateX(50%);
}
.showdown-battle .nameplate {
  position: absolute;
}
.showdown-battle .ally-fighter .nameplate {
  left: 15px;
}
.showdown-battle .enemy-fighter .nameplate {
  right: 15px;
  margin: 0;
  order: initial;
}
.battle-roster {
  gap: 3px;
  padding: 5px 7px;
}
.party-ball {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.party-ball .battle-ball {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.battle-event {
  top: 48%;
}

/* Pixel-stepped roulette: the scale stays still while its pointer rotates. */
.upgrade-center {
  background: #11182b;
  background-image:
    linear-gradient(90deg, #ffffff08 1px, transparent 1px), linear-gradient(#ffffff08 1px, transparent 1px);
  background-size: 8px 8px;
}
.upgrade-center .wheel-wrap {
  isolation: isolate;
}
.upgrade-center .wheel {
  border-radius: 50% !important;
  clip-path: none;
  box-shadow:
    0 0 0 3px #4f5667,
    0 0 0 8px #090b12,
    0 18px 36px #0009;
}
.upgrade-center .wheel:after {
  border-radius: 50% !important;
  clip-path: none;
}
.pointer {
  position: absolute;
  z-index: 6;
  inset: -10px;
  width: auto;
  height: auto;
  border: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: none;
}
.pointer i {
  position: absolute;
  left: calc(50% - 9px);
  bottom: -4px;
  width: 18px;
  height: 24px;
  background: #ffe049;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(2px 2px 0 #6e4519);
}
.wheel-wrap.spinning .pointer {
  animation: none;
}
.skip-link {
  max-width: 100%;
  line-height: 1.45;
}
.modal:has(.upgrader-layout),
.modal:has(.upgrader-layout) .modal-head,
.modal:has(.upgrader-layout) .modal-body {
  border-radius: 0;
}
.capture-item,
.resource-block .sacrifice,
.selected-summary,
.capture-pokemon,
.investment .btn {
  border-radius: 0;
}
@keyframes pointer-tick {
  50% {
    transform: translateY(3px);
  }
}

/* Final gauge and roster corrections. */
.upgrade-center .wheel-wrap > .pointer {
  position: absolute;
  z-index: 6;
  inset: -10px;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: none;
}
.upgrade-center .wheel-wrap > .pointer > i {
  position: absolute;
  bottom: -4px;
  width: 18px;
  height: 24px;
  background: #ffe049;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(2px 2px 0 #6e4519);
}

/* Detail alignment, thinner Upgrader gauge and unobstructed battle HUD. */
.partner-identity .partner-number {
  position: static;
  color: #e3c547;
  font-size: var(--text-sm);
  vertical-align: middle;
}
.partner-values > div:nth-child(3) > strong {
  display: flex;
  align-items: center;
  min-height: 18px;
}
.partner-values .partner-money {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.upgrade-center .wheel-center {
  inset: 0;
}
.wheel-wrap.spinning .pointer i {
  animation: none;
}
.party-ball .battle-ball {
  filter: saturate(1.5) brightness(0.96) !important;
}
.party-ball.fainted {
  filter: none;
  opacity: 0.55;
}
@keyframes pikachu-dance {
  0% {
    transform: translate(-7px, 1px) rotate(-5deg);
  }
  50% {
    transform: translate(7px, -8px) rotate(5deg);
  }
  100% {
    transform: translate(-7px, 1px) rotate(-5deg);
  }
}

/* Symmetric level gauge, inventory item picker and real frame-based outcome sprite. */
.upgrade-center .wheel {
  border-width: 4px;
}
.upgrade-center .wheel:after {
  inset: 14px;
}
.upgrade-center .wheel-center {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  transform: translate(-50%, -50%);
  text-align: center;
}
.upgrade-center .wheel-wrap > .pointer > i {
  left: 50%;
  transform: translateX(-50%);
}
.roulette-skip-toggle {
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid #53658f;
  background: #0d1428;
  color: #d8e0f4;
  font: 700 10px var(--font);
  cursor: pointer;
}
.roulette-skip-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ffd51f;
}
.bag-slot[role='button'] {
  cursor: pointer;
}
.bag-slot[role='button']:hover,
.bag-slot[role='button']:focus-visible {
  outline: 3px solid #f0cf39;
  outline-offset: 1px;
  filter: brightness(1.08);
}
.item-use-modal {
  width: min(610px, calc(100vw - 24px));
  border: 3px solid #7588bb;
  border-radius: 0;
  background: #172934;
  box-shadow: 5px 5px 0 #080d20;
}
.item-use-modal .modal-head {
  background: #142630;
  border-bottom: 3px solid #7588bb;
}
.item-use-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 2px solid #465679;
  background: #10202a;
  box-shadow: 3px 3px 0 #080d20;
}
.item-use-head .item-icon {
  width: 58px;
  height: 58px;
  image-rendering: pixelated;
}
.item-use-head h3 {
  margin: 4px 0;
  font-size: 17px;
}
.item-use-head p {
  color: #b7c1da;
  font-size: var(--text-md);
}
.item-target-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}
.item-target-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 2px solid #465679;
  background: #ede9d8;
  color: #22252a;
  box-shadow: 3px 3px 0 #080d20;
}
.item-target-card.ineligible {
  opacity: 0.42;
  filter: grayscale(0.4);
}
.item-target-card > .pixel {
  width: 54px;
  height: 54px;
}
.item-target-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.item-target-copy strong {
  font-size: 14px;
}
.item-target-copy span,
.item-target-copy small {
  font-size: var(--text-xs);
  color: #58606b;
}
.item-target-card .btn {
  min-width: 90px;
  border-radius: 0;
  background: #315f9d;
  color: white;
  border-color: #173760;
}
@media (max-width: 520px) {
  .item-target-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .item-target-card > .pixel {
    width: 44px;
    height: 44px;
  }
  .item-target-card .btn {
    grid-column: 1/-1;
    width: 100%;
  }
}

/* Catch Upgrader outcome sectors and clearer selection controls. */
.capture-pokemon {
  grid-template-columns: 32px 70px minmax(0, 1fr);
  min-height: 102px;
  padding: 9px;
  gap: 5px;
}
.capture-pokemon:focus-within {
  outline: 2px solid #68a9ff;
  outline-offset: 2px;
}
.capture-pokemon > .pixel {
  width: 66px;
  height: 66px;
}
.capture-pokemon strong {
  font-size: 14px;
}
.capture-pokemon small {
  line-height: 1.5;
}
.capture-pokemon b {
  display: block;
  margin-top: 3px;
  font-size: var(--text-sm);
}
.sacrifice-block > p {
  line-height: 1.5;
}
.sacrifice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 11px 0 8px;
}
.sacrifice-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  font: 700 10px var(--font);
  cursor: pointer;
}
.sacrifice-tabs button strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: #283450;
  color: #dbe4ff;
}
.sacrifice-tabs button.active {
  border-color: #e6d13f;
  background: #2b2940;
  color: #fff;
}
.sacrifice-tabs button.active strong {
  background: #f0d541;
  color: #211b2c;
}
.resource-block.sacrifice-block .sacrifices {
  margin: 0;
  overflow: auto;
}
.resource-block .sacrifice {
  display: grid;
  grid-template-columns: 24px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  margin-bottom: 6px;
  padding: 7px 8px;
  border: 2px solid #465679;
  background: #0d1428;
  cursor: pointer;
}
.resource-block .sacrifice:hover {
  border-color: #8da0d6;
}
.resource-block .sacrifice.selected {
  border-color: #e5d13e;
  background: #29283d;
  box-shadow: 2px 2px 0 #74631d;
}
.resource-block .sacrifice > input {
  position: absolute;
  opacity: 0;
}
.sacrifice-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #8290b9;
  background: #090f20;
  color: transparent;
  font-size: var(--text-xl);
  font-weight: 900;
}
.sacrifice.selected .sacrifice-check {
  background: #f0d541;
  border-color: #fff2a1;
  color: #1b1c27;
}
.resource-block .sacrifice > .pixel {
  width: 46px;
  height: 46px;
}
.sacrifice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.sacrifice-copy > strong {
  font-size: var(--text-lg);
  color: #f4f2e6;
}
.resource-block .sacrifice .sacrifice-copy small {
  margin: 0;
  font-size: var(--text-xs);
  color: #aab6d4;
}
.sacrifice-copy em {
  font: normal 8px var(--font);
  color: #7888ad;
}
.resource-block .sacrifice > b {
  color: #ffe34e;
  font-size: var(--text-md);
  white-space: nowrap;
}
.empty-sacrifices {
  padding: 18px 10px;
  border: 2px dashed #465679;
  color: #96a4c6;
  text-align: center;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.sacrifice-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
  padding: 7px 9px;
  border: 2px solid #39486e;
  background: #10172b;
  color: #aebbd9;
  font-size: var(--text-xs);
}
.sacrifice-summary span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sacrifice-summary span b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  background: #e6d13f;
  color: #20192b;
}
.sacrifice-summary > strong {
  color: #ffe34e;
  font-size: var(--text-md);
}
.capture-formula {
  margin-top: 14px;
  padding: 11px;
  border: 2px solid #465679;
  background: #10172b;
}
.capture-formula h3 {
  margin-bottom: 8px;
  color: #ffe34e;
  font-size: var(--text-md);
}
.capture-formula dl {
  display: grid;
  gap: 7px;
  margin: 0;
}
.capture-formula dl > div {
  display: grid;
  gap: 8px;
  align-items: start;
}
.capture-formula dt {
  color: #eef2ff;
  font-size: var(--text-xs);
  font-weight: 800;
}
.capture-formula dd {
  margin: 0;
  color: #aebbd9;
  line-height: 1.45;
}
.capture-formula > p {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #465679;
  color: #d6ddf1;
  font-size: var(--text-xs);
  line-height: 1.5;
}
.upgrade-center > .btn + .skip-link {
  margin-top: 12px;
}
.skip-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.skip-link:hover {
  background: #51351b;
  border-color: #ffe36b;
  color: #fff0a1;
}
.skip-money-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

/* Clear feedback, balanced party cards and a more compact journey result. */
#toast.toast {
  width: min(390px, calc(100vw - 28px));
  max-width: none;
}
@keyframes toast-arrive {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
@media (min-width: 901px) {
  .team-rail .team-list {
    align-items: center;
    padding: 3px 0 6px;
  }
  .team-rail .member {
    width: calc(100% - 44px);
    margin-left: 28px;
    align-self: center;
  }
  .team-rail .member.add-member {
    margin-left: 0;
    align-self: center;
  }
}
.biome-picker > header > .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  background: #3a3730;
  border-left: 5px solid #d28a37;
  color: #ffe36b;
  text-shadow: 1px 1px 0 #171713;
  font-size: var(--text-md);
  font-weight: 900;
}
.menu-page .main:has(.outcome) {
  max-width: 920px;
  padding-top: 26px;
}
.outcome {
  max-width: 840px;
}
.outcome h1 {
  margin: 13px 0 10px !important;
}

/* Battle Pokémon reveal their individual data on hover. */
.battle-pokemon-tooltip {
  position: absolute;
  z-index: 12;
  width: 230px;
  padding: 10px;
  border: 3px solid var(--pl-ink);
  background: #efecdf;
  color: #373229;
  box-shadow: 5px 5px 0 #090f28;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: 0.12s;
  pointer-events: none;
  text-align: left;
}
.ally-fighter .battle-pokemon-tooltip {
  left: 50%;
  bottom: 285px;
}
.enemy-fighter .battle-pokemon-tooltip {
  right: 50%;
  top: 112px;
}
.battle-pokemon-tooltip header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid #8b8372;
  padding-bottom: 6px;
}
.battle-pokemon-tooltip header strong {
  font-size: var(--text-md);
}
.battle-pokemon-tooltip header span,
.battle-pokemon-tooltip footer {
  color: #8d6514;
  font-size: var(--text-xs);
  font-weight: 900;
}
.battle-pokemon-tooltip p {
  margin: 6px 0;
  color: #665f54;
  font-size: var(--text-2xs);
}
.battle-pokemon-tooltip > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.battle-pokemon-tooltip > div span {
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: #d9d3c3;
  border: 1px solid #8b8372;
}
.battle-pokemon-tooltip small {
  font-size: var(--text-3xs);
  color: #696156;
}
.battle-pokemon-tooltip b {
  margin-top: 2px;
  font-size: var(--text-xs);
}
.battle-pokemon-tooltip footer {
  margin-top: 6px;
  text-align: right;
}

/* Catch Upgrader: three guided steps with details available on demand. */
.modal:has(.upgrader-layout) .modal-body {
  padding: 12px;
}
.upgrader-layout {
  grid-template-columns: minmax(300px, 1.03fr) minmax(270px, 0.84fr) minmax(300px, 1fr);
  gap: 10px;
  min-height: 540px;
}
.upgrade-side,
.upgrade-center {
  padding: 13px;
}
.upgrader-step-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding-bottom: 11px !important;
  margin-bottom: 10px !important;
}
.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #f0d541;
  border: 3px solid #fff1a0;
  box-shadow: 3px 3px 0 #070914;
  color: #1e1c27;
  font-size: var(--text-xl);
  font-weight: 900;
}
.upgrader-step-head .eyebrow {
  font-size: var(--text-xs);
}
.upgrader-step-head h3 {
  margin: 4px 0 !important;
  font-size: var(--text-xl) !important;
}
.upgrader-step-head p {
  font-size: var(--text-sm) !important;
  line-height: 1.45 !important;
}
.resource-block.resource-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.resource-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.resource-title h3 {
  margin: 0;
}
.resource-title .stat-help {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}
.capture-items {
  margin-top: 8px;
}
.capture-item {
  min-height: 74px;
  padding: 6px;
}
.capture-item .item-sprite {
  width: 32px;
  height: 32px;
}
.gold-block > p {
  margin-top: 7px;
}
.gold-block .investment {
  display: grid;
  gap: 5px;
  margin: 9px 0;
}
.gold-block .investment .btn {
  min-width: 0;
  padding: 7px 3px;
}
.capture-cost-line {
  justify-content: space-between;
  margin: 0;
  padding: 7px 9px;
  background: #0d1428;
  border: 2px solid #3f4e76;
}
.upgrade-center-title {
  margin-top: 7px;
  color: #eef2ff;
  font-size: var(--text-xl);
}
.upgrade-center > .btn {
  margin-top: 12px;
}
.capture-help {
  margin-top: 10px;
  border: 2px solid #465679;
  background: #10172b;
}
.capture-help summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #ffe34e;
  font-size: var(--text-sm);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.capture-help summary::-webkit-details-marker {
  display: none;
}
.capture-help summary > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #f0d541;
  color: #1c1b26;
}
.capture-help[open] summary {
  border-bottom: 2px solid #465679;
}
.capture-help .capture-formula {
  margin: 0;
  border: 0;
  background: transparent;
}
.capture-formula dd {
  font-size: var(--text-2xs);
}
.target-side .capture-targets {
  max-height: 330px;
  overflow: auto;
}
.target-side .selected-summary {
  margin-top: 8px;
}

/* In-game confirmation replaces the browser's generic abandon prompt. */
.abandon-modal {
  width: min(520px, calc(100vw - 24px));
  border: 4px solid #d8e2ff;
  border-radius: 0;
  background: #172934;
  box-shadow: 7px 7px 0 #080d20;
}
.abandon-modal .modal-head {
  padding: 15px 18px;
  background: #142630;
  border-bottom: 4px solid #7588bb;
}
.abandon-modal .modal-body {
  padding: 18px;
}
.abandon-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 18px 4px;
}
.abandon-flag {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #974a4e;
  border: 4px solid #f2c3b4;
  box-shadow: 4px 4px 0 #080d20;
  color: #fff5df;
  font-size: 30px;
}
.abandon-sheet h3 {
  margin-top: 17px;
  color: #fff2d1;
  font-size: 18px;
}
.abandon-sheet p {
  max-width: 410px;
  margin-top: 10px;
  color: #bcc8df;
  font-size: var(--text-md);
  line-height: 1.65;
}
.abandon-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.abandon-actions .btn {
  border-radius: 0;
  min-height: 46px;
}
.abandon-actions .danger {
  background: #974a4e;
  border: 2px solid #f2c3b4;
  color: #fff5df;
  box-shadow: 3px 3px 0 #080d20;
}
.abandon-actions .danger:hover {
  background: #b75759;
}
@media (max-width: 920px) {
  .upgrader-layout {
    grid-template-columns: 1fr 1fr;
  }
  .upgrade-center {
    grid-row: 1/3;
    grid-column: 2;
  }
  .target-side {
    grid-column: 1;
  }
  .battle-pokemon-tooltip {
    width: 205px;
  }
  .outcome {
    max-width: calc(100vw - 32px);
  }
}

/* Wordmark pokeball icons (menu top bar + home title). */
.brand-home-style .ball-logo {
  object-fit: contain;
  filter: drop-shadow(2px 2px 0 #0007);
}

/* Catch Upgrader simplification: gold-first flow, collapsible optional sacrifice offer, single-target summary card. */
.sacrifice-block {
  cursor: default;
}
.sacrifice-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.sacrifice-block > summary::-webkit-details-marker {
  display: none;
}
.sacrifice-block > summary:after {
  content: '▾';
  margin-left: auto;
  color: #8591b2;
  font-size: var(--text-md);
  transition: transform 0.15s;
}
.sacrifice-block[open] > summary:after {
  transform: rotate(180deg);
}
.optional-tag {
  margin-left: 7px;
  padding: 2px 5px;
  background: #2b3455;
  border: 1px solid #4b587c;
  color: #9faaca;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.sacrifice-block > p,
.sacrifice-block > .sacrifice-tabs,
.sacrifice-block > .sacrifices,
.sacrifice-block > .sacrifice-summary {
  margin-top: 9px;
}
.capture-pokemon.single {
  grid-template-columns: 70px minmax(0, 1fr);
  cursor: default;
}
.capture-pokemon.single:hover {
  border-color: #465376;
}

/* Free-form gold slider replacing fixed presets, and the new coin pokedollar icon. */
.gold-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.gold-slider-row input[type='range'] {
  flex: 1;
  accent-color: #f0d541;
  height: 6px;
  cursor: pointer;
  background: transparent;
}
.gold-slider-row input[type='range']:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gold-slider-value {
  flex: 0 0 auto;
  min-width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1428;
  border: 2px solid #3f4e76;
  padding: 6px 8px;
  color: #ffe34e;
  font-size: var(--text-md);
}

/* Phone-first composition (modal/battle rules). */
.modal:has(.upgrader-layout) .modal-body {
  padding: 9px;
}
.upgrader-layout {
  flex-direction: column;
}
.upgrade-center {
  order: -1;
}
.upgrade-center .wheel-wrap {
  margin: 20px auto;
}
.capture-items {
  grid-template-columns: repeat(2, 1fr);
}
.showdown-battle .battle-field {
  height: 410px;
  min-height: 410px;
  padding: 24px 8px;
}
.showdown-battle .nameplate {
  padding: 7px;
}
.battle-console {
  grid-template-columns: 1fr;
}
.battle-progress {
  display: none;
}
.bag-tabs button {
  font-size: 6px;
}
.partner-summary {
  grid-template-columns: 82px 1fr;
}
.partner-art {
  grid-row: auto;
  width: 78px;
  height: 74px;
}
.partner-art .pixel {
  width: 70px;
  height: 70px;
}
.partner-hp {
  grid-column: 1/-1;
  border-left: 0;
  border-top: 2px solid #334b58;
  padding: 8px 0 0;
}
.partner-values {
  grid-template-columns: 1fr;
}
.showdown-battle .nameplate {
  width: 94%;
}
.showdown-battle .ally-fighter > .pixel {
  bottom: 135px;
}
.showdown-battle .enemy-fighter > .pixel {
  top: 145px;
}
.showdown-battle .ally-fighter .nameplate {
  bottom: 48px;
}
.showdown-battle .enemy-fighter .nameplate {
  top: 50px;
}
.capture-formula dl > div {
  grid-template-columns: 70px 1fr;
}
.resource-block.sacrifice-block .sacrifices {
  max-height: 240px;
}
.upgrader-layout {
  display: flex;
}
.upgrade-center .wheel-wrap {
  width: 215px;
  height: 215px;
}
.gold-block .investment {
  grid-template-columns: repeat(2, 1fr);
}
.battle-pokemon-tooltip {
  display: none;
}
.abandon-actions {
  grid-template-columns: 1fr;
}
.outcome h1 {
  font-size: 27px !important;
}
.home-window h1 {
  font-size: 31px;
}
.speed-control > span {
  display: none;
}
.game-main {
  padding: 12px;
}
.run-layout {
  display: block;
}
.inventory-panel {
  margin-bottom: 16px;
}
.collection {
  grid-template-columns: repeat(3, 1fr);
}
.home-screen {
  padding: 18px 10px 42px;
  background-attachment: scroll;
}
.home-window {
  padding: 25px 18px 20px;
}
.home-wordmark {
  font-size: 39px;
  -webkit-text-stroke-width: 2px;
  text-shadow:
    0 3px 0 #f18421,
    0 6px 0 #7b2d25,
    3px 8px 0 #05040c;
}
.home-tagline {
  letter-spacing: 3px;
}
.home-actions {
  grid-template-columns: 1fr;
  margin: 18px auto 15px;
}
.home-menu-card,
.home-menu-card.wide {
  grid-column: 1;
  min-height: 70px;
}
.home-premise {
  padding: 12px 2px;
}
.home-credit {
  bottom: 12px;
}
.team-rail .team-list {
  grid-template-columns: repeat(3, 1fr);
}
.inventory-panel {
  display: block;
}
.bag-grid {
  grid-template-columns: repeat(5, 1fr);
}
.biome-options {
  grid-template-columns: 1fr;
}
.biome-photo {
  height: 165px;
}
.node-board {
  height: 720px;
}
.current-choice {
  width: 94px;
  display: flex;
  flex-direction: column;
}
.current-choice .node-card small,
.current-choice .node-card .type-sprite {
  display: none;
}
.node-card {
  text-align: center;
}
.node-card strong {
  font-size: 6px;
}
.node-grid {
  left: 10px;
  right: 10px;
}
.node-row {
  grid-template-columns: 15px repeat(var(--nodes), minmax(0, 1fr));
}
.current-choice {
  max-width: 72px;
  min-height: 74px;
}
.node-grass {
  width: 42px;
  height: 40px;
}
.node-grass > .pixel {
  width: 38px;
  height: 38px;
}
.node-grass > .ui-sprite {
  width: 26px;
  height: 26px;
}
.node-event-art,
.node-event-art > .ui-sprite {
  width: 40px;
  height: 40px;
}
.node-card small {
  white-space: normal;
}
.home-menu-card {
  grid-template-columns: 42px 1fr 14px;
}
.type {
  font-size: var(--text-3xs);
}
.type-sprite {
  width: 13px;
  height: 13px;
}
.type-logo {
  grid-template-columns: 29px auto;
  min-height: 34px;
}
.type-logo img {
  width: 29px !important;
  height: 29px !important;
}
.starter {
  padding: 13px 14px 15px;
}
.starter .btn {
  font-size: var(--text-3xs);
}
.brand-home-style .ball-logo {
  width: 18px;
  height: 18px;
}
.brand-home-style small {
  font-size: 6px !important;
  letter-spacing: 1.6px !important;
}
.home-window:not(.auth-active) {
  padding: 26px 18px 22px;
}
.home-window:not(.auth-active) .home-wordmark {
  font-size: 39px;
}
.home-window:not(.auth-active) .home-actions {
  gap: 7px;
  margin-top: 18px;
}
.home-window:not(.auth-active) .home-menu-card,
.home-window:not(.auth-active) .home-menu-card.wide {
  min-height: 60px;
  padding: 10px 15px 10px 17px;
}
.home-window:not(.auth-active) .home-menu-copy {
  grid-template-columns: 1fr;
  gap: 4px;
}
.home-window:not(.auth-active) .home-menu-copy small {
  padding: 0;
  border: 0;
}

/* Readability pass for the pinned phone layout (home + capture modal). */
.home-premise p {
  font-size: var(--text-md);
}
.home-premise strong {
  font-size: var(--text-lg);
}
.home-credit {
  font-size: var(--text-sm);
}
.upgrade-side header p,
.resource-block p,
.selected-summary,
.capture-pokemon small,
.sacrifice,
.target-values em {
  font-size: var(--text-md);
}
.capture-item small {
  font-size: var(--text-xs);
}
.optional-tag {
  font-size: var(--text-sm);
}
.skip-link {
  font-size: var(--text-md);
}
.wheel-center span,
.wheel-center small {
  font-size: var(--text-sm);
}

/* Final readability pass: must match the specificity of the lifted phone rules to win. */
.home-window:not(.auth-active) .home-premise p {
  font-size: var(--text-md);
  line-height: 1.7;
}
.home-window:not(.auth-active) .home-premise strong {
  font-size: var(--text-lg);
}
.home-window:not(.auth-active) .home-menu-copy strong {
  font-size: var(--text-xl);
}
.home-window:not(.auth-active) .home-menu-copy small {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.home-tagline {
  font-size: var(--text-md);
}
.home-version {
  font-size: var(--text-sm);
}

.evolution-fx .btn {
  padding: 9px 12px;
  font-size: var(--text-md);
}
.biome-copy .biome-rarity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.biome-copy .biome-rarity .rarity-dot {
  margin: 0;
}
.biome-unlock-items {
  margin-top: 8px;
}
.biome-unlock-items span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: var(--text-2xs);
  color: #8d8874;
}
.biome-unlock-items img {
  width: 22px;
  height: 22px;
}
.modal.evolution-modal {
  width: min(320px, calc(100% - 20px));
}
.evolution-modal .modal-head {
  padding: 12px 14px;
}
.evolution-modal .modal-head h2 {
  margin-top: 4px !important;
}
.evolution-modal .eyebrow {
  font-size: var(--text-xs);
}
.evolution-modal .modal-body {
  padding: 0;
}
.evolution-fx {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.evolution-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}
.evolution-sprite {
  object-fit: contain;
  position: relative;
  z-index: 2;
  image-rendering: pixelated;
}
.evolution-stage.evo-flashing .evolution-sprite {
  opacity: 0;
}
.evolution-stage.evo-flashing:before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, #fff 0%, #fff 38%, #ffe8a3b0 58%, transparent 74%);
  border-radius: 50%;
  animation: evo-flash-pop 0.55s ease-out forwards;
  z-index: 3;
}
.evolution-sprite.evo-reveal {
  animation: evo-reveal-pop 0.5s ease-out;
}
.evolution-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.evolution-sparkles i {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff8d6;
  box-shadow: 0 0 6px 2px #ffe9a3;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.evolution-sparkles i:nth-child(1) {
  --a: 0deg;
}
.evolution-sparkles i:nth-child(2) {
  --a: 30deg;
}
.evolution-sparkles i:nth-child(3) {
  --a: 60deg;
}
.evolution-sparkles i:nth-child(4) {
  --a: 90deg;
}
.evolution-sparkles i:nth-child(5) {
  --a: 120deg;
}
.evolution-sparkles i:nth-child(6) {
  --a: 150deg;
}
.evolution-sparkles i:nth-child(7) {
  --a: 180deg;
}
.evolution-sparkles i:nth-child(8) {
  --a: 210deg;
}
.evolution-sparkles i:nth-child(9) {
  --a: 240deg;
}
.evolution-sparkles i:nth-child(10) {
  --a: 270deg;
}
.evolution-sparkles i:nth-child(11) {
  --a: 300deg;
}
.evolution-sparkles i:nth-child(12) {
  --a: 330deg;
}
.evolution-sparkles i:nth-child(even) {
  animation-delay: 0.06s !important;
}
.evolution-title {
  color: #ffe58c;
  font-weight: 900;
}
@keyframes evo-strobe {
  0%,
  49% {
    filter: brightness(0) invert(1) drop-shadow(0 0 6px #fff);
  }
  50%,
  100% {
    filter: brightness(1.5) saturate(1.4);
  }
}
@keyframes evo-flash-pop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  55% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
@keyframes evo-reveal-pop {
  0% {
    transform: scale(0.5);
    filter: brightness(2.4);
  }
  55% {
    transform: scale(1.12);
    filter: brightness(1.3);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes evo-sparkle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-38px) scale(0.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .evolution-stage.evo-charging .evolution-sprite,
  .evolution-sprite.evo-reveal,
  .evolution-stage.evo-flashing:before,
  .evolution-stage.evo-reveal .evolution-sparkles i {
    animation: none;
  }
}

.modal:has(.shop-grid) {
  width: min(760px, calc(100% - 20px));
}
.shop-tabs {
  margin-bottom: 10px;
}
.shop-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.shop-item {
  padding: 9px;
  gap: 5px;
}
.shop-item .item-sprite {
  width: 24px;
  height: 24px;
}
.shop-item h3 {
  font-size: var(--text-sm);
  line-height: 1.25;
}
.shop-item-desc {
  font-size: var(--text-2xs);
  line-height: 1.35;
}
.shop-item p {
  font-size: var(--text-2xs);
  line-height: 1.3;
}
.shop-item .btn {
  font-size: var(--text-xs);
  padding: 6px 3px;
}
@media (max-width: 650px) {
  .modal:has(.shop-grid) {
    width: calc(100% - 16px);
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.member-item-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  background: #0d1428;
  border: 2px solid #f0d541;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  overflow: hidden;
}
.member-item-badge img {
  width: 11px;
  height: 11px;
  object-fit: contain;
}
.partner-traits .btn {
  margin-top: 6px;
  padding: 5px 9px;
  font-size: var(--text-2xs);
}
.shiny-collection .dex-entry.owned {
  border-color: #e8c44a;
  box-shadow: 0 0 12px #e8c44a44;
  background: linear-gradient(#26314a, #171f33);
}
.shiny-collection .dex-entry.owned strong {
  color: #ffe58c;
}
.shiny-collection .dex-entry.unknown img {
  filter: none;
  opacity: 0.5;
}
.shiny-collection .dex-entry.unknown strong {
  color: #8fa3bd;
}

.pc-page {
  display: grid;
  gap: 16px;
}
.pc-team {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.pc-slot {
  min-width: 0;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #081a30;
  border: 1px solid #496b88;
  color: #e5efff;
}
.pc-slot img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pc-card {
  padding: 10px;
  background: #0c263f;
  border: 1px solid #496b88;
  display: grid;
  gap: 8px;
  align-content: start;
}
.pc-card.selected {
  border-color: #ffe27a;
}
.pc-pokemon {
  border: 0;
  background: none;
  color: #e5efff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pc-pokemon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.pc-card .btn {
  font-size: 10px;
  white-space: normal;
}
.pc-info {
  max-width: 500px;
}
.pc-info header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pc-info header img {
  width: 96px;
  height: 96px;
}
#poke-tip:has(.pc-info) {
  max-height: calc(100vh - 16px);
  overflow: auto;
}
@media (max-width: 600px) {
  .pc-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rank-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
