/* activity/styles.css */
@font-face {
  font-family: Emerald;
  src: url(/assets/ui/fonts/pokemon-emerald-pro.ttf) format("truetype");
  font-display: block;
}
:root {
  --ink:#f8f8f3;
  --shadow:#282431;
  --panel:#34303f;
  --accent:#ffe094;
  --hp:#70e0a0;
  --font:Emerald,monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #17151d;
}
body,
button {
  font-family: var(--font);
  font-weight: normal;
}
button {
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus {
  outline: none;
}
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
#game {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 1600px;
  margin: auto;
  isolation: isolate;
  overflow: hidden;
  font-size: clamp(20px, 2.75vw, 40px);
  color: var(--ink);
  text-shadow: 2px 2px var(--shadow);
}
.pixel {
  image-rendering: pixelated;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.playfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.arena {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.terrain {
  position: absolute;
  left: 0;
  top: 26.666%;
  width: 100%;
  height: 73.334%;
  object-fit: fill;
}
.location-label {
  position: absolute;
  left: 3%;
  top: 2%;
  font-size: .62em;
  letter-spacing: .04em;
}
.location-label span {
  opacity: .85;
}
.turn-label {
  position: absolute;
  right: 11%;
  top: 2%;
  font-size: .62em;
}
.corner-tools {
  position: absolute;
  right: 2%;
  top: 1.5%;
  display: flex;
  gap: 8px;
  z-index: 8;
  font-size: 24px;
}
.choice {
  position: relative;
  border: 0;
  background: transparent;
  padding: .15em .3em .15em 1em;
  text-align: left;
  line-height: 1.08;
  min-height: 44px;
  text-shadow: 2px 2px var(--shadow);
  white-space: nowrap;
}
.choice .pointer {
  position: absolute;
  left: .03em;
  top: .24em;
  font-size: .55em;
  opacity: 0;
}
.choice:hover .pointer,
.choice:focus-visible .pointer,
.choice.selected .pointer {
  opacity: 1;
}
.choice:hover,
.choice:focus-visible {
  color: var(--accent);
}
.tool {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0;
  background: #2d2937c9;
  border: 2px solid #e0ded5b0;
  line-height: 1;
}
.tool .pointer {
  display: none;
}
.sound-tool {
  font-family: monospace;
  font-size: 21px;
}
.enemy-pokemon {
  position: absolute;
  width: 24%;
  height: 35%;
  left: 55%;
  top: 19%;
  object-position: bottom;
}
.player-pokemon {
  position: absolute;
  width: 32%;
  height: 44%;
  left: 16%;
  top: 37%;
  object-position: bottom;
}
.health {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
  font-size: .78em;
  line-height: 1;
  color: #fff;
  text-shadow: 2px 2px #383342;
}
.enemy-health {
  top: 10%;
  left: 3%;
  width: 39%;
  aspect-ratio: 130/31;
  background-image: url(/assets/ui/pbinfo_enemy_mini.png);
  padding: 1.7% 3.4% 1.1% 4.2%;
}
.player-health {
  right: 2%;
  bottom: 25%;
  width: 40%;
  aspect-ratio: 130/42;
  background-image: url(/assets/ui/pbinfo_player_mini.png);
  padding: 1.4% 2.8% 1.2% 5%;
}
.pokemon-name {
  white-space: nowrap;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: .25em;
}
.gender {
  color: #9ccdf2;
  font-family: monospace;
  font-size: .65em;
}
.level {
  margin-left: auto;
  font-size: .82em;
}
.health-meter {
  display: flex;
  gap: .25em;
  align-items: center;
  justify-content: flex-end;
  margin-top: .28em;
  font-size: .7em;
  line-height: 1;
}
.health-meter > span {
  color: #ffda6b;
  text-shadow: 1px 1px #342936;
}
.hp-well {
  width: 68%;
  height: .45em;
  background: #24212d;
  border-bottom: 2px solid #dedbd8;
  overflow: hidden;
}
.hp-well i {
  display: block;
  background: var(--hp);
  height: 100%;
  border-top: 2px solid #b6f9b6;
  transition: width .35s steps(8);
}
.hp-number {
  text-align: right;
  font-size: .88em;
  margin-top: .16em;
}
.party-dots {
  display: flex;
  gap: .28em;
  margin-top: .25em;
  margin-left: 4%;
}
.party-dots i {
  width: .34em;
  height: .34em;
  background:
    linear-gradient(
      #e77f7f 0 40%,
      #302b3c 40% 57%,
      #eee7d9 57%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #282235;
}
.party-dots .empty {
  opacity: .35;
}
.game-window {
  background-color: var(--panel);
  border: 4px solid #dedbcf;
  box-shadow: 0 0 0 3px #26232d, inset 0 0 0 2px #736a7e;
  position: relative;
}
.battle-console {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  display: flex;
  border: 0;
  box-shadow: none;
  background-image: url(/assets/ui/bg.png);
  background-size: 100% 500%;
  background-position: center bottom;
  image-rendering: pixelated;
  padding: 2% 2.5%;
}
.dialogue-text {
  flex: 1;
  line-height: 1.18;
  align-self: center;
  max-width: 46%;
  padding: 0 4% 0 1%;
  font-size: 1.02em;
  position: relative;
}
.battle-choices {
  width: 43%;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1% 5%;
  padding-left: 2%;
  border-left: 3px solid #747078;
}
.battle-choices .choice {
  font-size: 1.02em;
}
.unavailable {
  color: #a3a0a7;
}
.advance-caret {
  position: absolute;
  bottom: -.55em;
  right: 2%;
  font-size: .55em;
}
.move-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 73%;
  padding-right: 4%;
  gap: 2%;
}
.move-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1em;
  padding-left: 3%;
  width: 27%;
  border-left: 3px solid #8d8496;
  font-size: .85em;
}
.move-type {
  color: var(--accent);
}
.back-choice {
  font-size: .7em;
  padding-left: 1em;
  min-height: 28px;
}
.intro-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      #dde9e4b3,
      #a0c59126 55%,
      #34433380);
}
.intro-stage {
  position: absolute;
  inset: 5% 4% 28%;
}
.oak {
  position: absolute;
  width: 25%;
  height: 78%;
  left: 38%;
  bottom: 0;
}
.oak-pokemon {
  position: absolute;
  width: 20%;
  height: 38%;
  left: 60%;
  bottom: 0;
}
.intro-console {
  position: absolute;
  bottom: 2%;
  left: 2%;
  right: 2%;
  min-height: 24%;
  padding: 1.5% 2%;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2%;
  background-image: url(/assets/ui/bg.png);
  background-size: 100% 500%;
  background-position: center bottom;
  border: 0;
  box-shadow: none;
}
.speaker {
  color: var(--accent);
  font-size: .65em;
  grid-column: 1/3;
  letter-spacing: .04em;
}
.intro-console .dialogue-text {
  max-width: none;
  padding: 0;
  align-self: start;
  font-size: 1em;
}
.intro-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25em;
}
.intro-actions .choice {
  font-size: .8em;
}
.quiet-choice {
  color: #d4d0dc;
  font-size: .7em;
}
.selection-title {
  text-align: center;
  position: absolute;
  top: 2%;
  width: 100%;
  color: #fff;
  font-size: 1.02em;
}
.trainer-choices,
.starter-choices {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 20%;
  bottom: 0;
  display: flex;
  gap: 12%;
  align-items: end;
  justify-content: center;
}
.sprite-choice {
  border: 0;
  background: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: 30%;
  height: 100%;
  text-shadow: 2px 2px #242331;
  line-height: 1.1;
  padding: 0 0 .2em;
}
.sprite-choice > .pixel {
  width: 100%;
  height: 80%;
  object-position: center bottom;
  filter: drop-shadow(0 8px #47624e70);
}
.sprite-choice > span {
  margin-top: .1em;
  font-size: .85em;
}
.select-caret {
  position: absolute;
  top: 0;
  color: var(--accent);
  font-size: .65em;
  font-style: normal;
  opacity: 0;
}
.sprite-choice:hover .select-caret,
.sprite-choice:focus-visible .select-caret,
.sprite-choice.selected .select-caret {
  opacity: 1;
}
.sprite-choice:hover,
.sprite-choice:focus-visible {
  color: var(--accent);
}
.starter-choices {
  left: 4%;
  right: 4%;
  gap: 7%;
  bottom: 5%;
}
.starter-choice {
  width: 29%;
  height: 90%;
}
.starter-choice > .pixel {
  height: 67%;
}
.starter-choice small {
  font-size: .5em;
  color: var(--accent);
  margin-top: .15em;
  white-space: nowrap;
}
.region-selection {
  position: absolute;
  left: 7%;
  top: 7%;
  width: 43%;
  padding: 3% 4%;
  display: flex;
  flex-direction: column;
}
.region-selection h1 {
  font-weight: normal;
  font-size: .8em;
  margin: 0 0 .35em;
  color: var(--accent);
}
.region-selection .choice {
  font-size: .82em;
}
.guide-trainer {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 30%;
  height: 80%;
}
.chosen-trainer {
  position: absolute;
  left: 28%;
  bottom: 0;
  width: 25%;
  height: 78%;
}
.chosen-partner {
  position: absolute;
  left: 51%;
  bottom: 0;
  width: 27%;
  height: 52%;
}
.menu-shade {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #1b182844;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
  backdrop-filter: brightness(.75);
}
h2 {
  font-size: .95em;
  font-weight: normal;
  line-height: 1.1;
  margin: 0 0 .55em;
  color: var(--accent);
}
.pause-menu {
  position: absolute;
  right: 3%;
  top: 7%;
  width: 36%;
  padding: 2% 3%;
  display: flex;
  flex-direction: column;
}
.pause-menu .choice {
  font-size: .82em;
  min-height: 1.5em;
}
.key-hint {
  font-size: .44em;
  line-height: 1.4;
  margin-top: 1em;
  color: #d7d1df;
  white-space: nowrap;
}
.party-menu {
  width: 83%;
  max-height: 97%;
  padding: 2% 3%;
}
.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.small-back {
  font-size: .58em;
}
.menu-heading h2 {
  margin: 0;
}
.party-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 2%;
}
.party-slot {
  display: flex;
  position: relative;
  align-items: center;
  min-height: 100px;
  padding: .15em .3em;
  gap: .2em;
  text-align: left;
  background: #4a4558;
  border: 3px solid #8d869a;
  box-shadow: inset 0 0 0 2px #272330;
  font-size: .67em;
}
.party-slot.active {
  border-color: var(--accent);
  background: #5b5666;
}
.party-slot:hover,
.party-slot:focus-visible {
  border-color: var(--accent);
}
.party-slot > .pixel {
  width: 28%;
  height: 85px;
}
.party-description {
  display: flex;
  flex-direction: column;
  gap: .12em;
  flex: 1;
  min-width: 0;
}
.party-description strong {
  font-weight: normal;
  font-size: 1.18em;
}
.party-slot-type {
  font-size: .55em;
  float: right;
  color: #cfcbda;
}
.party-hp {
  display: flex;
  align-items: center;
  gap: .2em;
  font-size: .82em;
}
.party-hp > b {
  color: var(--accent);
  font-weight: normal;
}
.party-hp > i {
  height: .4em;
  background: #201d2b;
  flex: 1;
}
.party-hp em {
  display: block;
  height: 100%;
  background: var(--hp);
  border-top: 2px solid #b6f9b6;
}
.party-hp > span {
  min-width: 2.9em;
  text-align: right;
}
.active-label {
  position: absolute;
  right: .4em;
  bottom: .25em;
  font-size: .45em;
  color: var(--accent);
}
.empty-party {
  min-height: 80px;
  display: grid;
  place-items: center;
  opacity: .35;
  border: 2px solid #867f91;
}
.menu-prompt {
  font-size: .75em;
  margin: .5em 0 0;
}
.card-menu {
  width: 75%;
  padding: 2% 3%;
}
.trainer-card {
  background: #9db7b5;
  color: #273342;
  text-shadow: none;
  position: relative;
  margin-top: 3%;
  min-height: 340px;
  border: 5px solid #dcdfcd;
  box-shadow: inset 0 0 0 3px #576f78;
  padding: 3%;
  overflow: hidden;
}
.trainer-card-top {
  display: flex;
  justify-content: space-between;
  font-size: .65em;
  border-bottom: 3px solid #657c81;
  padding-bottom: .4em;
}
.card-details {
  width: 63%;
  font-size: .65em;
}
.card-details p {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #d4dfd1;
  padding-bottom: .3em;
}
.card-details strong {
  font-weight: normal;
}
.card-trainer {
  position: absolute;
  right: 5%;
  top: 18%;
  height: 60%;
  width: 24%;
}
.card-party {
  position: absolute;
  bottom: 3%;
  left: 3%;
  height: 23%;
  display: flex;
  gap: 12px;
}
.card-party img {
  height: 100%;
  width: 80px;
}
.credits-menu,
.confirm-menu {
  max-width: 80%;
  padding: 4%;
  font-size: .8em;
  line-height: 1.15;
}
.credits-note {
  font-size: .8em;
  color: #d0c9d7;
}
.confirm-menu .choice {
  display: block;
  margin-top: .4em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.attack-flash .enemy-pokemon {
  animation: hit .4s steps(2);
}
@keyframes hit {
  0%, 60% {
    opacity: .35;
    transform: translateX(10px);
  }
  30%, 100% {
    opacity: 1;
    transform: none;
  }
}
@media (min-aspect-ratio: 2/1) {
  #game {
    max-width: 177.78dvh;
  }
  .location-label {
    font-size: .7em;
  }
  .battle-choices .choice {
    min-height: 32px;
  }
  .corner-tools {
    top: 1%;
  }
  .tool {
    min-height: 30px;
  }
  .party-slot {
    min-height: 64px;
  }
  .party-slot > .pixel {
    height: 60px;
  }
  .empty-party {
    min-height: 54px;
  }
  .trainer-card {
    min-height: 240px;
  }
  .pause-menu .choice {
    min-height: 34px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #game {
    font-size: 28px;
  }
  .arena {
    height: 76%;
    object-fit: cover;
    object-position: 58% center;
  }
  .terrain {
    top: 22%;
    height: 53%;
    width: 150%;
    left: -22%;
  }
  .location-label {
    left: 4%;
    top: 2.8%;
    font-size: .58em;
  }
  .location-label span {
    display: block;
    margin-top: .25em;
  }
  .turn-label {
    right: 4%;
    top: 10%;
    font-size: .6em;
  }
  .corner-tools {
    top: 2%;
    right: 4%;
    font-size: 22px;
  }
  .tool {
    min-width: 36px;
    min-height: 34px;
  }
  .enemy-health {
    top: 15%;
    left: 3%;
    width: 68%;
    padding: 3% 5% 2% 7%;
    font-size: .68em;
  }
  .enemy-pokemon {
    left: 48%;
    top: 28%;
    width: 47%;
    height: 24%;
  }
  .player-pokemon {
    left: 1%;
    top: 41%;
    width: 58%;
    height: 32%;
  }
  .player-health {
    width: 67%;
    right: 2%;
    bottom: 29%;
    padding: 2.3% 4.2% 2% 8%;
    font-size: .68em;
  }
  .battle-console {
    height: 27%;
    padding: 4% 5%;
    display: flex;
    flex-direction: column;
    background-size: 100% 500%;
  }
  .dialogue-text {
    max-width: none;
    padding: 0;
    align-self: stretch;
    font-size: .86em;
    min-height: 2em;
    flex: 0;
  }
  .battle-choices {
    width: 100%;
    padding: 2% 0 0;
    margin-top: auto;
    gap: 2px 6%;
    border-left: 0;
    border-top: 2px solid #83798b;
  }
  .battle-choices .choice {
    font-size: .87em;
    min-height: 44px;
  }
  .battle-console.moves-open {
    flex-direction: row;
    gap: 5%;
  }
  .move-choices {
    width: 65%;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    font-size: .76em;
  }
  .move-choices .choice {
    min-height: 36px;
  }
  .move-info {
    font-size: .7em;
    width: 35%;
    padding-left: 7%;
  }
  .intro-stage {
    inset: 10% 0 31%;
  }
  .intro-field .arena {
    height: 100%;
    opacity: .85;
  }
  .oak {
    width: 58%;
    height: 74%;
    left: 20%;
    bottom: 0;
  }
  .oak-pokemon {
    width: 33%;
    height: 34%;
    left: 59%;
    bottom: 0;
  }
  .intro-console {
    left: 3%;
    right: 3%;
    bottom: 3%;
    min-height: 28%;
    padding: 5% 6%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .speaker {
    font-size: .56em;
  }
  .intro-console .dialogue-text {
    font-size: .87em;
    line-height: 1.1;
    min-height: 2.2em;
  }
  .intro-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: auto;
    gap: 0;
  }
  .intro-actions .choice {
    font-size: .65em;
    min-height: 38px;
  }
  .selection-title {
    font-size: .75em;
    top: 8%;
    padding: 0 5%;
  }
  .trainer-choices {
    left: 7%;
    right: 7%;
    top: 20%;
    gap: 15%;
    bottom: 3%;
  }
  .sprite-choice {
    width: 42%;
    font-size: 1em;
  }
  .sprite-choice > .pixel {
    height: 76%;
  }
  .starter-choices {
    left: 3%;
    right: 3%;
    gap: 3%;
    top: 23%;
    bottom: 9%;
  }
  .starter-choice {
    width: 31%;
    height: 90%;
  }
  .starter-choice > .pixel {
    height: 59%;
  }
  .starter-choice > span {
    font-size: .57em;
  }
  .starter-choice small {
    font-size: .32em;
  }
  .region-selection {
    left: 6%;
    top: 0;
    width: 60%;
    padding: 5% 7%;
    z-index: 1;
  }
  .region-selection h1 {
    font-size: .61em;
  }
  .region-selection .choice {
    font-size: .77em;
    min-height: 42px;
  }
  .guide-trainer {
    right: -2%;
    bottom: -4%;
    width: 42%;
    height: 60%;
  }
  .chosen-trainer {
    left: 13%;
    width: 44%;
    height: 72%;
  }
  .chosen-partner {
    left: 49%;
    width: 43%;
    height: 45%;
  }
  .pause-menu {
    right: 5%;
    top: 10%;
    width: 76%;
    padding: 7%;
  }
  .pause-menu .choice {
    font-size: .85em;
    min-height: 44px;
  }
  .key-hint {
    font-size: .37em;
    white-space: normal;
  }
  .menu-shade {
    padding: 5%;
  }
  .party-menu {
    width: 100%;
    padding: 5%;
    max-height: 95%;
  }
  .party-list {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 4%;
  }
  .party-slot {
    min-height: 83px;
    font-size: .68em;
  }
  .party-slot > .pixel {
    height: 72px;
  }
  .empty-party {
    min-height: 38px;
  }
  .card-menu {
    width: 100%;
    padding: 5%;
  }
  .trainer-card {
    min-height: 390px;
    padding: 5%;
  }
  .trainer-card-top {
    font-size: .48em;
  }
  .card-details {
    width: 100%;
    font-size: .6em;
    margin-top: 7%;
  }
  .card-trainer {
    top: 47%;
    height: 41%;
    width: 45%;
    right: 0;
  }
  .card-party {
    height: 22%;
    bottom: 5%;
    left: 4%;
    width: 54%;
    gap: 0;
  }
  .card-party img {
    width: 33%;
  }
  .credits-menu,
  .confirm-menu {
    max-width: 100%;
    padding: 7%;
    font-size: .7em;
  }
  .small-back {
    font-size: .52em;
  }
  .menu-heading h2 {
    font-size: .72em;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.game-window {
  border: 12px solid transparent;
  border-image: url(/game-media/window-alt.png) 8 fill stretch;
  box-shadow: none;
  background-color: transparent;
  image-rendering: pixelated;
}
.battle-console,
.intro-console {
  border: 0;
  border-image: none;
}
.choice .pointer {
  font-size: 0;
  width: 12px;
  height: 18px;
  background: url(/game-media/cursor.png) center/contain no-repeat;
  image-rendering: pixelated;
  top: .32em;
}
.party-menu {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-image: none;
  padding: 0;
  background: url(/game-media/party-bg.png) center/100% 100% no-repeat;
}
.party-menu .menu-heading {
  position: absolute;
  top: 1.5%;
  left: 3%;
  right: 3%;
}
.party-menu .menu-heading h2 {
  font-size: .65em;
}
.party-menu .small-back {
  position: fixed;
  right: 4%;
  bottom: 3%;
  z-index: 1;
  font-size: .75em;
}
.party-list {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
}
.party-slot {
  position: absolute;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 1% 2%;
  font-size: .75em;
  gap: 2%;
  background-image: url(/game-media/party-slot.png);
  background-size: 100% 600%;
  background-position: center top;
  background-color: transparent;
}
.party-slot.active {
  border: 0;
  background-image: url(/game-media/party-slot-main.png);
  background-size: 100% 600%;
  background-position: center top;
  background-color: transparent;
}
.party-slot:hover,
.party-slot:focus-visible {
  background-position: center 20%;
  outline: 0;
}
.lead-slot {
  left: 3%;
  top: 18%;
  width: 34.4%;
  height: 27.2%;
  flex-wrap: wrap;
  padding: 1% 2%;
  justify-content: center;
}
.lead-slot > .pixel {
  position: absolute;
  left: 2%;
  top: -12%;
  width: 37%;
  height: 80%;
}
.lead-slot .party-description {
  margin-left: 27%;
  margin-top: 0;
  gap: .3em;
}
.lead-slot .party-slot-type {
  display: none;
}
.lead-slot .party-hp {
  position: absolute;
  bottom: 13%;
  left: 8%;
  right: 8%;
}
.lead-slot .active-label {
  bottom: 5%;
  right: 8%;
}
.bench-slot {
  left: 45%;
  top: calc(7% + (var(--slot) - 1)*15.55%);
  width: 54.5%;
  height: 13.33%;
}
.bench-slot > .pixel {
  width: 23%;
  height: 115%;
}
.bench-slot .party-description {
  gap: .1em;
}
.party-menu .menu-prompt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 82.5%;
  height: 17%;
  margin: 0;
  padding: 3% 4%;
  border: 12px solid transparent;
  border-image: url(/game-media/window-alt.png) 8 fill stretch;
  font-size: .85em;
}
@media (max-width: 600px) and (orientation: portrait) {
  .game-window {
    border-width: 9px;
  }
  .battle-console,
  .intro-console,
  .party-menu {
    border: 0;
  }
  .party-menu {
    background-size: auto 100%;
    background-color: #131c23;
  }
  .party-menu .menu-heading {
    top: 3%;
    left: 5%;
  }
  .party-list {
    inset: 11% 5% 16%;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .party-slot,
  .lead-slot,
  .bench-slot {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    width: 100%;
    height: 100px;
    min-height: 100px;
    flex-wrap: nowrap;
    padding: 10px 16px;
    font-size: .7em;
    background-image: url(/game-media/party-slot.png);
    background-size: 100% 600%;
  }
  .party-slot > .pixel,
  .lead-slot > .pixel {
    position: static;
    width: 25%;
    height: 90px;
  }
  .lead-slot .party-description {
    margin: 0;
    gap: .1em;
  }
  .lead-slot .party-hp {
    position: static;
  }
  .lead-slot .active-label {
    right: 5%;
    bottom: 5%;
  }
  .party-menu .small-back {
    bottom: 4%;
    font-size: .64em;
    right: 5%;
  }
  .party-menu .menu-prompt {
    font-size: .7em;
    width: 73%;
    height: 13%;
    padding: 5%;
    border-width: 9px;
  }
  .choice .pointer {
    width: 9px;
    height: 14px;
  }
}
.volume-control {
  font-size: .5em;
  display: flex;
  align-items: center;
  gap: 1em;
  margin: .5em 0 .5em 1.6em;
}
.volume-control input {
  min-width: 0;
  width: 100%;
  accent-color: #ffe094;
  height: 24px;
}
.health {
  padding: 0;
}
.pokemon-name {
  position: absolute;
  left: 11%;
  right: 7%;
  top: 11%;
  font-size: 1em;
}
.enemy-health .pokemon-name {
  top: 18%;
  left: 10%;
}
.health-meter {
  position: absolute;
  left: 43%;
  right: 8%;
  top: 46%;
  height: 8%;
  margin: 0;
  gap: 4%;
  font-size: .62em;
}
.health-meter .hp-well {
  width: 83%;
  height: 68%;
  border: 0;
}
.health-meter .hp-well i {
  border-top: 1px solid #b6f9b6;
}
.enemy-health .health-meter {
  top: 61%;
  left: 39%;
  right: 8%;
  height: 10%;
}
.hp-number {
  position: absolute;
  right: 8%;
  top: 65%;
  margin: 0;
  text-shadow: 2px 2px #262331, -1px -1px #262331;
}
.party-dots {
  position: absolute;
  left: 8%;
  top: 69%;
  margin: 0;
}
@media (min-width: 601px), (orientation: landscape) {
  .terrain {
    top: 0;
  }
  .enemy-pokemon {
    left: 58%;
    top: 18%;
    width: 18%;
    height: 30%;
  }
  .player-pokemon {
    left: 21%;
    top: 39%;
    width: 23%;
    height: 37%;
  }
  .lead-slot > .pixel {
    left: 1%;
    top: -6%;
    width: 32%;
    height: 68%;
  }
  .lead-slot .party-description {
    margin-left: 44%;
    margin-top: -4%;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .enemy-health,
  .player-health {
    font-size: .8em;
  }
  .enemy-health .pokemon-name {
    top: 19%;
  }
  .player-health .pokemon-name {
    top: 10%;
  }
  .health-meter {
    font-size: .55em;
  }
  .hp-number {
    font-size: .72em;
    top: 65%;
  }
  .party-dots {
    top: 70%;
  }
  .starter-choice > span {
    font-size: .72em;
  }
  .starter-choice small {
    font-size: .4em;
  }
}
button:disabled {
  cursor: default;
  opacity: .5;
}
.choice:disabled:hover {
  color: inherit;
}
.choice:disabled .pointer {
  opacity: 0;
}
.pokemon-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 79%;
}
.pokemon-name .level {
  font-size: .58em;
}
.move-choices .choice {
  white-space: normal;
  font-size: .72em;
  line-height: 1.05;
}
.move-info {
  font-size: .7em;
}
.move-info > span {
  font-size: .7em;
}
.dialogue-text {
  overflow-wrap: anywhere;
}
.battle-console .dialogue-text {
  font-size: .87em;
  max-height: 100%;
  overflow: auto;
}
.status-notice {
  position: absolute;
  z-index: 20;
  left: 12%;
  right: 12%;
  top: 12%;
  font-size: .6em;
  padding: 1% 2%;
  max-height: 70%;
  overflow: auto;
}
.status-notice p {
  margin: .4em 0;
  line-height: 1.2;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .2em;
}
.status-actions .choice {
  font-size: .8em;
  white-space: normal;
}
.busy-status {
  position: absolute;
  z-index: 21;
  top: 3%;
  left: 30%;
  right: 30%;
  text-align: center;
  font-size: .55em;
  background: #282431dd;
  padding: .3em;
}
.delivery-note {
  position: absolute;
  top: 6%;
  left: 3%;
  font-size: .45em;
  background: #282431b8;
  padding: .3em;
}
.pause-menu {
  top: 5%;
  bottom: 5%;
  overflow: auto;
  width: 38%;
  padding: 1.5% 2.5%;
}
.pause-menu .choice {
  font-size: .67em;
  min-height: 1.4em;
}
.pause-menu h2 {
  font-size: .8em;
}
.volume-control {
  font-size: .45em;
}
.key-hint {
  font-size: .38em;
}
.party-list {
  overflow-y: auto;
}
.party-description {
  overflow-wrap: anywhere;
}
.party-description strong {
  white-space: normal;
}
.party-description > span {
  font-size: .65em;
}
.party-slot:not(button) {
  pointer-events: none;
}
.party-slot:not(button):hover {
  background-position: center top;
}
.bench-slot .party-description {
  min-width: 0;
}
.art-unavailable {
  display: grid;
  place-items: center;
  font-size: 1em;
}
.preserved-party {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 33%;
  font-size: .65em;
}
.journal-menu {
  width: 80%;
  height: 85%;
  padding: 3%;
  display: flex;
  flex-direction: column;
}
.battle-journal {
  overflow: auto;
  flex: 1;
  font-size: .6em;
  line-height: 1.35;
  margin: 0;
  padding-left: 1.5em;
}
.battle-journal li + li {
  margin-top: .25em;
}
.card-details strong {
  max-width: 65%;
  overflow-wrap: anywhere;
  text-align: right;
}
.card-details {
  font-size: .56em;
}
.discord-avatar {
  position: absolute;
  right: 3%;
  top: 3%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.trainer-card-top > span:last-child {
  margin-right: 40px;
}
.home-field .intro-actions .choice {
  font-size: .68em;
}
.home-field .dialogue-text {
  font-size: .8em;
}
.sprite-choice:disabled {
  opacity: .7;
}
@media (max-width: 600px) and (orientation: portrait) {
  .pause-menu {
    width: 82%;
    padding: 5%;
    top: 6%;
    bottom: 6%;
  }
  .pause-menu .choice {
    font-size: .75em;
    min-height: 38px;
  }
  .status-notice {
    left: 4%;
    right: 4%;
    top: 8%;
    font-size: .7em;
    padding: 3%;
  }
  .busy-status {
    left: 20%;
    right: 20%;
    font-size: .6em;
  }
  .move-choices .choice {
    font-size: .86em;
    min-height: 44px;
  }
  .battle-console.moves-open {
    height: 31%;
  }
  .move-info {
    font-size: .65em;
  }
  .card-details {
    font-size: .53em;
  }
  .card-details p {
    gap: 12px;
  }
  .card-party {
    flex-wrap: wrap;
  }
  .card-party img {
    height: 65%;
    width: 32%;
  }
  .party-list {
    gap: 12px;
  }
  .party-slot,
  .lead-slot,
  .bench-slot {
    flex-shrink: 0;
    min-height: 88px;
    height: 88px;
  }
  .party-description > span {
    font-size: .7em;
  }
  .party-menu .menu-prompt {
    font-size: .6em;
  }
  .battle-console .dialogue-text {
    font-size: .76em;
    min-height: 2em;
    max-height: 3.4em;
  }
  .home-field .intro-console .dialogue-text {
    font-size: .75em;
  }
  .home-field .intro-actions .choice {
    font-size: .58em;
  }
  .intro-console {
    max-height: 37%;
  }
  .intro-stage {
    bottom: 35%;
  }
  .home-field .intro-stage {
    bottom: 35%;
  }
  .journal-menu {
    width: 100%;
    height: 87%;
    padding: 5%;
  }
  .journal-menu .battle-journal {
    font-size: .65em;
  }
  .tool {
    min-height: 44px;
    min-width: 44px;
  }
  .delivery-note {
    top: 11%;
    max-width: 65%;
    font-size: .4em;
  }
  .discord-avatar {
    width: 28px;
    height: 28px;
  }
}
@media (min-aspect-ratio: 2/1) {
  .pause-menu .choice {
    min-height: 29px;
    font-size: .6em;
  }
  .pause-menu {
    width: 42%;
  }
  .pause-menu .volume-control {
    margin: .1em 0;
  }
  .pause-menu .key-hint {
    display: none;
  }
  .status-notice {
    top: 5%;
    max-height: 85%;
  }
}
.intro-console .dialogue-text {
  max-height: 100%;
  overflow: auto;
}
.lead-slot {
  background-image: url(/game-media/party-slot-main.png);
}
.enemy-health .health-meter {
  right: 12%;
}
@media (min-width: 601px), (orientation: landscape) {
  .turn-label {
    right: calc(2% + 154px);
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .battle-field:has(.moves-open) .player-health {
    bottom: 33%;
  }
}
.battle-field {
  --command-height:24%;
  --player-width:23%;
  --player-max-height:37dvh;
  --player-center:32.5%;
  --player-overlap:clamp(16px,3.125vw,40px);
}
.battle-field .player-pokemon {
  top: auto;
  left: var(--player-center);
  bottom: var(--command-height);
  width: min(var(--player-width), calc(var(--player-max-height) * var(--sprite-aspect,1)));
  height: auto;
  aspect-ratio: var(--sprite-aspect,1);
  transform: translate(-50%, calc(var(--sprite-bottom-padding,0%) + min(var(--player-overlap), var(--sprite-max-overlap,100%))));
  z-index: 1;
}
.battle-field .enemy-pokemon {
  z-index: 1;
}
.battle-field .health,
.battle-field .location-label,
.battle-field .turn-label {
  z-index: 2;
}
.battle-field .battle-console {
  height: var(--command-height);
  z-index: 3;
}
.battle-field .delivery-note {
  z-index: 4;
}
@media (max-width: 600px) and (orientation: portrait) {
  .battle-field {
    --command-height:27%;
    --player-width:58%;
    --player-max-height:32dvh;
    --player-center:30%;
  }
  .battle-field:has(.moves-open) {
    --command-height:31%;
  }
}
